Implemented interface member:
method
TryGetValue
Roslyn.Utilities.IBidirectionalMap<TKey, TValue>.TryGetValue(TKey, out TValue)
8 references to TryGetValue
Microsoft.CodeAnalysis.CodeStyle (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))
Microsoft.CodeAnalysis.CSharp.CodeStyle (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;