0% found this document useful (0 votes)
68 views35 pages

C# Collections Overview and Types

This document discusses collections in C#, which are groups of objects that can be treated as a single unit. It describes that collections allow storing, updating, deleting, retrieving, searching, and sorting objects. It also lists the main types of collections in C# including generic, non-generic, and concurrent collections.

Uploaded by

nandhinisegar09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views35 pages

C# Collections Overview and Types

This document discusses collections in C#, which are groups of objects that can be treated as a single unit. It describes that collections allow storing, updating, deleting, retrieving, searching, and sorting objects. It also lists the main types of collections in C# including generic, non-generic, and concurrent collections.

Uploaded by

nandhinisegar09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like