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);
476
WeakValueDictionary<string, ProjectRootElement> oldWeakCache =
_weakCache
;
491
_weakCache
[kvp.Key] = kvp.Value;
525
_weakCache
.Remove(projectRootElement.FullPath);
544
ErrorUtilities.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);
640
if (
_weakCache
.TryGetValue(projectRootElement.FullPath, out var cached) && cached == projectRootElement)