mscorlib(4.0.0.0) API with additions
|
Provides functionality to format the value of an object into a string representation. More...
Public Member Functions | |
string | ToString (string format, IFormatProvider formatProvider) |
Formats the value of the current instance using the specified format. More... | |
Provides functionality to format the value of an object into a string representation.
Definition at line 8 of file IFormattable.cs.
string System.IFormattable.ToString | ( | string | format, |
IFormatProvider | formatProvider | ||
) |
Formats the value of the current instance using the specified format.
format | The format to use.-or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the T:System.IFormattable implementation. |
formatProvider | The provider to use to format the value.-or- A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system. |
Implemented in System.DateTime, System.Guid, System.DateTimeOffset, System.Enum, System.TimeSpan, System.Decimal, System.Double, System.Single, System.Byte, System.Int32, System.Int64, System.UInt32, System.UInt64, System.UInt16, System.SByte, and System.Int16.