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