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