Core/CafeLib.Core.Collections/Dictionary/OrderedDictionary.cs
/// <summary>
/// Removes the entry with the specified key from the <see cref="OrderedDictionary{TKey,TValue}">OrderedDictionary&lt;TKey,TValue&gt;</see> collection.
/// </summary>
/// <param name="key">The key of the entry to remove</param>
/// <returns><see langword="true"/> if the key was found and the corresponding element was removed; otherwise, <see langword="false"/></returns>
Removes the entry with the specified key from the OrderedDictionary
Removes the entry with the specified key from the OrderedDictionary
public bool Remove(TKey key)
        {
            if (null == key)
                throw new ArgumentNullException(nameof(key));
            int index = IndexOfKey(key);
            if (index < 0 || !Dictionary.Remove(key)) return false;
            List.RemoveAt(index);
            return true;
        }
public bool Remove ( TKey key ) { if ( null == key ) throw new ArgumentNullException ( nameof ( key ) ) ; int index = IndexOfKey ( key ) ; if ( index < 0 || ! Dictionary . Remove ( key ) ) return false ; List . RemoveAt ( index ) ; return true ; }
Removes the entry with the specified key from the OrderedDictionary<TKey,TValue>
Removes the entry with the specified key from the OrderedDictionary<TKey TValue >
if the key was found and the corresponding element was removed; otherwise.
if the key was found and the corresponding element was removed ; otherwise .
key
TKey
The key of the entry to remove
The key of the entry to remove