Class DictionaryExtensions
Inheritance
System.Object
DictionaryExtensions
Namespace: Aximo
Assembly: AxCommon.dll
Syntax
public static class DictionaryExtensions
Methods
|
Improve this Doc
View Source
Set<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
Declaration
public static void Set<TKey, TValue>(this IDictionary<TKey, TValue> dict, TKey key, TValue value)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<TKey, TValue> |
dict |
|
TKey |
key |
|
TValue |
value |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
|
Improve this Doc
View Source
Set<TKey, TValue>(IDictionary<TKey, TValue>, TKey, Func<TValue>)
Declaration
public static void Set<TKey, TValue>(this IDictionary<TKey, TValue> dict, TKey key, Func<TValue> getValue)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<TKey, TValue> |
dict |
|
TKey |
key |
|
System.Func<TValue> |
getValue |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
|
Improve this Doc
View Source
TryAdd<TKey, TValue>(IDictionary<TKey, TValue>, TKey, TValue)
Declaration
public static bool TryAdd<TKey, TValue>(this IDictionary<TKey, TValue> dict, TKey key, TValue value)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<TKey, TValue> |
dict |
|
TKey |
key |
|
TValue |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Name |
Description |
TKey |
|
TValue |
|