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

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

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

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

            obj.Verify();
        }