138 implementations of TryGetValue
dotnet-svcutil-lib (1)
GenerateDocumentationAndConfigFiles (5)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Http (4)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.Owin (3)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.Build (12)
Microsoft.Build.Framework (2)
Microsoft.CodeAnalysis (5)
Microsoft.CodeAnalysis.Analyzers (5)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.Extensions.Package (5)
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.Maui.Controls (3)
Microsoft.ML.Core (1)
Microsoft.ML.SearchSpace (3)
Microsoft.ML.TorchSharp (1)
Microsoft.TemplateEngine.Core (1)
PresentationCore (4)
PresentationFramework (2)
Roslyn.Diagnostics.Analyzers (5)
Shared (1)
System.Collections (3)
System.Collections.Immutable (5)
System.Composition.Hosting (1)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.Process (1)
System.Linq.Expressions (1)
System.Net.Http (1)
System.Private.CoreLib (4)
System.Security.Cryptography.Cose (1)
System.ServiceModel.Primitives (1)
System.Speech (1)
System.Text.Json (1)
System.Xaml (2)
694 references to TryGetValue
aspire (2)
Aspire.Dashboard (6)
Aspire.Hosting (16)
Dcp\DcpExecutor.cs (9)
556else if (resource.Metadata.Annotations?.TryGetValue(CustomResource.ServiceProducerAnnotation, out var servicesProducedAnnotationJson) == true)
933sr.Metadata.Annotations?.TryGetValue(CustomResource.ContainerTunnelInstanceName, out var _) is true &&
934sr.Metadata.Annotations?.TryGetValue(CustomResource.ContainerNetworkAnnotation, out var containerNetwork) is true &&
951PrimaryServiceName: r.DcpResource.Metadata.Annotations?.TryGetValue(CustomResource.PrimaryServiceNameAnnotation, out var psn) == true ? psn : null)
1095ResourceName: r.DcpResource.Metadata.Annotations?.TryGetValue(CustomResource.ResourceNameAnnotation, out var resourceName) == true ? resourceName : null,
1096EndpointName: r.DcpResource.Metadata.Annotations?.TryGetValue(CustomResource.EndpointNameAnnotation, out var endpointName) == true ? endpointName : null,
1097TunnelInstanceName: r.DcpResource.Metadata.Annotations?.TryGetValue(CustomResource.ContainerTunnelInstanceName, out var tunnelInstanceName) == true ? tunnelInstanceName : null,
1098ContainerNetworkName: r.DcpResource.Metadata.Annotations?.TryGetValue(CustomResource.ContainerNetworkAnnotation, out var containerNetworkName) == true ? containerNetworkName : null
2505if (resource is Executable exe && exe.Metadata.Annotations.TryGetValue(CustomResource.ResourceReplicaCount, out var value) && int.TryParse(value, CultureInfo.InvariantCulture, out var replicas) && replicas > 1)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Tests (2)
CSharpSyntaxGenerator (3)
datacollector (2)
datacollector.arm64 (2)
dotnet (4)
dotnet-openapi (1)
dotnet-svcutil-lib (7)
dotnet-user-jwts (2)
GenerateDocumentationAndConfigFiles (15)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (12)
19if (!dictionary.TryGetValue(key, out var value))
31if (!dictionary.TryGetValue(key, out var value))
43if (dictionary.TryGetValue(key, out var value))
67if (!dictionary.TryGetValue(key, out var collection))
79if (!dictionary.TryGetValue(key, out var builder))
91if (!dictionary.TryGetValue(key, out var builder))
103if (dictionary.TryGetValue(key, out var set))
123if (!dictionary.TryGetValue(key, out var existingArray))
135if (!dictionary.TryGetValue(key, out var existingArray))
147if (dictionary.TryGetValue(key, out var collection))
186if (dictionary.TryGetValue(key, out var collection))
215if (dictionary.TryGetValue(key, out var collection))
GetDocument.Insider (1)
ILCompiler.Compiler (1)
illink (3)
Microsoft.Analyzers.Local (2)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.Antiforgery (3)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.Abstractions (6)
Microsoft.AspNetCore.Authentication.Certificate (1)
Microsoft.AspNetCore.Authentication.Core (3)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Components (2)
Microsoft.AspNetCore.Components.Endpoints (6)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.Connections.Abstractions (3)
Microsoft.AspNetCore.Cors (2)
Microsoft.AspNetCore.Diagnostics (5)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Microsoft.AspNetCore.HeaderParsing (3)
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.Hosting (8)
Microsoft.AspNetCore.Http (7)
Microsoft.AspNetCore.Http.Abstractions (4)
Microsoft.AspNetCore.HttpLogging (5)
Microsoft.AspNetCore.Identity (4)
Microsoft.AspNetCore.JsonPatch (3)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (3)
Microsoft.AspNetCore.MiddlewareAnalysis (1)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.Core (17)
Microsoft.AspNetCore.Mvc.Cors (1)
Microsoft.AspNetCore.Mvc.Razor (2)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (15)
Microsoft.AspNetCore.OpenApi (11)
Microsoft.AspNetCore.Owin (22)
Microsoft.AspNetCore.Razor.Runtime (1)
Microsoft.AspNetCore.RequestDecompression (1)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Rewrite (5)
Microsoft.AspNetCore.Routing (9)
Microsoft.AspNetCore.Server.HttpSys (6)
Microsoft.AspNetCore.Server.IIS (6)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.TestHost (1)
Microsoft.AspNetCore.Watch.BrowserRefresh (4)
Microsoft.Build (55)
Instance\ProjectInstance.cs (5)
1920_itemDefinitions.TryGetValue(itemType, out itemDefinitionInstance);
1959_targets.TryGetValue(targetName, out targetInstance);
2914if (((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).BeforeTargets.TryGetValue(target, out beforeTargetsForTarget))
2931if (((IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>)this).AfterTargets.TryGetValue(target, out afterTargetsForTarget))
3562linkedProject.ItemDefinitions.TryGetValue(item.ItemType, out ProjectItemDefinition itemTypeDefinition);
Microsoft.Build.Framework (4)
Microsoft.Build.Tasks.Core (9)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.Analyzers (15)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (12)
19if (!dictionary.TryGetValue(key, out var value))
31if (!dictionary.TryGetValue(key, out var value))
43if (dictionary.TryGetValue(key, out var value))
67if (!dictionary.TryGetValue(key, out var collection))
79if (!dictionary.TryGetValue(key, out var builder))
91if (!dictionary.TryGetValue(key, out var builder))
103if (dictionary.TryGetValue(key, out var set))
123if (!dictionary.TryGetValue(key, out var existingArray))
135if (!dictionary.TryGetValue(key, out var existingArray))
147if (dictionary.TryGetValue(key, out var collection))
186if (dictionary.TryGetValue(key, out var collection))
215if (dictionary.TryGetValue(key, out var collection))
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (12)
19if (!dictionary.TryGetValue(key, out var value))
31if (!dictionary.TryGetValue(key, out var value))
43if (dictionary.TryGetValue(key, out var value))
67if (!dictionary.TryGetValue(key, out var collection))
79if (!dictionary.TryGetValue(key, out var builder))
91if (!dictionary.TryGetValue(key, out var builder))
103if (dictionary.TryGetValue(key, out var set))
123if (!dictionary.TryGetValue(key, out var existingArray))
135if (!dictionary.TryGetValue(key, out var existingArray))
147if (dictionary.TryGetValue(key, out var collection))
186if (dictionary.TryGetValue(key, out var collection))
215if (dictionary.TryGetValue(key, out var collection))
Microsoft.CodeAnalysis.CodeStyle (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (12)
19if (!dictionary.TryGetValue(key, out var value))
31if (!dictionary.TryGetValue(key, out var value))
43if (dictionary.TryGetValue(key, out var value))
67if (!dictionary.TryGetValue(key, out var collection))
79if (!dictionary.TryGetValue(key, out var builder))
91if (!dictionary.TryGetValue(key, out var builder))
103if (dictionary.TryGetValue(key, out var set))
123if (!dictionary.TryGetValue(key, out var existingArray))
135if (!dictionary.TryGetValue(key, out var existingArray))
147if (dictionary.TryGetValue(key, out var collection))
186if (dictionary.TryGetValue(key, out var collection))
215if (dictionary.TryGetValue(key, out var collection))
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.Features (12)
Microsoft.CodeAnalysis.NetAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (13)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (12)
19if (!dictionary.TryGetValue(key, out var value))
31if (!dictionary.TryGetValue(key, out var value))
43if (dictionary.TryGetValue(key, out var value))
67if (!dictionary.TryGetValue(key, out var collection))
79if (!dictionary.TryGetValue(key, out var builder))
91if (!dictionary.TryGetValue(key, out var builder))
103if (dictionary.TryGetValue(key, out var set))
123if (!dictionary.TryGetValue(key, out var existingArray))
135if (!dictionary.TryGetValue(key, out var existingArray))
147if (dictionary.TryGetValue(key, out var collection))
186if (dictionary.TryGetValue(key, out var collection))
215if (dictionary.TryGetValue(key, out var collection))
Microsoft.CodeAnalysis.Workspaces (16)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (12)
19if (!dictionary.TryGetValue(key, out var value))
31if (!dictionary.TryGetValue(key, out var value))
43if (dictionary.TryGetValue(key, out var value))
67if (!dictionary.TryGetValue(key, out var collection))
79if (!dictionary.TryGetValue(key, out var builder))
91if (!dictionary.TryGetValue(key, out var builder))
103if (dictionary.TryGetValue(key, out var set))
123if (!dictionary.TryGetValue(key, out var existingArray))
135if (!dictionary.TryGetValue(key, out var existingArray))
147if (dictionary.TryGetValue(key, out var collection))
186if (dictionary.TryGetValue(key, out var collection))
215if (dictionary.TryGetValue(key, out var collection))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Packaging (3)
Microsoft.DotNet.Build.Tasks.Templating (1)
Microsoft.DotNet.HotReload.Watch (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.Evaluation (3)
Microsoft.Extensions.AI.Evaluation.Console (2)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (8)
Microsoft.Extensions.AI.Evaluation.NLP (1)
Microsoft.Extensions.AI.Evaluation.Quality (1)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.AI.Tests (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.FileExtensions (2)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.Features (1)
Microsoft.Extensions.Http.Polly (2)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Maui.Controls (1)
Microsoft.Maui.Controls.SourceGen (1)
Microsoft.Maui.Essentials (1)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML (1)
Microsoft.ML.SearchSpace (2)
Microsoft.NET.Build.Tasks (6)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (5)
Microsoft.TemplateEngine.Cli (2)
Microsoft.TemplateEngine.Core (14)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (11)
Microsoft.TemplateEngine.Utils (1)
Microsoft.TestPlatform.CoreUtilities (2)
Microsoft.TestPlatform.CrossPlatEngine (2)
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Microsoft.VisualStudio.TestPlatform.ObjectModel (6)
Mono.Cecil (1)
MSBuild (5)
NuGet.Build.Tasks.Console (3)
NuGet.Build.Tasks.Pack (4)
NuGet.Commands (25)
NuGet.Common (1)
NuGet.DependencyResolver.Core (1)
NuGet.Frameworks (1)
NuGet.LibraryModel (2)
NuGet.PackageManagement (7)
NuGet.Packaging (6)
NuGet.ProjectModel (1)
NuGet.Protocol (1)
PresentationCore (4)
PresentationFramework (5)
ReachFramework (9)
Roslyn.Diagnostics.Analyzers (15)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (12)
19if (!dictionary.TryGetValue(key, out var value))
31if (!dictionary.TryGetValue(key, out var value))
43if (dictionary.TryGetValue(key, out var value))
67if (!dictionary.TryGetValue(key, out var collection))
79if (!dictionary.TryGetValue(key, out var builder))
91if (!dictionary.TryGetValue(key, out var builder))
103if (dictionary.TryGetValue(key, out var set))
123if (!dictionary.TryGetValue(key, out var existingArray))
135if (!dictionary.TryGetValue(key, out var existingArray))
147if (dictionary.TryGetValue(key, out var collection))
186if (dictionary.TryGetValue(key, out var collection))
215if (dictionary.TryGetValue(key, out var collection))
Shared.Tests (1)
System.ComponentModel.Composition (7)
System.Composition.Hosting (3)
System.Composition.Runtime (2)
System.Composition.TypedParts (2)
System.Diagnostics.DiagnosticSource (8)
System.Drawing.Common (4)
System.Private.CoreLib (4)
System.Resources.Extensions (1)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.Primitives (3)
System.Text.Json (1)
System.Text.Json.SourceGeneration (1)
System.Windows.Forms (1)
System.Xaml (4)
testhost (3)
testhost.arm64 (3)
testhost.x86 (3)
WebPubSubWeb (1)