Table of Contents

Interface IFormattable

Namespace
System
Assembly
mscorlib.dll

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

public interface IFormattable
Extension Methods

Remarks

Available only in mscorlib build with support for System.Reflection.

Methods

ToString(string, IFormatProvider)

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

string ToString(string format, IFormatProvider formatProvider)

Parameters

format string

The format to use -or- A null reference(Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.

formatProvider IFormatProvider

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.

Returns

string

The value of the current instance in the specified format.