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: void AddSafe<K, V>(this IDictionary<K, List<V>>, K, V)Declarationpublic static void AddSafe<K, V>(
this IDictionary<K, List<V>> dic,
K key,
V value
)Summary
Adds an element to a List<V> stored in the current IDictionary<K, List<V>>. If the specified
key does not exist in the current IDictionary, a new List is created. Generic type parameters| K |
Type of the key of the IDictionary. | | V |
Type of the values in the Lists. |
Parameters| this IDictionary<K, List<V>> | dic |
IDictionary to operate on. | | K | key |
Key at which the list is located in the IDictionary. | | V | value |
Value to add to the List located at the specified Key. |
|