1 type derived from JsonTypeInfo
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
13public sealed partial class JsonTypeInfo<T> : JsonTypeInfo
726 references to JsonTypeInfo
aspire (1)
src\Shared\RequestIdTypeInfoResolver.cs (1)
20public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options)
Aspire.Dashboard.Tests (1)
LocalBrowserStorageTests.cs (1)
268public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options)
Aspire.Hosting (1)
src\Shared\RequestIdTypeInfoResolver.cs (1)
20public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options)
Aspire.Hosting.RemoteHost (1)
Ats\AtsMarshaller.cs (1)
1017var typeInfo = s_jsonOptions.GetTypeInfo(targetType);
Aspire.TerminalHost (1)
src\Shared\RequestIdTypeInfoResolver.cs (1)
20public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options)
dotnet-aot (36)
Generated\361d1da7f942c932\CliSchemaJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\LocalToolsCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\NugetSearchApiJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\NugetServiceIndexJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\RunFileBuildCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\SdkCheckJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\SdkVulnerabilityJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\SlnfJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\TelemetryDiskLoggerJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\ToolListJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\WorkloadManifestUpdaterJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
dotnet-dev-certs (3)
Generated\361d1da7f942c932\DevCertsJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
dotnet-user-jwts (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JwtSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
dotnet-user-secrets (3)
Generated\361d1da7f942c932\SecretManagerJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Authentication.BearerToken (3)
Generated\361d1da7f942c932\BearerTokenJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Authentication.Twitter (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TwitterJsonContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Components (3)
Generated\361d1da7f942c932\PersistentServicesRegistryJsonContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Components.Endpoints (16)
Generated\361d1da7f942c932\BrowserOptionsJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\ImportMapSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\PrerenderComponentApplicationStoreSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\ResourceCollectionSerializerContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\ServerComponentJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
src\aspnetcore\src\Shared\Components\ServerComponentSerializer.cs (1)
51var typeInfo = ServerComponentSerializationSettings.JsonSerializationOptions.GetTypeInfo(typeof(ServerComponent));
Microsoft.AspNetCore.Components.Server (18)
Circuits\ServerComponentDeserializer.cs (3)
96var markersTypeInfo = ServerComponentSerializationSettings.JsonSerializationOptions.GetTypeInfo(typeof(IEnumerable<ComponentMarker>)); 260var typeInfo = ServerComponentSerializationSettings.JsonSerializationOptions.GetTypeInfo(typeof(ServerComponent)); 302var typeInfo = ServerComponentSerializationSettings.JsonSerializationOptions.GetTypeInfo(typeof(RootComponentOperationBatch));
Generated\361d1da7f942c932\CircuitPersistenceManagerSerializerContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\JavaScriptInitializersManifestJsonContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\PrerenderComponentApplicationStoreSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\ServerComponentJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (2)
136var typeInfo = _serializerOptions.GetTypeInfo(value?.GetType() ?? typeof(object)); 148var typeInfo = _serializerOptions.GetTypeInfo(typeof(TValue));
src\aspnetcore\src\Shared\Components\ServerComponentSerializer.cs (1)
51var typeInfo = ServerComponentSerializationSettings.JsonSerializationOptions.GetTypeInfo(typeof(ServerComponent));
Microsoft.AspNetCore.Components.Server.AutoPause (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\AutoPauseJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Components.Testing (3)
Generated\361d1da7f942c932\E2EManifestJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Components.Web (5)
Generated\361d1da7f942c932\WebRendererSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
src\aspnetcore\src\Components\Shared\src\JsonSerialization\JsonConverterFactoryTypeInfoResolver.cs (1)
21public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options)
WebEventData\WebEventData.cs (1)
82var eventArgsTypeInfo = jsonSerializerOptions.GetTypeInfo(eventArgsType);
Microsoft.AspNetCore.Components.WebAssembly (6)
Generated\361d1da7f942c932\PrerenderComponentApplicationStoreSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\WebAssemblyJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (3)
Generated\361d1da7f942c932\InteractiveRequestOptionsSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Components.WebView (3)
Generated\361d1da7f942c932\SourceGenerationContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Diagnostics (3)
Generated\361d1da7f942c932\ExtensionsExceptionJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Internal\Json\MessageTypeInfoResolver.cs (4)
25public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options) 32var typeInfo = JsonTypeInfo.CreateJsonTypeInfo(type, options); 90private JsonPropertyInfo CreatePropertyInfo(JsonTypeInfo typeInfo, string name, FieldDescriptor field, bool isSerializable)
Microsoft.AspNetCore.Hosting (3)
Generated\361d1da7f942c932\SourceGenerationContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.Http.Extensions (15)
Generated\361d1da7f942c932\ProblemDetailsJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
HttpRequestJsonExtensions.cs (1)
176JsonTypeInfo jsonTypeInfo,
HttpResponseJsonExtensions.cs (2)
158JsonTypeInfo jsonTypeInfo, 174static async Task WriteAsJsonAsyncSlow(HttpResponse response, object? value, JsonTypeInfo jsonTypeInfo,
RequestDelegateFactory.cs (5)
1152var jsonTypeInfo = factoryContext.JsonSerializerOptions.GetReadOnlyTypeInfo(typeArg); 1200var jsonTypeInfo = factoryContext.JsonSerializerOptions.GetReadOnlyTypeInfo(typeArg); 1243var jsonTypeInfo = factoryContext.JsonSerializerOptions.GetReadOnlyTypeInfo(returnType); 1309var jsonTypeInfo = factoryContext.JsonSerializerOptions.GetReadOnlyTypeInfo(bodyType); 1385JsonTypeInfo jsonTypeInfo)
src\aspnetcore\src\Shared\Json\JsonSerializerExtensions.cs (4)
13public static bool HasKnownPolymorphism(this JsonTypeInfo jsonTypeInfo) 16public static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType) 19public static JsonTypeInfo GetReadOnlyTypeInfo(this JsonSerializerOptions options, Type type) 25public static JsonTypeInfo GetRequiredTypeInfo(this JsonSerializerContext context, Type type)
Microsoft.AspNetCore.Http.Results (8)
JsonHttpResultOfT.cs (1)
72internal JsonTypeInfo? JsonTypeInfo { get; init; }
Results.cs (1)
201public static IResult Json(object? data, JsonTypeInfo jsonTypeInfo, string? contentType = null, int? statusCode = null)
ServerSentEventsResult.cs (2)
83var jsonTypeInfo = jsonOptions.SerializerOptions.GetTypeInfo(typeof(T)); 86var typeInfo = jsonTypeInfo.ShouldUseWith(runtimeType)
src\aspnetcore\src\Shared\Json\JsonSerializerExtensions.cs (4)
13public static bool HasKnownPolymorphism(this JsonTypeInfo jsonTypeInfo) 16public static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType) 19public static JsonTypeInfo GetReadOnlyTypeInfo(this JsonSerializerOptions options, Type type) 25public static JsonTypeInfo GetRequiredTypeInfo(this JsonSerializerContext context, Type type)
Microsoft.AspNetCore.Identity (8)
Generated\361d1da7f942c932\IdentityEndpointsJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\IdentityJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (2)
2371private static bool HasKnownPolymorphism(this JsonTypeInfo jsonTypeInfo) 2374private static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Internal\PocoAdapter.cs (1)
204var typeInfo = serializerOptions.GetTypeInfo(target.GetType());
JsonPatchDocumentOfT.cs (1)
727var jsonTypeInfo = SerializerOptions.GetTypeInfo(memberExpression.Expression.Type);
Microsoft.AspNetCore.Mvc.Core (6)
Formatters\SystemTextJsonOutputFormatter.cs (2)
74JsonTypeInfo? jsonTypeInfo = null; 77var declaredTypeJsonInfo = SerializerOptions.GetTypeInfo(context.ObjectType);
src\aspnetcore\src\Shared\Json\JsonSerializerExtensions.cs (4)
13public static bool HasKnownPolymorphism(this JsonTypeInfo jsonTypeInfo) 16public static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType) 19public static JsonTypeInfo GetReadOnlyTypeInfo(this JsonSerializerOptions options, Type type) 25public static JsonTypeInfo GetRequiredTypeInfo(this JsonSerializerContext context, Type type)
Microsoft.AspNetCore.Mvc.Testing (3)
Generated\361d1da7f942c932\CustomJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.AspNetCore.OpenApi (32)
Extensions\JsonNodeSchemaExtensions.cs (9)
172/// <param name="jsonTypeInfo">The <see cref="JsonTypeInfo"/> associated with the target type.</param> 173internal static void ApplyDefaultValue(this JsonNode schema, object? defaultValue, JsonTypeInfo? jsonTypeInfo) 298/// <param name="jsonTypeInfo">The <see cref="JsonTypeInfo"/> associated with the <see paramref="schema"/>.</param> 299internal static void ApplyParameterInfo(this JsonNode schema, ApiParameterDescription parameterDescription, JsonTypeInfo? jsonTypeInfo) 428internal static void MapPolymorphismOptionsToDiscriminator(this JsonNode schema, JsonSchemaExporterContext context, Func<JsonTypeInfo, string?> createSchemaReferenceId) 449var jsonDerivedType = context.TypeInfo.Options.GetTypeInfo(derivedType.DerivedType); 473internal static void ApplySchemaReferenceId(this JsonNode schema, JsonSchemaExporterContext context, Func<JsonTypeInfo, string?> createSchemaReferenceId) 482var unionTypeInfo = context.TypeInfo; 484&& unionTypeInfo.Options.TryGetTypeInfo(underlyingType, out var underlyingTypeInfo))
Extensions\JsonTypeInfoExtensions.cs (4)
47/// <param name="jsonTypeInfo">The <see cref="JsonTypeInfo"/> associated with the target schema.</param> 53internal static string? GetSchemaReferenceId(this JsonTypeInfo jsonTypeInfo, bool isTopLevel = true) 80if (jsonTypeInfo is JsonTypeInfo { Kind: JsonTypeInfoKind.Enumerable } || type.IsArray) 85if (jsonTypeInfo is JsonTypeInfo { Kind: JsonTypeInfoKind.Dictionary })
Generated\361d1da7f942c932\OpenApiJsonSchemaContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\GeneratedRouteBuilderExtensions.g.cs (2)
228private static bool HasKnownPolymorphism(this JsonTypeInfo jsonTypeInfo) 231private static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType)
Services\OpenApiOptions.cs (5)
20/// A default implementation for creating a schema reference ID for a given <see cref="JsonTypeInfo"/>. 22/// <param name="jsonTypeInfo">The <see cref="JsonTypeInfo"/> associated with the schema we are generating a reference ID for.</param> 24public static string? CreateDefaultSchemaReferenceId(JsonTypeInfo jsonTypeInfo) => jsonTypeInfo.GetSchemaReferenceId(); 55/// the provided delegate returns <see langword="null"/>, the schema associated with the <see cref="JsonTypeInfo"/> will always be inlined. 57public Func<JsonTypeInfo, string?> CreateSchemaReferenceId { get; set; } = CreateDefaultSchemaReferenceId;
Services\Schemas\OpenApiSchemaService.cs (6)
313var jsonTypeInfo = _jsonSerializerOptions.GetTypeInfo(t); 500var jsonTypeInfo = _jsonSerializerOptions.GetTypeInfo(type); 520JsonTypeInfo jsonTypeInfo, 537var derivedJsonTypeInfo = _jsonSerializerOptions.GetTypeInfo(derivedType.DerivedType); 550var elementTypeInfo = _jsonSerializerOptions.GetTypeInfo(jsonTypeInfo.ElementType); 568var elementTypeInfo = _jsonSerializerOptions.GetTypeInfo(jsonTypeInfo.ElementType);
Transformers\OpenApiSchemaTransformerContext.cs (3)
15private JsonTypeInfo? _jsonTypeInfo; 32public required JsonTypeInfo JsonTypeInfo { get => _jsonTypeInfo!; init => _jsonTypeInfo = value; } 52internal void UpdateJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonPropertyInfo? jsonPropertyInfo)
Microsoft.AspNetCore.Routing (4)
src\aspnetcore\src\Shared\Json\JsonSerializerExtensions.cs (4)
13public static bool HasKnownPolymorphism(this JsonTypeInfo jsonTypeInfo) 16public static bool ShouldUseWith(this JsonTypeInfo jsonTypeInfo, [NotNullWhen(false)] Type? runtimeType) 19public static JsonTypeInfo GetReadOnlyTypeInfo(this JsonSerializerOptions options, Type type) 25public static JsonTypeInfo GetRequiredTypeInfo(this JsonSerializerContext context, Type type)
Microsoft.AspNetCore.StaticAssets (3)
Generated\361d1da7f942c932\StaticAssetsManifestJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.Build (3)
Generated\361d1da7f942c932\TasksDetailsJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.DotNet.Cli.Definitions (3)
Generated\361d1da7f942c932\GlobalJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.DotNet.Cli.InternalMicrosoft (3)
Generated\361d1da7f942c932\InternalMicrosoftDetectorJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.DotNet.Cli.Telemetry (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TelemetryJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.DotNet.HotReload.WebAssembly.Browser (3)
Generated\361d1da7f942c932\WebAssemblyHotReloadJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.DotNet.ProjectTools (3)
Generated\361d1da7f942c932\LaunchProfileJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.DotNet.TemplateLocator (6)
Generated\361d1da7f942c932\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\WorkloadSetJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.Extensions.AI (7)
Common\OtelMessageSerializer.cs (3)
228JsonTypeInfo? unknownContentTypeInfo = 229customContentSerializerOptions?.TryGetTypeInfo(content.GetType(), out JsonTypeInfo? ctsi) is true ? ctsi : 230DefaultOptions.TryGetTypeInfo(content.GetType(), out JsonTypeInfo? dtsi) ? dtsi :
Realtime\OpenTelemetryRealtimeClientSession.cs (3)
625JsonTypeInfo? unknownContentTypeInfo = null; 626if (_jsonSerializerOptions?.TryGetTypeInfo(content.GetType(), out JsonTypeInfo? ctsi) ?? false) 630else if (AIJsonUtilities.DefaultOptions.TryGetTypeInfo(content.GetType(), out JsonTypeInfo? dtsi))
TelemetryHelpers.cs (1)
21if (options?.TryGetTypeInfo(typeof(T), out var typeInfo) is true ||
Microsoft.Extensions.AI.Abstractions (7)
Functions\AIFunctionFactory.cs (3)
961JsonTypeInfo? typeInfo = serializerOptions.GetTypeInfo(parameterType); 1033JsonTypeInfo returnTypeInfo; 1189static async ValueTask<object?> SerializeResultAsync(object? result, JsonTypeInfo returnTypeInfo, CancellationToken cancellationToken)
Utilities\AIJsonSchemaCreateContext.cs (3)
36/// Gets the <see cref="JsonTypeInfo"/> for the type being processed. 38public JsonTypeInfo TypeInfo => _exporterContext.TypeInfo; 43public JsonTypeInfo? BaseTypeInfo => _exporterContext.BaseTypeInfo;
Utilities\AIJsonUtilities.cs (1)
88JsonTypeInfo jti = serializerOptions.GetTypeInfo(typeof(object));
Microsoft.Extensions.AI.Abstractions.Tests (3)
ResponseContinuationTokenTests.cs (1)
45Assert.True(AIJsonUtilities.DefaultOptions.TryGetTypeInfo(typeof(ResponseContinuationToken), out var info));
Utilities\AIJsonUtilitiesTests.cs (2)
676JsonTypeInfo typeInfo = options.GetTypeInfo(testData.Type); 1812JsonTypeInfo typeInfo = options.GetTypeInfo(testData.Type);
Microsoft.Extensions.AI.Evaluation.Reporting (2)
JsonSerialization\EvaluationContextConverter.cs (2)
68JsonTypeInfo contentsTypeInfo = options.GetTypeInfo(typeof(IReadOnlyList<AIContent>)); 90JsonTypeInfo contentsTypeInfo = options.GetTypeInfo(typeof(IReadOnlyList<AIContent>));
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
src\Libraries\Microsoft.Extensions.AI.Evaluation.Reporting\CSharp\JsonSerialization\EvaluationContextConverter.cs (2)
68JsonTypeInfo contentsTypeInfo = options.GetTypeInfo(typeof(IReadOnlyList<AIContent>)); 90JsonTypeInfo contentsTypeInfo = options.GetTypeInfo(typeof(IReadOnlyList<AIContent>));
Microsoft.Extensions.AI.Stabilization.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\ResponseContinuationTokenTests.cs (1)
45Assert.True(AIJsonUtilities.DefaultOptions.TryGetTypeInfo(typeof(ResponseContinuationToken), out var info));
Microsoft.JSInterop (4)
Infrastructure\JSInteropJsonTypeInfoResolver.cs (3)
24public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options) 28return JsonTypeInfo.CreateJsonTypeInfo(type, options); 35return JsonTypeInfo.CreateJsonTypeInfo(type, options);
Infrastructure\PendingAsyncCall.cs (1)
19var typeInfo = runtime.JsonSerializerOptions.GetTypeInfo(typeof(TValue));
Microsoft.Maui (5)
Core\IHybridWebView.cs (1)
67 JsonTypeInfo?[]? paramJsonTypeInfos = null);
Primitives\HybridWebViewInvokeJavaScriptRequest.cs (4)
6 public class HybridWebViewInvokeJavaScriptRequest(string methodName, JsonTypeInfo? returnTypeJsonTypeInfo, object?[]? paramValues, JsonTypeInfo?[]? paramJsonTypeInfos) 10 public JsonTypeInfo? ReturnTypeJsonTypeInfo { get; } = returnTypeJsonTypeInfo; 12 public JsonTypeInfo?[]? ParamJsonTypeInfos { get; } = paramJsonTypeInfos;
Microsoft.Maui.Controls (2)
HybridWebView\HybridWebView.cs (2)
88 JsonTypeInfo?[]? paramJsonTypeInfos = null) 117 JsonTypeInfo?[]? paramJsonTypeInfos = null)
Microsoft.ML.Tokenizers (3)
Generated\361d1da7f942c932\ModelSourceGenerationContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.NET.Build.Tasks (9)
Generated\361d1da7f942c932\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\SdkVulnerabilitySummaryContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\WorkloadSetJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.NET.ProjectData.Tasks (3)
Generated\361d1da7f942c932\ProjectDataBuildJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (9)
Generated\361d1da7f942c932\DefineStaticWebAssetsSerializerContext.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\ImportMapSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\StaticWebAssetsJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.NET.Sdk.WorkloadManifestReader (6)
Generated\361d1da7f942c932\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\WorkloadSetJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.TemplateEngine.Edge (9)
Generated\361d1da7f942c932\GlobalSettingsJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\SettingsStoreJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\TemplateCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
Generated\361d1da7f942c932\JsonEncodeSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Microsoft.TestPlatform.CommunicationUtilities (3)
Generated\361d1da7f942c932\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
NuGet.CommandLine.XPlat (3)
Generated\361d1da7f942c932\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
NuGet.Credentials (3)
Generated\361d1da7f942c932\PluginCredentialResponseJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
NuGet.Packaging (3)
Generated\361d1da7f942c932\NupkgMetadataSerializationContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
NuGet.ProjectModel (6)
Generated\361d1da7f942c932\AssetsLogMessageSourceGen.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\CacheFileSourceGen.GetJsonTypeInfo.g.cs (3)
16public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 18Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 22global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
NuGet.Protocol (15)
Generated\361d1da7f942c932\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\PluginCacheJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\361d1da7f942c932\RepositorySignatureJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\PluginJsonContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
sdk-tasks (3)
Generated\361d1da7f942c932\SdkTasksJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
14public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type) 16Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo); 20global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
System.Memory.Data (2)
System\BinaryData.cs (2)
391/// <param name="jsonTypeInfo">The <see cref="JsonTypeInfo"/> to use when serializing to JSON.</param> 458/// <param name="jsonTypeInfo">The <see cref="JsonTypeInfo"/> to use when serializing to JSON.</param>
System.Net.Http.Json (4)
System\Net\Http\Json\JsonContent.cs (3)
18private readonly JsonTypeInfo _typeInfo; 24JsonTypeInfo jsonTypeInfo, 96public static JsonContent Create(object? inputValue, JsonTypeInfo jsonTypeInfo, MediaTypeHeaderValue? mediaType = null)
System\Net\Http\Json\JsonHelpers.cs (1)
17internal static JsonTypeInfo GetJsonTypeInfo(Type type, JsonSerializerOptions? options)
System.Text.Json (378)
System\Text\Json\Nodes\JsonValue.cs (1)
79/// <param name="jsonTypeInfo">The <see cref="JsonTypeInfo"/> that will be used to serialize the value.</param>
System\Text\Json\Schema\JsonSchemaExporter.cs (13)
17/// Functionality for exporting JSON schema from serialization contracts defined in <see cref="JsonTypeInfo"/>. 34JsonTypeInfo typeInfo = options.GetTypeInfoInternal(type); 44public static JsonNode GetJsonSchemaAsNode(this JsonTypeInfo typeInfo, JsonSchemaExporterOptions? exporterOptions = null) 59JsonTypeInfo typeInfo, 63JsonTypeInfo? parentPolymorphicTypeInfo = null, 125JsonTypeInfo derivedTypeInfo = typeInfo.Options.GetTypeInfoInternal(derivedType.DerivedType); 183JsonTypeInfo elementTypeInfo = typeInfo.Options.GetTypeInfo(elementConverter.Type!); 370JsonTypeInfo caseTypeInfo = typeInfo.Options.GetTypeInfoInternal(caseInfo.CaseType); 513private static bool IsPolymorphicTypeThatSpecifiesItselfAsDerivedType(JsonTypeInfo typeInfo) 531private readonly Dictionary<(JsonTypeInfo, JsonPropertyInfo?), string[]> _generated = new(); 558(JsonTypeInfo TypeInfo, JsonPropertyInfo? PropertyInfo) key = (context.TypeInfo, context.PropertyInfo); 578public JsonSchemaExporterContext CreateContext(JsonTypeInfo typeInfo, JsonPropertyInfo? propertyInfo, JsonTypeInfo? baseTypeInfo)
System\Text\Json\Schema\JsonSchemaExporterContext.cs (6)
16JsonTypeInfo typeInfo, 18JsonTypeInfo? baseTypeInfo, 28/// The <see cref="JsonTypeInfo"/> for the type being processed. 30public JsonTypeInfo TypeInfo { get; } 38/// Gets the <see cref="JsonTypeInfo"/> for polymorphic base type if the schema is being generated for a derived type. 40public JsonTypeInfo? BaseTypeInfo { get; }
System\Text\Json\Serialization\Attributes\JsonObjectCreationHandlingAttribute.cs (1)
17/// that support population will be populated. When default resolvers are used this will be mapped to <see cref="JsonTypeInfo.PreferredPropertyObjectCreationHandling"/>.
System\Text\Json\Serialization\Attributes\JsonUnionAttribute.cs (1)
28/// contract customization to populate <see cref="Metadata.JsonTypeInfo.UnionCases"/>
System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs (1)
43JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (1)
58JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (1)
40internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (2)
66JsonTypeInfo typeInfo = state.Current.JsonTypeInfo; 106internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (1)
54internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (3)
197JsonTypeInfo.ValidateType(elementType!); 205JsonTypeInfo.ValidateType(elementType!); 206JsonTypeInfo.ValidateType(dictionaryKeyType!);
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (1)
79internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (1)
40internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverterWithReflection.cs (1)
24internal override void ConfigureJsonTypeInfoUsingReflection(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverter.cs (1)
30JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\ImmutableEnumerableOfTConverterWithReflection.cs (1)
23internal override void ConfigureJsonTypeInfoUsingReflection(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\IReadOnlySetOfTConverter.cs (1)
37internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (1)
37internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (5)
34JsonTypeInfo typeInfo = state.Current.JsonTypeInfo; 51protected static JsonConverter<TElement> GetElementConverter(JsonTypeInfo elementTypeInfo) 69JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo; 70JsonTypeInfo elementTypeInfo = jsonTypeInfo.ElementTypeInfo!; 307JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (6)
49JsonTypeInfo typeInfo = state.Current.JsonTypeInfo; 68protected static JsonConverter<T> GetConverter<T>(JsonTypeInfo typeInfo) 80JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo; 81JsonTypeInfo keyTypeInfo = jsonTypeInfo.KeyTypeInfo!; 82JsonTypeInfo elementTypeInfo = jsonTypeInfo.ElementTypeInfo!; 347JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverter.cs (1)
30JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Collection\StackOrQueueConverterWithReflection.cs (1)
21internal override void ConfigureJsonTypeInfoUsingReflection(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (3)
143JsonTypeInfo jsonTypeInfo = options.GetTypeInfoInternal(typeToConvert); 395JsonTypeInfo typeInfo = options.GetTypeInfoInternal(typeof(T)); 453internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (2)
53JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo; 68internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Node\JsonObjectConverter.cs (1)
13internal override void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Object\ObjectConverterFactory.cs (1)
79JsonTypeInfo.ValidateType(parameterType);
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (3)
28JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo; 277internal static void PopulatePropertiesFastPath(object obj, JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options, ref Utf8JsonReader reader, scoped ref ReadStack state) 328JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (2)
26JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo; 591JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.cs (1)
54JsonTypeInfo typeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Large.Reflection.cs (1)
25internal override void ConfigureJsonTypeInfoUsingReflection(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.Small.cs (3)
19var createObject = (JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>) 91JsonTypeInfo typeInfo = state.Current.JsonTypeInfo; 124internal override void ConfigureJsonTypeInfoUsingReflection(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options)
System\Text\Json\Serialization\Converters\Union\JsonUnionConverter.cs (2)
59JsonTypeInfo caseTypeInfo; 187JsonTypeInfo caseTypeInfo = options.GetTypeInfoInternal(caseType);
System\Text\Json\Serialization\Converters\Value\NullableConverter.cs (1)
40JsonTypeInfo previousTypeInfo = state.Current.JsonTypeInfo;
System\Text\Json\Serialization\JsonConverter.cs (4)
58/// Indicates that the converter can consume the <see cref="JsonTypeInfo.CreateObject"/> delegate. 117internal virtual JsonTypeInfo CreateJsonTypeInfo(JsonSerializerOptions options) 255internal virtual void ConfigureJsonTypeInfo(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options) { } 262internal virtual void ConfigureJsonTypeInfoUsingReflection(JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options) { }
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (4)
14internal JsonConverter? ResolvePolymorphicConverter(JsonTypeInfo jsonTypeInfo, ref ReadStack state) 29JsonTypeInfo? resolvedType; 83internal JsonConverter? ResolvePolymorphicConverter(object value, JsonTypeInfo jsonTypeInfo, JsonSerializerOptions options, ref WriteStack state) 110if (resolver.TryGetDerivedJsonTypeInfo(runtimeType, out JsonTypeInfo? derivedJsonTypeInfo, out object? typeDiscriminator))
System\Text\Json\Serialization\JsonConverterOfT.cs (2)
55internal sealed override JsonTypeInfo CreateJsonTypeInfo(JsonSerializerOptions options) 377JsonTypeInfo jsonTypeInfo = state.PeekNestedJsonTypeInfo();
System\Text\Json\Serialization\JsonResumableConverterOfT.cs (2)
24JsonTypeInfo jsonTypeInfo = options.GetTypeInfoInternal(typeToConvert); 37JsonTypeInfo typeInfo = options.GetTypeInfoInternal(typeof(T));
System\Text\Json\Serialization\JsonSerializer.Helpers.cs (3)
35private static JsonTypeInfo GetTypeInfo(JsonSerializerOptions? options, Type inputType) 55private static JsonTypeInfo GetTypeInfo(JsonSerializerContext context, Type inputType) 60JsonTypeInfo? info = context.GetTypeInfo(inputType);
System\Text\Json\Serialization\JsonSerializer.Read.Document.cs (3)
64JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 109public static object? Deserialize(this JsonDocument document, JsonTypeInfo jsonTypeInfo) 161JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, returnType);
System\Text\Json\Serialization\JsonSerializer.Read.Element.cs (3)
58JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 98public static object? Deserialize(this JsonElement element, JsonTypeInfo jsonTypeInfo) 144JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, returnType);
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
25internal static bool TryReadMetadata(JsonConverter converter, JsonTypeInfo jsonTypeInfo, ref Utf8JsonReader reader, scoped ref ReadStack state)
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (2)
27JsonTypeInfo jsonTypeInfo = state.Current.JsonTypeInfo; 143if (jsonPropertyInfo.PropertyType.FullName == JsonTypeInfo.JsonObjectTypeName)
System\Text\Json\Serialization\JsonSerializer.Read.Node.cs (4)
56JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 90public static object? Deserialize(this JsonNode? node, JsonTypeInfo jsonTypeInfo) 135JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, returnType); 160private static object? ReadFromNodeAsObject(JsonNode? node, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Read.Pipe.cs (4)
104JsonTypeInfo jsonTypeInfo, 139/// did not return a compatible <see cref="JsonTypeInfo"/> for <paramref name="returnType"/>. 151JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, returnType); 189JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType);
System\Text\Json\Serialization\JsonSerializer.Read.Span.cs (4)
62JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 96public static object? Deserialize(ReadOnlySpan<byte> utf8Json, JsonTypeInfo jsonTypeInfo) 125/// did not return a compatible <see cref="JsonTypeInfo"/> for <paramref name="returnType"/>. 152private static object? ReadFromSpanAsObject(ReadOnlySpan<byte> utf8Json, JsonTypeInfo jsonTypeInfo, int? actualByteCount = null)
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (8)
120JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 154JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 208JsonTypeInfo jsonTypeInfo, 261JsonTypeInfo jsonTypeInfo) 295/// did not return a compatible <see cref="JsonTypeInfo"/> for <paramref name="returnType"/>. 307JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, returnType); 333/// did not return a compatible <see cref="JsonTypeInfo"/> for <paramref name="returnType"/>. 344JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, returnType);
System\Text\Json\Serialization\JsonSerializer.Read.String.cs (7)
121JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 160JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 257public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] string json, JsonTypeInfo jsonTypeInfo) 284public static object? Deserialize([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlySpan<char> json, JsonTypeInfo jsonTypeInfo) 333JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, returnType); 377JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, returnType); 412private static unsafe object? ReadFromSpanAsObject(ReadOnlySpan<char> json, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Read.Utf8JsonReader.cs (4)
116JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, returnType); 205public static object? Deserialize(ref Utf8JsonReader reader, JsonTypeInfo jsonTypeInfo) 237/// did not return a compatible <see cref="JsonTypeInfo"/> for <paramref name="returnType"/>. 295private static object? ReadAsObject(ref Utf8JsonReader reader, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Write.ByteArray.cs (4)
58JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, inputType); 91public static byte[] SerializeToUtf8Bytes(object? value, JsonTypeInfo jsonTypeInfo) 125JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, inputType); 146private static byte[] WriteBytesAsObject(object? value, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Write.Document.cs (3)
54JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, inputType); 88public static JsonDocument SerializeToDocument(object? value, JsonTypeInfo jsonTypeInfo) 143private static JsonDocument WriteDocumentAsObject(object? value, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Write.Element.cs (4)
54JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, inputType); 88public static JsonElement SerializeToElement(object? value, JsonTypeInfo jsonTypeInfo) 119JsonTypeInfo typeInfo = GetTypeInfo(context, inputType); 141private static JsonElement WriteElementAsObject(object? value, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Write.Node.cs (4)
55JsonTypeInfo typeInfo = GetTypeInfo(options, inputType); 89public static JsonNode? SerializeToNode(object? value, JsonTypeInfo jsonTypeInfo) 120JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, inputType); 142private static JsonNode? WriteNodeAsObject(object? value, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Write.Pipe.cs (3)
89JsonTypeInfo jsonTypeInfo, 129JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, inputType); 165JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, inputType);
System\Text\Json\Serialization\JsonSerializer.Write.Stream.cs (6)
113JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, inputType); 145JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, inputType); 213JsonTypeInfo jsonTypeInfo, 238JsonTypeInfo jsonTypeInfo) 277JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, inputType); 308JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, inputType);
System\Text\Json\Serialization\JsonSerializer.Write.String.cs (6)
65JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, inputType); 104/// encoding since the implementation internally uses UTF-8. See also <see cref="SerializeToUtf8Bytes(object?, JsonTypeInfo)"/> 105/// and <see cref="SerializeAsync(IO.Stream, object?, JsonTypeInfo, Threading.CancellationToken)"/>. 107public static string Serialize(object? value, JsonTypeInfo jsonTypeInfo) 142JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, inputType); 163private static string WriteStringAsObject(object? value, JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\JsonSerializer.Write.Utf8JsonWriter.cs (3)
67JsonTypeInfo jsonTypeInfo = GetTypeInfo(options, inputType); 102public static void Serialize(Utf8JsonWriter writer, object? value, JsonTypeInfo jsonTypeInfo) 138JsonTypeInfo jsonTypeInfo = GetTypeInfo(context, inputType);
System\Text\Json\Serialization\JsonSerializerContext.cs (3)
104/// Returns a <see cref="JsonTypeInfo"/> instance representing the given type. 108public abstract JsonTypeInfo? GetTypeInfo(Type type); 110JsonTypeInfo? IJsonTypeInfoResolver.GetTypeInfo(Type type, JsonSerializerOptions options)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (22)
41private volatile JsonTypeInfo? _lastTypeInfo; 44/// Gets the <see cref="JsonTypeInfo"/> contract metadata resolved by the current <see cref="JsonSerializerOptions"/> instance. 55public JsonTypeInfo GetTypeInfo(Type type) 59if (JsonTypeInfo.IsInvalidForSerialization(type)) 68/// Tries to get the <see cref="JsonTypeInfo"/> contract metadata resolved by the current <see cref="JsonSerializerOptions"/> instance. 80public bool TryGetTypeInfo(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 84if (JsonTypeInfo.IsInvalidForSerialization(type)) 127internal JsonTypeInfo? GetTypeInfoInternal( 139JsonTypeInfo? typeInfo = null; 162internal bool TryGetTypeInfoCached(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 177internal JsonTypeInfo GetTypeInfoForRootType(Type type, bool fallBackToNearestAncestorType = false) 179JsonTypeInfo? jsonTypeInfo = _lastTypeInfo; 189internal bool TryGetPolymorphicTypeInfoForRootType(object rootValue, [NotNullWhen(true)] out JsonTypeInfo? polymorphicTypeInfo) 213internal JsonTypeInfo ObjectTypeInfo 222private JsonTypeInfo? _objectTypeInfo; 259public JsonTypeInfo? GetOrAddTypeInfo(Type type, bool fallBackToNearestAncestorType = false) 267public bool TryGetTypeInfo(Type type, [NotNullWhen(true)] out JsonTypeInfo? typeInfo) 292JsonTypeInfo? typeInfo = context.Options.GetTypeInfoNoCaching(type); 302private JsonTypeInfo? FallBackToNearestAncestor(Type type, CacheEntry entry) 392public readonly JsonTypeInfo? TypeInfo; 398public CacheEntry(JsonTypeInfo? typeInfo) 410public JsonTypeInfo? GetResult()
System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs (1)
81JsonTypeInfo jsonTypeInfo = GetTypeInfoInternal(typeToConvert, ensureConfigured: false, resolveIfMutable: true);
System\Text\Json\Serialization\JsonSerializerOptions.cs (5)
228/// Gets or sets the <see cref="JsonTypeInfo"/> contract resolver used by this instance. 262/// Gets the list of chained <see cref="JsonTypeInfo"/> contract resolvers used by this instance. 935/// Read-only instances use caching when querying <see cref="JsonConverter"/> and <see cref="JsonTypeInfo"/> metadata. 1052private JsonTypeInfo? GetTypeInfoNoCaching(Type type) 1060JsonTypeInfo? info = resolver.GetTypeInfo(type, this);
System\Text\Json\Serialization\JsonTypeClassifierContext.cs (4)
37JsonTypeInfo declaringTypeInfo, 64internal JsonTypeInfo DeclaringTypeInfo { get; } 71/// list mirrors <see cref="JsonTypeInfo.UnionCases"/> on the resolved 72/// <see cref="JsonTypeInfo"/>.
System\Text\Json\Serialization\JsonTypeClassifierFactory.cs (1)
21/// <see cref="JsonTypeInfo"/> configuration, and the returned delegate is invoked
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (4)
86JsonTypeInfo unionTypeInfo, 176JsonTypeInfo typeInfo = options.GetTypeInfo(caseType); 178if (typeInfo is { IsNullable: true, ElementTypeInfo: JsonTypeInfo elementTypeInfo }) 254JsonTypeInfo typeInfo,
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.cs (8)
41/// <returns>A <see cref="JsonTypeInfo"/> defining a reflection-derived JSON contract for <paramref name="type"/>.</returns> 51public virtual JsonTypeInfo GetTypeInfo(Type type, JsonSerializerOptions options) 58JsonTypeInfo.ValidateType(type); 59JsonTypeInfo typeInfo = CreateJsonTypeInfo(type, options); 68foreach (Action<JsonTypeInfo> modifier in _modifiers) 79private static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options) 93public IList<Action<JsonTypeInfo>> Modifiers => _modifiers ??= new ModifierCollection(this); 96private sealed class ModifierCollection : ConfigurationList<Action<JsonTypeInfo>>
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (13)
27private static JsonTypeInfo CreateTypeInfoCore(Type type, JsonConverter converter, JsonSerializerOptions options) 29JsonTypeInfo typeInfo = JsonTypeInfo.CreateJsonTypeInfo(type, converter, options); 84internal static void PopulatePolymorphismMetadata(JsonTypeInfo typeInfo) 539private static void PopulateProperties(JsonTypeInfo typeInfo, NullabilityInfoContext nullabilityCtx) 558JsonTypeInfo.PropertyHierarchyResolutionState state = new(typeInfo.Options); 596JsonTypeInfo typeInfo, 602ref JsonTypeInfo.PropertyHierarchyResolutionState state) 662JsonTypeInfo typeInfo, 670ref JsonTypeInfo.PropertyHierarchyResolutionState state) 686JsonTypeInfo typeInfo, 708if (JsonTypeInfo.IsInvalidForSerialization(typeToConvert)) 761private static void PopulateParameterInfoValues(JsonTypeInfo typeInfo, NullabilityInfoContext nullabilityCtx)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (7)
20internal static void PopulateUnionMetadata(JsonTypeInfo typeInfo) 36public abstract void Build(JsonTypeInfo typeInfo); 46public override void Build(JsonTypeInfo typeInfo) 88/// <see cref="JsonTypeInfo.UnionCases"/> in declaration order. Each ctor overload 94/// time via <see cref="JsonTypeInfo.UnionAmbiguousValueTypes"/>. 133/// Builds the convention-based <see cref="JsonTypeInfo.UnionDeconstructor"/> and 134/// <see cref="JsonTypeInfo.UnionConstructor"/> delegates.
System\Text\Json\Serialization\Metadata\IJsonTypeInfoResolver.cs (3)
12/// Resolves a <see cref="JsonTypeInfo"/> contract for the requested type and options. 17/// A <see cref="JsonTypeInfo"/> instance matching the requested type, 20JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options);
System\Text\Json\Serialization\Metadata\JsonCollectionInfoValuesOfTCollection.cs (5)
23/// If a dictionary type, the <see cref="JsonTypeInfo"/> instance representing the key type. 26public JsonTypeInfo? KeyInfo { get; init; } 29/// A <see cref="JsonTypeInfo"/> instance representing the element type. 32public JsonTypeInfo ElementInfo { get; init; } = null!; 54/// from the polymorphic type's metadata at <see cref="JsonTypeInfo"/> configuration time.
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (6)
44typeInfo.CreateObjectForExtensionDataProperty = ((JsonTypeInfo)typeInfo).CreateObject; 120JsonTypeInfo typeInfo, 149private static void PopulateParameterInfoValues(JsonTypeInfo typeInfo, Func<JsonParameterInfoValues[]?>? paramFactory) 164internal static void PopulateProperties(JsonTypeInfo typeInfo, JsonTypeInfo.JsonPropertyInfoList propertyList, Func<JsonSerializerContext, JsonPropertyInfo[]> propInitFunc) 176JsonTypeInfo.PropertyHierarchyResolutionState state = new(typeInfo.Options);
System\Text\Json\Serialization\Metadata\JsonObjectInfoValuesOfT.cs (1)
66/// from the polymorphic type's metadata at <see cref="JsonTypeInfo"/> configuration time.
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (1)
124internal JsonTypeInfo JsonTypeInfo => MatchingProperty.JsonTypeInfo;
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (4)
36/// The parent <see cref="JsonTypeInfo"/> instance has been locked for further modification. 53/// The parent <see cref="JsonTypeInfo"/> instance has been locked for further modification. 71/// The parent <see cref="JsonTypeInfo"/> instance has been locked for further modification. 87internal JsonTypeInfo? DeclaringTypeInfo { get; set; }
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (10)
20internal JsonTypeInfo? DeclaringTypeInfo { get; private set; } 197/// capability of property converter to populate, containing type's <see cref="JsonTypeInfo.PreferredPropertyObjectCreationHandling"/>. 321if (value && !JsonTypeInfo.IsValidExtensionDataProperty(PropertyType)) 369internal JsonPropertyInfo(Type declaringType, Type propertyType, JsonTypeInfo? declaringTypeInfo, JsonSerializerOptions options) 464private protected abstract void DetermineEffectiveConverter(JsonTypeInfo jsonTypeInfo); 882JsonTypeInfo dictionaryValueInfo = 936internal void EnsureChildOf(JsonTypeInfo parent) 968internal JsonTypeInfo JsonTypeInfo 977JsonTypeInfo jsonTypeInfo = _jsonTypeInfo; 987private JsonTypeInfo? _jsonTypeInfo;
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
19internal JsonPropertyInfo(Type declaringType, JsonTypeInfo? declaringTypeInfo, JsonSerializerOptions options) 147private protected override void DetermineEffectiveConverter(JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoValuesOfT.cs (2)
37/// The <see cref="JsonTypeInfo"/> info for the property or field's type. 39public JsonTypeInfo PropertyTypeInfo { get; init; } = null!;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (47)
75/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 106/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 136/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 166/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 202/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 288/// <paramref name="value" /> has been associated with a different <see cref="JsonTypeInfo"/> instance. 291/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 340/// A <see cref="JsonTypeInfo"/> instance can be locked either if 390private readonly JsonTypeInfo _parent; 392public JsonUnionCaseInfoList(JsonTypeInfo parent, IEnumerable<JsonUnionCaseInfo>? source = null) : base(source) 458/// <c>CaseValue</c> using the <see cref="JsonTypeInfo"/> registered for that case 628internal JsonTypeInfo? ElementTypeInfo 638JsonTypeInfo? elementTypeInfo = _elementTypeInfo; 654internal JsonTypeInfo? KeyTypeInfo 664JsonTypeInfo? keyTypeInfo = _keyTypeInfo; 676private JsonTypeInfo? _elementTypeInfo; 677private JsonTypeInfo? _keyTypeInfo; 680/// Gets the <see cref="JsonSerializerOptions"/> value associated with the current <see cref="JsonTypeInfo" /> instance. 695/// As such, the value of the converter cannot be changed once a <see cref="JsonTypeInfo"/> instance has been created. 715/// Dummy <see cref="JsonPropertyInfo"/> instance corresponding to the declaring type of this <see cref="JsonTypeInfo"/>. 733/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 765/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 805/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 843/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 1039/// Validates that a union <see cref="JsonTypeInfo"/> has a well-formed shape after 1157/// This helper operates purely on already-resolved <see cref="JsonTypeInfo"/> / 1162private static void BuildUnionValueTypeMap(IList<JsonUnionCaseInfo> unionCases, JsonSerializerOptions options, JsonTypeInfo target) 1170JsonTypeInfo caseTypeInfo = options.GetTypeInfoInternal(caseType); 1226internal JsonTypeInfo? AncestorPolymorphicType 1243private JsonTypeInfo? _ancestorPolymorhicType; 1343/// which constrains the type of metadata that can be modified in the <see cref="JsonTypeInfo"/> instance. 1356/// Creates a blank <see cref="JsonTypeInfo"/> instance. 1360/// <returns>A blank <see cref="JsonTypeInfo"/> instance.</returns> 1364/// The returned <see cref="JsonTypeInfo"/> will be blank, with the exception of the 1371/// which constrains the type of metadata that can be modified in the <see cref="JsonTypeInfo"/> instance. 1375public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options) 1391internal static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonConverter converter, JsonSerializerOptions options) 1393JsonTypeInfo jsonTypeInfo; 1404jsonTypeInfo = (JsonTypeInfo)jsonTypeInfoType.CreateInstanceNoWrapExceptions( 1414/// Creates a blank <see cref="JsonPropertyInfo"/> instance for the current <see cref="JsonTypeInfo"/>. 1421/// <exception cref="InvalidOperationException">The <see cref="JsonTypeInfo"/> instance has been locked for further modification.</exception> 1447if (Options.TryGetTypeInfoCached(propertyType, out JsonTypeInfo? jsonTypeInfo)) 1460parameterTypes: [typeof(Type), typeof(JsonTypeInfo), typeof(JsonSerializerOptions)], 1471private protected abstract JsonPropertyInfo CreateJsonPropertyInfo(JsonTypeInfo declaringTypeInfo, Type? declaringType, JsonSerializerOptions options); 1753(propertyType.FullName == JsonObjectTypeName && ReferenceEquals(propertyType.Assembly, typeof(JsonTypeInfo).Assembly)); 1787private readonly JsonTypeInfo _jsonTypeInfo; 1789public JsonPropertyInfoList(JsonTypeInfo jsonTypeInfo)
System\Text\Json\Serialization\Metadata\JsonTypeInfoKind.cs (1)
7/// Determines the kind of contract metadata a given <see cref="JsonTypeInfo"/> is specifying.
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (6)
36/// The <see cref="JsonTypeInfo"/> instance has been locked for further modification. 40/// A parameterless factory is not supported for the current metadata <see cref="JsonTypeInfo.Kind"/>. 125/// <see cref="JsonTypeInfo.UnionDeconstructor"/> on the base type. Refer to that 178/// <see cref="JsonTypeInfo.UnionConstructor"/> on the base type. 189/// <see cref="JsonTypeInfo.UnionConstructor"/> for the full null-handling contract. 261private protected override JsonPropertyInfo CreateJsonPropertyInfo(JsonTypeInfo declaringTypeInfo, Type? declaringType, JsonSerializerOptions options)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (3)
109internal JsonTypeInfo? _asyncEnumerableArrayTypeInfo; 110internal JsonTypeInfo? _asyncEnumerableRootLevelValueTypeInfo; 111internal JsonTypeInfo? _asyncEnumerableRootLevelSerializer;
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (3)
45Options.TryGetPolymorphicTypeInfoForRootType(rootValue, out JsonTypeInfo? derivedTypeInfo)) 151Options.TryGetPolymorphicTypeInfoForRootType(rootValue, out JsonTypeInfo? derivedTypeInfo)) 319Options.TryGetPolymorphicTypeInfoForRootType(rootValue, out JsonTypeInfo? polymorphicTypeInfo))
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolver.cs (5)
61/// <param name="resolver">The source resolver generating <see cref="JsonTypeInfo"/> metadata.</param> 62/// <param name="modifier">The delegate modifying non-null <see cref="JsonTypeInfo"/> results.</param> 68public static IJsonTypeInfoResolver WithAddedModifier(this IJsonTypeInfoResolver resolver, Action<JsonTypeInfo> modifier) 79/// Gets a resolver that returns null <see cref="JsonTypeInfo"/> for every type. 96public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options) => null;
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolverChain.cs (2)
13public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options) 17JsonTypeInfo? typeInfo = resolver.GetTypeInfo(type, options);
System\Text\Json\Serialization\Metadata\JsonTypeInfoResolverWithAddedModifiers.cs (7)
11private readonly Action<JsonTypeInfo>[] _modifiers; 13public JsonTypeInfoResolverWithAddedModifiers(IJsonTypeInfoResolver source, Action<JsonTypeInfo>[] modifiers) 20public JsonTypeInfoResolverWithAddedModifiers WithAddedModifier(Action<JsonTypeInfo> modifier) 22var newModifiers = new Action<JsonTypeInfo>[_modifiers.Length + 1]; 29public JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options) 31JsonTypeInfo? typeInfo = _source.GetTypeInfo(type, options); 35foreach (Action<JsonTypeInfo> modifier in _modifiers)
System\Text\Json\Serialization\Metadata\JsonUnionInfoValuesOfT.cs (2)
34/// Refer to <see cref="JsonTypeInfo.UnionDeconstructor"/> for the full <c>(CaseType, CaseValue)</c> 48/// from the union's metadata at <see cref="JsonTypeInfo"/> configuration time.
System\Text\Json\Serialization\Metadata\MemberAccessor.cs (1)
54public abstract JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>? CreateParameterizedConstructor<T, TArg0, TArg1, TArg2, TArg3>(ConstructorInfo constructor);
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (13)
45JsonTypeInfo derivedTypeInfo = options.GetTypeInfoInternal(derivedType); 120/// Resolves a classifier-returned <see cref="Type"/> to its <see cref="JsonTypeInfo"/> using the registered derived types. 122public bool TryResolveDerivedJsonTypeInfo(Type resolvedType, [NotNullWhen(true)] out JsonTypeInfo? jsonTypeInfo) 141public bool TryGetDerivedJsonTypeInfo(Type runtimeType, [NotNullWhen(true)] out JsonTypeInfo? jsonTypeInfo, out object? typeDiscriminator) 185public bool TryGetDerivedJsonTypeInfo(object typeDiscriminator, [NotNullWhen(true)] out JsonTypeInfo? jsonTypeInfo) 276internal static JsonTypeInfo? FindNearestPolymorphicBaseType(JsonTypeInfo typeInfo) 286JsonTypeInfo? matchingResult = null; 291JsonTypeInfo? candidateInfo = ResolveAncestorTypeInfo(candidate, typeInfo.Options); 303JsonTypeInfo? candidateInfo = ResolveAncestorTypeInfo(interfaceType, typeInfo.Options); 334static JsonTypeInfo? ResolveAncestorTypeInfo(Type type, JsonSerializerOptions options) 354public DerivedJsonTypeInfo(object? typeDiscriminator, JsonTypeInfo derivedTypeInfo) 363public JsonTypeInfo JsonTypeInfo { get; }
System\Text\Json\Serialization\Metadata\ReflectionEmitCachingMemberAccessor.cs (1)
61public override JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>? CreateParameterizedConstructor<T, TArg0, TArg1, TArg2, TArg3>(ConstructorInfo constructor) =>
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (2)
176public override JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>? 178CreateDelegate<JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>>(
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
74public override JsonTypeInfo.ParameterizedConstructorDelegate<T, TArg0, TArg1, TArg2, TArg3>?
System\Text\Json\Serialization\ReadStack.cs (4)
102internal void Initialize(JsonTypeInfo jsonTypeInfo, bool supportContinuation = false) 132JsonTypeInfo jsonTypeInfo = Current.JsonPropertyInfo?.JsonTypeInfo ?? Current.CtorArgumentState!.JsonParameterInfo!.JsonTypeInfo; 218public JsonConverter InitializePolymorphicReEntry(JsonTypeInfo derivedJsonTypeInfo) 381public JsonTypeInfo GetTopJsonTypeInfoWithParameterizedConstructor()
System\Text\Json\Serialization\ReadStackFrame.cs (5)
46public JsonTypeInfo JsonTypeInfo; 58public JsonTypeInfo? PolymorphicJsonTypeInfo; 61public JsonTypeInfo BaseJsonTypeInfo 142internal void InitializePropertiesValidationState(JsonTypeInfo typeInfo) 154internal void ValidateAllRequiredPropertiesAreRead(JsonTypeInfo typeInfo)
System\Text\Json\Serialization\WriteStack.cs (3)
139JsonTypeInfo jsonTypeInfo, 172public readonly JsonTypeInfo PeekNestedJsonTypeInfo() 195JsonTypeInfo jsonTypeInfo = Current.GetNestedJsonTypeInfo();
System\Text\Json\Serialization\WriteStackFrame.cs (8)
35/// For objects, it is either the actual (real) JsonPropertyInfo or the <see cref="JsonTypeInfo.PropertyInfoForTypeInfo"/> for the class. 36/// For collections, it is the <see cref="JsonTypeInfo.PropertyInfoForTypeInfo"/> for the class and current element. 48public JsonTypeInfo JsonTypeInfo; 78public JsonTypeInfo? PolymorphicTypeInfo; 107public readonly JsonTypeInfo GetNestedJsonTypeInfo() 117public JsonTypeInfo InitializePolymorphicReEntry(Type runtimeType, JsonSerializerOptions options) 128JsonTypeInfo typeInfo = options.GetTypeInfoInternal(runtimeType, fallBackToNearestAncestorType: true); 139public JsonConverter InitializePolymorphicReEntry(JsonTypeInfo derivedJsonTypeInfo)
System\Text\Json\ThrowHelper.Serialization.cs (3)
303public static void ThrowJsonException_JsonRequiredPropertyMissing(JsonTypeInfo parent, BitArray assignedOrNotRequiredPropertiesSet) 465JsonTypeInfo jsonTypeInfo = state.GetTopJsonTypeInfoWithParameterizedConstructor(); 685public static void ThrowNotSupportedException_DeserializeNoConstructor(JsonTypeInfo typeInfo, ref Utf8JsonReader reader, scoped ref ReadStack state)