Implemented interface member:
method
TryGetValue
Roslyn.Utilities.IBidirectionalMap<TKey, TValue>.TryGetValue(TKey, out TValue)
10 references to TryGetValue
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.Parsers.cs (5)
70
=> (SpacePlacementWithinParentheses)ParseEditorConfigFlags(list, static s => s_spacingWithinParenthesisOptionsEditorConfigMap.
TryGetValue
(s, out var v) ? (int)v : 0);
79
static s => s_newLineOptionsEditorConfigMap.
TryGetValue
(s, out var v) ? (int)v : s_legacyNewLineOptionsEditorConfigMap.
TryGetValue
(s, out v) ? (int)v : 0,
93
=> s_binaryOperatorSpacingOptionsEditorConfigMap.
TryGetValue
(binaryOperatorSpacingValue.Trim(), out var value) ? value : BinaryOperatorSpacingOptionsInternal.Single;
99
=> s_labelPositionOptionsEditorConfigMap.
TryGetValue
(labelIndentationValue.Trim(), out var value) ? value : LabelPositionOptionsInternal.NoIndent;
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (2)
296
if (analyzerMap.
TryGetValue
(analyzerId, out var analyzer))
304
if (analyzerMap.
TryGetValue
(analyzerId, out var analyzer))
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (1)
120
=> new(parseValue: str => map.
TryGetValue
(str, out var result) || alternative.TryGetValue(str, out result) ? new Optional<T>(result) : new Optional<T>(),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
107
if (
TryGetValue
(key, out var result))
129
if (
TryGetValue
(key, out var result))