Name
ICustomFormatter
Synopsis
This interface provides a custom
formatter, which returns string
information for supplied objects based on custom criteria. The
ICustomFormatter
interface contains a single
Format( )
method. This method accepts a
format
string and an
IFormatProvider
object and uses this criteria to
determine which string to return for the specified object.
public interface ICustomFormatter { // Public Instance Methods public string Format(stringformat
, objectarg
, IFormatProviderformatProvider
); }
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.