Reads a byte from the stream without consuming it.
Namespace: FirstFloor.Documents.IOAssembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)
Syntax
| C# |
|---|
public static int PeekByte( this Stream stream ) |
| Visual Basic |
|---|
<ExtensionAttribute> _ Public Shared Function PeekByte ( _ stream As Stream _ ) As Integer |
| Visual C++ |
|---|
[ExtensionAttribute] public: static int PeekByte( Stream^ stream ) |
Parameters
- stream
- Type: System.IO..::..Stream
The stream.