22 references to WithComparer
Microsoft.CodeAnalysis (13)
ImmutableSegmentedHashSet.cs (10)
27
=> ImmutableSegmentedHashSet<T>.Empty.
WithComparer
(equalityComparer);
31
=> ImmutableSegmentedHashSet<T>.Empty.
WithComparer
(equalityComparer).Add(item);
35
=> ImmutableSegmentedHashSet<T>.Empty.
WithComparer
(equalityComparer).Union(items);
43
=> ImmutableSegmentedHashSet<T>.Empty.
WithComparer
(equalityComparer).ToBuilder();
49
return existingSet.
WithComparer
(null);
58
return existingSet.
WithComparer
(equalityComparer);
60
return ImmutableSegmentedHashSet<T>.Empty.
WithComparer
(equalityComparer).Union(items);
67
return existingSet.
WithComparer
(null);
76
return existingSet.
WithComparer
(equalityComparer);
78
return ImmutableSegmentedHashSet<TSource>.Empty.
WithComparer
(equalityComparer).Union(source);
ImmutableSegmentedHashSet`1.cs (3)
88
return Empty.
WithComparer
(self.KeyComparer);
200
return otherSet.
WithComparer
(self.KeyComparer);
240
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));