File: WebRendererSerializerContext.ObjectArray.g.cs
Project: src\src\Components\Web\src\Microsoft.AspNetCore.Components.Web.csproj (Microsoft.AspNetCore.Components.Web)
// <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.Components.RenderTree
{
    internal sealed partial class WebRendererSerializerContext
    {
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<object[]>? _ObjectArray;
        
        /// <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<object[]> ObjectArray
        #nullable enable annotations
        {
            get => _ObjectArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<object[]>)Options.GetTypeInfo(typeof(object[]));
        }
        
        private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<object[]> Create_ObjectArray(global::System.Text.Json.JsonSerializerOptions options)
        {
            if (!TryGetTypeInfoForRuntimeCustomConverter<object[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<object[]> jsonTypeInfo))
            {
                var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<object[]>
                {
                    ObjectCreator = null,
                    SerializeHandler = null
                };
                
                jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<object>(options, info);
                jsonTypeInfo.NumberHandling = null;
            }
        
            jsonTypeInfo.OriginatingResolver = this;
            return jsonTypeInfo;
        }
    }
}