3 writes to _weakCache
Microsoft.Build (3)
Evaluation\ProjectRootElementCache.cs (3)
156
_weakCache
= new WeakValueDictionary<string, ProjectRootElement>(StringComparer.OrdinalIgnoreCase);
454
_weakCache
= new WeakValueDictionary<string, ProjectRootElement>(StringComparer.OrdinalIgnoreCase);
475
_weakCache
= new WeakValueDictionary<string, ProjectRootElement>(StringComparer.OrdinalIgnoreCase);
10 references to _weakCache
Microsoft.Build (10)
Evaluation\ProjectRootElementCache.cs (10)
300
_weakCache
.TryGetValue(projectFile, out projectRootElement);
474
WeakValueDictionary<string, ProjectRootElement> oldWeakCache =
_weakCache
;
489
_weakCache
[kvp.Key] = kvp.Value;
523
_weakCache
.Remove(projectRootElement.FullPath);
542
ErrorUtilities.VerifyThrow(
_weakCache
[oldFullPathIfAny] == projectRootElement, "Should already be present");
543
_weakCache
.Remove(oldFullPathIfAny);
557
_weakCache
.TryGetValue(projectRootElement.FullPath, out existingWeakEntry);
565
_weakCache
[projectRootElement.FullPath] = projectRootElement;
620
_weakCache
.Remove(projectRootElement.FullPath);
638
if (
_weakCache
.TryGetValue(projectRootElement.FullPath, out var cached) && cached == projectRootElement)