Castle.Facilities.NHibernateIntegration.Util.FieldInfoCollection.GetByKey C# (CSharp) 메소드

GetByKey() 공개 메소드

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. ///
리턴 FieldInfo
		public FieldInfo GetByKey(string key)
		{
			int index = IndexOfKey(key);
			if (index >= 0) return _data.Items[index];
			return null;
		}