BoxExtensions.GetReference<T>(Box<T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
T
A T
reference to the boxed value within box
.