PropertyMetadata..::..CreateDelegateSetter<(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 Action<TTarget, TIndex, TProperty> CreateDelegateSetter<TTarget, TIndex, TProperty>()
Public Function CreateDelegateSetter(Of TTarget, TIndex, TProperty) As Action(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

Action<TTarget, TProperty>.

Exceptions


ExceptionCondition
InvalidOperationExceptionCanWriteIndexed is false for property {Name}

Remarks


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