src/Foundation/Data/Gimela.Data.DataStructures/Collections/BidirectionalCollection.cs
/// <summary>
/// Find the TFirst corresponing to the Second second.
/// Throws an exception if second is not in the dictionary.
/// </summary>
/// <param name="second">the key to search for</param>
/// <returns>the item corresponding to second</returns>
Find the TFirst corresponing to the Second second.
Throws an exception if second is not in the dictionary.
Find the TFirst corresponing to the Second second . Throws an exception if second is not in the dictionary .
public TFirst GetBySecond(TSecond second)
    {
      TFirst first;
      if (!secondToFirst.TryGetValue(second, out first))
        throw new KeyNotFoundException("Cannot find first by second.");
      return first;
    }
public TFirst GetBySecond ( TSecond second ) { TFirst first ; if ( ! secondToFirst . TryGetValue ( second , out first ) ) throw new KeyNotFoundException ( " " ) ; return first ; }
Find the TFirst corresponing to the Second second.
Find the TFirst corresponing to the Second second .
the item corresponding to second
the item corresponding to second
second
TSecond
the key to search for
the key to search for