Thursday, September 9, 2021

Merge Two Memory Stream

 var streamOne = new MemoryStream();

FillThisStreamUp(streamOne);
var streamTwo = new MemoryStream();
DoSomethingToThisStreamLol(streamTwo);
streamTwo.CopyTo(streamOne); // streamOne holds the contents of both

No comments:

Followers

Link