NullableRef<T>.Explicit(NullableRef<T> to T) Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.