System.Collections.ObjectModel 命名空间

System.Collections.ObjectModel 名称空间包含可在可重用库的对象模型中用作集合的类。 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.

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>.KeyCollection

表示 ReadOnlyDictionary<TKey,TValue> 对象的键的只读集合。Represents a read-only collection of the keys of a ReadOnlyDictionary<TKey,TValue> object.

ReadOnlyDictionary<TKey,TValue>.ValueCollection

表示 ReadOnlyDictionary<TKey,TValue> 对象的值的只读集合。Represents a read-only collection of the values of a ReadOnlyDictionary<TKey,TValue> object.

ReadOnlyDictionary<TKey,TValue>

表示键/值对的只读泛型集合。Represents a read-only, generic collection of key/value pairs.

ReadOnlyObservableCollection<T>

表示一个只读的 ObservableCollection<T>Represents a read-only ObservableCollection<T>.