2 types derived from JsonNamingPolicy
System.Text.Json.SourceGeneration (2)
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (1)
6internal sealed class JsonCamelCaseNamingPolicy : JsonNamingPolicy
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
11internal abstract class JsonSeparatorNamingPolicy : JsonNamingPolicy
24 references to JsonNamingPolicy
System.Text.Json.SourceGeneration (24)
JsonSourceGenerator.Emitter.cs (5)
1277JsonKnownNamingPolicy.CamelCase => nameof(JsonNamingPolicy.CamelCase), 1278JsonKnownNamingPolicy.SnakeCaseLower => nameof(JsonNamingPolicy.SnakeCaseLower), 1279JsonKnownNamingPolicy.SnakeCaseUpper => nameof(JsonNamingPolicy.SnakeCaseUpper), 1280JsonKnownNamingPolicy.KebabCaseLower => nameof(JsonNamingPolicy.KebabCaseLower), 1281JsonKnownNamingPolicy.KebabCaseUpper => nameof(JsonNamingPolicy.KebabCaseUpper),
JsonSourceGenerator.Parser.cs (6)
1602JsonNamingPolicy? instance = options?.GetEffectivePropertyNamingPolicy() switch 1604JsonKnownNamingPolicy.CamelCase => JsonNamingPolicy.CamelCase, 1605JsonKnownNamingPolicy.SnakeCaseLower => JsonNamingPolicy.SnakeCaseLower, 1606JsonKnownNamingPolicy.SnakeCaseUpper => JsonNamingPolicy.SnakeCaseUpper, 1607JsonKnownNamingPolicy.KebabCaseLower => JsonNamingPolicy.KebabCaseLower, 1608JsonKnownNamingPolicy.KebabCaseUpper => JsonNamingPolicy.KebabCaseUpper,
Model\PropertyGenerationSpec.cs (1)
57/// The pre-determined JSON property name, accounting for <see cref="JsonNamingPolicy"/>
src\libraries\System.Text.Json\Common\JsonKnownNamingPolicy.cs (6)
7/// The <see cref="Json.JsonNamingPolicy"/> to be used at run time. 17/// Specifies that the built-in <see cref="Json.JsonNamingPolicy.CamelCase"/> be used to convert JSON property names. 22/// Specifies that the built-in <see cref="Json.JsonNamingPolicy.SnakeCaseLower"/> be used to convert JSON property names. 27/// Specifies that the built-in <see cref="Json.JsonNamingPolicy.SnakeCaseUpper"/> be used to convert JSON property names. 32/// Specifies that the built-in <see cref="Json.JsonNamingPolicy.KebabCaseLower"/> be used to convert JSON property names. 37/// Specifies that the built-in <see cref="Json.JsonNamingPolicy.KebabCaseUpper"/> be used to convert JSON property names.
src\libraries\System.Text.Json\Common\JsonNamingPolicy.cs (6)
17/// Initializes a new instance of <see cref="JsonNamingPolicy"/>. 24public static JsonNamingPolicy CamelCase { get; } = new JsonCamelCaseNamingPolicy(); 29public static JsonNamingPolicy SnakeCaseLower { get; } = new JsonSnakeCaseLowerNamingPolicy(); 34public static JsonNamingPolicy SnakeCaseUpper { get; } = new JsonSnakeCaseUpperNamingPolicy(); 39public static JsonNamingPolicy KebabCaseLower { get; } = new JsonKebabCaseLowerNamingPolicy(); 44public static JsonNamingPolicy KebabCaseUpper { get; } = new JsonKebabCaseUpperNamingPolicy();