System.Console.Write Method

Writes the text representation of the specified Boolean value to the standard output stream.

Syntax

public static void Write (bool value)

Parameters

value
The value to write.

Exceptions

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

Remarks

The text representation of value is produced by calling bool.ToString, which outputs either bool.TrueString or bool.FalseString.

Requirements

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