3 writes to _weakCache
Microsoft.Build (3)
Evaluation\ProjectRootElementCache.cs (3)
158_weakCache = new WeakValueDictionary<string, ProjectRootElement>(StringComparer.OrdinalIgnoreCase); 456_weakCache = new WeakValueDictionary<string, ProjectRootElement>(StringComparer.OrdinalIgnoreCase); 477_weakCache = new WeakValueDictionary<string, ProjectRootElement>(StringComparer.OrdinalIgnoreCase);
10 references to _weakCache
Microsoft.Build (10)
Evaluation\ProjectRootElementCache.cs (10)
302_weakCache.TryGetValue(projectFile, out projectRootElement); 476WeakValueDictionary<string, ProjectRootElement> oldWeakCache = _weakCache; 491_weakCache[kvp.Key] = kvp.Value; 525_weakCache.Remove(projectRootElement.FullPath); 544ErrorUtilities.VerifyThrow(_weakCache[oldFullPathIfAny] == projectRootElement, "Should already be present"); 545_weakCache.Remove(oldFullPathIfAny); 559_weakCache.TryGetValue(projectRootElement.FullPath, out existingWeakEntry); 567_weakCache[projectRootElement.FullPath] = projectRootElement; 622_weakCache.Remove(projectRootElement.FullPath); 640if (_weakCache.TryGetValue(projectRootElement.FullPath, out var cached) && cached == projectRootElement)