C# Collections
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. [Link] classes
2. [Link] classes (Now deprecated)
3. [Link] classes
[Link] classes
• List
• Stack
• Queue
• LinkedList
• HashSet
• SortedSet
• Dictionary
• SortedDictionary
• SortedList
[Link] classes
• ArrayList
• Stack
• Queue
• Hashtable
[Link] classes
• BlockingCollection
• ConcurrentBag
• ConcurrentStack
• ConcurrentQueue
• ConcurrentDictionary
• Partitioner
• Partitioner
• OrderablePartitioner