9 instantiations of JsonPolymorphic
FormatterWebSite (1)
Controllers\SystemTextJsonOutputFormatterController.cs (1)
30[JsonPolymorphic]
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (1)
3538[JsonPolymorphic]
RequestDelegateGenerator\SharedTypes.cs (1)
85[JsonPolymorphic]
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
85[JsonPolymorphic]
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
303[JsonPolymorphic]
Microsoft.AspNetCore.OpenApi.Tests (1)
Shared\SharedTypes.Polymorphism.cs (1)
50[JsonPolymorphic(TypeDiscriminatorPropertyName = "discriminator")]
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\JsonHubProtocolTests.cs (1)
231[JsonPolymorphic]
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\WorkDoneProgress.cs (1)
19[JsonPolymorphic(TypeDiscriminatorPropertyName = "kind")]
Sample (1)
src\OpenApi\test\Microsoft.AspNetCore.OpenApi.Tests\Shared\SharedTypes.Polymorphism.cs (1)
50[JsonPolymorphic(TypeDiscriminatorPropertyName = "discriminator")]
3 references to JsonPolymorphic
System.Text.Json (3)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (2)
105if (baseType.GetCustomAttribute<JsonPolymorphicAttribute>(inherit: false) is JsonPolymorphicAttribute polymorphicAttribute)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
302/// the configuration of this setting will be mapped from any <see cref="JsonDerivedTypeAttribute"/> or <see cref="JsonPolymorphicAttribute"/> annotations.