Edit

Share via


NullableReadOnlyRef<T>.Explicit Operator

Definition

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

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

Parameters

reference
NullableReadOnlyRef<T>

The input NullableReadOnlyRef<T> instance.

Returns

T

Exceptions

Thrown if HasValue is false.

Applies to