Edit

Share 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*)

Source:
Ref%7BT%7D.cs

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

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

Parameters

pointer
Void*

The pointer to the target value.

Applies to

Ref<T>(T)

Source:
Ref%7BT%7D.cs

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

public Ref(ref T value);
new CommunityToolkit.HighPerformance.Ref<'T> : 'T -> CommunityToolkit.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)

Source:
Ref%7BT%7D.cs
public Ref(object owner, ref T value);
new CommunityToolkit.HighPerformance.Ref<'T> : obj * 'T -> CommunityToolkit.HighPerformance.Ref<'T>
Public Sub New (owner As Object, ByRef value As T)

Parameters

owner
Object
value
T

Applies to