NullableExtensions Class

Definition

Helpers for working with the Nullable<T> type.

C#
public static class NullableExtensions
Inheritance
NullableExtensions

Methods

DangerousGetValueOrDefaultReference<T>(Nullable<T>)

Returns a reference to the value of the input Nullable<T> instance, regardless of whether the HasValue property is returning true or not. If that is not the case, this method will still return a reference to the underlying default value.

Applies to

Product Versions
Windows Community Toolkit 7.0.0, 7.1.0