コード例 #1
0
        public void teste7()
        {
            testeextend2 testeextend2 = new testeextend2();

            testeextend2.t = 4;
            SerializatorMachine SerializatorMachine = new SerializatorMachine();

            SerializatorMachine.Serialize(testeextend2, "teste7.xml", Encoding.Default);
            testeextend2 ob = SerializatorMachine.Desserialize <testeextend2>("teste7.xml");

            System.Diagnostics.Debug.Assert(ob.t2 == 8);
        }
コード例 #2
0
 public void teste7()
 {
     testeextend2 testeextend2 = new testeextend2();
     testeextend2.t = 4;
     SerializatorMachine SerializatorMachine = new SerializatorMachine();
     SerializatorMachine.Serialize(testeextend2, "teste7.xml", Encoding.Default);
     testeextend2 ob = SerializatorMachine.Desserialize<testeextend2>("teste7.xml");
     System.Diagnostics.Debug.Assert(ob.t2 == 8);
 }