static void Write(string name, IDebugView codegen) { using (var file = new StreamWriter(name, false)) { file.Write(codegen.DebugView); } }
static void Write(string name, IDebugView codegen) { using (var file = File.Create(name)) { using (var sw = new StreamWriter(file)) { sw.Write(codegen.DebugView); } } }