Click or drag to resize
ReadOnlyDictionaryTKey, TValue Class
只读的表示键和值(字典)的集合。
Inheritance Hierarchy
SystemObject
  X3Platform.CollectionsReadOnlyDictionaryTKey, TValue

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public class ReadOnlyDictionary<TKey, TValue> : IDictionary<TKey, TValue>, 
	ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, 
	IEnumerable

Type Parameters

TKey
字典中的键的类型。
TValue
字典中的值的类型。

The ReadOnlyDictionaryTKey, TValue type exposes the following members.

Constructors
Methods
  NameDescription
Public methodContains
确定集合中是否包含特定值。
Public methodContainsKey
确定字典中是否包含指定的键。
Public methodCopyTo
从特定的数组索引开始,将集合中的元素复制到一个数组中。
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator
返回一个循环访问集合的枚举数。
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodTryGetValue
获取与指定的键相关联的值。
Top
Properties
  NameDescription
Public propertyCount
获取集合中包含的元素数。
Public propertyIsReadOnly
获取一个值,该值指示集合是否为只读。此实现总是返回true。
Public propertyItem
获取与指定的键相关联的值。
Public propertyKeys
获取包含字典中的键的集合。
Public propertyValues
获取包含字典中的值的集合。
Top
See Also