2 instantiations of JsonPolymorphismOptions
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (2)
107
options =
new
()
117
(options ??=
new
()).DerivedTypes.Add(new JsonDerivedType(attr.DerivedType, attr.TypeDiscriminator));
8 references to JsonPolymorphismOptions
System.Text.Json (8)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (5)
21
/// Creates an empty <see cref="
JsonPolymorphismOptions
"/> instance.
90
private readonly
JsonPolymorphismOptions
_parent;
92
public DerivedTypeList(
JsonPolymorphismOptions
parent)
101
internal static
JsonPolymorphismOptions
? CreateFromAttributeDeclarations(Type baseType)
103
JsonPolymorphismOptions
? options = null;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
304
public
JsonPolymorphismOptions
? PolymorphismOptions
347
private protected
JsonPolymorphismOptions
? _polymorphismOptions;
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
22
public PolymorphicTypeResolver(JsonSerializerOptions options,
JsonPolymorphismOptions
polymorphismOptions, Type baseType, bool converterCanHaveMetadata)