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)
94 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) =>
14671Assert.True(globalOptions.TryGetValue("key1", out var keyValue));
14673Assert.False(globalOptions.TryGetValue("key2", out _));
14674Assert.False(globalOptions.TryGetValue("key3", out _));
14675Assert.False(globalOptions.TryGetValue("key4", out _));
14676Assert.False(globalOptions.TryGetValue("key5", out _));
14677Assert.False(globalOptions.TryGetValue("key6", out _));
14678Assert.False(globalOptions.TryGetValue("key7", out _));
14682Assert.True(classOptions.TryGetValue("key1", out keyValue));
14684Assert.False(classOptions.TryGetValue("key2", out _));
14685Assert.False(classOptions.TryGetValue("key3", out _));
14686Assert.True(classOptions.TryGetValue("key4", out keyValue));
14688Assert.False(classOptions.TryGetValue("key5", out _));
14689Assert.False(classOptions.TryGetValue("key6", out _));
14690Assert.False(classOptions.TryGetValue("key7", out _));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
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)
System.Windows.Forms.Analyzers (1)