PropertyMetadata..::..CreateDelegateGetter<(Of <(<'TTarget, TProperty>)>)> Method

Creates the delegate setter.

Namespace:  Tortuga.Anchor.Metadata
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public Func<TTarget, TProperty> CreateDelegateGetter<TTarget, TProperty>()
Public Function CreateDelegateGetter(Of TTarget, TProperty) As Func(Of TTarget, TProperty)

Type Parameters

TTarget
The type of the target object.
TProperty
The type of the property.

Return Value

Func<TTarget, TProperty>.

Exceptions


ExceptionCondition
InvalidOperationExceptionCanRead is false for property {Name}

Remarks


This is much faster than calling InvokeGet, but you must provide the correct TTarget and TProperty arguments.