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+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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