15 references to WithComparer
Microsoft.CodeAnalysis (2)
Collections\ImmutableHashSetExtensions.cs (1)
28var otherSet = other.WithComparer(set.KeyComparer);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
302/// <inheritdoc cref="ImmutableHashSet{T}.WithComparer(IEqualityComparer{T}?)"/>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
302/// <inheritdoc cref="ImmutableHashSet{T}.WithComparer(IEqualityComparer{T}?)"/>
Microsoft.CodeAnalysis.Collections.Package (1)
ImmutableSegmentedHashSet`1.cs (1)
302/// <inheritdoc cref="ImmutableHashSet{T}.WithComparer(IEqualityComparer{T}?)"/>
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
302/// <inheritdoc cref="ImmutableHashSet{T}.WithComparer(IEqualityComparer{T}?)"/>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
302/// <inheritdoc cref="ImmutableHashSet{T}.WithComparer(IEqualityComparer{T}?)"/>
System.Collections.Immutable (9)
System\Collections\Immutable\ImmutableHashSet.cs (6)
33return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer); 56return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer).Add(item); 79return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer).Union(items); 129return ImmutableHashSet<T>.Empty.WithComparer(equalityComparer).Union(items); 166return existingSet.WithComparer(equalityComparer); 169return ImmutableHashSet<TSource>.Empty.WithComparer(equalityComparer).Union(source);
System\Collections\Immutable\ImmutableHashSet_1.cs (3)
86return this.IsEmpty ? this : ImmutableHashSet<T>.Empty.WithComparer(_equalityComparer); 1022/// <param name="avoidWithComparer"><c>true</c> when being called from <see cref="WithComparer"/> to avoid a stack overflow.</param> 1034return other.WithComparer(this.KeyComparer);