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)
5139 references to TryGetValue
aspire (58)
aspire-managed (2)
Aspire.Azure.Messaging.EventHubs.Tests (6)
Aspire.Azure.Security.KeyVault.Tests (6)
Aspire.Cli.Tests (13)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (75)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (17)
38if (_cachedResourcesByKey.TryGetValue(resourceKey, out var existingResource))
108if (resource.ViewsByProperties.TryGetValue(incomingView.Properties, out var cachedView))
195if (resource.Scopes.TryGetValue(incomingScope.Name, out var resourceScope))
201if (!_cachedScopesByName.TryGetValue(incomingScope.Name, out var cachedScope))
276if (resourceScope.Instruments.TryGetValue(metric.Name, out var instrument))
282if (resourceScope.Instruments.TryGetValue(metric.Name, out instrument))
554if (_cachedResourcesById.TryGetValue(group.Key.ResourceId, out var resource))
566if (_cachedResourcesById.TryGetValue(record.ResourceId, out var resource))
581if (_cachedResourcesById.TryGetValue(record.ResourceId, out var resource) &&
582_cachedScopesById.TryGetValue(record.ScopeId, out var scope))
606if (!_cachedResourcesByKey.TryGetValue(key, out var cachedResource))
629if (resource.ViewsById.TryGetValue(resourceViewId, out var cachedView))
643if (_cachedScopesById.TryGetValue(scopeId, out var cachedScope))
657if (!resource.Scopes.TryGetValue(scope.Scope.Name, out var resourceScope))
668if (!resourceScope.Instruments.TryGetValue(record.InstrumentName, out var instrument))
737return _cachedResourcesById.TryGetValue(resourceId, out var resource) ? resource.Resource : null;
745: _cachedResourcesByKey.TryGetValue(key, out var resource) ? [resource] : [];
Aspire.Dashboard.Tests (23)
TelemetryRepositoryTests\LogTests.cs (12)
339Assert.True(actual.TryGetValue(value, out var actualCount), $"Field '{field}' is missing value '{value}'.");
502Assert.True(unviewedCounts1.TryGetValue(new ResourceKey("TestService", "1"), out var unviewedCount1));
505Assert.True(unviewedCounts1.TryGetValue(new ResourceKey("TestService", "2"), out var unviewedCount2));
512Assert.False(unviewedCounts2.TryGetValue(new ResourceKey("TestService", "1"), out _));
514Assert.True(unviewedCounts2.TryGetValue(new ResourceKey("TestService", "2"), out unviewedCount2));
521Assert.False(unviewedCounts3.TryGetValue(new ResourceKey("TestService", "1"), out _));
522Assert.False(unviewedCounts3.TryGetValue(new ResourceKey("TestService", "2"), out _));
573Assert.False(unviewedCounts.TryGetValue(new ResourceKey("TestService", "1"), out _));
574Assert.False(unviewedCounts.TryGetValue(new ResourceKey("TestService", "2"), out _));
625Assert.False(unviewedCounts.TryGetValue(new ResourceKey("TestService", "1"), out _));
626Assert.True(unviewedCounts.TryGetValue(new ResourceKey("TestService", "2"), out var unviewedCount));
663Assert.True(unviewedCounts.TryGetValue(new ResourceKey("TestService", "1"), out var unviewedCount));
Aspire.Hosting (56)
Aspire.Hosting.Azure (12)
Aspire.Hosting.Azure.AppContainers (5)
Aspire.Hosting.Azure.AppService (2)
Aspire.Hosting.Azure.Functions (2)
Aspire.Hosting.Azure.Kubernetes (2)
Aspire.Hosting.Azure.Kubernetes.Tests (5)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Tests (15)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Browsers (5)
Aspire.Hosting.Browsers.Tests (5)
Aspire.Hosting.CodeGeneration.Go (18)
AtsGoCodeGenerator.cs (18)
195.OrderBy(id => _isInterfaceType.TryGetValue(id, out var isI) && isI ? 0 : 1)
201var isInterface = _isInterfaceType.TryGetValue(typeId, out var ii) && ii;
282if (optionsNameFirstCapability.TryGetValue(simpleName, out var firstCap)
397if (!result.TryGetValue(capability.TargetTypeId, out var list))
442if (!result.TryGetValue(targetType.TypeId, out var list))
739if (!current.Children.TryGetValue(segment, out var child))
775.Where(kv => _isInterfaceType.TryGetValue(kv.Key, out var isI) && isI && !_implNames.ContainsKey(kv.Key))
823var capabilities = capabilitiesByConcreteImpl.TryGetValue(typeId, out var caps)
914var appInterface = _interfaceNames.TryGetValue(AtsConstants.ApplicationTypeId, out var appName)
1280var childImplName = returnType.TypeId is not null && _implNames.TryGetValue(returnType.TypeId, out var implTarget)
1739return _optionsTypeNames.TryGetValue(capability.CapabilityId, out var name)
1747&& _interfaceNames.TryGetValue(capability.TargetTypeId, out var ifName)
1935var hasBuilderImpl = _implNames.TryGetValue(builderTypeId, out var existingBuilderImpl);
1936var builderInterface = _interfaceNames.TryGetValue(builderTypeId, out var existingBuilderIface)
2065&& _dtoNames.TryGetValue(dto.TypeId, out var goName))
2153if (_interfaceNames.TryGetValue(typeId, out var name))
2161_dtoNames.TryGetValue(typeId, out var name) ? name : "map[string]any";
2164_enumNames.TryGetValue(typeId, out var name) ? name : "string";
Aspire.Hosting.CodeGeneration.Java (15)
AtsJavaCodeGenerator.cs (15)
914if (!current.Children.TryGetValue(segment, out var child))
948if (_optionsClassesToGenerate.TryGetValue(baseClassName, out var existingParameters))
959if (!_optionsClassesToGenerate.TryGetValue(suffixedName, out var suffixedParameters))
1092_capabilityOptionsClassMap.TryGetValue(capability.CapabilityId, out var className) ? className : null;
1254if (capabilitiesByTarget.TryGetValue(handleType.TypeId, out var methods))
1317var builderClassName = _classNames.TryGetValue(AtsConstants.BuilderTypeId, out var name)
2107if (!_enumNames.TryGetValue(typeId, out var enumName))
2118if (!_dtoNames.TryGetValue(typeId, out var dtoName))
2257var builderClassName = _classNames.TryGetValue(AtsConstants.BuilderTypeId, out var name)
2389if (handleTypeMap.TryGetValue(typeId, out var typeInfo))
2397if (handleTypeInfoMap.TryGetValue(typeId, out var handleTypeInfo))
2444if (!result.TryGetValue(targetType.TypeId, out var list))
2565_classNames.TryGetValue(typeId, out var name) ? name : "Handle";
2568_dtoNames.TryGetValue(typeId, out var name) ? name : "Map<String, Object>";
2571_enumNames.TryGetValue(typeId, out var name) ? name : "String";
Aspire.Hosting.CodeGeneration.Python (13)
AtsPythonCodeGenerator.cs (13)
211if (_wrapperClassNames.TryGetValue(typeRef.TypeId, out var wrapperClassName))
509if (!_enumTypeNames.TryGetValue(typeId, out var enumName))
571if (_wrapperClassNames.TryGetValue(typeId, out var wrapperClassName))
981if (!current.Children.TryGetValue(segment, out var child))
1529if (!isBaseResource && _moduleBuilder.ResourceOptionNames.TryGetValue(baseBuilderClassName, out var baseOptionNames))
1610_mergedCapabilityDispatches.TryGetValue(capability.CapabilityId, out var optionMergedDispatch);
1614if (builderClassName != null && _moduleBuilder.ResourceOptionNames.TryGetValue(builderClassName, out var optionNamesList))
1682_mergedCapabilityDispatches.TryGetValue(capability.CapabilityId, out var mergedDispatch);
1853if (!interfaceCapabilities.TryGetValue(targetTypeId, out var interfaceList))
1868if (!capabilitiesByTypeId.TryGetValue(expandedType.TypeId, out var list))
1881if (!capabilitiesByTypeId.TryGetValue(targetTypeId, out var list))
2049if (buildersByTypeId.TryGetValue(baseTypeId, out var baseBuilder))
2060if (buildersByTypeId.TryGetValue(GetBuilderTypeId(iface), out var ifaceBuilder))
Aspire.Hosting.CodeGeneration.Rust (8)
Aspire.Hosting.CodeGeneration.TypeScript (22)
TypeScriptApiProjector.cs (17)
209directlyReturnedResourceTypesByClassName.TryGetValue(builder.BuilderClassName, out var directlyReturnedAliases);
773AtsTypeCategory.Dto when value is JsonObject obj && _dtoTypesById.TryGetValue(typeRef.TypeId, out var dtoInfo)
932if (!current.Children.TryGetValue(segment, out var child))
1541if (context.Methods.TryGetValue(capability.CapabilityId, out var method))
1546if (context.Properties.TryGetValue(capability.CapabilityId, out var property))
1680if (_wrapperClassNames.TryGetValue(typeRef.TypeId, out var wrapperClassName))
1772if (!_enumTypeNames.TryGetValue(typeId, out var enumName))
1806if (_wrapperClassNames.TryGetValue(typeId, out var wrapperClassName))
1863if (IsHandleType(typeRef) && _wrapperClassNames.TryGetValue(typeRef!.TypeId, out var className))
1948!_wrapperClassNames.TryGetValue(candidateTypeRef.TypeId, out var wrapperClassName))
2065if (_capabilityOptionsInterfaceMap.TryGetValue(capability.CapabilityId, out var interfaceName))
2146if (_optionsInterfacesToGenerate.TryGetValue(baseInterfaceName, out var existingParams))
2159if (!_optionsInterfacesToGenerate.TryGetValue(suffixedName, out var suffixedParams))
2191if (_optionsInterfacesToGenerate.TryGetValue(interfaceName, out var declaredParams))
2609if (!capabilitiesByTypeId.TryGetValue(expandedType.TypeId, out var list))
2622if (!interfaceCapabilities.TryGetValue(targetTypeId, out var interfaceList))
2635if (!capabilitiesByTypeId.TryGetValue(targetTypeId, out var list))
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Docker.Tests (1)
Aspire.Hosting.Dotnet (2)
Aspire.Hosting.Java (5)
Aspire.Hosting.JavaScript (2)
Aspire.Hosting.Kubernetes (17)
Aspire.Hosting.Kubernetes.Tests (2)
Aspire.Hosting.Maui (3)
Aspire.Hosting.Maui.Tests (1)
Aspire.Hosting.Radius (23)
Publishing\RadiusInfrastructureBuilder.cs (16)
482if (!instanceParents.TryGetValue(instance, out var parents))
487if (!snapshot.InstanceParentIds.TryGetValue(instance, out var snapIds))
508if (!containerConnectionTargets.TryGetValue(container, out var targets))
525!snapshot.ContainerConnectionTargetIds.TryGetValue(container, out var targetSnapIds))
532if (!targetSnapIds.TryGetValue(connectionName, out var snapTargetId))
824if (s_defaultRecipeTemplates.TryGetValue(resourceType, out var defaultTemplate))
875if (!entries.TryGetValue(resourceType, out var byName))
881if (s_defaultRecipeTemplates.TryGetValue(resourceType, out var defaultTemplate))
1012&& typeInstancesByResourceName.TryGetValue(referencedResource.Name, out var targetConstruct))
1318if (_envParametersByName.TryGetValue(parameter.Name, out var existing))
1333if (_recipeParameters.TryGetValue(parameter.Name, out var recipeParameter))
1478if (!containersByMapKey.TryGetValue(mapKey, out var container))
1670if (annotation.ByResourceType.TryGetValue(resourceType, out var scoped))
1828if (!_recipeParameters.TryGetValue(parameter.Name, out var provisioningParameter))
1836if (_recipeParameterIdentifiers.TryGetValue(identifier, out var existingName))
2148if (!options.SealedSecretManifests.TryGetValue(store.Name, out var manifest))
Aspire.Hosting.RemoteHost (21)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Tests (5)
Aspire.Hosting.TestUtilities (1)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (6)
Aspire.Playground.Tests (1)
Aspire.Templates.Tests (1)
Aspire.TerminalHost (1)
Binding.Http.IntegrationTests (2)
cdac-build-tool (6)
Client.ClientBase.IntegrationTests (2)
ConfigurationSchemaGenerator (8)
crossgen2 (2)
CSharpSyntaxGenerator (2)
dotnet (40)
dotnet-aot (2)
dotnet-format (2)
dotnet-Microsoft.XmlSerializer.Generator (1)
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))
dotnet-svcutil.xmlserializer (4)
dotnet-watch (3)
DotNetWatchTasks (2)
GenerateDocumentationAndConfigFiles (53)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
233if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
270_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
326if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
343if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
480if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
507if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
519if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
549if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
616if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
GetDocument.Insider (1)
HelixTestTasks (1)
ILAssembler (29)
EntityRegistry.cs (9)
88if (_seenEntities.TryGetValue(table, out var entities))
586if (!_seenEntities.TryGetValue(table, out List<EntityBase>? entities))
598if (cache.TryGetValue(key, out TEntity? entity))
625if (_seenTypeDefs.TryGetValue((containingType, @namespace, name), out var typeDef))
644if (_seenModuleRefs.TryGetValue(name, out var moduleRef))
671if (_seenEntities.TryGetValue(tableIndex, out var entity))
1066if (_seenFiles.TryGetValue(name, out var file))
1075if (_seenAssemblyRefs.TryGetValue(name, out var asmRef))
1109if (_seenExportedTypes.TryGetValue((containingType, @namespace, name), out var typeDef))
GrammarVisitor.cs (17)
399if (!_documentHandles.TryGetValue(debugInfo.DocumentPath, out documentHandle))
1636if (!_mappedFieldDataReferenceFixups.TryGetValue(name, out var fixups))
2724var start = _currentMethod!.Labels.TryGetValue(VisitId(id).Value, out LabelHandle startLabel) ? startLabel : _currentMethod.Labels[VisitId(id).Value] = _currentMethod.Definition.MethodBody.DefineLabel();
2786var start = _currentMethod!.Labels.TryGetValue(VisitId(ids[0]).Value, out LabelHandle startLabel) ? startLabel : _currentMethod.Labels[VisitId(ids[0]).Value] = _currentMethod.Definition.MethodBody.DefineLabel();
2787var end = _currentMethod!.Labels.TryGetValue(VisitId(ids[1]).Value, out LabelHandle endLabel) ? endLabel : _currentMethod.Labels[VisitId(ids[1]).Value] = _currentMethod.Definition.MethodBody.DefineLabel();
2949if (!_currentMethod!.Labels.TryGetValue(label, out var handle))
3145if (!_currentMethod!.Labels.TryGetValue(labelName, out var handle))
3216if (_currentMethod!.ArgumentNames.TryGetValue(varName, out var argIndex))
3234if (_currentMethod.LocalsScopes[i].TryGetValue(varName, out var localIndex))
3421if (!_currentMethod!.Labels.TryGetValue(labelName, out var label))
3662if (!currentMethod.Labels.TryGetValue(labelName, out var label))
4984var start = _currentMethod!.Labels.TryGetValue(VisitId(ids[0]).Value, out LabelHandle startLabel) ? startLabel : _currentMethod.Labels[VisitId(ids[0]).Value] = _currentMethod.Definition.MethodBody.DefineLabel();
4985var end = _currentMethod!.Labels.TryGetValue(VisitId(ids[1]).Value, out LabelHandle endLabel) ? endLabel : _currentMethod.Labels[VisitId(ids[1]).Value] = _currentMethod.Definition.MethodBody.DefineLabel();
5227if (_typedefs.TryGetValue(alias, out var entry) && entry is TypedefEntry.Type typeEntry)
5239if (_typedefs.TryGetValue(alias, out var entry))
5262if (_typedefs.TryGetValue(alias, out var entry) && entry is TypedefEntry.Member memberEntry)
5274if (_typedefs.TryGetValue(alias, out var entry) && entry is TypedefEntry.CustomAttribute attrEntry)
ilc (4)
ILCompiler.Build.Tasks (1)
ILCompiler.Compiler (129)
Compiler\UserDefinedTypeDescriptor.cs (13)
57if (!_knownStateMachineThisTypes.TryGetValue(type, out uint typeIndex))
166if (_thisTypes.TryGetValue(type, out typeIndex))
189if (_methodIndices.TryGetValue(method, out typeIndex))
230if (_methodIdIndices.TryGetValue(method, out typeIndex))
268if (_knownReferenceWrappedTypes.TryGetValue(type, out variableTypeIndex))
292if (_enumTypes.TryGetValue(type, out variableTypeIndex))
317_completeKnownTypes.TryGetValue(type, out typeIndex)
318: _knownTypes.TryGetValue(type, out typeIndex))
359if (_pointerTypes.TryGetValue(pointeeType, out typeIndex))
369if (_pointerTypes.TryGetValue(pointeeType, out typeIndex))
381if (_byRefTypes.TryGetValue(pointeeType, out typeIndex))
391if (_byRefTypes.TryGetValue(pointeeType, out typeIndex))
850if (_primitiveTypes.TryGetValue(type, out typeIndex))
ILCompiler.DependencyAnalysisFramework (4)
ILCompiler.MetadataTransform (11)
ILCompiler.ReadyToRun (118)
ILCompiler.RyuJit (22)
ILCompiler.TypeSystem (1)
illink (104)
Linker\Annotations.cs (17)
125if (assembly_actions.TryGetValue(assembly, out AssemblyAction action))
320if (!preserved_types.TryGetValue(type, out (TypePreserve preserve, bool applied) existing))
340if (!preserved_types.TryGetValue(type, out (TypePreserve preserve, bool applied) existing))
386if (preserved_types.TryGetValue(type, out (TypePreserve preserve, bool _applied) existing))
398if (preserved_type_members.TryGetValue(type, out TypePreserveMembers existing))
411if (preserved_exportedtype_members.TryGetValue(type, out TypePreserveMembers existing))
419return preserved_type_members.TryGetValue(type, out preserve);
424return preserved_exportedtype_members.TryGetValue(type, out preserve);
449if (resources_to_remove.TryGetValue(assembly, out HashSet<EmbeddedResource>? resources))
457if (!resources_to_remove.TryGetValue(assembly, out HashSet<EmbeddedResource>? resources))
538if (preserved_methods.TryGetValue(definition, out List<MethodDefinition>? preserved))
570if (!symbol_readers.TryGetValue(assembly, out ISymbolReader? symbolReader))
579if (!custom_annotations.TryGetValue(key, out Dictionary<IMetadataTokenProvider, object>? slots))
582if (!slots.TryGetValue(item, out object? value))
590if (!custom_annotations.TryGetValue(key, out Dictionary<IMetadataTokenProvider, object>? slots))
615if (!linker_attributes.TryGetValue(member, out var linkerAttributeInformation))
630if (!linker_attributes.TryGetValue(member, out var linkerAttributeInformation))
Linker\LinkContext.cs (19)
303return FeatureSettings.TryGetValue(feature, out bool fvalue) && value == fvalue;
437if (!_actions.TryGetValue(assembly.Name.Name, out AssemblyAction action))
445if (_actions.TryGetValue(assembly.Name.Name, out AssemblyAction action))
477if (_isTrimmable.TryGetValue(assembly, out bool isTrimmable))
567return _parameters.TryGetValue(key, out value);
811return !WarnAsError.TryGetValue(warningCode, out value) || value;
813return WarnAsError.TryGetValue(warningCode, out value) && value;
820return !SingleWarn.TryGetValue(assemblyName, out value) || value;
822return SingleWarn.TryGetValue(assemblyName, out value) && value;
858if (methodresolveCache.TryGetValue(methodReference, out MethodDefinition? md))
886if (methodresolveCache.TryGetValue(methodReference, out MethodDefinition? md))
907if (fieldresolveCache.TryGetValue(fieldReference, out FieldDefinition? fd))
933if (fieldresolveCache.TryGetValue(fieldReference, out FieldDefinition? fd))
952if (typeresolveCache.TryGetValue(typeReference, out TypeDefinition? td))
986if (typeresolveCache.TryGetValue(typeReference, out TypeDefinition? td))
1032if (exportedTypeResolveCache.TryGetValue(et, out var td))
1140perAssembly.TryGetValue(assemblyName, out var assemblySetting) &&
1157if (!perAssembly.TryGetValue(assemblyContext, out var assemblySetting))
1175if (!perAssembly.TryGetValue(assemblyContext, out var assemblySetting))
ILLink.RoslynAnalyzer (16)
ILLink.Tasks (2)
Infrastructure.Common (1)
Infrastructure.Tests (11)
installer.tasks (1)
Microsoft.Analyzers.Extra (10)
Microsoft.Analyzers.Local (15)
Microsoft.AspNetCore.Analyzers (1)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Components (30)
Microsoft.AspNetCore.Components.AI (1)
Microsoft.AspNetCore.Components.AI.SourceGenerators (1)
Microsoft.AspNetCore.Components.Endpoints (9)
Microsoft.AspNetCore.Components.Forms (10)
Microsoft.AspNetCore.Components.Server (3)
Microsoft.AspNetCore.Components.Testing (1)
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.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (7)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Http (7)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Extensions (5)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
Microsoft.AspNetCore.Mvc.Core (10)
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.OpenApi (6)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.OutputCaching (4)
Microsoft.AspNetCore.RateLimiting (2)
Microsoft.AspNetCore.Razor.Runtime (2)
Microsoft.AspNetCore.Razor.Utilities.Shared (6)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Routing (27)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Core (4)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.WebUtilities (3)
Microsoft.Build (180)
BackEnd\Components\RequestBuilder\Lookup.cs (11)
217if (lookupHash.TryGetValue(propertyName, out string propertyValue))
340if (SecondaryModifyTable.TryGetValue(entry.Key, out modifiesOfType))
506if (scope.Modifies.TryGetValue(itemType, out modifies))
867if (!PrimaryModifyTable.TryGetValue(itemType, out modifiesOfType))
908if (allModifies.TryGetValue(originalItem, out MetadataModifications modificationsToApply))
971if (_cloneTable.TryGetValue(item, out original))
991if (modify.TryGetValue(item, out MetadataModifications modificationsToApply))
1009if (modifiesOfType.TryGetValue(modify.Key, out existingMetadataChanges))
1060if (table?.TryGetValue(item.ItemType, out tableOfItemsOfSameType) == true)
1196if (modificationPair.Value.KeepValue && _modifications.TryGetValue(modificationPair.Key, out existingModification))
1254if (!_modifications.TryGetValue(metadataName, out modification))
BackEnd\Components\Scheduler\SchedulingData.cs (16)
270if (!_configurationToRequests.TryGetValue(request.BuildRequest.ConfigurationId, out requests))
332if (!_scheduledRequestsByNode.TryGetValue(request.AssignedNode, out requestsAssignedToNode))
343if (!_configurationsByNode.TryGetValue(request.AssignedNode, out configurationsAssignedToNode))
375if (_scheduledRequestsByNode.TryGetValue(request.AssignedNode, out var requests))
401if (!_readyRequestsByNode.TryGetValue(request.AssignedNode, out readyRequestsOnNode))
433if (!_configurationToRequests.TryGetValue(configurationId, out requests))
465if (_blockedRequests.TryGetValue(globalRequestId, out request))
516if (!_configurationsByNode.TryGetValue(nodeId, out configurationsAssignedToNode))
558if (!_scheduledRequestsByNode.TryGetValue(nodeId, out requests))
572if (!_scheduledRequestsByNode.TryGetValue(nodeId, out requests))
586if (!_readyRequestsByNode.TryGetValue(nodeId, out requests))
625if (!_configurationToNode.TryGetValue(configurationId, out assignedNode))
693if (_executingRequests.TryGetValue(globalRequestId, out returnValue))
698if (_blockedRequests.TryGetValue(globalRequestId, out returnValue))
703if (_yieldingRequests.TryGetValue(globalRequestId, out returnValue))
708if (_readyRequests.TryGetValue(globalRequestId, out returnValue))
Instance\HostServices.cs (9)
74if (_hostObjectMap == null || !_hostObjectMap.TryGetValue(projectFile, out hostObjects))
235if (oldFullPath != null && _hostObjectMap != null && _hostObjectMap.TryGetValue(oldFullPath, out hostObjects))
254if (!_hostObjectMap.TryGetValue(projectFile, out hostObjects))
279if (_projectAffinities.TryGetValue(projectFile, out affinity))
285if (_projectAffinities.TryGetValue(String.Empty, out affinity))
297if (!_hostObjectMap.TryGetValue(projectFile, out var hostObjects))
320if (!hostObjectMap.TryGetValue(pairKey, out HostObjects hostObject))
468if (_hostObjects.TryGetValue(new TargetTaskKey(targetName, taskName), out MonikerNameOrITaskHost hostObject))
479return !taskName.Equals(taskShortName, StringComparison.OrdinalIgnoreCase) && _hostObjects.TryGetValue(new TargetTaskKey(targetName, taskShortName), out hostObject)
Logging\TerminalLogger\TerminalLogger.cs (11)
749if (_projectEvaluations.TryGetValue(evalContext, out EvalProjectInfo evalInfo))
794if (_projects.TryGetValue(c, out TerminalProjectInfo? project))
906if (!_projectEvaluations.TryGetValue(c, out EvalProjectInfo _))
1058if (_restoreContext is null && buildEventContext is not null && _projects.TryGetValue(new ProjectContext(buildEventContext), out TerminalProjectInfo? project))
1133&& _projects.TryGetValue(new ProjectContext(buildEventContext), out TerminalProjectInfo? project))
1146&& _projects.TryGetValue(new ProjectContext(buildEventContext), out project)
1167if (_projects.TryGetValue(new ProjectContext(buildEventContext), out TerminalProjectInfo? project))
1181&& _projects.TryGetValue(new ProjectContext(buildEventContext), out TerminalProjectInfo? project))
1207bool hasProject = _projects.TryGetValue(new ProjectContext(buildEventContext), out TerminalProjectInfo? project);
1367&& _projects.TryGetValue(new ProjectContext(buildEventContext), out TerminalProjectInfo? project))
1449&& _projects.TryGetValue(new ProjectContext(buildEventContext), out TerminalProjectInfo? project))
Microsoft.Build.Framework (23)
SolutionConfiguration.cs (6)
103if (!_cachedDependencyProjectGuidsByDependingProjectGuid.TryGetValue(projectGuid, out List<string>? list))
137public bool TryGetProjectByGuid(string projectGuid, [NotNullWhen(true)] out XmlElement? projectElement) => _cachedProjectElements.TryGetValue(projectGuid, out projectElement);
139public bool TryGetProjectByAbsolutePath(string projectFullPath, [NotNullWhen(true)] out XmlElement? projectElement) => _cachedProjectElementsByAbsolutePath.TryGetValue(projectFullPath, out projectElement);
141public bool TryGetProjectGuidByAbsolutePath(string projectFullPath, [NotNullWhen(true)] out string? projectGuid) => _cachedProjectGuidsByAbsolutePath.TryGetValue(projectFullPath, out projectGuid);
143public bool TryGetProjectDependencies(string projectGuid, [NotNullWhen(true)] out List<string>? dependencyProjectGuids) => _cachedDependencyProjectGuidsByDependingProjectGuid.TryGetValue(projectGuid, out dependencyProjectGuids);
145public bool TryGetProjectPathByGuid(string projectGuid, [NotNullWhen(true)] out string? projectPath) => _cachedProjectAbsolutePathsByGuid.TryGetValue(projectGuid, out projectPath);
Microsoft.Build.NuGetSdkResolver (1)
Microsoft.Build.Tasks.CodeAnalysis (4)
Microsoft.Build.Tasks.Core (76)
RedistList.cs (11)
304if (!s_redistListPathCache.TryGetValue(frameworkDirectory, out string[] results))
357if (s_cachedRedistList.TryGetValue(key, out RedistList redistList))
840assemblyEntries.TryGetValue(hashIndex, out AssemblyEntry dictionaryEntry);
881attributes.TryGetValue("AssemblyName", out string name);
882attributes.TryGetValue("Version", out string version);
883attributes.TryGetValue("PublicKeyToken", out string publicKeyToken);
884attributes.TryGetValue("Culture", out string culture);
885attributes.TryGetValue("InGAC", out string inGAC);
886attributes.TryGetValue("Retargetable", out string retargetable);
887attributes.TryGetValue("IsRedistRoot", out string isRedistRoot);
1099s_subsetListPathCache.TryGetValue(key, out string[] subsetLists);
ResolveSDKReference.cs (8)
363if (!productFamilyNameToSDK.TryGetValue(reference.ProductFamilyName, out HashSet<SDKReference> sdksWithProductFamilyName))
378if (!sdkNameToSDK.TryGetValue(reference.SimpleName, out HashSet<SDKReference> sdksWithSimpleName))
408if (productFamilyNameToSDK.TryGetValue(notCompatibleReference.ProductFamilyName, out HashSet<SDKReference> referenceInProductFamily))
437if (sdkNameToSDK.TryGetValue(notCompatibleReference.SimpleName, out HashSet<SDKReference> referenceWithSameName))
488if (referencesToAddMetadata.TryGetValue(sdkSimpleName, out string value) && value.Equals(rawSdkVersion, StringComparison.InvariantCultureIgnoreCase))
914if (sdks.TryGetValue(SDKName, out ITaskItem sdk))
1264if (!String.IsNullOrEmpty(TargetPlatform) && !String.Equals(targetPlatformIdentifier, TargetPlatform) && (!PlatformAliases.TryGetValue(TargetPlatform, out string platform) || !String.Equals(targetPlatformIdentifier, platform, StringComparison.OrdinalIgnoreCase)))
1530if (FrameworkIdentitiesFromManifest.TryGetValue(frameworkIdentityKey, out string frameworkIdentityValue))
Microsoft.Build.Tasks.Git (4)
Microsoft.Build.Utilities.Core (20)
ToolLocationHelper.cs (16)
894if (s_cachedTargetPlatformReferences.TryGetValue(cacheKey, out string[] targetPlatformReferences))
963if (s_cachedExtensionSdkReferences.TryGetValue(cacheKey, out string[] extensionSdkReferences))
979if (matchingSdk.ExtensionSDKs.TryGetValue(extensionSdkMoniker, out string extensionSdkPath)
981(s_cachedExtensionSdks.TryGetValue(extensionDiskRoots, out matchingSdk)
982&& matchingSdk.ExtensionSDKs.TryGetValue(extensionSdkMoniker, out extensionSdkPath)))
1163if (!matchingSdk.Platforms.TryGetValue(platformKey, out platformManifestLocation))
1422if (!s_vsInstallFolders.TryGetValue(versionRange, out vsInstallFolders))
2229if (s_cachedReferenceAssemblyPaths.TryGetValue(referenceAssemblyCacheKey, out IList<string> referenceAssemblies))
2284&& s_cachedTargetFrameworkDisplayNames.TryGetValue(targetFrameworkDirectory, out displayName))
2295if (s_cachedTargetFrameworkDisplayNames.TryGetValue(targetFrameworkDirectory, out displayName))
2464if (!s_cachedTargetPlatforms.TryGetValue(cachedTargetPlatformsKey, out IEnumerable<TargetPlatformSDK> collection))
2480if (!s_cachedExtensionSdks.TryGetValue(cachedExtensionSdksKey, out TargetPlatformSDK extensionSdk))
2633if (targetPlatformSDK == null && !platformSDKs.TryGetValue(platformSDKKey, out targetPlatformSDK))
2753if (targetPlatformSDK == null && !platformMonikers.TryGetValue(platformSDKKey, out targetPlatformSDK))
3102if (s_chainedReferenceAssemblyPath.TryGetValue(path, out string cachedPath))
3678foundInCache = s_cachedHighestFrameworkNameForTargetFrameworkIdentifier.TryGetValue(key, out highestFrameworkName);
Microsoft.CodeAnalysis (120)
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))
1652if (_typeSpecSignatureIndex.TryGetValue(typeReference, out result))
3062if (!_deterministic && isSmallBody && _smallMethodBodies.TryGetValue(smallBodyKey, out bodyOffset))
4311return _index.TryGetValue(item, out index);
4338return _index.TryGetValue(item, out index);
4361if (_instanceIndex.TryGetValue(item, out index))
4365if (_structuralIndex.TryGetValue(item, out index))
Microsoft.CodeAnalysis.Analyzers (64)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
233if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
270_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
326if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
343if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
480if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
507if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
519if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
549if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
616if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.AnalyzerUtilities (87)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
233if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
270_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
326if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
343if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
480if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
507if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
519if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
549if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
616if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.CodeStyle (59)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
233if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
270_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
326if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
343if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
480if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
507if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
519if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
549if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
616if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (186)
FlowAnalysis\NullableWalker_Patterns.cs (17)
308var labelResult = labelStateMap.TryGetValue(label.Label, out var s1) ? s1 : (state: UnreachableState(), believedReachable: false);
314var afterSwitchState = labelStateMap.TryGetValue(node.BreakLabel, out var stateAndReachable) ? stateAndReachable.state : UnreachableState();
425bool found = nodeStateMap.TryGetValue(dagNode, out var nodeStateAndBelievedReachable);
442(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable();
542bool foundTemp = tempMap.TryGetValue(test.Input, out var slotAndType);
627var foundTemp = tempMap.TryGetValue(tempSource, out var tempSlotAndType);
683if (tempMap.TryGetValue(output, out var targetSlotAndType))
690(int inputSlot, TypeSymbol inputType) = tempMap.TryGetValue(evaluation.Input, out var slotAndType) ? slotAndType : throw ExceptionUtilities.Unreachable();
829if (reinferredPropertyMap.TryGetValue(e, out PropertySymbol property))
849if (originalInputMap.TryGetValue(inputSlot, out var expression))
857if (tempMap.TryGetValue(output, out var outputSlotAndType))
892if (nodeStateMap.TryGetValue(node, out var stateAndReachable))
930if (nodeStateMap.TryGetValue(node, out var stateAndReachable))
1086labelStateMap.TryGetValue(node.DefaultLabel, out var defaultLabelState) &&
1239=> !arm.Pattern.HasErrors && labelStateMap.TryGetValue(arm.Label, out var labelState) ? labelState.state : UnreachableState();
1255var trueState = labelStateMap.TryGetValue(node.IsNegated ? node.WhenFalseLabel : node.WhenTrueLabel, out var s1) ? s1.state : UnreachableState();
1256var falseState = labelStateMap.TryGetValue(node.IsNegated ? node.WhenTrueLabel : node.WhenFalseLabel, out var s2) ? s2.state : UnreachableState();
Lowering\ClosureConversion\ClosureConversion.cs (10)
635if (proxies.TryGetValue(framePointer, out proxyField))
703proxies.TryGetValue(_innermostFramePointer, out oldInnermostFrameProxy);
762if (proxies.TryGetValue(symbol, out proxy))
770if (!_parameterMap.TryGetValue(parameter, out parameterToUse))
837if (_parameterMap.TryGetValue(node.ParameterSymbol, out replacementParameter))
1168if (_frames.TryGetValue(node, out var frame))
1230if (_frames.TryGetValue(node, out var frame))
1304if (_frames.TryGetValue(node, out var frame))
1321if (_frames.TryGetValue(node, out var frame))
1592_framePointers.TryGetValue(translatedLambdaContainer, out _innermostFramePointer);
Symbols\Source\SourceMemberContainerSymbol.cs (25)
1402if (GetTypeMembersDictionary().TryGetValue(name, out members))
1453if (conflictDict.TryGetValue(key, out other))
1627if (GetMembersByName().TryGetValue(name.AsMemory(), out members))
1708return GetEarlyAttributeDecodingMembersDictionary().TryGetValue(name.AsMemory(), out result) ? result : ImmutableArray<Symbol>.Empty;
2223Symbol? lastSym = typesByName?.TryGetValue(name, out var types) == true ? types.FirstOrDefault() : null;
2321if (methodsBySignature.TryGetValue(conversion, out var previousMethod))
2333if (conversionsAsMethods.TryGetValue(method, out var previousConversion))
2342if (methodsBySignature.TryGetValue(method, out var previousMethod))
2535if (indexersBySignature.TryGetValue(indexer, out var prevIndexerBySignature))
2644if (membersByName.TryGetValue(pair.Key, out var members))
2964if (membersByName.TryGetValue(operatorName1.AsMemory(), out ImmutableArray<Symbol> candidates))
3174if (instanceMap.TryGetValue(tOriginal, out var oldInstance))
3320if (membersByName.TryGetValue(name, out membersForName))
4184if (!membersBySignature.TryGetValue(symbol, out var prev))
4569foreach (var symbol in membersByName.TryGetValue(accessorName.AsMemory(), out var members) ? members : [])
4608foreach (var symbol in membersByName.TryGetValue(accessorName.AsMemory(), out var members) ? members : [])
5191if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingDeconstructMethod))
5239if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingConstructor))
5292if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingPrintMembersMethod))
5363if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingToStringMethod))
5423if (!memberSignatures.TryGetValue(targetProperty, out var existingMember)
5424&& !fieldsByName.TryGetValue(param.Name, out existingMember))
5522if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingHashCodeMethod))
5552if (!memberSignatures.TryGetValue(targetProperty, out Symbol? existingEqualityContractProperty))
5621if (!memberSignatures.TryGetValue(targetMethod, out Symbol? existingEqualsMethod))
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (11)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
Microsoft.CodeAnalysis.Extensions.Package (2)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (2)
Microsoft.CodeAnalysis.Features (103)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (9)
1204if (!lazyActiveOrMatchedLambdas.TryGetValue(oldEnclosingLambdaBody, out var lambda))
1669if (activeOrMatchedLambdas.TryGetValue(oldLambdaBody, out var info))
1813if (lambdaInfos.TryGetValue(oldParentLambdaBody, out var lambdaInfo) && !lambdaInfo.BodyMap.Forward.IsEmpty())
3678if (!constructorEdits.TryGetValue(newType, out var constructorEdit))
4074if (!deletedTypes.TryGetValue(key, out var indices))
4104if (deletedTypes.TryGetValue((newType.Name, newType.Arity), out var deletedTypeIndices) && deletedTypeIndices.Count > 0)
6384if (capturesIndex.TryGetValue(VariableCaptureKey.Create(variable, liftingPrimaryConstructor), out var newCaptureIndex))
6585!oldParameterCaptures.TryGetValue(oldParameterKey, out oldCaptureIndex))
6597!oldLocalCaptures.TryGetValue(mappedOldSyntax, out oldCaptureIndex))
Microsoft.CodeAnalysis.NetAnalyzers (71)
Microsoft.CodeAnalysis.Razor.Compiler (27)
Microsoft.CodeAnalysis.ResxSourceGenerator (52)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
233if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
270_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
326if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
343if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
480if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
507if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
519if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
549if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
616if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.Scripting (12)
Microsoft.CodeAnalysis.VisualBasic (30)
Microsoft.CodeAnalysis.Workspaces (132)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
233if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
270_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
326if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
343if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
480if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
507if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
519if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
549if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
616if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Microsoft.CodeAnalysis.Workspaces.MSBuild (10)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.CSharp (17)
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.Diagnostics.DataContractReader (4)
Microsoft.Diagnostics.DataContractReader.Contracts (22)
Microsoft.Diagnostics.DataContractReader.Legacy (4)
Microsoft.DotNet.ApiCompatibility (8)
Microsoft.DotNet.ApiSymbolExtensions (4)
Microsoft.DotNet.Build.Tasks.Installers (11)
src\CreateWixBuildWixpack.cs (11)
109if (_defineConstantsDictionary.TryGetValue("ProjectDir", out _wixprojDir))
112if (_defineConstantsDictionary.TryGetValue("ProjectPath", out var projectPath))
260if (_defineConstantsDictionary.TryGetValue("ProjectPath", out var projectPath))
278if (_defineConstantsDictionary.TryGetValue("TargetPath", out var targetPath))
488if (_defineConstantsDictionary.TryGetValue("InstallerPlatform", out var installerPlatform))
702if (_systemVariablesDictionary.TryGetValue(varName.Substring(4), out var varValue))
719if (_defineConstantsDictionary.TryGetValue(varName, out var varValue) ||
720_defineVariablesDictionary.TryGetValue(varName, out varValue))
987_defineVariablesDictionary.TryGetValue(varName, out actualValue);
992_systemVariablesDictionary.TryGetValue(varName, out actualValue);
998_defineConstantsDictionary.TryGetValue(varName, out actualValue);
Microsoft.DotNet.Build.Tasks.Packaging (28)
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
Microsoft.DotNet.Build.Tasks.Workloads (2)
Microsoft.DotNet.Cli.CommandLine (2)
Microsoft.DotNet.Cli.Definitions (3)
Microsoft.DotNet.Cli.Utils (1)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.HotReload.Watch (8)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.PackageTesting (8)
Microsoft.DotNet.PackageValidation (4)
Microsoft.DotNet.ProjectTools (1)
Microsoft.DotNet.SharedFramework.Sdk (11)
Microsoft.DotNet.SourceBuild.Tasks (1)
Microsoft.DotNet.TemplateLocator (12)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.AI (6)
Microsoft.Extensions.AI.Abstractions (10)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.NLP (4)
Microsoft.Extensions.AI.Evaluation.Safety (6)
Microsoft.Extensions.AI.OpenAI (9)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (5)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (7)
Microsoft.Extensions.Configuration.CommandLine (2)
Microsoft.Extensions.DataIngestion.Abstractions (2)
Microsoft.Extensions.DependencyInjection (11)
Microsoft.Extensions.DependencyModel (4)
Microsoft.Extensions.Diagnostics (7)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (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 (3)
Microsoft.Extensions.Logging.MSBuild (1)
Microsoft.Extensions.Options.SourceGeneration (5)
Microsoft.Extensions.ServiceDiscovery.Dns (5)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Validation (1)
Microsoft.Extensions.VectorData.Abstractions (3)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
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.EntryPoints (8)
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 (45)
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 (15)
Microsoft.NET.Build.Containers (6)
Microsoft.NET.Build.Extensions.Tasks (10)
Microsoft.NET.Build.Tasks (63)
DependencyContextBuilder.cs (15)
358var name = referenceNameToRealName.TryGetValue(dependency.Name, out var realName) ? realName : dependency.Name;
359if (libraries.TryGetValue(name, out var dep))
385if (lib.Library.Dependencies.All(d => !libraries.TryGetValue(d.Name, out var dependency) || dependency.Dependents.Count > 1))
391if (libraries.TryGetValue(dependency.Name, out ModifiableRuntimeLibrary value))
399if (libraries.TryGetValue(dependent, out var dep))
561if (_dependencyLibraries.TryGetValue(dependencyName, out var dependencyLibrary))
667if (_resolvedNuGetFiles != null && _resolvedNuGetFiles.TryGetValue(library.Name, out var resolvedNuGetFiles))
742else if (_compileReferences != null && _compileReferences.TryGetValue(library.Name, out var compileReferences))
775if (_libraryDependencies.TryGetValue(library.Name, out libraryDependencies))
779if (_dependencyLibraries.TryGetValue(dependency.Name, out var libraryDependency))
862if (_referenceProjectInfos?.TryGetValue(fullProjectPath, out referenceProjectInfo) != true ||
888if (_dependencyLibraries.TryGetValue(NetCorePlatformLibrary, out var netCoreDependencyLibrary))
923if (_dependencyLibraries.TryGetValue(packageToFilter.Id, out var library))
942if (!ReferenceLibraryNames.TryGetValue(reference, out string name))
978_filteredPackages?.TryGetValue(pkg, out runtimeStoreManifestName);
Microsoft.NET.HostModel (2)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (6)
Microsoft.NET.Sdk.Publish.Tasks (4)
Microsoft.NET.Sdk.Razor.Tasks (2)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (49)
Microsoft.NET.Sdk.WorkloadManifestReader (12)
Microsoft.NET.StringTools (1)
Microsoft.Private.Windows.Core (5)
Microsoft.TemplateEngine.Cli (7)
Microsoft.TemplateEngine.Core (5)
Microsoft.TemplateEngine.Edge (27)
Settings\ComponentManager.cs (10)
72if (!_componentIdsByType.TryGetValue(typeof(T), out HashSet<Guid> ids))
74if (_settings.ComponentTypeToGuidList.TryGetValue(typeof(T).AssemblyQualifiedName, out ids))
140if (ComponentCache.TryGetValue(typeof(T), out Dictionary<Guid, object> typeCache) && typeCache != null
141&& typeCache.TryGetValue(id, out object resolvedComponent) && resolvedComponent != null && resolvedComponent is T t)
147if (_componentIdToAssemblyQualifiedTypeName.TryGetValue(id, out string assemblyQualifiedName))
220if (!_componentIdsByType.TryGetValue(interfaceType, out HashSet<Guid> idsForInterfaceType))
227if (_settings.ComponentTypeToGuidList.TryGetValue(interfaceType.FullName, out HashSet<Guid> idsFromOldStyleKey))
232if (!_settings.ComponentTypeToGuidList.TryGetValue(interfaceType.AssemblyQualifiedName, out HashSet<Guid> idsForInterfaceTypeForSettings))
280if (!ComponentCache.TryGetValue(type, out Dictionary<Guid, object> typeCache))
287if (!_componentIdsByType.TryGetValue(type, out HashSet<Guid> ids))
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (5)
Microsoft.TemplateEngine.Utils (25)
InMemoryFileSystem.cs (20)
51if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
75if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
84if (!currentDir.Files.TryGetValue(parts[parts.Length - 1], out FileSystemFile targetFile))
118if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
154if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
187if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
267if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
349if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
449if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
475if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
505if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
514if (!currentDir.Files.TryGetValue(parts[parts.Length - 1], out FileSystemFile targetFile))
563if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
572if (!currentDir.Files.TryGetValue(parts[parts.Length - 1], out FileSystemFile targetFile))
595if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
604if (!currentDir.Files.TryGetValue(parts[parts.Length - 1], out FileSystemFile targetFile))
626if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
635if (!currentDir.Files.TryGetValue(parts[parts.Length - 1], out FileSystemFile targetFile))
657if (!currentDir.Directories.TryGetValue(parts[i], out FileSystemDirectory dir))
666if (!currentDir.Files.TryGetValue(parts[parts.Length - 1], out FileSystemFile targetFile))
Microsoft.TemplateSearch.Common (1)
Microsoft.TestPlatform.CommunicationUtilities (1)
Microsoft.TestPlatform.CrossPlatEngine (7)
Microsoft.TestPlatform.Filter.Source (1)
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Microsoft.VisualBasic.Core (7)
Microsoft.VisualStudio.TestPlatform.Common (11)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (4)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (13)
Microsoft.VisualStudio.TestPlatform.ObjectModel (36)
Microsoft.Web.XmlTransform (3)
Microsoft.Win32.SystemEvents (4)
Mono.Cecil (49)
Mono.Cecil\AssemblyReader.cs (12)
936 if (!cache.TryGetValue (key, out mapped)) {
1011 if (!metadata.ClassLayouts.TryGetValue (rid, out class_layout))
1334 if (!metadata.FieldRVAs.TryGetValue (rid, out rva))
1419 if (!metadata.FieldLayouts.TryGetValue (rid, out offset))
1599 if (!metadata.Semantics.TryGetValue (method.token.RID, out row))
1855 if (!metadata.PInvokes.TryGetValue (rid, out row))
1984 if (!ranges.TryGetValue (owner, out slots)) {
2430 if (!metadata.Constants.TryGetValue (owner.MetadataToken, out row))
2615 if (!metadata.FieldMarshals.TryGetValue (owner.MetadataToken, out signature))
3166 metadata.CustomDebugInformations.TryGetValue (token, out infos);
3176 if (!metadata.CustomDebugInformations.TryGetValue (provider.MetadataToken, out rows))
3187 if (!metadata.CustomDebugInformations.TryGetValue (provider.MetadataToken, out rows))
Mono.Cecil\MetadataSystem.cs (13)
134 return primitive_value_types.TryGetValue (type.Name, out primitive_data);
238 return NestedTypes.TryGetValue (type.token.RID, out mapping);
248 return ReverseNestedTypes.TryGetValue (type.token.RID, out declaring);
258 return Interfaces.TryGetValue (type.token.RID, out mapping);
273 return Properties.TryGetValue (type.token.RID, out range);
283 return Events.TryGetValue (type.token.RID, out range);
288 return GenericParameters.TryGetValue (owner.MetadataToken, out ranges);
293 return CustomAttributes.TryGetValue (owner.MetadataToken, out ranges);
298 return SecurityDeclarations.TryGetValue (owner.MetadataToken, out ranges);
303 return GenericConstraints.TryGetValue (generic_parameter.token.RID, out mapping);
313 return Overrides.TryGetValue (method.token.RID, out mapping);
331 return LocalScopes.TryGetValue (method.MetadataToken.RID, out scopes);
349 return StateMachineMethods.TryGetValue (method.MetadataToken.RID, out rid);
Mono.Cecil.Mdb (7)
Mono.Cecil.Pdb (15)
MSBuild (4)
MSBuild.Coordinator (3)
NuGet.Build.Tasks (2)
NuGet.Build.Tasks.Pack (6)
NuGet.CommandLine.XPlat (5)
NuGet.Commands (58)
RestoreCommand\DependencyGraphResolver.cs (13)
368if (!resolvedDependencyGraphItems.TryGetValue(currentLibraryDependencyIndex, out ResolvedDependencyGraphItem? resolvedDependencyGraphItem))
400if (!resolvedDependencyGraphItems.TryGetValue(childLibraryDependencyIndex, out ResolvedDependencyGraphItem? childResolvedDependencyGraphItem))
653if (nodesById.TryGetValue(versionConflict.Key, out GraphNode<RemoteResolveResult>? selected))
672if (!nodesById.TryGetValue(downgrade.FromParentLibraryRangeIndex, out GraphNode<RemoteResolveResult>? fromParentNode)
673|| !nodesById.TryGetValue(downgrade.ToParentLibraryRangeIndex, out GraphNode<RemoteResolveResult>? toParentNode)
674|| !resolvedDependencyGraphItems.TryGetValue(downgrade.ToLibraryDependencyIndex, out ResolvedDependencyGraphItem? toResolvedDependencyGraphItem))
719|| !nodesById.TryGetValue(resolvedDependencyGraphItem.LibraryRangeIndex, out GraphNode<RemoteResolveResult>? currentNode))
727if (!nodesById.TryGetValue(parentLibraryRangeIndex, out GraphNode<RemoteResolveResult>? parentNode))
981if (evictions.TryGetValue(currentDependencyGraphItem.LibraryRangeIndex, out (LibraryRangeIndex[], LibraryDependencyIndex, LibraryDependencyTarget) eviction))
995if (!resolvedDependencyGraphItems.TryGetValue(currentDependencyGraphItem.LibraryDependencyIndex, out ResolvedDependencyGraphItem? chosenResolvedItem))
1333if (resolvedDependencyGraphItems.TryGetValue(childLibraryDependencyIndex, out ResolvedDependencyGraphItem? childResolvedDependencyGraphItem)
1361&& pinnedPackageVersions?.TryGetValue(childLibraryDependencyIndex, out pinnedVersionRange) == true;
1431if (string.IsNullOrEmpty(frameworkRuntimeDefinition.RuntimeIdentifier) || !graphsByTargetAlias.TryGetValue(frameworkRuntimeDefinition.TargetAlias, out RestoreTargetGraph? restoreTargetGraphForTargetFramework))
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (13)
49!parentPackageSpecificNoWarn.TryGetValue(targetGraph.TargetAlias, out var parentPackageSpecificNoWarnForFramework))
169if (AddToSeen(seen, node) && dependencyMapping.TryGetValue(node.Id, out var nodeLookUp))
192if (packageNoWarn.TryGetValue(nodeId, out var noWarnCodes))
242if (!warningPropertiesCache.TryGetValue(key, out var frameworkCollection))
250if (!frameworkCollection.TryGetValue(framework, out var collection))
272if (!seen.TryGetValue(id, out var visitedProps))
404if (!merged.TryGetValue(id, out var codes))
557if (!result.TryGetValue(framework, out var frameworkCollection))
564if (!frameworkCollection.TryGetValue(libraryId, out var codes))
605if (!result.TryGetValue(libraryId, out var codes))
785if (otherPackages.TryGetValue(pair.Key, out var otherCodes))
845if (!package.TryGetValue(pair.Key, out var codes))
903PackageSpecific.TryGetValue(libraryId, out var codes) &&
NuGet.Common (1)
NuGet.Configuration (24)
PackageSource\PackageSourceProvider.cs (10)
438if (!packageSourceLookup.TryGetValue(packageSource.Name, out var previouslyAddedSource))
647if (settingsLookup.TryGetValue(name, out var sourceSetting))
725packageSources.TryGetValue(source.Name, out var sourceToUpdate);
957var existingSourceIsEnabled = existingDisabledSourcesLookup == null || existingDisabledSourcesLookup.TryGetValue(source.Name, out existingDisabledSourceItem);
959if (existingSettingsLookup.TryGetValue(source.Name, out existingSourceItem))
963existingCredentialsLookup?.TryGetValue(source.Name, out existingCredentialsItem);
995if (existingDisabledSourcesLookup != null && existingDisabledSourcesLookup.TryGetValue(sourceItem.Value.Key, out var existingDisabledSourceItem))
1001if (existingsourceCredentialsLookup != null && existingsourceCredentialsLookup.TryGetValue(sourceItem.Value.Key, out var existingSourceCredentialItem))
1044if (existingSettingsLookup.TryGetValue(source.Name, out existingSourceItem))
1099if (existingSettingsLookup.TryGetValue(setting.Key, out var previouslyAddedSetting) &&
NuGet.DependencyResolver.Core (5)
NuGet.Frameworks (27)
FrameworkNameProvider.cs (26)
378if (_equivalentFrameworks.TryGetValue(current, out HashSet<NuGetFramework>? currentEquivalent))
418if (_equivalentFrameworks.TryGetValue(current!, out HashSet<NuGetFramework>? curFrameworks))
455if (_portableOptionalFrameworks.TryGetValue(profile, out HashSet<NuGetFramework>? frameworks))
471if (_portableFrameworks.TryGetValue(profile, out HashSet<NuGetFramework>? tmpFrameworks))
481if (_portableOptionalFrameworks.TryGetValue(profile, out HashSet<NuGetFramework>? optional))
526if (_portableCompatibilityMappings.TryGetValue(profile, out HashSet<FrameworkRange>? entries))
573if (_equivalentFrameworks.TryGetValue(framework, out HashSet<NuGetFramework>? eqFrameworks))
587if (_equivalentProfiles.TryGetValue(fw.Framework, out Dictionary<string, HashSet<string>>? eqProfiles))
589if (eqProfiles.TryGetValue(fw.Profile, out HashSet<string>? matchingProfiles))
737if (!_compatibilityMappings.TryGetValue(mapping.TargetFrameworkRange.Min.Framework, out HashSet<OneWayCompatibilityMappingEntry>? entries))
754if (!_subSetFrameworks.TryGetValue(mapping.Value, out HashSet<string>? subSets))
779if (!_equivalentProfiles.TryGetValue(frameworkIdentifier, out Dictionary<string, HashSet<string>>? profileMappings))
785if (!profileMappings.TryGetValue(profile1, out HashSet<string>? innerMappings1))
791if (!profileMappings.TryGetValue(profile2, out HashSet<string>? innerMappings2))
826if (!_equivalentFrameworks.TryGetValue(next, out HashSet<NuGetFramework>? eqFrameworks))
912if (!_portableFrameworks.TryGetValue(pair.Key, out HashSet<NuGetFramework>? frameworks))
933if (!_portableOptionalFrameworks.TryGetValue(pair.Key, out HashSet<NuGetFramework>? frameworks))
953if (!_portableCompatibilityMappings.TryGetValue(mapping.Key, out HashSet<FrameworkRange>? entries))
981if (_compatibilityMappings.TryGetValue(framework.Framework, out HashSet<OneWayCompatibilityMappingEntry>? entries))
993if (_subSetFrameworks.TryGetValue(frameworkIdentifier, out HashSet<string>? values))
1041if (!precedence.TryGetValue(x.Framework, out xIndex))
1047if (!precedence.TryGetValue(y.Framework, out yIndex))
1059if (!_shortNameRewrites.TryGetValue(framework, out NuGetFramework? result))
1070if (!_fullNameRewrites.TryGetValue(framework, out NuGetFramework? result))
1149if (_subSetFrameworks.TryGetValue(framework.Framework, out HashSet<string>? subset))
1157if (superSetFrameworks.TryGetValue(framework.Framework, out HashSet<string>? superset))
NuGet.PackageManagement (11)
NuGet.Packaging (18)
NuGet.ProjectModel (7)
NuGet.Protocol (13)
NuGet.Resolver (2)
NuGet.Versioning (2)
PresentationBuildTasks (14)
PresentationCore (40)
PresentationFramework (87)
ReachFramework (5)
RepoTasks (2)
Roslyn.Diagnostics.Analyzers (52)
src\b310f676f7308b7f\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (10)
233if (!_symbolWritesInsideBlockRangeMap.TryGetValue((firstBlockOrdinal, lastBlockOrdinal), out var writesInBlockRange))
270_reachingDelegateCreationTargets.TryGetValue(invocation.Instance, out var targets))
326if (_lambdaTargetsToAccessingCfgMap.TryGetValue(flowAnonymousFunctionOperation, out var lambdaAccessingCfg))
343if (_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var localFunctionAccessingCfg))
480if (!_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
491if (_lValueFlowCapturesMap.TryGetValue(captureId, out var captures))
507if (!_localFunctionTargetsToAccessingCfgMap.TryGetValue(localFunction, out var accessingCfg))
519if (!_lambdaTargetsToAccessingCfgMap.TryGetValue(lambda, out var accessingCfg))
549if (!arg.self._reachingDelegateCreationTargets.TryGetValue(symbolWrite, out var targetsBuilderForSymbolWrite))
616if (_reachingDelegateCreationTargets.TryGetValue(write, out var targetsBuilder))
Roslyn.Diagnostics.CSharp.Analyzers (10)
rzc (13)
sdk-tasks (1)
Security.TransportSecurity.IntegrationTests (2)
SelectTests (9)
System.CodeDom (2)
System.CommandLine (26)
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.Console (1)
System.Data.Common (24)
System.Data.Odbc (16)
System.Data.OleDb (12)
System.Diagnostics.DiagnosticSource (4)
System.Diagnostics.Process (6)
System.DirectoryServices.AccountManagement (10)
System.DirectoryServices.Protocols (2)
System.Drawing.Primitives (3)
System.Formats.Nrbf (4)
System.Formats.Tar (4)
System.IO.Compression (1)
System.IO.Packaging (18)
System.IO.Pipes (1)
System.Linq.AsyncEnumerable (2)
System.Linq.Expressions (27)
System.Linq.Parallel (7)
System.Linq.Queryable (2)
System.Net.Http (13)
System.Net.HttpListener (2)
System.Net.Mail (12)
System.Net.NameResolution (2)
System.Net.NetworkInformation (1)
System.Net.Primitives (1)
System.Net.Security (2)
System.ObjectModel (3)
System.Private.CoreLib (62)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (13)
75if (opcodeTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal))
93if (taskTab != null && taskTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal))
116if (keywordTab != null && keywordTab.TryGetValue(value, out string? prevName) && !name.Equals(prevName, StringComparison.Ordinal))
289if (stringTab.TryGetValue(prefixedEventName, out string? msg))
319if (!channelTab.TryGetValue((int)channel, out ChannelInfo? info))
582if (stringTab.TryGetValue(key, out string? prevValue) && !prevValue.Equals(value))
607stringTab.TryGetValue(key, out value);
633if (channelTab == null || !channelTab.TryGetValue((int)channel, out ChannelInfo? info))
647if (!channelTab.TryGetValue((int)channel, out info))
665if (!taskTab.TryGetValue((int)task, out string? ret))
698if (opcodeTab == null || !opcodeTab.TryGetValue((int)opcode, out string? ret))
719if ((keywordTab == null || !keywordTab.TryGetValue(bit, out keyword)) &&
889if (perEventByteArrayArgIndices.TryGetValue(evtName, out List<int>? byteArrArgIndices))
System.Private.CoreLib.Generators (6)
System.Private.DataContractSerialization (31)
System.Private.Windows.Core (5)
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.InteropServices.JavaScript (4)
System.Runtime.Serialization.Schema (7)
System.Security.AccessControl (1)
System.Security.Cryptography (14)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (11)
System.ServiceModel.NetFramingBase (5)
System.ServiceModel.Primitives (30)
Internals\System\Xml\XmlMtomReader.cs (12)
205if (!header.Parameters.TryGetValue(MtomGlobals.TypeParam, out type) || MtomGlobals.XopType != type)
208if (!header.Parameters.TryGetValue(MtomGlobals.BoundaryParam, out boundary))
213if (!header.Parameters.TryGetValue(MtomGlobals.StartParam, out start))
216if (!header.Parameters.TryGetValue(MtomGlobals.StartInfoParam, out startInfo))
230if (!header.Parameters.TryGetValue(MtomGlobals.CharsetParam, out charset)
284if (!header.Parameters.TryGetValue(MtomGlobals.TypeParam, out rootType)
417if (_mimeParts != null && _mimeParts.TryGetValue(contentID, out part))
2238if (headers.TryGetValue(Constants.ContentType, out header))
2249if (headers.TryGetValue(Constants.ContentID, out header))
2260if (headers.TryGetValue(Constants.ContentTransferEncoding, out header))
2271if (headers.TryGetValue(Constants.MimeVersion, out header))
2315if (headers.TryGetValue(header.Name, out existingHeader))
System.ServiceModel.Primitives.Tests (3)
System.Speech (6)
System.Text.Encoding.CodePages (2)
System.Text.Json (19)
System.Text.Json.SourceGeneration (8)
System.Text.RegularExpressions (16)
System.Text.RegularExpressions.Generator (7)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (4)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (75)
System.Windows.Forms.Design (82)
System.Windows.Forms.Primitives (5)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Input.Manipulations (1)
System.Xaml (47)
TypeScriptApiCompat (1)
vstest.console (14)
vstest.console.arm64 (14)
WindowsFormsIntegration (5)