private void ClearElementsList() { _elementsList = null; // intentionally lose the reference to the old serializer, in order // to rescue some memory. _ser = new SerializationDriver(); _ser.AddSerializer(new MonoUML.DI.Serialization.Serializer()); _ser.AddSerializer(new MonoUML.DI.Uml2Bridge.Serialization.Serializer()); _ser.AddSerializer(new ExpertCoder.Uml2.Serialization.Serializer()); }
public void WriteXMI(string filename) { System.Console.WriteLine ("Serialization: STARTING"); SerializationDriver ser = new SerializationDriver (); ser.AddSerializer (new ExpertCoder.Uml2.Serialization.Serializer ()); ser.Serialize (_xmiElements, filename); System.Console.WriteLine ("Serialization: DONE"); }