File: _generated\33\RunFileApiJsonSerializerContext.GetJsonTypeInfo.g.cs
Web Access
Project: src\src\sdk\src\Cli\dotnet\dotnet.csproj (dotnet)
// <auto-generated/>

#nullable enable annotations
#nullable disable warnings

// Suppress warnings about [Obsolete] member usage in generated code.
#pragma warning disable CS0612, CS0618

namespace Microsoft.DotNet.Cli.Commands.Run.Api
{
    internal partial class RunFileApiJsonSerializerContext : global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver
    {
        /// <inheritdoc/>
        public override global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? GetTypeInfo(global::System.Type type)
        {
            Options.TryGetTypeInfo(type, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? typeInfo);
            return typeInfo;
        }

        global::System.Text.Json.Serialization.Metadata.JsonTypeInfo? global::System.Text.Json.Serialization.Metadata.IJsonTypeInfoResolver.GetTypeInfo(global::System.Type type, global::System.Text.Json.JsonSerializerOptions options)
        {
            if (type == typeof(global::Microsoft.CodeAnalysis.Text.LinePosition))
            {
                return Create_LinePosition(options);
            }
            if (type == typeof(global::Microsoft.CodeAnalysis.Text.LinePositionSpan))
            {
                return Create_LinePositionSpan(options);
            }
            if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput))
            {
                return Create_RunApiInput(options);
            }
            if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput.GetProject))
            {
                return Create_GetProject(options);
            }
            if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiInput.GetRunCommand))
            {
                return Create_GetRunCommand(options);
            }
            if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput))
            {
                return Create_RunApiOutput(options);
            }
            if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Error))
            {
                return Create_Error(options);
            }
            if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.Project))
            {
                return Create_Project(options);
            }
            if (type == typeof(global::Microsoft.DotNet.Cli.Commands.Run.Api.RunApiOutput.RunCommand))
            {
                return Create_RunCommand(options);
            }
            if (type == typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic))
            {
                return Create_SimpleDiagnostic(options);
            }
            if (type == typeof(global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic.Position))
            {
                return Create_Position(options);
            }
            if (type == typeof(global::System.Collections.Generic.IReadOnlyDictionary<string, string>))
            {
                return Create_IReadOnlyDictionaryStringString(options);
            }
            if (type == typeof(global::System.Collections.Immutable.ImmutableArray<global::Microsoft.DotNet.FileBasedPrograms.SimpleDiagnostic>))
            {
                return Create_ImmutableArraySimpleDiagnostic(options);
            }
            if (type == typeof(int))
            {
                return Create_Int32(options);
            }
            if (type == typeof(string))
            {
                return Create_String(options);
            }
            return null;
        }
    }
}