The
System.Collections namespace contains interfaces and classes that define various collections of objects, such as lists, queues, bit arrays, hash tables and dictionaries.
| | Class | Description |
|---|
.png) | ArrayList | Implements the IList interface using an array whose size is dynamically increased as required. |
.png) | BitArray | Manages a compact array of bit values, which are represented as Booleans, where true indicates that the bit is on (1) and false indicates the bit is off (0). |
.png) | CaseInsensitiveComparer | Compares two objects for equivalence, ignoring the case of strings. |
.png) | CaseInsensitiveHashCodeProvider | Supplies a hash code for an object, using a hashing algorithm that ignores the case of strings. |
.png) | CollectionBase | Provides the abstract base class for a strongly typed collection. |
.png) | Comparer | Compares two objects for equivalence, where string comparisons are case-sensitive. |
.png) | DictionaryBase | Provides the abstract base class for a strongly typed collection of key/value pairs. |
.png) | Hashtable | Represents a collection of key/value pairs that are organized based on the hash code of the key. |
.png) | Queue | Represents a first-in, first-out collection of objects. |
.png) | ReadOnlyCollectionBase | Provides the abstract base class for a strongly typed non-generic read-only collection. |
.png) | SortedList | Represents a collection of key/value pairs that are sorted by the keys and are accessible by key and by index. |
.png) | Stack | Represents a simple last-in-first-out (LIFO) non-generic collection of objects. |
| | Interface | Description |
|---|
.png) | ICollection | Defines size, enumerators, and synchronization methods for all nongeneric collections. |
.png) | IComparer | Exposes a method that compares two objects. |
.png) | IDictionary | Represents a nongeneric collection of key/value pairs. |
.png) | IDictionaryEnumerator | Enumerates the elements of a nongeneric dictionary. |
.png) | IEnumerable | Exposes the enumerator, which supports a simple iteration over a non-generic collection. |
.png) | IEnumerator | Supports a simple iteration over a nongeneric collection. |
.png) | IEqualityComparer | Defines methods to support the comparison of objects for equality. |
.png) | IHashCodeProvider | Supplies a hash code for an object, using a custom hash function. |
.png) | IList | Represents a non-generic collection of objects that can be individually accessed by index. |
| | Structure | Description |
|---|
.png) | DictionaryEntry | Defines a dictionary key/value pair that can be set or retrieved. |