DynamicDictionary Class

值的类型为 object 的动态字典类。

Definition

Namespace: QuickAdmin.Utils
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.1.6
C#
public class DynamicDictionary : DynamicDictionary<object>
Inheritance
object    DynamicObject    DynamicDictionaryobject    DynamicDictionary

Constructors

DynamicDictionary 构造新实例。
DynamicDictionary(IDictionarystring, object) 用现有字典构造新实例。

Properties

Public Properties

CountGets the number of elements contained in the ICollectionT.
(Inherited from DynamicDictionaryTVal)
IsReadOnly 指示本集合是否为只读。
(Inherited from DynamicDictionaryTVal)
ItemGets or sets the element with the specified key.
(Inherited from DynamicDictionaryTVal)
KeysGets an ICollectionT containing the keys of the IDictionaryTKey, TValue.
(Inherited from DynamicDictionaryTVal)
ValuesGets an ICollectionT containing the values in the IDictionaryTKey, TValue.
(Inherited from DynamicDictionaryTVal)

Methods

Public Methods

Add(KeyValuePairstring, TVal) 添加指定键值对中的内容。
(Inherited from DynamicDictionaryTVal)
Add(string, TVal)Adds an element with the provided key and value to the IDictionaryTKey, TValue.
(Inherited from DynamicDictionaryTVal)
ClearRemoves all items from the ICollectionT.
(Inherited from DynamicDictionaryTVal)
Contains 确定是否包含带有 指定键值对中的内容 的元素。
(Inherited from DynamicDictionaryTVal)
ContainsKeyDetermines whether the IDictionaryTKey, TValue contains an element with the specified key.
(Inherited from DynamicDictionaryTVal)
ContainsValue 确定是否包含带有指定值的元素。
(Inherited from DynamicDictionaryTVal)
CopyToCopies the elements of the ICollectionT to an Array, starting at a particular Array index.
(Inherited from DynamicDictionaryTVal)
CreateDynamicListFrom(IListDictionarystring, object) 使用现有字典类列表,创建值类型为 object 的动态字典类列表。
CreateDynamicListFrom(IListIDictionarystring, object) 使用现有字典接口列表,创建值类型为 object 的动态字典类列表。
CreateDynamicListFrom(Listobject) 使用现有动态对象列表,创建值类型为 object 的动态字典类列表。
GetEnumeratorReturns an enumerator that iterates through the collection.
(Inherited from DynamicDictionaryTVal)
Remove(KeyValuePairstring, TVal) 移除带有 指定键值对中的内容 的元素。
(Inherited from DynamicDictionaryTVal)
Remove(string)Removes the element with the specified key from the IDictionaryTKey, TValue.
(Inherited from DynamicDictionaryTVal)
TryGetMemberProvides the implementation for operations that get member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.
(Inherited from DynamicDictionaryTVal)
TryGetValueGets the value associated with the specified key.
(Inherited from DynamicDictionaryTVal)
TrySetMemberProvides the implementation for operations that set member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.
(Inherited from DynamicDictionaryTVal)

Fields

Protected Fields

dictionary 本类内部用来存储数据的字典实例,其键值全部被以小写形式存储。
(Inherited from DynamicDictionaryTVal)

See Also