System.Collections Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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).
StructuralComparisons Provides objects for performing a structural comparison of two collection objects.

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.