Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​IFormatProvider

Assembly: System.Runtime

Provides a mechanism for retrieving an object to control formatting.

Methods

public object
GetFormat​(Type formatType)
formatType An object that specifies the type of format object to return.
Returns An instance of the object specified by <paramref name="formatType" /> , if the <see cref="T:System.IFormatProvider" /> implementation can supply that type of object; otherwise, <see langword="null" /> .
Returns an object that provides formatting services for the specified type.