7 references to TryGetValue
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfigSet.cs (1)
241
if (!_optionsCache.
TryGetValue
(sectionKey, out var result))
Compilation\Compilation.cs (4)
1211
if (!getTypeCache.
TryGetValue
(fullyQualifiedMetadataName, out INamedTypeSymbol? val))
1216
|| !getTypeCache.
TryGetValue
(fullyQualifiedMetadataName, out var addedType) // Could fail if the type was already evicted from the cache
1242
if (!getTypesCache.
TryGetValue
(fullyQualifiedMetadataName, out ImmutableArray<INamedTypeSymbol> val))
1247
|| !getTypesCache.
TryGetValue
(fullyQualifiedMetadataName, out var addedArray) // Could fail if the type was already evicted from the cache
Emit\DebugDocumentsBuilder.cs (1)
72
if (!_normalizedPathsCache.
TryGetValue
(key, out normalizedPath))
MetadataReference\AssemblyIdentity.DisplayName.cs (1)
196
if (!s_TryParseDisplayNameCache.
TryGetValue
(displayName, out var identityAndParts))