Click or drag to resize
PropertyUtilsTTypeGetPropertyInfoTValue Method
Can be used to get the property info of a known class property.

Usage:

PropertyInfo propertyInfo = PropertyUtils{ClassType}.GetPropertyInfo(x => x.Property);

Namespace: Slash.Reflection.Utils
Assembly: Slash.Reflection (in Slash.Reflection.dll) Version: 1.0.6018.40175
Syntax
public static PropertyInfo GetPropertyInfo<TValue>(
	Expression<Func<TType, TValue>> selector
)

Parameters

selector
Type: System.Linq.ExpressionsExpressionFuncTType, TValue
Lambda expression in this form: x => x.PropertyName.

Type Parameters

TValue
Property type.

Return Value

Type: PropertyInfo
Property info of property with property name "PropertyName" of specified class.
See Also