File: src\libraries\System.Text.Json\Common\JsonKnownNamingPolicy.cs
Web Access
Project: src\src\libraries\System.Text.Json\gen\System.Text.Json.SourceGeneration.Roslyn3.11.csproj (System.Text.Json.SourceGeneration)
// 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>
    /// The <see cref="Json.JsonNamingPolicy"/> to be used at run time.
    /// </summary>
    public enum JsonKnownNamingPolicy
    {
        /// <summary>
        /// Specifies that JSON property names should not be converted.
        /// </summary>
        Unspecified = 0,
 
        /// <summary>
        /// Specifies that the built-in <see cref="Json.JsonNamingPolicy.CamelCase"/> be used to convert JSON property names.
        /// </summary>
        CamelCase = 1,
 
        /// <summary>
        /// Specifies that the built-in <see cref="Json.JsonNamingPolicy.SnakeCaseLower"/> be used to convert JSON property names.
        /// </summary>
        SnakeCaseLower = 2,
 
        /// <summary>
        /// Specifies that the built-in <see cref="Json.JsonNamingPolicy.SnakeCaseUpper"/> be used to convert JSON property names.
        /// </summary>
        SnakeCaseUpper = 3,
 
        /// <summary>
        /// Specifies that the built-in <see cref="Json.JsonNamingPolicy.KebabCaseLower"/> be used to convert JSON property names.
        /// </summary>
        KebabCaseLower = 4,
 
        /// <summary>
        /// Specifies that the built-in <see cref="Json.JsonNamingPolicy.KebabCaseUpper"/> be used to convert JSON property names.
        /// </summary>
        KebabCaseUpper = 5
    }
}