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