Example #1
0
        static void Main(string[] args)
        {

            Matrix mat = new Matrix(2, 2);
            mat.Initialize(20);
            int a = 33;
            Serializer x = new Serializer();
            List<int> l = new List<int>();
            l.Add(5);
            x.WriteObject(mat,@"C:\qwer.xml");
            var b = x.ReadObject(@"C:\qwer.xml");

        }
Example #2
0
        private void Serialize(string filename, MAN selectedMAN)
        {
            Bar bubu = new Bar();
            Foo fufu = new Foo() { bar = bubu };
            bubu.foo = fufu;

            Serializer sl = new Serializer(filename, true);
            sl.WriteObject(selectedMAN);
            sl.Close();
        }