コード例 #1
0
ファイル: Hub.cs プロジェクト: MonoBrasil/historico
 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());
 }
コード例 #2
0
 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");
 }