Méthode | Description | |
---|---|---|
Format ( string format, object arg, IFormatProvider provider ) : string |
Once string.Format gets the ICustomFormatter, it calls this format method on each argument. This implements the ICustomFormatter interface.
|
|
GetFormat ( Type formatType ) : object |
String.Format calls this method to get an instance of a ICustomFormatter to handle the formatting. In this case the same instance (this) is returned, but it would be possible return an instance of a different type. This method implements IFormatProvider
|
public Format ( string format, object arg, IFormatProvider provider ) : string | ||
format | string | |
arg | object | |
provider | IFormatProvider | |
Résultat | string |
public GetFormat ( Type formatType ) : object | ||
formatType | Type | |
Résultat | object |