1 implementation of TryGetValue
Microsoft.CodeAnalysis.Workspaces (1)
BidirectionalMap.cs (1)
35public bool TryGetValue(TKey key, [NotNullWhen(true)] out TValue? value)
9 references to TryGetValue
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Collections\Immutable\Maps\BidirectionalMapTests.cs (4)
25Assert.False(map.TryGetValue("0", out _)); 47Assert.True(map.TryGetValue("0", out var value)); 49Assert.True(map.TryGetValue("1", out value)); 51Assert.True(map.TryGetValue("2", out value));
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
233if (_openedDocumentIds.TryGetValue(fileInfo, out var openDocumentId))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
319if (!_sourceTextContainersToDocumentIds.TryGetValue(textContainer, out var documentId))
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
245if (_monikerToWorkspaceRegistration.TryGetValue(moniker, out var registration))
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\AbstractCodeModelService.cs (2)
156if (!nodeKeyMap.TryGetValue(nodeKey, out var node)) 167return nodeKeyMap.TryGetValue(nodeKey, out node);