I was browsing a coworkers c# code today and found the following:
using (MemoryStream data1 = new MemoryStream()) using (MemoryStream data2 = new MemoryS
Yes, you can also put them in one using statement:
using (MemoryStream data1 = new MemoryStream(), data2 = new MemoryStream()) { // do stuff }