Method Format
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
Format(bool?, string?, string?, string, params object?[])
Format a string, append a hexadecimal string intelligently to the end of the line (格式化字符串,智能在行尾追加十六进制字符串). With these parameters: noHex
, lineCommentSeparator
, lineCommentItemSeparator
.
public static string Format(bool? noHex, string? lineCommentSeparator, string? lineCommentItemSeparator, string format, params object?[] args)
Parameters
noHex
bool?(Optional) The comment separator at the end of a line (行尾注释分隔符).
lineCommentSeparator
string(Optional) The end-of-line comment separator (行尾注释分隔符). Default value is DefaultLineCommentSeparator .
lineCommentItemSeparator
string(Optional) The end-of-line comment item separator (行尾注释条目分隔符). Default value is DefaultLineCommentItemSeparator .
format
stringFormat string (格式化字符串).
args
object[]The args (参数列表).
Returns
- string
Returns a formatted string (返回格式化后的字符串).
Format(string, params object?[])
Format a string, append a hexadecimal string intelligently to the end of the line (格式化字符串,智能在行尾追加十六进制字符串).
public static string Format(string format, params object?[] args)
Parameters
Returns
- string
Returns a formatted string (返回格式化后的字符串).