DictionaryExtensions Methods |
The DictionaryExtensions type exposes the following members.
Name | Description | |
---|---|---|
AsRestrictedAccessDictionaryTKey, TValue(IDictionaryTKey, TValue) |
Creates a shallow ReadOnly dictionary wrapper around the given dictionary.
| |
AsRestrictedAccessDictionaryTKey, TValue(IDictionaryTKey, TValue, AccessFlags) |
Creates a shallow restricted access dictionary wrapper around the given dictionary. Only access specified by the flags is allowed.
| |
GetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey) |
Gets a value from a dictionary. If they value is not there, adds the default value to the dictionary and returns that.
Not thread safe because it can add items to the dictionary.
| |
GetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey, Boolean) |
Returns the value associated with key in the dictionary. If not present, adds the default value to the dictionary and returns that
value.
| |
GetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey, TValue) |
Returns the value associated with key in the dictionary. If not present, adds the default value to the dictionary and returns that
value.
| |
GetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey, FuncTValue, Boolean) |
Returns the value associated with key in the dictionary. If not present, adds the default value to the dictionary and returns that
value.
| |
GetValueOrDefaultTKey, TValue(IDictionaryTKey, TValue, TKey, TValue, Boolean) |
Returns the value associated with key in the dictionary. If not present, adds the default value to the dictionary and returns that
value.
| |
InvertTKey, TValue |
With throw exception if not 1-1 mapping.
|