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(); } }
public static void ReadClassWithObjectICollectionT() { TestClassWithObjectICollectionT obj = JsonSerializer.Parse <TestClassWithObjectICollectionT>(TestClassWithObjectICollectionT.s_data); obj.Verify(); }