KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In the below code, is there any chance the GC will clean out the MemoryStream so that ToArray will fail, since it is outside the using statement? private static byte[] getBytes() { MemoryStream ms = null; using (ms = new MemoryStream()) { // ... } return ms.ToArray(); }
Tags (comma-separated)
Save Edits
Cancel