Partager via


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
Public class 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
Public structure DictionaryEntry Defines a dictionary key/value pair that can be set or retrieved.

Interfaces

  Interface Description
Public interface ICollection Defines size, enumerators, and synchronization methods for all nongeneric collections.
Public interface IComparer Exposes a method that compares two objects.
Public interface IDictionary Represents a nongeneric collection of key/value pairs.
Public interface IDictionaryEnumerator Enumerates the elements of a nongeneric dictionary.
Public interface IEnumerable Exposes the enumerator, which supports a simple iteration over a non-generic collection.
Public interface IEnumerator Supports a simple iteration over a nongeneric collection.
Public interface IEqualityComparer Defines methods to support the comparison of objects for equality.
Public interface IList Represents a non-generic collection of objects that can be individually accessed by index.
Public interface IStructuralComparable Supports the structural comparison of collection objects.
Public interface IStructuralEquatable Defines methods to support the comparison of objects for structural equality.