System.Collections.ObjectModel Namespace

The System.Collections.ObjectModel namespace contains classes that can be used as collections in the object model of a reusable library. Use these classes when properties or methods return collections.

Remarks

 

Classes

TypeReason
Collection<T>

Provides the base class for a generic collection.

KeyedCollection<TKey,TItem>

Provides the abstract base class for a collection whose keys are embedded in the values.

ObservableCollection<T>

Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed.

ReadOnlyCollection<T>

Provides the base class for a generic read-only collection.

ReadOnlyDictionary<TKey,TValue>
ReadOnlyDictionary<TKey,TValue>+KeyCollection

Represents a read-only, generic collection of key/value pairs.

ReadOnlyDictionary<TKey,TValue>+ValueCollection
ReadOnlyObservableCollection<T>

Represents a read-only ObservableCollection`1.