Optional<T>.HasValue property

Gets a value indicating whether the current Optional{T} object has a value.

public bool HasValue { get; }

See Also