Click or drag to resize
BinaryReaderReadInt16 Method
Reads a 2-byte signed integer from the current stream and advances the current position of the stream by two bytes.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual short ReadInt16()

Return Value

Type: Int16
A 2-byte signed integer read from the current stream.
Exceptions
ExceptionCondition
EndOfStreamExceptionThe end of the stream is reached.
ObjectDisposedExceptionThe stream is closed.
IOExceptionAn I/O error occurs.
See Also