52 implementations of ISet
Microsoft.CodeAnalysis (6)
Microsoft.CodeAnalysis.CodeStyle (6)
Microsoft.CodeAnalysis.Collections.Package (6)
Microsoft.CodeAnalysis.InteractiveHost (6)
Microsoft.CodeAnalysis.Threading.Package (6)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
System.Collections (1)
System.Collections.Immutable (7)
System.Private.CoreLib (2)
838 references to ISet
Aspire.Dashboard (2)
ConfigurationSchemaGenerator (1)
InteropTests (1)
Metrics (4)
Metrics.Legacy (4)
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Http.Extensions (3)
Microsoft.AspNetCore.HttpLogging (7)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.Build (73)
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,
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)
Microsoft.Build.Framework (4)
Microsoft.Build.Tasks.Core (8)
Microsoft.Build.Tasks.UnitTests (2)
Microsoft.Cci.Extensions (1)
Microsoft.CodeAnalysis (22)
Microsoft.CodeAnalysis.Analyzers (4)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
Microsoft.CodeAnalysis.CodeStyle (23)
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
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);
Microsoft.CodeAnalysis.Collections.Package (15)
Microsoft.CodeAnalysis.CSharp (15)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (39)
Microsoft.CodeAnalysis.CSharp.Features (105)
Microsoft.CodeAnalysis.CSharp.Workspaces (43)
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);
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.Features (41)
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);
Microsoft.CodeAnalysis.InteractiveHost (15)
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.Threading.Package (15)
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);
Microsoft.CodeAnalysis.VisualBasic (7)
Microsoft.CodeAnalysis.Workspaces (37)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
105var referencingStatements =
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (19)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.DotNet.XliffTasks.Tests (3)
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);
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.Configuration.Binder (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (8)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.MetadataExtractor (2)
Microsoft.Gen.Metrics (2)
Microsoft.Gen.MetricsReports (2)
Microsoft.ML.AutoML (3)
Microsoft.ML.Data (4)
Microsoft.VisualStudio.LanguageServices (4)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
MSBuild (14)
netstandard (1)
PresentationBuildTasks (1)
PresentationFramework (1)
Roslyn.Diagnostics.Analyzers (6)
System (1)
System.Collections.Immutable (31)
System.Private.CoreLib (10)
System.Runtime (1)
System.Security.Cryptography (3)
System.Text.Json (4)
System.Text.Json.SourceGeneration (1)
System.Xaml (1)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)
Test.Utilities (4)
Text.Analyzers (4)
xunit.assert (28)
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)