14 references to WithComparer
Microsoft.CodeAnalysis (6)
ImmutableSegmentedDictionary.cs (5)
23
=> ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer);
39
=> ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer).AddRange(items);
61
return existingDictionary.
WithComparer
(keyComparer);
63
return ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer).AddRange(items);
80
return ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer)
ImmutableSegmentedDictionary`2.cs (1)
190
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);
328
return ImmutableSegmentedDictionary<TKey, TValue>.Empty.
WithComparer
(keyComparer);