| File: _generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.CommandLine.XPlat\NuGet.CommandLine.XPlat.csproj (NuGet.CommandLine.XPlat) |
// <auto-generated/> #nullable enable annotations #nullable disable warnings // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0612, CS0618 namespace NuGet.CommandLine.XPlat { internal partial class PackageSearchJsonContext : 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(bool)) { return Create_Boolean(options); } if (type == typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblem)) { return Create_PackageSearchProblem(options); } if (type == typeof(global::NuGet.CommandLine.XPlat.PackageSearchProblemType)) { return Create_PackageSearchProblemType(options); } if (type == typeof(global::NuGet.CommandLine.XPlat.PackageSearchResult)) { return Create_PackageSearchResult(options); } if (type == typeof(global::NuGet.CommandLine.XPlat.SearchMainOutput)) { return Create_SearchMainOutput(options); } if (type == typeof(global::NuGet.Frameworks.NuGetFramework)) { return Create_NuGetFramework(options); } if (type == typeof(global::NuGet.Packaging.Core.PackageDependency)) { return Create_PackageDependency(options); } if (type == typeof(global::NuGet.Packaging.Core.PackageIdentity)) { return Create_PackageIdentity(options); } if (type == typeof(global::NuGet.Packaging.LicenseMetadata)) { return Create_LicenseMetadata(options); } if (type == typeof(global::NuGet.Packaging.Licenses.LicenseExpressionType)) { return Create_LicenseExpressionType(options); } if (type == typeof(global::NuGet.Packaging.Licenses.NuGetLicenseExpression)) { return Create_NuGetLicenseExpression(options); } if (type == typeof(global::NuGet.Packaging.LicenseType)) { return Create_LicenseType(options); } if (type == typeof(global::NuGet.Packaging.PackageDependencyGroup)) { return Create_PackageDependencyGroup(options); } if (type == typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata)) { return Create_IPackageSearchMetadata(options); } if (type == typeof(global::NuGet.Protocol.PackageVulnerabilityMetadata)) { return Create_PackageVulnerabilityMetadata(options); } if (type == typeof(global::NuGet.Versioning.FloatRange)) { return Create_FloatRange(options); } if (type == typeof(global::NuGet.Versioning.NuGetVersion)) { return Create_NuGetVersion(options); } if (type == typeof(global::NuGet.Versioning.NuGetVersionFloatBehavior)) { return Create_NuGetVersionFloatBehavior(options); } if (type == typeof(global::NuGet.Versioning.VersionRange)) { return Create_VersionRange(options); } if (type == typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.Core.PackageDependency>)) { return Create_IEnumerablePackageDependency(options); } if (type == typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Packaging.PackageDependencyGroup>)) { return Create_IEnumerablePackageDependencyGroup(options); } if (type == typeof(global::System.Collections.Generic.IEnumerable<global::NuGet.Protocol.PackageVulnerabilityMetadata>)) { return Create_IEnumerablePackageVulnerabilityMetadata(options); } if (type == typeof(global::System.Collections.Generic.IEnumerable<string>)) { return Create_IEnumerableString(options); } if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>)) { return Create_IReadOnlyListString(options); } if (type == typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchProblem>)) { return Create_ListPackageSearchProblem(options); } if (type == typeof(global::System.Collections.Generic.List<global::NuGet.CommandLine.XPlat.PackageSearchResult>)) { return Create_ListPackageSearchResult(options); } if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Core.Types.IPackageSearchMetadata>)) { return Create_ListIPackageSearchMetadata(options); } if (type == typeof(global::System.DateTimeOffset)) { return Create_DateTimeOffset(options); } if (type == typeof(global::System.DateTimeOffset?)) { return Create_NullableDateTimeOffset(options); } if (type == typeof(global::System.Uri)) { return Create_Uri(options); } if (type == typeof(global::System.Version)) { return Create_Version(options); } if (type == typeof(int)) { return Create_Int32(options); } if (type == typeof(long)) { return Create_Int64(options); } if (type == typeof(long?)) { return Create_NullableInt64(options); } if (type == typeof(string)) { return Create_String(options); } return null; } } }