Edit

Share via


ValueTypeSetter<TDeclaring,TField> Delegate

Definition

The delegate used to set fields in value types.

public delegate void ValueTypeSetter<TDeclaring,in TField>(ref TDeclaring instance, TField value);
type ValueTypeSetter<'Declaring, 'Field> = delegate of 'Declaring * 'Field -> unit
Public Delegate Sub ValueTypeSetter(Of TDeclaring, In TField)(ByRef instance As TDeclaring, value As TField)

Type Parameters

TDeclaring

The declaring type of the field.

TField

The field type.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Parameters

instance
TDeclaring

The instance having its field set.

value
TField

The value being set.

Applies to