forum

home / developersection / forums / memorystream in using statement - do i need to call close()

MemoryStream in Using Statement - Do I need to call close()

Jayden Bell 2384 03-Feb-2014

When using a memory stream in a using statement do I need to call close? For instance is ms.Close() needed here?

  using (MemoryStream ms = new MemoryStream(byteArray)) 
    { 
      // stuff
      ms.Close();
    }

c# c# 
Updated on 03-Feb-2014
Jayden Bell

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By