1 write to _nameCacheForWriting
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
65_nameCacheForWriting = new();
7 references to _nameCacheForWriting
System.Text.Json (7)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (7)
74_nameCacheForWriting.TryAdd(fieldInfo.Key, encodedName); 139if (_nameCacheForWriting.TryGetValue(key, out JsonEncodedText formatted)) 149if (_nameCacheForWriting.Count < NameCacheSizeSoftLimit) 153_nameCacheForWriting.TryAdd(key, formatted); 199if (dictionaryKeyPolicy is null && _nameCacheForWriting.TryGetValue(key, out JsonEncodedText formatted)) 209if (dictionaryKeyPolicy is null && _nameCacheForWriting.Count < NameCacheSizeSoftLimit) 214_nameCacheForWriting.TryAdd(key, formatted);