Nullable<T>.HasValue Property

manoj - Oct 12 '21 - - Dev Community

Definition

Gets a value indicating whether the current Nullable object has a valid value of its underlying type.

public bool HasValue { get; }

true if the current Nullable object has a value; false if the current Nullable object has no value.

. . . . . . . . . . . . . . . . . . . . . . . . . . .