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)
52if (_cache.TryGetValue(projectFile, out ProjectRootElement projectRootElement)) 62return _cache.GetOrAdd(projectFile, key => 74ErrorUtilities.VerifyThrow(_cache.TryGetValue(key, out _), 83if (_cache.TryAdd(projectRootElement.FullPath, projectRootElement)) 114_cache.Clear(); 129_cache.TryRemove(projectRootElement.FullPath, out _);