| File: parent\Common\JsonKnownNamingPolicy.cs | Web Access |
| Project: 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> /// 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, /// <summary> /// Specifies that the built-in <see cref="Json.JsonNamingPolicy.PascalCase"/> be used to convert JSON property names. /// </summary> PascalCase = 6 } }