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