Modifier

Partager via


NullableRef<T>.Explicit(NullableRef<T> to T) Operator

Definition

Explicitly gets the T value from a given NullableRef<T> instance.

public static explicit operator T (Microsoft.Toolkit.HighPerformance.NullableRef<T> reference);
static member op_Explicit : Microsoft.Toolkit.HighPerformance.NullableRef<'T> -> 'T
Public Shared Narrowing Operator CType (reference As NullableRef(Of T)) As T

Parameters

reference
NullableRef<T>

The input NullableRef<T> instance.

Returns

T

Exceptions

Thrown if HasValue is false.

Applies to