Provide support to format object with null. More...

Inheritance diagram for DokanNet.FormatProviders:

Public Member Functions

object GetFormat (Type formatType)
 Returns an object that provides formatting services for the specified type. More...
 
string Format (string format, object arg, IFormatProvider formatProvider)
 Converts the value of a specified object to an equivalent string representation using specified format and culture-specific formatting information. More...
 

Static Public Member Functions

static string DokanFormat (FormattableString formattable)
 Format a FormattableString using DefaultFormatProvider. More...
 

Public Attributes

const string NullStringRepresentation = "<null>"
 A constant string that represents what to use if the formated object is null. More...
 

Static Public Attributes

static readonly FormatProviders DefaultFormatProvider = new FormatProviders()
 A Singleton instance of this class. More...
 

Detailed Description

Provide support to format object with null.

Member Function Documentation

static string DokanNet.FormatProviders.DokanFormat ( FormattableString  formattable)
static

Format a FormattableString using DefaultFormatProvider.

Parameters
formattableThe FormattableString to format.
Returns
The formated string.
string DokanNet.FormatProviders.Format ( string  format,
object  arg,
IFormatProvider  formatProvider 
)
inline

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

Returns
The string representation of the value of arg , formatted as specified by format and formatProvider .
Parameters
formatA format string containing formatting specifications.
argAn object to format.
formatProviderAn object that supplies format information about the current instance.
object DokanNet.FormatProviders.GetFormat ( Type  formatType)
inline

Returns an object that provides formatting services for the specified type.

Returns
An instance of the object specified by formatType , if the T:System.IFormatProvider implementation can supply that type of object; otherwise, null.
Parameters
formatTypeAn object that specifies the type of format object to return.

Member Data Documentation

readonly FormatProviders DokanNet.FormatProviders.DefaultFormatProvider = new FormatProviders()
static

A Singleton instance of this class.

const string DokanNet.FormatProviders.NullStringRepresentation = "<null>"

A constant string that represents what to use if the formated object is null.


The documentation for this class was generated from the following file:
  • NullFormatProvider.cs