public static void WriteClassWithObjectIReadOnlyListT() { string json; { TestClassWithObjectIReadOnlyListT obj = new TestClassWithObjectIReadOnlyListT(); obj.Initialize(); obj.Verify(); json = JsonSerializer.ToString(obj); } { TestClassWithObjectIReadOnlyListT obj = JsonSerializer.Parse <TestClassWithObjectIReadOnlyListT>(json); obj.Verify(); } { TestClassWithObjectIReadOnlyListT obj = JsonSerializer.Parse <TestClassWithObjectIReadOnlyListT>(TestClassWithObjectIEnumerableT.s_data); obj.Verify(); } }
public static void ReadClassWithObjectIReadOnlyListT() { TestClassWithObjectIReadOnlyListT obj = JsonSerializer.Parse <TestClassWithObjectIReadOnlyListT>(TestClassWithObjectIReadOnlyListT.s_data); obj.Verify(); }