C3 Collection Classes
C3 Collection Classes
Introduction to Collections:
Collections are nothing but groups of records
that can be treated as one logical unit.
Introduction to Collections:
C# Collections
In C#, collection represents group of objects. By
the help of collections, we can perform various
operations on objects such as
– store object
– update object
– delete object
– retrieve object
– search object, and
– sort object
features
1. Size can be increased dynamically.
2. We can insert an element into the middle of
a collection.
3. It also provides the facility to remove or
delete elements from the middle of a
collection.
Types of Collections in C#
1. System.Collections.Generic classes
2. System.Collections classes (Now deprecated)
3. System.Collections.Concurrent classes
System.Collections.Generic classes
• List
• Stack
• Queue
• LinkedList
• HashSet
• SortedSet
• Dictionary
• SortedDictionary
• SortedList
System.Collections classes
• ArrayList
• Stack
• Queue
• Hashtable
System.Collections.Concurrent classes
• BlockingCollection
• ConcurrentBag
• ConcurrentStack
• ConcurrentQueue
• ConcurrentDictionary
• Partitioner
• Partitioner
• OrderablePartitioner