Mono Class Library: System.Console Overview | Members

System.Console.Write Method

Writes the text representation of a specified object to the Console.OutSystem.IO.TextWriter .

public static void Write (object value)

Parameters

value
The object to write. If value is null , string.Empty is written.

Exceptions

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

Remarks

This version of Console.Write(string, object) is equivalent to Console.Out.Write( value.ToString () ).

Note: If value is null, no exception is thrown and nothing is written. Otherwise, the object's object.ToString method is called to produce the string representation, and the resulting string is written to the output stream.

Requirements

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