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

Creates the delegate setter.

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

Syntax


public Action<TTarget, TProperty> CreateDelegateSetter<TTarget, TProperty>()
Public Function CreateDelegateSetter(Of TTarget, TProperty) As Action(Of TTarget, TProperty)

Type Parameters

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

Return Value

Action<TTarget, TProperty>.

Exceptions


ExceptionCondition
InvalidOperationExceptionCanWrite is false for property {Name}

Remarks


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