Optional<T>.Value property

Gets the value of the current Optional{T} value.

public T Value { get; }

Exceptions

exception condition
InvalidOperationException The HasValue property is false.

See Also