コード例 #1
0
ファイル: Array.WriteTests.cs プロジェクト: jm771/corefx
        public static void WriteClassWithObjectICollectionT()
        {
            string json;

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

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

            {
                TestClassWithObjectICollectionT obj = JsonSerializer.Parse <TestClassWithObjectICollectionT>(TestClassWithObjectICollectionT.s_data);
                obj.Verify();
            }
        }
コード例 #2
0
        public static void ReadClassWithObjectICollectionT()
        {
            TestClassWithObjectICollectionT obj = JsonSerializer.Parse <TestClassWithObjectICollectionT>(TestClassWithObjectICollectionT.s_data);

            obj.Verify();
        }