Modifica

Condividi tramite


BoxExtensions.GetReference<T>(Box<T>) Method

Definition

Gets a T reference from a Box<T> instance.

public static ref T GetReference<T> (this Microsoft.Toolkit.HighPerformance.Box<T> box) where T : struct;
static member GetReference : Microsoft.Toolkit.HighPerformance.Box<'T (requires 'T : struct)> -> 'T (requires 'T : struct)
<Extension()>
Public Function GetReference(Of T As Structure) (box As Box(Of T)) As T

Type Parameters

T

The type of reference to retrieve.

Parameters

box
Box<T>

The input Box<T> instance.

Returns

T

A T reference to the boxed value within box.

Applies to