DEV Community

manoj
manoj

Posted on

Nullable<T>.HasValue Property

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.

Top comments (0)