24 references to TryGetValue
Microsoft.CodeAnalysis (7)
CommandLine\AnalyzerConfigSet.cs (1)
241
if (!_optionsCache.
TryGetValue
(sectionKey, out var result))
Compilation\Compilation.cs (4)
1212
if (!getTypeCache.
TryGetValue
(fullyQualifiedMetadataName, out INamedTypeSymbol? val))
1217
|| !getTypeCache.
TryGetValue
(fullyQualifiedMetadataName, out var addedType) // Could fail if the type was already evicted from the cache
1243
if (!getTypesCache.
TryGetValue
(fullyQualifiedMetadataName, out ImmutableArray<INamedTypeSymbol> val))
1248
|| !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)
197
if (!s_TryParseDisplayNameCache.
TryGetValue
(displayName, out var identityAndParts))
Microsoft.CodeAnalysis.CSharp (17)
Binder\BinderFactory.BinderFactoryVisitor.cs (14)
117
if (!binderCache.
TryGetValue
(key, out result))
161
if (!binderCache.
TryGetValue
(key, out resultBinder))
209
if (!binderCache.
TryGetValue
(key, out resultBinder))
246
if (!binderCache.
TryGetValue
(key, out resultBinder))
275
if (!binderCache.
TryGetValue
(key, out resultBinder))
343
if (!binderCache.
TryGetValue
(key, out resultBinder))
413
if (!binderCache.
TryGetValue
(key, out resultBinder))
663
if (!binderCache.
TryGetValue
(key, out resultBinder))
698
if (!binderCache.
TryGetValue
(key, out resultBinder))
754
if (!binderCache.
TryGetValue
(key, out resultBinder))
860
if (!binderCache.
TryGetValue
(key, out result))
951
if (!binderCache.
TryGetValue
(key, out result))
1148
if (!binderCache.
TryGetValue
(key, out result))
1197
if (!binderCache.
TryGetValue
(key, out result))
Binder\BinderFactory.cs (1)
163
if (!_binderCache.
TryGetValue
(key, out Binder resultBinder))
Compilation\CSharpCompilation.cs (1)
1706
if (!typeToNullableVersion.
TryGetValue
(typeArgument, out var constructedNullableInstance))
Symbols\SubstitutedNamedTypeSymbol.cs (1)
325
if (cache != null && cache.
TryGetValue
(name, out result))