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

Creates the delegate setter for an indexed property.

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

Syntax


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

Type Parameters

TTarget
The type of the target object.
TIndex
The type of the index parameter.
TProperty
The type of the property.

Return Value

Func<TTarget, TProperty>.

Exceptions


ExceptionCondition
InvalidOperationExceptionCanReadIndexed is false for property {Name}

Remarks


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