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