WebExtensionsCreateFieldIdentifierT, TProperty Method

Creates a FieldIdentifier for an accessor expression.

Definition

Namespace: MobileTrack.Web.Components.Extensions
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public static FieldIdentifier CreateFieldIdentifier<T, TProperty>(
	T model,
	Expression<Func<T, TProperty>> accessor
)

Parameters

model  T
Model of the item
accessor  ExpressionFuncT, TProperty
Accessor to create the FieldIdentifier for

Type Parameters

T
Item type
TProperty
Property type

Return Value

FieldIdentifier
Generated FieldIdentifier

Exceptions

ArgumentExceptionInvoked if accessor's body is not a MemberExpression.
ArgumentNullExceptionInvoked if model or accessor are .

See Also