124 implementations of ISet
Metrics (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Metrics.Legacy (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.Build (6)
ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Analyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Collections.Package (6)
Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Extensions.Package (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.InteractiveHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Threading.Package (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Roslyn.Diagnostics.Analyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
49public partial class SortedSet<T> : ISet<T>, ICollection<T>, ICollection, IReadOnlyCollection<T>, IReadOnlySet<T>, ISerializable, IDeserializationCallback
System.Collections.Immutable (7)
System\Collections\Frozen\FrozenSet.cs (1)
240public abstract partial class FrozenSet<T> : ISet<T>,
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
30public sealed class Builder : IReadOnlyCollection<T>, ISet<T>
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
19public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, IReadOnlySet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByRefEqualityComparer.cs (1)
11public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByValueEqualityComparer.cs (1)
11public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
32public sealed class Builder : IReadOnlyCollection<T>, ISet<T>, ICollection
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
24public sealed partial class ImmutableSortedSet<T> : IImmutableSet<T>, IReadOnlySet<T>, IReadOnlyList<T>, IList<T>, ISet<T>, IList, IStrongEnumerable<T, ImmutableSortedSet<T>.Enumerator>
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
17public class HashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>, IReadOnlySet<T>, ISerializable, IDeserializationCallback
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
14public class ReadOnlySet<T> : IReadOnlySet<T>, ISet<T>, ICollection
Text.Analyzers (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
66internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
1266 references to ISet
Aspire.Dashboard (2)
Components\Controls\Chart\MetricTable.razor.cs (2)
63_metrics = UpdateMetrics(out var xValuesToAnnounce, traces, xValues, exemplars); 115private SortedList<DateTimeOffset, MetricViewBase> UpdateMetrics(out ISet<DateTimeOffset> addedXValues, List<ChartTrace> traces, List<DateTimeOffset> xValues, List<ChartExemplar> exemplars)
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
110ISet = compilation.GetBestTypeByMetadataName(typeof(ISet<>));
dotnet.Tests (4)
CommandTests\Workload\Install\MockPackWorkloadInstaller.cs (2)
251public ISet<WorkloadId> WorkloadInstallRecord = new HashSet<WorkloadId>(); 253public ISet<WorkloadId> InstalledWorkloads;
CommandTests\Workload\Search\MockWorkloadResolver.cs (2)
38public ISet<WorkloadResolver.WorkloadInfo> GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packId, out ISet<WorkloadPackId> unsatisfiablePacks) => throw new NotImplementedException();
InteropTests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Metrics (26)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
Metrics.Legacy (26)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
31public ISet<string> DisabledBrowsers { get; } =
Microsoft.AspNetCore.Components.Endpoints (5)
Builder\RazorComponentDataSourceOptions.cs (1)
33internal ISet<IComponentRenderMode> ConfiguredRenderModes { get; } = new HashSet<IComponentRenderMode>(RenderModeComparer);
Discovery\RazorComponentApplication.cs (1)
37public ISet<IComponentRenderMode> GetDeclaredRenderModesByDiscoveredComponents()
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
86var _ when type == (typeof(ISet<TElement>)) => true, 193var _ when type.IsAssignableTo(typeof(ISet<TElement>)) => 194CreateConverter<ISet<TElement>, HashSet<TElement>>(elementTypeConverter),
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
682CanDeserialize_Collection<ISet<int>, HashSet<int>, int>(expected);
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\LoggingRedactionOptions.cs (1)
94public ISet<string> ExcludePathStartsWith { get; set; } = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Extensions (3)
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
86var _ when type == (typeof(ISet<TElement>)) => true, 193var _ when type.IsAssignableTo(typeof(ISet<TElement>)) => 194CreateConverter<ISet<TElement>, HashSet<TElement>>(elementTypeConverter),
Microsoft.AspNetCore.HttpLogging (7)
FileLoggerProcessor.cs (1)
38private ISet<string> _additionalHeaders;
HttpLoggingOptions.cs (2)
30public ISet<string> RequestHeaders => _internalRequestHeaders; 69public ISet<string> ResponseHeaders => _internalResponseHeaders;
W3CLoggerOptions.cs (2)
115public ISet<string> AdditionalRequestHeaders { get; } = new SortedSet<string>(StringComparer.OrdinalIgnoreCase); 126internal static ISet<string> FilterRequestHeaders(W3CLoggerOptions options)
W3CLoggerProcessor.cs (1)
17private readonly ISet<string>? _additionalRequestHeaders;
W3CLoggingMiddleware.cs (1)
42private readonly ISet<string> _additionalRequestHeaders;
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
433{ typeof(ISet<int>), false },
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
598{ typeof(ISet<KeyValuePair<int, int>>), false },
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
422var bindingContext = GetBindingContext(typeof(ISet<IFormFile>), httpContext);
ModelBinding\ModelBindingHelperTest.cs (1)
1480[InlineData(typeof(ISet<int>))]
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Microsoft.Build (88)
BackEnd\BuildManager\BuildManager.cs (3)
2985ISet<string> warningsAsErrors, 2986ISet<string> warningsNotAsErrors, 2987ISet<string> warningsAsMessages)
BackEnd\BuildManager\BuildParameters.cs (3)
596public ISet<string> WarningsAsErrors { get; set; } 601public ISet<string> WarningsNotAsErrors { get; set; } 606public ISet<string> WarningsAsMessages { get; set; }
BackEnd\Components\Logging\BuildEventArgTransportSink.cs (5)
80public ISet<string> WarningsAsErrors 89public IDictionary<int, ISet<string>> WarningsAsErrorsByProject 98public ISet<string> WarningsAsMessages 107public IDictionary<int, ISet<string>> WarningsAsMessagesByProject 117public ISet<int> BuildSubmissionIdsThatHaveLoggedErrors { get; } = null;
BackEnd\Components\Logging\ILoggingService.cs (6)
174ISet<string> WarningsAsErrors 183ISet<string> WarningsNotAsErrors 192ISet<string> WarningsAsMessages 263void AddWarningsAsMessages(BuildEventContext buildEventContext, ISet<string> codes); 270void AddWarningsAsErrors(BuildEventContext buildEventContext, ISet<string> codes); 277void AddWarningsNotAsErrors(BuildEventContext buildEventContext, ISet<string> codes);
BackEnd\Components\Logging\LoggingService.cs (21)
217private readonly ISet<int> _buildSubmissionIdsThatHaveLoggedErrors = new HashSet<int>(); 222private readonly ISet<int> _buildSubmissionIdsThatHaveLoggedBuildcheckErrors = new HashSet<int>(); 227private IDictionary<WarningsConfigKey, ISet<string>> _warningsAsErrorsByProject; 232private IDictionary<WarningsConfigKey, ISet<string>> _warningsNotAsErrorsByProject; 237private IDictionary<WarningsConfigKey, ISet<string>> _warningsAsMessagesByProject; 513public ISet<string> WarningsAsErrors 522public ISet<string> WarningsNotAsErrors 531public ISet<string> WarningsAsMessages 702private ICollection<string> GetWarningsForProject(BuildEventContext context, IDictionary<WarningsConfigKey, ISet<string>> warningsByProject, ISet<string> warnings) 706if (warningsByProject != null && warningsByProject.TryGetValue(key, out ISet<string> newWarnings)) 726public void AddWarningsAsErrors(BuildEventContext buildEventContext, ISet<string> codes) 736public void AddWarningsNotAsErrors(BuildEventContext buildEventContext, ISet<string> codes) 746public void AddWarningsAsMessages(BuildEventContext buildEventContext, ISet<string> codes) 757private void AddWarningsAsMessagesOrErrors(ref IDictionary<WarningsConfigKey, ISet<string>> warningsByProject, BuildEventContext buildEventContext, ISet<string> codes) 768warningsByProject ??= new ConcurrentDictionary<WarningsConfigKey, ISet<string>>(); 1955if (_warningsAsMessagesByProject.TryGetValue(GetWarningsConfigKey(warningEvent), out ISet<string> codesByProject)) 1968return WarningsNotAsErrors?.Contains(warningEvent.Code) != true && !(_warningsNotAsErrorsByProject?.TryGetValue(key, out ISet<string> notToError) == true && notToError.Contains(warningEvent.Code)); 1994if (_warningsAsErrorsByProject.TryGetValue(key, out ISet<string> codesByProject)) 1998ISet<string> codesToIgnoreByProject = null;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (12)
151/// <param name="keepMetadata">An <see cref="ISet{String}"/> of metadata names to keep.</param> 152/// <param name="removeMetadata">An <see cref="ISet{String}"/> of metadata names to remove.</param> 154private void ExecuteAdd(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, ISet<string> keepMetadata, ISet<string> removeMetadata, LoggingContext loggingContext = null) 294/// <param name="keepMetadata">An <see cref="ISet{String}"/> of metadata names to keep.</param> 295/// <param name="removeMetadata">An <see cref="ISet{String}"/> of metadata names to remove.</param> 297private void ExecuteModify(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, ISet<string> keepMetadata, ISet<string> removeMetadata, LoggingContext loggingContext = null) 373/// <param name="keepMetadata">An <see cref="ISet{String}"/> of metadata names to keep.</param> 374/// <param name="removeMetadata">An <see cref="ISet{String}"/> of metadata names to remove.</param> 385ISet<string> keepMetadata, 386ISet<string> removeMetadata,
BackEnd\Components\RequestBuilder\RequestBuilder.cs (4)
1489ISet<string> warningsAsErrors = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsAsErrors)); 1497ISet<string> warningsNotAsErrors = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsNotAsErrors)); 1504ISet<string> warningsAsMessages = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsAsMessages)); 1522private static ISet<string> ParseWarningCodes(string warnings)
Definition\Project.cs (8)
846internal ISet<string> GlobalPropertiesToTreatAsLocal => implementationInternal.GlobalPropertiesToTreatAsLocal; 2500public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 3981ISet<string> GlobalPropertiesToTreatAsLocal { get; } 4002public ISet<string> GlobalPropertiesToTreatAsLocal { get { throw new NotImplementedException(); } } 4041private ISet<string> _globalPropertiesToTreatAsLocal; 4092public ISet<string> GlobalPropertiesToTreatAsLocal => _globalPropertiesToTreatAsLocal ?? (_globalPropertiesToTreatAsLocal = 4705/// Gets an <see cref="ISet{String}"/> containing strings that were excluded. 4710/// Gets an <see cref="ISet{String}"/> containing strings that were later removed via the Remove element.
Evaluation\IEvaluatorData.cs (1)
98ISet<string> GlobalPropertiesToTreatAsLocal
Evaluation\LazyItemEvaluator.cs (3)
168private Dictionary<ISet<string>, OrderedItemDataCollection> _cache; 216public bool TryGetFromCache(ISet<string> globsToIgnore, out OrderedItemDataCollection items) 239_cache = new Dictionary<ISet<string>, OrderedItemDataCollection>();
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
99public ISet<string> GlobalPropertiesToTreatAsLocal => _wrappedData.GlobalPropertiesToTreatAsLocal;
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
54ISet<string>? excludePatternsForGlobs = null; 181private static ISet<string> BuildExcludePatternsForGlobs(ImmutableHashSet<string> globsToIgnore, ImmutableList<string>.Builder excludePatterns)
Evaluation\Profiler\EvaluationProfiler.cs (1)
59public IDisposable TrackGlob(string rootDirectory, string glob, ISet<string> excludePatterns)
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
145public ISet<string> GlobalPropertiesToTreatAsLocal => _wrapped.GlobalPropertiesToTreatAsLocal;
IEnumerableExtensions.cs (3)
163public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 173public static ISet<T> ToSet<T>(this IEnumerable<T> source) 180return source as ISet<T> ?? new HashSet<T>(source);
ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
Instance\ProjectInstance.cs (2)
111private ISet<string> _globalPropertiesToTreatAsLocal; 1422ISet<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesToTreatAsLocal
SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
Microsoft.Build.CommandLine.UnitTests (8)
CommandLineSwitches_Tests.cs (8)
1303ISet<string> expectedWarningsAsErrors = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "a", "B", "c", "D", "e" }; 1317ISet<string> actualWarningsAsErrors = MSBuildApp.ProcessWarnAsErrorSwitch(commandLineSwitches); 1338ISet<string> actualWarningsAsErrors = MSBuildApp.ProcessWarnAsErrorSwitch(commandLineSwitches); 1351ISet<string> expectedWarningsAsErors = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "e", "f", "g" }; 1362ISet<string> actualWarningsAsErrors = MSBuildApp.ProcessWarnAsErrorSwitch(commandLineSwitches); 1379ISet<string> actualWarningsAsErrors = MSBuildApp.ProcessWarnAsErrorSwitch(commandLineSwitches); 1430ISet<string> expectedWarningsAsMessages = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "a", "B", "c", "D", "e" }; 1444ISet<string> actualWarningsAsMessages = MSBuildApp.ProcessWarnAsMessageSwitch(commandLineSwitches);
Microsoft.Build.Engine.UnitTests (13)
BackEnd\LoggingService_Tests.cs (4)
948ISet<string> warningsAsErrors = null, 949ISet<string> warningsAsMessages = null, 950ISet<string> warningsAsErrorsForProject = null, 951ISet<string> warningsAsMessagesForProject = null)
BackEnd\MockLoggingService.cs (6)
178public ISet<string> WarningsAsErrors 187public ISet<string> WarningsNotAsErrors 196public ISet<string> WarningsAsMessages 269public void AddWarningsAsMessages(BuildEventContext buildEventContext, ISet<string> codes) 274public void AddWarningsAsErrors(BuildEventContext buildEventContext, ISet<string> codes) 279public void AddWarningsNotAsErrors(BuildEventContext buildEventContext, ISet<string> codes)
FileMatcher_Tests.cs (3)
2080private int GetMatchingFiles(string[] candidates, string path, string pattern, ISet<string> files) 2160private void GetMatchingDirectories(string[] candidates, string path, string pattern, ISet<string> directories) 2221ISet<string> files = new HashSet<string>();
Microsoft.Build.Framework (4)
ProjectStartedEventArgs.cs (4)
341internal ISet<string>? WarningsAsErrors { get; set; } 342internal ISet<string>? WarningsNotAsErrors { get; set; } 343internal ISet<string>? WarningsAsMessages { get; set; } 496private static ISet<string>? ReadStringSet(BinaryReader reader)
Microsoft.Build.Tasks.Core (8)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
71internal static readonly IDictionary<string, ISet<string>> ValidCodeLanguages = new Dictionary<string, ISet<string>>(StringComparer.OrdinalIgnoreCase) 497foreach (KeyValuePair<string, ISet<string>> validLanguage in ValidCodeLanguages) 544ISet<string> resolvedAssemblyReferences = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
RoslynCodeTaskFactory\RoslynCodeTaskFactoryTaskInfo.cs (4)
29/// Gets a <see cref="ISet{String}"/> of namespaces to use. 31public ISet<string> Namespaces { get; } = new HashSet<string>(StringComparer.OrdinalIgnoreCase); 34/// Gets an <see cref="ISet{String}"/> of assembly references. 36public ISet<string> References { get; } = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.UnitTests (2)
RoslynCodeTaskFactory_Tests.cs (2)
942ISet<string> expectedReferences = null, 943ISet<string> expectedNamespaces = null,
Microsoft.Cci.Extensions (1)
Traversers\DependencyTraverser.cs (1)
32public ISet<IReference> UnresolvedDependencies { get { return _unresolvedDependencies; } }
Microsoft.CodeAnalysis (22)
Collections\IdentifierCollection.Collection.cs (1)
45_count = this.IdentifierCollection._map.Values.Sum(o => o is string ? 1 : ((ISet<string>)o).Count);
Emit\EditAndContinue\SymbolChanges.cs (2)
34private readonly ISet<ISymbolInternal> _replacedSymbols; 353out ISet<ISymbolInternal> replacedSymbols,
InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
Microsoft.CodeAnalysis.Analyzers (32)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
75private async Task<ISet<INamespaceSymbol>> GetSafeToAddImportsAsync( 239var safeImportsToAdd = await GetSafeToAddImportsAsync(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
32var unusableNames = parameterNames.Concat(outerTypeParameterNames).ToSet(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
105var referencingStatements =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
137public static string GenerateUniqueName(string baseName, ISet<string> names, StringComparer comparer)
Microsoft.CodeAnalysis.AnalyzerUtilities (28)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
632ISet<string> taintedParameterNames,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMapExtensions.cs (1)
186ISet<string> taintedParameterNames,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
Microsoft.CodeAnalysis.BannedApiAnalyzers (32)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
75private async Task<ISet<INamespaceSymbol>> GetSafeToAddImportsAsync( 239var safeImportsToAdd = await GetSafeToAddImportsAsync(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
32var unusableNames = parameterNames.Concat(outerTypeParameterNames).ToSet(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
105var referencingStatements =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
137public static string GenerateUniqueName(string baseName, ISet<string> names, StringComparer comparer)
Microsoft.CodeAnalysis.CodeStyle (23)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
Microsoft.CodeAnalysis.CodeStyle.Fixes (23)
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
81var containers = diagnostics.Select(d => GetContainer(root, d.Location.FindNode(cancellationToken)))
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
175var documentsUpdated = locationsByDocument.Select(g => g.Key).ToSet();
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (3)
23protected static readonly ISet<TypeKind> EnumType = new HashSet<TypeKind> { TypeKind.Enum }; 24protected static readonly ISet<TypeKind> ClassInterfaceModuleStructTypes = new HashSet<TypeKind> 35ISet<TypeKind> typeKinds)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (2)
24protected abstract bool TryInitializeImplicitConversionState(SemanticDocument document, SyntaxNode expression, ISet<TypeKind> classInterfaceModuleStructTypes, CancellationToken cancellationToken, out SyntaxToken identifierToken, [NotNullWhen(true)] out IMethodSymbol? methodSymbol, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 25protected abstract bool TryInitializeExplicitConversionState(SemanticDocument document, SyntaxNode expression, ISet<TypeKind> classInterfaceModuleStructTypes, CancellationToken cancellationToken, out SyntaxToken identifierToken, [NotNullWhen(true)] out IMethodSymbol? methodSymbol, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
124var reservedParameterNames = DetermineParameterNames(cancellationToken) 146var availableTypeParameterNames = allTypeParameters.Select(t => t.Name).ToSet();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (6)
23ISet<string> availableTypeParameterNames, 34Compilation compilation, ISet<string> availableTypeParameterNames, Project project, CancellationToken cancellationToken) : AsyncSymbolVisitor 39private readonly ISet<string> _availableTypeParameterNames = availableTypeParameterNames; 91var commonTypes = await GetDerivedAndImplementedTypesAsync( 96var currentTypes = await GetDerivedAndImplementedTypesAsync( 123private async Task<ISet<INamedTypeSymbol>> GetDerivedAndImplementedTypesAsync(
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (2)
450var constructorSpans = field.ContainingType 483ISet<(string filePath, TextSpan span)> constructorSpans,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
75private async Task<ISet<INamespaceSymbol>> GetSafeToAddImportsAsync( 239var safeImportsToAdd = await GetSafeToAddImportsAsync(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
32var unusableNames = parameterNames.Concat(outerTypeParameterNames).ToSet(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
105var referencingStatements =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
137public static string GenerateUniqueName(string baseName, ISet<string> names, StringComparer comparer)
Microsoft.CodeAnalysis.Collections.Package (15)
Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
Microsoft.CodeAnalysis.CSharp (15)
Declarations\DeclarationTable.Cache.cs (4)
30private ISet<string>? _typeNames; 31private ISet<string>? _namespaceNames; 55public ISet<string> TypeNames 66public ISet<string> NamespaceNames
Declarations\DeclarationTable.cs (5)
161var cachedTypeNames = _cache.TypeNames; 175var cachedNamespaceNames = _cache.NamespaceNames; 204private static ISet<string> GetTypeNames(Declaration declaration) 209private static ISet<string> GetNamespaceNames(Declaration declaration) 214private static ISet<string> GetNames(Declaration declaration, Predicate<Declaration> predicate)
Symbols\Metadata\PE\PEEventSymbol.cs (1)
389var implementedEvents = PEPropertyOrEventHelpers.GetEventsForExplicitlyImplementedAccessor(_addMethod);
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
804var propertiesWithImplementedGetters = PEPropertyOrEventHelpers.GetPropertiesForExplicitlyImplementedAccessor(_getMethod); 805var propertiesWithImplementedSetters = PEPropertyOrEventHelpers.GetPropertiesForExplicitlyImplementedAccessor(_setMethod);
Symbols\PropertyOrEventSymbolExtensions.cs (3)
22internal static ISet<PropertySymbol> GetPropertiesForExplicitlyImplementedAccessor(MethodSymbol accessor) 27internal static ISet<EventSymbol> GetEventsForExplicitlyImplementedAccessor(MethodSymbol accessor) 33private static ISet<T> GetSymbolsForExplicitlyImplementedAccessor<T>(MethodSymbol accessor) where T : Symbol
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
204var reservedNames = semanticModel.LookupSymbols(container.SpanStart)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
161public static ISet<INamespaceSymbol> GetUsingNamespacesInScope(this SemanticModel semanticModel, SyntaxNode location)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
17public static ISet<SyntaxKind> GetPrecedingModifiers(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) 20public static ISet<SyntaxKind> GetPrecedingModifiers(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (52)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (5)
56ISet<TypeKind> classInterfaceModuleStructTypes, 82ISet<TypeKind> classInterfaceModuleStructTypes, 108ISet<TypeKind> classInterfaceModuleStructTypes, 136ISet<TypeKind> classInterfaceModuleStructTypes, 167ISet<TypeKind> classInterfaceModuleStructTypes,
src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
72var identifierNames = fieldLocations.SelectMany(loc => loc.Locations.Select(loc => loc.Location.FindNode(getInnermostNodeForTie: true, cancellationToken) as IdentifierNameSyntax))
src\Analyzers\CSharp\CodeFixes\UseAutoProperty\UseAutoPropertyRewriter.cs (2)
16ISet<IdentifierNameSyntax> identifierNames) : CSharpSyntaxRewriter 19private readonly ISet<IdentifierNameSyntax> _identifierNames = identifierNames;
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (3)
47var topmostUsingStatements = diagnostics.Select( 49var blockLikes = topmostUsingStatements.Select(u => u.Parent is GlobalStatementSyntax ? u.Parent.GetRequiredParent() : u.GetRequiredParent()).ToSet(); 66ISet<UsingStatementSyntax> topmostUsingStatements)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
543var blockStatements = block.Statements.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (10)
47public readonly ISet<SyntaxKind> PrecedingModifiers; 110ISet<SyntaxKind> precedingModifiers, 227var precedingModifiers = syntaxTree.GetPrecedingModifiers(position, cancellationToken); 323ISet<SyntaxKind>? validModifiers = null, 324ISet<SyntaxKind>? validTypeDeclarations = null, 331public bool IsRecordDeclarationContext(ISet<SyntaxKind> validModifiers, CancellationToken cancellationToken) 339var modifiers = SyntaxTree.GetPrecedingModifiers(positionBeforeRecordKeyword, cancellationToken); 345ISet<SyntaxKind> validTypeDeclarations, bool includingRecordParameters, CancellationToken cancellationToken) 402ISet<SyntaxKind>? validModifiers = null, 403ISet<SyntaxKind>? validTypeDeclarations = null,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (12)
21private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 80ISet<SyntaxKind> validModifiers, 92var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken); 243ISet<SyntaxKind>? validModifiers, 244ISet<SyntaxKind>? validTypeDeclarations, 290var modifierTokens = context?.PrecedingModifiers ?? syntaxTree.GetPrecedingModifiers(position, cancellationToken); 325var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken, out position); 342ISet<SyntaxKind> validModifiers, 345var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken, out position); 532ISet<SyntaxKind>? validModifiers, 533ISet<SyntaxKind>? validTypeDeclarations, 587var modifierTokens = context?.PrecedingModifiers ?? syntaxTree.GetPrecedingModifiers(position, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (6)
24private readonly ISet<UsingDirectiveSyntax> _unnecessaryUsingsDoNotAccessDirectly; 28ISet<UsingDirectiveSyntax> unnecessaryUsings, 44ISet<UsingDirectiveSyntax> usingsToRemove, 128private ISet<UsingDirectiveSyntax> GetUsingsToRemove( 150var usingsToRemove = GetUsingsToRemove(node.Usings, compilationUnit.Usings); 204var usingsToRemove = GetUsingsToRemove(node.Usings, namespaceDeclaration.Usings);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (12)
11public static readonly ISet<SyntaxKind> AllTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 27public static readonly ISet<SyntaxKind> AllMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 47public static readonly ISet<SyntaxKind> AllGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 61public static readonly ISet<SyntaxKind> AccessibilityModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 69public static readonly ISet<SyntaxKind> AllTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 79public static readonly ISet<SyntaxKind> ClassInterfaceStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 88public static readonly ISet<SyntaxKind> NonEnumTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 100public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 107public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 113public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 121public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 127public static readonly ISet<SyntaxKind> InterfaceOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Microsoft.CodeAnalysis.CSharp.Features (118)
AddImport\CSharpAddImportFeatureService.cs (1)
245protected override ISet<INamespaceSymbol> GetImportNamespacesInScope(
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (2)
160var conflictReferences = allReferences.Where(n => HasConflict(n, declarator)).ToSet(); 161var nonConflictReferences = allReferences.Where(n => !conflictReferences.Contains(n)).ToSet();
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (5)
88var existingNamedParameters = GetExistingNamedParameters(attributeArgumentList, position); 155SyntaxToken token, AttributeSyntax attributeSyntax, ISet<string> existingNamedParameters) 177CompletionContext context, SemanticModel semanticModel, SyntaxToken token, AttributeSyntax attributeSyntax, ISet<string> existingNamedParameters) 201private static bool IsValid(ImmutableArray<IParameterSymbol> parameterList, ISet<string> existingNamedParameters) 204private static ISet<string> GetExistingNamedParameters(AttributeArgumentListSyntax argumentList, int position)
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
68var aliases = compilation.ExternalReferences.SelectMany(r => r.Properties.Aliases).ToSet();
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (3)
88var existingNamedParameters = GetExistingNamedParameters(argumentList, position); 135private static bool IsValid(ImmutableArray<IParameterSymbol> parameterList, ISet<string> existingNamedParameters) 142private static ISet<string> GetExistingNamedParameters(BaseArgumentListSyntax argumentList, int position)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
107if (IsAttributeNameContext(token, position, out var elementName, out var existingAttributes)) 212private bool IsAttributeNameContext(SyntaxToken token, int position, [NotNullWhen(true)] out string? elementName, [NotNullWhen(true)] out ISet<string>? attributeNames)
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
14private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 25private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 37private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\AsyncKeywordRecommender.cs (1)
15private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
14private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (2)
14private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 23private static readonly ISet<SyntaxKind> s_validGlobalModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\DelegateKeywordRecommender.cs (1)
15private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\EnumKeywordRecommender.cs (1)
14private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\EventKeywordRecommender.cs (2)
15private static readonly ISet<SyntaxKind> s_validClassModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 31private static readonly ISet<SyntaxKind> s_validStructModifiers = new HashSet<SyntaxKind>(s_validClassModifiers, SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\ExplicitKeywordRecommender.cs (4)
14private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 22private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 35var modifiers = context.PrecedingModifiers; 44var modifiers = context.PrecedingModifiers;
Completion\KeywordRecommenders\ExtensionKeywordRecommender.cs (2)
13private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer); 14private static readonly ISet<SyntaxKind> s_validTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (3)
15private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 29private static readonly ISet<SyntaxKind> s_validGlobalModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 39private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\FieldKeywordRecommender.cs (1)
16private static readonly ISet<SyntaxKind> s_validTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\FileKeywordRecommender.cs (1)
16private static readonly ISet<SyntaxKind> s_validModifiers = SyntaxKindSet.AllMemberModifiers
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
14private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\ImplicitKeywordRecommender.cs (4)
14private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 22private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 35var modifiers = context.PrecedingModifiers; 44var modifiers = context.PrecedingModifiers;
Completion\KeywordRecommenders\InterfaceKeywordRecommender.cs (1)
14private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\InternalKeywordRecommender.cs (1)
58var precedingModifiers = context.PrecedingModifiers;
Completion\KeywordRecommenders\NewKeywordRecommender.cs (2)
17private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 33private static readonly ISet<SyntaxKind> ValidTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\OverrideKeywordRecommender.cs (2)
14private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 37var modifiers = context.PrecedingModifiers;
Completion\KeywordRecommenders\ParamKeywordRecommender.cs (1)
15private static readonly ISet<SyntaxKind> s_validTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer);
Completion\KeywordRecommenders\PrivateKeywordRecommender.cs (2)
40var modifiers = context.PrecedingModifiers; 77var precedingModifiers = context.PrecedingModifiers;
Completion\KeywordRecommenders\ProtectedKeywordRecommender.cs (1)
63var precedingModifiers = context.PrecedingModifiers;
Completion\KeywordRecommenders\PublicKeywordRecommender.cs (1)
48var precedingModifiers = context.PrecedingModifiers;
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
16private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
14private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
21private static readonly ISet<SyntaxKind> RefMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 43private static readonly ISet<SyntaxKind> RefGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 61private static readonly ISet<SyntaxKind> RefGlobalMemberScriptModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\RequiredKeywordRecommender.cs (2)
16private static readonly ISet<SyntaxKind> s_validModifiers = SyntaxKindSet.AllMemberModifiers.Where(s => s is not (SyntaxKind.RequiredKeyword or SyntaxKind.StaticKeyword or SyntaxKind.ReadOnlyKeyword or SyntaxKind.ConstKeyword)).ToSet(); 18private static readonly ISet<SyntaxKind> s_validTypeDeclarations = SyntaxKindSet.ClassStructRecordTypeDeclarations;
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
14private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 25private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 37private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (5)
15private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 26private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 40private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 57private static readonly ISet<SyntaxKind> s_validGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 69private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\StructKeywordRecommender.cs (1)
15private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (4)
14private static readonly ISet<SyntaxKind> s_validTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 27private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 44private static readonly ISet<SyntaxKind> s_validGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 56private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (3)
14private static readonly ISet<SyntaxKind> s_validNonInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 25private static readonly ISet<SyntaxKind> s_validInterfaceMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 53var modifiers = context.PrecedingModifiers;
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (2)
15private static readonly ISet<SyntaxKind> s_validClassInterfaceRecordModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 32private static readonly ISet<SyntaxKind> s_validStructModifiers = new HashSet<SyntaxKind>(s_validClassInterfaceRecordModifiers, SyntaxFacts.EqualityComparer)
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
15private static readonly ISet<SyntaxKind> s_validMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
342var namespaces = semanticModel.GetUsingNamespacesInScope(converter.ForEachInfo.ForEachStatement);
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
149ISet<ExpressionSyntax> matches)
IntroduceVariable\CSharpIntroduceVariableService.Rewriter.cs (3)
21private readonly ISet<ExpressionSyntax> _matches; 23private Rewriter(SyntaxNode replacementNode, ISet<ExpressionSyntax> matches) 93public static SyntaxNode Visit(SyntaxNode node, SyntaxNode replacementNode, ISet<ExpressionSyntax> matches)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (4)
306var matches = FindMatches( 377var matches = FindMatches(document, expression, document, [scope], allOccurrences, cancellationToken); 381ISet<StatementSyntax> allAffectedStatements = new HashSet<StatementSyntax>(matches.SelectMany(expr => GetApplicableStatementAncestors(expr))); 439private static int GetFirstStatementAffectedIndex(SyntaxNode innermostCommonBlock, ISet<ExpressionSyntax> matches, int firstStatementAffectedIndex)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceQueryLocal.cs (1)
39var matches = FindMatches(document, expression, document, [oldOutermostQuery], allOccurrences, cancellationToken);
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (2)
84var methodSet = accessibleMethods.ToSet(); 88private static bool IsHiddenByOtherMethod(IMethodSymbol method, ISet<IMethodSymbol> methodSet)
SimplifyThisOrMe\CSharpSimplifyThisOrMeCodeFixProvider.cs (3)
25protected override SyntaxNode Rewrite(SyntaxNode root, ISet<MemberAccessExpressionSyntax> memberAccessNodes) 28private sealed class Rewriter(ISet<MemberAccessExpressionSyntax> memberAccessNodes) : CSharpSyntaxRewriter 30private readonly ISet<MemberAccessExpressionSyntax> _memberAccessNodes = memberAccessNodes;
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
28protected abstract ISet<SyntaxKind> ValidModifiers { get; }
Snippets\CSharpClassSnippetProvider.cs (2)
25private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 43protected override ISet<SyntaxKind> ValidModifiers => s_validModifiers;
Snippets\CSharpConstructorSnippetProvider.cs (2)
30private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 43var precedingModifiers = syntaxContext.PrecedingModifiers;
Snippets\CSharpEnumSnippetProvider.cs (2)
25private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 38protected override ISet<SyntaxKind> ValidModifiers => s_validModifiers;
Snippets\CSharpInterfaceSnippetProvider.cs (2)
25private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 39protected override ISet<SyntaxKind> ValidModifiers => s_validModifiers;
Snippets\CSharpProprSnippetProvider.cs (1)
36var precedingModifiers = syntaxContext.PrecedingModifiers;
Snippets\CSharpStructSnippetProvider.cs (2)
25private static readonly ISet<SyntaxKind> s_validModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 41protected override ISet<SyntaxKind> ValidModifiers => s_validModifiers;
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
204var reservedNames = semanticModel.LookupSymbols(container.SpanStart)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (5)
56ISet<TypeKind> classInterfaceModuleStructTypes, 82ISet<TypeKind> classInterfaceModuleStructTypes, 108ISet<TypeKind> classInterfaceModuleStructTypes, 136ISet<TypeKind> classInterfaceModuleStructTypes, 167ISet<TypeKind> classInterfaceModuleStructTypes,
src\Analyzers\CSharp\CodeFixes\UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
72var identifierNames = fieldLocations.SelectMany(loc => loc.Locations.Select(loc => loc.Location.FindNode(getInnermostNodeForTie: true, cancellationToken) as IdentifierNameSyntax))
src\Analyzers\CSharp\CodeFixes\UseAutoProperty\UseAutoPropertyRewriter.cs (2)
16ISet<IdentifierNameSyntax> identifierNames) : CSharpSyntaxRewriter 19private readonly ISet<IdentifierNameSyntax> _identifierNames = identifierNames;
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (3)
47var topmostUsingStatements = diagnostics.Select( 49var blockLikes = topmostUsingStatements.Select(u => u.Parent is GlobalStatementSyntax ? u.Parent.GetRequiredParent() : u.GetRequiredParent()).ToSet(); 66ISet<UsingStatementSyntax> topmostUsingStatements)
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
139var reservedNames = semanticModel
Microsoft.CodeAnalysis.CSharp.Workspaces (46)
Recommendations\CSharpRecommendationServiceRunner.cs (2)
385var contextOuterTypes = ComputeOuterTypes(_context, _cancellationToken); 395ISet<INamedTypeSymbol> outerTypes,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
161public static ISet<INamespaceSymbol> GetUsingNamespacesInScope(this SemanticModel semanticModel, SyntaxNode location)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
17public static ISet<SyntaxKind> GetPrecedingModifiers(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) 20public static ISet<SyntaxKind> GetPrecedingModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
543var blockStatements = block.Statements.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (10)
47public readonly ISet<SyntaxKind> PrecedingModifiers; 110ISet<SyntaxKind> precedingModifiers, 227var precedingModifiers = syntaxTree.GetPrecedingModifiers(position, cancellationToken); 323ISet<SyntaxKind>? validModifiers = null, 324ISet<SyntaxKind>? validTypeDeclarations = null, 331public bool IsRecordDeclarationContext(ISet<SyntaxKind> validModifiers, CancellationToken cancellationToken) 339var modifiers = SyntaxTree.GetPrecedingModifiers(positionBeforeRecordKeyword, cancellationToken); 345ISet<SyntaxKind> validTypeDeclarations, bool includingRecordParameters, CancellationToken cancellationToken) 402ISet<SyntaxKind>? validModifiers = null, 403ISet<SyntaxKind>? validTypeDeclarations = null,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (12)
21private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 80ISet<SyntaxKind> validModifiers, 92var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken); 243ISet<SyntaxKind>? validModifiers, 244ISet<SyntaxKind>? validTypeDeclarations, 290var modifierTokens = context?.PrecedingModifiers ?? syntaxTree.GetPrecedingModifiers(position, cancellationToken); 325var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken, out position); 342ISet<SyntaxKind> validModifiers, 345var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken, out position); 532ISet<SyntaxKind>? validModifiers, 533ISet<SyntaxKind>? validTypeDeclarations, 587var modifierTokens = context?.PrecedingModifiers ?? syntaxTree.GetPrecedingModifiers(position, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (6)
24private readonly ISet<UsingDirectiveSyntax> _unnecessaryUsingsDoNotAccessDirectly; 28ISet<UsingDirectiveSyntax> unnecessaryUsings, 44ISet<UsingDirectiveSyntax> usingsToRemove, 128private ISet<UsingDirectiveSyntax> GetUsingsToRemove( 150var usingsToRemove = GetUsingsToRemove(node.Usings, compilationUnit.Usings); 204var usingsToRemove = GetUsingsToRemove(node.Usings, namespaceDeclaration.Usings);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (12)
11public static readonly ISet<SyntaxKind> AllTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 27public static readonly ISet<SyntaxKind> AllMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 47public static readonly ISet<SyntaxKind> AllGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 61public static readonly ISet<SyntaxKind> AccessibilityModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 69public static readonly ISet<SyntaxKind> AllTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 79public static readonly ISet<SyntaxKind> ClassInterfaceStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 88public static readonly ISet<SyntaxKind> NonEnumTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 100public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 107public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 113public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 121public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 127public static readonly ISet<SyntaxKind> InterfaceOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Microsoft.CodeAnalysis.EditorFeatures (2)
NavigateTo\NavigateToItemProvider.cs (1)
44ISet<string> INavigateToItemProvider2.KindsProvided => KindsProvided;
Shared\Extensions\ITextViewExtensions.cs (1)
22public static ISet<IContentType> GetContentTypes(this ITextView textView)
Microsoft.CodeAnalysis.Extensions.Package (18)
Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
Microsoft.CodeAnalysis.Features (58)
AddImport\AbstractAddImportFeatureService.cs (1)
52protected abstract ISet<INamespaceSymbol> GetImportNamespacesInScope(SemanticModel semanticModel, SyntaxNode node, CancellationToken cancellationToken);
AddImport\SymbolReferenceFinder.cs (3)
34private readonly ISet<INamespaceSymbol> _namespacesInScope; 75private ISet<INamespaceSymbol> GetNamespacesInScope(CancellationToken cancellationToken) 78var set = _owner.GetImportNamespacesInScope(_semanticModel, _node, cancellationToken);
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (4)
34var uniqueIdentities = await GetUniqueIdentitiesAsync(context).ConfigureAwait(false); 36var assemblyNames = uniqueIdentities.Select(i => i.Name).ToSet(); 44private static async Task<ImmutableArray<CodeAction>> GetAddReferencesCodeActionsAsync(CodeFixContext context, ISet<AssemblyIdentity> uniqueIdentities) 57private static async Task<ISet<AssemblyIdentity>> GetUniqueIdentitiesAsync(CodeFixContext context)
AddPackage\AbstractAddPackageCodeFixProvider.cs (2)
30CodeFixContext context, ISet<string> assemblyNames) 75ISet<string> assemblyNames,
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (1)
29private static readonly ISet<string> s_predefinedProviderNames =
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (4)
134var membersToRemove = GetMembersToRemove(root); 146var leadingTrivia = this.TypeDeclaration.GetLeadingTrivia().ToSet(); 256private ISet<SyntaxNode> GetMembersToRemove(SyntaxNode root) 264var removableCandidates = root
Completion\Providers\AbstractDocCommentCompletionProvider.cs (2)
116protected IEnumerable<CompletionItem> GetAttributeItems(string tagName, ISet<string> existingAttributes, bool addEqualsAndQuotes) 263var names = symbols.Select(p => p.Name).ToSet();
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
62var inferredTypes = context.InferredTypes.Where(t => t.SpecialType != SpecialType.System_Void).ToSet(SymbolEqualityComparer.Default);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (2)
58ISet<string> namespaceInScope, 98ISet<string> namespaceInScope,
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (2)
35private readonly ISet<string> _namespaceInScope; 47ISet<string> namespaceInScope)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
461var allProjects = dependentProjects.Select<ProjectId, Project>(solution.GetRequiredProject)
Diagnostics\Service\DiagnosticAnalyzerService_CompilationWithAnalyzersPair.cs (1)
125var projectAnalyzers = analyzers.Where(a => !hostAnalyzerInfo.IsHostAnalyzer(a)).ToSet();
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (3)
24ISet<INamedTypeSymbol> typesOfInterest) 34var types = s_typeNamesOfInterest.Select(compilation.GetTypeByMetadataName).WhereNotNull().ToSet(); 50private readonly ISet<INamedTypeSymbol> _typesOfInterest = typesOfInterest;
EncapsulateField\AbstractEncapsulateFieldService.cs (3)
244var constructorLocations = GetConstructorLocations(solution, field.ContainingType); 297private static bool IntersectsWithAny(DocumentId documentId, TextSpan span, ISet<(DocumentId documentId, TextSpan span)> constructorLocations) 311private ISet<(DocumentId documentId, TextSpan span)> GetConstructorLocations(Solution solution, INamedTypeSymbol containingType)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
516private readonly ISet<object>? _projectOrDocumentIds;
FindUsages\DefinitionsAndReferences.cs (1)
36var definitionSet = definitions.ToSet();
IntroduceVariable\AbstractIntroduceVariableService.cs (6)
293protected ISet<TExpressionSyntax> FindMatches( 358var matches = FindMatches(originalDocument, expressionInOriginal, currentDocument, [withinNodeInCurrent], allOccurrences, cancellationToken); 371ISet<TExpressionSyntax> matches) 419protected static async Task<(SemanticDocument newSemanticDocument, ISet<TExpressionSyntax> newMatches)> ComplexifyParentingStatementsAsync( 421ISet<TExpressionSyntax> matches, 428var newMatches = newSemanticDocument.Root.GetCurrentNodes(matches.AsEnumerable()).ToSet();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
15private readonly ISet<INamedTypeSymbol> _seenTypes = new HashSet<INamedTypeSymbol>();
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (2)
25protected abstract SyntaxNode Rewrite(SyntaxNode root, ISet<TMemberAccessExpressionSyntax> memberAccessNodes); 43var memberAccessNodes = diagnostics.Select(
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (1)
81var containers = diagnostics.Select(d => GetContainer(root, d.Location.FindNode(cancellationToken)))
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
175var documentsUpdated = locationsByDocument.Select(g => g.Key).ToSet();
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (3)
23protected static readonly ISet<TypeKind> EnumType = new HashSet<TypeKind> { TypeKind.Enum }; 24protected static readonly ISet<TypeKind> ClassInterfaceModuleStructTypes = new HashSet<TypeKind> 35ISet<TypeKind> typeKinds)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (2)
24protected abstract bool TryInitializeImplicitConversionState(SemanticDocument document, SyntaxNode expression, ISet<TypeKind> classInterfaceModuleStructTypes, CancellationToken cancellationToken, out SyntaxToken identifierToken, [NotNullWhen(true)] out IMethodSymbol? methodSymbol, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn); 25protected abstract bool TryInitializeExplicitConversionState(SemanticDocument document, SyntaxNode expression, ISet<TypeKind> classInterfaceModuleStructTypes, CancellationToken cancellationToken, out SyntaxToken identifierToken, [NotNullWhen(true)] out IMethodSymbol? methodSymbol, [NotNullWhen(true)] out INamedTypeSymbol? typeToGenerateIn);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (2)
124var reservedParameterNames = DetermineParameterNames(cancellationToken) 146var availableTypeParameterNames = allTypeParameters.Select(t => t.Name).ToSet();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (6)
23ISet<string> availableTypeParameterNames, 34Compilation compilation, ISet<string> availableTypeParameterNames, Project project, CancellationToken cancellationToken) : AsyncSymbolVisitor 39private readonly ISet<string> _availableTypeParameterNames = availableTypeParameterNames; 91var commonTypes = await GetDerivedAndImplementedTypesAsync( 96var currentTypes = await GetDerivedAndImplementedTypesAsync( 123private async Task<ISet<INamedTypeSymbol>> GetDerivedAndImplementedTypesAsync(
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (2)
450var constructorSpans = field.ContainingType 483ISet<(string filePath, TextSpan span)> constructorSpans,
Microsoft.CodeAnalysis.InteractiveHost (15)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Handler\Completion\CompletionCapabilityHelper.cs (3)
30public ISet<CompletionItemKind> SupportedItemKinds { get; } 31public ISet<CompletionItemTag> SupportedItemTags { get; } 32public ISet<InsertTextMode> SupportedInsertTextModes { get; }
Handler\Completion\CompletionResultFactory.cs (2)
191ISet<LSP.CompletionItemKind> supportedClientKinds) 217ISet<LSP.CompletionItemTag> supportedClientTags)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (32)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
75private async Task<ISet<INamespaceSymbol>> GetSafeToAddImportsAsync( 239var safeImportsToAdd = await GetSafeToAddImportsAsync(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
32var unusableNames = parameterNames.Concat(outerTypeParameterNames).ToSet(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
105var referencingStatements =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
137public static string GenerateUniqueName(string baseName, ISet<string> names, StringComparer comparer)
Microsoft.CodeAnalysis.PublicApiAnalyzers (26)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
Microsoft.CodeAnalysis.ResxSourceGenerator (26)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\CommonDiagnosticAnalyzers.cs (3)
1980var seenOperationContainers = new ConcurrentDictionary<OperationAnalysisContext, ISet<ISymbol>>(); 2069var containingSymbols = GetContainingSymbolsAndThis(operationContext.ContainingSymbol).ToSet(); 2144ISet<ISymbol> containers = kvp.Value;
Microsoft.CodeAnalysis.Threading.Package (15)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
Microsoft.CodeAnalysis.UnitTests (66)
Collections\HashSet\ISet_Generic_Tests`1.cs (48)
39protected abstract ISet<T> GenericISetFactory(); 46protected virtual ISet<T> GenericISetFactory(int count) 48ISet<T> collection = GenericISetFactory(); 56ISet<T> set = (ISet<T>)collection; 89ISet<T> set = GenericISetFactory(count); 126private void Validate_ExceptWith(ISet<T> set, IEnumerable<T> enumerable) 144private void Validate_IntersectWith(ISet<T> set, IEnumerable<T> enumerable) 170private void Validate_IsProperSubsetOf(ISet<T> set, IEnumerable<T> enumerable) 194private void Validate_IsProperSupersetOf(ISet<T> set, IEnumerable<T> enumerable) 219private void Validate_IsSubsetOf(ISet<T> set, IEnumerable<T> enumerable) 231private void Validate_IsSupersetOf(ISet<T> set, IEnumerable<T> enumerable) 243private void Validate_Overlaps(ISet<T> set, IEnumerable<T> enumerable) 257private void Validate_SetEquals(ISet<T> set, IEnumerable<T> enumerable) 279private void Validate_SymmetricExceptWith(ISet<T> set, IEnumerable<T> enumerable) 294private void Validate_UnionWith(ISet<T> set, IEnumerable<T> enumerable) 314ISet<T> set = GenericISetFactory(count); 347ISet<T> set = GenericISetFactory(setLength); 359ISet<T> set = GenericISetFactory(setLength); 369ISet<T> set = GenericISetFactory(setLength); 378ISet<T> set = GenericISetFactory(setLength); 387ISet<T> set = GenericISetFactory(setLength); 396ISet<T> set = GenericISetFactory(setLength); 405ISet<T> set = GenericISetFactory(setLength); 414ISet<T> set = GenericISetFactory(setLength); 425ISet<T> set = GenericISetFactory(setLength); 437ISet<T> set = GenericISetFactory(setLength); 453ISet<T> set = GenericISetFactory(setLength); 464ISet<T> set = GenericISetFactory(setLength); 473ISet<T> set = GenericISetFactory(setLength); 481ISet<T> set = GenericISetFactory(setLength); 489ISet<T> set = GenericISetFactory(setLength); 497ISet<T> set = GenericISetFactory(setLength); 505ISet<T> set = GenericISetFactory(setLength); 513ISet<T> set = GenericISetFactory(setLength); 523ISet<T> set = GenericISetFactory(setLength); 534ISet<T> set = GenericISetFactory(setLength); 548ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 559ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 568ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 576ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 584ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 592ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 600ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 608ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 618ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 629ISet<T> set = GenericISetFactory(ISet_Large_Capacity); 645ISet<T> set = GenericISetFactory(setLength);
Collections\HashSet\SegmentedHashSet_Generic_Tests.cs (8)
58protected override ISet<int> GenericISetFactory() 82protected override ISet<SimpleInt> GenericISetFactory() 96protected override ISet<EquatableBackwardsOrder> GenericISetFactory() 115protected override ISet<int> GenericISetFactory() 134protected override ISet<int> GenericISetFactory() 158protected override ISet<int> GenericISetFactory() 177protected override ISet<int> GenericISetFactory() 196protected override ISet<int> GenericISetFactory()
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (3)
36protected override ISet<T> GenericISetFactory() 359ISet<T> iset = (set as ISet<T>);
Collections\ImmutableSegmentedHashSetTest.cs (1)
225protected override ISet<T> EmptyMutable<T>()
Collections\ImmutableSetTest.cs (5)
171var set = (ISet<int>)this.Empty<int>(); 250protected abstract ISet<T> EmptyMutable<T>(); 359private void SetCompareTestHelper<T>(Func<System.Collections.Immutable.IImmutableSet<T>, Func<IEnumerable<T>, bool>> operation, Func<ISet<T>, Func<IEnumerable<T>, bool>> baselineOperation, IEnumerable<Tuple<IEnumerable<T>, IEnumerable<T>, bool>> scenarios) 369var baselineSet = this.EmptyMutable<T>();
InternalUtilities\SpecializedCollectionsTests.cs (1)
24var emptySet = useReferenceImplementation
Microsoft.CodeAnalysis.VisualBasic (7)
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
277Dim symbolsCapturedWithoutCtor As ISet(Of Symbol) = Nothing
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (3)
124Friend ReadOnly symbolsCapturedWithoutCopyCtor As ISet(Of Symbol) 126Private Sub New(method As MethodSymbol, symbolsCapturedWithoutCopyCtor As ISet(Of Symbol), diagnostics As BindingDiagnosticBag) 137Public Shared Function AnalyzeMethodBody(node As BoundBlock, method As MethodSymbol, symbolsCapturedWithoutCtor As ISet(Of Symbol), diagnostics As BindingDiagnosticBag) As Analysis
Symbols\Metadata\PE\PEPropertyOrEventHelpers.vb (3)
18Friend Shared Function GetPropertiesForExplicitlyImplementedAccessor(accessor As MethodSymbol) As ISet(Of PropertySymbol) 22Friend Shared Function GetEventsForExplicitlyImplementedAccessor(accessor As MethodSymbol) As ISet(Of EventSymbol) 27Private Shared Function GetSymbolsForExplicitlyImplementedAccessor(Of T As Symbol)(accessor As MethodSymbol) As ISet(Of T)
Microsoft.CodeAnalysis.Workspaces (41)
Classification\Classifier.cs (1)
104var semanticSet = semanticClassifications.Select(s => s.TextSpan).ToSet();
FindSymbols\FindReferences\DependentTypeFinder.cs (5)
93var projectsThatCouldReferenceType = await GetProjectsThatCouldReferenceTypeAsync( 399private static async Task<ISet<ProjectId>> GetProjectsThatCouldReferenceTypeAsync( 417var projectsThatCouldReferenceType = 433var projectsThatCouldReferenceType = GetProjectsThatCouldReferenceType( 495var allProjectsThatTheseProjectsDependOn = projects
Log\AggregateLogger.cs (1)
100var set = aggregateLogger._loggers.Where(l => !predicate(l)).ToSet();
Recommendations\AbstractRecommendationService.cs (1)
40protected static ISet<INamedTypeSymbol> ComputeOuterTypes(SyntaxContext context, CancellationToken cancellationToken)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
365var complexifiedLocationSpanForThisDocument = conflictLocations 761ISet<ConflictLocationInfo> conflictLocations,
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
328ISet<RenameLocation> renameLocations,
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
75private async Task<ISet<INamespaceSymbol>> GetSafeToAddImportsAsync( 239var safeImportsToAdd = await GetSafeToAddImportsAsync(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
32var unusableNames = parameterNames.Concat(outerTypeParameterNames).ToSet(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
105var referencingStatements =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
137public static string GenerateUniqueName(string baseName, ISet<string> names, StringComparer comparer)
Workspace\Solution\SolutionCompilationState.cs (1)
641var newDocumentIdSet = newDocumentInfos.Select(static d => d.Id).ToSet();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (19)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\IntervalTreeTests.cs (1)
342private static ISet<T> Set<T>(params T[] values)
Microsoft.DotNet.Build.Tasks.Packaging (1)
CreateTrimDependencyGroups.cs (1)
228public ISet<TaskItemPackageDependency> Packages { get; }
Microsoft.DotNet.Cli.Utils (2)
Extensions\MSBuildProjectExtensions.cs (2)
17var condChain = el.ConditionChain(); 21public static ISet<string> ConditionChain(this ProjectElement projectElement)
Microsoft.DotNet.MSBuildSdkResolver (4)
IWorkloadResolver.cs (2)
16ISet<WorkloadResolver.WorkloadInfo>? GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packId, out ISet<WorkloadPackId> unsatisfiablePacks);
WorkloadResolver.cs (2)
513public ISet<WorkloadInfo>? GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packIds, out ISet<WorkloadPackId> unsatisfiablePacks)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\ServiceClientModelFactory.cs (1)
418ISet<string> requiredProperties = schema.Required;
Microsoft.DotNet.TemplateLocator (4)
IWorkloadResolver.cs (2)
16ISet<WorkloadResolver.WorkloadInfo>? GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packId, out ISet<WorkloadPackId> unsatisfiablePacks);
WorkloadResolver.cs (2)
513public ISet<WorkloadInfo>? GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packIds, out ISet<WorkloadPackId> unsatisfiablePacks)
Microsoft.DotNet.XliffTasks (1)
Model\XlfDocument.cs (1)
275public ISet<string> GetUntranslatedResourceIDs()
Microsoft.DotNet.XliffTasks.Tests (3)
XlfDocumentTests.cs (3)
457ISet<string> untranslatedResources = UntranslatedResources(xliff); 487ISet<string> untranslatedResources = UntranslatedResources(xliff); 651private static ISet<string> UntranslatedResources(string xliff)
Microsoft.DotNet.XUnitAssert.Tests (25)
EqualityAssertsTests.cs (20)
1311 Assert.Equal(expected, (ISet<string>)actual); 1365 Assert.Equal(expected, (ISet<string>)actual); 1391 assertFailure(() => Assert.Equal(expected, (ISet<string>)actual)); 1404 Assert.Equal(expected, (ISet<string>)actual); 1430 assertFailure(() => Assert.Equal(expected, (ISet<string>)actual)); 1456 assertFailure(() => Assert.Equal(expected, (ISet<string>)actual)); 1469 Assert.Equal(expected, (ISet<string>)actual); 1495 assertFailure(() => Assert.Equal(expected, (ISet<string>)actual)); 1508 Assert.Equal(expected, (ISet<string>)actual); 1534 assertFailure(() => Assert.Equal(expected, (ISet<string>)actual)); 3518 assertFailure(() => Assert.NotEqual(expected, (ISet<string>)actual)); 3577 assertFailure(() => Assert.NotEqual(expected, (ISet<string>)actual)); 3590 Assert.NotEqual(expected, (ISet<string>)actual); 3616 assertFailure(() => Assert.NotEqual(expected, (ISet<string>)actual)); 3629 Assert.NotEqual(expected, (ISet<string>)actual); 3642 Assert.NotEqual(expected, (ISet<string>)actual); 3668 assertFailure(() => Assert.NotEqual(expected, (ISet<string>)actual)); 3681 Assert.NotEqual(expected, (ISet<string>)actual); 3707 assertFailure(() => Assert.NotEqual(expected, (ISet<string>)actual)); 3720 Assert.NotEqual(expected, (ISet<string>)actual);
SetAssertsTests.cs (4)
20 Assert.Contains("FORTY-two", (ISet<string>)set); 50 assertFailure(() => Assert.Contains("FORTY-two", (ISet<string>)set)); 70 Assert.DoesNotContain("FORTY-two", (ISet<string>)set); 100 assertFailure(() => Assert.DoesNotContain("FORTY-two", (ISet<string>)set));
SetExtensions.cs (1)
5 public static SortedSet<T> ToSortedSet<T>(this ISet<T> set, IComparer<T>? comparer = null) =>
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1064return genericTypeDefinition == typeof(ISet<>)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
HealthCheckRegistration.cs (1)
190public ISet<string> Tags { get; }
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceMonitoringOptions.Windows.cs (1)
20public ISet<string> SourceIpAddresses { get; set; } = new HashSet<string>();
Windows\Network\WindowsTcpStateInfo.cs (1)
30var stringAddresses = options.Value.SourceIpAddresses;
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogCollectorOptions.cs (2)
24public ISet<string> FilteredCategories { get; set; } = new HashSet<string>(); 34public ISet<LogLevel> FilteredLevels { get; set; } = new HashSet<LogLevel>();
Microsoft.Extensions.Http.Diagnostics (2)
Logging\LoggingOptions.cs (2)
92public ISet<string> RequestBodyContentTypes { get; set; } = new HashSet<string>(); 98public ISet<string> ResponseBodyContentTypes { get; set; } = new HashSet<string>();
Microsoft.Extensions.Http.Diagnostics.Tests (8)
Telemetry\BackslashDownstreamDependencyMetadata.cs (4)
11private static readonly ISet<string> _uniqueHostNameSuffixes = new HashSet<string> 16private static readonly ISet<RequestMetadata> _requestMetadataSet = new HashSet<RequestMetadata> 26public ISet<string> UniqueHostNameSuffixes => _uniqueHostNameSuffixes; 28public ISet<RequestMetadata> RequestMetadata => _requestMetadataSet;
Telemetry\EmptyRouteDependencyMetadata.cs (4)
11private static readonly ISet<string> _uniqueHostNameSuffixes = new HashSet<string> 16private static readonly ISet<RequestMetadata> _requestMetadataSet = new HashSet<RequestMetadata> 24public ISet<string> UniqueHostNameSuffixes => _uniqueHostNameSuffixes; 26public ISet<RequestMetadata> RequestMetadata => _requestMetadataSet;
Microsoft.Extensions.Telemetry.Abstractions (2)
Http\IDownstreamDependencyMetadata.cs (2)
21ISet<string> UniqueHostNameSuffixes { get; } 26ISet<RequestMetadata> RequestMetadata { get; }
Microsoft.Gen.Logging (1)
Parsing\Parser.LogProperties.cs (1)
85ISet<ITypeSymbol> typesChain,
Microsoft.Gen.MetadataExtractor (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
677ISet<ITypeSymbol> typesChain, 853ISet<ITypeSymbol> typesChain,
Microsoft.Gen.Metrics (2)
Parser.cs (2)
677ISet<ITypeSymbol> typesChain, 853ISet<ITypeSymbol> typesChain,
Microsoft.Gen.MetricsReports (2)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
677ISet<ITypeSymbol> typesChain, 853ISet<ITypeSymbol> typesChain,
Microsoft.ML.AutoML (3)
Sweepers\SweeperBase.cs (1)
73protected static bool AlreadyGenerated(ParameterSet paramSet, ISet<ParameterSet> previousRuns)
TrainerExtensions\SweepableParams.cs (2)
68public static ISet<string> AllHyperparameterNames = GetAllSweepableParameterNames(); 199public static ISet<string> GetAllSweepableParameterNames()
Microsoft.ML.Data (4)
Commands\TypeInfoCommand.cs (4)
54private sealed class SetOfKindsComparer : IEqualityComparer<ISet<InternalDataKind>> 56public bool Equals(ISet<InternalDataKind> x, ISet<InternalDataKind> y) 65public int GetHashCode(ISet<InternalDataKind> obj)
Microsoft.NET.Build.Tasks (6)
IWorkloadResolver.cs (2)
16ISet<WorkloadResolver.WorkloadInfo>? GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packId, out ISet<WorkloadPackId> unsatisfiablePacks);
ShowMissingWorkloads.cs (2)
50var suggestedWorkloads = workloadResolver.GetWorkloadSuggestionForMissingPacks( 52out ISet<WorkloadPackId> unsatisfiablePacks
WorkloadResolver.cs (2)
513public ISet<WorkloadInfo>? GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packIds, out ISet<WorkloadPackId> unsatisfiablePacks)
Microsoft.NET.Build.Tests (3)
GivenThatWeWantToControlGeneratedAssemblyInfo.cs (3)
80var actualInfo = AssemblyInfo.Get(assemblyPath); 259var info = AssemblyInfo.Get(assemblyPath); 287var info = AssemblyInfo.Get(assemblyPath);
Microsoft.NET.Sdk.WorkloadManifestReader (4)
IWorkloadResolver.cs (2)
16ISet<WorkloadResolver.WorkloadInfo>? GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packId, out ISet<WorkloadPackId> unsatisfiablePacks);
WorkloadResolver.cs (2)
513public ISet<WorkloadInfo>? GetWorkloadSuggestionForMissingPacks(IList<WorkloadPackId> packIds, out ISet<WorkloadPackId> unsatisfiablePacks)
Microsoft.NET.Sdk.WorkloadManifestReader.Tests (6)
WorkloadSuggestionFinderTests.cs (6)
27var suggestions = resolver.GetWorkloadSuggestionForMissingPacks( 29out var unsatisfiable); 51var suggestions = resolver.GetWorkloadSuggestionForMissingPacks( 53out var unsatisfiable); 76var suggestions = resolver.GetWorkloadSuggestionForMissingPacks( 78out var unsatisfiable);
Microsoft.NET.TestFramework (1)
AssemblyInfo.cs (1)
49public static ISet<(string Key, string Value)> Get(string assemblyPath)
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\CPS\ITempPECompiler.cs (1)
28Task<bool> CompileAsync(IWorkspaceProjectContext context, string outputFileName, ISet<string> filesToInclude, CancellationToken cancellationToken);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\CSharpSnippetInfoService.cs (1)
25private readonly ISet<string> _formatTriggeringSnippets = new HashSet<string>(new string[] { "#region", "#endregion" });
Microsoft.VisualStudio.LanguageServices.Implementation (1)
ProjectSystem\CPS\TempPECompiler.cs (1)
29public async Task<bool> CompileAsync(IWorkspaceProjectContext context, string outputFileName, ISet<string> filesToInclude, CancellationToken cancellationToken)
MSBuild (14)
XMake.cs (14)
694ISet<string> warningsAsErrors = null; 695ISet<string> warningsNotAsErrors = null; 696ISet<string> warningsAsMessages = null; 1283ISet<string> warningsAsErrors, 1284ISet<string> warningsNotAsErrors, 1285ISet<string> warningsAsMessages, 2524ref ISet<string> warningsAsErrors, 2525ref ISet<string> warningsNotAsErrors, 2526ref ISet<string> warningsAsMessages, 3323private static ISet<string> ProcessWarningRelatedSwitch(CommandLineSwitches commandLineSwitches, CommandLineSwitches.ParameterizedSwitch warningSwitch) 3332ISet<string> warningSwitches = new HashSet<string>(StringComparer.OrdinalIgnoreCase); 3352internal static ISet<string> ProcessWarnAsErrorSwitch(CommandLineSwitches commandLineSwitches) 3357internal static ISet<string> ProcessWarnAsMessageSwitch(CommandLineSwitches commandLineSwitches) 3362internal static ISet<string> ProcessWarnNotAsErrorSwitch(CommandLineSwitches commandLineSwitches)
Msbuild.Tests.Utilities (1)
ProjectRootElementExtensions.cs (1)
36var condChain = it.ConditionChain();
netstandard (1)
netstandard.cs (1)
122[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.ISet<>))]
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
23private static readonly ISet<char> _restrictedCharSet = new SortedSet<char>((new char[] { '=', ',', '\'', '"', '{', '}', '\\' }));
PresentationFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
23private static readonly ISet<char> _restrictedCharSet = new SortedSet<char>((new char[] { '=', ',', '\'', '"', '{', '}', '\\' }));
Roslyn.Diagnostics.Analyzers (34)
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (2)
75var badNamespaces = exportAttributes.Except(appliedExportAttributes).Select(s => s.ContainingNamespace).ToSet(); 76var goodNamespaces = appliedExportAttributes.Select(s => s.ContainingNamespace).ToSet();
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
75private async Task<ISet<INamespaceSymbol>> GetSafeToAddImportsAsync( 239var safeImportsToAdd = await GetSafeToAddImportsAsync(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
32var unusableNames = parameterNames.Concat(outerTypeParameterNames).ToSet(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
105var referencingStatements =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
137public static string GenerateUniqueName(string baseName, ISet<string> names, StringComparer comparer)
Roslyn.Diagnostics.CSharp.Analyzers (44)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
161public static ISet<INamespaceSymbol> GetUsingNamespacesInScope(this SemanticModel semanticModel, SyntaxNode location)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
17public static ISet<SyntaxKind> GetPrecedingModifiers(this SyntaxTree syntaxTree, int position, CancellationToken cancellationToken) 20public static ISet<SyntaxKind> GetPrecedingModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
543var blockStatements = block.Statements.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (10)
47public readonly ISet<SyntaxKind> PrecedingModifiers; 110ISet<SyntaxKind> precedingModifiers, 227var precedingModifiers = syntaxTree.GetPrecedingModifiers(position, cancellationToken); 323ISet<SyntaxKind>? validModifiers = null, 324ISet<SyntaxKind>? validTypeDeclarations = null, 331public bool IsRecordDeclarationContext(ISet<SyntaxKind> validModifiers, CancellationToken cancellationToken) 339var modifiers = SyntaxTree.GetPrecedingModifiers(positionBeforeRecordKeyword, cancellationToken); 345ISet<SyntaxKind> validTypeDeclarations, bool includingRecordParameters, CancellationToken cancellationToken) 402ISet<SyntaxKind>? validModifiers = null, 403ISet<SyntaxKind>? validTypeDeclarations = null,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (12)
21private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 80ISet<SyntaxKind> validModifiers, 92var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken); 243ISet<SyntaxKind>? validModifiers, 244ISet<SyntaxKind>? validTypeDeclarations, 290var modifierTokens = context?.PrecedingModifiers ?? syntaxTree.GetPrecedingModifiers(position, cancellationToken); 325var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken, out position); 342ISet<SyntaxKind> validModifiers, 345var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken, out position); 532ISet<SyntaxKind>? validModifiers, 533ISet<SyntaxKind>? validTypeDeclarations, 587var modifierTokens = context?.PrecedingModifiers ?? syntaxTree.GetPrecedingModifiers(position, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (6)
24private readonly ISet<UsingDirectiveSyntax> _unnecessaryUsingsDoNotAccessDirectly; 28ISet<UsingDirectiveSyntax> unnecessaryUsings, 44ISet<UsingDirectiveSyntax> usingsToRemove, 128private ISet<UsingDirectiveSyntax> GetUsingsToRemove( 150var usingsToRemove = GetUsingsToRemove(node.Usings, compilationUnit.Usings); 204var usingsToRemove = GetUsingsToRemove(node.Usings, namespaceDeclaration.Usings);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (12)
11public static readonly ISet<SyntaxKind> AllTypeModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 27public static readonly ISet<SyntaxKind> AllMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 47public static readonly ISet<SyntaxKind> AllGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 61public static readonly ISet<SyntaxKind> AccessibilityModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 69public static readonly ISet<SyntaxKind> AllTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 79public static readonly ISet<SyntaxKind> ClassInterfaceStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 88public static readonly ISet<SyntaxKind> NonEnumTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 100public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 107public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 113public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 121public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 127public static readonly ISet<SyntaxKind> InterfaceOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
System (1)
src\libraries\shims\System\ref\System.cs (1)
134[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.ISet<>))]
System.Collections.Immutable (31)
System\Collections\Frozen\FrozenSet.cs (11)
401bool ISet<T>.Add(T item) => throw new NotSupportedException(); 404void ISet<T>.ExceptWith(IEnumerable<T> other) => throw new NotSupportedException(); 407void ISet<T>.IntersectWith(IEnumerable<T> other) => throw new NotSupportedException(); 410void ISet<T>.SymmetricExceptWith(IEnumerable<T> other) => throw new NotSupportedException(); 413void ISet<T>.UnionWith(IEnumerable<T> other) => throw new NotSupportedException(); 424/// <inheritdoc cref="ISet{T}.IsProperSubsetOf(IEnumerable{T})" /> 434/// <inheritdoc cref="ISet{T}.IsProperSupersetOf(IEnumerable{T})" /> 444/// <inheritdoc cref="ISet{T}.IsSubsetOf(IEnumerable{T})" /> 454/// <inheritdoc cref="ISet{T}.IsSupersetOf(IEnumerable{T})" /> 464/// <inheritdoc cref="ISet{T}.Overlaps(IEnumerable{T})" /> 474/// <inheritdoc cref="ISet{T}.SetEquals(IEnumerable{T})" />
System\Collections\Immutable\ImmutableHashSet_1.cs (10)
438/// See <see cref="ISet{T}"/> 440bool ISet<T>.Add(T item) 446/// See <see cref="ISet{T}"/> 448void ISet<T>.ExceptWith(IEnumerable<T> other) 454/// See <see cref="ISet{T}"/> 456void ISet<T>.IntersectWith(IEnumerable<T> other) 462/// See <see cref="ISet{T}"/> 464void ISet<T>.SymmetricExceptWith(IEnumerable<T> other) 470/// See <see cref="ISet{T}"/> 472void ISet<T>.UnionWith(IEnumerable<T> other)
System\Collections\Immutable\ImmutableSortedSet_1.cs (10)
662/// See <see cref="ISet{T}"/> 664bool ISet<T>.Add(T item) 670/// See <see cref="ISet{T}"/> 672void ISet<T>.ExceptWith(IEnumerable<T> other) 678/// See <see cref="ISet{T}"/> 680void ISet<T>.IntersectWith(IEnumerable<T> other) 686/// See <see cref="ISet{T}"/> 688void ISet<T>.SymmetricExceptWith(IEnumerable<T> other) 694/// See <see cref="ISet{T}"/> 696void ISet<T>.UnionWith(IEnumerable<T> other)
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (2)
74/// <returns>An object that acts as a read-only wrapper around the current <see cref="ISet{T}"/>.</returns> 76public static ReadOnlySet<T> AsReadOnly<T>(this ISet<T> set) =>
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (8)
17private readonly ISet<T> _set; 21public ReadOnlySet(ISet<T> set) 31protected ISet<T> Set => _set; 81bool ISet<T>.Add(T item) => throw new NotSupportedException(); 84void ISet<T>.ExceptWith(IEnumerable<T> other) => throw new NotSupportedException(); 87void ISet<T>.IntersectWith(IEnumerable<T> other) => throw new NotSupportedException(); 90void ISet<T>.SymmetricExceptWith(IEnumerable<T> other) => throw new NotSupportedException(); 93void ISet<T>.UnionWith(IEnumerable<T> other) => throw new NotSupportedException();
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
90[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.ISet<>))]
System.Security.Cryptography (3)
System\Security\Cryptography\X509Certificates\CertificatePolicy.cs (3)
14public ISet<string>? DeclaredCertificatePolicies { get; set; } 17public ISet<string>? DeclaredApplicationPolicies { get; set; } 278private static bool CheckExplicitAnyPolicy(ISet<string>? declaredPolicies)
System.Text.Json (4)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (1)
106else if ((actualTypeToConvert = typeToConvert.GetCompatibleGenericInterface(typeof(ISet<>))) != null)
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (1)
12where TCollection : ISet<TElement>
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs (2)
197/// Creates serialization metadata for types assignable to <see cref="ISet{T}"/>. 208where TCollection : ISet<TElement>
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
52public INamedTypeSymbol? ISetOfTType => GetOrResolveType(typeof(ISet<>), ref _ISetOfTType);
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
23private static readonly ISet<char> _restrictedCharSet = new SortedSet<char>((new char[] { '=', ',', '\'', '"', '{', '}', '\\' }));
Templates.Blazor.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Templates.Mvc.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Templates.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Test.Utilities (4)
DoNotCatchGeneralUnlessRethrown.cs (1)
118public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
IEnumerableExtensions.cs (2)
34public static ISet<T> ToSet<T>(this IEnumerable<T> source) 41return source as ISet<T> ?? new HashSet<T>(source);
ISetExtensions.cs (1)
7public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
Text.Analyzers (32)
src\Compilers\Core\Portable\InternalUtilities\ISetExtensions.cs (4)
12public static bool AddAll<T>(this ISet<T> set, IEnumerable<T> values) 23public static bool AddAll<T>(this ISet<T> set, ImmutableArray<T> values) 34public static bool RemoveAll<T>(this ISet<T> set, IEnumerable<T> values) 45public static bool RemoveAll<T>(this ISet<T> set, ImmutableArray<T> values)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
135public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 145public static ISet<T> ToSet<T>(this IEnumerable<T> source) 152return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
370bool ISet<T>.Add(T item) 373void ISet<T>.UnionWith(IEnumerable<T> other) 376void ISet<T>.IntersectWith(IEnumerable<T> other) 379void ISet<T>.ExceptWith(IEnumerable<T> other) 382void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
43public static ISet<T> EmptySet<T>() 102public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 106: new ReadOnly.Set<ISet<T>, T>(set); 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 113: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
17where TUnderlying : ISet<T>
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
16public static ISet<T> ToSet<T>(this IEnumerable<T> source) 23return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
29var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
809ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
18private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
75private async Task<ISet<INamespaceSymbol>> GetSafeToAddImportsAsync( 239var safeImportsToAdd = await GetSafeToAddImportsAsync(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (1)
32var unusableNames = parameterNames.Concat(outerTypeParameterNames).ToSet(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
166var nodesToVerify = nodesBySemanticBoundary.Where(group => group.Skip(1).Any()).Flatten().ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
105var referencingStatements =
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
137public static string GenerateUniqueName(string baseName, ISet<string> names, StringComparer comparer)
xunit.assert (28)
CollectionAsserts.cs (4)
245 var set = collection as ISet<T>; 357 var set = collection as ISet<T>;
EqualityAsserts.cs (2)
39 static readonly Type typeofSet = typeof(ISet<>); 301 [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ISet<>))]
Sdk\ArgumentFormatter.cs (2)
575 [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ISet<>))] 590 where genericTypeDefinition == typeof(ISet<>)
Sdk\CollectionTracker.cs (2)
351 ISet<T> setX, 352 ISet<T> setY,
SetAsserts.cs (18)
38 ISet<T> set) 88 Contains(expected, (ISet<T>)set); 100 Contains(expected, (ISet<T>)set); 113 Contains(expected, (ISet<T>)set); 125 Contains(expected, (ISet<T>)set); 137 ISet<T> set) 190 DoesNotContain(expected, (ISet<T>)set); 202 DoesNotContain(expected, (ISet<T>)set); 220 DoesNotContain(expected, (ISet<T>)set); 232 DoesNotContain(expected, (ISet<T>)set); 248 ISet<T> expectedSubset, 250 ISet<T>? actual) 277 ISet<T> expectedSuperset, 279 ISet<T>? actual) 301 ISet<T> expectedSubset, 303 ISet<T>? actual) 325 ISet<T> expectedSuperset, 327 ISet<T>? actual)