5 types derived from PocoWithPolymorphism
Shared.Tests (5)
JsonSchemaExporter\TestTypes.cs (5)
1082
public class DerivedPocoNoDiscriminator :
PocoWithPolymorphism
1087
public class DerivedPocoStringDiscriminator :
PocoWithPolymorphism
1092
public class DerivedPocoIntDiscriminator :
PocoWithPolymorphism
1097
public class DerivedCollection :
PocoWithPolymorphism
, IEnumerable<int>
1103
public class DerivedDictionary :
PocoWithPolymorphism
, IReadOnlyDictionary<string, int>
11 references to PocoWithPolymorphism
Shared.Tests (11)
JsonSchemaExporter\TestTypes.cs (11)
604
yield return new TestData<
PocoWithPolymorphism
>(
605
Value: new
PocoWithPolymorphism
.DerivedPocoStringDiscriminator { BaseValue = 42, DerivedValue = "derived" },
607
new
PocoWithPolymorphism
.DerivedPocoNoDiscriminator { BaseValue = 42, DerivedValue = "derived" },
608
new
PocoWithPolymorphism
.DerivedPocoIntDiscriminator { BaseValue = 42, DerivedValue = "derived" },
609
new
PocoWithPolymorphism
.DerivedCollection { BaseValue = 42 },
610
new
PocoWithPolymorphism
.DerivedDictionary { BaseValue = 42 },
1124
public
PocoWithPolymorphism
PolymorphicValue { get; set; } = new
PocoWithPolymorphism
.DerivedPocoNoDiscriminator { DerivedValue = "derived" };
1125
public
PocoWithPolymorphism
.DerivedPocoNoDiscriminator DerivedValue1 { get; set; } = new() { DerivedValue = "derived" };
1126
public
PocoWithPolymorphism
.DerivedPocoStringDiscriminator DerivedValue2 { get; set; } = new() { DerivedValue = "derived" };
1269
[JsonSerializable(typeof(
PocoWithPolymorphism
))]