File: System\Text\Json\Serialization\JsonTypeClassifierKind.cs
Web Access
Project: src\src\runtime\src\libraries\System.Text.Json\src\System.Text.Json.csproj (System.Text.Json)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace System.Text.Json.Serialization
{
    /// <summary>
    /// Identifies the type of metadata being configured for a <see cref="JsonTypeClassifierFactory"/>.
    /// </summary>
    public enum JsonTypeClassifierKind
    {
        /// <summary>
        /// No classifier kind is specified.
        /// </summary>
        None = 0,

        /// <summary>
        /// The classifier is being created for a union type.
        /// </summary>
        Union = 1,

        /// <summary>
        /// The classifier is being created for a polymorphic type.
        /// </summary>
        PolymorphicType = 2,
    }
}