C# StringWriter NewLine
Description
StringWriter NewLine
Gets or sets the line terminator
string used by the current TextWriter.
Syntax
StringWriter.NewLine
has the following syntax.
public virtual string NewLine { get; set; }
Example
/*from ww w .j a va 2 s. c o m*/
using System;
using System.IO;
using System.Text;
class StrWriter
{
static void Main()
{
StringWriter strWriter = new StringWriter();
Console.WriteLine(strWriter.NewLine);
}
}
The code above generates the following result.