System.IO.BinaryWriter.Write Method

Writes a one-byte Boolean value to the current stream, with 0 representing false and 1 representing true.

Syntax

public virtual void Write (bool value)

Parameters

value
The Boolean value to write (0 or 1).

Remarks

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

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