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+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
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