Implemented interface members:
21 references to TryGetValue
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
356if (projectDiagnosticBuilder.TryGetValue(task.Key, out var previousResult))
Microsoft.CodeAnalysis (8)
CommandLine\AnalyzerConfigSet.cs (4)
566if (!_values.TryGetValue(section.Name, out var sectionDict)) 572_duplicates.TryGetValue(section.Name, out var duplicateDict); 580bool keyInSection = sectionDict.TryGetValue(key, out var sectionValue); 583bool keyDuplicated = !keyInSection && duplicateDict?.TryGetValue(key, out duplicateValue) == true;
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
79if (builder.TryGetValue(path, out var value))
Emit\CommonPEModuleBuilder.cs (1)
1005if (!builder.TryGetValue(hotReloadException.ContainingNamespace, out var existingTypes))
RuleSet\RuleSetProcessor.cs (1)
117if (specificOptions.TryGetValue(ruleId, out existingAction))
SourceGeneration\SyntaxStore.cs (1)
164if (_syntaxTimes.TryGetValue(node, out var adjustment))
Microsoft.CodeAnalysis.CSharp (6)
Binder\DecisionDagBuilder.cs (1)
854!existingState.RemainingValues.All(kv => newRemainingValues.TryGetValue(kv.Key, out IValueSet? values) && kv.Value.Equals(values)))
BoundTree\NullabilityRewriter.cs (4)
145if (_remappedSymbols.TryGetValue(param, out var updatedParam)) 158if (!_remappedSymbols.TryGetValue(lambda.ContainingSymbol, out Symbol? updatedContaining) && updatedDelegateType is null) 188if (_remappedSymbols.TryGetValue(local, out var updatedLocal)) 195if (!_remappedSymbols.TryGetValue(local.ContainingSymbol, out Symbol? updatedContaining) && !updatedType.HasValue)
Compilation\SyntaxAndDeclarationManager.cs (1)
654if (lastComputedMemberNamesMap.TryGetValue(oldTree, out var lastComputedMemberNames))
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
197if (!diagnosticsMapBuilder.TryGetValue(targetSymbol, out var diagnosticsForSymbol))
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\HostDiagnosticAnalyzers.cs (1)
108if (builder.TryGetValue(displayName, out var existing))
Microsoft.VisualStudio.LanguageServices (2)
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (2)
473if (!builder.TryGetValue(diagnosticData.DocumentId, out var diagnosticsPerDocument)) 565if (!builder.TryGetValue(diagnosticData.ProjectId, out var diagnosticsPerProject))
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (2)
412if (!this.TryGetValue(key, out value!)) 487if (this.TryGetValue(key, out value!))