System.Console.WriteLine Method

Writes the current line terminator to the standard output stream.

Syntax

public static void WriteLine ()

Exceptions

TypeReason
System.IO.IOExceptionAn I/O error occurred.

Remarks

The default line terminator is a string whose value is a carriage return followed by a line feed ("\r\n" in C#, or vbCrLf in Visual Basic). You can change the line terminator by setting the System.IO.TextWriter.NewLine property of the Console.Out property to another string. The example provides an illustration.

Requirements

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