.NET Framework Class Library
System.Collections Namespace
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 |
|---|
.gif) | ArrayList | Implements the IList interface using an array whose size is dynamically increased as required. |
.gif) | 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). |
.gif) | CaseInsensitiveComparer | Compares two objects for equivalence, ignoring the case of strings. |
.gif) | CaseInsensitiveHashCodeProvider | Obsolete. Supplies a hash code for an object, using a hashing algorithm that ignores the case of strings. |
.gif) | CollectionBase | Provides the abstract base class for a strongly typed collection. |
.gif) | Comparer | Compares two objects for equivalence, where string comparisons are case-sensitive. |
.gif) | DictionaryBase | Provides the abstract base class for a strongly typed collection of key/value pairs. |
.gif) | Hashtable | Represents a collection of key/value pairs that are organized based on the hash code of the key. |
.gif) | Queue | Represents a first-in, first-out collection of objects. |
.gif) | ReadOnlyCollectionBase | Provides the abstract base class for a strongly typed non-generic read-only collection. |
.gif) | SortedList | Represents a collection of key/value pairs that are sorted by the keys and are accessible by key and by index. |
.gif) | Stack | Represents a simple last-in-first-out (LIFO) non-generic collection of objects. |
|
| Structure | Description |
|---|
.gif) | DictionaryEntry | Defines a dictionary key/value pair that can be set or retrieved. |
|
| Interface | Description |
|---|
.gif) | ICollection | Defines size, enumerators, and synchronization methods for all nongeneric collections. |
.gif) | IComparer | Exposes a method that compares two objects. |
.gif) | IDictionary | Represents a nongeneric collection of key/value pairs. |
.gif) | IDictionaryEnumerator | Enumerates the elements of a nongeneric dictionary. |
.gif) | IEnumerable | Exposes the enumerator, which supports a simple iteration over a non-generic collection. |
.gif) | IEnumerator | Supports a simple iteration over a nongeneric collection. |
.gif) | IEqualityComparer | Defines methods to support the comparison of objects for equality. |
.gif) | IHashCodeProvider | Obsolete. Supplies a hash code for an object, using a custom hash function. |
.gif) | IList | Represents a non-generic collection of objects that can be individually accessed by index. |