22 references to EnumFieldInfo
System.Text.Json (22)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (22)
31
private readonly
EnumFieldInfo
[] _enumFieldInfo;
38
private readonly Dictionary<string,
EnumFieldInfo
> _enumFieldInfoIndex;
69
foreach (
EnumFieldInfo
fieldInfo in _enumFieldInfo)
82
foreach (
EnumFieldInfo
fieldInfo in _enumFieldInfo)
91
void AddToEnumFieldIndex(
EnumFieldInfo
fieldInfo)
96
EnumFieldInfo
existingFieldInfo = _enumFieldInfoIndex[fieldInfo.JsonName];
306
Dictionary<string,
EnumFieldInfo
>.AlternateLookup<ReadOnlySpan<char>> lookup = _enumFieldInfoIndex.GetAlternateLookup<ReadOnlySpan<char>>();
335
out
EnumFieldInfo
? firstResult) &&
336
firstResult.GetMatchingField(next) is
EnumFieldInfo
match)
416
foreach (
EnumFieldInfo
enumField in _enumFieldInfo)
447
foreach (
EnumFieldInfo
enumField in _enumFieldInfo)
467
foreach (
EnumFieldInfo
fieldInfo in _enumFieldInfo)
485
foreach (
EnumFieldInfo
fieldInfo in _enumFieldInfo)
511
foreach (
EnumFieldInfo
fieldInfo in _enumFieldInfo)
522
private static
EnumFieldInfo
[] ResolveEnumFields(JsonNamingPolicy? namingPolicy)
542
var enumFields = new
EnumFieldInfo
[names.Length];
589
private List<
EnumFieldInfo
>? _conflictingFields;
599
public void AppendConflictingField(
EnumFieldInfo
other)
609
List<
EnumFieldInfo
> conflictingFields = _conflictingFields ??= [];
612
foreach (
EnumFieldInfo
conflictingField in conflictingFields)
623
public
EnumFieldInfo
? GetMatchingField(ReadOnlySpan<char> input)
636
foreach (
EnumFieldInfo
matchingField in conflictingFields)