WriteLine() public method

Write a specific line to the output stream, without its trailing LF.
Write a specific line to the output stream, without its trailing LF.

The specified line is copied as-is, with no character encoding translation performed.

If the specified line ends with an LF ('\n'), the LF is not copied. It is up to the caller to write the LF, if desired, between output lines.

the stream write operation failed.
public WriteLine ( StringBuilder @out, int i ) : void
@out StringBuilder
i int /// index of the line to extract. Note this is 0-based, so line /// number 1 is actually index 0. ///
return void
Example #1
0
 private void WriteLine(StringBuilder @out, Text text, int cur)
 {
     text.WriteLine(@out, cur);
     @out.Append('\n');
 }
Example #2
0
 private void WriteLine(StringBuilder @out, Text text, int cur)
 {
     text.WriteLine(@out, cur);
     @out.Append('\n');
 }
Example #3
0
 private void WriteLine(char prefix, Text text, int cur)
 {
     _out.Append(prefix);
     text.WriteLine(_out, cur);
     _out.Append('\n');
 }
Example #4
0
 private void WriteLine(char prefix, Text text, int cur)
 {
     _out.Append(prefix);
     text.WriteLine(_out, cur);
     _out.Append('\n');
 }