12 overrides of TryGetValue
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
System.Windows.Forms.Analyzers.CSharp.Tests (1)
101 references to TryGetValue
BuildActionTelemetryTable (8)
ILLink.RoslynAnalyzer (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (21)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (17)
CommandLineTests.cs (17)
10398po.GlobalOptions.TryGetValue("a", out globalA);
10401ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Select((p, _) => { p.GlobalOptions.TryGetValue("a", out var value); return value; }), (spc, value) =>
10408ctx.RegisterSourceOutput(ctx.AnalyzerConfigOptionsProvider.Combine(syntaxTreeInput).Select((p, _) => { p.Left.GetOptions(p.Right).TryGetValue("a", out var value); return value; }), (spc, value) =>
14695Assert.True(globalOptions.TryGetValue("key1", out var keyValue));
14697Assert.False(globalOptions.TryGetValue("key2", out _));
14698Assert.False(globalOptions.TryGetValue("key3", out _));
14699Assert.False(globalOptions.TryGetValue("key4", out _));
14700Assert.False(globalOptions.TryGetValue("key5", out _));
14701Assert.False(globalOptions.TryGetValue("key6", out _));
14702Assert.False(globalOptions.TryGetValue("key7", out _));
14706Assert.True(classOptions.TryGetValue("key1", out keyValue));
14708Assert.False(classOptions.TryGetValue("key2", out _));
14709Assert.False(classOptions.TryGetValue("key3", out _));
14710Assert.True(classOptions.TryGetValue("key4", out keyValue));
14712Assert.False(classOptions.TryGetValue("key5", out _));
14713Assert.False(classOptions.TryGetValue("key6", out _));
14714Assert.False(classOptions.TryGetValue("key7", out _));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Microsoft.CodeAnalysis.Features (6)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Features.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (17)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ContextualOptions (2)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.MetricsReports (3)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Maui.Controls.SourceGen (5)
System.Private.CoreLib.Generators (1)
System.Windows.Forms.Analyzers (1)