Method FormatSmart
FormatSmart(string, params object[])
Formats the specified arguments using this string as a template.
Declaration
public static string FormatSmart(this string format, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
string | format | The template that defines how the arguments are formatted |
object[] | args | A list of arguments to be used in formatting |
Returns
Type | Description |
---|---|
string |
FormatSmart(string, ref FormatCache, params object[])
Formats the specified arguments using this string as a template. Caches the parsing results for increased performance.
Declaration
public static string FormatSmart(this string format, ref FormatCache cache, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
string | format | The template that defines how the arguments are formatted |
FormatCache | cache | Outputs an object that increases performance if the same format string is used repeatedly. |
object[] | args | A list of arguments to be used in formatting |
Returns
Type | Description |
---|---|
string |