Export (0) Print
Expand All
Expand Minimize
26 out of 39 rated this helpful - Rate this topic

System.Collections.Generic Namespace

The System.Collections.Generic namespace contains interfaces and classes that define generic collections, which allow users to create strongly typed collections that provide better type safety and performance than non-generic strongly typed collections.

  ClassDescription
Public classComparer<T>Provides a base class for implementations of the IComparer<T> generic interface.
Public classDictionary<TKey, TValue>Represents a collection of keys and values.
Public classDictionary<TKey, TValue>.KeyCollectionRepresents the collection of keys in a Dictionary<TKey, TValue>. This class cannot be inherited.
Public classDictionary<TKey, TValue>.ValueCollectionRepresents the collection of values in a Dictionary<TKey, TValue>. This class cannot be inherited.
Public classEqualityComparer<T>Provides a base class for implementations of the IEqualityComparer<T> generic interface.
Public classHashSet<T>Represents a set of values.
Public classKeyedByTypeCollection<TItem>Provides a collection whose items are types that serve as keys.
Public classKeyNotFoundExceptionThe exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection.
Public classLinkedList<T>Represents a doubly linked list.
Public classLinkedListNode<T>Represents a node in a LinkedList<T>. This class cannot be inherited.
Public classList<T>Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.
Public classQueue<T>Represents a first-in, first-out collection of objects.
Public classSortedDictionary<TKey, TValue>Represents a collection of key/value pairs that are sorted on the key.
Public classSortedDictionary<TKey, TValue>.KeyCollectionRepresents the collection of keys in a SortedDictionary<TKey, TValue>. This class cannot be inherited.
Public classSortedDictionary<TKey, TValue>.ValueCollectionRepresents the collection of values in a SortedDictionary<TKey, TValue>. This class cannot be inherited
Public classSortedList<TKey, TValue>Represents a collection of key/value pairs that are sorted by key based on the associated IComparer<T> implementation.
Public classSortedSet<T>Represents a collection of objects that is maintained in sorted order.
Public classStack<T>Represents a variable size last-in-first-out (LIFO) collection of instances of the same arbitrary type.
Public classSynchronizedCollection<T>Provides a thread-safe collection that contains objects of a type specified by the generic parameter as elements.
Public classSynchronizedKeyedCollection<K, T>Provides a thread-safe collection that contains objects of a type specified by a generic parameter and that are grouped by keys.
Public classSynchronizedReadOnlyCollection<T>Provides a thread-safe, read-only collection that contains objects of a type specified by the generic parameter as elements.
  InterfaceDescription
Public interfaceICollection<T>Defines methods to manipulate generic collections.
Public interfaceIComparer<T>Defines a method that a type implements to compare two objects.
Public interfaceIDictionary<TKey, TValue>Represents a generic collection of key/value pairs.
Public interfaceIEnumerable<T>Exposes the enumerator, which supports a simple iteration over a collection of a specified type.
Public interfaceIEnumerator<T>Supports a simple iteration over a generic collection.
Public interfaceIEqualityComparer<T>Defines methods to support the comparison of objects for equality.
Public interfaceIList<T>Represents a collection of objects that can be individually accessed by index.
Public interfaceISet<T>Provides the base interface for the abstraction of sets.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.