Exemple #1
0
        public static void WriteClassWithObjectICollectionT()
        {
            string json;

            {
                TestClassWithObjectICollectionT obj = new TestClassWithObjectICollectionT();
                obj.Initialize();
                obj.Verify();
                json = JsonSerializer.ToString(obj);
            }

            {
                TestClassWithObjectICollectionT obj = JsonSerializer.Parse <TestClassWithObjectICollectionT>(json);
                obj.Verify();
            }

            {
                TestClassWithObjectICollectionT obj = JsonSerializer.Parse <TestClassWithObjectICollectionT>(TestClassWithObjectICollectionT.s_data);
                obj.Verify();
            }
        }
Exemple #2
0
        public static void ReadClassWithObjectICollectionT()
        {
            TestClassWithObjectICollectionT obj = JsonSerializer.Parse <TestClassWithObjectICollectionT>(TestClassWithObjectICollectionT.s_data);

            obj.Verify();
        }