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

Definition

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

C#
public static explicit operator T (Microsoft.Toolkit.HighPerformance.NullableRef<T> reference);

Parameters

reference
NullableRef<T>

The input NullableRef<T> instance.

Returns

T

Exceptions

Thrown if HasValue is false.

Applies to

Product Versions
Windows Community Toolkit 7.0.0, 7.1.0