IFormattable
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
Contents |
The System.IFormattable interface define a method for formatting the value of an object into a string representation.
[edit]
Syntax
[edit]
Declaration syntax
[ComVisibleAttribute(true)] public interface IFormattable
[edit]
Method syntax
The ToString method formats the value of the current instance using the specified format.
string ToString ( string format, IFormatProvider formatProvider )
where format specifies the format to be used;
formatProvider specifies the IFormatProvider to use in formatting the value. If null, the numeric format information from the current locale setting of the operating system is used.
[edit]