Provides functionality to format the value of an object into a string representation.
Public Methods | |
| virtual xtd::string | to_string (const xtd::string &format, const globalization::culture_info &culture) const =0 |
| Formats the value of the current instance using the specified format. | |
|
pure virtual |
Formats the value of the current instance using the specified format.
| format | The format to use -or- A xtd::string::empty_string ("") to use the default format defined for the type of the xtd::iformattable implementation. |
| culture | An xtd::globalization::culture_info object that contains culture information. |
Implemented in xtd::box< type_t >, xtd::box< bool >, xtd::box< bool >, xtd::date_time, xtd::enum_object< enum_t >, xtd::guid, and xtd::time_span.