AddSafe<>(dic, key1, key2, value, comparer) IndexOf<>(source, predicate, startIndex) IndexOf<>(source, element, comparer) JoinString<>(values, separator, prefix, suffix, lastSeparator) Order<>(source, comparer) SkipLast<>(source, count, throwIfNotEnough) Split<>(source, chunkSize) Split<>(splitWhat, splitWhere) ToDictionary2<>(source, key1Selector, key2Selector, comparer1, comparer2) ToDictionary2<>(source, key1Selector, key2Selector, elementSelector, comparer1, comparer2)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: bool RemoveSafe<K1, K2, V>(this IDictionary<K1, Dictionary<K2, V>>, K1, K2)Declarationpublic static bool RemoveSafe<K1, K2, V>(
this IDictionary<K1, Dictionary<K2, V>> dic,
K1 key1,
K2 key2
)Summary
Removes an element from a two-level Dictionary<,>. If this leaves the inner dictionary empty, the key is
removed from the outer Dictionary. Generic type parameters| K1 |
Type of the key of the outer Dictionary. | | K2 |
Type of the key of the inner Dictionary. | | V |
Type of the values in the inner Dictionary. |
Parameters| this IDictionary<K1, Dictionary<K2, V>> | dic |
Dictionary to operate on. | | K1 | key1 |
Key at which the inner Dictionary is located in the outer Dictionary. | | K2 | key2 |
Key at which the value is located in the inner Dictionary. |
Returns
A value indicating whether a value was removed or not. |