Beispiel #1
0
        public void Init1()
        {
            var to = new CSimpleClass();

            to._int_data = 10;
            Console.WriteLine("1, 2, 3");
            _multi_array    = new CSimpleClass[3][];
            _multi_array[0] = new CSimpleClass[] { to };
            _multi_array[1] = new CSimpleClass[] { to, to };
            _multi_array[2] = new CSimpleClass[] { to, to, to };
        }
Beispiel #2
0
        public void Init2()
        {
            //_array = new int[] { };
            var to = new CSimpleClass();

            to._int_data = 10;
            _array       = new CSimpleClass[] { to };
            _dict        = new Dictionary <string, CSimpleClass>();
            _dict.Add("dickey1", to);
            _list = new List <CSimpleClass>();
            _list.Add(to);
        }
Beispiel #3
0
        public void Init1()
        {
            var to = new CSimpleClass();

            to._int_data = 10;
            Console.WriteLine("3, 2, 2");
            _multi_array_r3 = new CSimpleClass[3, 2, 2] {
                { { to, to }, { to, to } }, { { to, to }, { to, to } }, { { to, to }, { to, to } }
            };
            Console.WriteLine("3, 2");
            _multi_array = new CSimpleClass[3, 2] {
                { to, to }, { to, to }, { to, to }
            };
        }
Beispiel #4
0
        public void TestMethodObjectArray()
        {
            ResetTestState();
            Console.WriteLine(MethodBase.GetCurrentMethod().Name);

            var v1 = new CSimpleClass[] { new CSimpleClass() };

            string text = _serializer.SerializeToCascade(v1, this);

            Console.WriteLine(text);
            var v2 = _serializer.Deserialize <CSimpleClass[]>(text, this);

            CheckInternalErrors();
            Utils.IsArrayEquals(v1, v2);
        }
Beispiel #5
0
        public void Init2()
        {
            //_multi_array = new int[,] { { } };
            //_array = new int[] { };
            var to = new CSimpleClass();

            to._int_data = 10;
            Console.WriteLine("1, 1, 1");
            _multi_array_r3 = new CSimpleClass[1, 1, 1] {
                { { to } }
            };
            Console.WriteLine("1, 1");
            _multi_array = new CSimpleClass[1, 1] {
                { to }
            };
        }