private void CreateSourceCodeFile(String filePath, SourceCode sourceCode)
 {
     using (var stm = new FileStream(filePath, FileMode.Create))
     {
         var cs = new CSharpSourceCodeGenerator(new StreamWriter(stm));
         cs.Write(sourceCode);
         cs.Flush();
         stm.Close();
     }
 }
 private void CreateSourceCodeFile(String filePath, SourceCode sourceCode)
 {
     using (var stm = new FileStream(filePath, FileMode.Create))
     {
         var cs = new CSharpSourceCodeGenerator(new StreamWriter(stm));
         cs.Write(sourceCode);
         cs.Flush();
         stm.Close();
     }
 }