DynamicDictionaryTVal Class
Namespace: QuickAdmin.UtilsAssembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 1.1.6
public class DynamicDictionary<TVal> : DynamicObject,
IDictionary<string, TVal>, ICollection<KeyValuePair<string, TVal>>,
IEnumerable<KeyValuePair<string, TVal>>, IEnumerable
- Inheritance
- object DynamicObject DynamicDictionaryTVal
- Derived
- Implements
- ICollectionKeyValuePairstring, TVal, IDictionarystring, TVal, IEnumerableKeyValuePairstring, TVal, IEnumerable
Type Parameters
- TVal
- 字典中的值的类型。
Public Methods |
Add(KeyValuePairstring, TVal) |
添加指定键值对中的内容。
|
Add(string, TVal) | Adds an element with the provided key and value to the IDictionaryTKey, TValue. |
Clear | Removes all items from the ICollectionT. |
Contains |
确定是否包含带有 指定键值对中的内容 的元素。
|
ContainsKey | Determines whether the IDictionaryTKey, TValue contains an element with the specified key. |
ContainsValue |
确定是否包含带有指定值的元素。
|
CopyTo | Copies the elements of the ICollectionT to an Array, starting at a particular Array index. |
CreateDynamicListFrom(IListDictionarystring, TVal) |
使用现有字典类列表,创建动态字典类列表。
|
CreateDynamicListFrom(IListIDictionarystring, TVal) |
使用现有字典接口列表,创建动态字典类列表。
|
CreateDynamicListFrom(Listobject) |
使用现有动态对象列表,创建动态字典类列表。
|
GetEnumerator | Returns an enumerator that iterates through the collection. |
Remove(KeyValuePairstring, TVal) |
移除带有 指定键值对中的内容 的元素。
|
Remove(string) | Removes the element with the specified key from the IDictionaryTKey, TValue. |
TryGetMember | Provides 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. (Overrides DynamicObjectTryGetMember(GetMemberBinder, object)) |
TryGetValue | Gets the value associated with the specified key. |
TrySetMember | Provides 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. (Overrides DynamicObjectTrySetMember(SetMemberBinder, object)) |
Protected Fields |
dictionary |
本类内部用来存储数据的字典实例,其键值全部被以小写形式存储。
|