24 types derived from HashSet
GenerateDocumentationAndConfigFiles (1)
illink (1)
ILLink.RoslynAnalyzer (1)
Metrics (1)
Metrics.Legacy (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.Collections.Package (1)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Threading.Package (1)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.XUnitAssert.Tests (2)
Roslyn.Diagnostics.Analyzers (1)
Test.Utilities (1)
Text.Analyzers (1)
1936 instantiations of HashSet
AnalyzerRunner (3)
Aspire.Dashboard (7)
Aspire.Hosting (7)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.ContainerRegistry (1)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.Redis (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Kubernetes (2)
Aspire.Hosting.Sdk.Tests (2)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (4)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Playground.Tests (2)
Aspire.RuntimeIdentifier.Tool (2)
Aspire.Templates.Tests (1)
StarterTemplateRunTestsBase.cs (1)
141r => Assert.Contains(r, new HashSet<string> { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }));
BoundTreeGenerator (1)
BuildActionTelemetryTable (1)
BuildBoss (5)
BuildValidator (1)
CodeGenerator (1)
ConfigurationSchemaGenerator (1)
Crossgen2Tasks (3)
CSharpSyntaxGenerator (2)
dotnet-dev-certs (1)
dotnet-svcutil-lib (8)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
35private static readonly HashSet<char> s_InvalidSeparatorSet = new HashSet<char>(new char[] { '(', ')', '<', '>', '@', ',', ';', ':', '\\', '"', '/', '[', ']', '?', '=', '{', '}', ' ' });
dotnet-user-jwts (1)
GenerateDocumentationAndConfigFiles (2)
illink (48)
ILLink.RoslynAnalyzer (4)
ILLink.Tasks (4)
Infrastructure.Common (2)
InMemory.FunctionalTests (2)
installer.tasks (2)
InteropTests (1)
IOperationGenerator (2)
KeyManagementSimulator (1)
Metrics (6)
Metrics.Legacy (6)
Microsoft.Analyzers.Extra (3)
Microsoft.Analyzers.Extra.Tests (3)
Microsoft.Analyzers.Local (3)
Microsoft.Arcade.Test.Common (3)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.App.Analyzers (4)
Microsoft.AspNetCore.App.UnitTests (1)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.BrowserTesting (2)
Microsoft.AspNetCore.Components (8)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Binding\FormDataMapperTests.cs (3)
657var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
681var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
729var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Tests (4)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Hosting (5)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Results.Tests (2)
Microsoft.AspNetCore.Http.ValidationsGenerator (3)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (9)
Microsoft.AspNetCore.Mvc.Core.Test (25)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (19)
997var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1015var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1031var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1045var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1059var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1084var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1111var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1135var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1162var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1203var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1246var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1275var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1318var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1363var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1404var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1454var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1499var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1544var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1587var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (3)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (21)
OptionTagHelperTest.cs (21)
52null, null, "value", new HashSet<string>(),
62null, null, "value", new HashSet<string>(new [] { string.Empty, }),
72null, string.Empty, "value", new HashSet<string>(new [] { string.Empty, }),
82null, null, "value", new HashSet<string>(new [] { "value", }),
92null, null, "value", new HashSet<string>(new [] { string.Empty, "value", }),
132string.Empty, null, null, new HashSet<string>(),
142string.Empty, null, null, new HashSet<string>(new [] { string.Empty, }),
153new HashSet<string>(new [] { string.Empty, }),
163string.Empty, null, null, new HashSet<string>(new [] { "text", }),
174new HashSet<string>(new [] { string.Empty, "text", }),
214"text", null, null, new HashSet<string>(),
224"text", null, null, new HashSet<string>(new [] { string.Empty, }),
234"HtmlEncode[[text]]", null, null, new HashSet<string>(new [] { "text", }),
244"text", string.Empty, null, new HashSet<string>(new [] { "text", }),
255new HashSet<string>(new [] { string.Empty, "text", }),
285"text", null, "value", new HashSet<string>(),
295"text", null, "value", new HashSet<string>(new [] { string.Empty, }),
306new HashSet<string>(new [] { string.Empty, }),
316"text", null, "value", new HashSet<string>(new [] { "text", }),
326"text", null, "value", new HashSet<string>(new [] { "value", }),
337new HashSet<string>(new [] { string.Empty, "value", }),
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
Microsoft.AspNetCore.OpenApi (3)
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.ResponseCompression (3)
Microsoft.AspNetCore.Routing (8)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.SpaServices.Extensions (3)
Microsoft.Build (93)
Evaluation\ProjectParser.cs (11)
31private static readonly HashSet<string> ValidAttributesOnlyConditionAndLabel = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label };
36private static readonly HashSet<string> KnownAttributesOnItem = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.include, XMakeAttributes.exclude, XMakeAttributes.remove, XMakeAttributes.keepMetadata, XMakeAttributes.removeMetadata, XMakeAttributes.keepDuplicates, XMakeAttributes.update, XMakeAttributes.matchOnMetadata, XMakeAttributes.matchOnMetadataOptions };
41private static readonly HashSet<string> KnownAttributesOnItemIgnoreCase = new HashSet<string>(KnownAttributesOnItem, StringComparer.OrdinalIgnoreCase);
46private static readonly HashSet<string> ValidAttributesOnImport = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.project, XMakeAttributes.sdk, XMakeAttributes.sdkVersion, XMakeAttributes.sdkMinimumVersion };
51private static readonly HashSet<string> ValidAttributesOnUsingTask = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.taskName, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName, XMakeAttributes.taskFactory, XMakeAttributes.architecture, XMakeAttributes.runtime, XMakeAttributes.requiredPlatform, XMakeAttributes.requiredRuntime, XMakeAttributes.overrideUsingTask };
56private static readonly HashSet<string> ValidAttributesOnTarget = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.name, XMakeAttributes.inputs, XMakeAttributes.outputs, XMakeAttributes.keepDuplicateOutputs, XMakeAttributes.dependsOnTargets, XMakeAttributes.beforeTargets, XMakeAttributes.afterTargets, XMakeAttributes.returns };
61private static readonly HashSet<string> ValidAttributesOnOnError = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.executeTargets };
66private static readonly HashSet<string> ValidAttributesOnOutput = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.taskParameter, XMakeAttributes.itemName, XMakeAttributes.propertyName };
71private static readonly HashSet<string> ValidAttributesOnUsingTaskParameter = new HashSet<string> { XMakeAttributes.parameterType, XMakeAttributes.output, XMakeAttributes.required };
76private static readonly HashSet<string> ValidAttributesOnUsingTaskBody = new HashSet<string> { XMakeAttributes.evaluate };
482HashSet<String> listOfChildElementNames = new HashSet<string>();
XMakeAttributes.cs (5)
104private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name, condition, dependsOnTargets, beforeTargets, afterTargets };
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
112private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildArchitectureValues.x86, MSBuildArchitectureValues.x64, MSBuildArchitectureValues.arm64, MSBuildArchitectureValues.currentArchitecture, MSBuildArchitectureValues.any };
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.CommandLine.UnitTests (3)
CommandLineSwitches_Tests.cs (3)
1277ISet<string> expectedWarningsAsErrors = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "a", "B", "c", "D", "e" };
1325ISet<string> expectedWarningsAsErors = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "e", "f", "g" };
1404ISet<string> expectedWarningsAsMessages = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "a", "B", "c", "D", "e" };
Microsoft.Build.Engine.OM.UnitTests (6)
Microsoft.Build.Engine.UnitTests (29)
Microsoft.Build.Framework (3)
Microsoft.Build.Framework.UnitTests (4)
BuildCheckTracingEventArgs_Tests.cs (4)
28new HashSet<DiagnosticSeverity>() { DiagnosticSeverity.Default, DiagnosticSeverity.Suggestion },
29new HashSet<string>() { "aa", "b" }, 5, 2, 8, true, TimeSpan.FromSeconds(123));
32new HashSet<DiagnosticSeverity>(),
33new HashSet<string>(), 0, 0, 500, false, TimeSpan.FromSeconds(1234));
Microsoft.Build.Tasks.Core (41)
XMakeAttributes.cs (5)
104private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name, condition, dependsOnTargets, beforeTargets, afterTargets };
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
112private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildArchitectureValues.x86, MSBuildArchitectureValues.x64, MSBuildArchitectureValues.arm64, MSBuildArchitectureValues.currentArchitecture, MSBuildArchitectureValues.any };
Microsoft.Build.Tasks.UnitTests (9)
ResolveSDKReference_Tests.cs (7)
95HashSet<SDKReference> resolvedSDKsEmpty = new HashSet<SDKReference>();
98HashSet<SDKReference> resolvedSDKs = new HashSet<SDKReference>() { new SDKReference(new TaskItem(), "bar", "1.0"), new SDKReference(new TaskItem(), "foo", "1.0"), new SDKReference(new TaskItem(), "Newt", "1.0") };
104result = ResolveSDKReference.GetUnresolvedDependentSDKs(new HashSet<SDKReference>(), dependentSDKs);
318HashSet<SDKReference> references = new HashSet<SDKReference>();
359HashSet<SDKReference> references = new HashSet<SDKReference>();
390references = new HashSet<SDKReference>();
4203new HashSet<string>() { "sdkName" },
Microsoft.Build.Utilities.Core (3)
Microsoft.Cci.Extensions (24)
Microsoft.CodeAnalysis (50)
Microsoft.CodeAnalysis.Analyzers (7)
Microsoft.CodeAnalysis.AnalyzerUtilities (7)
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
Microsoft.CodeAnalysis.CodeStyle (18)
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.Collections.Package (6)
Microsoft.CodeAnalysis.CSharp (82)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (18)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
Microsoft.CodeAnalysis.CSharp.Features (61)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Microsoft.CodeAnalysis.EditorFeatures (4)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (15)
Utilities\BloomFilterTests.cs (11)
48var strings = new HashSet<string>(GenerateStrings(2000).Skip(500).Take(1000), comparer);
211new HashSet<string>(GenerateStrings(1_000), comparer),
212new HashSet<string>(GenerateStrings(1_000).Where((s, i) => i % 1 == 0), comparer),
213new HashSet<string>(GenerateStrings(1_000).Where((s, i) => i % 1 == 1), comparer),
214new HashSet<string>(GenerateStrings(10_000), comparer),
215new HashSet<string>(GenerateStrings(10_000).Where((s, i) => i % 1 == 0), comparer),
216new HashSet<string>(GenerateStrings(10_000).Where((s, i) => i % 1 == 1), comparer),
217new HashSet<string>(GenerateStrings(100_000), comparer),
218new HashSet<string>(GenerateStrings(100_000).Where((s, i) => i % 1 == 0), comparer),
219new HashSet<string>(GenerateStrings(100_000).Where((s, i) => i % 1 == 1), comparer),
277var result = new HashSet<long>();
Microsoft.CodeAnalysis.Features (40)
Microsoft.CodeAnalysis.Features.UnitTests (3)
Microsoft.CodeAnalysis.InteractiveHost (7)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
Microsoft.CodeAnalysis.Remote.ServiceHub (8)
Microsoft.CodeAnalysis.ResxSourceGenerator (7)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Test.Utilities (22)
Microsoft.CodeAnalysis.Threading.Package (6)
Microsoft.CodeAnalysis.UnitTests (27)
Microsoft.CodeAnalysis.VisualBasic (46)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (45)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.CSharp (5)
Microsoft.Data.Analysis (6)
Microsoft.Data.Analysis.Tests (4)
Microsoft.DotNet.ArcadeLogging (2)
Microsoft.DotNet.AsmDiff (7)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Feed (7)
Microsoft.DotNet.Build.Tasks.Feed.Tests (6)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (24)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
Microsoft.DotNet.Build.Tasks.Workloads (5)
Microsoft.DotNet.CodeAnalysis (2)
Microsoft.DotNet.GenFacades (4)
Microsoft.DotNet.Helix.JobSender (1)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SharedFramework.Sdk (5)
Microsoft.DotNet.SignCheckLibrary (1)
Microsoft.DotNet.SignTool (7)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.XliffTasks (4)
Microsoft.DotNet.XUnitAssert.Tests (101)
CollectionAssertsTests.cs (28)
329 IEnumerable<string> set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "Hi there" };
367 IEnumerable<string> set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "Hi there" };
548 IEnumerable<string> set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "Hi there" };
604 IEnumerable<string> set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "Hi there" };
1498 var expected = new HashSet<int> { 42, 2112 };
1499 var actual = new HashSet<int> { 2112, 42 };
1512 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1513 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1525 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1526 var actual = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1534 var expected = new HashSet<int> { 42, 2112 };
1535 var actual = new HashSet<int> { 2600, 42 };
1552 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1553 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, true }) };
1569 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1570 var actual = new HashSet<BitArray> { new BitArray(new[] { true, true }) };
2165 var expected = new HashSet<int> { 42, 2112 };
2166 var actual = new HashSet<int> { 2112, 42 };
2187 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2188 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2208 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2209 var actual = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2225 var expected = new HashSet<int> { 42, 2112 };
2226 var actual = new HashSet<int> { 2600, 42 };
2235 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2236 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, true }) };
2244 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2245 var actual = new HashSet<BitArray> { new BitArray(new[] { true, true }) };
EqualityAssertsTests.cs (36)
1221 var expected = new HashSet<int> { 1, 2, 3 };
1222 var actual = new HashSet<int> { 1, 2, 3 };
1230 var expected = new HashSet<int> { 1, 2, 3 };
1231 var actual = new HashSet<int> { 1, 2, 4 };
1247 var expected = new HashSet<int> { 1, 2, 3 };
1248 var actual = new HashSet<int> { 2, 3, 1 };
1256 var expected = new HashSet<int> { 1, 2, 3 };
1257 var actual = new HashSet<int> { 2, 4, 1 };
1273 var expected = new HashSet<int> { 1, 2, 3 };
1274 var actual = new HashSet<int> { 1, 2 };
1290 var expected = new HashSet<int> { 1, 2 };
1291 var actual = new HashSet<int> { 1, 2, 3 };
1307 var expected = new HashSet<string> { "bar", "foo" };
1320 object expected = new HashSet<int> { 42 };
1321 object actual = new HashSet<long> { 42L };
1341 var expected = new HashSet<string> { "bar" };
1342 var actual = new HashSet<string> { "baz" };
1466 var actual = new HashSet<string> { "bar" };
1479 var actual = new HashSet<string> { "baz" };
1548 var actual = new HashSet<string> { "baz" };
3450 var expected = new HashSet<int> { 1, 2, 3 };
3451 var actual = new HashSet<int> { 1, 2, 3 };
3467 var expected = new HashSet<int> { 1, 2, 3 };
3468 var actual = new HashSet<int> { 1, 2, 4 };
3476 var expected = new HashSet<int> { 1, 2, 3 };
3477 var actual = new HashSet<int> { 2, 3, 1 };
3493 var expected = new HashSet<int> { 1, 2, 3 };
3494 var actual = new HashSet<int> { 2, 4, 1 };
3502 var expected = new HashSet<string> { "bar", "foo" };
3527 object expected = new HashSet<int> { 42 };
3528 object actual = new HashSet<long> { 42L };
3540 var expected = new HashSet<string> { "bar" };
3541 var actual = new HashSet<string> { "baz" };
3652 var actual = new HashSet<string> { "bar" };
3678 var actual = new HashSet<string> { "baz" };
3734 var actual = new HashSet<string> { "baz" };
SetAssertsTests.cs (36)
17 var set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "forty-two" };
34 var set = new HashSet<string>() { "eleventeen" };
67 var set = new HashSet<string>() { "eleventeen" };
84 var set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "forty-two" };
117 Assert.Throws<ArgumentNullException>("expectedSubset", () => Assert.ProperSubset(null!, new HashSet<int>()));
123 var expectedSubset = new HashSet<int> { 1, 2, 3 };
124 var actual = new HashSet<int> { 1, 2, 3 };
140 var expectedSubset = new HashSet<int> { 1, 2, 3, 4 };
141 var actual = new HashSet<int> { 1, 2, 3 };
149 var expectedSubset = new HashSet<int> { 1, 2, 3 };
150 var actual = new HashSet<int> { 1, 2, 7 };
166 var ex = Record.Exception(() => Assert.ProperSubset(new HashSet<int>(), null));
183 Assert.Throws<ArgumentNullException>("expectedSuperset", () => Assert.ProperSuperset(null!, new HashSet<int>()));
189 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
190 var actual = new HashSet<int> { 1, 2, 3 };
206 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
207 var actual = new HashSet<int> { 1, 2, 3, 4 };
215 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
216 var actual = new HashSet<int> { 1, 2, 7 };
232 var ex = Record.Exception(() => Assert.ProperSuperset(new HashSet<int>(), null));
249 Assert.Throws<ArgumentNullException>("expectedSubset", () => Assert.Subset(null!, new HashSet<int>()));
255 var expectedSubset = new HashSet<int> { 1, 2, 3 };
256 var actual = new HashSet<int> { 1, 2, 3 };
264 var expectedSubset = new HashSet<int> { 1, 2, 3, 4 };
265 var actual = new HashSet<int> { 1, 2, 3 };
273 var expectedSubset = new HashSet<int> { 1, 2, 3 };
274 var actual = new HashSet<int> { 1, 2, 7 };
290 var ex = Record.Exception(() => Assert.Subset(new HashSet<int>(), null));
307 Assert.Throws<ArgumentNullException>("expectedSuperset", () => Assert.Superset(null!, new HashSet<int>()));
313 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
314 var actual = new HashSet<int> { 1, 2, 3 };
322 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
323 var actual = new HashSet<int> { 1, 2, 3, 4 };
331 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
332 var actual = new HashSet<int> { 1, 2, 7 };
347 var ex = Record.Exception(() => Assert.Superset(new HashSet<int>(), null));
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Microsoft.Extensions.ApiDescription.Client (3)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.Compliance.Abstractions (2)
Microsoft.Extensions.Compliance.Testing.Tests (2)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileSystemGlobbing (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (53)
Logging\HttpClientLoggerTest.cs (12)
206ResponseBodyContentTypes = new HashSet<string> { TextPlain },
207RequestBodyContentTypes = new HashSet<string> { TextPlain },
298ResponseBodyContentTypes = new HashSet<string> { TextPlain },
299RequestBodyContentTypes = new HashSet<string> { TextPlain },
405ResponseBodyContentTypes = new HashSet<string> { TextPlain },
406RequestBodyContentTypes = new HashSet<string> { TextPlain },
501ResponseBodyContentTypes = new HashSet<string> { TextPlain },
502RequestBodyContentTypes = new HashSet<string> { TextPlain },
615ResponseBodyContentTypes = new HashSet<string> { TextPlain },
616RequestBodyContentTypes = new HashSet<string> { TextPlain },
885ResponseBodyContentTypes = new HashSet<string> { TextPlain },
886RequestBodyContentTypes = new HashSet<string> { TextPlain },
Logging\HttpRequestReaderTest.cs (15)
63RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
64ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
127RequestBodyContentTypes = new HashSet<string> { PlainTextMedia },
128ResponseBodyContentTypes = new HashSet<string> { PlainTextMedia },
189RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
190ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
263RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
264ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
336RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
394RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
395ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
465RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
466ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
532RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
533ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Generators (4)
Microsoft.Extensions.Options.DataAnnotations (2)
Microsoft.Extensions.Options.SourceGeneration (3)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.Logging (13)
Microsoft.Gen.Logging.Unit.Tests (2)
Microsoft.Gen.MetadataExtractor (5)
Microsoft.Gen.Metrics (5)
Microsoft.Gen.MetricsReports (5)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (3)
Microsoft.Maui (4)
Microsoft.Maui.Controls (9)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.DesignTools (2)
Microsoft.ML.AutoML (16)
Microsoft.ML.CodeGenerator (7)
Microsoft.ML.Core (6)
Microsoft.ML.Core.Tests (7)
Microsoft.ML.Data (33)
Microsoft.ML.Ensemble (2)
Microsoft.ML.EntryPoints (2)
Microsoft.ML.FastTree (4)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.OnnxConverter (11)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.ResultProcessor (2)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.Sweeper (5)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TestFramework (2)
Microsoft.ML.Tests (5)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Tokenizers (1)
Microsoft.ML.TorchSharp (6)
Microsoft.ML.Transforms (5)
Microsoft.ML.Vision (1)
Microsoft.VisualStudio.LanguageServices (10)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
MSBuild (14)
XMakeAttributes.cs (5)
104private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name, condition, dependsOnTargets, beforeTargets, afterTargets };
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
112private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildArchitectureValues.x86, MSBuildArchitectureValues.x64, MSBuildArchitectureValues.arm64, MSBuildArchitectureValues.currentArchitecture, MSBuildArchitectureValues.any };
MSBuildTaskHost (11)
XMakeAttributes.cs (5)
104private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name, condition, dependsOnTargets, beforeTargets, afterTargets };
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
112private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildArchitectureValues.x86, MSBuildArchitectureValues.x64, MSBuildArchitectureValues.arm64, MSBuildArchitectureValues.currentArchitecture, MSBuildArchitectureValues.any };
Mvc.Analyzers.Test (1)
PresentationBuildTasks (2)
PresentationCore (5)
PresentationFramework (5)
Replay (2)
Roslyn.Diagnostics.Analyzers (6)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (2)
RulesetToEditorconfigConverter (1)
RunTests (2)
Shared (1)
Shared.Tests (3)
SocialWeather (1)
System.CodeDom (1)
System.Collections.Immutable (8)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (7)
System.ComponentModel.TypeConverter (2)
System.Composition.Hosting (1)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (2)
System.Formats.Cbor (2)
System.IO.Packaging (2)
System.Linq (13)
System.Linq.AsyncEnumerable (13)
System.Linq.Expressions (17)
System.Linq.Parallel (5)
System.Net.HttpListener (1)
System.Private.CoreLib (8)
System.Private.CoreLib.Generators (5)
System.Private.DataContractSerialization (4)
System.Private.Windows.Core (1)
System.Private.Xml (8)
System.Private.Xml.Linq (1)
System.Reflection.DispatchProxy (1)
System.Reflection.Emit (2)
System.Reflection.MetadataLoadContext (1)
System.Runtime.Serialization.Schema (1)
System.Security.Cryptography (9)
System.Security.Cryptography.Pkcs (1)
System.ServiceModel.Syndication (1)
System.Text.Json (1)
System.Text.Json.SourceGeneration (3)
System.Text.RegularExpressions (11)
System.Text.RegularExpressions.Generator (12)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (1)
System.Windows.Forms.Design (2)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Forms.Tests (1)
System.Windows.Input.Manipulations (1)
System.Xaml (10)
TaskUsageLogger (3)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
Test.Utilities (4)
TestDiscoveryWorker (1)
Text.Analyzers (8)
xunit.assert (10)
3361 references to HashSet
AnalyzerRunner (3)
Aspire.Dashboard (9)
src\Shared\Model\KnownResourceTypes.cs (1)
13private static readonly HashSet<string> s_builtInResources = ["AppIdentityResource", "AttuResource", "AzureAppConfigurationResource", "AzureApplicationInsightsResource", "AzureBicepResource", "AzureBlobStorageResource", "AzureContainerAppEnvironmentResource", "AzureCosmosDBContainerResource", "AzureCosmosDBDatabaseResource", "AzureCosmosDBEmulatorResource", "AzureCosmosDBResource", "AzureEventHubConsumerGroupResource", "AzureEventHubResource", "AzureEventHubsEmulatorResource", "AzureEventHubsResource", "AzureFunctionsProjectResource", "AzureKeyVaultResource", "AzureLogAnalyticsWorkspaceResource", "AzureOpenAIDeploymentResource", "AzureOpenAIResource", "AzurePostgresFlexibleServerDatabaseResource", "AzurePostgresFlexibleServerResource", "AzurePostgresResource", "AzureProvisioningResource", "AzureQueueStorageResource", "AzureRedisCacheResource", "AzureRedisResource", "AzureSearchResource", "AzureServiceBusEmulatorResource", "AzureServiceBusQueueResource", "AzureServiceBusResource", "AzureServiceBusSubscriptionResource", "AzureServiceBusTopicResource", "AzureSignalREmulatorResource", "AzureSignalRResource", "AzureSqlDatabaseResource", "AzureSqlServerResource", "AzureStorageEmulatorResource", "AzureStorageResource", "AzureTableStorageResource", "AzureWebPubSubHubResource", "AzureWebPubSubResource", "ConnectionStringParameterResource", "ConnectionStringResource", Container, "DockerComposeEnvironmentResource", "DockerComposeServiceResource", "ElasticsearchResource", Executable, "ExecutableContainerResource", "GarnetResource", "KafkaServerResource", "KafkaUIContainerResource", "KeycloakResource", "KubernetesEnvironmentResource", "KubernetesResource", "MilvusDatabaseResource", "MilvusServerResource", "MongoDBDatabaseResource", "MongoDBServerResource", "MongoExpressContainerResource", "MySqlDatabaseResource", "MySqlServerResource", "NatsServerResource", "NodeAppResource", "OracleDatabaseResource", "OracleDatabaseServerResource", "ParameterResource", "PgAdminContainerResource", "PgWebContainerResource", "PhpMyAdminContainerResource", "PostgresDatabaseResource", "PostgresServerResource", Project, "ProjectContainerResource", "PythonAppResource", "PythonProjectResource", "QdrantServerResource", "RabbitMQServerResource", "RedisCommanderResource", "RedisInsightResource", "RedisResource", "Resource", "SeqResource", "SqlServerDatabaseResource", "SqlServerServerResource", "ValkeyResource"];
Aspire.Hosting (15)
src\Shared\Model\KnownResourceTypes.cs (1)
13private static readonly HashSet<string> s_builtInResources = ["AppIdentityResource", "AttuResource", "AzureAppConfigurationResource", "AzureApplicationInsightsResource", "AzureBicepResource", "AzureBlobStorageResource", "AzureContainerAppEnvironmentResource", "AzureCosmosDBContainerResource", "AzureCosmosDBDatabaseResource", "AzureCosmosDBEmulatorResource", "AzureCosmosDBResource", "AzureEventHubConsumerGroupResource", "AzureEventHubResource", "AzureEventHubsEmulatorResource", "AzureEventHubsResource", "AzureFunctionsProjectResource", "AzureKeyVaultResource", "AzureLogAnalyticsWorkspaceResource", "AzureOpenAIDeploymentResource", "AzureOpenAIResource", "AzurePostgresFlexibleServerDatabaseResource", "AzurePostgresFlexibleServerResource", "AzurePostgresResource", "AzureProvisioningResource", "AzureQueueStorageResource", "AzureRedisCacheResource", "AzureRedisResource", "AzureSearchResource", "AzureServiceBusEmulatorResource", "AzureServiceBusQueueResource", "AzureServiceBusResource", "AzureServiceBusSubscriptionResource", "AzureServiceBusTopicResource", "AzureSignalREmulatorResource", "AzureSignalRResource", "AzureSqlDatabaseResource", "AzureSqlServerResource", "AzureStorageEmulatorResource", "AzureStorageResource", "AzureTableStorageResource", "AzureWebPubSubHubResource", "AzureWebPubSubResource", "ConnectionStringParameterResource", "ConnectionStringResource", Container, "DockerComposeEnvironmentResource", "DockerComposeServiceResource", "ElasticsearchResource", Executable, "ExecutableContainerResource", "GarnetResource", "KafkaServerResource", "KafkaUIContainerResource", "KeycloakResource", "KubernetesEnvironmentResource", "KubernetesResource", "MilvusDatabaseResource", "MilvusServerResource", "MongoDBDatabaseResource", "MongoDBServerResource", "MongoExpressContainerResource", "MySqlDatabaseResource", "MySqlServerResource", "NatsServerResource", "NodeAppResource", "OracleDatabaseResource", "OracleDatabaseServerResource", "ParameterResource", "PgAdminContainerResource", "PgWebContainerResource", "PhpMyAdminContainerResource", "PostgresDatabaseResource", "PostgresServerResource", Project, "ProjectContainerResource", "PythonAppResource", "PythonProjectResource", "QdrantServerResource", "RabbitMQServerResource", "RedisCommanderResource", "RedisInsightResource", "RedisResource", "Resource", "SeqResource", "SqlServerDatabaseResource", "SqlServerServerResource", "ValkeyResource"];
Aspire.Hosting.Azure (9)
AzureResourcePreparer.cs (8)
102var globalRoleAssignments = new Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>>();
138var azureReferences = await GetAzureReferences(resource, cancellationToken).ConfigureAwait(false);
319private async Task<HashSet<IAzureResource>> GetAzureReferences(IResource resource, CancellationToken cancellationToken)
321HashSet<IAzureResource> azureReferences = [];
356private static void ProcessAzureReferences(HashSet<IAzureResource> azureReferences, object value)
414private static void AppendGlobalRoleAssignments(Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>> globalRoleAssignments, AzureProvisioningResource azureResource, IEnumerable<RoleDefinition> newRoles)
416if (!globalRoleAssignments.TryGetValue(azureResource, out var existingRoles))
425private async Task CreateGlobalRoleAssignments(DistributedApplicationModel appModel, Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>> globalRoleAssignments, AzureProvisioningOptions provisioningOptions)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.CognitiveServices (1)
Aspire.Hosting.Azure.ContainerRegistry (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Docker (2)
Aspire.Hosting.Kubernetes (2)
Aspire.Hosting.Sdk.Tests (2)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (4)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Playground.Tests (2)
Aspire.RuntimeIdentifier.Tool (2)
Aspire.Templates.Tests (1)
BoundTreeGenerator (1)
BuildBoss (7)
BuildValidator (1)
CodeGenerator (1)
ConfigurationSchemaGenerator (5)
Crossgen2Tasks (5)
CSharpSyntaxGenerator (2)
dotnet-dev-certs (3)
dotnet-svcutil-lib (11)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (6)
1286private static bool IsTypeSerializable(Type type, HashSet<Type> previousCollectionTypes)
1313private static void ValidatePreviousCollectionTypes(Type collectionType, Type itemType, HashSet<Type> previousCollectionTypes)
1419internal static XmlQualifiedName GetStableName(Type type, HashSet<Type> previousCollectionTypes, out bool hasDataContract)
1473private static XmlQualifiedName GetNonDCTypeStableName(Type type, HashSet<Type> previousCollectionTypes)
1498private static bool TryGetBuiltInXmlAndArrayTypeStableName(Type type, HashSet<Type> previousCollectionTypes, out XmlQualifiedName stableName)
1577internal static XmlQualifiedName GetCollectionStableName(Type type, Type itemType, HashSet<Type> previousCollectionTypes, out CollectionDataContractAttribute collectionContractAttribute)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
35private static readonly HashSet<char> s_InvalidSeparatorSet = new HashSet<char>(new char[] { '(', ')', '<', '>', '@', ',', ';', ':', '\\', '"', '/', '[', ']', '?', '=', '{', '}', ' ' });
dotnet-user-jwts (1)
GenerateDocumentationAndConfigFiles (2)
illink (72)
ILLink.RoslynAnalyzer (4)
ILLink.Tasks (6)
Infrastructure.Common (3)
InMemory.FunctionalTests (2)
installer.tasks (2)
InteropTests (1)
IOperationGenerator (2)
KeyManagementSimulator (2)
Metrics (10)
Metrics.Legacy (10)
Microsoft.Analyzers.Extra (5)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.Analyzers.Local (9)
Microsoft.Arcade.Test.Common (3)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.App.Analyzers (6)
Microsoft.AspNetCore.App.UnitTests (22)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.BrowserTesting (8)
BrowserManagerConfiguration.cs (8)
216private static T BindMultiValueMap<T>(IConfigurationSection processArgsMap, Func<Dictionary<string, HashSet<string>>, T> mapper)
233return mapper(new Dictionary<string, HashSet<string>>());
235var argsMap = new Dictionary<string, HashSet<string>>();
247var argValues = InitializeMapValue(argsMap, argName);
264var argValue = InitializeMapValue(argsMap, argName);
284static HashSet<string> InitializeMapValue(Dictionary<string, HashSet<string>> argsMap, string argName)
286if (!argsMap.TryGetValue(argName, out var argValue))
Microsoft.AspNetCore.Components (18)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Components.Endpoints (18)
Microsoft.AspNetCore.Components.Endpoints.Tests (8)
Binding\FormDataMapperTests.cs (7)
657var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
658CanDeserialize_Collection<IReadOnlySet<int>, HashSet<int>, int>(expected);
681var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
682CanDeserialize_Collection<ISet<int>, HashSet<int>, int>(expected);
729var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
730CanDeserialize_Collection<HashSet<int>, HashSet<int>, int>(expected);
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Tests (5)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebView (4)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Hosting (7)
Microsoft.AspNetCore.Http.Extensions (11)
Microsoft.AspNetCore.Http.Results.Tests (2)
Microsoft.AspNetCore.Http.ValidationsGenerator (5)
Microsoft.AspNetCore.HttpLogging (3)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (14)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
Microsoft.AspNetCore.Mvc.Razor (6)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
Microsoft.AspNetCore.OpenApi (4)
Microsoft.AspNetCore.OpenApi.SourceGenerators (7)
XmlComments\XmlComment.InheritDoc.cs (4)
25private static string? GetDocumentationComment(ISymbol symbol, string xmlText, HashSet<ISymbol>? visitedSymbols, Compilation compilation, CancellationToken cancellationToken)
95private static XNode[] RewriteMany(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XNode[] nodes, CancellationToken cancellationToken)
106private static XNode[] RewriteInheritdocElements(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XNode node, CancellationToken cancellationToken)
142private static XNode[]? RewriteInheritdocElement(ISymbol memberSymbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XElement element, CancellationToken cancellationToken)
Microsoft.AspNetCore.OutputCaching (8)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (2)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.ResponseCompression (3)
Microsoft.AspNetCore.Routing (7)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (5)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.SpaServices.Extensions (3)
Microsoft.Build (140)
BackEnd\Components\Scheduler\Scheduler.cs (19)
238internal delegate void AssignUnscheduledRequestsDelegate(List<ScheduleResponse> responses, HashSet<int> idleNodes);
701HashSet<int> idleNodes = new HashSet<int>();
794private void AssignUnscheduledRequestsToNodes(List<ScheduleResponse> responses, HashSet<int> idleNodes)
920private void AssignUnscheduledRequestsWithPlanByMostImmediateReferences(List<ScheduleResponse> responses, HashSet<int> idleNodes)
928private void AssignUnscheduledRequestsWithPlanByGreatestPlanTime(List<ScheduleResponse> responses, HashSet<int> idleNodes)
933private void AssignUnscheduledRequestsWithPlan(List<ScheduleResponse> responses, HashSet<int> idleNodes, Func<SchedulingPlan.PlanConfigData, SchedulingPlan.PlanConfigData, bool> comparisonFunction)
976private void AssignUnscheduledRequestsByTraversalsFirst(List<ScheduleResponse> responses, HashSet<int> idleNodes)
985private void AssignUnscheduledProxyBuildRequestsToInProcNode(List<ScheduleResponse> responses, HashSet<int> idleNodes)
990private void AssignUnscheduledRequestsToInProcNode(List<ScheduleResponse> responses, HashSet<int> idleNodes, Func<SchedulableRequest, bool> shouldBeScheduled)
1018private void AssignUnscheduledRequestsWithConfigurationCountLevelling(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1057private void AssignUnscheduledRequestsWithSmallestFileSize(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1099private void AssignUnscheduledRequestsWithLargestFileSize(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1141private void AssignUnscheduledRequestsWithMaxWaitingRequests(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1218private void AssignUnscheduledRequestsWithMaxWaitingRequests2(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1246private void AssignUnscheduledRequestsFIFO(List<ScheduleResponse> responses, HashSet<int> idleNodes)
1278private void AssignUnscheduledRequestsUsingCustomSchedulerForSQL(List<ScheduleResponse> responses, HashSet<int> idleNodes)
2294HashSet<int>[] runningRequests = new HashSet<int>[currentWork.Length];
2633HashSet<SchedulableRequest> topLevelBlockingRequests = new HashSet<SchedulableRequest>();
Evaluation\ProjectParser.cs (11)
31private static readonly HashSet<string> ValidAttributesOnlyConditionAndLabel = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label };
36private static readonly HashSet<string> KnownAttributesOnItem = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.include, XMakeAttributes.exclude, XMakeAttributes.remove, XMakeAttributes.keepMetadata, XMakeAttributes.removeMetadata, XMakeAttributes.keepDuplicates, XMakeAttributes.update, XMakeAttributes.matchOnMetadata, XMakeAttributes.matchOnMetadataOptions };
41private static readonly HashSet<string> KnownAttributesOnItemIgnoreCase = new HashSet<string>(KnownAttributesOnItem, StringComparer.OrdinalIgnoreCase);
46private static readonly HashSet<string> ValidAttributesOnImport = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.project, XMakeAttributes.sdk, XMakeAttributes.sdkVersion, XMakeAttributes.sdkMinimumVersion };
51private static readonly HashSet<string> ValidAttributesOnUsingTask = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.taskName, XMakeAttributes.assemblyFile, XMakeAttributes.assemblyName, XMakeAttributes.taskFactory, XMakeAttributes.architecture, XMakeAttributes.runtime, XMakeAttributes.requiredPlatform, XMakeAttributes.requiredRuntime, XMakeAttributes.overrideUsingTask };
56private static readonly HashSet<string> ValidAttributesOnTarget = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.name, XMakeAttributes.inputs, XMakeAttributes.outputs, XMakeAttributes.keepDuplicateOutputs, XMakeAttributes.dependsOnTargets, XMakeAttributes.beforeTargets, XMakeAttributes.afterTargets, XMakeAttributes.returns };
61private static readonly HashSet<string> ValidAttributesOnOnError = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.executeTargets };
66private static readonly HashSet<string> ValidAttributesOnOutput = new HashSet<string> { XMakeAttributes.condition, XMakeAttributes.label, XMakeAttributes.taskParameter, XMakeAttributes.itemName, XMakeAttributes.propertyName };
71private static readonly HashSet<string> ValidAttributesOnUsingTaskParameter = new HashSet<string> { XMakeAttributes.parameterType, XMakeAttributes.output, XMakeAttributes.required };
76private static readonly HashSet<string> ValidAttributesOnUsingTaskBody = new HashSet<string> { XMakeAttributes.evaluate };
482HashSet<String> listOfChildElementNames = new HashSet<string>();
XMakeAttributes.cs (5)
104private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name, condition, dependsOnTargets, beforeTargets, afterTargets };
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
112private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildArchitectureValues.x86, MSBuildArchitectureValues.x64, MSBuildArchitectureValues.arm64, MSBuildArchitectureValues.currentArchitecture, MSBuildArchitectureValues.any };
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.Engine.OM.UnitTests (7)
Microsoft.Build.Engine.UnitTests (26)
Microsoft.Build.Framework (19)
BinaryTranslator.cs (4)
298public void Translate(ref HashSet<string> set)
600public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
1102public void Translate(ref HashSet<string> set)
1382public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
Microsoft.Build.Tasks.Core (55)
ResolveSDKReference.cs (15)
315var sdkNamesOnReferenceItems = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
329var sdkReferenceItems = new HashSet<SDKReference>();
332var productFamilyNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase);
335var sdkNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase);
338var sdksNotCompatibleWithOtherSDKs = new HashSet<SDKReference>();
363if (!productFamilyNameToSDK.TryGetValue(reference.ProductFamilyName, out HashSet<SDKReference> sdksWithProductFamilyName))
378if (!sdkNameToSDK.TryGetValue(reference.SimpleName, out HashSet<SDKReference> sdksWithSimpleName))
403var sdksAlreadyErrorOrWarnedFor = new HashSet<SDKReference>();
408if (productFamilyNameToSDK.TryGetValue(notCompatibleReference.ProductFamilyName, out HashSet<SDKReference> referenceInProductFamily))
437if (sdkNameToSDK.TryGetValue(notCompatibleReference.SimpleName, out HashSet<SDKReference> referenceWithSameName))
479internal static void AddMetadataToReferences(TaskLoggingHelper log, HashSet<SDKReference> sdkReferenceItems, Dictionary<string, string> referencesToAddMetadata, string metadataName, string metadataValue)
499internal static void VerifySDKDependsOn(TaskLoggingHelper log, HashSet<SDKReference> sdkReferenceItems)
523internal static string[] GetUnresolvedDependentSDKs(HashSet<SDKReference> sdkReferenceItems, List<string> dependentSDKs)
912public void Resolve(Dictionary<string, ITaskItem> sdks, string targetConfiguration, string targetArchitecture, HashSet<string> sdkNamesOnReferenceItems, bool treatErrorsAsWarnings, bool prefer32Bit, string identifierTargetPlatform, Version versionTargetPlatform, string projectName, bool enableMaxPlatformVersionEmptyWarning)
1171private void CreateResolvedReferenceItem(string targetConfiguration, string targetArchitecture, HashSet<string> sdkNamesOnReferenceItems, string targetPlatformIdentifier, Version targetPlatformVersion, Version targetPlatformVersionFromItem, string projectName, bool enableMaxPlatformVersionEmptyWarning)
XMakeAttributes.cs (5)
104private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name, condition, dependsOnTargets, beforeTargets, afterTargets };
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
112private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildArchitectureValues.x86, MSBuildArchitectureValues.x64, MSBuildArchitectureValues.arm64, MSBuildArchitectureValues.currentArchitecture, MSBuildArchitectureValues.any };
Microsoft.Build.Tasks.UnitTests (4)
Microsoft.Build.Utilities.Core (3)
Microsoft.Cci.Extensions (21)
Microsoft.CodeAnalysis (102)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (13)
29private readonly HashSet<DiagnosticAnalyzer> _completedAnalyzersForCompilation;
30private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByTree;
31private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSemanticAnalyzersByTree;
32private readonly Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByAdditionalFile;
45_completedSyntaxAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>();
46_completedSemanticAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>();
47_completedSyntaxAnalyzersByAdditionalFile = new Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>>();
104private HashSet<DiagnosticAnalyzer>? GetCompletedAnalyzersForFile_NoLock(SourceOrAdditionalFile filterFile, bool syntax)
109if (completedAnalyzersByTree.TryGetValue(tree, out var completedAnalyzersForTree))
116if (_completedSyntaxAnalyzersByAdditionalFile.TryGetValue(additionalFile, out var completedAnalyzersForFile))
131var completedAnalyzers = new HashSet<DiagnosticAnalyzer> { analyzer };
165var completedAnalyzersForFile = filterScope.HasValue
217var completedAnalyzersForFile = GetCompletedAnalyzersForFile_NoLock(analysisScope.FilterFileOpt.Value, analysisScope.IsSyntacticSingleFileAnalysis);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
919Action<TBlockStartAction, HashSet<TBlockAction>, ExecutionData, TArgs, CancellationToken> addActions,
921Action<HashSet<TBlockAction>, AnalyzerDiagnosticReporter, Func<Diagnostic, CancellationToken, bool>, ExecutionData, TArgs, CancellationToken> executeBlockActions,
Microsoft.CodeAnalysis.Analyzers (19)
Microsoft.CodeAnalysis.AnalyzerUtilities (36)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (11)
58protected override void AddTrackedEntities(TaintedDataAnalysisData analysisData, HashSet<AnalysisEntity> builder, bool forInterproceduralAnalysis)
481HashSet<SymbolAccess>? sourceOrigins = null;
569if (IsMethodArgumentASink(targetMethod, infosForType, taintedArgument, out HashSet<SinkKind>? sinkKinds))
604if (this.IsPropertyASink(propertyReferenceOperation, out HashSet<SinkKind>? sinkKinds))
682private static bool IsMethodArgumentASink(IMethodSymbol method, IEnumerable<SinkInfo> infosForType, IArgumentOperation taintedArgument, [NotNullWhen(returnValue: true)] out HashSet<SinkKind>? sinkKinds)
685Lazy<HashSet<SinkKind>> lazySinkKinds = new Lazy<HashSet<SinkKind>>(() => []);
722/// <param name="sinkKinds">If the property is a sink, <see cref="HashSet{SinkInfo}"/> containing the kinds of sinks; null otherwise.</param>
724private bool IsPropertyASink(IPropertyReferenceOperation propertyReferenceOperation, [NotNullWhen(returnValue: true)] out HashSet<SinkKind>? sinkKinds)
726Lazy<HashSet<SinkKind>> lazySinkKinds = new Lazy<HashSet<SinkKind>>(() => []);
Microsoft.CodeAnalysis.BannedApiAnalyzers (10)
Microsoft.CodeAnalysis.CodeStyle (69)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (10)
56private readonly ObjectPool<HashSet<string>> _fieldNamesPool = new(() => new(semanticFacts.SyntaxFacts.StringComparer));
91SemanticModel semanticModel, IMethodSymbol accessor, HashSet<string> fieldNames, HashSet<IFieldSymbol> result, CancellationToken cancellationToken);
94HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken);
221HashSet<string> fieldNames,
258HashSet<string> fieldNames,
275SemanticModel semanticModel, IMethodSymbol setMethod, HashSet<string> fieldNames, CancellationToken cancellationToken)
293HashSet<string> fieldNames,
329HashSet<string> fieldNames,
501HashSet<string> fieldNames,
Microsoft.CodeAnalysis.CodeStyle.Fixes (19)
Microsoft.CodeAnalysis.Collections.Package (6)
Microsoft.CodeAnalysis.CSharp (273)
FlowAnalysis\DataFlowsOutWalker.cs (7)
27private DataFlowsOutWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<Symbol> unassignedVariables, ImmutableArray<ISymbol> dataFlowsIn)
33internal static HashSet<Symbol> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<Symbol> unassignedVariables, ImmutableArray<ISymbol> dataFlowsIn)
39var result = walker.Analyze(ref badRegion);
54private readonly HashSet<Symbol> _dataFlowsOut = new HashSet<Symbol>();
58private readonly HashSet<Symbol> _assignedInside = new HashSet<Symbol>();
61private HashSet<Symbol> Analyze(ref bool badRegion)
Symbols\BaseTypeAnalysis.cs (6)
33private static void TypeDependsClosure(NamedTypeSymbol type, CSharpCompilation currentCompilation, HashSet<Symbol> partialClosure)
80private static void StructDependsClosure(NamedTypeSymbol type, HashSet<NamedTypeSymbol> partialClosure, HashSet<NamedTypeSymbol> typesWithCycle, ConsList<NamedTypeSymbol> on)
112static void visitFields(NamedTypeSymbol type, HashSet<NamedTypeSymbol> partialClosure, HashSet<NamedTypeSymbol> typesWithCycle, ConsList<NamedTypeSymbol> on)
173static (bool definitelyManaged, bool hasGenerics) dependsOnDefinitelyManagedType(NamedTypeSymbol type, HashSet<Symbol> partialClosure, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Symbol.cs (5)
1330internal static bool GetUnificationUseSiteDiagnosticRecursive<T>(ref DiagnosticInfo result, ImmutableArray<T> types, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) where T : TypeSymbol
1343internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<TypeWithAnnotations> types, Symbol owner, ref HashSet<TypeSymbol> checkedTypes)
1356internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<CustomModifier> modifiers, Symbol owner, ref HashSet<TypeSymbol> checkedTypes)
1369internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<ParameterSymbol> parameters, Symbol owner, ref HashSet<TypeSymbol> checkedTypes)
1383internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<TypeParameterSymbol> typeParameters, Symbol owner, ref HashSet<TypeSymbol> checkedTypes)
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
48nameof(HashSet<int>),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Diagnostics\GetDiagnosticsTests.cs (17)
177HashSet<string> declaredSymbolNames, completedCompilationUnits;
226HashSet<string> declaredSymbolNames, completedCompilationUnits;
278HashSet<string> declaredSymbolNames, completedCompilationUnits;
345HashSet<string> declaredSymbolNames, completedCompilationUnits;
411HashSet<string> declaredSymbols, completedCompilationUnits;
451private static bool DequeueCompilationEvents(AsyncQueue<CompilationEvent> eventQueue, out bool compilationStartedFired, out HashSet<string> declaredSymbolNames, out HashSet<string> declaredSymbols, out HashSet<string> completedCompilationUnits)
1124var uniqueCallbacks = new HashSet<SyntaxNode>();
1685var expectedSymbolCallbacks = new HashSet<string>() { "C", "M1" };
1686var expectedSyntaxNodeCallbacks = new HashSet<string>() { "int x11 = 0;" };
1687var expectedSyntaxNodeInsideBlockCallbacks = new HashSet<string>();
1688var expectedOperationCallbacks = new HashSet<string>() { "int x11 = 0" };
1689var expectedOperationInsideBlockCallbacks = new HashSet<string>();
1690var expectedBlockSymbolCallbacks = new HashSet<string>();
1691var expectedSymbolStartSymbolCallbacks = new HashSet<string>();
1692var expectedSemanticModelTreeCallbacks = new HashSet<SyntaxTree>();
Microsoft.CodeAnalysis.CSharp.Features (37)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
48nameof(HashSet<int>),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (18)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
Microsoft.CodeAnalysis.EditorFeatures (16)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (9)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (137)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (8)
14public static HashSet<DocumentHandle> FindDocumentHandles(EntityHandle handle, MetadataReader dllReader, MetadataReader pdbReader)
16var docList = new HashSet<DocumentHandle>();
40private static void ProcessMethodDef(MethodDefinitionHandle methodDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList, bool processDeclaringType)
72private static void ProcessEventDef(EventDefinitionHandle eventDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
97private static void ProcessPropertyDef(PropertyDefinitionHandle propertyDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
117private static void ProcessFieldDef(FieldDefinitionHandle fieldDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
124private static void ProcessTypeDef(TypeDefinitionHandle typeDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList, bool processContainingType = true)
154private static void AddDocumentsFromTypeDefinitionDocuments(TypeDefinitionHandle typeDefHandle, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (10)
56private readonly ObjectPool<HashSet<string>> _fieldNamesPool = new(() => new(semanticFacts.SyntaxFacts.StringComparer));
91SemanticModel semanticModel, IMethodSymbol accessor, HashSet<string> fieldNames, HashSet<IFieldSymbol> result, CancellationToken cancellationToken);
94HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken);
221HashSet<string> fieldNames,
258HashSet<string> fieldNames,
275SemanticModel semanticModel, IMethodSymbol setMethod, HashSet<string> fieldNames, CancellationToken cancellationToken)
293HashSet<string> fieldNames,
329HashSet<string> fieldNames,
501HashSet<string> fieldNames,
Microsoft.CodeAnalysis.Features.UnitTests (3)
Microsoft.CodeAnalysis.InteractiveHost (8)
Microsoft.CodeAnalysis.LanguageServer (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Microsoft.CodeAnalysis.PublicApiAnalyzers (9)
Microsoft.CodeAnalysis.Remote.ServiceHub (25)
Host\AssetProvider.cs (3)
59AssetPath assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken) where TArg : default
232AssetPath assetPath, Action<ProjectStateChecksums, HashSet<Checksum>, TArg> addAllChecksums, TArg arg)
245AssetPath assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Remote.Workspaces (6)
AbstractAssetProvider.cs (2)
27public abstract Task GetAssetsAsync<T, TArg>(AssetPath assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken);
180public Task GetAssetsAsync<TArg>(AssetPath assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Scripting (3)
Microsoft.CodeAnalysis.Test.Utilities (43)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (13)
47Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes = new Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>>();
54Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes = new Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>>();
162private static bool HasMoreSpecificSourceType<SymbolType>(SymbolType symbol, ITypeSymbol symbolType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> symbolsSourceTypes, out INamedTypeSymbol commonSourceType)
164if (symbolsSourceTypes.TryGetValue(symbol, out var sourceTypes))
232private static void AssignTo(IOperation target, Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes, Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes, IOperation sourceValue)
237private static void AssignTo(IOperation target, Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes, Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes, ITypeSymbol sourceType)
252private static void AssignTo<SymbolType>(SymbolType target, ITypeSymbol targetType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> sourceTypes, IOperation sourceValue)
257private static void AssignTo<SymbolType>(SymbolType target, ITypeSymbol targetType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> sourceTypes, ITypeSymbol sourceType)
268if (!sourceTypes.TryGetValue(target, out var symbolSourceTypes))
Microsoft.CodeAnalysis.Threading.Package (6)
Microsoft.CodeAnalysis.UnitTests (28)
Microsoft.CodeAnalysis.VisualBasic (56)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (233)
FindSymbols\FindReferences\DependentTypeFinder.cs (28)
20using SymbolSet = HashSet<INamedTypeSymbol>;
64Func<INamedTypeSymbol, SymbolSet, bool> typeMatches,
106using var _1 = GetSymbolSet(out var result);
110using var _2 = GetSymbolSet(out var currentMetadataTypes);
113using var _3 = GetSymbolSet(out var currentSourceAndMetadataTypes);
152using var _ = GetSymbolSet(out var tempBuffer);
171using var _ = GetSymbolSet(out var tempBuffer);
189async Task AddDescendantSourceTypesInProjectAsync(SymbolSet result, Project project)
199using var _1 = GetSymbolSet(out var typesToSearchFor);
200using var _2 = GetSymbolSet(out var tempBuffer);
253SymbolSet result,
275async Task AddSourceTypesThatDeriveFromNameAsync(SymbolSet result, string name)
291async Task AddDescendantMetadataTypesInProjectAsync(SymbolSet result, Project project)
300using var _1 = GetSymbolSet(out var typesToSearchFor);
301using var _2 = GetSymbolSet(out var tempBuffer);
332SymbolSet metadataTypes,
336SymbolSet result)
375SymbolSet foundTypes, Func<Location, bool> assert, string message)
381private static void AddRange(SymbolSet foundTypes, SymbolSet result)
388private static void AddRange(SymbolSet foundTypes, SymbolSet currentTypes, Func<INamedTypeSymbol, bool> shouldContinueSearching)
512private static bool TypeHasBaseTypeInSet(INamedTypeSymbol type, SymbolSet set)
518private static bool TypeHasInterfaceInSet(INamedTypeSymbol type, SymbolSet set)
535SymbolSet result,
536SymbolSet typesToSearchFor,
537SymbolSet tempBuffer,
560public static PooledDisposer<PooledHashSet<INamedTypeSymbol>> GetSymbolSet(out SymbolSet instance)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (3)
34ISymbol symbol, HashSet<string>? globalAliases, Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken);
803TSymbol symbol, HashSet<string>? globalAliases, Project project, IImmutableSet<Document>? documents,
827ISymbol symbol, HashSet<string>? globalAliases, Project project,
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (14)
25public static readonly ObjectPool<HashSet<string>> StringLiteralHashSetPool = SharedPools.Default<HashSet<string>>();
26public static readonly ObjectPool<HashSet<long>> LongLiteralHashSetPool = SharedPools.Default<HashSet<long>>();
47GetIdentifierSet(ignoreCase, out var identifiers, out var escapedIdentifiers);
49var stringLiterals = StringLiteralHashSetPool.Allocate();
50var longLiterals = LongLiteralHashSetPool.Allocate();
52HashSet<(string alias, string name, int arity, bool isGlobal)>? aliasInfo = null;
328ref HashSet<(string alias, string name, int arity, bool isGlobal)>? aliasInfo,
356private static void GetIdentifierSet(bool ignoreCase, out HashSet<string> identifiers, out HashSet<string> escapedIdentifiers)
375private static void Free(bool ignoreCase, HashSet<string> identifiers, HashSet<string> escapedIdentifiers)
Shared\Extensions\ISymbolExtensions.cs (4)
224private static DocumentationComment GetDocumentationComment(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, CultureInfo? preferredCulture, bool expandIncludes, bool expandInheritdoc, CancellationToken cancellationToken)
297private static XNode[] RewriteInheritdocElements(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XNode node, CancellationToken cancellationToken)
334private static XNode[] RewriteMany(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XNode[] nodes, CancellationToken cancellationToken)
345private static XNode[]? RewriteInheritdocElement(ISymbol memberSymbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XElement element, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces.MSBuild (16)
MSBuild\ProjectMap.cs (8)
24private readonly Dictionary<string, HashSet<ProjectId>> _projectPathToProjectIdsMap;
44_projectPathToProjectIdsMap = new Dictionary<string, HashSet<ProjectId>>(PathUtilities.Comparer);
131if (!_projectPathToProjectIdsMap.TryGetValue(projectPath, out var projectIds))
148if (projectPath is not null && TryGetIdsByProjectPath(projectPath, out var projectIds))
160private bool TryFindOutputFileRefPathInProjectIdSet(string? outputRefFilePath, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result)
163private bool TryFindOutputFilePathInProjectIdSet(string? outputFilePath, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result)
166private static bool TryFindPathInProjectIdSet(string? path, Func<ProjectId, string?> getPathById, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result)
196internal bool TryGetIdsByProjectPath(string projectPath, [NotNullWhen(true)] out HashSet<ProjectId>? ids)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (30)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
Microsoft.CSharp (5)
Microsoft.Data.Analysis (25)
DataFrame.Join.cs (8)
171private static HashSet<long> Merge(DataFrame retainedDataFrame, DataFrame supplementaryDataFrame,
186retainedJoinColumnNames, supplemetaryJoinColumnNames, out HashSet<long> supplementaryJoinColumnsNullIndices);
193string[] retainedJoinColumnNames, string[] supplemetaryJoinColumnNames, out HashSet<long> supplementaryJoinColumnsNullIndices)
231var newOccurrences = shrinkedRetainedColumn.GetGroupedOccurrences(supplementaryColumn, out HashSet<long> supplementaryColumnNullIndices);
275private static HashSet<long> PerformMerging(DataFrame retainedDataFrame, string[] retainedJoinColumnNames,
276Dictionary<long, ICollection<long>> occurrences, HashSet<long> supplementaryJoinColumnsNullIndices,
283HashSet<long> intersection = calculateIntersection ? new HashSet<long>() : null;
384var intersection = Merge(retainedDataFrame, supplementaryDataFrame, retainedJoinColumns, supplementaryJoinColumns, out retainedRowIndices, out supplementaryRowIndices, calculateIntersection: true);
Microsoft.Data.Analysis.Tests (4)
Microsoft.DotNet.ArcadeLogging (2)
Microsoft.DotNet.AsmDiff (7)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Feed (39)
src\PublishArtifactsInManifestBase.cs (33)
186public readonly Dictionary<TargetFeedContentType, HashSet<TargetFeedConfig>> FeedConfigs =
187new Dictionary<TargetFeedContentType, HashSet<TargetFeedConfig>>();
189public readonly Dictionary<TargetFeedContentType, HashSet<PackageArtifactModel>> PackagesByCategory =
190new Dictionary<TargetFeedContentType, HashSet<PackageArtifactModel>>();
192public readonly Dictionary<TargetFeedContentType, HashSet<BlobArtifactModel>> BlobsByCategory =
193new Dictionary<TargetFeedContentType, HashSet<BlobArtifactModel>>();
381var packages = packagesPerCategory.Value;
383if (FeedConfigs.TryGetValue(category, out HashSet<TargetFeedConfig> feedConfigsForCategory))
394HashSet<PackageArtifactModel> filteredPackages = SplitPackageByAssetSelection(packages, feedConfig);
433HashSet<BlobArtifactModel> symbolAssets,
508HashSet<BlobArtifactModel> symbolPackages)
540var symbolPackagesToPublish = BlobsByCategory.TryGetValue(TargetFeedContentType.Symbols, out HashSet<BlobArtifactModel> symbolAssets) ?
552HashSet<TargetFeedConfig> feedConfigsForSymbols = FeedConfigs[TargetFeedContentType.Symbols];
702HashSet<string> packageFileExclusions = [];
796public SymbolPublishVisibility GetSymbolPublishingVisibility(HashSet<TargetFeedConfig> feedConfigsForSymbols)
825var packages = packagesPerCategory.Value;
827if (FeedConfigs.TryGetValue(category, out HashSet<TargetFeedConfig> feedConfigsForCategory))
831HashSet<PackageArtifactModel> filteredPackages = SplitPackageByAssetSelection(packages, feedConfig);
870protected virtual HashSet<PackageArtifactModel> SplitPackageByAssetSelection(HashSet<PackageArtifactModel> packages, TargetFeedConfig feedConfig)
1045var blobs = blobsPerCategory.Value;
1047if (FeedConfigs.TryGetValue(category, out HashSet<TargetFeedConfig> feedConfigsForCategory))
1051HashSet<BlobArtifactModel> filteredBlobs = FilterBlobs(blobs, feedConfig);
1089private HashSet<BlobArtifactModel> FilterBlobs(HashSet<BlobArtifactModel> blobs, TargetFeedConfig feedConfig)
1172HashSet<PackageArtifactModel> packagesToPublish,
1207HashSet<PackageArtifactModel> packagesToPublish,
1294HashSet<PackageArtifactModel> packagesToPublish,
1315HashSet<T> packagesToPublish,
1506private async Task PublishAssetsAsync(IAssetPublisher assetPublisher, HashSet<BlobArtifactModel> blobAssets,
1555HashSet<BlobArtifactModel> assetsToPublish,
1647HashSet<BlobArtifactModel> assetsToPublish,
Microsoft.DotNet.Build.Tasks.Feed.Tests (7)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (33)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
Microsoft.DotNet.Build.Tasks.Workloads (5)
Microsoft.DotNet.CodeAnalysis (2)
Microsoft.DotNet.GenFacades (7)
Microsoft.DotNet.Helix.JobSender (1)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SharedFramework.Sdk (6)
Microsoft.DotNet.SignCheckLibrary (11)
Verification\Exclusion.cs (11)
21private Dictionary<string, HashSet<string>> _fileExcludedCache = new();
22private Dictionary<string, HashSet<string>> _fileNotExcludedCache = new();
23private Dictionary<string, HashSet<string>> _parentExcludedCache = new();
24private Dictionary<string, HashSet<string>> _parentNotExcludedCache = new();
130Dictionary<string, HashSet<string>> cache = isExcluded ? _fileExcludedCache : _fileNotExcludedCache;
136Dictionary<string, HashSet<string>> cache = isExcluded ? _parentExcludedCache : _parentNotExcludedCache;
141Dictionary<string, HashSet<string>> excludedCache,
142Dictionary<string, HashSet<string>> notExcludedCache,
163private void AddToCache(Dictionary<string, HashSet<string>> cache, string key, IEnumerable<string> values)
179private bool IsInCache(Dictionary<string, HashSet<string>> cache, string key, IEnumerable<string> values)
180=> cache.TryGetValue(key, out var cachedValues) && values.Any(cachedValues.Contains);
Microsoft.DotNet.SignTool (12)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.XliffTasks (6)
Microsoft.DotNet.XUnitAssert.Tests (85)
CollectionAssertsTests.cs (24)
1498 var expected = new HashSet<int> { 42, 2112 };
1499 var actual = new HashSet<int> { 2112, 42 };
1512 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1513 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1525 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1526 var actual = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1534 var expected = new HashSet<int> { 42, 2112 };
1535 var actual = new HashSet<int> { 2600, 42 };
1552 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1553 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, true }) };
1569 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1570 var actual = new HashSet<BitArray> { new BitArray(new[] { true, true }) };
2165 var expected = new HashSet<int> { 42, 2112 };
2166 var actual = new HashSet<int> { 2112, 42 };
2187 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2188 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2208 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2209 var actual = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2225 var expected = new HashSet<int> { 42, 2112 };
2226 var actual = new HashSet<int> { 2600, 42 };
2235 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2236 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, true }) };
2244 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2245 var actual = new HashSet<BitArray> { new BitArray(new[] { true, true }) };
EqualityAssertsTests.cs (32)
1221 var expected = new HashSet<int> { 1, 2, 3 };
1222 var actual = new HashSet<int> { 1, 2, 3 };
1230 var expected = new HashSet<int> { 1, 2, 3 };
1231 var actual = new HashSet<int> { 1, 2, 4 };
1247 var expected = new HashSet<int> { 1, 2, 3 };
1248 var actual = new HashSet<int> { 2, 3, 1 };
1256 var expected = new HashSet<int> { 1, 2, 3 };
1257 var actual = new HashSet<int> { 2, 4, 1 };
1273 var expected = new HashSet<int> { 1, 2, 3 };
1274 var actual = new HashSet<int> { 1, 2 };
1290 var expected = new HashSet<int> { 1, 2 };
1291 var actual = new HashSet<int> { 1, 2, 3 };
1307 var expected = new HashSet<string> { "bar", "foo" };
1341 var expected = new HashSet<string> { "bar" };
1342 var actual = new HashSet<string> { "baz" };
1466 var actual = new HashSet<string> { "bar" };
1479 var actual = new HashSet<string> { "baz" };
1548 var actual = new HashSet<string> { "baz" };
3450 var expected = new HashSet<int> { 1, 2, 3 };
3451 var actual = new HashSet<int> { 1, 2, 3 };
3467 var expected = new HashSet<int> { 1, 2, 3 };
3468 var actual = new HashSet<int> { 1, 2, 4 };
3476 var expected = new HashSet<int> { 1, 2, 3 };
3477 var actual = new HashSet<int> { 2, 3, 1 };
3493 var expected = new HashSet<int> { 1, 2, 3 };
3494 var actual = new HashSet<int> { 2, 4, 1 };
3502 var expected = new HashSet<string> { "bar", "foo" };
3540 var expected = new HashSet<string> { "bar" };
3541 var actual = new HashSet<string> { "baz" };
3652 var actual = new HashSet<string> { "bar" };
3678 var actual = new HashSet<string> { "baz" };
3734 var actual = new HashSet<string> { "baz" };
SetAssertsTests.cs (28)
17 var set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "forty-two" };
34 var set = new HashSet<string>() { "eleventeen" };
67 var set = new HashSet<string>() { "eleventeen" };
84 var set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "forty-two" };
123 var expectedSubset = new HashSet<int> { 1, 2, 3 };
124 var actual = new HashSet<int> { 1, 2, 3 };
140 var expectedSubset = new HashSet<int> { 1, 2, 3, 4 };
141 var actual = new HashSet<int> { 1, 2, 3 };
149 var expectedSubset = new HashSet<int> { 1, 2, 3 };
150 var actual = new HashSet<int> { 1, 2, 7 };
189 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
190 var actual = new HashSet<int> { 1, 2, 3 };
206 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
207 var actual = new HashSet<int> { 1, 2, 3, 4 };
215 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
216 var actual = new HashSet<int> { 1, 2, 7 };
255 var expectedSubset = new HashSet<int> { 1, 2, 3 };
256 var actual = new HashSet<int> { 1, 2, 3 };
264 var expectedSubset = new HashSet<int> { 1, 2, 3, 4 };
265 var actual = new HashSet<int> { 1, 2, 3 };
273 var expectedSubset = new HashSet<int> { 1, 2, 3 };
274 var actual = new HashSet<int> { 1, 2, 7 };
313 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
314 var actual = new HashSet<int> { 1, 2, 3 };
322 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
323 var actual = new HashSet<int> { 1, 2, 3, 4 };
331 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
332 var actual = new HashSet<int> { 1, 2, 7 };
Microsoft.DotNet.XUnitV3Extensions (1)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (2)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (5)
Microsoft.Extensions.AI.OpenAI (2)
Microsoft.Extensions.ApiDescription.Client (3)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.AsyncState (5)
Microsoft.Extensions.Compliance.Abstractions (7)
Microsoft.Extensions.Compliance.Testing.Tests (2)
Microsoft.Extensions.Configuration.Binder (3)
Microsoft.Extensions.DependencyInjection (3)
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileSystemGlobbing (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Resilience (5)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Generators (4)
Microsoft.Extensions.Options.DataAnnotations (2)
Microsoft.Extensions.Options.SourceGeneration (13)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.Telemetry (6)
Microsoft.Extensions.Telemetry.Abstractions (5)
Microsoft.Extensions.TimeProvider.Testing (1)
Microsoft.Gen.ComplianceReports (5)
Microsoft.Gen.ContextualOptions (5)
Microsoft.Gen.Logging (24)
Microsoft.Gen.MetadataExtractor (18)
Microsoft.Gen.Metrics (18)
Microsoft.Gen.MetricsReports (18)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (11)
Analyzers\CustomMarshallerAttributeFixer.cs (9)
32Dictionary<(INamedTypeSymbol marshallerType, ITypeSymbol managedType, bool isLinearCollectionMarshaller), HashSet<string>> uniqueMarshallersToFix = new();
47if (!uniqueMarshallersToFix.TryGetValue(uniqueMarshallerFixKey, out HashSet<string> membersToAdd))
63HashSet<string> missingMembers = marshallerInfo.Value;
130private static (HashSet<string> missingMembers, List<Diagnostic> fixedDiagnostics) GetRequiredShapeMissingMemberNames(IEnumerable<Diagnostic> diagnostics)
132HashSet<string> missingMemberNames = new();
154private static async Task<Solution> AddMissingMembers(Document doc, SyntaxNode node, HashSet<string> missingMemberNames, CancellationToken ct)
191HashSet<string> missingMemberNames,
204private static void AddMissingMembersToStatelessMarshaller(DocumentEditor editor, SyntaxNode declaringSyntax, INamedTypeSymbol marshallerType, ITypeSymbol managedType, HashSet<string> missingMemberNames, bool isLinearCollectionMarshaller)
400private static void AddMissingMembersToStatefulMarshaller(DocumentEditor editor, SyntaxNode declaringSyntax, INamedTypeSymbol marshallerType, ITypeSymbol managedType, HashSet<string> missingMemberNames, bool isLinearCollectionMarshaller)
Microsoft.Maui (5)
Microsoft.Maui.Controls (17)
Microsoft.Maui.Controls.DesignTools (2)
Microsoft.ML.AutoML (14)
Microsoft.ML.CodeGenerator (7)
Microsoft.ML.Core (7)
Microsoft.ML.Core.Tests (6)
Microsoft.ML.Data (47)
Microsoft.ML.Ensemble (2)
Microsoft.ML.EntryPoints (3)
Microsoft.ML.FastTree (5)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.OnnxConverter (14)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.ResultProcessor (2)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.Sweeper (5)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TestFramework (3)
Microsoft.ML.Tests (5)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Tokenizers (2)
Microsoft.ML.TorchSharp (6)
Microsoft.ML.Transforms (5)
Microsoft.ML.Vision (1)
Microsoft.VisualStudio.LanguageServices (24)
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
MSBuild (17)
XMakeAttributes.cs (5)
104private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name, condition, dependsOnTargets, beforeTargets, afterTargets };
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
112private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildArchitectureValues.x86, MSBuildArchitectureValues.x64, MSBuildArchitectureValues.arm64, MSBuildArchitectureValues.currentArchitecture, MSBuildArchitectureValues.any };
MSBuildTaskHost (18)
BinaryTranslator.cs (4)
298public void Translate(ref HashSet<string> set)
600public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
1102public void Translate(ref HashSet<string> set)
1382public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
XMakeAttributes.cs (5)
104private static readonly HashSet<string> KnownSpecialTaskAttributes = new HashSet<string> { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
106private static readonly HashSet<string> KnownSpecialTaskAttributesIgnoreCase = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { condition, continueOnError, msbuildRuntime, msbuildArchitecture, xmlns };
108private static readonly HashSet<string> KnownBatchingTargetAttributes = new HashSet<string> { name, condition, dependsOnTargets, beforeTargets, afterTargets };
110private static readonly HashSet<string> ValidMSBuildRuntimeValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildRuntimeValues.clr2, MSBuildRuntimeValues.clr4, MSBuildRuntimeValues.currentRuntime, MSBuildRuntimeValues.net, MSBuildRuntimeValues.any };
112private static readonly HashSet<string> ValidMSBuildArchitectureValues = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { MSBuildArchitectureValues.x86, MSBuildArchitectureValues.x64, MSBuildArchitectureValues.arm64, MSBuildArchitectureValues.currentArchitecture, MSBuildArchitectureValues.any };
Mvc.Analyzers.Test (1)
netstandard (1)
PresentationBuildTasks (2)
PresentationCore (7)
PresentationFramework (7)
Replay (2)
Roslyn.Diagnostics.Analyzers (14)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (3)
RulesetToEditorconfigConverter (2)
RunTests (2)
Shared (5)
Shared.Tests (7)
SocialWeather (4)
System.CodeDom (1)
System.Collections (1)
System.Collections.Immutable (23)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (14)
System.ComponentModel.TypeConverter (2)
System.Composition.Hosting (3)
System.Core (1)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (3)
System.Formats.Cbor (17)
System.IO.Packaging (2)
System.Linq (14)
System.Linq.AsyncEnumerable (18)
System.Linq.Expressions (22)
System.Linq.Parallel (5)
System.Net.HttpListener (1)
System.Private.CoreLib (113)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (68)
95if (collection is HashSet<T> otherAsHashSet && EffectiveEqualityComparersAreEqual(this, otherAsHashSet))
146private void ConstructFrom(HashSet<T> source)
196/// <summary>Removes all elements from the <see cref="HashSet{T}"/> object.</summary>
213/// <summary>Determines whether the <see cref="HashSet{T}"/> contains the specified element.</summary>
214/// <param name="item">The element to locate in the <see cref="HashSet{T}"/> object.</param>
215/// <returns>true if the <see cref="HashSet{T}"/> object contains the specified element; otherwise, false.</returns>
371/// Gets an instance of a type that may be used to perform operations on the current <see cref="HashSet{T}"/>
393/// Gets an instance of a type that may be used to perform operations on the current <see cref="HashSet{T}"/>
417/// Provides a type that may be used to perform operations on a <see cref="HashSet{T}"/>
424internal AlternateLookup(HashSet<T> set)
431/// <summary>Gets the <see cref="HashSet{T}"/> against which this instance performs operations.</summary>
432public HashSet<T> Set { get; }
436internal static bool IsCompatibleItem(HashSet<T> set)
444internal static IAlternateEqualityComparer<TAlternate, T> GetAlternateComparer(HashSet<T> set)
455HashSet<T> set = Set;
543HashSet<T> set = Set;
628HashSet<T> set = Set;
769/// <summary>Adds the specified element to the <see cref="HashSet{T}"/>.</summary>
771/// <returns>true if the element is added to the <see cref="HashSet{T}"/> object; false if the element is already present.</returns>
800/// <summary>Modifies the current <see cref="HashSet{T}"/> object to contain all elements that are present in itself, the specified collection, or both.</summary>
801/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
815/// <summary>Modifies the current <see cref="HashSet{T}"/> object to contain only elements that are present in that object and in the specified collection.</summary>
816/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
842if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
852/// <summary>Removes all elements in the specified collection from the current <see cref="HashSet{T}"/> object.</summary>
853/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
881/// <summary>Modifies the current <see cref="HashSet{T}"/> object to contain only elements that are present either in that object or in the specified collection, but not both.</summary>
882/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
909if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
919/// <summary>Determines whether a <see cref="HashSet{T}"/> object is a subset of the specified collection.</summary>
920/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
921/// <returns>true if the <see cref="HashSet{T}"/> object is a subset of <paramref name="other"/>; otherwise, false.</returns>
946if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
956/// <summary>Determines whether a <see cref="HashSet{T}"/> object is a proper subset of the specified collection.</summary>
957/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
958/// <returns>true if the <see cref="HashSet{T}"/> object is a proper subset of <paramref name="other"/>; otherwise, false.</returns>
988if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
1000/// <summary>Determines whether a <see cref="HashSet{T}"/> object is a proper superset of the specified collection.</summary>
1001/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
1002/// <returns>true if the <see cref="HashSet{T}"/> object is a superset of <paramref name="other"/>; otherwise, false.</returns>
1026if (other is HashSet<T> otherAsSet &&
1045/// <summary>Determines whether a <see cref="HashSet{T}"/> object is a proper superset of the specified collection.</summary>
1046/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
1047/// <returns>true if the <see cref="HashSet{T}"/> object is a proper superset of <paramref name="other"/>; otherwise, false.</returns>
1071if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
1088/// <summary>Determines whether the current <see cref="HashSet{T}"/> object and a specified collection share common elements.</summary>
1089/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
1090/// <returns>true if the <see cref="HashSet{T}"/> object and <paramref name="other"/> share at least one common element; otherwise, false.</returns>
1120/// <summary>Determines whether a <see cref="HashSet{T}"/> object and the specified collection contain the same elements.</summary>
1121/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
1122/// <returns>true if the <see cref="HashSet{T}"/> object is equal to <paramref name="other"/>; otherwise, false.</returns>
1145if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
1172/// <summary>Copies the elements of a <see cref="HashSet{T}"/> object to an array, starting at the specified array index.</summary>
1207/// <summary>Removes all elements that match the conditions defined by the specified predicate from a <see cref="HashSet{T}"/> collection.</summary>
1333/// Sets the capacity of a <see cref="HashSet{T}"/> object to the actual number of elements it contains,
1339/// Sets the capacity of a <see cref="HashSet{T}"/> object to the specified number of entries,
1383/// <summary>Returns an <see cref="IEqualityComparer"/> object that can be used for equality testing of a <see cref="HashSet{T}"/> object.</summary>
1384public static IEqualityComparer<HashSet<T>> CreateSetComparer() => new HashSetEqualityComparer<T>();
1410/// <returns>true if the element is added to the <see cref="HashSet{T}"/> object; false if the element is already present.</returns>
1533internal bool IsSubsetOfHashSetWithSameComparer(HashSet<T> other)
1550private void IntersectWithHashSetWithSameComparer(HashSet<T> other)
1617private void SymmetricExceptWithUniqueHashSet(HashSet<T> other)
1776internal static bool EqualityComparersAreEqual(HashSet<T> set1, HashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
1782internal static bool EffectiveEqualityComparersAreEqual(HashSet<T> set1, HashSet<T> set2) => set1.EffectiveComparer.Equals(set2.EffectiveComparer);
1800private readonly HashSet<T> _hashSet;
1805internal Enumerator(HashSet<T> hashSet)
System.Private.CoreLib.Generators (7)
System.Private.DataContractSerialization (14)
System\Runtime\Serialization\DataContract.cs (8)
1094private static bool IsTypeSerializable(Type type, HashSet<Type>? previousCollectionTypes)
1123private static void ValidatePreviousCollectionTypes(Type collectionType, Type itemType, HashSet<Type> previousCollectionTypes)
1234internal static XmlQualifiedName GetXmlName(Type type, HashSet<Type> previousCollectionTypes, out bool hasDataContract)
1290private static XmlQualifiedName GetNonDCTypeXmlName(Type type, HashSet<Type> previousCollectionTypes)
1315private static bool TryGetBuiltInXmlAndArrayTypeXmlName(Type type, HashSet<Type> previousCollectionTypes, [NotNullWhen(true)] out XmlQualifiedName? xmlName)
1364internal static XmlQualifiedName GetCollectionXmlName(Type type, Type itemType, HashSet<Type> previousCollectionTypes, out CollectionDataContractAttribute? collectionContractAttribute)
2075internal virtual bool Equals(object? other, HashSet<DataContractPairKey>? checkedContracts)
2084internal bool IsEqualOrChecked(object? other, HashSet<DataContractPairKey>? checkedContracts)
System.Private.Windows.Core (12)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (11)
System.Private.Xml.Linq (1)
System.Reflection.DispatchProxy (1)
System.Reflection.Emit (2)
System.Reflection.MetadataLoadContext (1)
System.Resources.Extensions (10)
System.Runtime.Serialization.Schema (5)
System.Security.Cryptography (15)
System.Security.Cryptography.Pkcs (1)
System.ServiceModel.Syndication (1)
System.Text.Json (2)
System.Text.Json.SourceGeneration (6)
System.Text.RegularExpressions (18)
System.Text.RegularExpressions.Generator (16)
System.Threading.RateLimiting (1)
System.Windows.Controls.Ribbon (3)
System.Windows.Forms (14)
System.Windows.Forms.Design (15)
System.Windows.Forms.Primitives.TestUtilities (2)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Input.Manipulations (3)
System.Xaml (19)
TaskUsageLogger (10)
Templates.Blazor.Tests (4)
Templates.Blazor.WebAssembly.Auth.Tests (4)
Templates.Blazor.WebAssembly.Tests (4)
Templates.Mvc.Tests (4)
Templates.Tests (4)
Test.Utilities (8)
TestDiscoveryWorker (1)
Text.Analyzers (12)
xunit.assert (18)