Confuser.Core/Utils.cs
/// <summary>
///     Adds the specified key and value to the multi dictionary.
/// </summary>
/// <typeparam name="TKey">The type of key.</typeparam>
/// <typeparam name="TValue">The type of value.</typeparam>
/// <param name="self">The dictionary to add to.</param>
/// <param name="key">The key of the element to add.</param>
/// <param name="value">The value of the element to add.</param>
/// <exception cref="System.ArgumentNullException">key is <c>null</c>.</exception>
Adds the specified key and value to the multi dictionary.
Adds the specified key and value to the multi dictionary .
public static void AddListEntry<TKey, TValue>(this IDictionary<TKey, List<TValue>> self, TKey key, TValue value)
        {
            if (key == null)
                throw new ArgumentNullException("key");
            List<TValue> list;
            if (!self.TryGetValue(key, out list))
                list = self[key] = new List<TValue>();
            list.Add(value);
        }
public static void AddListEntry < TKey , TValue > ( this IDictionary < TKey , List < TValue > > self , TKey key , TValue value ) { if ( key == null ) throw new ArgumentNullException ( " " ) ; List < TValue > list ; if ( ! self . TryGetValue ( key , out list ) ) list = self [ key ] = new List < TValue > ( ) ; list . Add ( value ) ; }
Adds the specified key and value to the multi dictionary.
Adds the specified key and value to the multi dictionary .
key is null
key is null
IDictionary<TKey, List<TValue>>
this
key
TKey
The key of the element to add.
The key of the element to add .
value
TValue
The value of the element to add.
The value of the element to add .
self
The dictionary to add to.
The dictionary to add to .
typeparam
The type of key.
The type of key .
typeparam
The type of value.
The type of value .