Optional<T>.HasValue Property

Definition

Returns true if the Value will return a meaningful value.

public:
 property bool HasValue { bool get(); };
public bool HasValue { get; }
member this.HasValue : bool
Public ReadOnly Property HasValue As Boolean

Property Value

Applies to