3 types derived from Shape
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (3)
TestObjectModels\HeterogenousCollection.cs (3)
17
public class Circle :
Shape
22
public class Rectangle :
Shape
27
public class Square :
Shape
6 references to Shape
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (6)
IntegrationTests\HeterogenousCollectionTests.cs (5)
22
Items = new List<
Shape
>()
60
if (jsonTypeInfo.Type == typeof(
Shape
))
82
public class ShapeJsonConverter : JsonConverter<
Shape
>
84
public override
Shape
Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
108
public override void Write(Utf8JsonWriter writer,
Shape
value, JsonSerializerOptions options)
TestObjectModels\HeterogenousCollection.cs (1)
34
public IList<
Shape
> Items { get; set; }