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

◆ to_string()

virtual xtd::string xtd::iformatable::to_string ( const xtd::string format,
const std::locale &  loc 
) const
pure virtual

Formats the value of the current instance using the specified format.

Parameters
formatThe format to use
-or-
A xtd::string::empty_string ("") to use the default format defined for the type of the xtd::iformattable implementation.
locAn std::locale object that contains locale information (see std::locale).
Returns
The value of the current instance in the specified format.

Implemented in xtd::date_time, xtd::guid, xtd::time_span, xtd::box< type_t >, and xtd::enum_object< enum_t >.