Dictionary
Represents various extensions for types Dictionary<T, U>
and IDictionary<T, U>.
Provides strongly-typed access to dictionary indexer.
public static ReadOnlyDictionaryView<K, V, T> ConvertValues<K, V, T>(this IReadOnlyDictionary<K, V> dictionary, ref ValueFunc mapper)
Applies lazy conversion for each dictionary value.
public static ReadOnlyDictionaryView<K, V, T> ConvertValues<K, V, T>(this IReadOnlyDictionary<K, V> dictionary, Converter<V, T> mapper)
Applies lazy conversion for each dictionary value.
Deconstruct key/value pair.
Applies specific action to each dictionary
Applies specific action to each dictionary
Adds a key-value pair to the dictionary if the key does not exist.
Adds a key-value pair to the dictionary if the key does not exist.
Generates a value and adds the key-value pair to the dictionary if the key does not
exist.
Generates a value and adds the key-value pair to the dictionary if the key does not
exist.
public static V GetOrInvoke<K, V>(this IDictionary<K, V> dictionary, K key, ref ValueFunc defaultValue)
Gets dictionary value by key if it exists or
invoke defaultValue and
return its result as a default value.
Gets dictionary value by key if it exists or
invoke defaultValue and
return its result as a default value.
Returns get_Item as
delegate attached to the dictionary instance.
Returns get_Item as
delegate attached to the dictionary instance.
Returns set_Item as
delegate attached to the dictionary instance.
Gets the value associated with the specified key.
Gets the value associated with the specified key.
Removes the value with the specified key and return the removed value.