- Timestamp:
- 03/18/09 14:51:38 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/New Persistence Exploration/Persistence/Test/NewSerializationTest.cs
r1354 r1355 23 23 } 24 24 writer.Close(); 25 writer = new StreamWriter("test-types.xml"); 26 foreach (string line in xmlFormatter.Format(s.TypeCache)) { 27 writer.WriteLine(line); 28 Console.Out.WriteLine(line); 29 } 30 writer.Close(); 31 25 32 XmlParser parser = new XmlParser(new StreamReader("test.xml")); 26 DeSerializer deSerializer = new DeSerializer( );33 DeSerializer deSerializer = new DeSerializer(XmlParser.ParseTypeCache(new StreamReader("test-types.xml"))); 27 34 object o = deSerializer.DeSerialize(parser); 28 35 Root t = CloningFactory.DefaultClone(r); … … 42 49 writer.Close(); 43 50 XmlParser parser = new XmlParser(new StreamReader("test2.xml")); 44 DeSerializer deSerializer = new DeSerializer( );51 DeSerializer deSerializer = new DeSerializer(XmlParser.ParseTypeCache(new StreamReader("test-types.xml"))); 45 52 object o = deSerializer.DeSerialize(parser); 46 53 Manager n = CloningFactory.DefaultClone(m); … … 120 127 121 128 public static void Main() { 122 //Test1();129 Test1(); 123 130 //Test2(); 124 131 //SpeedTest();
Note: See TracChangeset
for help on using the changeset viewer.