Nu/Nu.Math/OrderedDictionary.cs
/// <summary>
/// Removes the key/value pair with the given key from the dictionary.
/// </summary>
/// <param name="key">The key of the pair to remove.</param>
/// <returns>True if the key was found and the pair removed; otherwise, false.</returns>
/// <exception cref="System.ArgumentNullException">The key is null.</exception>
Removes the key/value pair with the given key from the dictionary.
Removes the key / value pair with the given key from the dictionary .
public bool Remove(TKey key)
        {
            if (dictionary.TryGetValue(key, out int index))
            {
                RemoveAt(index);
                return true;
            }
            return false;
        }
public bool Remove ( TKey key ) { if ( dictionary . TryGetValue ( key , out int index ) ) { RemoveAt ( index ) ; return true ; } return false ; }
Removes the key/value pair with the given key from the dictionary.
Removes the key / value pair with the given key from the dictionary .
True if the key was found and the pair removed; otherwise, false.
True if the key was found and the pair removed ; otherwise false .
The key is null.
The key is null .
key
TKey
The key of the pair to remove.
The key of the pair to remove .