示例#1
0
        public static void WriteClassWithGenericIReadOnlyCollectionT()
        {
            string json;

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

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

            {
                TestClassWithGenericIReadOnlyCollectionT obj = JsonSerializer.Parse <TestClassWithGenericIReadOnlyCollectionT>(TestClassWithGenericIReadOnlyCollectionT.s_data);
                obj.Verify();
            }
        }
示例#2
0
        public static void ReadClassWithGenericIReadOnlyCollectionT()
        {
            TestClassWithGenericIReadOnlyCollectionT obj = JsonSerializer.Parse <TestClassWithGenericIReadOnlyCollectionT>(TestClassWithGenericIReadOnlyCollectionT.s_data);

            obj.Verify();
        }