Mono Class Library: System.IO.TextWriter Overview | Members

System.IO.TextWriter.NewLine Property

Gets or sets the line terminator string used by the current System.IO.TextWriter . [Edit]

public virtual string NewLine { set; get; }

Value

A string containing the line terminator string for the current System.IO.TextWriter . [Edit]

Remarks

The default line terminator string is Environment.NewLine .

The line terminator string is written to the text stream whenever one of the TextWriter.WriteLine methods is called. In order for text written by the System.IO.TextWriter to be readable by a System.IO.TextReader , only Environment.NewLine should be used as a terminator string. If TextWriter.NewLine is set to null, the default newline character is used instead.

Operation
As described above.

[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0