BinaryWriterWrite Method (Boolean) |
Writes a one-byte Boolean value to the current stream, with 0 representing false and 1 representing true.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual void Write(
bool value
)
Parameters
- value
- Type: SystemBoolean
The Boolean value to write (0 or 1).
Exceptions Exception | Condition |
---|
IOException | An I/O error occurs. |
ObjectDisposedException | The stream is closed. |
See Also