Skip to content

PeekableStream Constructors ​

Initializes a new instance of the PeekableStream class.

c#
public PeekableStream(Stream stream, bool leaveOpen = true);

View source

Parameters ​

NameTypeDescription
streamStreamThe underlying readable stream to wrap.
leaveOpenBooleantrue to leave stream open when this stream is disposed; otherwise, false. Defaults to true.