Table of Contents

Interface ICustomFormatter

Namespace
System
Assembly
mscorlib.dll

Defines a method that supports custom formatting of the value of an object.

public interface ICustomFormatter
Extension Methods

Remarks

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

Methods

Format(string, object, IFormatProvider)

Converts the value of a specified object to an equivalent string representation using specified format and culture-specific formatting information.

string Format(string format, object arg, IFormatProvider formatProvider)

Parameters

format string

A format string containing formatting specifications.

arg object

An object to format.

formatProvider IFormatProvider

An object that supplies format information about the current instance.

Returns

string

The string representation of the value of arg, formatted as specified by format and formatProvider.