6 references to TryGetValue
Microsoft.Build (6)
Collections\WeakValueDictionary.cs (1)
145bool contained = TryGetValue(key, out _);
Evaluation\ProjectRootElementCache.cs (3)
296_weakCache.TryGetValue(projectFile, out projectRootElement); 567_weakCache.TryGetValue(projectRootElement.FullPath, out existingWeakEntry); 648if (_weakCache.TryGetValue(projectRootElement.FullPath, out var cached) && cached == projectRootElement)
Globbing\MSBuildGlob.cs (2)
210s_matcherCache.TryGetValue(matcherCacheKey, out matcher); 218if (!s_matcherCache.TryGetValue(matcherCacheKey, out matcher))