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