System.Collections Namespace
Microsoft Silverlight will reach end of support after October 2021. Learn more.
The System.Collections namespace contains interfaces and classes that define various collections of objects, such as lists, queues, bit arrays, and dictionaries.
Classes
Class | Description | |
---|---|---|
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). |
Structures
Structure | Description | |
---|---|---|
DictionaryEntry | Defines a dictionary key/value pair that can be set or retrieved. |
Interfaces
Interface | Description | |
---|---|---|
ICollection | Defines size, enumerators, and synchronization methods for all nongeneric collections. | |
IComparer | Exposes a method that compares two objects. | |
IDictionary | Represents a nongeneric collection of key/value pairs. | |
IDictionaryEnumerator | Enumerates the elements of a nongeneric dictionary. | |
IEnumerable | Exposes the enumerator, which supports a simple iteration over a non-generic collection. | |
IEnumerator | Supports a simple iteration over a nongeneric collection. | |
IEqualityComparer | Defines methods to support the comparison of objects for equality. | |
IList | Represents a non-generic collection of objects that can be individually accessed by index. | |
IStructuralComparable | Supports the structural comparison of collection objects. | |
IStructuralEquatable | Defines methods to support the comparison of objects for structural equality. |