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