2 instantiations of JsonPolymorphismOptions
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (2)
107options = 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. 90private readonly JsonPolymorphismOptions _parent; 92public DerivedTypeList(JsonPolymorphismOptions parent) 101internal static JsonPolymorphismOptions? CreateFromAttributeDeclarations(Type baseType) 103JsonPolymorphismOptions? options = null;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
304public JsonPolymorphismOptions? PolymorphismOptions 347private protected JsonPolymorphismOptions? _polymorphismOptions;
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
22public PolymorphicTypeResolver(JsonSerializerOptions options, JsonPolymorphismOptions polymorphismOptions, Type baseType, bool converterCanHaveMetadata)