Source/Csla/NameValueListBase.cs
/// <summary>
/// Get the item for the first matching
/// key in the collection.
/// </summary>
/// <param name="key">
/// Key to search for in the list.
/// </param>
/// <returns>Item from the list.</returns>
Get the item for the first matching
key in the collection.
Get the item for the first matching key in the collection .
public NameValuePair GetItemByKey(K key)
    {
      foreach (NameValuePair item in this)
      {
        if (item != null && item.Key.Equals(key))
        {
          return item;
        }
      }
      return null;
    }
public NameValuePair GetItemByKey ( K key ) { foreach ( NameValuePair item in this ) { if ( item != null && item . Key . Equals ( key ) ) { return item ; } } return null ; }
Get the item for the first matching
key in the collection.
Get the item for the first matching key in the collection .
Item from the list.
Item from the list .
key
K
Key to search for in the list.
Key to search for in the list .