/// <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 _)); }
/// <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 _)); }