2 types derived from JsonNamingPolicy
System.Text.Json.SourceGeneration (2)
src\libraries\System.Text.Json\Common\JsonCamelCaseNamingPolicy.cs (1)
6
internal sealed class JsonCamelCaseNamingPolicy :
JsonNamingPolicy
src\libraries\System.Text.Json\Common\JsonSeparatorNamingPolicy.cs (1)
11
internal abstract class JsonSeparatorNamingPolicy :
JsonNamingPolicy
24 references to JsonNamingPolicy
System.Text.Json.SourceGeneration (24)
JsonSourceGenerator.Emitter.cs (5)
1277
JsonKnownNamingPolicy.CamelCase => nameof(
JsonNamingPolicy
.CamelCase),
1278
JsonKnownNamingPolicy.SnakeCaseLower => nameof(
JsonNamingPolicy
.SnakeCaseLower),
1279
JsonKnownNamingPolicy.SnakeCaseUpper => nameof(
JsonNamingPolicy
.SnakeCaseUpper),
1280
JsonKnownNamingPolicy.KebabCaseLower => nameof(
JsonNamingPolicy
.KebabCaseLower),
1281
JsonKnownNamingPolicy.KebabCaseUpper => nameof(
JsonNamingPolicy
.KebabCaseUpper),
JsonSourceGenerator.Parser.cs (6)
1602
JsonNamingPolicy
? instance = options?.GetEffectivePropertyNamingPolicy() switch
1604
JsonKnownNamingPolicy.CamelCase =>
JsonNamingPolicy
.CamelCase,
1605
JsonKnownNamingPolicy.SnakeCaseLower =>
JsonNamingPolicy
.SnakeCaseLower,
1606
JsonKnownNamingPolicy.SnakeCaseUpper =>
JsonNamingPolicy
.SnakeCaseUpper,
1607
JsonKnownNamingPolicy.KebabCaseLower =>
JsonNamingPolicy
.KebabCaseLower,
1608
JsonKnownNamingPolicy.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
"/>.
24
public static
JsonNamingPolicy
CamelCase { get; } = new JsonCamelCaseNamingPolicy();
29
public static
JsonNamingPolicy
SnakeCaseLower { get; } = new JsonSnakeCaseLowerNamingPolicy();
34
public static
JsonNamingPolicy
SnakeCaseUpper { get; } = new JsonSnakeCaseUpperNamingPolicy();
39
public static
JsonNamingPolicy
KebabCaseLower { get; } = new JsonKebabCaseLowerNamingPolicy();
44
public static
JsonNamingPolicy
KebabCaseUpper { get; } = new JsonKebabCaseUpperNamingPolicy();