1 implementation of TryGetValue
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (1)
41public bool TryGetValue(TKey key, [NotNullWhen(true)] out TValue? value)
8 references to TryGetValue
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Collections\Immutable\Maps\BidirectionalMapTests.cs (4)
23Assert.False(map.TryGetValue("0", out _)); 45Assert.True(map.TryGetValue("0", out var value)); 47Assert.True(map.TryGetValue("1", out value)); 49Assert.True(map.TryGetValue("2", out value));
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
256if (_openedDocumentIds.TryGetValue(fileInfo, out var openDocumentId))
Microsoft.CodeAnalysis.Workspaces (2)
Serialization\SerializerService_Reference.cs (1)
38return s_analyzerReferenceMap.TryGetValue(imageReference, out guid);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
331if (!_sourceTextContainersToDocumentIds.TryGetValue(textContainer, out var documentId))
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
250if (_monikerToWorkspaceRegistration.TryGetValue(moniker, out var registration))