Method FormatTo
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
FormatTo(Action<string>, bool?, string?, string?, string, params object?[])
Format a string, append a hexadecimal string intelligently to the end of the line, and output it to the Action (格式化字符串,智能在行尾追加十六进制字符串, 并会输出到 Action ). With these parameters: noHex, lineCommentSeparator, lineCommentItemSeparator .
public static int FormatTo(Action<string> action, bool? noHex, string? lineCommentSeparator, string? lineCommentItemSeparator, string format, params object?[] args)
Parameters
actionAction<string>Output action (输出动作).
noHexbool?(Optional) The comment separator at the end of a line (行尾注释分隔符).
lineCommentSeparatorstring(Optional) The end-of-line comment separator (行尾注释分隔符). Default value is DefaultLineCommentSeparator .
lineCommentItemSeparatorstring(Optional) The end-of-line comment item separator (行尾注释条目分隔符). Default value is DefaultLineCommentItemSeparator .
formatstringFormat string (格式化字符串).
argsobject[]The args (参数列表).
Returns
- int
Returns the length of the output string (返回输出字符串的长度).
FormatTo(Action<string>, string, params object?[])
Format a string, append a hexadecimal string intelligently to the end of the line, and output it to the Action (格式化字符串,智能在行尾追加十六进制字符串, 并会输出到 Action ).
public static int FormatTo(Action<string> action, string format, params object?[] args)
Parameters
actionAction<string>Output action (输出动作).
formatstringFormat string (格式化字符串).
argsobject[]The args (参数列表).
Returns
- int
Returns the length of the output string (返回输出字符串的长度).