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);
Parameters
| Name | Type | Description |
|---|---|---|
| stream | Stream |
Returns
The byte read from the stream.