Implemented interface members:
method
TryGetValue
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.TryGetValue(TKey, out TValue)
method
TryGetValue
System.Collections.Generic.IDictionary<TKey, TValue>.TryGetValue(TKey, out TValue)
534 references to TryGetValue
Aspire.Dashboard (12)
Components\Pages\Resources.razor.cs (8)
250t => !PageViewModel.ResourceTypesToVisibility.TryGetValue(t, out var value) || value, 251s => !PageViewModel.ResourceStatesToVisibility.TryGetValue(s, out var value) || value, 252s => !PageViewModel.ResourceHealthStatusesToVisibility.TryGetValue(s, out var value) || value); 301if (_resourceByName.TryGetValue(resource.Name, out _)) 354if (resources._resourceByName.TryGetValue(id, out var resource)) 367if (resources._resourceByName.TryGetValue(id, out var resource)) 496if (_resourceByName.TryGetValue(ResourceName, out var selectedResource)) 580if (_resourceByName.TryGetValue(value, out current))
Model\ResourceOutgoingPeerResolver.cs (1)
51if (!_resourceByName.TryGetValue(resource.Name, out var existingResource) || !AreEquivalent(resource.Urls, existingResource.Urls))
Otlp\Model\OtlpApplication.cs (1)
291if (_applicationViews.TryGetValue(view.Properties, out var applicationView))
Otlp\Storage\TelemetryRepository.cs (2)
144_applications.TryGetValue(key, out var application); 228if (_applications.TryGetValue(key, out var application))
Aspire.Hosting (14)
ApplicationModel\ResourceLoggerService.cs (3)
261if (_loggers.TryGetValue(resourceName, out var logger)) 276if (_loggers.TryGetValue(name, out var logger)) 289if (_loggers.TryGetValue(resourceName, out var logger))
Dcp\DcpExecutor.cs (6)
268if (_resourceState.ContainersMap.TryGetValue(entry.ResourceName, out var container)) 272else if (_resourceState.ExecutablesMap.TryGetValue(entry.ResourceName, out var executable)) 437if (_resourceState.ContainersMap.TryGetValue(resourceName, out var container)) 441else if (_resourceState.ExecutablesMap.TryGetValue(resourceName, out var executable)) 570"Container" => _resourceState.ContainersMap.TryGetValue(resourceName, out var container) ? container : null, 571"Executable" => _resourceState.ExecutablesMap.TryGetValue(resourceName, out var executable) ? executable : null,
Dcp\DcpExecutorEvents.cs (1)
31if (_eventSubscriptionListLookup.TryGetValue(typeof(T), out var callback))
Eventing\DistributedApplicationEventing.cs (4)
26if (_eventSubscriptionListLookup.TryGetValue(typeof(T), out var subscriptions)) 85if (_eventSubscriptionListLookup.TryGetValue(typeof(T), out var subscriptions)) 122if (_subscriptionEventTypeLookup.TryGetValue(subscription, out var eventType)) 124if (_eventSubscriptionListLookup.TryGetValue(eventType, out var subscriptions))
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
265if (!ConnectionDetailCache.TryGetValue(dataSource, out SqlConnectionDetails connectionDetails))
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
265if (!ConnectionDetailCache.TryGetValue(dataSource, out SqlConnectionDetails connectionDetails))
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
87if (!this.Cache.TryGetValue(cacheKey, out var session))
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (2)
300if (!s_tokenCache.TryGetValue(targetTime, out tokenTask)) 322if (!s_tokenCache.TryGetValue(targetTime, out tokenTask))
InMemory.FunctionalTests (4)
Http2\Http2TestBase.cs (1)
537if (_httpTestBase._runningStreams.TryGetValue(stream.StreamId, out var tcs))
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
331if (_http3TestBase._runningStreams.TryGetValue(stream.StreamId, out var testStream)) 341if (_http3TestBase._runningStreams.TryGetValue(stream.StreamId, out var testStream)) 351if (_http3TestBase._runningStreams.TryGetValue(stream.StreamId, out var testStream))
Metrics (5)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
Metrics.Legacy (5)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RouteUsageCache.cs (1)
32if (_lazyRoutePatterns.TryGetValue(syntaxToken, out var routeUsageModel))
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationPolicyCache.cs (1)
29_policyCache.Value!.TryGetValue(endpoint, out var policy);
Microsoft.AspNetCore.Components (11)
BindConverter.cs (2)
1686if (!_cache.TryGetValue(typeof(T), out var formatter)) 1877if (!_cache.TryGetValue(typeof(T), out var parser))
CascadingParameterState.cs (1)
106if (!_cachedInfos.TryGetValue(componentType, out var infos))
CascadingValueSource.cs (1)
177if (_subscribers?.TryGetValue(dispatcher, out var subscribersForDispatcher) == true)
ComponentFactory.cs (1)
37if (!_cachedComponentTypeInfo.TryGetValue(componentType, out var cacheEntry))
DefaultComponentActivator.cs (1)
34if (!_cachedComponentTypeInfo.TryGetValue(componentType, out var factory))
Reflection\ComponentProperties.cs (2)
29if (!_cachedWritersByType.TryGetValue(targetType, out var writers)) 366if (!_referenceEqualityWritersCache.TryGetValue(parameterName, out writer))
Routing\RouteTableFactory.cs (1)
36if (_cache.TryGetValue(routeKey, out var resolvedComponents))
Routing\UrlValueConstraint.cs (1)
21if (!_cachedInstances.TryGetValue(targetType, out result))
src\Components\Shared\src\RootTypeCache.cs (1)
22if (_typeToKeyLookUp.TryGetValue(key, out var resolvedType))
Microsoft.AspNetCore.Components.Authorization (1)
AttributeAuthorizeDataCache.cs (1)
15if (!_cache.TryGetValue(type, out var result))
Microsoft.AspNetCore.Components.Endpoints (2)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
416if (visiblePropertiesCache is not null && visiblePropertiesCache.TryGetValue(type, out var result)) 500if (cache is null || !cache.TryGetValue(type, out var result))
Microsoft.AspNetCore.Components.Forms (3)
EditContextDataAnnotationsExtensions.cs (1)
160if (!_propertyInfoCache.TryGetValue(cacheKey, out propertyInfo))
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
156if (!s_methodInfoDataCache.TryGetValue(methodInfo, out var methodInfoData)) 237if (!s_capturedValueFormatterCache.TryGetValue(member, out var format))
Microsoft.AspNetCore.Components.Server (5)
Circuits\CircuitRegistry.cs (3)
114if (!ConnectedCircuits.TryGetValue(circuitId, out circuitHost)) 230if (ConnectedCircuits.TryGetValue(circuitId, out var connectedCircuitHost)) 315if (ConnectedCircuits.TryGetValue(circuitId, out circuitHost) || DisconnectedCircuits.TryGetValue(circuitId.Secret, out entry))
src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
17if (_typeToKeyLookUp.TryGetValue(key, out var resolvedType))
src\Components\Shared\src\RootTypeCache.cs (1)
22if (_typeToKeyLookUp.TryGetValue(key, out var resolvedType))
Microsoft.AspNetCore.Components.Web (2)
src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
156if (!s_methodInfoDataCache.TryGetValue(methodInfo, out var methodInfoData)) 237if (!s_capturedValueFormatterCache.TryGetValue(member, out var format))
Microsoft.AspNetCore.Components.WebAssembly (3)
.packages\microsoft.dotnet.hotreload.agent\10.0.100-preview.6.25278.103\contentFiles\cs\netstandard2.1\HotReloadAgent.cs (1)
100if (_deltas.TryGetValue(moduleId.Value, out var updateDeltas) && _appliedAssemblies.TryAdd(loadedAssembly, loadedAssembly))
src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
17if (_typeToKeyLookUp.TryGetValue(key, out var resolvedType))
src\Components\Shared\src\RootTypeCache.cs (1)
22if (_typeToKeyLookUp.TryGetValue(key, out var resolvedType))
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\XmlKeyManager.cs (2)
299if (_knownKeyMap.TryGetValue(keyId, out var oldKey)) 336Debug.Assert(_knownKeyMap.TryGetValue(key.KeyId, out var existingKey));
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\IncomingHttpRouteUtility.cs (1)
31if (_parametersToRedactCache.TryGetValue(httpRoute, out var result))
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
src\Grpc\JsonTranscoding\src\Shared\DescriptorRegistry.cs (1)
81_typeDescriptorMap.TryGetValue(type, out var value);
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
383if (!_dictionaries.TryGetValue(enumType, out nameMapping))
Microsoft.AspNetCore.Grpc.Swagger (2)
src\Grpc\JsonTranscoding\src\Shared\DescriptorRegistry.cs (1)
81_typeDescriptorMap.TryGetValue(type, out var value);
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (1)
383if (!_dictionaries.TryGetValue(enumType, out nameMapping))
Microsoft.AspNetCore.Http.Abstractions (5)
Routing\EndpointMetadataCollection.cs (2)
75if (_cache.TryGetValue(typeof(T), out var obj)) 101if (_cache.TryGetValue(typeof(T), out var result))
Routing\RouteValueDictionary.cs (1)
890if (!_propertyCache.TryGetValue(type, out Properties!))
src\Shared\PropertyHelper\PropertyHelper.cs (2)
416if (visiblePropertiesCache is not null && visiblePropertiesCache.TryGetValue(type, out var result)) 500if (cache is null || !cache.TryGetValue(type, out var result))
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionManager.cs (1)
51return _connections.TryGetValue(id, out connection);
Microsoft.AspNetCore.Mvc.Core (8)
ActionConstraints\ActionConstraintCache.cs (1)
49if (cache.Entries.TryGetValue(action, out var entry))
Infrastructure\AsyncEnumerableReader.cs (1)
54if (!_asyncEnumerableConverters.TryGetValue(type, out reader))
ModelBinding\ModelBinderFactory.cs (1)
197return _cache.TryGetValue(new Key(metadata, cacheToken), out binder);
ModelBinding\Validation\ClientValidatorCache.cs (1)
36if (_cacheEntries.TryGetValue(metadata, out var entry))
ModelBinding\Validation\ValidatorCache.cs (1)
26if (_cacheEntries.TryGetValue(metadata, out var entry))
Routing\DynamicControllerEndpointSelectorCache.cs (1)
34if (!_dataSourceCache.TryGetValue(key, out var dataSource))
src\Shared\PropertyHelper\PropertyHelper.cs (2)
416if (visiblePropertiesCache is not null && visiblePropertiesCache.TryGetValue(type, out var result)) 500if (cache is null || !cache.TryGetValue(type, out var result))
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
XmlDataContractSerializerInputFormatter.cs (1)
239if (!_serializerCache.TryGetValue(type, out var serializer))
XmlDataContractSerializerOutputFormatter.cs (1)
295if (!_serializerCache.TryGetValue(type, out var serializer))
XmlSerializerInputFormatter.cs (1)
244if (!_serializerCache.TryGetValue(type, out var serializer))
XmlSerializerOutputFormatter.cs (1)
284if (!_serializerCache.TryGetValue(type, out var serializer))
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
54if (!_asyncEnumerableConverters.TryGetValue(type, out reader))
Microsoft.AspNetCore.Mvc.Razor (2)
Compilation\DefaultViewCompiler.cs (1)
126if (!_normalizedPathCache.TryGetValue(relativePath, out var normalizedPath))
RazorPageActivator.cs (1)
79if (!_activationInfo.TryGetValue(cacheKey, out var propertyActivator))
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
389if (!_normalizedPathCache.TryGetValue(relativePath, out var normalizedPath))
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointSelectorCache.cs (1)
41if (!_dataSourceCache.TryGetValue(key, out var dataSource))
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperService.cs (1)
72if (!_workers.TryGetValue(key, out var result))
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
CachedExpressionCompiler.cs (4)
125if (_simpleMemberAccessCache.TryGetValue(memberExpression.Member, out var result)) 143if (_simpleMemberAccessCache.TryGetValue(memberExpression.Member, out var result)) 159if (_chainedMemberAccessCache.TryGetValue(key, out var result)) 172if (!_constMemberAccessCache.TryGetValue(memberExpression.Member, out var result))
ExpressionHelper.cs (1)
24expressionTextCache.TryGetValue(expression, out var expressionText))
HtmlAttributePropertyHelper.cs (1)
37if (!ReflectionCache.TryGetValue(type, out var result))
ViewComponents\ViewComponentInvokerCache.cs (1)
44if (cache.Entries.TryGetValue(viewComponentDescriptor, out var executor))
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
59=> _operationTransformerContextCache.TryGetValue(descriptionId, out context);
Microsoft.AspNetCore.OutputCaching (2)
DispatcherExtensions.cs (2)
18if (_workers.TryGetValue(key, out var task)) 57if (_workers.TryGetValue(key, out var task))
Microsoft.AspNetCore.Routing (2)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
416if (visiblePropertiesCache is not null && visiblePropertiesCache.TryGetValue(type, out var result)) 500if (cache is null || !cache.TryGetValue(type, out var result))
Microsoft.AspNetCore.Routing.Abstractions (2)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
416if (visiblePropertiesCache is not null && visiblePropertiesCache.TryGetValue(type, out var result)) 500if (cache is null || !cache.TryGetValue(type, out var result))
Microsoft.AspNetCore.Server.HttpSys (1)
NativeInterop\DisconnectListener.cs (1)
40if (!_connectionCancellationTokens.TryGetValue(connectionId, out var cancellation))
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
331if (_http3TestBase._runningStreams.TryGetValue(stream.StreamId, out var testStream)) 341if (_http3TestBase._runningStreams.TryGetValue(stream.StreamId, out var testStream)) 351if (_http3TestBase._runningStreams.TryGetValue(stream.StreamId, out var testStream))
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\PropertyHelper\PropertyHelper.cs (2)
416if (visiblePropertiesCache is not null && visiblePropertiesCache.TryGetValue(type, out var result)) 500if (cache is null || !cache.TryGetValue(type, out var result))
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
1378if (!_handlers.TryGetValue(invocation.Target, out var invocationHandlerList)) 2419if (!_hubConnection._handlers.TryGetValue(methodName, out var invocationHandlerList))
Microsoft.AspNetCore.SignalR.Core (7)
HubConnectionStore.cs (1)
29_connections.TryGetValue(connectionId, out var connection);
Internal\DefaultHubDispatcher.cs (1)
186if (connection.ActiveRequestCancellationSources.TryGetValue(cancelInvocationMessage.InvocationId!, out var cts))
Internal\HubGroupList.cs (2)
20_groups.TryGetValue(groupName, out var group); 32if (_groups.TryGetValue(groupName, out var connections))
src\SignalR\common\Shared\ClientResultsManager.cs (2)
54if (_pendingInvocations.TryGetValue(message.InvocationId!, out var item)) 83if (_pendingInvocations.TryGetValue(invocationId, out var item))
StreamTracker.cs (1)
44if (_lookup.TryGetValue(streamId, out converter))
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Internal\RedisSubscriptionManager.cs (1)
48if (!_subscriptions.TryGetValue(id, out var subscription))
src\SignalR\common\Shared\ClientResultsManager.cs (2)
54if (_pendingInvocations.TryGetValue(message.InvocationId!, out var item)) 83if (_pendingInvocations.TryGetValue(invocationId, out var item))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
TestConnectionMultiplexer.cs (2)
246if (_subscriptions.TryGetValue(channel, out var handlers)) 286if (_subscriptions.TryGetValue(channel, out var list))
Microsoft.Build (32)
BackEnd\Components\Caching\ResultsCache.cs (4)
69if (_resultsByConfiguration.TryGetValue(result.ConfigurationId, out BuildResult buildResult)) 119if (_resultsByConfiguration.TryGetValue(request.ConfigurationId, out BuildResult result)) 143_resultsByConfiguration.TryGetValue(configurationId, out results); 173if (_resultsByConfiguration.TryGetValue(request.ConfigurationId, out BuildResult allResults))
BackEnd\Components\Logging\LoggingService.cs (1)
1913_projectFileMap.TryGetValue(context.ProjectContextId, out string projectFile);
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
137_projectFileMap.TryGetValue(buildEventContext.ProjectContextId, out string projectFile); 177_projectFileMap.TryGetValue(buildEventContext.ProjectContextId, out string projectFile); 329_projectFileMap.TryGetValue(buildEventContext.ProjectContextId, out string projectFile); 551if (_projectFileMap.TryGetValue(projectContextId, out string existingProjectFile))
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
759if (!_projectCachePlugins.TryGetValue(projectCacheDescriptor, out Lazy<Task<ProjectCachePlugin>>? pluginLazyTask))
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
462if (_resolverStateBySubmission.TryGetValue(submissionId, out resolverState)) 466if (resolverState.TryGetValue(resolver, out state))
BackEnd\Shared\BuildResult.cs (2)
535if (_resultsByTarget.TryGetValue(target, out TargetResult? targetResult)) 613return _resultsByTarget.TryGetValue(target, out value);
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
560if (_projectsByEvaluationId.TryGetValue(buildEventContext.EvaluationId, out string? val)) 568if (_projectsByInstanceId.TryGetValue(buildEventContext.ProjectInstanceId, out string? val))
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
95if (_customConfigurationData.TryGetValue(ruleId, out var storedConfiguration))
Evaluation\ConditionEvaluator.cs (1)
155if (!_conditionPools.TryGetValue(condition, out var stack))
Evaluation\Expander.cs (1)
2268if (!s_transformFunctionDelegateCache.TryGetValue(qualifiedFunctionName, out transformFunction))
Evaluation\SimpleProjectRootElementCache.cs (2)
52if (_cache.TryGetValue(projectFile, out ProjectRootElement projectRootElement)) 74ErrorUtilities.VerifyThrow(_cache.TryGetValue(key, out _),
FileMatcher.cs (2)
1923if (!_cachedGlobExpansions.TryGetValue(enumerationKey, out files)) 1929if (!_cachedGlobExpansions.TryGetValue(enumerationKey, out files))
FrameworkLocationHelper.cs (2)
1404if (this._pathsToDotNetFramework.TryGetValue(architecture, out cachedPath)) 1456if (this._pathsToDotNetFrameworkSdkTools.TryGetValue(visualStudioSpec.Version, out cachedPath))
Graph\GraphBuilder.cs (1)
656ErrorUtilities.VerifyThrow(ReferenceItems.TryGetValue(key, out ProjectItemInstance referenceItem), "All requested keys should exist");
Instance\TaskRegistry.cs (3)
563if (_cachedTaskRecordsWithExactMatch.TryGetValue(taskIdentity, out taskRecord)) 571if (_cachedTaskRecordsWithFuzzyMatch.TryGetValue(taskIdentity.Name, out ConcurrentDictionary<RegisteredTaskIdentity, RegisteredTaskRecord> taskRecords)) 574if (taskRecords.TryGetValue(taskIdentity, out taskRecord))
RegisteredTaskObjectCacheBase.cs (1)
73dict?.TryGetValue(key, out obj);
Resources\Constants.cs (2)
221return s_availableStaticMethods.TryGetValue(key, out value); 230return s_availableStaticMethods.TryGetValue(key, out typeInformation) ? typeInformation : null;
Microsoft.Build.Framework (1)
ImmutableFilesTimestampCache.cs (1)
28public bool TryGetValue(string fullPath, out DateTime lastModified) => _cache.TryGetValue(fullPath, out lastModified);
Microsoft.Build.Tasks.Core (13)
AssemblyDependency\GlobalAssemblyCache.cs (1)
295if (fusionNameToResolvedPath.TryGetValue(strongName, out string fusionName))
CodeTaskFactory.cs (1)
799if (!s_compiledTaskCache.TryGetValue(fullSpec, out Assembly existingAssembly))
FileMatcher.cs (2)
1923if (!_cachedGlobExpansions.TryGetValue(enumerationKey, out files)) 1929if (!_cachedGlobExpansions.TryGetValue(enumerationKey, out files))
GetSDKReferenceFiles.cs (3)
320if (_cacheFileForSDKs.TryGetValue(sdkIdentity, out SDKInfo sdkCacheInfo) && sdkCacheInfo != null) 394if (_cacheFileForSDKs.TryGetValue(sdkIdentity, out SDKInfo sdkCacheInfo) && sdkCacheInfo != null) 473if (_cacheFileForSDKs.TryGetValue(sdkIdentity, out SDKInfo sdkInfo) && sdkInfo != null)
RedistList.cs (4)
183if (!_remappingCache.TryGetValue(extensionToRemap, out AssemblyNameExtension remappedExtension)) 386if (!_assemblyNameToUnifiedAssemblyName.TryGetValue(assemblyName, out AssemblyEntry unifiedEntry)) 434if (!_assemblyNameInRedist.TryGetValue(assemblyName, out bool isAssemblyNameInRedist)) 545if (!_cachedDenyList.TryGetValue(key, out Dictionary<string, string> returnTable))
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
667if (CompiledAssemblyCache.TryGetValue(taskInfo, out assembly))
SystemState.cs (1)
382bool isCachedInProcess = s_processWideFileStateCache.TryGetValue(path, out FileState cachedProcessFileState);
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
461_objectCache.TryGetValue(key, out object obj);
Microsoft.Build.Utilities.Core (5)
FileMatcher.cs (2)
1923if (!_cachedGlobExpansions.TryGetValue(enumerationKey, out files)) 1929if (!_cachedGlobExpansions.TryGetValue(enumerationKey, out files))
FrameworkLocationHelper.cs (2)
1404if (this._pathsToDotNetFramework.TryGetValue(architecture, out cachedPath)) 1456if (this._pathsToDotNetFrameworkSdkTools.TryGetValue(visualStudioSpec.Version, out cachedPath))
TrackedDependencies\CanonicalTrackedInputFiles.cs (1)
524if (!_lastWriteTimeCache.TryGetValue(file, out DateTime dependeeTime))
Microsoft.CodeAnalysis (32)
CodeGen\ArrayMembers.cs (1)
112if (!dict.TryGetValue(key, out result))
CodeGen\ItemTokenMap.cs (2)
29if (_itemToToken.TryGetValue(item, out token)) 43if (_itemToToken.TryGetValue(item, out token))
CodeGen\PrivateImplementationDetails.cs (3)
434if (!_instrumentationPayloadRootFields.TryGetValue(analysisKind, out payloadRootField)) 496_synthesizedMethods.TryGetValue(name, out method); 509_synthesizedTopLevelTypes.TryGetValue(name, out var type);
CodeGen\StringTokenMap.cs (2)
28if (_valueToToken.TryGetValue(value, out token)) 35if (_valueToToken.TryGetValue(value, out token))
CodeGen\TokenMap.cs (3)
33if (_itemIdentityToToken.TryGetValue(new IReferenceOrISignature(item), out uint token)) 44if (_itemIdentityToToken.TryGetValue(new IReferenceOrISignature(item), out uint token)) 60if (!_itemIdentityToToken.TryGetValue(item, out token))
CommandLine\AnalyzerConfigSet.cs (1)
415if (!diagIdCache.TryGetValue(idSlice, out var diagId))
Compilation\Compilation.cs (1)
3604TreeToUsedImportDirectivesMap.TryGetValue(syntaxTree, out usedImports) &&
DiagnosticAnalyzer\AnalyzerDriver.cs (5)
1356if (!SuppressedAnalyzersForTreeMap.TryGetValue(tree, out var suppressedAnalyzers)) 2158if (PerSymbolAnalyzerActionsCache.TryGetValue((namespaceOrType, analyzer), out var actions)) 2273return IsGeneratedCodeSymbolMap.TryGetValue(symbol, out bool isGeneratedCodeSymbol) ? 2301if (!GeneratedCodeFilesMap.TryGetValue(tree, out var isGenerated)) 2348if (!_lazyTreesWithHiddenRegionsMap.TryGetValue(tree, out hasHiddenRegions))
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
196if (CopyMap.TryGetValue(originalFilePath, out var copyTask))
Emit\CommonPEModuleBuilder.cs (5)
404if (_methodBodyMap.TryGetValue(methodSymbol, out body)) 947if (_synthesizedTypeMembers.TryGetValue(container, out var defs)) 1033=> _synthesizedTypeMembers.TryGetValue(container, out var defs) ? defs.Fields : null; 1039=> _synthesizedTypeMembers.TryGetValue(container, out var defs) ? defs.Properties : null; 1045=> _synthesizedTypeMembers.TryGetValue(container, out var defs) ? defs.Methods : null;
Emit\DebugDocumentsBuilder.cs (1)
54_debugDocuments.TryGetValue(normalizedPath, out document);
Emit\NoPia\CommonEmbeddedType.cs (4)
256if (TypeManager.EmbeddedEventsMap.TryGetValue(e, out embedded)) 285if (TypeManager.EmbeddedFieldsMap.TryGetValue(f, out embedded)) 459if (TypeManager.EmbeddedMethodsMap.TryGetValue(method, out embedded)) 504if (TypeManager.EmbeddedPropertiesMap.TryGetValue(p, out embedded))
MetadataReader\MetadataDecoder.cs (2)
503if (cache != null && cache.TryGetValue(typeRef, out result)) 621if (cache != null && cache.TryGetValue(typeDef, out result))
MetadataReader\PEModule.cs (1)
2631return _lazyTypeDefToTypeIdentifierMap.TryGetValue(typeDef, out attributeInfo);
Microsoft.CodeAnalysis.Analyzers (9)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (3)
414if (localsToDescriptorsMap.TryGetValue(local, out var fields)) 434if (customTagsMap.TryGetValue(field, out var customTags) && 870if (symbolToResourceMap.TryGetValue(field, out var resourceTuple))
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer_ResourceStringsFormat.cs (1)
46if (resourceMap.TryGetValue(resourceFileName, out var map))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
184if (_lazyDisposableFieldsMap.TryGetValue(namedType, out ImmutableHashSet<IFieldSymbol> disposableFields))
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
92if (!classCache.TryGetValue(typeSymbol, out bool isController))
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
RestrictedInternalsVisibleToAnalyzer.cs (1)
223if (namespaceToIsBannedMap.TryGetValue(currentNamespace, out var isBanned))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
Microsoft.CodeAnalysis.CodeStyle (16)
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (6)
27=> s_diagnosticIdToOptionMap.TryGetValue(diagnosticId, out options) || 28(s_diagnosticIdToLanguageSpecificOptionsMap.TryGetValue(language, out var map) && 29map.TryGetValue(diagnosticId, out options)); 32=> s_diagnosticIdToFadingOptionMap.TryGetValue(diagnosticId, out fadingOption); 87Debug.Assert(!map.TryGetValue(diagnosticId, out var existingOptions) || options.SetEquals(existingOptions)); 100Debug.Assert(!s_diagnosticIdToFadingOptionMap.TryGetValue(diagnosticId, out var existingOption) || existingOption.Equals(fadingOption));
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
206if (fieldStateMap.TryGetValue(fieldSymbol.OriginalDefinition, out var result))
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
147if (!cache.TryGetValue(symbol.Name, out var failureReason))
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (5)
549if (ineligibleFieldUsageIfOutsideProperty.TryGetValue(result.Field, out var ineligibleFieldUsages)) 570fieldWrites.TryGetValue(result.Field, out var writeLocations1) && 583fieldWrites.TryGetValue(result.Field, out var writeLocations2) && 592fieldReads.TryGetValue(result.Field, out var specificFieldReads) && 602fieldWrites.TryGetValue(result.Field, out var specificFieldWrites) &&
src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
34if (dictionary.TryGetValue(key, out var value))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.Changes.cs (1)
39return _map?.TryGetValue(key, out triviaInfo) ?? false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
35!treeMap.TryGetValue((semanticModel.SyntaxTree, namespaceId), out var symbolMap))
Microsoft.CodeAnalysis.CSharp (24)
Compilation\CSharpCompilation.cs (1)
1497else if (_externAliasTargets.TryGetValue(aliasName, out var cached))
Compiler\ClsComplianceChecker.cs (1)
1143if (_declaredOrInheritedCompliance.TryGetValue(symbol, out compliance))
Emitter\Model\PEModuleBuilder.cs (9)
883if (AssemblyOrModuleSymbolToModuleRefMap.TryGetValue(assembly, out reference)) 917if (AssemblyOrModuleSymbolToModuleRefMap.TryGetValue(module, out moduleRef)) 1020if (_genericInstanceMap.TryGetValue(namedTypeSymbol, out reference)) 1050if (_genericInstanceMap.TryGetValue(namedTypeSymbol, out reference)) 1189if (_genericInstanceMap.TryGetValue(fieldSymbol, out reference)) 1276if (_genericInstanceMap.TryGetValue(methodSymbol, out reference)) 1332if (_genericInstanceMap.TryGetValue(methodSymbol, out reference)) 1418if (_genericInstanceMap.TryGetValue(param, out reference)) 2086return _translatedImportsMap.TryGetValue(chain, out imports);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
177if (_assemblyGuidMap.TryGetValue(assembly, out guidString))
FlowAnalysis\NullableWalker.cs (1)
1907if (state.TryGetValue(key, out var result))
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
168if (this.AnonymousDelegates.TryGetValue(key, out synthesizedDelegate)) 282if (!this.AnonymousDelegates.TryGetValue(key, out template)) 437if (!this.AnonymousTypeTemplates.TryGetValue(typeDescr.Key, out template))
Symbols\MetadataOrSourceAssemblySymbol.cs (1)
229if (AssembliesToWhichInternalAccessHasBeenDetermined.TryGetValue(potentialGiverOfAccess, out result))
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
315if (map.TryGetValue(type, out cached)) 408if (addedModule.TypeHandleToTypeMap.TryGetValue(type.Handle, out cached)) 446if (!destination.SymbolMap.TryGetValue(type, out result))
Symbols\Source\SourceAssemblySymbol.cs (3)
2133_lazyInternalsVisibleToMap.TryGetValue(simpleName, out result); 2328if (lazyInternalsVisibleToMap.TryGetValue(identity.Name, out keys)) 2693bool success = _unassignedFieldsMap.TryGetValue(field, out isInternalAccessibility);
Symbols\TypeSymbol.cs (1)
760if (map.TryGetValue(interfaceMember, out result))
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
105if (!_methodToMemberInfo.TryGetValue(method, out memberInfo))
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
247if (!namedTypeToAnalyzer.TryGetValue(namedType, out var analyzer)) 254namedTypeToAnalyzer.TryGetValue(namedType, out analyzer);
Microsoft.CodeAnalysis.CSharp.Features (3)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
105if (!_methodToMemberInfo.TryGetValue(method, out memberInfo))
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (2)
247if (!namedTypeToAnalyzer.TryGetValue(namedType, out var analyzer)) 254namedTypeToAnalyzer.TryGetValue(namedType, out analyzer);
Microsoft.CodeAnalysis.EditorFeatures (1)
Lightup\LightupHelpers.cs (1)
34if (!wrappedObject.TryGetValue(obj.GetType(), out var canCast))
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\Analyzer\AbstractCopilotCodeAnalysisService.cs (1)
105&& existingDiagnosticsMap.TryGetValue(promptTitle, out var value))
Microsoft.CodeAnalysis.Features (28)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (1)
245if (!s_projectItemsCache.TryGetValue(projectId, out var cacheEntry) ||
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
145else if (!s_projectItemsCache.TryGetValue(project.Id, out cacheEntry))
Completion\SharedSyntaxContextsWithSpeculativeModel.cs (1)
33if (!_cache.TryGetValue(document, out var lazyContext))
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
252if (_documentToLastReportedInformation.TryGetValue(documentId, out var existingInfo) &&
Diagnostics\CodeAnalysisDiagnosticAnalyzerService.cs (2)
124if (!_analyzedProjectToDiagnostics.TryGetValue(documentId.ProjectId, out var diagnostics)) 144if (!_analyzedProjectToDiagnostics.TryGetValue(projectId, out var diagnostics))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (3)
273if (_generatedFilenameToInformation.TryGetValue(filePath, out var info)) 287if (_generatedFilenameToInformation.TryGetValue(filePath, out var fileInfo)) 310if (_generatedFilenameToInformation.TryGetValue(filePath, out var fileInfo))
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (5)
350if (_fileToDocumentInfoMap.TryGetValue(info.FilePath, out var sourceDocumentInfo)) 383return _fileToDocumentInfoMap.TryGetValue(filePath, out _) && blockStructureOptions.CollapseMetadataImplementationsWhenFirstOpened; 390if (_fileToDocumentInfoMap.TryGetValue(filePath, out var info)) 410if (_fileToDocumentInfoMap.TryGetValue(filePath, out var info)) 433_fileToDocumentInfoMap.TryGetValue(document.FilePath, out var info))
src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (5)
27=> s_diagnosticIdToOptionMap.TryGetValue(diagnosticId, out options) || 28(s_diagnosticIdToLanguageSpecificOptionsMap.TryGetValue(language, out var map) && 29map.TryGetValue(diagnosticId, out options)); 87Debug.Assert(!map.TryGetValue(diagnosticId, out var existingOptions) || options.SetEquals(existingOptions)); 100Debug.Assert(!s_diagnosticIdToFadingOptionMap.TryGetValue(diagnosticId, out var existingOption) || existingOption.Equals(fadingOption));
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
206if (fieldStateMap.TryGetValue(fieldSymbol.OriginalDefinition, out var result))
src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
147if (!cache.TryGetValue(symbol.Name, out var failureReason))
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (5)
549if (ineligibleFieldUsageIfOutsideProperty.TryGetValue(result.Field, out var ineligibleFieldUsages)) 570fieldWrites.TryGetValue(result.Field, out var writeLocations1) && 583fieldWrites.TryGetValue(result.Field, out var writeLocations2) && 592fieldReads.TryGetValue(result.Field, out var specificFieldReads) && 602fieldWrites.TryGetValue(result.Field, out var specificFieldWrites) &&
SymbolSearch\Windows\SymbolSearchUpdateEngine.cs (2)
122if (!_sourceToDatabase.TryGetValue(source, out var databaseWrapper)) 178if (!_sourceToDatabase.TryGetValue(source, out var databaseWrapper))
Microsoft.CodeAnalysis.LanguageServer (1)
LanguageServer\Handler\DebugConfiguration\ProjectTargetFrameworkManager.cs (1)
32if (_projectToTargetFrameworkIdentifer.TryGetValue(projectId, out var identifier) && identifier != null)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\InlineCompletions\XmlSnippetParser.cs (1)
37if (_parsedSnippetsCache.TryGetValue(matchingSnippetInfo.Title, out var cachedSnippet))
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (1)
104if (!IconRawJson.TryGetValue(vsCompletionItem.Icon.ImageId, out var jsonString))
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\AbstractTypeRefResolver.cs (1)
19if (_typeRefToTypeMap.TryGetValue(typeRef, out var result))
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\TypeRef.cs (1)
89if (s_cache.TryGetValue(key, out var result))
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\SolutionAssetCache.cs (1)
80if (!_assets.TryGetValue(checksum, out var entry))
Services\DiagnosticAnalyzer\PerformanceTrackerService.cs (1)
140if (_builtInMap.TryGetValue(analyzerId, out var builtIn))
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Serialization\MessagePackFormatters.cs (1)
77if (!_projectIds.TryGetValue(id, out projectId))
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
Microsoft.CodeAnalysis.Test.Utilities (1)
TargetFrameworkUtil.cs (1)
411if (s_dynamicReferenceMap.TryGetValue(assemblyName, out var references))
Microsoft.CodeAnalysis.VisualBasic (13)
BoundTree\UnboundLambda.vb (1)
84If _BindingCache.BoundLambdas.TryGetValue(target, result) Then
Compilation\ClsComplianceChecker.vb (1)
681If Me._declaredOrInheritedCompliance.TryGetValue(symbol, compliance) Then
Compilation\VisualBasicCompilation.vb (1)
1765_lazyImportClauseDependencies.TryGetValue((infoTree, clauseSpan.Start), dependencies) Then
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (2)
98If Not AnonymousTypeTemplates.TryGetValue(typeKey, template) Then 129If Not AnonymousDelegateTemplates.TryGetValue(delegateKey, template) Then
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (1)
157Return _symbols.TryGetValue(symbol, Nothing)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (2)
239If RetargetingAssembly.m_NoPiaUnificationMap.TryGetValue(type, cached) Then 352If Not destination.SymbolMap.TryGetValue(type, result) Then
Symbols\Source\SourceAssemblySymbol.vb (2)
917_lazyInternalsVisibleToMap.TryGetValue(simpleName, result) 1005If _lazyInternalsVisibleToMap.TryGetValue(identity.Name, keys) Then
Symbols\Source\SourceModuleSymbol.vb (1)
169If _sourceFileMap.TryGetValue(tree, srcFile) Then
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2655If overridesDict.TryGetValue(baseProperty, result) Then
Symbols\TypeSymbol.vb (1)
659If map.TryGetValue(interfaceMember, result) Then
Microsoft.CodeAnalysis.Workspaces (18)
Diagnostics\DiagnosticAnalyzerInfoCache.cs (2)
136=> _idToDescriptorsMap.TryGetValue(diagnosticId, out descriptor) && descriptor != null; 191if (!_idToDescriptorsMap.TryGetValue(descriptor.Id, out var existingDescriptor))
FindSymbols\FindReferences\FindReferenceCache.cs (1)
123if (_identifierCache.TryGetValue(identifier, out var result))
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (4)
80if (_peReferenceToInfo.TryGetValue(reference, out var metadataInfo)) 105if (_projectIdToInfo.TryGetValue(project.Id, out var projectInfo)) 168if (!_projectIdToInfo.TryGetValue(project.Id, out var projectInfo) || 196if (!_peReferenceToInfo.TryGetValue(reference, out var metadataInfo) ||
Log\AbstractLogAggregator.cs (1)
53if (_map.TryGetValue((object)key, out counter))
Remote\RemoteServiceCallbackDispatcher.cs (1)
47Contract.ThrowIfFalse(_callbackInstances.TryGetValue(callbackId, out var instance));
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
196if (CopyMap.TryGetValue(originalFilePath, out var copyTask))
src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
34if (dictionary.TryGetValue(key, out var value))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.Changes.cs (1)
39return _map?.TryGetValue(key, out triviaInfo) ?? false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
35!treeMap.TryGetValue((semanticModel.SyntaxTree, namespaceId), out var symbolMap))
Storage\SQLite\v2\SQLitePersistentStorage_DocumentIds.cs (1)
29if (!_documentIdToPrimaryKeyMap.TryGetValue(documentKey.Id, out var existingId))
Storage\SQLite\v2\SQLitePersistentStorage_ProjectIds.cs (1)
29if (!_projectIdToPrimaryKeyMap.TryGetValue(projectKey.Id, out var existingId))
Storage\SQLite\v2\SQLitePersistentStorage_StringIds.cs (1)
30if (_stringToIdMap.TryGetValue(value, out var existingId))
Workspace\Host\Documentation\DocumentationProviderServiceFactory.cs (1)
38if (!_assemblyPathToDocumentationProviderMap.TryGetValue(assemblyPath, out var provider))
Workspace\Solution\SolutionState.cs (1)
1280if (fileMap != null && fileMap.TryGetValue(filePath, out var relatedDocumentIds))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\RpcServer.cs (1)
111_rpcTargets.TryGetValue(request.TargetObject, out var rpcTarget),
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
111_rpcTargets.TryGetValue(request.TargetObject, out var rpcTarget),
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Remote\TestSerializerService.cs (1)
104Contract.ThrowIfFalse(_sharedTestGeneratorReferences.TryGetValue(testGeneratorReferenceGuid, out var generatorReference));
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
AbstractTypeRefResolver.cs (1)
19if (_typeRefToTypeMap.TryGetValue(typeRef, out var result))
TypeRef.cs (1)
89if (s_cache.TryGetValue(key, out var result))
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageIndex.cs (1)
43if (s_indexCache.TryGetValue(indexKey, out result))
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
617if (innerCache.TryGetValue(key, out ReflectionAIFunctionDescriptor? descriptor))
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
165if (_serviceUrlCache.TryGetValue(key, out string? serviceUrl))
Microsoft.Extensions.AI.Tests (1)
TestInMemoryCacheStorage.cs (1)
19=> _storage.TryGetValue(key, out var value) ? value : null;
Microsoft.Extensions.Caching.Hybrid (6)
Internal\DefaultHybridCache.Serialization.cs (1)
24return _serializers.TryGetValue(typeof(T), out object? serializer)
Internal\DefaultHybridCache.Stampede.cs (2)
77if (@this._currentOperations.TryGetValue(stampedeKey, out StampedeState? found)) 111return _currentOperations.TryGetValue(stampedeKey, out StampedeState? state) ? state.DebugCallerCount : 0;
Internal\DefaultHybridCache.TagInvalidation.cs (3)
114if (!_tagInvalidationTimes.TryGetValue(tag, out Task<long>? pending)) 170if (!_tagInvalidationTimes.TryGetValue(tag, out Task<long>? pending)) 236if (!_tagInvalidationTimes.TryGetValue(tag, out Task<long>? pending))
Microsoft.Extensions.Caching.Memory (2)
MemoryCache.cs (2)
735=> key is string s ? _stringEntries.TryGetValue(s, out entry) : _nonStringEntries.TryGetValue(key, out entry);
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (4)
163_callSiteCache.TryGetValue(new ServiceCacheKey(serviceIdentifier, DefaultSlot), out ServiceCallSite? site) ? site : 256if (_callSiteCache.TryGetValue(callSiteKey, out ServiceCallSite? serviceCallSite)) 470if (_callSiteCache.TryGetValue(callSiteKey, out ServiceCallSite? serviceCallSite)) 526if (_callSiteCache.TryGetValue(callSiteKey, out ServiceCallSite? serviceCallSite))
ServiceLookup\CallSiteValidator.cs (2)
20&& _scopedServices.TryGetValue(callSite.Cache.Key, out Type? scopedService) 44if (!_scopedServices.TryGetValue(callSite.Cache.Key, out Type? firstScopedServiceInCallSiteTree))
Microsoft.Extensions.DependencyInjection.Abstractions (2)
ActivatorUtilities.cs (2)
61if (!s_constructorInfos.TryGetValue(instanceType, out constructors)) 639if (!s_constructorInfos.TryGetValue(instanceType, out constructors))
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalFilesWatcher.cs (2)
176if (!_filePathTokenLookup.TryGetValue(filePath, out ChangeTokenInfo tokenInfo)) 211if (!_wildcardTokenLookup.TryGetValue(pattern, out ChangeTokenInfo tokenInfo))
Microsoft.Extensions.Http.Resilience (1)
Resilience\Internal\ByAuthorityPipelineKeyProvider.cs (1)
21if (_cache.TryGetValue(key, out var pipelineKey))
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizerFactory.cs (1)
127if (!_localizerCache.TryGetValue(resourceSource.AssemblyQualifiedName!, out var localizer))
Microsoft.Extensions.Logging (2)
LoggerFactory.cs (2)
146if (!_loggers.TryGetValue(categoryName, out Logger? logger)) 150if (!_loggers.TryGetValue(categoryName, out logger))
Microsoft.Extensions.Logging.Abstractions (1)
FormattedLogValues.cs (1)
37if (!s_formatters.TryGetValue(format, out _formatter))
Microsoft.Extensions.Logging.Console (3)
ConsoleLoggerProvider.cs (3)
127if (options.FormatterName == null || !_formatters.TryGetValue(options.FormatterName, out ConsoleFormatter? logFormatter)) 155if (_options.CurrentValue.FormatterName == null || !_formatters.TryGetValue(_options.CurrentValue.FormatterName, out ConsoleFormatter? logFormatter)) 171return _loggers.TryGetValue(name, out ConsoleLogger? logger) ?
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLoggerProvider.cs (1)
57_sources.TryGetValue(name, out DiagnosticsTraceSource? source) ? source :
Microsoft.Extensions.ML (1)
PredictionEnginePool.cs (1)
88if (_namedPools.TryGetValue(modelName, out var existingPool))
Microsoft.Extensions.Options (1)
OptionsCache.cs (1)
80if (_cache.TryGetValue(name ?? Options.DefaultName, out Lazy<TOptions>? lazy))
Microsoft.Extensions.Telemetry (2)
src\Shared\Memoization\MemoizedFunction.cs (2)
77if (_values.TryGetValue(arg, out var result)) 150if (_values.TryGetValue(args, out var result))
Microsoft.JSInterop (1)
JSRuntime.cs (1)
367return _trackedRefsById.TryGetValue(dotNetObjectId, out var dotNetObjectRef)
Microsoft.Maui (2)
Hosting\Internal\MauiFactory.cs (1)
38 if (_singletons.TryGetValue(descriptor, out var singletonInstance))
MauiContext.cs (1)
66 if (_scopeStatic.TryGetValue(serviceType, out var scope))
Microsoft.Maui.Controls (2)
AnimationExtensions.cs (1)
246 if (s_tweeners.TryGetValue(ticker, out Animation animation))
Xaml\TypeConversionExtensions.cs (1)
89 if (!s_converterCache.TryGetValue(memberInfo, out converter))
Microsoft.ML.Core (3)
Data\Repository.cs (1)
511if (PathMap.TryGetValue(pathLower, out pathAbs))
Environment\HostEnvironmentBase.cs (2)
471if (!ListenerDict.TryGetValue(typeof(TMessage), out Dispatcher dispatcher) 507if (!ListenerDict.TryGetValue(typeof(TMessage), out Dispatcher dispatcher))
Microsoft.ML.FastTree (5)
Utils\BufferPoolManager.cs (5)
43if (!_bufferPools.TryGetValue(typeof(T), out availableBuffers)) 46_bufferPools.TryGetValue(typeof(T), out availableBuffers); 86if (!_bufferPools.TryGetValue(typeof(T), out availableBuffers)) 89bool tmp = _bufferPools.TryGetValue(typeof(T), out availableBuffers); 114if (_bufferPools.TryGetValue(type, out availableBuffers))
Microsoft.ML.InternalCodeAnalyzer (1)
INamedTypeSymbolExtensions.cs (1)
15if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
Microsoft.ML.Tokenizers (1)
Model\TiktokenTokenizer.cs (1)
1237if (!_tiktokenCache.TryGetValue(
Microsoft.NET.StringTools (1)
WeakStringCache.Concurrent.cs (1)
41if (_stringsByHashCode.TryGetValue(hashCode, out handle))
Microsoft.VisualStudio.LanguageServices (4)
DesignerAttribute\VisualStudioDesignerAttributeService.cs (1)
284if (!_cpsProjects.TryGetValue(projectId, out var updateService))
Packaging\PackageInstallerServiceFactory.cs (2)
205if (_projectToInstalledPackageAndVersion.TryGetValue(projectId, out var state)) 608return _projectToInstalledPackageAndVersion.TryGetValue(projectId, out var installedPackages) &&
Venus\ContainedDocument.cs (1)
77s_containedDocuments.TryGetValue(id, out var document);
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Implementation\XamlProjectService.cs (3)
79if (_documentIds.TryGetValue(filePath, out var documentId)) 188if (_documentIds.TryGetValue(filePath, out var docId)) 202if (_documentIds.TryGetValue(filePath, out var documentId))
MSBuild (1)
RegisteredTaskObjectCacheBase.cs (1)
73dict?.TryGetValue(key, out obj);
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfXamlType.cs (2)
442if (wpfXamlType._members != null && wpfXamlType.Members.TryGetValue(name, out xamlMember)) 449if (wpfXamlType._attachableMembers != null && wpfXamlType.AttachableMembers.TryGetValue(name, out xamlMember))
Roslyn.Diagnostics.Analyzers (8)
AbstractDoNotCopyValue.cs (1)
1696if (_typesToNonCopyable.TryGetValue(namedTypeSymbol, out var noncopyable))
DefaultableTypeShouldHaveDefaultableFieldsAnalyzer.cs (2)
126if (knownNonDefaultableTypes.TryGetValue(namedType, out var isNonDefaultable)) 133if (knownNonDefaultableTypes.TryGetValue(type, out isNonDefaultable))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
Shared (2)
Memoization\MemoizedFunction.cs (2)
77if (_values.TryGetValue(arg, out var result)) 150if (_values.TryGetValue(args, out var result))
SignalRSamples (1)
ConnectionList.cs (1)
18if (_connections.TryGetValue(connectionId, out var connection))
SocialWeather (1)
ConnectionList.cs (1)
19if (_connections.TryGetValue(connectionId, out var connection))
System.Collections.Concurrent (4)
System\Collections\Concurrent\ConcurrentDictionary.cs (4)
383public bool ContainsKey(TKey key) => TryGetValue(key, out _); 1094if (!TryGetValue(key, out TValue? value)) 1639TryGetValue(keyValuePair.Key, out TValue? value) && 1827if (key is TKey tkey && TryGetValue(tkey, out TValue? value))
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (2)
140return s_metadataTypeCache.TryGetValue(type, out associatedMetadataType); 174if (s_typeMemberCache.TryGetValue(memberTuple, out attributes))
System.ComponentModel.TypeConverter (8)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (6)
285if (_typeData.TryGetValue(type, out ReflectedTypeData? data) && 923if (_typeData.TryGetValue(type, out ReflectedTypeData? td)) 931if (_typeData.TryGetValue(type, out td)) 961if (!_typeData.TryGetValue(type, out ReflectedTypeData? td)) 1004if (_typeData.TryGetValue(type, out ReflectedTypeData? td)) 1011if (_typeData.TryGetValue(type, out td))
System\ComponentModel\TypeDescriptor.cs (2)
346if (s_defaultProviderInitialized.TryGetValue(type, out object? provider) && provider == s_initializedDefaultProvider) 1672if (!s_providerTypeTable.TryGetValue(searchType, out node))
System.Data.Common (1)
System\Data\Common\DbProviderFactories.cs (1)
151bool wasRegistered = _registeredFactories.TryGetValue(providerInvariantName, out ProviderRegistration registration);
System.Data.Odbc (2)
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionPoolGroup.cs (2)
164if (!_poolCollection.TryGetValue(currentIdentity, out pool)) // find the pool 169if (!_poolCollection.TryGetValue(currentIdentity, out pool))
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\Metrics\AggregationManager.cs (2)
340if (!_instrumentStates.TryGetValue(instrument, out InstrumentState? instrumentState)) 355_instrumentStates.TryGetValue(instrument, out instrumentState);
System\Diagnostics\Metrics\AggregatorStore.cs (1)
463if (!_valuesDict.TryGetValue(values, out aggregator))
System.Net.Http (3)
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (2)
50if (!_failedProxies.TryGetValue(uri, out long renewTicks)) 69return _failedProxies.TryGetValue(uri, out renewTicks) ? renewTicks : Immediate;
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
335while (!_pools.TryGetValue(key, out pool))
System.Net.Quic (1)
src\libraries\Common\src\System\Net\SafeHandleCache.cs (1)
53if (_cache.TryGetValue(key, out THandle? handle) && handle.TryAddRentCount())
System.Net.Requests (1)
System\Net\ServicePoint\ServicePointManager.cs (1)
125if (s_servicePointTable.TryGetValue(tableKey, out wr) && wr.TryGetTarget(out sp))
System.Net.Security (2)
src\libraries\Common\src\System\Net\SafeHandleCache.cs (1)
53if (_cache.TryGetValue(key, out THandle? handle) && handle.TryAddRentCount())
System\Net\Security\SslSessionsCache.cs (1)
131return s_cachedCreds.TryGetValue(key, out SafeCredentialReference? cached) ? cached.Target : null;
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\ContextAware.cs (2)
63if (_fastDictionary.TryGetValue(t, out ret)) 79if (!_fastDictionary.TryGetValue(t, out ret))
System\Runtime\Serialization\DataContract.cs (1)
395if (s_typeToIDCache.TryGetValue(typeHandle.Value, out int id))
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
191if (s_typeToIDCache.TryGetValue(typeHandle.Value, out int id))
System.Private.Windows.Core.TestUtilities (4)
NoAssertContext.cs (4)
129if (!s_suppressedThreads.TryGetValue(Environment.CurrentManagedThreadId, out _)) 137if (!s_suppressedThreads.TryGetValue(Environment.CurrentManagedThreadId, out _)) 147if (!s_suppressedThreads.TryGetValue(Environment.CurrentManagedThreadId, out _)) 155if (!s_suppressedThreads.TryGetValue(Environment.CurrentManagedThreadId, out _))
System.Reflection.MetadataLoadContext (1)
System\Reflection\MetadataLoadContext.Resolving.cs (1)
50if (_binds.TryGetValue(refName, out RoAssembly? prior))
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\DefaultCaching.cs (1)
30return _cache.TryGetValue(handle, out info);
System.Security.Cryptography (4)
System\Security\Cryptography\CryptoConfig.cs (2)
383appNameHT.TryGetValue(name, out Type? retvalType); 551appOidHT.TryGetValue(name, out string? oidName);
System\Security\Cryptography\OidLookup.cs (2)
37s_lateBoundOidToFriendlyName.TryGetValue(oid, out mappedName)) 72s_lateBoundFriendlyNameToOid.TryGetValue(friendlyName, out mappedOid))
System.Text.Json (7)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
139if (_nameCacheForWriting.TryGetValue(key, out JsonEncodedText formatted)) 199if (dictionaryKeyPolicy is null && _nameCacheForWriting.TryGetValue(key, out JsonEncodedText formatted))
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
239_cache.TryGetValue(type, out CacheEntry? entry);
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (4)
123if (!_typeToDiscriminatorId.TryGetValue(runtimeType, out DerivedJsonTypeInfo? result)) 135_typeToDiscriminatorId.TryGetValue(BaseType, out result); 217if (_typeToDiscriminatorId.TryGetValue(candidate, out result)) 230_typeToDiscriminatorId.TryGetValue(interfaceTy, out DerivedJsonTypeInfo? interfaceResult) &&
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Regex.Cache.cs (2)
173s_cacheDictionary.TryGetValue(key, out Node? node)) 206if (s_maxCacheSize == 0 || s_cacheDictionary.TryGetValue(key, out _))
System.Windows.Forms (4)
System\Resources\AssemblyNamesTypeResolutionService.cs (2)
28if (_cachedAssemblies.TryGetValue(name, out Assembly? result) && result is not null) 81if (_cachedTypes.TryGetValue(name, out Type? result) && result is not null)
System\Windows\Forms\Application.ThreadContext.cs (1)
495if (s_contextHash.TryGetValue(id, out ThreadContext? context))
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
66if (!s_defaultFontCache.TryGetValue(dpi, out Font? retFont))
System.Xaml (18)
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
218if (!result.TryGetValue(nsDef.ClrNamespace, out xmlNamespaceList))
System\Xaml\Schema\TypeReflector.cs (1)
349result = _aliasedProperties.TryGetValue(directive, out member);
System\Xaml\Schema\XamlNamespace.cs (1)
75if (_typeCache.TryGetValue(typeName, out XamlType xamlType))
System\Xaml\XamlSchemaContext.cs (15)
148if (!_preferredPrefixes.TryGetValue(xmlns, out result)) 237if (!prefixDict.TryGetValue(nsToPrefix.Key, out existingPrefix)) 390if (XmlNsCompatDict.TryGetValue(xamlNamespace, out compatibleNamespace)) 552if (!MasterTypeList.TryGetValue(type, out xamlType)) 573if (!MasterBracketCharacterCache.TryGetValue(type, out bracketCharacterCache)) 619if (!MasterValueConverterList.TryGetValue(key, out result)) 632if (!MasterMemberList.TryGetValue(xpik, out member)) 645if (!MasterMemberList.TryGetValue(xpik, out member)) 659if (!MasterMemberList.TryGetValue(xpik, out property)) 672if (!MasterMemberList.TryGetValue(xpik, out property)) 949if (NamespaceByUriList.TryGetValue(xmlns, out xamlNamespace)) 973if (XmlnsInfo.TryGetValue(assembly, out result) || 975_xmlnsInfoForDynamicAssemblies.TryGetValue(new WeakRefKey(assembly), out result)) || 976(_xmlnsInfoForUnreferencedAssemblies is not null && _xmlnsInfoForUnreferencedAssemblies.TryGetValue(assembly, out result))) 1043if (!assemblyMappings.TryGetValue(clrNs, out result))
Test.Utilities (5)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
Text.Analyzers (5)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\INamedTypeSymbolExtensions.cs (1)
278if (knownTestAttributes.TryGetValue(attributeClass, out var isTest))
src\RoslynAnalyzers\Utilities\Compiler\Lightup\LightupHelpers.cs (1)
36if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
76if (!_computedOptionValuesMap.TryGetValue(key, out var computedValue))
src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (1)
298if (_wildcardMatchResult.TryGetValue(symbol, out var firstMatch))
src\RoslynAnalyzers\Utilities\Compiler\WellKnownTypeProvider.cs (1)
94if (_fullNameToTypeMap.TryGetValue(fullTypeName, out namedTypeSymbol))
XmlFileLogger (1)
ObjectModel\Build.cs (1)
281return _taskToAssemblyMap.TryGetValue(taskName, out assembly) ? assembly : string.Empty;
xunit.console (2)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (2)
160if (!managedAssemblyCache.TryGetValue(assemblyName, out var result)) 184if (!unmanagedAssemblyCache.TryGetValue(unmanagedLibraryName, out var resolvedAssemblyPath))