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.

public static Byte ReadByteOrThrow(this Stream stream);

View source

Parameters

Name Type Description
stream Stream

Returns

Byte

The byte read from the stream.