| File: _generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj (NuGet.Protocol) |
// <auto-generated/> #nullable enable annotations #nullable disable warnings // Suppress warnings about [Obsolete] member usage in generated code. #pragma warning disable CS0612, CS0618 namespace NuGet.Protocol.Converters { 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.Frameworks.NuGetFramework)) { return Create_NuGetFramework(options); } if (type == typeof(global::NuGet.Packaging.Core.PackageDependency)) { return Create_PackageDependency(options); } if (type == typeof(global::NuGet.Packaging.PackageDependencyGroup)) { return Create_PackageDependencyGroup(options); } if (type == typeof(global::NuGet.Protocol.AlternatePackageMetadata)) { return Create_AlternatePackageMetadata(options); } if (type == typeof(global::NuGet.Protocol.Core.Types.VersionInfo)) { return Create_VersionInfo(options); } if (type == typeof(global::NuGet.Protocol.Core.Types.VersionInfo[])) { return Create_VersionInfoArray(options); } if (type == typeof(global::NuGet.Protocol.Model.RegistrationIndex)) { return Create_RegistrationIndex(options); } if (type == typeof(global::NuGet.Protocol.Model.RegistrationLeafItem)) { return Create_RegistrationLeafItem(options); } if (type == typeof(global::NuGet.Protocol.Model.RegistrationPage)) { return Create_RegistrationPage(options); } if (type == typeof(global::NuGet.Protocol.Model.V3SearchResults)) { return Create_V3SearchResults(options); } if (type == typeof(global::NuGet.Protocol.PackageDeprecationMetadata)) { return Create_PackageDeprecationMetadata(options); } if (type == typeof(global::NuGet.Protocol.PackageSearchMetadata)) { return Create_PackageSearchMetadata(options); } if (type == typeof(global::NuGet.Protocol.PackageSearchMetadataRegistration)) { return Create_PackageSearchMetadataRegistration(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.Protocol.Model.RegistrationLeafItem>)) { return Create_ListRegistrationLeafItem(options); } if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.Model.RegistrationPage>)) { return Create_ListRegistrationPage(options); } if (type == typeof(global::System.Collections.Generic.List<global::NuGet.Protocol.PackageSearchMetadata>)) { return Create_ListPackageSearchMetadata(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; } } }