Method Write
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
Write(string?, TextWriter, bool?, string?, string?, string, params object?[])
Writes a formatted string 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 Write(string? indent, TextWriter textWriter, bool? noHex, string? lineCommentSeparator, string? lineCommentItemSeparator, string format, params object?[] args)
Parameters
indent
stringThe indent.
textWriter
TextWriterOutput 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
stringFormat string (格式化字符串).
args
object[]The args (参数列表).
Returns
- int
Returns the length of the output string (返回输出字符串的长度).
Write(string?, TextWriter, string, params object?[])
Writes a formatted string to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串写入文本流). With these parameters: indent
.
public static int Write(string? indent, TextWriter textWriter, string format, params object?[] args)
Parameters
indent
stringThe indent.
textWriter
TextWriterOutput TextWriter.
format
stringFormat string (格式化字符串).
args
object[]The args (参数列表).
Returns
- int
Returns the length of the output string (返回输出字符串的长度).
Write(TextWriter, string, params object?[])
Writes a formatted string to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串写入文本流).
public static int Write(TextWriter textWriter, string format, params object?[] args)
Parameters
textWriter
TextWriterOutput TextWriter.
format
stringFormat string (格式化字符串).
args
object[]The args (参数列表).
Returns
- int
Returns the length of the output string (返回输出字符串的长度).