Suppose this C# code:
using (MemoryStream stream = new MemoryStream()) { StreamWriter normalWriter = new StreamWriter(stream); BinaryWriter binaryWriter
Update
Nevermind this answer, I got confused with the writers...