Collection classes are specialized classes for data storage and
retrieval. These classes provide support for stacks, queues, lists, and hash
tables.
There are two types of
collections available in C#:
1.
non-generic
collections
2.
generic
collections
What are Non-Generic
Collections:
Each element can represent a value of a different
type.
Array Size is not fixed.
Elements can be added/removed at runtime.
Examples of Non-Generic
collections
What are Generic Collections
Generic Collections work on the specific type that is specified in the program whereas non-generic collections work on the object type.