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