1140 references to HashSet
AnalyzerRunner (3)
CodeRefactoringRunner.cs (1)
178var refactoringTypes = new HashSet<Type>();
DiagnosticAnalyzerRunner.cs (2)
209var uniqueLines = new HashSet<string>(); 257var analyzerTypes = new HashSet<Type>();
Aspire.Dashboard (8)
Components\Controls\ResourceDetails.razor.cs (1)
54private readonly HashSet<string> _unmaskedItemNames = new();
Components\Controls\SummaryDetailsView.razor.cs (1)
223public IReadOnlySet<AspireKeyboardShortcut> SubscribedShortcuts { get; } = new HashSet<AspireKeyboardShortcut>
Components\Layout\MainLayout.razor.cs (1)
236public IReadOnlySet<AspireKeyboardShortcut> SubscribedShortcuts { get; } = new HashSet<AspireKeyboardShortcut>
Components\Pages\TraceDetail.razor.cs (2)
105var visibleViewModels = new HashSet<SpanWaterfallViewModel>(); 231var apps = new HashSet<OtlpApplication>();
Model\DimensionFilterViewModel.cs (1)
16public HashSet<DimensionValueViewModel> SelectedValues { get; } = new();
Otlp\Storage\TelemetryRepository.cs (2)
45private readonly HashSet<(OtlpApplication Application, string PropertyKey)> _logPropertyKeys = new(); 46private readonly HashSet<(OtlpApplication Application, string PropertyKey)> _tracePropertyKeys = new();
Aspire.Hosting (4)
Dcp\DcpExecutor.cs (1)
837var serviceNames = new HashSet<string>();
Publishing\ManifestPublishingContext.cs (1)
404var httpSchemesEncountered = new HashSet<string>();
ResourceBuilderExtensions.cs (1)
1984var processed = new HashSet<object>();
ResourceLoggerForwarderService.cs (1)
39var loggingResourceIds = new HashSet<string>();
Aspire.Hosting.Azure (1)
AzureResourcePreparer.cs (1)
469existingRoles = new HashSet<RoleDefinition>();
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
247var httpSchemesEncountered = new HashSet<string>();
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryExtensions.cs (1)
63.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
40.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
145.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
125.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Azure.Sql (1)
AzureSqlExtensions.cs (1)
90.WithAnnotation(new DefaultRoleAssignmentsAnnotation(new HashSet<RoleDefinition>()));
Aspire.Hosting.Testing.Tests (1)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
127var loggingResourceIds = new HashSet<string>();
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (1)
93var resourceIds = new HashSet<string>();
DistributedApplicationTests.cs (2)
958var expectedExeResources = new HashSet<string>() 967var expectedContainerResources = new HashSet<string>()
Utils\LoggerNotificationExtensions.cs (1)
127var loggingResourceIds = new HashSet<string>();
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientInstrumentation.cs (1)
25private static readonly HashSet<string> DiagnosticSourceEvents = new()
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientInstrumentation.cs (1)
25private static readonly HashSet<string> DiagnosticSourceEvents = new()
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (1)
57var seenVolumes = new HashSet<string>();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
127var loggingResourceIds = new HashSet<string>();
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)
BoundNodeClassWriter.cs (1)
49_valueTypes = new HashSet<string>();
BuildActionTelemetryTable (1)
Program.cs (1)
26private static ImmutableHashSet<string> IgnoredCodeActions { get; } = new HashSet<string>()
BuildBoss (1)
SolutionCheckerUtil.cs (1)
147var set = new HashSet<string>();
BuildValidator (1)
LocalReferenceResolver.cs (1)
40private readonly HashSet<DirectoryInfo> _indexDirectories = new();
CodeGenerator (1)
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (1)
81var mashHash = new HashSet<ulong>();
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (1)
211_typesForGen[method] = types = new HashSet<TypeSpec>();
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
502var availableCommands = new HashSet<string>();
dotnet-svcutil-lib (6)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (3)
1283return IsTypeSerializable(type, new HashSet<Type>()); 1409return GetStableName(type, new HashSet<Type>(), out hasDataContract); 1574return GetCollectionStableName(type, itemType, new HashSet<Type>(), out collectionContractAttribute);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObjectManager.cs (1)
17_table = new HashSet<ItemType>();
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceChannelManager.cs (1)
418private HashSet<IChannel> _hashSet = new HashSet<IChannel>();
ImportModule.cs (1)
406private readonly HashSet<ContractDescription> _httpBindingContracts = new HashSet<ContractDescription>();
dotnet-user-jwts (1)
Helpers\DevJwtCliHelpers.cs (1)
76var applicationUrls = new HashSet<string>();
GenerateDocumentationAndConfigFiles (13)
Program.cs (2)
268var fixableDiagnosticIds = new HashSet<string>(); 269var categories = new HashSet<string>();
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
126var addedSymbols = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
294var unusedImports = new HashSet<SyntaxNode>();
illink (45)
ILLink.RoslynAnalyzer (2)
DataFlow\LValueFlowCaptureProvider.cs (1)
61var rvalueFlowCaptureIds = new HashSet<CaptureId>();
ISymbolExtensions.cs (1)
86HashSet<string> featureSet = new();
ILLink.Tasks (2)
CreateRuntimeRootDescriptorFile.cs (2)
490members.fields ??= new HashSet<string>(); 517members.methods ??= new HashSet<string>();
Infrastructure.Common (2)
xunit\IssueAttribute.cs (2)
111return propertyAsBool ? new HashSet<int>() : null; 117HashSet<int> hashSet = new HashSet<int>();
InMemory.FunctionalTests (1)
Http2\Http2TestBase.cs (1)
133protected readonly HashSet<int> _abortedStreamIds = new HashSet<int>();
Interop.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
40_blocks = new HashSet<DiagnosticPoolBlock>();
InteropTests (1)
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Metrics (11)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
Metrics.Legacy (11)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
Microsoft.Analyzers.Extra.Tests (3)
SyntaxNodeExtensionsTests.cs (3)
88var typesToStopTraversing = new HashSet<Type> 150Assert.False(methodInvocSyntax!.NodeHasSpecifiedMethod(model, new HashSet<string>())); 180Assert.True(methodInvocSyntax!.NodeHasSpecifiedMethod(model, new HashSet<string> { "Extensions.AddA(string)" }));
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticVerifier.cs (1)
73var projects = new HashSet<Project>();
Microsoft.AspNetCore.Analyzers.Test (1)
src\Shared\AnalyzerTesting\TestReferences.cs (1)
20var seen = new HashSet<string>();
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\RoutePattern\RoutePatternParser.cs (1)
71var seenDiagnostics = new HashSet<EmbeddedDiagnostic>();
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
328private readonly HashSet<string> _names = new();
Microsoft.AspNetCore.App.UnitTests (1)
TargetingPackTests.cs (1)
311new HashSet<string>();
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookOptions.cs (1)
93public ICollection<string> Fields { get; } = new HashSet<string>();
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\LdapAdapter.cs (1)
73GetNestedGroups(settings.LdapConnection, identity, distinguishedName, groupCN, logger, retrievedClaims, new HashSet<string>());
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthOptions.cs (1)
84public ICollection<string> Scope { get; } = new HashSet<string>();
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
237public ICollection<string> Scope { get; } = new HashSet<string>();
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
288argValue = new HashSet<string>();
Microsoft.AspNetCore.Components (4)
CascadingValue.cs (1)
157_subscribers ??= new HashSet<ComponentState>();
NavigationManager.cs (1)
411var locationChangingTasks = new HashSet<Task>();
Routing\SupplyParameterFromQueryValueProvider.cs (2)
41_pendingSubscribers ??= new(); 46_subscribers ??= new();
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
53var projects = new HashSet<Project>();
Microsoft.AspNetCore.Components.Authorization.Tests (1)
src\Components\Shared\test\TestRenderer.cs (1)
50private HashSet<TestRendererComponentState> UndisposedComponentStates { get; } = new();
Microsoft.AspNetCore.Components.Endpoints (4)
Discovery\ComponentApplicationBuilder.cs (1)
14private readonly HashSet<string> _assemblies = new();
Discovery\RazorComponentApplication.cs (1)
39var set = new HashSet<IComponentRenderMode>();
FormMapping\FormDataReader.cs (1)
155result.Add(new FormKey(prefix), new HashSet<FormKey> { new FormKey(keyValue) });
Rendering\EndpointHtmlRenderer.Streaming.cs (1)
145_visitedComponentIdsInCurrentStreamingBatch = new();
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 };
ImportMapTest.cs (1)
277private HashSet<TestRendererComponentState> UndisposedComponentStates { get; } = new();
Microsoft.AspNetCore.Components.Forms (1)
FieldState.cs (1)
41_validationMessageStores = new HashSet<ValidationMessageStore>();
Microsoft.AspNetCore.Components.Forms.Tests (1)
src\Components\Shared\test\TestRenderer.cs (1)
50private HashSet<TestRendererComponentState> UndisposedComponentStates { get; } = new();
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
53var projects = new HashSet<Project>();
Microsoft.AspNetCore.Components.Server (2)
Circuits\ServerComponentDeserializer.cs (2)
68private readonly HashSet<Guid> _expiredInvocationIds = new(); 69private readonly HashSet<int> _seenSequenceNumbersForCurrentInvocation = new();
Microsoft.AspNetCore.Components.Tests (4)
NavigationManagerTest.cs (2)
566var canceledHandlerTaskIds = new HashSet<string>(); 610var canceledHandlerTaskIds = new HashSet<string>();
Routing\RouteTableFactoryTests.cs (1)
127var result = new HashSet<InboundRouteEntry>();
src\Components\Shared\test\TestRenderer.cs (1)
50private HashSet<TestRendererComponentState> UndisposedComponentStates { get; } = new();
Microsoft.AspNetCore.Components.Web.Tests (1)
src\Components\Shared\test\TestRenderer.cs (1)
50private HashSet<TestRendererComponentState> UndisposedComponentStates { get; } = new();
Microsoft.AspNetCore.DataProtection (2)
KeyManagement\XmlKeyManager.cs (2)
437var allKeyIds = new HashSet<Guid>(); 438var deletedKeyIds = new HashSet<Guid>();
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
502var availableCommands = new HashSet<string>();
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
src\Grpc\JsonTranscoding\src\Shared\DescriptorRegistry.cs (1)
13private readonly HashSet<FileDescriptor> _fileDescriptors = new HashSet<FileDescriptor>();
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
35private static readonly HashSet<string> WellKnownTypeNames = new HashSet<string>
Microsoft.AspNetCore.Grpc.Swagger (2)
src\Grpc\JsonTranscoding\src\Shared\DescriptorRegistry.cs (1)
13private readonly HashSet<FileDescriptor> _fileDescriptors = new HashSet<FileDescriptor>();
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
35private static readonly HashSet<string> WellKnownTypeNames = new HashSet<string>
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostBuilder.cs (1)
130var processed = new HashSet<Assembly>();
WebHostBuilder.cs (1)
225var processed = new HashSet<Assembly>();
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
155result.Add(new FormKey(prefix), new HashSet<FormKey> { new FormKey(keyValue) });
Microsoft.AspNetCore.InternalTesting (1)
Tracing\CollectingEventListener.cs (1)
18private readonly HashSet<string> _requestedEventSources = new HashSet<string>();
Microsoft.AspNetCore.Mvc.Analyzers (1)
TagHelpersInCodeBlocksAnalyzer.cs (1)
43var capturedDiagnosticLocations = new HashSet<Location>();
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationParts\ApplicationPartManager.cs (1)
55var seenAssemblies = new HashSet<Assembly>();
ModelBinding\Metadata\DefaultModelMetadata.cs (1)
448var visited = new HashSet<DefaultModelMetadata>();
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);
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
876{ new HashSet<string> { "Foo", "Bar", "Baz" }, typeof(string[]) }, 887new HashSet<Uri>
Routing\ActionEndpointFactoryTest.cs (4)
275new HashSet<string>(), 381new HashSet<string>(), 404new HashSet<string>(), 430new HashSet<string>(),
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
34var matched = new HashSet<string>();
Microsoft.AspNetCore.Mvc.Razor (2)
RazorViewEngine.cs (2)
191var expirationTokens = new HashSet<IChangeToken>(); 353var expirationTokens = new HashSet<IChangeToken>();
Microsoft.AspNetCore.Mvc.Razor.Test (2)
RazorViewTest.cs (2)
1750var expected = new HashSet<IRazorPage>(); 1753var activated = new HashSet<IRazorPage>();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
OptionTagHelperTest.cs (4)
52null, null, "value", new HashSet<string>(), 132string.Empty, null, null, new HashSet<string>(), 214"text", null, null, new HashSet<string>(), 285"text", null, "value", new HashSet<string>(),
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Rendering\MultiSelectList.cs (1)
180var selectedValues = new HashSet<object>();
TemplateInfo.cs (1)
24_visitedObjects = new HashSet<object>();
Microsoft.AspNetCore.OpenApi (8)
Services\OpenApiDocumentService.cs (5)
343document.Tags ??= new HashSet<OpenApiTag>(); 353document.Tags ??= new HashSet<OpenApiTag>(); 574schema.Required ??= new HashSet<string>(); 616schema.Required ??= new HashSet<string>(); 640schema.Required ??= new HashSet<string>();
Services\OpenApiGenerator.cs (3)
331var tags = new HashSet<OpenApiTagReference>(); 337document.Tags ??= new HashSet<OpenApiTag>(); 359document.Tags ??= new HashSet<OpenApiTag>();
Microsoft.AspNetCore.OpenApi.Tests (1)
Transformers\CustomSchemaTransformerTests.cs (1)
321schema.Required ??= new HashSet<string>();
Microsoft.AspNetCore.OutputCaching (2)
Memory\MemoryOutputCacheStore.cs (1)
96keys = new HashSet<TaggedEntry>();
OutputCacheContext.cs (1)
58public HashSet<string> Tags { get; } = new();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
29private static readonly HashSet<string> _tags = new();
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheEntryFormatterTests.cs (1)
54await OutputCacheEntryFormatter.StoreAsync(key, entry, new HashSet<string>() { "tag", "タグ" }, TimeSpan.Zero, store, NullLogger.Instance, default);
Microsoft.AspNetCore.RateLimiting (1)
DefaultCombinedLease.cs (1)
28_metadataNames = new HashSet<string>();
Microsoft.AspNetCore.ResponseCompression (1)
ResponseCompressionProvider.cs (1)
94var candidates = new HashSet<ProviderCandidate>();
Microsoft.AspNetCore.Routing (2)
DecisionTree\DecisionTreeBuilder.cs (2)
201MatchedItems = new HashSet<ItemDescriptor<TItem>>(); 207MatchedItems = new HashSet<ItemDescriptor<TItem>>();
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
40_blocks = new HashSet<DiagnosticPoolBlock>();
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
40_blocks = new HashSet<DiagnosticPoolBlock>();
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
40_blocks = new HashSet<DiagnosticPoolBlock>();
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
502var availableCommands = new HashSet<string>();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
40_blocks = new HashSet<DiagnosticPoolBlock>();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
40_blocks = new HashSet<DiagnosticPoolBlock>();
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionContext.cs (1)
60internal HashSet<string> GroupNames { get; } = new HashSet<string>();
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTests.cs (3)
1565var excludeSecondClientId = new HashSet<string>(); 1567var excludeThirdClientId = new HashSet<string>(); 1611var secondAndThirdClients = new HashSet<string> {secondClient.Connection.ConnectionId,
Microsoft.Cci.Extensions (11)
Experimental\APIClosureTypeReferenceVisitor.cs (1)
22_typeReferences = new HashSet<ITypeReference>();
Experimental\TypeReferenceVisitor.cs (1)
22_typeReferences = new HashSet<ITypeReference>();
Extensions\CSharp\CSharpCciExtensions.cs (2)
140HashSet<ITypeReference> visited = new HashSet<ITypeReference>(); 176HashSet<ITypeReference> visited = new HashSet<ITypeReference>();
HostEnvironment.cs (2)
49_unresolvedIdentities = new HashSet<UnresolvedReference<IUnit, AssemblyIdentity>>(); 247HashSet<AssemblyIdentity> consideredIdentities = new HashSet<AssemblyIdentity>();
Traversers\AssemblyReferenceTraverser.cs (2)
16private HashSet<AssemblyIdentity> _usedAssemblyReferences = new HashSet<AssemblyIdentity>(); 56private HashSet<AssemblyIdentity> _aliasedAssemblyReferences = new HashSet<AssemblyIdentity>();
TypeDependencies.cs (3)
23_publicDependents = new HashSet<ITypeReference>(); 24_dependents = new HashSet<ITypeReference>(); 25_methodDependents = new HashSet<IMethodReference>();
Microsoft.CodeAnalysis (36)
AssemblyUtilities.cs (2)
65HashSet<AssemblyIdentity> assemblyDefinitions = new HashSet<AssemblyIdentity>(); 77HashSet<AssemblyIdentity> assemblyReferences = new HashSet<AssemblyIdentity>();
Binding\AbstractLookupSymbolsInfo.cs (1)
180hashSet = new HashSet<int>();
Binding\BindingDiagnosticBag.cs (1)
72: this(usePool ? DiagnosticBag.GetInstance() : new DiagnosticBag(), usePool ? PooledHashSet<TAssemblySymbol>.GetInstance() : new HashSet<TAssemblySymbol>())
Binding\UseSiteInfo.cs (8)
269_diagnostics ??= new HashSet<DiagnosticInfo>(); 297_diagnostics ??= new HashSet<DiagnosticInfo>(); 315_diagnostics ??= new HashSet<DiagnosticInfo>(); 331_diagnostics ??= new HashSet<DiagnosticInfo>(); 347(_dependencies ??= new HashSet<TAssemblySymbol>()).AddAll(info.SecondaryDependencies); 366(_dependencies ??= new HashSet<TAssemblySymbol>()).AddAll(dependencies); 375(_dependencies ??= new HashSet<TAssemblySymbol>()).AddAll(dependencies); 384(_dependencies ??= new HashSet<TAssemblySymbol>()).AddAll(dependencies);
Collections\HashSetExtensions.cs (1)
27hashSet = new HashSet<T>();
Collections\IdentifierCollection.cs (1)
73_map[identifier] = new HashSet<string> { identifier, strValue };
Collections\OrderedSet.cs (1)
18_set = new HashSet<T>();
CommandLine\CommonCompiler.cs (1)
93private readonly HashSet<Diagnostic> _reportedDiagnostics = new HashSet<Diagnostic>();
CommandLine\SarifV2ErrorLogger.cs (1)
39_diagnosticIdsWithAnySourceSuppressions = new HashSet<string>();
Compilation\Compilation.cs (1)
2137var uniqueResourceNames = new HashSet<string>();
DiagnosticAnalyzer\AnalysisResultBuilder.cs (2)
45_completedAnalyzersForCompilation = new HashSet<DiagnosticAnalyzer>(); 132var completedAnalyzers = new HashSet<DiagnosticAnalyzer> { analyzer };
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2896descendantDeclsToSkip ??= new HashSet<SyntaxNode>();
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (1)
204memberSet ??= new HashSet<ISymbol>();
Emit\CommonPEModuleBuilder.cs (1)
728names = new HashSet<string>();
Emit\EditAndContinue\SymbolChanges.cs (1)
376(lazyReplacedSymbolsBuilder ??= new HashSet<ISymbolInternal>()).Add(GetRequiredInternalSymbol(edit.NewSymbol));
InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
MetadataReader\MetadataDecoder.cs (2)
1984HashSet<TypeDefinitionHandle> visitedTypeDefTokens = new HashSet<TypeDefinitionHandle>(); 1985HashSet<TypeSymbol> visitedTypeSymbols = new HashSet<TypeSymbol>();
MetadataReader\PEModule.cs (1)
416HashSet<EntityHandle> nameTokens = new HashSet<EntityHandle>();
PEWriter\ReferenceIndexer.cs (1)
18private readonly HashSet<IImportScope> _alreadySeenScopes = new HashSet<IImportScope>();
PEWriter\ReferenceIndexerBase.cs (2)
18private readonly HashSet<IReferenceOrISignature> _alreadySeen = new(); 19private readonly HashSet<IReferenceOrISignature> _alreadyHasToken = new();
RuleSet\RuleSet.cs (1)
257return ruleSet.GetEffectiveRuleSet(new HashSet<string>());
SourceGeneration\Nodes\GeneratorRunStateTable.cs (1)
98stepsByName = new HashSet<IncrementalGeneratorRunStep>();
Syntax\SyntaxDiffer.cs (2)
25private readonly HashSet<GreenNode> _nodeSimilaritySet = new HashSet<GreenNode>(); 26private readonly HashSet<string> _tokenTextSimilaritySet = new HashSet<string>();
Text\CompositeText.cs (1)
364= new ObjectPool<HashSet<SourceText>>(() => new HashSet<SourceText>(), 5);
Microsoft.CodeAnalysis.Analyzers (14)
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (1)
117var processedTypes = new HashSet<INamedTypeSymbol>();
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
126var addedSymbols = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
294var unusedImports = new HashSet<SyntaxNode>();
Microsoft.CodeAnalysis.AnalyzerUtilities (12)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
281_returnValueOperations = OwningSymbol is IMethodSymbol method && !method.ReturnsVoid ? new HashSet<IOperation>() : null;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
Microsoft.CodeAnalysis.BannedApiAnalyzers (13)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
126var addedSymbols = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
294var unusedImports = new HashSet<SyntaxNode>();
Microsoft.CodeAnalysis.CodeStyle (7)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (2)
23protected static readonly ISet<TypeKind> EnumType = new HashSet<TypeKind> { TypeKind.Enum }; 24protected static readonly ISet<TypeKind> ClassInterfaceModuleStructTypes = new HashSet<TypeKind>
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (2)
46var declarators = new HashSet<SyntaxNode>(); 47var fieldDeclarators = new HashSet<TFieldDeclarationSyntax>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
126var addedSymbols = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
294var unusedImports = new HashSet<SyntaxNode>();
Microsoft.CodeAnalysis.CSharp (58)
Binder\Binder_Attributes.cs (1)
496boundNamedArgumentsSet = new HashSet<string>();
Binder\BindingDiagnosticBag.cs (2)
15private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithBoth = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithBoth!, new DiagnosticBag(), new HashSet<AssemblySymbol>())); 17private static readonly ObjectPool<BindingDiagnosticBag> s_poolWithDependenciesOnly = new ObjectPool<BindingDiagnosticBag>(() => new BindingDiagnosticBag(s_poolWithDependenciesOnly!, diagnosticBag: null, new HashSet<AssemblySymbol>()));
Binder\RefSafetyAnalysis.cs (1)
68private HashSet<BoundExpression>? _visited = new HashSet<BoundExpression>();
Compilation\CSharpCompilation.cs (3)
2641if (_lazyCompilationUnitCompletedTrees == null) Interlocked.CompareExchange(ref _lazyCompilationUnitCompletedTrees, new HashSet<SyntaxTree>(), null); 2995var parseOptionsReported = new HashSet<ParseOptions>(); 4910var result = new HashSet<Symbol>();
Compilation\CSharpSemanticModel.cs (1)
4215HashSet<Symbol> hiddenSymbols = new HashSet<Symbol>();
Compiler\DocumentationCommentCompiler.cs (2)
1177documentedParameters = new HashSet<ParameterSymbol>(); 1184documentedTypeParameters = new HashSet<TypeParameterSymbol>();
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
450_inProgressIncludeElementNodes = new HashSet<Location>();
Declarations\DeclarationTable.cs (1)
216var set = new HashSet<string>();
Emitter\Model\PEModuleBuilder.cs (1)
657var seenTopLevelForwardedTypes = new HashSet<NamedTypeSymbol>();
FlowAnalysis\AlwaysAssignedWalker.cs (1)
26private readonly HashSet<LabelSymbol> _labelsInside = new HashSet<LabelSymbol>();
FlowAnalysis\CSharpDataFlowAnalysis.cs (2)
84: new HashSet<Symbol>(); 365: new HashSet<PrefixUnaryExpressionSyntax>();
FlowAnalysis\DataFlowsInWalker.cs (2)
25private readonly HashSet<Symbol> _dataFlowsIn = new HashSet<Symbol>(); 42return badRegion ? new HashSet<Symbol>() : result;
FlowAnalysis\DataFlowsOutWalker.cs (3)
46return badRegion ? new HashSet<Symbol>() : result; 54private readonly HashSet<Symbol> _dataFlowsOut = new HashSet<Symbol>(); 58private readonly HashSet<Symbol> _assignedInside = new HashSet<Symbol>();
FlowAnalysis\DefinitelyAssignedWalker.cs (4)
23private readonly HashSet<Symbol> _definitelyAssignedOnEntry = new HashSet<Symbol>(); 24private readonly HashSet<Symbol> _definitelyAssignedOnExit = new HashSet<Symbol>(); 45? (new HashSet<Symbol>(), new HashSet<Symbol>())
FlowAnalysis\EntryPointsWalker.cs (1)
41private readonly HashSet<LabeledStatementSyntax> _entryPoints = new HashSet<LabeledStatementSyntax>();
FlowAnalysis\NullableWalker.DebugVerifier.cs (1)
23private readonly HashSet<BoundExpression> _visitedExpressions = new HashSet<BoundExpression>();
FlowAnalysis\ReadWriteWalker.cs (4)
65private readonly HashSet<Symbol> _readInside = new HashSet<Symbol>(); 66private readonly HashSet<Symbol> _writtenInside = new HashSet<Symbol>(); 67private readonly HashSet<Symbol> _readOutside = new HashSet<Symbol>(); 68private readonly HashSet<Symbol> _writtenOutside = new HashSet<Symbol>();
FlowAnalysis\UnassignedAddressTakenVariablesWalker.cs (1)
39private readonly HashSet<PrefixUnaryExpressionSyntax> _result = new HashSet<PrefixUnaryExpressionSyntax>();
FlowAnalysis\UnassignedVariablesWalker.cs (2)
40return badRegion ? new HashSet<Symbol>() : result; 48private readonly HashSet<Symbol> _result = new HashSet<Symbol>();
FlowAnalysis\VariablesDeclaredWalker.cs (1)
38private HashSet<Symbol> _variablesDeclared = new HashSet<Symbol>();
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
859_awaitContainingCatches = awaitContainingCatches = new HashSet<BoundCatchBlock>();
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
321private readonly HashSet<Symbol> _freeVariables = new HashSet<Symbol>();
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (1)
137this.currentLabels = currentLabels = new HashSet<LabelSymbol>();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
360_localsInScope = new HashSet<Symbol>();
Lowering\SyntheticBoundNodeFactory.cs (1)
1122var labels = new HashSet<int>();
Lowering\UnmatchedGotoFinder.cs (2)
105_gotos = new HashSet<LabelSymbol>(); 115_targets = new HashSet<LabelSymbol>();
Parser\DocumentationCommentParser.cs (1)
321private readonly HashSet<string> _attributesSeen = new HashSet<string>();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
973var names = new HashSet<string>();
Symbols\PropertyOrEventSymbolExtensions.cs (1)
46var symbolsForExplicitlyImplementedAccessors = new HashSet<T>();
Symbols\Source\LambdaSymbol.cs (1)
71_declarationDependencies = new HashSet<AssemblySymbol>();
Symbols\Source\LocalFunctionSymbol.cs (1)
48_declarationDependencies = new HashSet<AssemblySymbol>();
Symbols\Source\SourceAssemblySymbol.cs (3)
1409forwardedTypes = new HashSet<NamedTypeSymbol>(); 2256forwardedTypes = new HashSet<NamedTypeSymbol>() { (NamedTypeSymbol)forwardedType }; 2722handledUnreadFields = new HashSet<FieldSymbol>();
Symbols\Symbol_Attributes.cs (1)
851HashSet<NamedTypeSymbol> uniqueAttributeTypes = new HashSet<NamedTypeSymbol>();
Symbols\TypeParameterSymbolExtensions.cs (1)
29visited ??= new HashSet<TypeParameterSymbol>();
Symbols\TypeSymbolExtensions.cs (1)
1545checkedTypes = new HashSet<TypeSymbol>();
Syntax\SyntaxNodeRemover.cs (1)
427_directivesToKeep = new HashSet<SyntaxNode>();
Syntax\SyntaxReplacer.cs (4)
95_spanSet = new HashSet<TextSpan>(); 100private static readonly HashSet<SyntaxNode> s_noNodes = new HashSet<SyntaxNode>(); 101private static readonly HashSet<SyntaxToken> s_noTokens = new HashSet<SyntaxToken>(); 102private static readonly HashSet<SyntaxTrivia> s_noTrivia = new HashSet<SyntaxTrivia>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
164var result = new HashSet<INamespaceSymbol>();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
53var declarationsToRemove = new HashSet<StatementSyntax>();
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
110var visitedFieldDeclarations = new HashSet<FieldDeclarationSyntax>();
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
58var accessorLists = new HashSet<AccessorListSyntax>();
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
63var nodesToTrack = new HashSet<SyntaxNode>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
134var result = new HashSet<UsingDirectiveSyntax>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
75var actualFolderPaths = new HashSet<string>();
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
39var symbolKindsWithNoCodeBlocks = new HashSet<SymbolKind> 45var missingSyntaxNodes = new HashSet<SyntaxKind>
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenDeconstructTests.cs (3)
6035var set = new HashSet<ISymbol>(); 6088var set = new HashSet<ISymbol>(); 6136var set = new HashSet<ISymbol>();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (17)
Diagnostics\CompilationEventTests.cs (1)
20var expected = new HashSet<string>();
Diagnostics\DiagnosticAnalyzerTests.AllInOne.cs (2)
28var symbolKindsWithNoCodeBlocks = new HashSet<SymbolKind>(); 32var missingSyntaxKinds = new HashSet<SyntaxKind>();
Diagnostics\GetDiagnosticsTests.cs (12)
454declaredSymbolNames = new HashSet<string>(); 455declaredSymbols = new HashSet<string>(); 456completedCompilationUnits = new HashSet<string>(); 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>();
Semantics\ExtensionTests.cs (2)
47Assert.True(expected.All(new HashSet<string>().Add), $"Duplicates were found in '{nameof(expected)}'"); 48Assert.True(actual.All(new HashSet<string>().Add), $"Duplicates were found in '{nameof(actual)}'");
Microsoft.CodeAnalysis.CSharp.Features (5)
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
53var declarationsToRemove = new HashSet<StatementSyntax>();
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (1)
110var visitedFieldDeclarations = new HashSet<FieldDeclarationSyntax>();
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
58var accessorLists = new HashSet<AccessorListSyntax>();
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
63var nodesToTrack = new HashSet<SyntaxNode>();
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
151var tempMatches = new HashSet<CastExpressionSyntax>();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
64var usedLocals = new HashSet<ILocalSymbol>();
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
664var obj = new HashSet<int>();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullableReferenceTypesTests.cs (1)
157954var reportedDiagnostics = new HashSet<Diagnostic>();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Compilation\CompilationAPITests.cs (2)
517var hs = new HashSet<MetadataReference> { ref1, ref2, ref3 }; 844var hs = new HashSet<SyntaxTree> { t4, t5, t6 };
Symbols\CorLibrary\CorTypes.cs (1)
58var knownMissingTypes = new HashSet<int>()
Symbols\Metadata\PE\BaseTypeResolution.cs (1)
222var bases = new HashSet<NamedTypeSymbol>();
Symbols\Metadata\PE\TypeForwarders.cs (2)
1478var topLevelTypes = new HashSet<string>(); 1747var topLevelTypes = new HashSet<string>();
Symbols\RequiredMembersTests.cs (1)
35var requiredTypes = new HashSet<NamedTypeSymbol>();
Symbols\TypeTests.cs (2)
2454var uniqueMethods = new HashSet<MethodSymbol>(); 2620var uniqueTypes = new HashSet<TypeSymbol>();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (1)
57var set = new HashSet<ErrorCode>();
IncrementalParsing\SyntaxDifferences.cs (1)
25var hashSet = new HashSet<GreenNode>();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestAttributesVisitor.cs (1)
22_reported = new HashSet<Symbol>();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
164var result = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
134var result = new HashSet<UsingDirectiveSyntax>();
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Extensions\EnumerableExtensions.cs (1)
14var seenKeys = new HashSet<TKey>();
InlineRename\InlineRenameSession.cs (1)
204var openBuffers = new HashSet<ITextBuffer>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Classification\AbstractClassifierTests.cs (1)
287var classificationsSpans = new HashSet<TextSpan>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
CodeFixes\CodeFixServiceTests.cs (2)
115var uniqueTitles = new HashSet<string>(); 1173var variableDeclarations = new HashSet<SyntaxNode>();
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (1)
29var uniqueDiagnosticIds = new HashSet<string>();
Extensions\SetExtensionTests.cs (1)
18var set = new HashSet<string>() { "a", "b", "c" };
Utilities\BloomFilterTests.cs (1)
277var result = new HashSet<long>();
Microsoft.CodeAnalysis.Features (23)
AddMissingReference\AbstractAddMissingReferenceCodeFixProvider.cs (1)
62var uniqueIdentities = new HashSet<AssemblyIdentity>();
AddPackage\AbstractAddPackageCodeFixProvider.cs (1)
79var result = new HashSet<PackageWithAssemblyResult>();
AddPackage\AbstractAddSpecificPackageCodeFixProvider.cs (1)
37var assemblyNames = new HashSet<string> { assemblyName };
CodeFixes\FixAllOccurrences\AbstractFixAllCodeFixCodeAction.cs (1)
45var names = new HashSet<string>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
220var uniqueIds = new HashSet<string>();
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
259var spine = new HashSet<SyntaxNode>();
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
209var spanSet = new HashSet<DocumentSpan>();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
217var set = new HashSet<string>();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (1)
196var uniqueIds = new HashSet<ProjectId>();
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (1)
158var set = new HashSet<PreviousNextTokenPair>();
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
110var seenLocations = new HashSet<(string filePath, TextSpan span)>();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
15private readonly ISet<INamedTypeSymbol> _seenTypes = new HashSet<INamedTypeSymbol>();
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
16var docList = new HashSet<DocumentHandle>();
PullMemberUp\MembersPuller.cs (1)
507var overrideMembersSet = new HashSet<ISymbol>();
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (2)
62var nodesToRemove = new HashSet<SyntaxNode>(); 170var candidateLocalDeclarationsToRemove = new HashSet<TLocalDeclarationStatement>();
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (2)
23protected static readonly ISet<TypeKind> EnumType = new HashSet<TypeKind> { TypeKind.Enum }; 24protected static readonly ISet<TypeKind> ClassInterfaceModuleStructTypes = new HashSet<TypeKind>
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (2)
46var declarators = new HashSet<SyntaxNode>(); 47var fieldDeclarators = new HashSet<TFieldDeclarationSyntax>();
StackTraceExplorer\StackTraceExplorerService.cs (1)
97var potentialMatches = new HashSet<TextDocument>();
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
102var dependencyNames = new HashSet<string>();
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
167var linkedFiles = new HashSet<DocumentId>();
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\RudeEditDiagnosticTests.cs (3)
27var arg0 = new HashSet<RudeEditKind>() 56var arg2 = new HashSet<RudeEditKind>() 69var arg3 = new HashSet<RudeEditKind>()
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
757var seenTitles = new HashSet<string>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (1)
52var methodHash = new HashSet<(string methodName, string language)>();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (13)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
126var addedSymbols = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
294var unusedImports = new HashSet<SyntaxNode>();
Microsoft.CodeAnalysis.PublicApiAnalyzers (12)
DeclarePublicApiAnalyzer.Impl.cs (1)
518var publicApiLinesForSiblingsOfSymbol = new HashSet<string>();
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
Microsoft.CodeAnalysis.Remote.ServiceHub (6)
Host\TestUtils.cs (6)
25var set = new HashSet<Checksum>(); 116var set = new HashSet<Checksum>(); 245var set = new HashSet<Checksum>(); 252var set = new HashSet<Checksum>(); 259var set = new HashSet<Checksum>(); 266var set = new HashSet<Checksum>();
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
AbstractResxGenerator.cs (1)
151var names = new HashSet<string>();
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Verifiers\CSharpSourceGeneratorVerifier`1+Test.cs (1)
87var expectedNames = new HashSet<string>();
Verifiers\VisualBasicSourceGeneratorVerifier`1+Test.cs (1)
72var expectedNames = new HashSet<string>();
Microsoft.CodeAnalysis.Test.Utilities (9)
CommonTestBase.cs (1)
597var topOperations = new HashSet<IOperation>();
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
1699var namedTypes = new HashSet<ISymbol>();
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (1)
270symbolSourceTypes = new HashSet<INamedTypeSymbol>();
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (2)
39HashSet<IFieldSymbol> assignedToFields = new HashSet<IFieldSymbol>(); 40HashSet<IFieldSymbol> mightBecomeReadOnlyFields = new HashSet<IFieldSymbol>();
Diagnostics\LocalCouldBeConstAnalyzer.cs (2)
42HashSet<ILocalSymbol> mightBecomeConstLocals = new HashSet<ILocalSymbol>(); 43HashSet<ILocalSymbol> assignedToLocals = new HashSet<ILocalSymbol>();
Metadata\MetadataSignatureUnitTestHelper.cs (1)
145var distinctSignatures = new HashSet<string>();
Platform\Desktop\RuntimeAssemblyManager.cs (1)
74_loadedAssemblies = new HashSet<Assembly>();
Microsoft.CodeAnalysis.UnitTests (10)
Collections\ImmutableSegmentedHashSetTest.cs (1)
227return new HashSet<T>();
Collections\ImmutableSegmentedListBuilderTest.cs (1)
195var elemsToRemove = new HashSet<int>() { 0, 1, 2, 3, 4, 5 };
Collections\ImmutablesTestBase.cs (1)
181var ensureUniqueness = new HashSet<double>();
Collections\TopologicalSortTests.cs (1)
214var seen = new HashSet<T>();
CorLibTypesTests.cs (1)
72var knownMissingTypes = new HashSet<SpecialType>()
FileSystem\RelativePathResolverTests.cs (2)
29var fs = new HashSet<string> 104var fs = new HashSet<string>
MetadataReferences\AssemblyIdentityTestBase.cs (2)
49internal static readonly HashSet<char> ClrInvalidCharacters = new HashSet<char> 58internal static readonly HashSet<char> ClrBackslashEscapedCharacters = new HashSet<char>
StrongNameProviderTests.cs (1)
27var fs = new HashSet<string>
Microsoft.CodeAnalysis.VisualBasic (39)
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (1)
36Private ReadOnly _labelsInside As New HashSet(Of LabelSymbol)()
Analysis\FlowAnalysis\DataFlowsInWalker.vb (3)
33Dim unassignedWithoutStatic As New HashSet(Of Symbol) 44Return If(succeeded, walker._dataFlowsIn, New HashSet(Of Symbol)()) 50Private ReadOnly _dataFlowsIn As HashSet(Of Symbol) = New HashSet(Of Symbol)()
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (4)
25Private ReadOnly _dataFlowsOut As New HashSet(Of Symbol)() 28Private ReadOnly _assignedInside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 44Dim unassignedWithoutStatic As New HashSet(Of Symbol) 60Return If(success, result, New HashSet(Of Symbol)())
Analysis\FlowAnalysis\EntryPointsWalker.vb (1)
32Private ReadOnly _entryPoints As HashSet(Of LabelStatementSyntax) = New HashSet(Of LabelStatementSyntax)()
Analysis\FlowAnalysis\ReadWriteWalker.vb (7)
52Private ReadOnly _readInside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 53Private ReadOnly _writtenInside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 54Private ReadOnly _readOutside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 55Private ReadOnly _writtenOutside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 56Private ReadOnly _captured As HashSet(Of Symbol) = New HashSet(Of Symbol)() 57Private ReadOnly _capturedInside As HashSet(Of Symbol) = New HashSet(Of Symbol)() 58Private ReadOnly _capturedOutside As HashSet(Of Symbol) = New HashSet(Of Symbol)()
Analysis\FlowAnalysis\UnassignedVariablesWalker.vb (2)
28Return If(walker.Analyze(), walker._result, New HashSet(Of Symbol)()) 34Private ReadOnly _result As HashSet(Of Symbol) = New HashSet(Of Symbol)()
Analysis\FlowAnalysis\VariablesDeclaredWalker.vb (1)
27Private ReadOnly _variablesDeclared As New HashSet(Of Symbol)
Binding\Binder_Lookup.vb (5)
1201Dim seenContainingTypes As New HashSet(Of NamedTypeSymbol)() 1372Return IsDerivedInterface(base, derived, basesBeingResolved, New HashSet(Of Symbol), useSiteInfo) 1463Dim processed As New HashSet(Of InterfaceInfo) 1703processedInterfaces = New HashSet(Of InterfaceInfo) 1999Dim processed As New HashSet(Of InterfaceInfo)
Binding\ExecutableCodeBinder.vb (1)
238_boundSimpleNames = New HashSet(Of Integer)
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (2)
74Friend containsLiftingLambda As HashSet(Of BoundNode) = New HashSet(Of BoundNode)() 169needsParentFrame = New HashSet(Of BoundNode)
Lowering\SyntheticBoundNodeFactory.vb (1)
710Dim labels = New HashSet(Of Integer)()
Symbols\ExtensionMethods.vb (1)
24Dim typeParameters As New HashSet(Of TypeParameterSymbol)
Symbols\Metadata\PE\PEPropertyOrEventHelpers.vb (1)
37Dim symbolsForExplicitlyImplementedAccessors = New HashSet(Of T)()
Symbols\ReducedExtensionMethodSymbol.vb (1)
64Dim hashSetOfTypeParametersToFix As New HashSet(Of TypeParameterSymbol)
Symbols\Source\SourceNamedTypeSymbol.vb (3)
884Dim constraintTypes1 = New HashSet(Of TypeSymbol) 1167Dim interfacesInThisPartial As New HashSet(Of NamedTypeSymbol)() 1224Dim interfacesInThisPartial As New HashSet(Of TypeSymbol)()
Symbols\Symbol_Attributes.vb (1)
465Dim uniqueAttributeTypes = New HashSet(Of NamedTypeSymbol)
Symbols\TypeSymbol.vb (1)
163Dim visited = New HashSet(Of NamedTypeSymbol)()
Syntax\SyntaxReplacer.vb (3)
96Private Shared ReadOnly s_noNodes As HashSet(Of SyntaxNode) = New HashSet(Of SyntaxNode)() 97Private Shared ReadOnly s_noTokens As HashSet(Of SyntaxToken) = New HashSet(Of SyntaxToken)() 98Private Shared ReadOnly s_noTrivia As HashSet(Of SyntaxTrivia) = New HashSet(Of SyntaxTrivia)()
Microsoft.CodeAnalysis.Workspaces (17)
FindSymbols\SymbolFinder.cs (2)
166var result = new HashSet<TSymbol>(); 189var linkedSymbols = new HashSet<ISymbol> { symbol };
Log\AggregateLogger.cs (2)
25var set = new HashSet<ILogger>(); 67var set = new HashSet<ILogger>();
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
714var documentIds = new HashSet<DocumentId>();
Rename\ConflictEngine\RenamedSpansTracker.cs (2)
70var appliedTextSpans = new HashSet<TextSpan>(); 189var modifiedTokensInComplexifiedStatements = new HashSet<SyntaxToken>();
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
35var seenNodes = new HashSet<Node<TExtension, TMetadata>>();
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
126var addedSymbols = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
294var unusedImports = new HashSet<SyntaxNode>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
NetCoreTests.cs (6)
220var projectPaths = new HashSet<string>(); 221var outputFilePaths = new HashSet<string>(); 310var projectPaths = new HashSet<string>(); 311var outputFilePaths = new HashSet<string>(); 325var expectedNames = new HashSet<string>() 333var actualNames = new HashSet<string>();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace`1.cs (1)
632var documentFilePaths = new HashSet<string>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
FindReferencesTests.cs (2)
344var expectedMatchedLines = new HashSet<int> { 3, 13, 14 }; 412var projectIds = new HashSet<ProjectId>();
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
HandlerProvider.cs (1)
52var methodHash = new HashSet<(string methodName, string language)>();
Microsoft.CSharp (5)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
563HashSet<CType> distinctCallingTypes = new HashSet<CType>();
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (1)
744HashSet<Name> names = new HashSet<Name>();
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (1)
1613HashSet<CType> typeSet = new HashSet<CType>();
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
20private static readonly HashSet<Type> s_typesWithConversionsLoaded = new HashSet<Type>(); 21private static readonly HashSet<NameHashKey> s_namesLoadedForEachType = new HashSet<NameHashKey>();
Microsoft.Data.Analysis (5)
DataFrame.Join.cs (2)
195supplementaryJoinColumnsNullIndices = new HashSet<long>(); 283HashSet<long> intersection = calculateIntersection ? new HashSet<long>() : null;
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
493nullIndices = new HashSet<long>();
DataFrameColumns\StringDataFrameColumn.cs (1)
413nullIndices = new HashSet<long>();
PrimitiveDataFrameColumn.cs (1)
618nullIndices = new HashSet<long>();
Microsoft.Data.Analysis.Tests (3)
DataFrameTests.cs (1)
712HashSet<int?> uniqueRowValues = new HashSet<int?>();
DataFrameTests.Merge.cs (2)
770HashSet<int> intersection = new HashSet<int>(); 786HashSet<int> intersection = new HashSet<int>();
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
24private readonly HashSet<Guid> _detailedLoggedSet = new HashSet<Guid>();
Microsoft.DotNet.Build.Manifest (1)
VersionIdentifier.cs (1)
14private static readonly HashSet<string> _knownTags = new HashSet<string>
Microsoft.DotNet.Build.Tasks.Feed (5)
src\PublishArtifactsInManifestBase.cs (3)
538symbolAssets : new HashSet<BlobArtifactModel>(); 1134PackagesByCategory[categoryKey] = new HashSet<PackageArtifactModel>() { packageAsset }; 1162BlobsByCategory[categoryKey] = new HashSet<BlobArtifactModel>() { blobAsset };
src\PublishArtifactsInManifestV3.cs (1)
177FeedConfigs[categoryKey] = new HashSet<TargetFeedConfig>();
src\PublishArtifactsInManifestV4.cs (1)
172FeedConfigs[categoryKey] = new HashSet<TargetFeedConfig>();
Microsoft.DotNet.Build.Tasks.Feed.Tests (6)
LatestLinksManagerTests.cs (4)
82var assetsToPublish = new HashSet<string> 126var assetsToPublish = new HashSet<string> { "assets/symbols/Microsoft.stuff.symbols.nupkg", "assets/Microsoft.stuff.zip", "assets/Microsoft.stuff.json", "assets/Microsoft.stuff.json.zip" }; 156var assetsToPublish = new HashSet<string> { "assets/symbols/Microsoft.stuff.symbols.nupkg", "assets/Microsoft.stuff.zip", "assets/Microsoft.stuff.json", "assets/Microsoft.stuff.json.zip" }; 193var assetsToPublish = new HashSet<string> { "assets/symbols/Microsoft.stuff.symbols.nupkg", "bar/Microsoft.stuff.zip", "assets/Microsoft.stuff.json", "assets/plop/Microsoft.stuff.json.zip" };
PublishToSymbolServerTest.cs (2)
44var feedConfigsForSymbols = new HashSet<TargetFeedConfig> 229task.BlobsByCategory.Add(TargetFeedContentType.Symbols, new HashSet<Manifest.BlobArtifactModel>()
Microsoft.DotNet.Build.Tasks.Packaging (10)
ApplyMetaPackages.cs (3)
66value = new HashSet<string>(); 91suppressMetaPackages.Add(metaPackageThisPackageIsIn, new HashSet<string> { "All" } ); 111metaPackagesToAdd[metaPackage] = metaPackageFrameworks = new HashSet<NuGetFramework>();
GeneratePackageReport.cs (2)
183private static HashSet<string> s_ignoredFrameworks = new HashSet<string>() 320_unusedTargetPaths = new HashSet<string>();
GetLayoutFiles.cs (1)
50return String.IsNullOrEmpty(rids) ? new HashSet<string>() : new HashSet<string>(rids.Split(';'));
PackageIndex.cs (1)
369public HashSet<Version> StableVersions { get; set; } = new HashSet<Version>();
ValidateFrameworkPackage.cs (2)
44var permittedInbox = GetSuppressionValues(Suppression.PermitInbox) ?? new HashSet<string>(); 69var permittedMissingInbox = GetSuppressionValues(Suppression.PermitMissingInbox) ?? new HashSet<string>();
ValidatePackage.cs (1)
171var runtimeFxSuppression = GetSuppressionValues(Suppression.PermitRuntimeTargetMonikerMismatch) ?? new HashSet<string>();
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
CreateTrimDependencyGroupsTests.cs (1)
343var expectedTFMs = new HashSet<string>()
Microsoft.DotNet.Build.Tasks.Workloads (5)
CreateVisualStudioWorkload.wix.cs (3)
138HashSet<SwixComponent> swixComponents = new(); 139HashSet<SwixPackageGroup> swixPackageGroups = new(); 261buildData[sourcePackage].FeatureBands[platform] = new();
CreateVisualStudioWorkloadSet.wix.cs (1)
44HashSet<SwixPackageGroup> swixPackageGroups = new();
Wix\WixToolTaskBase.cs (1)
16private HashSet<string> _extensions = new();
Microsoft.DotNet.GenFacades (3)
SourceGenerator.cs (2)
19private readonly HashSet<string> _ignoreMissingTypesList = new HashSet<string>(); 38: new HashSet<string>();
TypeParser.cs (1)
18HashSet<string> types = new HashSet<string>();
Microsoft.DotNet.Helix.JobSender (1)
Payloads\AdhocPayload.cs (1)
54var filesSeen = new HashSet<string>();
Microsoft.DotNet.Helix.Sdk (3)
CheckAzurePipelinesTestResults.cs (1)
223HashSet<string> expectedFailures = ExpectedTestFailures?.Select(i => i.GetMetadata("Identity")).ToHashSet() ?? new HashSet<string>();
ProvisioningProfileProvider.cs (2)
126HashSet<string> rootLevelAppBundles = new(); 127HashSet<string> appBundlesWithProfile = new();
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Microsoft.DotNet.PackageTesting (2)
GetCompatiblePackageTargetFrameworks.cs (1)
103packageTfmMapping.Add(forwardTfm, new HashSet<NuGetFramework> { reverseTfm });
VerifyTypes.cs (1)
34private HashSet<string> ignoredTypes = new HashSet<string>();
Microsoft.DotNet.SharedFramework.Sdk (2)
src\CreateFrameworkListFile.cs (1)
77var usedFileClasses = new HashSet<string>();
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
34private HashSet<string> ignoredTypes = new HashSet<string>();
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Exclusion.cs (1)
167cache[key] = new HashSet<string>();
Microsoft.DotNet.SignTool (4)
src\BatchSignUtil.cs (1)
121var trackedSet = new HashSet<SignedFileContentKey>();
src\Configuration.cs (3)
164packages = new HashSet<string>(); 622filesErrored = new HashSet<SignedFileContentKey>(); 790packages = new HashSet<string>();
Microsoft.DotNet.XliffTasks (2)
Model\VsctDocument.cs (2)
61HashSet<string> idsAlreadySeen = new(); 62HashSet<string> conflictingIds = new();
Microsoft.DotNet.XUnitAssert.Tests (86)
CollectionAssertsTests.cs (16)
1498 var expected = new HashSet<int> { 42, 2112 }; 1499 var actual = new HashSet<int> { 2112, 42 }; 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 }; 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 }; 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 }; 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 (34)
34 var set = new HashSet<string>() { "eleventeen" }; 67 var set = new HashSet<string>() { "eleventeen" }; 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 (1)
CompositeEvaluator.cs (1)
47var metricNames = new HashSet<string>();
Microsoft.Extensions.AI.Evaluation.Console (1)
Utilities\ExceptionUtilities.cs (1)
24var seen = new HashSet<Exception>();
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
ResultsTests.cs (2)
220new HashSet<string> 276new HashSet<string>
Microsoft.Extensions.ApiDescription.Client (2)
GetOpenApiReferenceMetadata.cs (2)
53var codeGenerators = new HashSet<string>(); 54var destinations = new HashSet<string>();
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Microsoft.Extensions.DependencyInjection (2)
CallSiteJsonFormatter.cs (1)
21var context = new CallSiteFormatterContext(stringBuilder, 0, new HashSet<ServiceCallSite>());
ServiceLookup\CallSiteFactory.cs (1)
626bestConstructorParameterTypes = new HashSet<Type>();
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
262var dependencies = new HashSet<Dependency>();
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckPublisherHostedService.cs (1)
107var delayPeriodGroups = new HashSet<(TimeSpan Delay, TimeSpan Period)>();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
ResourceMonitoringOptions.Windows.cs (1)
21public ISet<string> SourceIpAddresses { get; set; } = new HashSet<string>();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
ResourceMonitoringOptionsCustomValidatorTests.cs (2)
21SourceIpAddresses = new HashSet<string> { "" } 35SourceIpAddresses = new HashSet<string> { "127.0.0.1", "[::]" }
Windows\Tcp6TableInfoTests.cs (3)
234SourceIpAddresses = new HashSet<string> { "[::1]" }, 251SourceIpAddresses = new HashSet<string> { "[::1]" }, 269SourceIpAddresses = new HashSet<string> { "[::1]" },
Windows\TcpTableInfoTests.cs (3)
177SourceIpAddresses = new HashSet<string> { "127.0.0.1" }, 193SourceIpAddresses = new HashSet<string> { "127.0.0.1" }, 211SourceIpAddresses = new HashSet<string> { "127.0.0.1" },
Windows\WindowsCountersTests.cs (2)
26SourceIpAddresses = new HashSet<string> { "127.0.0.1", "[::1]" }, 68SourceIpAddresses = new HashSet<string> { "127.0.0.1", "[::1]" },
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogCollectorOptions.cs (2)
25public ISet<string> FilteredCategories { get; set; } = new HashSet<string>(); 35public ISet<LogLevel> FilteredLevels { get; set; } = new HashSet<LogLevel>();
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerTests.cs (2)
204FilteredLevels = new HashSet<LogLevel>() 226FilteredCategories = new HashSet<string>()
Microsoft.Extensions.FileProviders.Composite (1)
CompositeDirectoryContents.cs (1)
63var names = new HashSet<string>();
Microsoft.Extensions.FileSystemGlobbing (1)
Internal\MatcherContext.cs (1)
25private readonly HashSet<LiteralPathSegment> _declaredLiteralFileSegments = new HashSet<LiteralPathSegment>();
Microsoft.Extensions.Http.Diagnostics (2)
Logging\LoggingOptions.cs (2)
80public ISet<string> RequestBodyContentTypes { get; set; } = new HashSet<string>(); 88public ISet<string> ResponseBodyContentTypes { get; set; } = new HashSet<string>();
Microsoft.Extensions.Http.Diagnostics.Tests (51)
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\HttpRequestBodyReaderTest.cs (9)
36RequestBodyContentTypes = new HashSet<string> { "text/plain" } 56RequestBodyContentTypes = new HashSet<string> { "text/plain" } 80RequestBodyContentTypes = new HashSet<string> { "text/plain" } 101RequestBodyContentTypes = new HashSet<string> { "text/plain" } 128RequestBodyContentTypes = new HashSet<string> { "text/plain" }, 152RequestBodyContentTypes = new HashSet<string> { "text/plain" }, 173RequestBodyContentTypes = new HashSet<string> { "text/plain" } 206RequestBodyContentTypes = new HashSet<string> { "text/plain" } 227RequestBodyContentTypes = new HashSet<string> { "text/plain" }
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 },
Logging\HttpResponseBodyReaderTest.cs (9)
43ResponseBodyContentTypes = new HashSet<string> { TextPlain } 63ResponseBodyContentTypes = new HashSet<string> { TextPlain } 82ResponseBodyContentTypes = new HashSet<string> { TextPlain } 104ResponseBodyContentTypes = new HashSet<string> { TextPlain } 124ResponseBodyContentTypes = new HashSet<string> { TextPlain } 148ResponseBodyContentTypes = new HashSet<string> { TextPlain } 176ResponseBodyContentTypes = new HashSet<string> { TextPlain } 209ResponseBodyContentTypes = new HashSet<string> { TextPlain }, 237ResponseBodyContentTypes = new HashSet<string> { TextPlain },
Logging\LoggingOptionsTest.cs (2)
53var testContentTypes = new HashSet<string> { "application/xml" }; 63var testContentTypes = new HashSet<string> { "application/xml" };
Telemetry\BackslashDownstreamDependencyMetadata.cs (2)
11private static readonly ISet<string> _uniqueHostNameSuffixes = new HashSet<string> 16private static readonly ISet<RequestMetadata> _requestMetadataSet = new HashSet<RequestMetadata>
Telemetry\EmptyRouteDependencyMetadata.cs (2)
11private static readonly ISet<string> _uniqueHostNameSuffixes = new HashSet<string> 16private static readonly ISet<RequestMetadata> _requestMetadataSet = new HashSet<RequestMetadata>
Microsoft.Extensions.Http.Resilience.Tests (1)
Routing\RoutingStrategyTest.cs (1)
44var strategies = new HashSet<RequestRoutingStrategy>();
Microsoft.Extensions.Localization (1)
ResourceManagerStringLocalizer.cs (1)
186var resourceNames = new HashSet<string>();
Microsoft.Extensions.Logging.Generators (3)
LoggerMessageGenerator.Parser.cs (2)
71var eventIds = new HashSet<int>(); 72var eventNames = new HashSet<string>();
LoggerMessageGenerator.Roslyn3.11.cs (1)
50public HashSet<ClassDeclarationSyntax> ClassDeclarations { get; } = new();
Microsoft.Extensions.Options.SourceGeneration (1)
OptionsSourceGenContext.cs (1)
35value = new HashSet<object>();
Microsoft.Extensions.ServiceDiscovery (1)
ServiceDiscoveryHttpClientBuilderExtensions.cs (1)
56public HashSet<string?> ClientNames { get; } = new HashSet<string?>();
Microsoft.Gen.ComplianceReports (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
56var shortAttributeNames = new HashSet<string>();
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\GeneratorUtilities.cs (1)
56var shortAttributeNames = new HashSet<string>();
Microsoft.Gen.Logging (7)
Emission\Emitter.cs (1)
96var classificationAttrs = new HashSet<string>();
Parsing\Parser.cs (2)
45var ids = new HashSet<int>(); 46var eventNames = new HashSet<string>();
Parsing\Parser.LogProperties.cs (2)
92var seenProps = new HashSet<string>(); 162var classification = new HashSet<string>();
Parsing\Parser.Records.cs (1)
34var overriddenMembers = new HashSet<string>();
src\Generators\Shared\GeneratorUtilities.cs (1)
56var shortAttributeNames = new HashSet<string>();
Microsoft.Gen.MetadataExtractor (3)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
66var metricNames = new HashSet<string>(); 280var tagHashSet = new HashSet<string>();
src\Generators\Shared\GeneratorUtilities.cs (1)
56var shortAttributeNames = new HashSet<string>();
Microsoft.Gen.Metrics (3)
Parser.cs (2)
66var metricNames = new HashSet<string>(); 280var tagHashSet = new HashSet<string>();
src\Generators\Shared\GeneratorUtilities.cs (1)
56var shortAttributeNames = new HashSet<string>();
Microsoft.Gen.MetricsReports (3)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (2)
66var metricNames = new HashSet<string>(); 280var tagHashSet = new HashSet<string>();
src\Generators\Shared\GeneratorUtilities.cs (1)
56var shortAttributeNames = new HashSet<string>();
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
22private static readonly HashSet<string> s_unsupportedTypeNames = new()
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
183HashSet<Project> projectsToAddUnsafe = new();
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
49uniqueMarshallersToFix[uniqueMarshallerFixKey] = membersToAdd = new HashSet<string>(); 132HashSet<string> missingMemberNames = new();
src\libraries\System.Runtime.InteropServices\gen\Common\ConvertToSourceGeneratedInteropFixer.cs (1)
183HashSet<Project> projectsToAddUnsafe = new();
Microsoft.Maui (4)
Hosting\Internal\RegisteredHandlerServiceTypeSet.cs (2)
15 private readonly HashSet<Type> _concreteHandlerServiceTypeSet = new(); 16 private readonly HashSet<Type> _interfaceHandlerServiceTypeSet = new();
Platform\ElementExtensions.cs (1)
35 static HashSet<Type> handlersWithConstructors = new HashSet<Type>();
WindowOverlay\WindowOverlay.cs (1)
22 readonly HashSet<IWindowOverlayElement> _windowElements = new();
Microsoft.Maui.Controls (4)
Element\Element.cs (1)
634 HashSet<string> _pendingHandlerUpdatesFromBPSet = new HashSet<string>();
ListProxy.cs (1)
183 _indexesCounted = new HashSet<int>();
TemplatedItemsList.cs (1)
1228 readonly HashSet<TemplatedItemsList<TView, TItem>> _attachedItems = new HashSet<TemplatedItemsList<TView, TItem>>();
Window\Window.cs (1)
67 HashSet<IWindowOverlay> _overlays = new HashSet<IWindowOverlay>();
Microsoft.ML.AutoML (6)
ColumnInference\ColumnTypeInference.cs (1)
327var usedNames = new HashSet<string>();
ColumnInference\PurposeInference.cs (1)
127var seen = new HashSet<string>();
DatasetDimensions\DatasetDimensionsUtil.cs (1)
16var seen = new HashSet<string>();
Sweepers\SmacSweeper.cs (1)
185HashSet<Tuple<double, ParameterSet>> configurations = new HashSet<Tuple<double, ParameterSet>>();
Sweepers\SweeperBase.cs (1)
52var result = new HashSet<ParameterSet>();
Tuner\SmacTuner.cs (1)
196var configurations = new HashSet<Tuple<double, Parameter>>();
Microsoft.ML.CodeGenerator (6)
CodeGenerator\CSharp\CodeGenerator.cs (6)
27private static readonly HashSet<string> _recommendationTrainers = new HashSet<string>() { TrainerName.MatrixFactorization.ToString() }; 28private static readonly HashSet<string> _lightGbmTrainers = new HashSet<string>() { TrainerName.LightGbmBinary.ToString(), TrainerName.LightGbmMulti.ToString(), 30private static readonly HashSet<string> _mklComponentsTrainers = new HashSet<string>() { TrainerName.OlsRegression.ToString(), TrainerName.SymbolicSgdLogisticRegressionBinary.ToString() }; 31private static readonly HashSet<string> _fastTreeTrainers = new HashSet<string>() { TrainerName.FastForestBinary.ToString(), TrainerName.FastForestRegression.ToString(), 33private static readonly HashSet<string> _imageTransformers = new HashSet<string>() { EstimatorName.RawByteImageLoading.ToString() }; 34private static readonly HashSet<string> _imageClassificationTrainers = new HashSet<string>() { TrainerName.ImageClassification.ToString() };
Microsoft.ML.Core (6)
ComponentModel\ComponentCatalog.cs (1)
76_cachedAssemblies = new HashSet<string>();
Data\ProgressReporter.cs (2)
371_namesUsed = new HashSet<string>(); 438var seen = new HashSet<int>();
Utilities\SupervisedBinFinder.cs (2)
71var seenValues = new HashSet<Single>(); 149var seenValues = new HashSet<Double>();
Utilities\Utils.cs (1)
153set = new HashSet<T>();
Microsoft.ML.Core.Tests (4)
UnitTests\TestEntryPoints.cs (4)
292var excludeSet = new HashSet<string>(); 309var variables = new HashSet<string>(); 6129Assert.Subset(new HashSet<string>() { "Private", "?", "Federal-gov" }, new HashSet<string>() { name.ToString() });
Microsoft.ML.Data (24)
Commands\TypeInfoCommand.cs (2)
97var dstKinds = new HashSet<InternalDataKind>(); 113dstToSrcMap[dstKinds] = srcKinds = new HashSet<InternalDataKind>();
Data\DataViewTypeManager.cs (1)
26private static readonly HashSet<Type> _bannedRawTypes = new HashSet<Type>()
Data\SchemaDefinition.cs (1)
423HashSet<string> colNames = new HashSet<string>();
DataLoadSave\Binary\BinaryLoader.cs (1)
332var kinds = new HashSet<string>();
DataLoadSave\Binary\BinarySaver.cs (1)
275var kinds = new HashSet<string>();
DataLoadSave\Text\TextLoader.cs (2)
1213var separators = new HashSet<char>(); 1226var separators = new HashSet<char>();
DataView\CacheDataView.cs (1)
667HashSet<OrderedWaiter> waiters = new HashSet<OrderedWaiter>();
DataView\Transposer.cs (2)
871var activeSrcSet = new HashSet<int>(); 1279var activeSrcSet = new HashSet<int>();
Evaluators\EvaluatorBase.cs (1)
80var stratIndices = Utils.Size(stratCols) > 0 ? new HashSet<int>(stratCols.Select(col => col.Index)) : new HashSet<int>();
Model\Pfa\BoundPfaContext.cs (3)
54_unavailable = new HashSet<string>(); 65var fieldNames = new HashSet<string>(); 119var fieldNames = new HashSet<string>();
Model\Pfa\PfaContext.cs (2)
102_variables = new HashSet<string>(); 106_types = new HashSet<string>();
Model\Pfa\SavePfaCommand.cs (1)
89return new HashSet<string>();
Transforms\ColumnBindingsBase.cs (1)
688var namesUsed = new HashSet<string>();
Transforms\ColumnSelecting.cs (2)
281var names = new HashSet<string>(); 353var names = new HashSet<string>();
Transforms\MetadataDispatcher.cs (1)
223kinds = new HashSet<string>();
Transforms\OneToOneTransformerBase.cs (1)
23var newNames = new HashSet<string>();
Transforms\ValueMapping.cs (1)
291HashSet<TValue> valueSet = new HashSet<TValue>();
Microsoft.ML.Ensemble (2)
PipelineEnsemble.cs (2)
51_inputColIndices = new HashSet<int>(); 422inputCols = new HashSet<string>();
Microsoft.ML.EntryPoints (2)
FeatureCombiner.cs (1)
59var featNames = new HashSet<string>();
JsonUtils\JsonManifestUtils.cs (1)
156var collectedFields = new HashSet<string>();
Microsoft.ML.FastTree (3)
FastTree.cs (1)
1397HashSet<int> constructed = new HashSet<int>();
Training\RegressionTreeNodeDocuments.cs (1)
69documentsInNode = new HashSet<int>();
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (1)
301CategoricalThresholds = new HashSet<int>();
Microsoft.ML.IntegrationTests (1)
IntrospectiveTraining.cs (1)
353var uniqueValues = new HashSet<string>();
Microsoft.ML.OnnxConverter (10)
OnnxContextImpl.cs (2)
53_variableNames = new HashSet<string>(); 54_nodeNames = new HashSet<string>();
OnnxExportExtensions.cs (1)
26var outputColumnNamesToDrop = new HashSet<string>();
SaveOnnxCommand.cs (7)
126return new HashSet<string>(); 167inputColumnNamesToDrop = inputColumnNamesToDrop ?? new HashSet<string>(); 168outputColumnNamesToDrop = outputColumnNamesToDrop ?? new HashSet<string>(); 169HashSet<string> inputColumns = new HashSet<string>(); 263var inputKeyDataViewTypeColumnsNames = new HashSet<string>(); 268var passThroughColumnNames = new HashSet<string>(); 269var outputColumnNames = new HashSet<string>();
Microsoft.ML.OnnxTransformer (1)
OnnxUtils.cs (1)
495new HashSet<Type>
Microsoft.ML.ResultProcessor (2)
ResultProcessor.cs (2)
97SettingHeaderNames = new HashSet<string>(); 114ResultHeaderNames = new HashSet<string>();
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
206HashSet<string> labelNamesSet = new HashSet<string>();
Microsoft.ML.Sweeper (5)
Algorithms\Grid.cs (2)
71var result = new HashSet<ParameterSet>(); 159var result = new HashSet<ParameterSet>();
Algorithms\SmacSweeper.cs (2)
199HashSet<Tuple<double, ParameterSet>> configurations = new HashSet<Tuple<double, ParameterSet>>(); 216HashSet<ParameterSet> retainedConfigs = new HashSet<ParameterSet>();
AsyncSweeper.cs (1)
210_nullRuns = new HashSet<int>();
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
385var newNames = new HashSet<string>();
Microsoft.ML.TestFramework (2)
BaseTestPredictorsMaml.cs (1)
228HashSet<string> removeArgs = new HashSet<string>();
DataPipe\TestDataPipeBase.cs (1)
473var hs = new HashSet<string>();
Microsoft.ML.Tests (4)
OnnxConversionTest.cs (2)
808var redundantInputColumnNames = new HashSet<string> { "Label" }; 810var redundantOutputColumnNames = new HashSet<string> { "Label", "F1", "F2", "Features" };
Scenarios\ClusteringTests.cs (1)
72var labels = new HashSet<uint>();
Transformers\CustomMappingTests.cs (1)
161state.SeenValues = new HashSet<float>();
Microsoft.ML.Tokenizers (1)
Model\EnglishRobertaTokenizer.cs (1)
971HashSet<(string, string)> pairs = new();
Microsoft.ML.TorchSharp (6)
AutoFormerV2\ObjectDetectionMetrics.cs (1)
85var labelSet = new HashSet<string>();
AutoFormerV2\ObjectDetectionTrainer.cs (2)
247var uniqueLabels = new HashSet<uint>(); 734_inputColIndices = new HashSet<int>();
NasBert\TextClassificationTrainer.cs (1)
153var uniqueLabels = new HashSet<uint>();
Roberta\QATrainer.cs (1)
716_inputColIndices = new HashSet<int>();
TorchSharpBaseTrainer.cs (1)
459InputColIndices = new HashSet<int>();
Microsoft.ML.Transforms (4)
Dracula\DictCountTable.cs (1)
233var keys = new HashSet<long>();
LoadTransform.cs (1)
77var allTags = new HashSet<string>();
MutualInformationFeatureSelection.cs (1)
177var colSet = new HashSet<string>();
Text\NgramHashingTransformer.cs (1)
199HashSet<int> columnWithInvertHash = new HashSet<int>();
Microsoft.ML.Vision (1)
DnnRetrainTransform.cs (1)
628var newNames = new HashSet<string>();
Microsoft.VisualStudio.LanguageServices (6)
CommonControls\MemberSelectionViewModel.cs (2)
172var visited = new HashSet<ISymbol>(); 173var result = new HashSet<ISymbol>();
MoveStaticMembers\StaticMemberSelectionViewModel.cs (2)
88var visited = new HashSet<ISymbol>(); 89var result = new HashSet<ISymbol>();
Preview\PreviewEngine.cs (1)
161var linkedDocumentIds = new HashSet<DocumentId>();
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
551var latestDiagnosticsToFix = filterStaleDiagnostics ? new HashSet<DiagnosticData>() : null;
Mvc.Analyzers.Test (1)
src\Shared\AnalyzerTesting\TestReferences.cs (1)
20var seen = new HashSet<string>();
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1995_names = new HashSet<string>();
PresentationCore (4)
MS\Internal\Resources\ContentFileHelper.cs (1)
53return new HashSet<string>();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\AppDomainShutdownMonitor.cs (1)
26new HashSet<WeakReference<IAppDomainShutdownListener>>();
System\Windows\Automation\Peers\AutomationPeer.cs (1)
1902hs = new HashSet<AutomationPeer>();
System\Windows\Media\MediaContext.cs (1)
202_registeredICompositionTargets = new HashSet<ICompositionTarget>();
PresentationFramework (4)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (1)
16private static readonly HashSet<string> ProjectedRuntimeClassNames = new HashSet<string>();
System\Windows\Markup\RestrictiveXamlXmlReader.cs (2)
27HashSet<string> allowedTypesFromRegistry = new HashSet<string>(); 213private HashSet<Type> _safeTypesSet = new HashSet<Type>() {
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
64_clrNamespaces = new HashSet<string>();
Roslyn.Diagnostics.Analyzers (13)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
126var addedSymbols = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
294var unusedImports = new HashSet<SyntaxNode>();
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (1)
164var result = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (1)
134var result = new HashSet<UsingDirectiveSyntax>();
Roslyn.VisualStudio.DiagnosticsWindow (1)
Panels\TelemetryPanel.xaml.cs (1)
60var seenType = new HashSet<Type>();
Roslyn.VisualStudio.Next.UnitTests (1)
Options\VisualStudioOptionStorageTests.cs (1)
291var set = new HashSet<string>();
RulesetToEditorconfigConverter (1)
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
RunTests (2)
AssemblyScheduler.cs (2)
103var unmatchedLocalTests = new HashSet<string>(); 106var matchedRemoteTests = new HashSet<string>();
Shared.Tests (3)
Pools\PoolTests.cs (3)
61var set = new HashSet<Foo>(); 251var uniques = new HashSet<Foo>(); 268var objects = new HashSet<Foo>();
SocialWeather (1)
PersistentConnectionLifeTimeManager.cs (1)
22connection.Items["groups"] = new HashSet<string>();
System.CodeDom (1)
src\libraries\Common\src\System\CSharpHelpers.cs (1)
14private static readonly HashSet<string> s_fixedStringLookup = new HashSet<string>()
System.ComponentModel.Composition (6)
System\ComponentModel\Composition\AttributedModel\AttributedPartCreationInfo.cs (1)
259_contractNamesOnNonInterfaces = new HashSet<string>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (3)
40private readonly HashSet<ComposablePartDefinition> _rejectedParts = new HashSet<ComposablePartDefinition>(); 42private readonly HashSet<IDisposable> _partsToDispose = new HashSet<IDisposable>(); 783var affectedRejections = new HashSet<ComposablePartDefinition>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.Traversal.cs (1)
84var traversedParts = new HashSet<ComposablePartDefinition>();
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (1)
176candidates = new HashSet<ComposablePartDefinition>();
System.Composition.Hosting (1)
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
39var @checked = new HashSet<ExportDescriptorPromise>();
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
130private static readonly HashSet<Type> s_allowedTypes = new HashSet<Type>()
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
341private HashSet<string> _sharedSessionClientIds = new HashSet<string>();
System.IO.Packaging (2)
System\IO\Packaging\XmlCompatibilityReader.cs (2)
1770_names ??= new HashSet<string>(); 1821_names ??= new HashSet<string>();
System.Linq.Expressions (12)
System\Dynamic\BindingRestrictions.cs (1)
145private readonly HashSet<BindingRestrictions> _unique = new HashSet<BindingRestrictions>();
System\Linq\Expressions\BlockExpression.cs (1)
1071var set = new HashSet<ParameterExpression>();
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
38private readonly HashSet<LabelScopeInfo> _definitions = new HashSet<LabelScopeInfo>();
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (1)
395var uniqueKeys = new HashSet<decimal>();
System\Linq\Expressions\Interpreter\LabelInfo.cs (1)
211_definitions = set = new HashSet<LabelScopeInfo>() { (LabelScopeInfo)_definitions };
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2789public readonly HashSet<ParameterExpression> _hoistedParameters = new HashSet<ParameterExpression>();
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
517var parameters = new HashSet<ParameterExpression>(); 560_shadowedVars.Push(new HashSet<ParameterExpression> { node.Variable });
System\Linq\Expressions\LambdaExpression.cs (2)
862var set = new HashSet<ParameterExpression>(); 944var set = new HashSet<ParameterExpression>();
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (2)
72var parameters = new HashSet<ParameterExpression>(); 115_shadowedVars.Push(new HashSet<ParameterExpression> { node.Variable });
System.Net.HttpListener (1)
System\Net\Managed\HttpEndPointListener.cs (1)
73_unregisteredConnections = new HashSet<HttpConnection>();
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
28public static ReadOnlySet<T> Empty { get; } = new ReadOnlySet<T>(new HashSet<T>());
src\System\RuntimeType.CoreCLR.cs (1)
1029var al = new HashSet<RuntimeType>();
System.Private.CoreLib.Generators (1)
NativeRuntimeEventSourceGenerator.cs (1)
175var usedKeywords = new HashSet<string>();
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\DataContract.cs (4)
1112previousCollectionTypes ??= new HashSet<Type>(); 1229return GetXmlName(type, new HashSet<Type>(), out hasDataContract); 1359return GetCollectionXmlName(type, itemType, new HashSet<Type>(), out collectionContractAttribute); 2072return Equals(obj, new HashSet<DataContractPairKey>());
System.Private.Xml (8)
src\libraries\Common\src\System\CSharpHelpers.cs (1)
14private static readonly HashSet<string> s_fixedStringLookup = new HashSet<string>()
System\Xml\Core\XmlTextReaderImpl.cs (1)
8079_currentEntities ??= new HashSet<IDtdEntityInfo>();
System\Xml\Dom\XmlLoader.cs (1)
688HashSet<string> prefixes = new HashSet<string>();
System\Xml\Serialization\XmlSerializationILGen.cs (2)
33private readonly HashSet<TypeMapping> _generatedMethods = new HashSet<TypeMapping>(); 239var uniqueTypes = new HashSet<Type>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1077var cases = new HashSet<string>();
System\Xml\Serialization\XmlSerializationWriter.cs (1)
566var qnIndexes = new HashSet<int>();
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
618var values = new HashSet<long>();
System.Reflection.DispatchProxy (1)
System\Reflection\DispatchProxyGenerator.cs (1)
115private readonly HashSet<string> _ignoresAccessAssemblyNames = new HashSet<string>();
System.Reflection.Emit (2)
System\Reflection\Emit\EventBuilderImpl.cs (1)
40_otherMethods ??= new HashSet<MethodBuilder>();
System\Reflection\Emit\PropertyBuilderImpl.cs (1)
53_otherMethods ??= new HashSet<MethodInfo>();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Types\RoType.cs (1)
213HashSet<RoType> ifcs = new HashSet<RoType>();
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (1)
43jsonTypeInfo.CreateObject = () => new HashSet<TElement>();
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Parser.cs (2)
42private readonly HashSet<(string ContextName, string TypeName)> _generatedContextAndTypeNames = new(); 1530if (!(memberInitializerNames ??= new()).Add(property.MemberName))
System.Text.RegularExpressions (10)
System\Text\RegularExpressions\RegexTreeAnalyzer.cs (5)
33(results._inLoops ??= new HashSet<RegexNode>()).Add(node); 52(results._mayBacktrack ??= new HashSet<RegexNode>()).Add(node); 135(results._mayBacktrack ??= new HashSet<RegexNode>()).Add(node); 158internal readonly HashSet<RegexNode> _isAtomicByAncestor = new(); // since the root is implicitly atomic, every tree will contain atomic-by-ancestor nodes 160internal readonly HashSet<RegexNode> _containsCapture = new(); // the root is a capture, so this will always contain at least the root node
System\Text\RegularExpressions\Symbolic\BDD.cs (2)
251var visited = new HashSet<BDD>(); 458var visited = new HashSet<BDD>();
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (1)
161HashSet<SymbolicRegexNode<TSet>> seenElems = new();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Explore.cs (1)
19HashSet<MatchingState<TSet>> seen = new();
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (1)
1822var sets = new HashSet<TSet>();
System.Text.RegularExpressions.Generator (10)
RegexGenerator.Emitter.cs (4)
569var additionalDeclarations = new HashSet<string>(); 722var additionalDeclarations = new HashSet<string>(); 1491HashSet<string> additionalDeclarations = new(); 1713var seenChars = new HashSet<char>();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexTreeAnalyzer.cs (5)
33(results._inLoops ??= new HashSet<RegexNode>()).Add(node); 52(results._mayBacktrack ??= new HashSet<RegexNode>()).Add(node); 135(results._mayBacktrack ??= new HashSet<RegexNode>()).Add(node); 158internal readonly HashSet<RegexNode> _isAtomicByAncestor = new(); // since the root is implicitly atomic, every tree will contain atomic-by-ancestor nodes 160internal readonly HashSet<RegexNode> _containsCapture = new(); // the root is a capture, so this will always contain at least the root node
UpgradeToGeneratedRegexAnalyzer.cs (1)
52new HashSet<string> { "Count", "EnumerateMatches", "IsMatch", "Match", "Matches", "Split", "Replace" });
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (1)
260HashSet<UIElement> targets = new HashSet<UIElement>();
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1044HashSet<Type>? typesWithEvents = _selectedObjects.Length > 10 ? new() : null;
System.Windows.Forms.Design.Tests (1)
SerializableAttributeTests.cs (1)
15new HashSet<string>
System.Windows.Forms.Tests (1)
SerializableAttributeTests.cs (1)
16new HashSet<string>
System.Xaml (8)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (1)
1995_names = new HashSet<string>();
System\Xaml\Context\ObjectWriterContext.cs (1)
242HashSet<string> keys = new HashSet<string>();
System\Xaml\Context\ObjectWriterFrame.cs (1)
191_assignedProperties = new HashSet<XamlMember>();
System\Xaml\Context\XamlParserContext.cs (1)
83HashSet<string> keys = new HashSet<string>();
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
460HashSet<string> visited = new HashSet<string>();
System\Xaml\XamlObjectReader.cs (3)
73namesInCurrentScope.Push(new HashSet<string>()); 225namesInCurrentScope.Push(new HashSet<string>()); 1071HashSet<string> namesOfAttributableProperties = new HashSet<string>();
TaskUsageLogger (3)
TaskUsageLogger.cs (3)
74_tasks = new HashSet<TaskData>(); 202HashSet<UsingTaskData> usingTasks = new HashSet<UsingTaskData>(); 222usingTasks = new HashSet<UsingTaskData>();
Templates.Blazor.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
502var availableCommands = new HashSet<string>();
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
502var availableCommands = new HashSet<string>();
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
502var availableCommands = new HashSet<string>();
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Templates.Mvc.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
502var availableCommands = new HashSet<string>();
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Templates.Tests (2)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
502var availableCommands = new HashSet<string>();
src\Shared\Process\ProcessExtensions.cs (1)
31var children = new HashSet<int>();
Test.Utilities (9)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
TestDiscoveryWorker (1)
Program.cs (1)
79var testsToWrite = new HashSet<string>();
Text.Analyzers (13)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
27_set = new HashSet<T>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (1)
76var namespacesWithTypeMember = new HashSet<INamespaceSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
76var typesInNamespace = new HashSet<INamedTypeSymbol>();
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
119public ISet<ICatchClauseOperation> CatchClausesForDisallowedTypesWithoutRethrow { get; } = new HashSet<ICatchClauseOperation>();
src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var uniqueRulesetPaths = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
110var symbols = new HashSet<ISymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (1)
314var map = new HashSet<TextSpan>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Serialization\NamingStylePreferencesEditorConfigSerializer.cs (3)
59var referencedElements = new HashSet<Guid>(); 123var symbolSpecificationNames = new HashSet<string>(); 136var namingStyleNames = new HashSet<string>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
16var visited = new HashSet<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
126var addedSymbols = new HashSet<INamespaceSymbol>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
294var unusedImports = new HashSet<SyntaxNode>();
xunit.assert (2)
StringAsserts.cs (2)
1628 static readonly HashSet<char> charsLineEndings = new HashSet<char>() 1633 static readonly HashSet<char> charsWhitespace = new HashSet<char>()