45 references to HashSet
ILCompiler.Compiler (1)
Compiler\MethodBodyDeduplicator.cs (1)
37
var methodHash = new
HashSet
<MethodInternKey>(_previousHashCount, new MethodInternComparer(factory, previousSymbolRemapping, _genericsOnly));
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingOptions.cs (2)
32
internal HashSet<string> _internalRequestHeaders = new
HashSet
<string>(26, StringComparer.OrdinalIgnoreCase)
71
internal HashSet<string> _internalResponseHeaders = new
HashSet
<string>(19, StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions.cs (1)
935
var uniqueItems = new
HashSet
<T>(capacity: source.Length, comparer);
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternFactory.cs (1)
1073
var parameterNameSet = new
HashSet
<string>(parameterCount, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.Generated.cs (1)
282
private readonly static HashSet<string> _internedHeaderNames = new
HashSet
<string>(91, StringComparer.OrdinalIgnoreCase)
Microsoft.Build (9)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
560
HashSet<string> excludesUnescapedForComparison = new
HashSet
<string>(excludes.Count, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
1065
var declaredProjects = new
HashSet
<string>(projectReferenceItems.Count + 1, FileUtilities.PathComparer);
Construction\Solution\SolutionFile.cs (1)
906
HashSet<string> projectPaths = new
HashSet
<string>(_projectsInOrder.Count, _pathComparer);
Evaluation\Expander.ItemExpander.Transforms.cs (1)
486
HashSet<string> seenItems = new
HashSet
<string>(input.Count, comparer);
Graph\ProjectGraph.cs (1)
895
var seen = new
HashSet
<string>(count, StringComparer.OrdinalIgnoreCase);
Instance\ProjectItemInstance.cs (1)
1764
var thisNames = new
HashSet
<string>(capacity, MSBuildNameIgnoreCaseComparer.Default);
parent\Shared\TaskHostConfiguration.cs (3)
571
collectionFactory: count => new
HashSet
<string>(count, StringComparer.OrdinalIgnoreCase));
574
collectionFactory: count => new
HashSet
<string>(count, StringComparer.OrdinalIgnoreCase));
577
collectionFactory: count => new
HashSet
<string>(count, StringComparer.OrdinalIgnoreCase));
Microsoft.Build.Framework (1)
BuildCheck\EnumerableExtensions.cs (1)
48
return new
HashSet
<T>(capacity, equalityComparer);
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\Legacy\CSharpCodeParser.cs (2)
137
var keywordsSet = new
HashSet
<string>(capacity: s_initialKeywordCount + directives.Length + 5, StringComparer.Ordinal);
141
var currentKeywordsSet = new
HashSet
<string>(capacity: s_defaultKeywords.Length + directives.Length, StringComparer.Ordinal);
Microsoft.Extensions.DependencyInjection (1)
ServiceLookup\ServiceProviderEngineScope.cs (1)
336
var seen = new
HashSet
<object>(count, ReferenceEqualityComparer.Instance);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
parent\parent\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (1)
334
var seen = new
HashSet
<string>(assets.Length, OSPath.PathComparer);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (5)
ApplyCompressionNegotiation.cs (3)
34
var updatedEndpoints = new
HashSet
<StaticWebAssetEndpoint>(CandidateEndpoints.Length, StaticWebAssetEndpoint.RouteAndAssetComparer);
133
var additionalUpdatedEndpoints = new
HashSet
<StaticWebAssetEndpoint>(updatedEndpoints.Count, StaticWebAssetEndpoint.RouteAndAssetComparer);
184
var result = new
HashSet
<string>(compressedEndpoint.ResponseHeaders.Length, StringComparer.Ordinal);
Data\StaticWebAsset.cs (1)
334
var seen = new
HashSet
<string>(assets.Length, OSPath.PathComparer);
DefineStaticWebAssetEndpoints.cs (1)
79
var assets = new
HashSet
<string>(CandidateAssets.Length, OSPath.PathComparer);
MSBuild (3)
parent\Shared\TaskHostConfiguration.cs (3)
571
collectionFactory: count => new
HashSet
<string>(count, StringComparer.OrdinalIgnoreCase));
574
collectionFactory: count => new
HashSet
<string>(count, StringComparer.OrdinalIgnoreCase));
577
collectionFactory: count => new
HashSet
<string>(count, StringComparer.OrdinalIgnoreCase));
NuGet.Build.Tasks (2)
GetRestoreNuGetAuditSuppressionsTask.cs (1)
42
var seenIds = new
HashSet
<string>(NuGetAuditSuppressions.Length, StringComparer.Ordinal);
GetRestorePrunedPackageReferencesTask.cs (1)
43
var seenIds = new
HashSet
<string>(PrunePackageReferences.Length, StringComparer.Ordinal);
NuGet.Packaging (1)
NuspecReader.cs (1)
645
var set = new
HashSet
<string>(splitFlags.Length, StringComparer.OrdinalIgnoreCase);
NuGet.ProjectModel (1)
ProjectRestoreMetadata.cs (1)
258
var setSources = new
HashSet
<string>(sources.Count, StringComparer.OrdinalIgnoreCase);
NuGet.Protocol (1)
Resources\VulnerabilityInfoResourceV3.cs (1)
208
new
(indexEntries.Count, StringComparer.InvariantCultureIgnoreCase);
PresentationCore (1)
MS\Internal\Resources\ContentFileHelper.cs (1)
63
contentFiles = new
HashSet
<string>(assemblyAttributes.Length, StringComparer.OrdinalIgnoreCase);
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenSet.cs (1)
40
new
(source.Length, equalityComparer); // we assume there are few-to-no duplicates when using this API
System\Collections\Frozen\String\KeyAnalyzer.cs (1)
64
HashSet<string> set = new
HashSet
<string>(
System.Linq (4)
System\Linq\Distinct.cs (2)
78
var set = new
HashSet
<TKey>(DefaultInternalSetCapacity, comparer);
124
_set = new
HashSet
<TSource>(DefaultInternalSetCapacity, _comparer);
System\Linq\Union.cs (2)
78
var set = new
HashSet
<TKey>(DefaultInternalSetCapacity, comparer);
139
var set = new
HashSet
<TSource>(DefaultInternalSetCapacity, _comparer);
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
84
public HashSet(int capacity) :
this
(capacity, null) { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
42
var uniqueValues = new
HashSet
<string>(values.Length, ignoreCase ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
392
uniqueValues ??= new
HashSet
<string>(1, ignoreCase ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal) { value };
System.Text.Json (2)
System\Text\Json\Document\JsonDocument.PropertyNameSet.cs (2)
55
_hashSet = new
HashSet
<ReadOnlyMemory<byte>>(
115
_hashSet ??= new
HashSet
<ReadOnlyMemory<byte>>(