mscorlib(4.0.0.0) API with additions
System.IFormattable Interface Reference

Provides functionality to format the value of an object into a string representation. More...

Inheritance diagram for System.IFormattable:
[legend]

Public Member Functions

string ToString (string format, IFormatProvider formatProvider)
 Formats the value of the current instance using the specified format. More...
 

Detailed Description

Provides functionality to format the value of an object into a string representation.

Definition at line 8 of file IFormattable.cs.

Member Function Documentation

◆ ToString()

string System.IFormattable.ToString ( string  format,
IFormatProvider  formatProvider 
)

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

Parameters
formatThe 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.
formatProviderThe 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.
Returns
The value of the current instance in the specified format.

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.


The documentation for this interface was generated from the following file: