Click or drag to resize
BinaryWriterWrite Method (UInt16)
Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes.

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

Parameters

value
Type: SystemUInt16
The two-byte unsigned integer to write.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
ObjectDisposedExceptionThe stream is closed.
See Also