TYPE
MemoryStream
A stream backed by memory rather than a file handle.
Formal Syntax & Structure
csharp syntaxcsharp
new MemoryStream(byte[])Working Example
Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.using var stream = new MemoryStream(new byte[] { 1, 2 });