Table of Contents

Method WriteLine

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

WriteLine(string?, TextWriter, bool?, string?, string?, string, params object?[])

Writes a formatted string and a new line to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串和新行写入文本流). With these parameters: indent, noHex, lineCommentSeparator, lineCommentItemSeparator .

public static int WriteLine(string? indent, TextWriter textWriter, bool? noHex, string? lineCommentSeparator, string? lineCommentItemSeparator, string format, params object?[] args)

Parameters

indent string

The indent.

textWriter TextWriter

Output TextWriter.

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 (返回输出字符串的长度).

WriteLine(string?, TextWriter, string, params object?[])

Writes a formatted string and a new line to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串和新行写入文本流). With these parameters: indent .

public static int WriteLine(string? indent, TextWriter textWriter, string format, params object?[] args)

Parameters

indent string

The indent.

textWriter TextWriter

Output TextWriter.

format string

Format string (格式化字符串).

args object[]

The args (参数列表).

Returns

int

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

WriteLine(TextWriter, string, params object?[])

Writes a formatted string and a new line to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串和新行写入文本流).

public static int WriteLine(TextWriter textWriter, string format, params object?[] args)

Parameters

textWriter TextWriter

Output TextWriter.

format string

Format string (格式化字符串).

args object[]

The args (参数列表).

Returns

int

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