PeekableStream Constructors ​
Initializes a new instance of the PeekableStream class.
c#
public PeekableStream(Stream stream, bool leaveOpen = true);Parameters ​
| Name | Type | Description |
|---|---|---|
stream | Stream | The underlying readable stream to wrap. |
leaveOpen | Boolean | true to leave stream open when this stream is disposed; otherwise, false. Defaults to true. |