Box<T>.Implicit Operator

Definition

Overloads

Implicit(Box<T> to T)

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

Implicit(T to Box<T>)

Implicit(Box<T> to T)

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

public static implicit operator T (Microsoft.Toolkit.HighPerformance.Box<T> box);
static member op_Implicit : Microsoft.Toolkit.HighPerformance.Box<'T (requires 'T : struct)> -> 'T
Public Shared Widening Operator CType (box As Box(Of T)) As T

Parameters

box
Box<T>

The input Box<T> instance.

Returns

T

Applies to

Implicit(T to Box<T>)

public static implicit operator Microsoft.Toolkit.HighPerformance.Box<T> (T value);
static member op_Implicit : 'T -> Microsoft.Toolkit.HighPerformance.Box<'T (requires 'T : struct)>
Public Shared Widening Operator CType (value As T) As Box(Of T)

Parameters

value
T

Returns

Applies to