Source/Csla/NameValueListBase.cs
/// <summary>
/// Returns the key corresponding to the
/// first occurance of the specified value
/// in the list.
/// </summary>
/// <param name="value">Value for which to retrieve the key.</param>
Returns the key corresponding to the
first occurance of the specified value
in the list.
Returns the key corresponding to the first occurance of the specified value in the list .
public K Key(V value)
    {
      foreach (NameValuePair item in this)
        if (item.Value.Equals(value))
          return item.Key;
      return default(K);
    }
public K Key ( V value ) { foreach ( NameValuePair item in this ) if ( item . Value . Equals ( value ) ) return item . Key ; return default ( K ) ; }
Returns the key corresponding to the
first occurance of the specified value
in the list.
Returns the key corresponding to the first occurance of the specified value in the list .
value
V
Value for which to retrieve the key.
Value for which to retrieve the key .