If I specifiy a FormatString property for some databound value of {0:00000}, where I want a number to always have five digits, padded with ‘0’ where necessary, what method on what class is actually invoked to perform the formatting and return the formatted string?
If I specifiy a FormatString property for some databound value of {0:00000}, where I
Share
It is the formatted object itself, its class has to implement IFormattable
And so any type, like
struct Int32can do its own formatting. In absence of the interfaceFormat()defaults to the normalToString().