Mono Class Library: Namespaces

System.Collections Namespace

The System.Collections namespace contains classes for storing collections of objects, including lists, hastables, queues, and stacks. [Edit]

Remarks

The System.Collections namespace contains useful classes for storing collections of objects.

All collections implement the ICollection interface, which provides basic functionality for iterating through the elements of a collection. Collections that support index-based access into their elements and the ability to add and remove elements, such as the ArrayList, implement the IList interface. Collections that provide a key/value mapping, such as the Hashtable, implement the IDictionary interface.

[Edit]

Classes

TypeReason
ArrayList Implements a variable-size IList that uses an array of objects to store its elements.
BitArrayThe BItArray class implements a collection of Boolean values. There are several different constructors for initializing a new BitArray object.
CaseInsensitiveComparerDocumentation for this section has not yet been entered.
CaseInsensitiveHashCodeProviderDocumentation for this section has not yet been entered.
CollectionBaseDocumentation for this section has not yet been entered.
ComparerProvides the default implementation of the IComparer interface.
DictionaryBaseAn abstract class that provides a simple way to monitor changes to a Hashtable. Derived classes overwrite one or more of the `On' methods to track the changes to the Hashtable.
Hashtable Represents a hash table.
QueueA first in, first out collection of objects.
ReadOnlyCollectionBaseDocumentation for this section has not yet been entered.
SortedListDocumentation for this section has not yet been entered.
StackA last in, first out collection of objects.

Interfaces

TypeReason
ICollectionServes as the base interface for implementing collection classes. Defines size, enumeration, and synchronization methods for all system collections.
IComparer Provides a mechanism to customize the sort ordering of a collection.
IDictionaryImplemented by classes that support collections of associated keys and values (i.e. dictionaries).
IDictionaryEnumeratorImplemented by classes that support the use of an enumerator over a dictionary (i.e., a collection of DictionaryEntry objects).
IEnumerable Implemented by classes that support a simple iteration over instances of the collection.
IEnumerator Implemented by classes that support a simple iteration over a collection.
IEqualityComparerDocumentation for this section has not yet been entered.
IHashCodeProvider Implemented by classes that support custom hash functions for instances of the class.
IListImplemented by classes that support a collection of objects that can be individually indexed.

Structs

TypeReason
DictionaryEntry Represents a dictionary entry consisting of a DictionaryEntry.Key and an associated DictionaryEntry.Value.