Nettiers.AdventureWorks.Entities.EntityUtil.GetProperty C# (CSharp) Method

GetProperty() public static method

Gets a PropertyInfo object representing the property belonging to the object having the specified name.
public static GetProperty ( Object item, String propertyName ) : PropertyInfo
item Object An object instance.
propertyName String The property name.
return System.Reflection.PropertyInfo
		public static PropertyInfo GetProperty(Object item, String propertyName)
		{
			PropertyInfo prop = null;
			
			if ( item != null )
			{
				prop = GetProperty(item.GetType(), propertyName);
			}

			return prop;
		}

Same methods

EntityUtil::GetProperty ( Type type, String propertyName ) : PropertyInfo