1 write to _cache
Microsoft.Build (1)
Evaluation\SimpleProjectRootElementCache.cs (1)
32
_cache
= new ConcurrentDictionary<string, ProjectRootElement>(StringComparer.OrdinalIgnoreCase);
6 references to _cache
Microsoft.Build (6)
Evaluation\SimpleProjectRootElementCache.cs (6)
52
if (
_cache
.TryGetValue(projectFile, out ProjectRootElement projectRootElement))
62
return
_cache
.GetOrAdd(projectFile, key =>
74
ErrorUtilities.VerifyThrow(
_cache
.TryGetValue(key, out _),
83
if (
_cache
.TryAdd(projectRootElement.FullPath, projectRootElement))
114
_cache
.Clear();
129
_cache
.TryRemove(projectRootElement.FullPath, out _);