Interface ICustomFormatter
Defines a method that supports custom formatting of the value of an object.
Namespace: System
Assembly: mscorlib.dll
Syntax
public interface ICustomFormatter
Remarks
Available only in mscorlib build with support for System.Reflection.
Methods
| Improve this Doc View SourceFormat(String, Object, IFormatProvider)
Converts the value of a specified object to an equivalent string representation using specified format and culture-specific formatting information.
Declaration
string Format(string format, object arg, IFormatProvider formatProvider)
Parameters
Type | Name | Description |
---|---|---|
String | format | A format string containing formatting specifications. |
Object | arg | An object to format. |
IFormatProvider | formatProvider | An object that supplies format information about the current instance. |
Returns
Type | Description |
---|---|
String | The string representation of the value of arg, formatted as specified by format and formatProvider. |