Provides methods for manipulating dictionaries.
public static class DictionaryUtility
name | description |
---|---|
static AreEqual<TKey,TValue>(…) | Returns true if there is a one-to-one relationship between every key-value pair. |
static AsReadOnly<TKey,TValue>(…) | Wraps the dictionary in a read-only dictionary. |
static AsReadOnlyDictionary<TKey,TValue>(…) | Represents the sequence of key-value pairs as a IReadOnlyDictionary. |
static GetOrAddValue<TKey,TValue>(…) | Gets a value from the dictionary, adding and returning a new instance if it is missing. (2 methods) |
static GetValueOrDefault<TKey,TValue>(…) | Gets a value from the dictionary, returning the generated default value if it is missing. |