SyntaxFix
Write A Post
Hire A Developer
Questions
Try changing your code to this:
private void Test() { System.IO.MemoryStream data = new System.IO.MemoryStream(TestStream()); byte[] buf = new byte[data.Length]; data.Read(buf, 0, buf.Length); }