共用方式為


ConditionalValue<TValue>.HasValue Property

Definition

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

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

Property Value

true: Value is valid, false otherwise.

Applies to