IFormattable

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
Exam Prep. Guides
Exam 70-536 Study Guide

1. Types and collections

2. Process, threading,…
3. Embedding features
4. Serialization, I/O
5. .NET Security
6. Interop., reflection,…
7. Global., drawing, text

edit

Contents


The System.IFormattable interface define a method for formatting the value of an object into a string representation.


Syntax

Declaration syntax

[ComVisibleAttribute(true)] 
public interface IFormattable

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.


MSDN references


Personal tools