52 implementations of ISet
Microsoft.CodeAnalysis (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
14public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
16private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
24internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.CodeStyle (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
14public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
16private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
24internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Collections.Package (6)
Segmented\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
14public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
16private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
Segmented\SegmentedHashSet`1.cs (1)
24internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.InteractiveHost (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
14public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
16private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
24internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Threading.Package (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
14public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
16private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
24internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Workspaces (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
14public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
16private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
24internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal 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)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
14public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
16private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
24internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal 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)
31public 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
838 references to ISet
Aspire.Dashboard (2)
Components\Controls\Chart\MetricTable.razor.cs (2)
62_metrics = UpdateMetrics(out var xValuesToAnnounce, traces, xValues, exemplars); 114private 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<>));
InteropTests (1)
src\Shared\Process\ProcessExtensions.cs (1)
41private static void GetAllChildIdsUnix(int parentId, ISet<int> children, TimeSpan timeout)
Metrics (4)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
Metrics.Legacy (4)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
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)
101public 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 (73)
BackEnd\BuildManager\BuildManager.cs (3)
2959ISet<string> warningsAsErrors, 2960ISet<string> warningsNotAsErrors, 2961ISet<string> warningsAsMessages)
BackEnd\BuildManager\BuildParameters.cs (3)
568public ISet<string> WarningsAsErrors { get; set; } 573public ISet<string> WarningsNotAsErrors { get; set; } 578public 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)
165ISet<string> WarningsAsErrors 174ISet<string> WarningsNotAsErrors 183ISet<string> WarningsAsMessages 254void AddWarningsAsMessages(BuildEventContext buildEventContext, ISet<string> codes); 261void AddWarningsAsErrors(BuildEventContext buildEventContext, ISet<string> codes); 268void 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; 504public ISet<string> WarningsAsErrors 513public ISet<string> WarningsNotAsErrors 522public ISet<string> WarningsAsMessages 693private ICollection<string> GetWarningsForProject(BuildEventContext context, IDictionary<WarningsConfigKey, ISet<string>> warningsByProject, ISet<string> warnings) 697if (warningsByProject != null && warningsByProject.TryGetValue(key, out ISet<string> newWarnings)) 717public void AddWarningsAsErrors(BuildEventContext buildEventContext, ISet<string> codes) 727public void AddWarningsNotAsErrors(BuildEventContext buildEventContext, ISet<string> codes) 737public void AddWarningsAsMessages(BuildEventContext buildEventContext, ISet<string> codes) 748private void AddWarningsAsMessagesOrErrors(ref IDictionary<WarningsConfigKey, ISet<string>> warningsByProject, BuildEventContext buildEventContext, ISet<string> codes) 759warningsByProject ??= new ConcurrentDictionary<WarningsConfigKey, ISet<string>>(); 1942if (_warningsAsMessagesByProject.TryGetValue(GetWarningsConfigKey(warningEvent), out ISet<string> codesByProject)) 1955return WarningsNotAsErrors?.Contains(warningEvent.Code) != true && !(_warningsNotAsErrorsByProject?.TryGetValue(key, out ISet<string> notToError) == true && notToError.Contains(warningEvent.Code)); 1981if (_warningsAsErrorsByProject.TryGetValue(key, out ISet<string> codesByProject)) 1985ISet<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)
1471ISet<string> warningsAsErrors = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsAsErrors)); 1479ISet<string> warningsNotAsErrors = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsNotAsErrors)); 1486ISet<string> warningsAsMessages = ParseWarningCodes(project.GetEngineRequiredPropertyValue(MSBuildConstants.WarningsAsMessages)); 1504private static ISet<string> ParseWarningCodes(string warnings)
Definition\Project.cs (8)
846internal ISet<string> GlobalPropertiesToTreatAsLocal => implementationInternal.GlobalPropertiesToTreatAsLocal; 2500public ISet<string> GlobalPropertiesToTreatAsLocal => _data.GlobalPropertiesToTreatAsLocal; 3967ISet<string> GlobalPropertiesToTreatAsLocal { get; } 3988public ISet<string> GlobalPropertiesToTreatAsLocal { get { throw new NotImplementedException(); } } 4027private ISet<string> _globalPropertiesToTreatAsLocal; 4078public ISet<string> GlobalPropertiesToTreatAsLocal => _globalPropertiesToTreatAsLocal ?? (_globalPropertiesToTreatAsLocal = 4665/// Gets an <see cref="ISet{String}"/> containing strings that were excluded. 4670/// 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)
141public ISet<string> GlobalPropertiesToTreatAsLocal
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
60ISet<string>? excludePatternsForGlobs = null; 145private 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;
Instance\ProjectInstance.cs (2)
110private ISet<string> _globalPropertiesToTreatAsLocal; 1348ISet<string> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.GlobalPropertiesToTreatAsLocal
Microsoft.Build.CommandLine.UnitTests (8)
CommandLineSwitches_Tests.cs (8)
1277ISet<string> expectedWarningsAsErrors = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "a", "B", "c", "D", "e" }; 1291ISet<string> actualWarningsAsErrors = MSBuildApp.ProcessWarnAsErrorSwitch(commandLineSwitches); 1312ISet<string> actualWarningsAsErrors = MSBuildApp.ProcessWarnAsErrorSwitch(commandLineSwitches); 1325ISet<string> expectedWarningsAsErors = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "e", "f", "g" }; 1336ISet<string> actualWarningsAsErrors = MSBuildApp.ProcessWarnAsErrorSwitch(commandLineSwitches); 1353ISet<string> actualWarningsAsErrors = MSBuildApp.ProcessWarnAsErrorSwitch(commandLineSwitches); 1404ISet<string> expectedWarningsAsMessages = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "a", "B", "c", "D", "e" }; 1418ISet<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)
165public ISet<string> WarningsAsErrors 174public ISet<string> WarningsNotAsErrors 183public ISet<string> WarningsAsMessages 256public void AddWarningsAsMessages(BuildEventContext buildEventContext, ISet<string> codes) 261public void AddWarningsAsErrors(BuildEventContext buildEventContext, ISet<string> codes) 266public void AddWarningsNotAsErrors(BuildEventContext buildEventContext, ISet<string> codes)
FileMatcher_Tests.cs (3)
2054private int GetMatchingFiles(string[] candidates, string path, string pattern, ISet<string> files) 2134private void GetMatchingDirectories(string[] candidates, string path, string pattern, ISet<string> directories) 2195ISet<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) 484foreach (KeyValuePair<string, ISet<string>> validLanguage in ValidCodeLanguages) 531ISet<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)
792ISet<string> expectedReferences = null, 793ISet<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; 352out 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)
160public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 170public static ISet<T> ToSet<T>(this IEnumerable<T> source) 177return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
368bool ISet<T>.Add(T item) 371void ISet<T>.UnionWith(IEnumerable<T> other) 374void ISet<T>.IntersectWith(IEnumerable<T> other) 377void ISet<T>.ExceptWith(IEnumerable<T> other) 380void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
41public static ISet<T> EmptySet<T>() 100public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 104: new ReadOnly.Set<ISet<T>, T>(set); 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 111: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
15where TUnderlying : ISet<T>
Microsoft.CodeAnalysis.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
631ISet<string> taintedParameterNames,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataSymbolMapExtensions.cs (1)
186ISet<string> taintedParameterNames,
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
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)
160public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 170public static ISet<T> ToSet<T>(this IEnumerable<T> source) 177return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
368bool ISet<T>.Add(T item) 371void ISet<T>.UnionWith(IEnumerable<T> other) 374void ISet<T>.IntersectWith(IEnumerable<T> other) 377void ISet<T>.ExceptWith(IEnumerable<T> other) 380void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
41public static ISet<T> EmptySet<T>() 100public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 104: new ReadOnly.Set<ISet<T>, T>(set); 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 111: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
15where TUnderlying : ISet<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
168=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
780ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
15private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
28var existingConstants = orderedExistingConstants.ToSet();
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
75private async Task<ISet<INamespaceSymbol>> GetSafeToAddImportsAsync(
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)
160public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 170public static ISet<T> ToSet<T>(this IEnumerable<T> source) 177return source as ISet<T> ?? new HashSet<T>(source);
Segmented\ImmutableSegmentedHashSet`1.cs (5)
368bool ISet<T>.Add(T item) 371void ISet<T>.UnionWith(IEnumerable<T> other) 374void ISet<T>.IntersectWith(IEnumerable<T> other) 377void ISet<T>.ExceptWith(IEnumerable<T> other) 380void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
Specialized\SpecializedCollections.cs (6)
41public static ISet<T> EmptySet<T>() 100public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 104: new ReadOnly.Set<ISet<T>, T>(set); 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 111: new ReadOnly.Set<ISet<T>, T>(set);
Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
15where 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)
160var cachedTypeNames = _cache.TypeNames; 174var cachedNamespaceNames = _cache.NamespaceNames; 203private static ISet<string> GetTypeNames(Declaration declaration) 208private static ISet<string> GetNamespaceNames(Declaration declaration) 213private 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)
796var propertiesWithImplementedGetters = PEPropertyOrEventHelpers.GetPropertiesForExplicitlyImplementedAccessor(_getMethod); 797var propertiesWithImplementedSetters = PEPropertyOrEventHelpers.GetPropertiesForExplicitlyImplementedAccessor(_setMethod);
Symbols\PropertyOrEventSymbolExtensions.cs (3)
21internal static ISet<PropertySymbol> GetPropertiesForExplicitlyImplementedAccessor(MethodSymbol accessor) 26internal static ISet<EventSymbol> GetEventsForExplicitlyImplementedAccessor(MethodSymbol accessor) 32private static ISet<T> GetSymbolsForExplicitlyImplementedAccessor<T>(MethodSymbol accessor) where T : Symbol
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
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 (39)
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\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
66ISet<UsingStatementSyntax> topmostUsingStatements)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\CSharpSyntaxContext.cs (8)
47public readonly ISet<SyntaxKind> PrecedingModifiers; 110ISet<SyntaxKind> precedingModifiers, 323ISet<SyntaxKind>? validModifiers = null, 324ISet<SyntaxKind>? validTypeDeclarations = null, 331public bool IsRecordDeclarationContext(ISet<SyntaxKind> validModifiers, CancellationToken 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 (7)
20private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 79ISet<SyntaxKind> validModifiers, 242ISet<SyntaxKind>? validModifiers, 243ISet<SyntaxKind>? validTypeDeclarations, 341ISet<SyntaxKind> validModifiers, 531ISet<SyntaxKind>? validModifiers, 532ISet<SyntaxKind>? validTypeDeclarations,
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) 98public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 105public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 111public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 119public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 125public static readonly ISet<SyntaxKind> InterfaceOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer)
Microsoft.CodeAnalysis.CSharp.Features (105)
AddImport\CSharpAddImportFeatureService.cs (1)
233protected override ISet<INamespaceSymbol> GetImportNamespacesInScope(
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\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)
106if (IsAttributeNameContext(token, position, out var elementName, out var existingAttributes)) 211private 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)
20private static readonly ISet<SyntaxKind> RefMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 42private static readonly ISet<SyntaxKind> RefGlobalMemberModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 60private 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)
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
152ISet<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 (2)
381ISet<StatementSyntax> allAffectedStatements = new HashSet<StatementSyntax>(matches.SelectMany(expr => GetApplicableStatementAncestors(expr))); 439private static int GetFirstStatementAffectedIndex(SyntaxNode innermostCommonBlock, ISet<ExpressionSyntax> matches, int firstStatementAffectedIndex)
SignatureHelp\InvocationExpressionSignatureHelpProviderBase_MethodGroup.cs (1)
88private static bool IsHiddenByOtherMethod(IMethodSymbol method, ISet<IMethodSymbol> methodSet)
SimplifyThisOrMe\CSharpSimplifyThisOrMeCodeFixProvider.cs (3)
29protected override SyntaxNode Rewrite(SyntaxNode root, ISet<MemberAccessExpressionSyntax> memberAccessNodes) 32private sealed class Rewriter(ISet<MemberAccessExpressionSyntax> memberAccessNodes) : CSharpSyntaxRewriter 34private 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\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (5)
56ISet<TypeKind> classInterfaceModuleStructTypes, 82ISet<TypeKind> classInterfaceModuleStructTypes, 108ISet<TypeKind> classInterfaceModuleStructTypes, 136ISet<TypeKind> classInterfaceModuleStructTypes, 167ISet<TypeKind> classInterfaceModuleStructTypes,
src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (1)
66ISet<UsingStatementSyntax> topmostUsingStatements)
UseAutoProperty\UseAutoPropertyRewriter.cs (2)
16ISet<IdentifierNameSyntax> identifierNames) : CSharpSyntaxRewriter 19private readonly ISet<IdentifierNameSyntax> _identifierNames = identifierNames;
Microsoft.CodeAnalysis.CSharp.Workspaces (43)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
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\Extensions\ContextQuery\CSharpSyntaxContext.cs (9)
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) 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)
20private static readonly ISet<SyntaxKind> s_validLocalFunctionModifiers = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 79ISet<SyntaxKind> validModifiers, 91var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken); 242ISet<SyntaxKind>? validModifiers, 243ISet<SyntaxKind>? validTypeDeclarations, 289var modifierTokens = context?.PrecedingModifiers ?? syntaxTree.GetPrecedingModifiers(position, cancellationToken); 324var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken, out position); 341ISet<SyntaxKind> validModifiers, 344var modifierTokens = syntaxTree.GetPrecedingModifiers(position, cancellationToken, out position); 531ISet<SyntaxKind>? validModifiers, 532ISet<SyntaxKind>? validTypeDeclarations, 586var 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) 98public static readonly ISet<SyntaxKind> ClassInterfaceRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 105public static readonly ISet<SyntaxKind> ClassRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 111public static readonly ISet<SyntaxKind> ClassStructRecordTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 119public static readonly ISet<SyntaxKind> StructOnlyTypeDeclarations = new HashSet<SyntaxKind>(SyntaxFacts.EqualityComparer) 125public 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.Features (41)
AddImport\AbstractAddImportFeatureService.cs (1)
51protected abstract ISet<INamespaceSymbol> GetImportNamespacesInScope(SemanticModel semanticModel, SyntaxNode node, CancellationToken cancellationToken);
AddImport\SymbolReferenceFinder.cs (3)
35private readonly ISet<INamespaceSymbol> _namespacesInScope; 75private ISet<INamespaceSymbol> GetNamespacesInScope(CancellationToken cancellationToken) 78var set = _owner.GetImportNamespacesInScope(_semanticModel, _node, cancellationToken);
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (3)
33var uniqueIdentities = await GetUniqueIdentitiesAsync(context).ConfigureAwait(false); 43private static async Task<ImmutableArray<CodeAction>> GetAddReferencesCodeActionsAsync(CodeFixContext context, ISet<AssemblyIdentity> uniqueIdentities) 56private static async Task<ISet<AssemblyIdentity>> GetUniqueIdentitiesAsync(CodeFixContext context)
AddPackage\AbstractAddPackageCodeFixProvider.cs (2)
29CodeFixContext context, ISet<string> assemblyNames) 74ISet<string> assemblyNames,
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (2)
134var membersToRemove = GetMembersToRemove(root); 259private ISet<SyntaxNode> GetMembersToRemove(SyntaxNode root)
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
116protected IEnumerable<CompletionItem> GetAttributeItems(string tagName, ISet<string> existingAttributes, bool addEqualsAndQuotes)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (2)
54ISet<string> namespaceInScope, 109ISet<string> namespaceInScope,
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (2)
34private readonly ISet<string> _namespaceInScope; 47ISet<string> namespaceInScope)
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (2)
24ISet<INamedTypeSymbol> typesOfInterest) 50private readonly ISet<INamedTypeSymbol> _typesOfInterest = typesOfInterest;
EncapsulateField\AbstractEncapsulateFieldService.cs (3)
243var constructorLocations = GetConstructorLocations(solution, field.ContainingType); 296private static bool IntersectsWithAny(DocumentId documentId, TextSpan span, ISet<(DocumentId documentId, TextSpan span)> constructorLocations) 310private ISet<(DocumentId documentId, TextSpan span)> GetConstructorLocations(Solution solution, INamedTypeSymbol containingType)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
515private readonly ISet<object>? _projectOrDocumentIds;
IntroduceVariable\AbstractIntroduceVariableService.cs (5)
292protected ISet<TExpressionSyntax> FindMatches( 383var matches = FindMatches(originalDocument, expressionInOriginal, currentDocument, [withinNodeInCurrent], allOccurrences, cancellationToken); 396ISet<TExpressionSyntax> matches) 444protected static async Task<(SemanticDocument newSemanticDocument, ISet<TExpressionSyntax> newMatches)> ComplexifyParentingStatementsAsync( 446ISet<TExpressionSyntax> matches,
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
15private readonly ISet<INamedTypeSymbol> _seenTypes = new HashSet<INamedTypeSymbol>();
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (1)
25protected abstract SyntaxNode Rewrite(SyntaxNode root, ISet<TMemberAccessExpressionSyntax> memberAccessNodes);
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\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(
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
411ISet<(string filePath, TextSpan span)> constructorSpans,
Microsoft.CodeAnalysis.InteractiveHost (15)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
160public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 170public static ISet<T> ToSet<T>(this IEnumerable<T> source) 177return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
368bool ISet<T>.Add(T item) 371void ISet<T>.UnionWith(IEnumerable<T> other) 374void ISet<T>.IntersectWith(IEnumerable<T> other) 377void ISet<T>.ExceptWith(IEnumerable<T> other) 380void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
41public static ISet<T> EmptySet<T>() 100public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 104: new ReadOnly.Set<ISet<T>, T>(set); 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 111: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
15where TUnderlying : ISet<T>
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Handler\Completion\CompletionCapabilityHelper.cs (3)
29public ISet<CompletionItemKind> SupportedItemKinds { get; } 30public ISet<CompletionItemTag> SupportedItemTags { get; } 31public ISet<InsertTextMode> SupportedInsertTextModes { get; }
Handler\Completion\CompletionResultFactory.cs (2)
179ISet<LSP.CompletionItemKind> supportedClientKinds) 205ISet<LSP.CompletionItemTag> supportedClientTags)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
1980var seenOperationContainers = new ConcurrentDictionary<OperationAnalysisContext, ISet<ISymbol>>(); 2144ISet<ISymbol> containers = kvp.Value;
Microsoft.CodeAnalysis.Threading.Package (15)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (3)
160public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 170public static ISet<T> ToSet<T>(this IEnumerable<T> source) 177return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
368bool ISet<T>.Add(T item) 371void ISet<T>.UnionWith(IEnumerable<T> other) 374void ISet<T>.IntersectWith(IEnumerable<T> other) 377void ISet<T>.ExceptWith(IEnumerable<T> other) 380void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
41public static ISet<T> EmptySet<T>() 100public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 104: new ReadOnly.Set<ISet<T>, T>(set); 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 111: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
15where TUnderlying : ISet<T>
Microsoft.CodeAnalysis.UnitTests (65)
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>();
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)
17Friend Shared Function GetPropertiesForExplicitlyImplementedAccessor(accessor As MethodSymbol) As ISet(Of PropertySymbol) 21Friend Shared Function GetEventsForExplicitlyImplementedAccessor(accessor As MethodSymbol) As ISet(Of EventSymbol) 26Private Shared Function GetSymbolsForExplicitlyImplementedAccessor(Of T As Symbol)(accessor As MethodSymbol) As ISet(Of T)
Microsoft.CodeAnalysis.Workspaces (37)
FindSymbols\FindReferences\DependentTypeFinder.cs (4)
92var projectsThatCouldReferenceType = await GetProjectsThatCouldReferenceTypeAsync( 398private static async Task<ISet<ProjectId>> GetProjectsThatCouldReferenceTypeAsync( 432var projectsThatCouldReferenceType = GetProjectsThatCouldReferenceType( 494var allProjectsThatTheseProjectsDependOn = projects
Log\AggregateLogger.cs (1)
102var set = aggregateLogger._loggers.Where(l => !predicate(l)).ToSet();
Recommendations\AbstractRecommendationService.cs (1)
39protected static ISet<INamedTypeSymbol> ComputeOuterTypes(SyntaxContext context, CancellationToken cancellationToken)
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
359var complexifiedLocationSpanForThisDocument = conflictLocations 781ISet<ConflictLocationInfo> conflictLocations,
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
322ISet<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)
160public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 170public static ISet<T> ToSet<T>(this IEnumerable<T> source) 177return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
368bool ISet<T>.Add(T item) 371void ISet<T>.UnionWith(IEnumerable<T> other) 374void ISet<T>.IntersectWith(IEnumerable<T> other) 377void ISet<T>.ExceptWith(IEnumerable<T> other) 380void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
41public static ISet<T> EmptySet<T>() 100public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 104: new ReadOnly.Set<ISet<T>, T>(set); 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 111: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
15where TUnderlying : ISet<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
168=> compilation.GetTypeByMetadataName(typeof(ISet<>).FullName!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
780ISet<string> availableTypeParameterNames)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (1)
15private sealed class UnavailableTypeParameterRemover(Compilation compilation, ISet<string> availableTypeParameterNames) : SymbolVisitor<ITypeSymbol>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EnumValueUtilities.cs (1)
28var existingConstants = orderedExistingConstants.ToSet();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
75private async Task<ISet<INamespaceSymbol>> 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.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)
160public static ISet<T> ToSet<T>(this IEnumerable<T> source, IEqualityComparer<T>? comparer) 170public static ISet<T> ToSet<T>(this IEnumerable<T> source) 177return source as ISet<T> ?? new HashSet<T>(source);
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1.cs (5)
368bool ISet<T>.Add(T item) 371void ISet<T>.UnionWith(IEnumerable<T> other) 374void ISet<T>.IntersectWith(IEnumerable<T> other) 377void ISet<T>.ExceptWith(IEnumerable<T> other) 380void ISet<T>.SymmetricExceptWith(IEnumerable<T> other)
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (6)
41public static ISet<T> EmptySet<T>() 100public static ISet<T> ReadOnlySet<T>(ISet<T>? set) 104: new ReadOnly.Set<ISet<T>, T>(set); 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set) 111: new ReadOnly.Set<ISet<T>, T>(set);
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
15where 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.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.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)
1020return 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)
27public 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)
25public ISet<string> FilteredCategories { get; set; } = new HashSet<string>(); 35public ISet<LogLevel> FilteredLevels { get; set; } = new HashSet<LogLevel>();
Microsoft.Extensions.Http.Diagnostics (2)
Logging\LoggingOptions.cs (2)
80public ISet<string> RequestBodyContentTypes { get; set; } = new HashSet<string>(); 88public 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)
21public ISet<string> UniqueHostNameSuffixes { get; } 26public ISet<RequestMetadata> RequestMetadata { get; }
Microsoft.Gen.Logging (1)
Parsing\Parser.LogProperties.cs (1)
86ISet<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.VisualStudio.LanguageServices (4)
Progression\GraphBuilder.cs (1)
33private readonly ISet<GraphNode> _createdNodes = new HashSet<GraphNode>();
Progression\GraphQueries\ContainsGraphQuery.cs (1)
22var nodesToProcess = context.InputNodes;
Progression\GraphQueries\InheritsGraphQuery.cs (1)
23var nodesToProcess = context.InputNodes;
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" });
MSBuild (14)
XMake.cs (14)
720ISet<string> warningsAsErrors = null; 721ISet<string> warningsNotAsErrors = null; 722ISet<string> warningsAsMessages = null; 1292ISet<string> warningsAsErrors, 1293ISet<string> warningsNotAsErrors, 1294ISet<string> warningsAsMessages, 2510ref ISet<string> warningsAsErrors, 2511ref ISet<string> warningsNotAsErrors, 2512ref ISet<string> warningsAsMessages, 3272private static ISet<string> ProcessWarningRelatedSwitch(CommandLineSwitches commandLineSwitches, CommandLineSwitches.ParameterizedSwitch warningSwitch) 3281ISet<string> warningSwitches = new HashSet<string>(StringComparer.OrdinalIgnoreCase); 3301internal static ISet<string> ProcessWarnAsErrorSwitch(CommandLineSwitches commandLineSwitches) 3306internal static ISet<string> ProcessWarnAsMessageSwitch(CommandLineSwitches commandLineSwitches) 3311internal static ISet<string> ProcessWarnNotAsErrorSwitch(CommandLineSwitches commandLineSwitches)
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 (6)
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (2)
75var badNamespaces = exportAttributes.Except(appliedExportAttributes).Select(s => s.ContainingNamespace).ToSet(); 76var goodNamespaces = appliedExportAttributes.Select(s => s.ContainingNamespace).ToSet();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
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)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
Text.Analyzers (4)
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
120public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (2)
36public static ISet<T> ToSet<T>(this IEnumerable<T> source) 43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISetExtensions.cs (1)
9public static void AddRange<T>(this ISet<T> set, IEnumerable<T> values)
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)