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);
139
if (
_nameCacheForWriting
.TryGetValue(key, out JsonEncodedText formatted))
149
if (
_nameCacheForWriting
.Count < NameCacheSizeSoftLimit)
153
_nameCacheForWriting
.TryAdd(key, formatted);
199
if (dictionaryKeyPolicy is null &&
_nameCacheForWriting
.TryGetValue(key, out JsonEncodedText formatted))
209
if (dictionaryKeyPolicy is null &&
_nameCacheForWriting
.Count < NameCacheSizeSoftLimit)
214
_nameCacheForWriting
.TryAdd(key, formatted);