Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
struct System.​IFormattable
Assembly: System.Runtime
Provides functionality to format the value of an object into a string representation.
Methods
public
string
ToString​(string format,
IFormatProvider formatProvider)
format
The format to use.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic) to use the default format defined for the type of the <see cref="T:System.IFormattable" /> implementation.
formatProvider
The provider to use to format the value.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.
Returns The value of the current instance in the specified format.
Formats the value of the current instance using the specified format.