Esempio n. 1
0
        public static string SaveScript(ClassCollection cc)
        {
            EnsureClassCollectionSerializer();
            var writer = new StringWriter();

            ccSerializer.Serialize(writer, cc);
            return(writer.ToString());
        }
Esempio n. 2
0
 public static void SaveScript(ClassCollection cc, string filename)
 {
     EnsureClassCollectionSerializer();
     using (var stream = File.Create(filename)) {
         ccSerializer.Serialize(stream, cc);
         stream.Flush();
         stream.Close();
     }
 }
Esempio n. 3
0
 public static void SaveScript(ClassCollection cc, Stream stream)
 {
     EnsureClassCollectionSerializer();
     ccSerializer.Serialize(stream, cc);
 }