InputComponentBaseTGetPropertyNameTSource, TProperty Method

Returns name of the property. (class -> property) must be the input.

Definition

Namespace: MobileTrack.Web.Components.Views
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
protected static string GetPropertyName<TSource, TProperty>(
	Expression<Func<TSource, TProperty>> propertyLambda
)

Parameters

propertyLambda  ExpressionFuncTSource, TProperty
Expression for the property to get the name from.

Type Parameters

TSource
Business object
TProperty
Property to select

Return Value

String
Retrieve property name

Exceptions

ArgumentExceptionThrown if propertyLambda isn't a class -> property input.

See Also