Ejemplo n.º 1
0
 /// <summary>
 /// Tries to remove the value with the matching key
 /// </summary>
 /// <param name="key"></param>
 /// <returns></returns>
 public bool TryRemoveKey(TKey key)
 {
     return(InnerDictionary.TryRemove(key, out var _));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Tries to remove a value from the collection
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool Remove(TValue value)
 {
     return(InnerDictionary.TryRemove(KeySelector.Invoke(value), out var _));
 }