C # set definition, set type, common non-generic set,
Set Definition
A collection is like a container. It combines a series of similar components and is a special class. Like an array, it can be accessed through an index or a "key. different from traditional arrays, the set can be dynamically adjusted and elements can be added or deleted during operation.
Set Type
Generic set and non-generic set
Generic collection classes are generally located in the System. Collections. Generic namespace. Generic Collections can only store members of the specified Generic type.
A non-generic collection class is located in the System. Collections namespace. A non-generic set can store multiple types of members.
In addition, the System. Collections. Specialized namespace also has some collection classes.
Common Non-generic set
Dynamic Array ArrayList
Stack
Queue
Hash Table
Common generic set
Dictionary
List
Stack
Queue