22 references to TryGetValue
Microsoft.CodeAnalysis (6)
CommandLine\AnalyzerConfigSet.cs (1)
252
if (!_optionsCache.
TryGetValue
(sectionKey, out var result))
Compilation\Compilation.cs (4)
1183
if (!_getTypeCache.
TryGetValue
(fullyQualifiedMetadataName, out INamedTypeSymbol? val))
1188
|| !_getTypeCache.
TryGetValue
(fullyQualifiedMetadataName, out var addedType) // Could fail if the type was already evicted from the cache
1211
if (!_getTypesCache.
TryGetValue
(fullyQualifiedMetadataName, out ImmutableArray<INamedTypeSymbol> val))
1216
|| !_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))
Microsoft.CodeAnalysis.CSharp (16)
Binder\BinderFactory.BinderFactoryVisitor.cs (14)
113
if (!binderCache.
TryGetValue
(key, out result))
157
if (!binderCache.
TryGetValue
(key, out resultBinder))
203
if (!binderCache.
TryGetValue
(key, out resultBinder))
240
if (!binderCache.
TryGetValue
(key, out resultBinder))
269
if (!binderCache.
TryGetValue
(key, out resultBinder))
332
if (!binderCache.
TryGetValue
(key, out resultBinder))
400
if (!binderCache.
TryGetValue
(key, out resultBinder))
648
if (!binderCache.
TryGetValue
(key, out resultBinder))
683
if (!binderCache.
TryGetValue
(key, out resultBinder))
739
if (!binderCache.
TryGetValue
(key, out resultBinder))
837
if (!binderCache.
TryGetValue
(key, out result))
928
if (!binderCache.
TryGetValue
(key, out result))
1125
if (!binderCache.
TryGetValue
(key, out result))
1174
if (!binderCache.
TryGetValue
(key, out result))
Binder\BinderFactory.cs (1)
148
if (!_binderCache.
TryGetValue
(key, out Binder resultBinder))
Symbols\SubstitutedNamedTypeSymbol.cs (1)
292
if (cache != null && cache.
TryGetValue
(name, out result))