Пример #1
0
        public static void WriteClassWithObjectIReadOnlyCollectionT()
        {
            string json;

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

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

            {
                TestClassWithObjectIReadOnlyCollectionT obj = JsonSerializer.Parse <TestClassWithObjectIReadOnlyCollectionT>(TestClassWithObjectIReadOnlyCollectionT.s_data);
                obj.Verify();
            }
        }
Пример #2
0
        public static void ReadClassWithObjectIReadOnlyCollectionT()
        {
            TestClassWithObjectIReadOnlyCollectionT obj = JsonSerializer.Parse <TestClassWithObjectIReadOnlyCollectionT>(TestClassWithObjectIReadOnlyCollectionT.s_data);

            obj.Verify();
        }