Editar

Compartilhar via


Ref<T> Constructors

Definition

Overloads

Ref<T>(Void*)

Initializes a new instance of the Ref<T> struct.

Ref<T>(T)

Initializes a new instance of the Ref<T> struct.

Ref<T>(Object, T)

Ref<T>(Void*)

Initializes a new instance of the Ref<T> struct.

public Ref (void* pointer);
new Microsoft.Toolkit.HighPerformance.Ref<'T> : nativeptr<unit> -> Microsoft.Toolkit.HighPerformance.Ref<'T>

Parameters

pointer
Void*

The pointer to the target value.

Applies to

Ref<T>(T)

Initializes a new instance of the Ref<T> struct.

public Ref (ref T value);
new Microsoft.Toolkit.HighPerformance.Ref<'T> : 'T -> Microsoft.Toolkit.HighPerformance.Ref<'T>
Public Sub New (ByRef value As T)

Parameters

value
T

The reference to the target T value.

Applies to

Ref<T>(Object, T)

public Ref (object owner, ref T value);
new Microsoft.Toolkit.HighPerformance.Ref<'T> : obj * 'T -> Microsoft.Toolkit.HighPerformance.Ref<'T>
Public Sub New (owner As Object, ByRef value As T)

Parameters

owner
Object
value
T

Applies to