예제 #1
0
        public static void WriteClassWithObjectIReadOnlyListT()
        {
            string json;

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

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

            {
                TestClassWithObjectIReadOnlyListT obj = JsonSerializer.Parse <TestClassWithObjectIReadOnlyListT>(TestClassWithObjectIEnumerableT.s_data);
                obj.Verify();
            }
        }
예제 #2
0
        public static void ReadClassWithObjectIReadOnlyListT()
        {
            TestClassWithObjectIReadOnlyListT obj = JsonSerializer.Parse <TestClassWithObjectIReadOnlyListT>(TestClassWithObjectIReadOnlyListT.s_data);

            obj.Verify();
        }