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.
Type | Reason |
---|---|
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> | Documentation for this section has not yet been entered. |
ReadOnlyDictionary<TKey,TValue>+KeyCollection |
Represents a read-only, generic collection of key/value pairs. |
ReadOnlyDictionary<TKey,TValue>+ValueCollection | Documentation for this section has not yet been entered. |
ReadOnlyObservableCollection<T> |
Represents a read-only System.Collections.ObjectModel.ObservableCollection`1. |