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

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

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

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

            obj.Verify();
        }