Edytuj

Udostępnij za pośrednictwem


Box<T>.DangerousGetFrom(Object) Method

Definition

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

public static Microsoft.Toolkit.HighPerformance.Box<T> DangerousGetFrom (object obj);
static member DangerousGetFrom : obj -> Microsoft.Toolkit.HighPerformance.Box<'T (requires 'T : struct)>
Public Shared Function DangerousGetFrom (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.

Remarks

This method doesn't check the actual type of obj, so it is responsibility of the caller to ensure it actually represents a boxed T value and not some other instance.

Applies to