Mono Class Library: System.Console Overview | Members

System.Console.WriteLine Method

Writes a specified string followed by a line terminator to the Console.OutSystem.IO.TextWriter .

public static void WriteLine (string value)

Parameters

value
The string to write. If value is null, only the line terminator is written.

Exceptions

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

Remarks

This version of Console.WriteLine is equivalent to Console.Out.WriteLine( value ).

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