public static void WriteClassWithGenericIReadOnlyCollectionT() { string json; { TestClassWithGenericIReadOnlyCollectionT obj = new TestClassWithGenericIReadOnlyCollectionT(); obj.Initialize(); obj.Verify(); json = JsonSerializer.ToString(obj); } { TestClassWithGenericIReadOnlyCollectionT obj = JsonSerializer.Parse <TestClassWithGenericIReadOnlyCollectionT>(json); obj.Verify(); } { TestClassWithGenericIReadOnlyCollectionT obj = JsonSerializer.Parse <TestClassWithGenericIReadOnlyCollectionT>(TestClassWithGenericIReadOnlyCollectionT.s_data); obj.Verify(); } }
public static void ReadClassWithGenericIReadOnlyCollectionT() { TestClassWithGenericIReadOnlyCollectionT obj = JsonSerializer.Parse <TestClassWithGenericIReadOnlyCollectionT>(TestClassWithGenericIReadOnlyCollectionT.s_data); obj.Verify(); }