ReadOnlyRef<T> Struct

Definition

A struct that can store a readonly reference to a value of a specified type.

public readonly ref struct ReadOnlyRef<T>
type ReadOnlyRef<'T> = struct
Public Structure ReadOnlyRef(Of T)

Type Parameters

T

The type of value to reference.

Inheritance
ReadOnlyRef<T>

Constructors

ReadOnlyRef<T>(Object, T)
ReadOnlyRef<T>(T)

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

ReadOnlyRef<T>(Void*)

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

Properties

Value

Gets the readonly T reference represented by the current Ref<T> instance.

Operators

Implicit(ReadOnlyRef<T> to T)

Implicitly gets the T value from a given ReadOnlyRef<T> instance.

Implicit(Ref<T> to ReadOnlyRef<T>)

Applies to