Click or drag to resize
BinaryWriterWrite Method (Boolean)
Writes a one-byte Boolean value to the current stream, with 0 representing false and 1 representing true.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void Write(
	bool value
)

Parameters

value
Type: SystemBoolean
The Boolean value to write (0 or 1).
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
ObjectDisposedExceptionThe stream is closed.
See Also