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)
3830 references to TryGetValue
AnalyzerRunner (3)
aspire (3)
Aspire.Azure.Messaging.EventHubs.Tests (6)
Aspire.Azure.Security.KeyVault.Tests (6)
Aspire.Cli.Tests (1)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (16)
Aspire.Dashboard.Tests (11)
TelemetryRepositoryTests\LogTests.cs (11)
248Assert.True(unviewedCounts1.TryGetValue(new ApplicationKey("TestService", "1"), out var unviewedCount1));
251Assert.True(unviewedCounts1.TryGetValue(new ApplicationKey("TestService", "2"), out var unviewedCount2));
258Assert.False(unviewedCounts2.TryGetValue(new ApplicationKey("TestService", "1"), out _));
260Assert.True(unviewedCounts2.TryGetValue(new ApplicationKey("TestService", "2"), out unviewedCount2));
267Assert.False(unviewedCounts3.TryGetValue(new ApplicationKey("TestService", "1"), out _));
268Assert.False(unviewedCounts3.TryGetValue(new ApplicationKey("TestService", "2"), out _));
319Assert.False(unviewedCounts.TryGetValue(new ApplicationKey("TestService", "1"), out _));
320Assert.False(unviewedCounts.TryGetValue(new ApplicationKey("TestService", "2"), out _));
371Assert.False(unviewedCounts.TryGetValue(new ApplicationKey("TestService", "1"), out _));
372Assert.True(unviewedCounts.TryGetValue(new ApplicationKey("TestService", "2"), out var unviewedCount));
409Assert.True(unviewedCounts.TryGetValue(new ApplicationKey("TestService", "1"), out var unviewedCount));
Aspire.Hosting (21)
Aspire.Hosting.Azure (7)
Aspire.Hosting.Azure.AppContainers (3)
Aspire.Hosting.Azure.AppService (2)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Tests (2)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Tests (2)
Aspire.Playground.Tests (1)
Aspire.Templates.Tests (1)
BasicWebSite (1)
Binding.Http.IntegrationTests (2)
BoundTreeGenerator (1)
BuildBoss (2)
BuildValidator (8)
Client.ClientBase.IntegrationTests (2)
ConfigurationSchemaGenerator (8)
CSharpSyntaxGenerator (2)
dotnet-svcutil.xmlserializer (4)
dotnet-svcutil-lib (147)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (12)
370if (!_importedBindings.TryGetValue(wsdlBindingQName, out bindingEndpointContext))
379_importedPortTypes.TryGetValue(wsdlBinding.Type, out contractContext);
445if (!_importedPorts.TryGetValue(wsdlPort, out endpoint))
647if (this.KnownContracts.TryGetValue(contractQName, out existingContract))
651if (_importedPortTypes.TryGetValue(wsdlPortTypeQName, out contractContext))
2332if (!_embeddedPolicyDictionary.TryGetValue(wsdl, out wsdlPolicyDictionary))
2383_externalPolicyDictionary.TryGetValue(policyReference, out policy);
2393if (!_policySourceTable.TryGetValue(contextPolicyAssertion, out sourceWsdl))
2406_externalPolicyDictionary.TryGetValue(policyReference, out policy);
2411if (!_embeddedPolicyDictionary.TryGetValue(wsdlDocument, out wsdlPolicyDictionary))
2416wsdlPolicyDictionary.TryGetValue(policyReference, out policy);
2439if (!_policySourceTable.TryGetValue(policyAssertion, out sourceWsdl))
GenerateDocumentationAndConfigFiles (53)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
GetDocument.Insider (1)
HealthChecksSample (1)
IdentitySample.PasskeyConformance (1)
IdentitySample.PasskeyUI (1)
IIS.Microbenchmarks (1)
illink (106)
Linker\Annotations.cs (17)
122if (assembly_actions.TryGetValue(assembly, out AssemblyAction action))
278if (!preserved_types.TryGetValue(type, out (TypePreserve preserve, bool applied) existing))
298if (!preserved_types.TryGetValue(type, out (TypePreserve preserve, bool applied) existing))
344if (preserved_types.TryGetValue(type, out (TypePreserve preserve, bool _applied) existing))
356if (preserved_type_members.TryGetValue(type, out TypePreserveMembers existing))
369if (preserved_exportedtype_members.TryGetValue(type, out TypePreserveMembers existing))
377return preserved_type_members.TryGetValue(type, out preserve);
382return preserved_exportedtype_members.TryGetValue(type, out preserve);
407if (resources_to_remove.TryGetValue(assembly, out HashSet<EmbeddedResource>? resources))
415if (!resources_to_remove.TryGetValue(assembly, out HashSet<EmbeddedResource>? resources))
496if (preserved_methods.TryGetValue(definition, out List<MethodDefinition>? preserved))
528if (!symbol_readers.TryGetValue(assembly, out ISymbolReader? symbolReader))
537if (!custom_annotations.TryGetValue(key, out Dictionary<IMetadataTokenProvider, object>? slots))
540if (!slots.TryGetValue(item, out object? value))
548if (!custom_annotations.TryGetValue(key, out Dictionary<IMetadataTokenProvider, object>? slots))
573if (!linker_attributes.TryGetValue(member, out var linkerAttributeInformation))
588if (!linker_attributes.TryGetValue(member, out var linkerAttributeInformation))
Linker\LinkContext.cs (19)
268return FeatureSettings.TryGetValue(feature, out bool fvalue) && value == fvalue;
399if (!_actions.TryGetValue(assembly.Name.Name, out AssemblyAction action))
407if (_actions.TryGetValue(assembly.Name.Name, out AssemblyAction action))
439if (_isTrimmable.TryGetValue(assembly, out bool isTrimmable))
529return _parameters.TryGetValue(key, out value);
773return !WarnAsError.TryGetValue(warningCode, out value) || value;
775return WarnAsError.TryGetValue(warningCode, out value) && value;
782return !SingleWarn.TryGetValue(assemblyName, out value) || value;
784return SingleWarn.TryGetValue(assemblyName, out value) && value;
820if (methodresolveCache.TryGetValue(methodReference, out MethodDefinition? md))
848if (methodresolveCache.TryGetValue(methodReference, out MethodDefinition? md))
869if (fieldresolveCache.TryGetValue(fieldReference, out FieldDefinition? fd))
895if (fieldresolveCache.TryGetValue(fieldReference, out FieldDefinition? fd))
914if (typeresolveCache.TryGetValue(typeReference, out TypeDefinition? td))
948if (typeresolveCache.TryGetValue(typeReference, out TypeDefinition? td))
994if (exportedTypeResolveCache.TryGetValue(et, out var td))
1099perAssembly.TryGetValue(assemblyName, out var assemblySetting) &&
1116if (!perAssembly.TryGetValue(assemblyContext, out var assemblySetting))
1134if (!perAssembly.TryGetValue(assemblyContext, out var assemblySetting))
ILLink.RoslynAnalyzer (16)
ILLink.Tasks (2)
Infrastructure.Common (1)
InMemory.FunctionalTests (8)
installer.tasks (1)
Interop.FunctionalTests (1)
IOperationGenerator (1)
KeyManagementSimulator (1)
Metrics (52)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Metrics.Legacy (52)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.Analyzers.Extra (10)
Microsoft.Analyzers.Local (15)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers (1)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Test (5)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.BrowserTesting (2)
Microsoft.AspNetCore.Components (26)
Microsoft.AspNetCore.Components.Authorization.Tests (2)
Microsoft.AspNetCore.Components.Endpoints (7)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Microsoft.AspNetCore.Components.Forms (8)
Microsoft.AspNetCore.Components.Forms.Tests (2)
Microsoft.AspNetCore.Components.Performance (1)
Microsoft.AspNetCore.Components.Server (4)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.Tests (5)
Microsoft.AspNetCore.Components.Web (13)
Forms\Mapping\FormMappingContext.cs (10)
34_errors?.TryGetValue(key, out var mappingError) == true ? mappingError : null;
43_errorsByFormName?.TryGetValue(formName, out var formErrors) == true &&
44formErrors.TryGetValue(key, out var mappingError) == true ? mappingError : null;
72return _errorsByFormName?.TryGetValue(formName, out var formErrors) == true ?
83_errors?.TryGetValue(key, out var mappingError) == true ? mappingError.AttemptedValue : null;
92_errorsByFormName?.TryGetValue(formName, out var formErrors) == true &&
93formErrors.TryGetValue(key, out var mappingError) ? mappingError.AttemptedValue : null;
103if (!errors.TryGetValue(key, out var mappingError))
119if (!_errorsByFormName.TryGetValue(formName, out var formErrors))
150if (_errorsByFormName == null || !_errorsByFormName.TryGetValue(formName, out var formErrors))
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.Test (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Http (7)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Extensions (6)
Microsoft.AspNetCore.Http.Microbenchmarks (3)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (10)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.Mvc.Views.TestCommon (3)
Microsoft.AspNetCore.OpenApi (6)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OutputCaching (4)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (5)
Microsoft.AspNetCore.Owin.Microbenchmarks (1)
Microsoft.AspNetCore.RateLimiting (2)
Microsoft.AspNetCore.Razor.Runtime (2)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Routing (27)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Microsoft.AspNetCore.Routing.Tests (13)
Matching\DfaMatcherBuilderTest.cs (12)
575Assert.True(aNodeValue.Literals.TryGetValue("c", out var cNode));
583Assert.True(aNodeValue.Literals.TryGetValue("b", out var bNode));
638Assert.True(aNodeValue.Literals.TryGetValue("c", out var cNode));
646Assert.True(aNodeValue.Literals.TryGetValue("b", out var bNode));
743Assert.True(aNodeValue.Literals.TryGetValue("c", out var cNode));
751Assert.True(aNodeValue.Literals.TryGetValue("b", out var bNode));
848Assert.True(aNodeValue.Literals.TryGetValue("c", out var cNode));
856Assert.True(aNodeValue.Literals.TryGetValue("b", out var bNode));
908Assert.True(aNodeValue.Literals.TryGetValue("c", out var cNode));
916Assert.True(aNodeValue.Literals.TryGetValue("b", out var bNode));
1023Assert.True(aNodeValue.Literals.TryGetValue("c", out var cNode));
1031Assert.True(aNodeValue.Literals.TryGetValue("b", out var bNode));
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (3)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.Build.Framework (9)
Microsoft.Build.Tasks.CodeAnalysis (4)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (4)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
Microsoft.Cci.Extensions (14)
Microsoft.CodeAnalysis (121)
PEWriter\MetadataWriter.cs (11)
710if (_customAttributeSignatureIndex.TryGetValue(customAttribute, out result))
813if (_fieldSignatureIndex.TryGetValue(fieldReference, out result))
844if (!_fileRefIndex.TryGetValue(key, out index))
1046if (_methodInstanceSignatureIndex.TryGetValue(methodInstanceReference, out result))
1069if (_marshallingDescriptorIndex.TryGetValue(marshallingInformation, out result))
1645if (_typeSpecSignatureIndex.TryGetValue(typeReference, out result))
3022if (!_deterministic && isSmallBody && _smallMethodBodies.TryGetValue(smallBodyKey, out bodyOffset))
4272return _index.TryGetValue(item, out index);
4299return _index.TryGetValue(item, out index);
4322if (_instanceIndex.TryGetValue(item, out index))
4326if (_structuralIndex.TryGetValue(item, out index))
Microsoft.CodeAnalysis.Analyzers (64)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.AnalyzerUtilities (87)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.BannedApiAnalyzers (54)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.CodeStyle (59)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
Microsoft.CodeAnalysis.Collections.Package (2)
Microsoft.CodeAnalysis.CSharp (174)
FlowAnalysis\NullableWalker_Patterns.cs (14)
305var labelResult = labelStateMap.TryGetValue(label.Label, out var s1) ? s1 : (state: UnreachableState(), believedReachable: false);
311var afterSwitchState = labelStateMap.TryGetValue(node.BreakLabel, out var stateAndReachable) ? stateAndReachable.state : UnreachableState();
420bool found = nodeStateMap.TryGetValue(dagNode, out var nodeStateAndBelievedReachable);
437(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable();
591bool foundTemp = tempMap.TryGetValue(test.Input, out var slotAndType);
676var foundTemp = tempMap.TryGetValue(tempSource, out var tempSlotAndType);
736if (originalInputMap.TryGetValue(inputSlot, out var expression))
744if (tempMap.TryGetValue(output, out var outputSlotAndType))
774if (nodeStateMap.TryGetValue(node, out var stateAndReachable))
807if (nodeStateMap.TryGetValue(node, out var stateAndReachable))
896labelStateMap.TryGetValue(node.DefaultLabel, out var defaultLabelState) &&
1045=> !arm.Pattern.HasErrors && labelStateMap.TryGetValue(arm.Label, out var labelState) ? labelState.state : UnreachableState();
1061var trueState = labelStateMap.TryGetValue(node.IsNegated ? node.WhenFalseLabel : node.WhenTrueLabel, out var s1) ? s1.state : UnreachableState();
1062var falseState = labelStateMap.TryGetValue(node.IsNegated ? node.WhenTrueLabel : node.WhenFalseLabel, out var s2) ? s2.state : UnreachableState();
Lowering\ClosureConversion\ClosureConversion.cs (10)
625if (proxies.TryGetValue(framePointer, out proxyField))
693proxies.TryGetValue(_innermostFramePointer, out oldInnermostFrameProxy);
752if (proxies.TryGetValue(symbol, out proxy))
760if (!_parameterMap.TryGetValue(parameter, out parameterToUse))
827if (_parameterMap.TryGetValue(node.ParameterSymbol, out replacementParameter))
1158if (_frames.TryGetValue(node, out var frame))
1220if (_frames.TryGetValue(node, out var frame))
1294if (_frames.TryGetValue(node, out var frame))
1311if (_frames.TryGetValue(node, out var frame))
1581_framePointers.TryGetValue(translatedLambdaContainer, out _innermostFramePointer);
Symbols\Source\SourceMemberContainerSymbol.cs (25)
1295if (GetTypeMembersDictionary().TryGetValue(name, out members))
1346if (conflictDict.TryGetValue(key, out other))
1493if (GetMembersByName().TryGetValue(name.AsMemory(), out members))
1574return GetEarlyAttributeDecodingMembersDictionary().TryGetValue(name.AsMemory(), out result) ? result : ImmutableArray<Symbol>.Empty;
2018Symbol? lastSym = typesByName?.TryGetValue(name, out var types) == true ? types.FirstOrDefault() : null;
2117if (methodsBySignature.TryGetValue(conversion, out var previousMethod))
2129if (conversionsAsMethods.TryGetValue(method, out var previousConversion))
2138if (methodsBySignature.TryGetValue(method, out var previousMethod))
2331if (indexersBySignature.TryGetValue(indexer, out var prevIndexerBySignature))
2440if (membersByName.TryGetValue(pair.Key, out var members))
2809if (membersByName.TryGetValue(operatorName1.AsMemory(), out ImmutableArray<Symbol> candidates))
3019if (instanceMap.TryGetValue(tOriginal, out var oldInstance))
3165if (membersByName.TryGetValue(name, out membersForName))
4012if (!membersBySignature.TryGetValue(symbol, out var prev))
4398foreach (var symbol in membersByName.TryGetValue(accessorName.AsMemory(), out var members) ? members : [])
4437foreach (var symbol in membersByName.TryGetValue(accessorName.AsMemory(), out var members) ? members : [])
4919if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingDeconstructMethod))
4967if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingConstructor))
5020if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingPrintMembersMethod))
5091if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingToStringMethod))
5151if (!memberSignatures.TryGetValue(targetProperty, out var existingMember)
5152&& !fieldsByName.TryGetValue(param.Name, out existingMember))
5250if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingHashCodeMethod))
5280if (!memberSignatures.TryGetValue(targetProperty, out Symbol? existingEqualityContractProperty))
5349if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingEqualsMethod))
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (11)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.EditorFeatures (27)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (6)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Microsoft.CodeAnalysis.Extensions.Package (2)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
Microsoft.CodeAnalysis.Features (93)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (9)
1080if (!lazyActiveOrMatchedLambdas.TryGetValue(oldEnclosingLambdaBody, out var lambda))
1545if (activeOrMatchedLambdas.TryGetValue(oldLambdaBody, out var info))
1689if (lambdaInfos.TryGetValue(oldParentLambdaBody, out var lambdaInfo) && !lambdaInfo.BodyMap.Forward.IsEmpty())
3503if (!constructorEdits.TryGetValue(newType, out var constructorEdit))
3899if (!deletedTypes.TryGetValue(key, out var indices))
3929if (deletedTypes.TryGetValue((newType.Name, newType.Arity), out var deletedTypeIndices) && deletedTypeIndices.Count > 0)
6142if (capturesIndex.TryGetValue(VariableCaptureKey.Create(variable, liftingPrimaryConstructor), out var newCaptureIndex))
6343!oldParameterCaptures.TryGetValue(oldParameterKey, out oldCaptureIndex))
6355!oldLocalCaptures.TryGetValue(mappedOldSyntax, out oldCaptureIndex))
Microsoft.CodeAnalysis.Features.Test.Utilities (2)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.LanguageServer (5)
Microsoft.CodeAnalysis.LanguageServer.Protocol (15)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (52)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (53)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (10)
Microsoft.CodeAnalysis.Remote.Workspaces (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (52)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.Scripting (12)
Microsoft.CodeAnalysis.Test.Utilities (16)
Microsoft.CodeAnalysis.Threading.Package (2)
Microsoft.CodeAnalysis.UnitTests (10)
CachingLookupTests.cs (10)
164s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
170s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
177s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
196s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
202s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
209s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
227var look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
232look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
238look2 = new CachingDictionary<string, int>(s => dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>(),
263return dict.TryGetValue(s, out var value) ? value : ImmutableArray.Create<int>();
Microsoft.CodeAnalysis.VisualBasic (30)
Microsoft.CodeAnalysis.Workspaces (139)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.Workspaces.MSBuild (10)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.CSharp (10)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
70s_aggregateTable.TryGetValue(MakeKey(aggregate, MakeKey(outer, args)), out AggregateType result);
85s_arrayTable.TryGetValue(new KeyPair<CType, int>(elementType, rankNum), out ArrayType result);
99s_parameterModifierTable.TryGetValue(new KeyPair<CType, bool>(elementType, isOut), out ParameterModifierType result);
112s_pointerTable.TryGetValue(elementType, out PointerType result);
124s_nullableTable.TryGetValue(underlyingType, out NullableType result);
Microsoft.Data.Analysis (8)
Microsoft.DotNet.ArcadeLogging (8)
Microsoft.DotNet.Build.Tasks.Feed (12)
Microsoft.DotNet.Build.Tasks.Packaging (28)
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
Microsoft.DotNet.Build.Tasks.Workloads (4)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.Helix.Sdk (1)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.PackageTesting (8)
Microsoft.DotNet.SharedFramework.Sdk (11)
Microsoft.DotNet.SignCheckLibrary (5)
Microsoft.DotNet.SignTool (17)
Microsoft.DotNet.SignTool.Tests (2)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (5)
Microsoft.DotNet.XliffTasks (1)
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.Extensions.AI.Abstractions (8)
Microsoft.Extensions.AI.AzureAIInference (1)
Microsoft.Extensions.AI.Evaluation.NLP (4)
Microsoft.Extensions.AI.Evaluation.Safety (6)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (5)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.CommandLine (2)
Microsoft.Extensions.DependencyInjection (11)
Microsoft.Extensions.DependencyModel (4)
Microsoft.Extensions.Diagnostics (3)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http (5)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Identity.Core (5)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options.SourceGeneration (4)
Microsoft.Extensions.ServiceDiscovery.Dns (5)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Validation (2)
Microsoft.Extensions.Validation.Tests (3)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.Logging (1)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.MetricsReports (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Interop.ComInterfaceGenerator (6)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Maui (23)
Microsoft.Maui.Controls (44)
Registrar.cs (10)
62 if (!_handlers.TryGetValue(tview, out Dictionary<Type, HandlerType> visualRenderers))
70 if (visualRenderers.TryGetValue(supportedVisuals[i], out HandlerType existingTargetValue))
176 if (_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers))
177 if (visualRenderers.TryGetValue(visualType, out HandlerType specificTypeRenderer))
183 if (visualRenderers.TryGetValue(_defaultVisualType, out HandlerType specificTypeRenderer))
212 if (_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers))
213 if (visualRenderers.TryGetValue(visualType, out handlerType))
217 if (visualRenderers.TryGetValue(_defaultVisualType, out handlerType))
239 if (!_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers) ||
368 if (properties.TryGetValue(attribute.CssPropertyName, out var attrList))
Microsoft.Maui.Controls.Build.Tasks (33)
SetPropertiesVisitor.cs (11)
271 if (context.TypeExtensions.TryGetValue(typeNode, out arrayTypeRef))
502 if (!node.Properties.TryGetValue(new XmlName("", "Path"), out INode pathNode) && node.CollectionItems.Any())
505 if (!node.Properties.TryGetValue(new XmlName("", "Mode"), out INode modeNode)
526 if (n != skipNode && n.Properties.TryGetValue(XmlName.xDataType, out dataTypeNode))
774 if (!locs.TryGetValue(importedPropDeclTypeRef, out var loc))
892 if (!locs.TryGetValue(tupleRef, out var defaultValueVarDef))
981 if (!locs.TryGetValue(importedPropDeclTypeRef, out var loc))
1347 if (!context.Variables.TryGetValue(valueNode as IElementNode, out varValue))
1382 if (!context.Variables.TryGetValue(valueNode as IElementNode, out VariableDefinition varValue))
1424 if (!context.Variables.TryGetValue(elementNode, out VariableDefinition varValue))
1690 if (!context.Variables.TryGetValue(elementNode, out VariableDefinition varValue))
Microsoft.Maui.Controls.SourceGen (1)
Microsoft.Maui.Controls.Xaml (24)
Microsoft.Maui.Essentials (3)
Microsoft.Maui.Graphics (2)
Microsoft.Maui.Graphics.Text.Markdig (2)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML (3)
Microsoft.ML.AutoML.SourceGenerator (4)
Microsoft.ML.Core (22)
Microsoft.ML.Data (67)
Data\Conversion.cs (10)
467return _delegatesStd.TryGetValue(key, out conv);
504if (_delegatesAll.TryGetValue(key, out del))
606if (!_delegatesStd.TryGetValue(delegatesKey, out Delegate del))
628if (!t.IsStandardScalar() && !(t is KeyDataViewType) || !_isDefaultDelegates.TryGetValue(t.RawType, out del))
671else if (!t.IsStandardScalar() || !_isNADelegates.TryGetValue(t.RawType, out del))
694else if (!t.IsStandardScalar() || !_hasNADelegates.TryGetValue(t.RawType, out del))
711if (!_getNADelegates.TryGetValue(type.RawType, out del))
729if (!_getNADelegates.TryGetValue(type.RawType, out del))
741if (_isDefaultDelegates.TryGetValue(type.RawType, out isDefPred))
759if (!_getNADelegates.TryGetValue(type.RawType, out del))
EntryPoints\EntryPointNode.cs (11)
278return _vars.TryGetValue(name, out v);
301if (!_vars.TryGetValue(binding.VariableName, out v))
326if (!_vars.TryGetValue(name, out v))
358if (!_vars.TryGetValue(kvp.Key, out v))
383while (_vars.TryGetValue(name, out v))
740if (!mapping.TryGetValue(kvp.Value.VariableName, out newName))
751if (!mapping.TryGetValue(kvp.Value, out newName))
822if (_outputMap.TryGetValue(pair.Key, out tgt))
936bool success = InputBindingMap.TryGetValue(paramName, out parameterBindings);
942success = InputMap.TryGetValue(parameterBindings[0], out variableBinding);
950bool success = OutputMap.TryGetValue(paramName, out outputVarName);
Microsoft.ML.DataView (2)
Microsoft.ML.Ensemble (1)
Microsoft.ML.FastTree (13)
GamModelParameters.cs (12)
213if (_inputFeatureToShapeFunctionMap.TryGetValue(i, out int j))
224if (_inputFeatureToShapeFunctionMap.TryGetValue(featuresIndices[i], out int j))
244if (_inputFeatureToShapeFunctionMap.TryGetValue(i, out int j))
258if (_inputFeatureToShapeFunctionMap.TryGetValue(featuresIndices[i], out int j))
288if (!_inputFeatureToShapeFunctionMap.TryGetValue(featureIndex, out int j))
305if (_inputFeatureToShapeFunctionMap.TryGetValue(i, out int j))
326if (!_inputFeatureToShapeFunctionMap.TryGetValue(featureIndex, out int j))
343if (_inputFeatureToShapeFunctionMap.TryGetValue(i, out int j))
427if (_inputFeatureToShapeFunctionMap.TryGetValue(featureIndex, out int j))
698if (!_pred._inputFeatureToShapeFunctionMap.TryGetValue(feat, out internalIndex))
723if (!metricDict.TryGetValue(MetricKinds.OverallMetrics, out metricsView))
846if (!context._pred._inputFeatureToShapeFunctionMap.TryGetValue(index, out internalIndex))
Microsoft.ML.GenAI.Core (1)
Microsoft.ML.ImageAnalytics (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.ResultProcessor (5)
Microsoft.ML.SearchSpace (1)
Microsoft.ML.StandardTrainers (2)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TimeSeries (3)
Microsoft.ML.Tokenizers (43)
Model\SentencePieceBpeModel.cs (8)
65public override bool TryMapIdToToken(int id, out string? token) => _vocabReverse.TryGetValue(id, out token);
218if (_vocabReverse.TryGetValue(id, out string? token))
242if (_vocabReverse.TryGetValue(id, out string? token))
270!revMerge.TryGetValue((pieceSpan.Index, pieceSpan.Length), out (int LeftIndex, int LeftLen, int RightIndex, int RightLen) merge))
575!revMerge.TryGetValue((pieceSpan.Index, pieceSpan.Length), out (int LeftIndex, int LeftLen, int RightIndex, int RightLen) merge))
834!revMerge.TryGetValue((pieceSpan.Index, pieceSpan.Length), out (int LeftIndex, int LeftLen, int RightIndex, int RightLen) merge))
1110!revMerge.TryGetValue((pieceSpan.Index, pieceSpan.Length), out (int LeftIndex, int LeftLen, int RightIndex, int RightLen) merge))
1218=> _vocabReverse.TryGetValue(id, out string? token) ? token : text.Slice(index, length).ToString();
Utils\StringSpanOrdinalKey.cs (6)
93return _map.TryGetValue(new StringSpanOrdinalKey(key), out value!);
103return _map.TryGetValue(new StringSpanOrdinalKey(ptr, key.Length), out value!);
181return map.TryGetValue(new StringSpanOrdinalKey(ptr, key.Length), out value!);
186map.TryGetValue(new StringSpanOrdinalKey(key), out value!);
193return map.TryGetValue(new StringSpanOrdinalKeyPair(ptr1, key1.Length, ptr2, key2.Length), out value!);
198map.TryGetValue(new StringSpanOrdinalKeyPair(key1, key2), out value!);
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.TorchSharp (2)
Microsoft.ML.Transforms (13)
Microsoft.NET.StringTools (1)
Microsoft.NET.StringTools.net35 (2)
Microsoft.VisualBasic.Core (7)
Microsoft.VisualStudio.LanguageServices (29)
Microsoft.VisualStudio.LanguageServices.CodeLens (2)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Microsoft.VisualStudio.LanguageServices.Xaml (5)
PresentationBuildTasks (14)
PresentationCore (40)
PresentationFramework (87)
RazorBuildWebSite (2)
ReachFramework (5)
Roslyn.Diagnostics.Analyzers (52)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Roslyn.Diagnostics.CSharp.Analyzers (10)
Roslyn.Test.PdbUtilities (2)
Roslyn.VisualStudio.DiagnosticsWindow (1)
RulesetToEditorconfigConverter (1)
Security.TransportSecurity.IntegrationTests (2)
SemanticSearch.BuildTask (1)
Shared (2)
SocialWeather (3)
Swaggatherer (2)
System.CodeDom (2)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (23)
System.ComponentModel.Composition.Registration (13)
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (12)
130_memberInfos.TryGetValue(underlyingMemberType, out cachedAttributes);
138if (!_memberInfos.TryGetValue(underlyingMemberType, out cachedAttributes))
152if (!_memberInfos.TryGetValue((MemberInfo)element.Item1, out memberAttributes))
164if (!_memberInfos.TryGetValue((MemberInfo)element.Item1, out memberAttributes))
182if (!_parameters.TryGetValue((ParameterInfo)element.Item1, out List<Attribute> parameterAttributes))
196_memberInfos.TryGetValue(underlyingMemberType, out cachedAttributes);
225if (!_memberInfos.TryGetValue(member, out cachedAttributes))
228if (!_memberInfos.TryGetValue(member.DeclaringType.UnderlyingSystemType, out cachedAttributes))
246_memberInfos.TryGetValue(member, out cachedAttributes);
261if (!_parameters.TryGetValue(parameter, out cachedAttributes))
264if (!_memberInfos.TryGetValue(parameter.Member.DeclaringType, out cachedAttributes))
281_parameters.TryGetValue(parameter, out cachedAttributes);
System.ComponentModel.TypeConverter (8)
System.Composition.Convention (12)
System\Composition\Convention\ConventionBuilder.cs (11)
160_memberInfos.TryGetValue(memberInfo, out cachedAttributes);
172if (!_memberInfos.TryGetValue(memberInfo, out cachedAttributes))
185if (!_memberInfos.TryGetValue(mi, out List<Attribute> memberAttributes))
200if (!_parameters.TryGetValue(pi, out List<Attribute> parameterAttributes))
210_memberInfos.TryGetValue(memberInfo, out cachedAttributes);
241if (!_memberInfos.TryGetValue(member, out cachedAttributes))
245&& !_memberInfos.TryGetValue(member.DeclaringType.GetTypeInfo() as MemberInfo, out cachedAttributes))
267_memberInfos.TryGetValue(member, out cachedAttributes);
302if (!_parameters.TryGetValue(parameter, out cachedAttributes))
306&& !_memberInfos.TryGetValue(reflectedType.GetTypeInfo() as MemberInfo, out cachedAttributes))
328_parameters.TryGetValue(parameter, out cachedAttributes);
System.Composition.Hosting (2)
System.Composition.TypedParts (5)
System.Configuration.ConfigurationManager (1)
System.Data.Common (24)
System.Data.Odbc (16)
System.Diagnostics.DiagnosticSource (4)
System.Drawing.Common.Tests (2)
System.Drawing.Primitives (3)
System.Formats.Nrbf (4)
System.Formats.Tar (7)
System.IO.FileSystem.Watcher (2)
System.IO.Packaging (18)
System.Linq.AsyncEnumerable (2)
System.Linq.Expressions (27)
System.Linq.Parallel (7)
System.Linq.Queryable (2)
System.Net.HttpListener (2)
System.Net.Mail (12)
System.Net.Ping (2)
System.ObjectModel (3)
System.Private.CoreLib (61)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (14)
3610if (eventData.TryGetValue(evtId, out EventMetadata metadata) && metadata.Descriptor.EventId != 0)
5353if (opcodeTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal))
5371if (taskTab != null && taskTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal))
5394if (keywordTab != null && keywordTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal))
5567if (stringTab.TryGetValue(prefixedEventName, out string? msg))
5597if (!channelTab.TryGetValue((int)channel, out ChannelInfo? info))
5860if (stringTab.TryGetValue(key, out string? prevValue) && !prevValue.Equals(value))
5885stringTab.TryGetValue(key, out value);
5911if (channelTab == null || !channelTab.TryGetValue((int)channel, out ChannelInfo? info))
5925if (!channelTab.TryGetValue((int)channel, out info))
5943if (!taskTab.TryGetValue((int)task, out string? ret))
5976if (opcodeTab == null || !opcodeTab.TryGetValue((int)opcode, out string? ret))
5997if ((keywordTab == null || !keywordTab.TryGetValue(bit, out keyword)) &&
6167if (perEventByteArrayArgIndices.TryGetValue(evtName, out List<int>? byteArrArgIndices))
System.Private.CoreLib.Generators (6)
System.Private.DataContractSerialization (31)
System.Private.Windows.Core (10)
System.Private.Windows.Core.Tests (7)
System.Private.Xml (118)
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (13)
62if (TryGetValue(v, out adjList) && adjList != null)
78if (!TryGetValue(v1, out adjList) || adjList == null)
85if (!TryGetValue(v2, out _))
277if (!parentModeFlags.TryGetValue(modeFlag.Key, out modeFlags))
291if (!parentModeFlags.TryGetValue(tmpl.Mode, out modeFlags))
367if (!_applyTemplatesParams.TryGetValue(mn, out modePar))
406if (_compiler!.NamedTemplates.TryGetValue(node.Name!, out target))
630if (_compiler!.AttributeSets.TryGetValue(node.Name!, out AttributeSet? attSet) && _currentTemplate != null)
669if (!_applyTemplatesParams.TryGetValue(mn, out par))
755if (!_revApplyTemplatesGraph!.TryGetValue(mode, out templates))
829_revApplyTemplatesGraph!.TryGetValue(template.Mode, out list) // list - ProtoTemplates that have apply-templatess mode="{template.Mode}"
1076if (XPathBuilder.FunctionTable.TryGetValue(name, out xpathFunc))
1093else if (QilGenerator.FunctionTable.TryGetValue(name, out xsltFunc))
System.Reflection.DispatchProxy (4)
System.Reflection.Emit (11)
System.Reflection.Metadata (11)
System.Reflection.MetadataLoadContext (2)
System.Resources.Extensions (9)
System.Runtime.Serialization.Schema (6)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (11)
System.ServiceModel.NetFramingBase (5)
System.ServiceModel.Primitives.Tests (3)
System.Text.Encoding.CodePages (8)
System.Text.Json (10)
System.Text.Json.SourceGeneration (5)
System.Text.RegularExpressions (14)
System.Text.RegularExpressions.Generator (4)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (4)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (75)
System.Windows.Forms.Design (81)
System.Windows.Forms.Primitives (4)
System.Windows.Forms.Primitives.TestUtilities (4)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Forms.Tests (1)
System.Windows.Input.Manipulations (1)
System.Xaml (47)
System.Xaml.Tests (1)
TagHelpersWebSite (1)
TaskUsageLogger (5)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)
Test.Utilities (52)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Text.Analyzers (52)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
217if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
254_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
310if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
327if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
464if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
475if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
503if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
533if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
600if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
WindowsFormsIntegration (5)
XmlFileLogger (2)
xunit.assert (3)
xunit.console (3)