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

C3 Collection Classes

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)
45 views35 pages

C3 Collection Classes

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
You are on page 1/ 35

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. 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

You might also like