Skip to content

StreamExtensions.ReadByteOrThrow Method ​

Definition ​

Reads a single byte from the stream, throwing EndOfStreamException if the end of the stream has been reached.

c#
public static Byte ReadByteOrThrow(this Stream stream);

View source

Parameters ​

NameTypeDescription
streamStream

Returns ​

Byte

The byte read from the stream.