O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 method string Format(string format, object arg, 
        IFormatProvider formatProvider);  
}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required