xtd 0.2.0
Loading...
Searching...
No Matches

◆ value()

const object & xtd::any_object::value ( ) const
inline

Gets the value of the current xtd::any_object object if it has been assigned a valid underlying value.

Returns
The value of the current xtd::any_object object if the xtd::any_object::has_value property is true. An exception is thrown if the xtd::any_object::has_value property is false.
Exceptions
xtd::invalid_operation_exceptionThe xtd::any_object::has_value property is false.