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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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