14 references to WithComparer
Microsoft.CodeAnalysis (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary.cs (5)
25
=> ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer);
41
=> ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer).AddRange(items);
63
return existingDictionary.
WithComparer
(keyComparer);
65
return ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer).AddRange(items);
82
return ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
180
return Empty.
WithComparer
(self.KeyComparer);
Microsoft.CodeAnalysis.UnitTests (8)
Collections\ImmutableSegmentedDictionaryTest.cs (8)
45
var newMap = map.
WithComparer
(StringComparer.OrdinalIgnoreCase);
65
var map = Empty<string, int>().
WithComparer
(StringComparer.OrdinalIgnoreCase)
166
result = dictionary.
WithComparer
(cultureComparer);
178
map = map.
WithComparer
(StringComparer.OrdinalIgnoreCase);
192
map = map.
WithComparer
(StringComparer.OrdinalIgnoreCase);
201
Assert.Throws<ArgumentException>(null, () => map.
WithComparer
(StringComparer.OrdinalIgnoreCase));
218
map = map.
WithComparer
(StringComparer.OrdinalIgnoreCase);
354
return ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer);