32 references to HashSet
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingOptions.cs (2)
32internal HashSet<string> _internalRequestHeaders = new HashSet<string>(26, StringComparer.OrdinalIgnoreCase) 71internal HashSet<string> _internalResponseHeaders = new HashSet<string>(19, StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternFactory.cs (1)
1073var parameterNameSet = new HashSet<string>(parameterCount, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.Generated.cs (1)
282private readonly static HashSet<string> _internedHeaderNames = new HashSet<string>(91, StringComparer.OrdinalIgnoreCase)
Microsoft.Build (8)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
551HashSet<string> excludesUnescapedForComparison = new HashSet<string>(excludes.Count, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
1037var declaredProjects = new HashSet<string>(projectReferenceItems.Count + 1, FileUtilities.PathComparer);
Construction\Solution\SolutionFile.cs (1)
907HashSet<string> projectPaths = new HashSet<string>(_projectsInOrder.Count, _pathComparer);
Evaluation\Expander.cs (1)
2868HashSet<string> seenItems = new HashSet<string>(itemsOfType.Count, comparer);
Instance\ProjectItemInstance.cs (1)
1740var thisNames = new HashSet<string>(capacity, MSBuildNameIgnoreCaseComparer.Default);
TaskHostConfiguration.cs (3)
456collectionFactory: count => new HashSet<string>(count, StringComparer.OrdinalIgnoreCase)); 463collectionFactory: count => new HashSet<string>(count, StringComparer.OrdinalIgnoreCase)); 470collectionFactory: count => new HashSet<string>(count, StringComparer.OrdinalIgnoreCase));
Microsoft.Build.Framework (1)
BuildCheck\EnumerableExtensions.cs (1)
48return new HashSet<T>(capacity, equalityComparer);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (4)
ApplyCompressionNegotiation.cs (3)
30var updatedEndpoints = new HashSet<StaticWebAssetEndpoint>(CandidateEndpoints.Length, StaticWebAssetEndpoint.RouteAndAssetComparer); 129var additionalUpdatedEndpoints = new HashSet<StaticWebAssetEndpoint>(updatedEndpoints.Count, StaticWebAssetEndpoint.RouteAndAssetComparer); 180var result = new HashSet<string>(compressedEndpoint.ResponseHeaders.Length, StringComparer.Ordinal);
DefineStaticWebAssetEndpoints.cs (1)
70var assets = new HashSet<string>(CandidateAssets.Length, OSPath.PathComparer);
MSBuild (3)
TaskHostConfiguration.cs (3)
456collectionFactory: count => new HashSet<string>(count, StringComparer.OrdinalIgnoreCase)); 463collectionFactory: count => new HashSet<string>(count, StringComparer.OrdinalIgnoreCase)); 470collectionFactory: count => new HashSet<string>(count, StringComparer.OrdinalIgnoreCase));
PresentationCore (1)
MS\Internal\Resources\ContentFileHelper.cs (1)
63contentFiles = new HashSet<string>(assemblyAttributes.Length, StringComparer.OrdinalIgnoreCase);
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenSet.cs (1)
40new(source.Length, equalityComparer); // we assume there are few-to-no duplicates when using this API
System\Collections\Frozen\String\KeyAnalyzer.cs (1)
64HashSet<string> set = new HashSet<string>(
System.Linq (4)
System\Linq\Distinct.cs (2)
78var set = new HashSet<TKey>(DefaultInternalSetCapacity, comparer); 124_set = new HashSet<TSource>(DefaultInternalSetCapacity, _comparer);
System\Linq\Union.cs (2)
78var set = new HashSet<TKey>(DefaultInternalSetCapacity, comparer); 139var set = new HashSet<TSource>(DefaultInternalSetCapacity, _comparer);
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
84public HashSet(int capacity) : this(capacity, null) { }
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
44var uniqueValues = new HashSet<string>(values.Length, ignoreCase ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 403uniqueValues ??= 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>>(