File: _generated\118\JsonContext.FloatRange.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.Utility
{
    internal partial class JsonContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Versioning.FloatRange>? _FloatRange;
        
        /// <summary>
        /// Defines the source generated JSON serialization contract metadata for a given type.
        /// </summary>
        #nullable disable annotations // Marking the property type as nullable-oblivious.
        public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Versioning.FloatRange> FloatRange
        #nullable enable annotations
        {
            get => _FloatRange ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Versioning.FloatRange>)Options.GetTypeInfo(typeof(global::NuGet.Versioning.FloatRange));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Versioning.FloatRange> Create_FloatRange(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Versioning.FloatRange>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Versioning.FloatRange> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Versioning.FloatRange>
                {
                    ObjectCreator = null,
                    ObjectWithParameterizedConstructorCreator = null,
                    PropertyMetadataInitializer = _ => FloatRangePropInit(options),
                    ConstructorParameterMetadataInitializer = null,
                    ConstructorAttributeProviderFactory = null,
                    SerializeHandler = null,
                    PolymorphismOptions = new global::System.Text.Json.Serialization.Metadata.JsonPolymorphismOptions(),
                    TypeClassifierFactory = null,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Versioning.FloatRange>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }

        private static global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[] FloatRangePropInit(global::System.Text.Json.JsonSerializerOptions options)
        {
            var properties = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfo[5];

            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Versioning.FloatRange),
                Converter = null,
                Getter = static obj => ((global::NuGet.Versioning.FloatRange)obj).HasMinVersion,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "HasMinVersion",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("HasMinVersion", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info0);

            var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Versioning.NuGetVersion>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Versioning.FloatRange),
                Converter = null,
                Getter = static obj => ((global::NuGet.Versioning.FloatRange)obj).MinVersion,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "MinVersion",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("MinVersion", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersion), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Versioning.NuGetVersion>(options, info1);
            properties[1].IsGetNullable = false;

            var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Versioning.NuGetVersionFloatBehavior>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Versioning.FloatRange),
                Converter = null,
                Getter = static obj => ((global::NuGet.Versioning.FloatRange)obj).FloatBehavior,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "FloatBehavior",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("FloatBehavior", InstanceMemberBindingFlags, null, typeof(global::NuGet.Versioning.NuGetVersionFloatBehavior), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Versioning.NuGetVersionFloatBehavior>(options, info2);

            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Versioning.FloatRange),
                Converter = null,
                Getter = static obj => ((global::NuGet.Versioning.FloatRange)obj).OriginalReleasePrefix,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "OriginalReleasePrefix",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("OriginalReleasePrefix", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info3);

            var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<bool>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::NuGet.Versioning.FloatRange),
                Converter = null,
                Getter = static obj => ((global::NuGet.Versioning.FloatRange)obj).IncludePrerelease,
                Setter = null,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "IncludePrerelease",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::NuGet.Versioning.FloatRange).GetProperty("IncludePrerelease", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<bool>(options, info4);

            return properties;
        }
    }
}