System.Console.WriteLine Method

Writes a line terminator to the Console.OutSystem.IO.TextWriter .

Syntax

public static void WriteLine ()

Exceptions

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

Remarks

The default line terminator is the value of the Environment.NewLine property. The line terminator can be set using the System.IO.TextWriter.NewLine property of the Console.Out stream.

Requirements

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