4 references to JsonName
System.Text.Json (4)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (4)
601
Debug.Assert(
JsonName
.Equals(other.JsonName, StringComparison.OrdinalIgnoreCase), "The conflicting entry must be equal up to case insensitivity.");
603
if (Kind is EnumFieldNameKind.Default ||
JsonName
.Equals(other.JsonName, StringComparison.Ordinal))
625
Debug.Assert(input.Equals(
JsonName
.AsSpan(), StringComparison.OrdinalIgnoreCase), "Must equal the field name up to case insensitivity.");
627
if (Kind is EnumFieldNameKind.Default || input.SequenceEqual(
JsonName
.AsSpan()))