6 references to TryGetValue
Microsoft.Build (6)
Collections\WeakValueDictionary.cs (1)
146bool contained = TryGetValue(key, out _);
Evaluation\ProjectRootElementCache.cs (3)
302_weakCache.TryGetValue(projectFile, out projectRootElement); 606_weakCache.TryGetValue(projectRootElement.FullPath, out existingWeakEntry); 690if (_weakCache.TryGetValue(projectRootElement.FullPath, out var cached) && cached == projectRootElement)
Globbing\MSBuildGlob.cs (2)
205s_regexCache.TryGetValue(matchFileExpression, out regex); 220if (!s_regexCache.TryGetValue(matchFileExpression, out regex))