Share via


MemoryStream.ReadByte Method

Reads a byte from the current stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public override int ReadByte ()

Return Value

The byte cast to a Int32, or -1 if the end of the stream has been reached.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

MemoryStream Class
MemoryStream Members
System.IO Namespace