22 references to WithComparer
Microsoft.CodeAnalysis (13)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet.cs (10)
29=> ImmutableSegmentedHashSet<T>.Empty.WithComparer(equalityComparer); 33=> ImmutableSegmentedHashSet<T>.Empty.WithComparer(equalityComparer).Add(item); 37=> ImmutableSegmentedHashSet<T>.Empty.WithComparer(equalityComparer).Union(items); 45=> ImmutableSegmentedHashSet<T>.Empty.WithComparer(equalityComparer).ToBuilder(); 51return existingSet.WithComparer(null); 60return existingSet.WithComparer(equalityComparer); 62return ImmutableSegmentedHashSet<T>.Empty.WithComparer(equalityComparer).Union(items); 69return existingSet.WithComparer(null); 78return existingSet.WithComparer(equalityComparer); 80return ImmutableSegmentedHashSet<TSource>.Empty.WithComparer(equalityComparer).Union(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (3)
140return Empty.WithComparer(self.KeyComparer); 249return otherSet.WithComparer(self.KeyComparer); 288return otherSet.WithComparer(self.KeyComparer);
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableSegmentedHashSetTest.cs (7)
32ImmutableSegmentedHashSet<string>.Empty.WithComparer(StringComparer.Ordinal), 37ImmutableSegmentedHashSet<string>.Empty.WithComparer(StringComparer.OrdinalIgnoreCase), 47.WithComparer(StringComparer.Ordinal) 53var ignoreCaseSet = ordinalSet.WithComparer(StringComparer.OrdinalIgnoreCase); 71var emptySet = EmptyTyped<int>().WithComparer(new BadHasher<int>()); 78var emptySet = EmptyTyped<string>().WithComparer(new BadHasher<string>()); 205var set = ImmutableSegmentedHashSet.Create<string>("a").WithComparer(StringComparer.OrdinalIgnoreCase);
Collections\ImmutableSegmentedHashSetTest.nonnetstandard.cs (2)
24EmptyTestHelper(EmptyTyped<string>().WithComparer(StringComparer.OrdinalIgnoreCase), "a", StringComparer.OrdinalIgnoreCase); 30TryGetValueTestHelper(ImmutableSegmentedHashSet<string>.Empty.WithComparer(StringComparer.OrdinalIgnoreCase));