Box<T>.GetFrom(Object) Method

Definition

Returns a Box<T> reference from the input Object instance.

public static Microsoft.Toolkit.HighPerformance.Box<T> GetFrom (object obj);
static member GetFrom : obj -> Microsoft.Toolkit.HighPerformance.Box<'T (requires 'T : struct)>
Public Shared Function GetFrom (obj As Object) As Box(Of T)

Parameters

obj
Object

The input Object instance, representing a boxed T value.

Returns

A Box<T> reference pointing to obj.

Applies to