File: _generated\20\StaticWebAssetsJsonSerializerContext.ReferencedProjectConfiguration.g.cs
Web Access
Project: src\src\sdk\src\StaticWebAssetsSdk\Tasks\Microsoft.NET.Sdk.StaticWebAssets.Tasks.csproj (Microsoft.NET.Sdk.StaticWebAssets.Tasks)
// <auto-generated/>

#nullable enable annotations
#nullable disable warnings

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

namespace Microsoft.AspNetCore.StaticWebAssets.Tasks
{
    public partial class StaticWebAssetsJsonSerializerContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration>? _ReferencedProjectConfiguration;
        
        /// <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::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration> ReferencedProjectConfiguration
        #nullable enable annotations
        {
            get => _ReferencedProjectConfiguration ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration> Create_ReferencedProjectConfiguration(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration> jsonTypeInfo))
            {
                var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration>
                {
                    ObjectCreator = () => new global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration(),
                    ObjectWithParameterizedConstructorCreator = null,
                    PropertyMetadataInitializer = _ => ReferencedProjectConfigurationPropInit(options),
                    ConstructorParameterMetadataInitializer = null,
                    ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
                    SerializeHandler = ReferencedProjectConfigurationSerializeHandler,
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration>(options, objectInfo);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }

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

            var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).Identity,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).Identity = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Identity",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("Identity", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info0);

            var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<int>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).Version,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).Version = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Version",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("Version", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<int>(options, info1);

            var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).Source,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).Source = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "Source",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("Source", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info2);

            var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).GetPublishAssetsTargets,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).GetPublishAssetsTargets = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "GetPublishAssetsTargets",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("GetPublishAssetsTargets", 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<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).AdditionalPublishProperties,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).AdditionalPublishProperties = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "AdditionalPublishProperties",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("AdditionalPublishProperties", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info4);

            var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).AdditionalPublishPropertiesToRemove,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).AdditionalPublishPropertiesToRemove = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "AdditionalPublishPropertiesToRemove",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("AdditionalPublishPropertiesToRemove", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info5);

            var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).GetBuildAssetsTargets,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).GetBuildAssetsTargets = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "GetBuildAssetsTargets",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("GetBuildAssetsTargets", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info6);

            var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).AdditionalBuildProperties,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).AdditionalBuildProperties = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "AdditionalBuildProperties",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("AdditionalBuildProperties", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info7);

            var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<string>
            {
                IsProperty = true,
                IsPublic = true,
                IsVirtual = false,
                DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration),
                Converter = null,
                Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).AdditionalBuildPropertiesToRemove,
                Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)obj).AdditionalBuildPropertiesToRemove = value!,
                IgnoreCondition = null,
                HasJsonInclude = false,
                IsExtensionData = false,
                NumberHandling = null,
                PropertyName = "AdditionalBuildPropertiesToRemove",
                JsonPropertyName = null,
                AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration).GetProperty("AdditionalBuildPropertiesToRemove", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
            };
            
            properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<string>(options, info8);

            return properties;
        }

        // Intentionally not a static method because we create a delegate to it. Invoking delegates to instance
        // methods is almost as fast as virtual calls. Static methods need to go through a shuffle thunk.
        private void ReferencedProjectConfigurationSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration? value)
        {
            if (value is null)
            {
                writer.WriteNullValue();
                return;
            }
            
            writer.WriteStartObject();

            writer.WriteString(PropName_Identity, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).Identity);
            writer.WriteNumber(PropName_Version, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).Version);
            writer.WriteString(PropName_Source, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).Source);
            writer.WriteString(PropName_GetPublishAssetsTargets, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).GetPublishAssetsTargets);
            writer.WriteString(PropName_AdditionalPublishProperties, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).AdditionalPublishProperties);
            writer.WriteString(PropName_AdditionalPublishPropertiesToRemove, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).AdditionalPublishPropertiesToRemove);
            writer.WriteString(PropName_GetBuildAssetsTargets, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).GetBuildAssetsTargets);
            writer.WriteString(PropName_AdditionalBuildProperties, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).AdditionalBuildProperties);
            writer.WriteString(PropName_AdditionalBuildPropertiesToRemove, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetsManifest.ReferencedProjectConfiguration)value).AdditionalBuildPropertiesToRemove);

            writer.WriteEndObject();
        }
    }
}