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

◆ try_parse()

template<typename type_t >
static bool xtd::box< type_t >::try_parse ( const xtd::string value,
type_t &  result 
)
inlinestaticnoexcept

Converts the string to its type_t equivalent. A return value indicates whether the conversion succeeded or failed.

Parameters
valueA string containing a type_t to convert.
resultA type_t equivalent to the number contained in value.
Returns
true if s was converted successfully; otherwise, false.