Castle.Facilities.NHibernateIntegration.Util.FieldInfoCollection.GetByKey C# (CSharp) Method

GetByKey() public method

Gets the FieldInfo element associated with the first occurrence of the specified MemberInfo.Name value.
GetByKey compares the specified key to the value of the MemberInfo.Name property of each FieldInfo element, and returns the first matching element.
public GetByKey ( string key ) : FieldInfo
key string /// The /// value whose element to get. /// This argument may be a null reference. ///
return FieldInfo
		public FieldInfo GetByKey(string key)
		{
			int index = IndexOfKey(key);
			if (index >= 0) return _data.Items[index];
			return null;
		}