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