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

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

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

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

            obj.Verify();
        }