src/Foundation/Data/Gimela.Data.DataStructures/Collections/BidirectionalCollection.cs
/// <summary>
/// Remove the record containing first, if there is one.
/// </summary>
/// <param name="first"></param>
/// <returns>If first is not in the dictionary, returns false, otherwise true</returns>
Remove the record containing first, if there is one.
Remove the record containing first if there is one .
public bool TryRemoveByFirst(TFirst first)
    {
      TSecond second;
      if (!firstToSecond.TryGetValue(first, out second))
        return false;
      firstToSecond.Remove(first);
      secondToFirst.Remove(second);
      return true;
    }
public bool TryRemoveByFirst ( TFirst first ) { TSecond second ; if ( ! firstToSecond . TryGetValue ( first , out second ) ) return false ; firstToSecond . Remove ( first ) ; secondToFirst . Remove ( second ) ; return true ; }
Remove the record containing first, if there is one.
Remove the record containing first if there is one .
If first is not in the dictionary, returns false, otherwise true
If first is not in the dictionary returns false otherwise true
first
TFirst
None