Optional<T>.ToString method

Returns the text representation of the value of the current Optional{T} object.

public override string ToString()

Return Value

The text representation of the object returned by the Value property if the HasValue property is true and the Value is not null; otherwise the empty string.

See Also