Table of Contents

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

action Action<string>

Output action (输出动作).

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 string

Format string (格式化字符串).

args object[]

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

action Action<string>

Output action (输出动作).

format string

Format string (格式化字符串).

args object[]

The args (参数列表).

Returns

int

Returns the length of the output string (返回输出字符串的长度).