Пример #1
0
        public void ClassToFile(ICabinetGenerator @class)
        {
            StreamWriter writer = File.CreateText(Path.Combine(DirectoryPath, @class.Name + ".cs"));

            writer.Write(@class.ToString());
            writer.Close();
        }
Пример #2
0
 public void ClassToFile(ICabinetGenerator @class)
 {
     StreamWriter writer = File.CreateText(Path.Combine(DirectoryPath, @class.Name + ".cs"));
     writer.Write(@class.ToString());
     writer.Close();
 }