Method Format
Format(string, params object[])
Replaces one or more format items in a specified string with the string representation of a specific object.
Declaration
public string Format(string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
string | format | A composite format string. |
object[] | args | The object to format. |
Returns
Type | Description |
---|---|
string | Returns the formatted input with items replaced with their string representation. |
Format(IList<object>, string)
Replaces one or more format items in a specified string with the string representation of a specific object.
Declaration
public string Format(IList<object> args, string format)
Parameters
Type | Name | Description |
---|---|---|
IList<object> | args | The list of objects to format. |
string | format | A composite format string. |
Returns
Type | Description |
---|---|
string | Returns the formatted input with items replaced with their string representation. |
Format(IFormatProvider, string, params object[])
Replaces one or more format items in a specified string with the string representation of a specific object.
Declaration
public string Format(IFormatProvider provider, string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
IFormatProvider | provider | The IFormatProvider to use. |
string | format | A composite format string. |
object[] | args | The object to format. |
Returns
Type | Description |
---|---|
string | Returns the formatted input with items replaced with their string representation. |
Format(IFormatProvider, IList<object>, string)
Replaces one or more format items in a specified string with the string representation of a specific object.
Declaration
public string Format(IFormatProvider provider, IList<object> args, string format)
Parameters
Type | Name | Description |
---|---|---|
IFormatProvider | provider | The IFormatProvider to use. |
IList<object> | args | The object to format. |
string | format | A composite format string. |
Returns
Type | Description |
---|---|
string | Returns the formatted input with items replaced with their string representation. |
Format(FormattingInfo)
Format the FormattingInfo argument.
Declaration
public virtual void Format(FormattingInfo formattingInfo)
Parameters
Type | Name | Description |
---|---|---|
FormattingInfo | formattingInfo |