6 references to TryGetValue
Microsoft.CodeAnalysis (2)
ImmutableSegmentedHashSet`1.cs (1)
220if (_set.TryGetValue(equalValue, out var value))
ImmutableSegmentedHashSet`1+Builder.cs (1)
208if (ReadOnlySet.TryGetValue(equalValue, out var value))
Microsoft.CodeAnalysis.UnitTests (4)
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (4)
444Assert.True(set.TryGetValue(equalValue, out T? actualValue)); 461Assert.True(set.TryGetValue(equalValue, out actualValue)); 475Assert.False(set.TryGetValue(equalValue, out T? actualValue)); 488Assert.False(set.TryGetValue(equalValue, out actualValue));