1 write to _nameCacheForReading
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
66
_nameCacheForReading
= new(StringComparer.Ordinal);
3 references to _nameCacheForReading
System.Text.Json (3)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
75
_nameCacheForReading
.TryAdd(fieldInfo.JsonName, fieldInfo.Key);
252
ConcurrentDictionary<string, ulong>.AlternateLookup<ReadOnlySpan<char>> lookup =
_nameCacheForReading
.GetAlternateLookup<ReadOnlySpan<char>>();
282
if (success &&
_nameCacheForReading
.Count < NameCacheSizeSoftLimit)