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 static 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(IFormatProvider, string, params object[])
Replaces one or more format items in a specified string with the string representation of a specific object.
Declaration
public static 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(string, object, object, object)
Replaces one or more format items in a specified string with the string representation of a specific object.
Declaration
public static string Format(string format, object arg0, object arg1, object arg2)
Parameters
Type | Name | Description |
---|---|---|
string | format | A composite format string. |
object | arg0 | |
object | arg1 | |
object | arg2 |
Returns
Type | Description |
---|---|
string | Returns the formatted input with items replaced with their string representation. |
Format(string, object, object)
Replaces one or more format items in a specified string with the string representation of a specific object.
Declaration
public static string Format(string format, object arg0, object arg1)
Parameters
Type | Name | Description |
---|---|---|
string | format | A composite format string. |
object | arg0 | |
object | arg1 |
Returns
Type | Description |
---|---|
string | Returns the formatted input with items replaced with their string representation. |
Format(string, object)
Replaces one or more format items in a specified string with the string representation of a specific object.
Declaration
public static string Format(string format, object arg0)
Parameters
Type | Name | Description |
---|---|---|
string | format | A composite format string. |
object | arg0 |
Returns
Type | Description |
---|---|
string | Returns the formatted input with items replaced with their string representation. |