214 references to HashSet
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\NuGetUtils.NuGet.cs (1)
88HashSet<string> availableRids = new HashSet<string>(availableRuntimeIdentifiers);
CSharpSyntaxGenerator (2)
SourceWriter.cs (2)
1599var factoryWithNoAutoCreatableTokenFields = new HashSet<Field>(DetermineRedFactoryWithNoAutoCreatableTokenFields(nd)); 1682var minimalFactoryfields = new HashSet<Field>(DetermineMinimalFactoryFields(nd));
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
35private static readonly HashSet<char> s_InvalidSeparatorSet = new HashSet<char>(new char[] { '(', ')', '<', '>', '@', ',', ';', ':', '\\', '"', '/', '[', ']', '?', '=', '{', '}', ' ' });
illink (3)
ILLink.RoslynAnalyzer (2)
src\tools\illink\src\ILLink.Shared\Annotations.cs (1)
79 var values = new HashSet<DynamicallyAccessedMemberTypes> (
src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
35 public EnumerableValues (IEnumerable<TValue> values) : base (values) { }
KeyManagementSimulator (1)
Program.cs (1)
394_knownKeyIds = new(((KeyRing)keyRing.KeyRing).GetAllKeyIds());
Metrics (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Metrics.Legacy (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Microsoft.Analyzers.Local (2)
ApiLifecycle\AssemblyAnalysis.cs (2)
141var baseTypes = new HashSet<string>(type.AllInterfaces.Select(x => x.ToDisplayString(_shortSymbolNameFormat))); 176var constraints = new HashSet<string>(Utils.GetConstraints(typeSignature));
Microsoft.Arcade.Test.Common (2)
AssertEx.cs (1)
259var expectedSet = new HashSet<T>(expected);
MockFileSystem.cs (1)
31Directories = new(directories ?? new string[0]);
Microsoft.AspNetCore.Authorization (1)
AuthorizationHandlerContext.cs (1)
38_pendingRequirements = new HashSet<IAuthorizationRequirement>(requirements);
Microsoft.AspNetCore.Components (1)
Routing\RouteKey.cs (1)
16AdditionalAssemblies = additionalAssemblies is null ? null : new HashSet<Assembly>(additionalAssemblies);
Microsoft.AspNetCore.DataProtection.Tests (3)
Repositories\EphemeralXmlRepositoryTests.cs (1)
78var elementSet = new HashSet<string>(repository.GetAllElements().Select(e => e.Name.LocalName));
Repositories\FileSystemXmlRepositoryTests.cs (1)
183var elementSet = new HashSet<string>(repository.GetAllElements().Select(e => e.Name.LocalName));
Repositories\RegistryXmlRepositoryTests.cs (1)
171var elementSet = new HashSet<string>(repository.GetAllElements().Select(e => e.Name.LocalName));
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\IncomingHttpDimensionsTests.cs (1)
19var names = new HashSet<string>(dimensions);
Microsoft.AspNetCore.Http.Results.Tests (2)
ResultsTests.cs (2)
1709var testedMethods = new HashSet<string>(FactoryMethodsTuples.Select(t => GetMemberName(t.Item1.Body))); 1710var actualMethods = new HashSet<string>(typeof(Results).GetMethods(BindingFlags.Public | BindingFlags.Static)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
AddResponseTypeAttributeCodeFixAction.cs (1)
116var declaredUsings = new HashSet<string>(compilationUnit.Usings.Select(x => x.Name.ToString()));
Microsoft.AspNetCore.Mvc.TagHelpers.Test (17)
OptionTagHelperTest.cs (17)
62null, null, "value", new HashSet<string>(new [] { string.Empty, }), 72null, string.Empty, "value", new HashSet<string>(new [] { string.Empty, }), 82null, null, "value", new HashSet<string>(new [] { "value", }), 92null, null, "value", new HashSet<string>(new [] { string.Empty, "value", }), 142string.Empty, null, null, new HashSet<string>(new [] { string.Empty, }), 153new HashSet<string>(new [] { string.Empty, }), 163string.Empty, null, null, new HashSet<string>(new [] { "text", }), 174new HashSet<string>(new [] { string.Empty, "text", }), 224"text", null, null, new HashSet<string>(new [] { string.Empty, }), 234"HtmlEncode[[text]]", null, null, new HashSet<string>(new [] { "text", }), 244"text", string.Empty, null, new HashSet<string>(new [] { "text", }), 255new HashSet<string>(new [] { string.Empty, "text", }), 295"text", null, "value", new HashSet<string>(new [] { string.Empty, }), 306new HashSet<string>(new [] { string.Empty, }), 316"text", null, "value", new HashSet<string>(new [] { "text", }), 326"text", null, "value", new HashSet<string>(new [] { "value", }), 337new HashSet<string>(new [] { string.Empty, "value", }),
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
TemplateInfo.cs (1)
35_visitedObjects = new HashSet<object>(original._visitedObjects);
Microsoft.Build (7)
BackEnd\BuildManager\BuildManager.cs (1)
2055var blockedNodes = new HashSet<ProjectGraphNode>(projectGraph.ProjectNodes);
BackEnd\BuildManager\RequestedProjectState.cs (2)
75HashSet<string> anotherPropertyFilters = new HashSet<string>(another.PropertyFilters); 112HashSet<string> anotherMetadata = new HashSet<string>(metadata);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (3)
89keepMetadata = new HashSet<string>(keepMetadataEvaluated); 98removeMetadata = new HashSet<string>(removeMetadataEvaluated); 107matchOnMetadata = new HashSet<string>(matchOnMetadataEvaluated);
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
648targetOutputItems = new HashSet<TaskItem>(batchingBuckets[0].Expander.ExpandIntoTaskItemsLeaveEscaped(targetReturns, ExpanderOptions.ExpandAll, targetReturnsLocation)).ToArray();
Microsoft.Build.Engine.OM.UnitTests (2)
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (2)
207result.Add(this.Local, new HashSet<Project>(this.Local.Collection.LoadedProjects)); 211result.Add(r, new HashSet<Project>(r.Collection.LoadedProjects));
Microsoft.Cci.Extensions (6)
Filters\DocIdExcludeListFilter.cs (2)
21_docIds = new HashSet<string>(docIds); 27_docIds = new HashSet<string>(DocIdExtensions.ReadDocIds(excludeListFilePath));
Filters\DocIdIncludeListFilter.cs (2)
19_docIds = new HashSet<string>(docIds); 24_docIds = new HashSet<string>(DocIdExtensions.ReadDocIds(includeListFilePath));
Filters\ExcludeAttributesFilter.cs (2)
15_attributeDocIds = new HashSet<string>(attributeDocIds); 20_attributeDocIds = new HashSet<string>(DocIdExtensions.ReadDocIds(attributeDocIdFile));
Microsoft.CodeAnalysis (4)
CommandLine\CommonCompiler.cs (1)
500var set = new HashSet<string>(arguments.EmbeddedFiles.Select(f => f.Path));
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (1)
37_lazyAvailableReferences = new Lazy<HashSet<AssemblyIdentity>>(() => new HashSet<AssemblyIdentity>(
Compilation\Compilation.cs (1)
837var refSet = new HashSet<MetadataReference>(this.ExternalReferences);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
177return source as ISet<T> ?? new HashSet<T>(source);
Microsoft.CodeAnalysis.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
177return source as ISet<T> ?? new HashSet<T>(source);
Microsoft.CodeAnalysis.Collections.Package (1)
Extensions\IEnumerableExtensions.cs (1)
177return source as ISet<T> ?? new HashSet<T>(source);
Microsoft.CodeAnalysis.CSharp (4)
Syntax\SyntaxNodeRemover.cs (1)
61_nodesToRemove = new HashSet<SyntaxNode>(nodesToRemove);
Syntax\SyntaxReplacer.cs (3)
91_nodeSet = nodes != null ? new HashSet<SyntaxNode>(nodes) : s_noNodes; 92_tokenSet = tokens != null ? new HashSet<SyntaxToken>(tokens) : s_noTokens; 93_triviaSet = trivia != null ? new HashSet<SyntaxTrivia>(trivia) : s_noTrivia;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (1)
1421var hashset = new HashSet<string>(expectedTypesInRelativeOrder);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
353var diagIds = new HashSet<string>(diags.Select(d => d.Id));
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (1)
76var alreadyTestedMembers = new HashSet<string>(propertyPatternClause.Subpatterns.Select(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\Metadata\MetadataMemberTests.cs (4)
622var memberNames1 = new HashSet<string>(test1.MemberNames); 632var memberNames2 = new HashSet<string>(test2.MemberNames); 663var memberNames1 = new HashSet<string>(test1.MemberNames); 674var memberNames2 = new HashSet<string>(test2.MemberNames);
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Extensions\ITextViewExtensions.cs (1)
24return new HashSet<IContentType>(
Microsoft.CodeAnalysis.Features (5)
AddImport\AbstractAddImportFeatureService.cs (1)
457var viableProjects = new HashSet<Project>(solution.Projects.Where(p => p.SupportsCompilation));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (1)
529_projectOrDocumentIds = new HashSet<object>(projectIds);
ExtractMethod\Extensions.cs (1)
51var set = new HashSet<Diagnostic>(node.GetDiagnostics());
Shared\Utilities\ExtractTypeHelpers.cs (1)
141var allReferencedTypeParameters = new HashSet<ITypeParameterSymbol>(directlyReferencedTypeParameters);
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
141var invalidChars = new HashSet<char>(Path.GetInvalidFileNameChars());
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (1)
734var uniqueDirectories = new HashSet<string>(directories);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
177return source as ISet<T> ?? new HashSet<T>(source);
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\ProcessTelemetry\RemoteProcessTelemetryService.cs (1)
81var functionIdsSet = new HashSet<FunctionId>(functionIds);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Microsoft.CodeAnalysis.Test.Utilities (6)
Assert\AssertEx.cs (1)
495var expectedSet = new HashSet<T>(expected);
CommonTestBase.cs (3)
669var originalSet = new HashSet<IOperation>(operation.DescendantsAndSelf()); 670var clonedSet = new HashSet<IOperation>(clonedOperation.DescendantsAndSelf()); 681var set = new HashSet<IOperation>(root.DescendantsAndSelf());
Diagnostics\TrackingDiagnosticAnalyzer.cs (2)
99var actualSyntaxKinds = new HashSet<TLanguageKindEnum>(_callLog.Where(a => FilterByAbstractName(a, "SyntaxNode")).Select(e => e.SyntaxKind)); 100var savedSyntaxKindsPatterns = new HashSet<TLanguageKindEnum>(expectedMissingSyntaxKinds);
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
177return source as ISet<T> ?? new HashSet<T>(source);
Microsoft.CodeAnalysis.UnitTests (5)
Collections\ImmutableSetTest.cs (1)
492var uniqueValues = new HashSet<T>(values);
Collections\ImmutableSetTest.nonnetstandard.cs (4)
115var expectedSet = new HashSet<T>(set); 127var expectedSet = new HashSet<T>(set); 141var expected = new HashSet<T>(set); 153var expected = new HashSet<T>(set);
Microsoft.CodeAnalysis.VisualBasic (4)
Syntax\SyntaxReplacer.vb (4)
79Me._nodeSet = If(nodes IsNot Nothing, New HashSet(Of SyntaxNode)(nodes), s_noNodes) 80Me._tokenSet = If(tokens IsNot Nothing, New HashSet(Of SyntaxToken)(tokens), s_noTokens) 81Me._triviaSet = If(trivia IsNot Nothing, New HashSet(Of SyntaxTrivia)(trivia), s_noTrivia) 83Me._spanSet = New HashSet(Of TextSpan)(Me._nodeSet.Select(Function(n) n.FullSpan).Concat(
Microsoft.CodeAnalysis.Workspaces (14)
Diagnostics\HostDiagnosticAnalyzers.cs (1)
284var seen = new HashSet<DiagnosticAnalyzer>(map1.Values.SelectMany(v => v));
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
89var referencingProjects = new HashSet<ProjectId>(solution.Projects.Where(p => p.MetadataReferences.Contains(reference)).Select(p => p.Id));
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
116var documentIdsThatGetsAnnotatedAndRenamed = new HashSet<DocumentId>(documentsByProject);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
177return source as ISet<T> ?? new HashSet<T>(source);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
126var allAffectedStatements = new HashSet<TStatementSyntax>(referencingStatements.SelectMany(
Workspace\Solution\ProjectChanges.cs (6)
26var oldRefs = new HashSet<ProjectReference>(OldProject.ProjectReferences); 38var newRefs = new HashSet<ProjectReference>(NewProject.ProjectReferences); 50var oldMetadata = new HashSet<MetadataReference>(OldProject.MetadataReferences); 62var newMetadata = new HashSet<MetadataReference>(NewProject.MetadataReferences); 74var oldAnalyzerReferences = new HashSet<AnalyzerReference>(OldProject.AnalyzerReferences); 86var newAnalyzerReferences = new HashSet<AnalyzerReference>(NewProject.AnalyzerReferences);
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
108var newTransitiveReferences = new HashSet<ProjectId>(referencedProjectIds);
Workspace\Solution\SolutionChanges.cs (2)
65var oldAnalyzerReferences = new HashSet<AnalyzerReference>(_oldSolution.AnalyzerReferences); 77var newAnalyzerReferences = new HashSet<AnalyzerReference>(_newSolution.AnalyzerReferences);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
177return source as ISet<T> ?? new HashSet<T>(source);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
86var fileNames = new HashSet<string>(references.Select(r => Path.GetFileName(((PortableExecutableReference)r).FilePath)));
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
UtilityTest\IntervalTreeTests.cs (6)
321var set1 = new HashSet<string>(GetIntervalsThatOverlapWith(tree, start, length).Select(i => i.Item3)); 322var set2 = new HashSet<string>(spans.Where(t => 328var set3 = new HashSet<string>(GetIntervalsThatIntersectWith(tree, start, length).Select(i => i.Item3)); 329var set4 = new HashSet<string>(spans.Where(t => 338Assert.True(new HashSet<string>(spans.Select(t => t.Item3)).SetEquals(tree.Select(i => i.Item3))); 343=> new HashSet<T>(values);
Microsoft.Data.Analysis (1)
IDataView.Extension.cs (1)
54selectColumnsSet = new HashSet<string>(selectColumns);
Microsoft.Data.Analysis.Tests (1)
DataFrame.IOTests.cs (1)
1653HashSet<Type> possibleTypes = new HashSet<Type>(types);
Microsoft.DotNet.AsmDiff (4)
AssemblySet.cs (4)
29var includedAssemblySet = new HashSet<IAssembly>(includedAssemblies); 145var loadedAssembliesSet = new HashSet<IAssembly>(loadedAssemblies); 180var includedAssemblySet = new HashSet<IAssembly>(includedAssemblies); 185var requiredAssemblySet = new HashSet<IAssembly>(GetRequiredAssemblies(includedAssemblySet));
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PublishBuildToMaestro.cs (1)
191var targetChannelIds = new HashSet<int>(defaultChannels.Select(dc => dc.Channel.Id));
src\PublishSignedAssets.cs (1)
84HashSet<PackageIdentity> packagesToPublish = new HashSet<PackageIdentity>(
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateRpmPackage.cs (1)
112HashSet<string> ownedDirectories = new(OwnedDirectories.Select(d => d.ItemSpec));
Microsoft.DotNet.Build.Tasks.Packaging (9)
CreateTrimDependencyGroups.cs (1)
223Packages = new HashSet<TaskItemPackageDependency>(packages.Where(d => d.Id != PlaceHolderDependency));
FilterUnknownPackages.cs (1)
46var baseLinePackageIds = new HashSet<string>(BaseLinePackages.NullAsEmpty().Select(b => b.ItemSpec));
GetLayoutFiles.cs (1)
50return String.IsNullOrEmpty(rids) ? new HashSet<string>() : new HashSet<string>(rids.Split(';'));
HarvestPackage.cs (3)
298var preserveRefVersion = new HashSet<Version>(desktopLibVersions); 523_pathsNotIncluded = new HashSet<string>(_pathsToInclude.Keys); 534_pathsToSuppress = new HashSet<string>(PathsToSuppress.NullAsEmpty().Select(NormalizePath));
UpdatePackageIndex.cs (1)
287var assmVersions = new HashSet<Version>(assemblyVersions.NullAsEmpty().Where(v => v != null));
ValidatePackage.cs (1)
389var assemblyVersions = new HashSet<Version>(allAssemblies.Select(f => VersionUtility.As4PartVersion(f.Version)));
ValidationTask.cs (1)
129values = new HashSet<string>(valuesToAdd);
Microsoft.DotNet.GenFacades (1)
SourceGenerator.cs (1)
37? new HashSet<string>(ignoreMissingTypesList)
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
275var expectedSet = new HashSet<T>(expected);
Microsoft.Extensions.AI.Evaluation (1)
Utilities\TaskExtensions.cs (1)
65var remaining = new HashSet<Task<T>>(concurrentTasks);
Microsoft.Extensions.ApiDescription.Client (1)
MetadataSerializer.cs (1)
21private static readonly HashSet<char> CharsToEscapeHash = new HashSet<char>(CharsToEscape);
Microsoft.Extensions.Compliance.Abstractions (1)
Classification\DataClassificationSet.cs (1)
80var combinedClassifications = new HashSet<DataClassification>(_classifications);
Microsoft.Extensions.Compliance.Testing.Tests (2)
FakeRedactorTests.cs (2)
95var numbersSetRedacted = new HashSet<int>(sequenceNumbersRedacted); 96var numbersSetRequested = new HashSet<int>(sequenceNumbersRequested);
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
277var addedMembers = new HashSet<string>(members.Select(m => m.Name));
Microsoft.Extensions.Telemetry (1)
Latency\Internal\LatencyContextRegistrySet.cs (1)
60HashSet<string> keys = new HashSet<string>(names);
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
559var paramDataClassAttributes = new HashSet<string>(
Microsoft.Gen.Logging.Unit.Tests (1)
LoggingMethodParameterTests.cs (1)
46ClassificationAttributeTypes = new HashSet<string>(new[] { PrivateDataAttributeType })
Microsoft.Maui.Controls (1)
View\View.cs (1)
143 HashSet<IGestureRecognizer> compositeGestureRecognizers = new(GestureController.CompositeGestureRecognizers);
Microsoft.ML.AutoML (7)
PipelineSuggesters\PipelineSuggester.cs (2)
56var visitedPipelines = new HashSet<SuggestedPipeline>(history.Select(h => h.Pipeline)); 113var selectedTrainerNames = new HashSet<TrainerName>(selectedTrainers.Select(t => t.TrainerName));
Sweepers\SmacSweeper.cs (1)
204var retainedConfigs = new HashSet<ParameterSet>(bestConfigurations.Select(x => x.Item2));
Sweepers\SweeperBase.cs (1)
51var prevParamSets = new HashSet<ParameterSet>(previousRuns?.Select(r => r.ParameterSet).ToList() ?? new List<ParameterSet>());
TrainerExtensions\SweepableParams.cs (1)
217return new HashSet<string>(sweepableParams.Select(p => p.Name));
TrainerExtensions\TrainerExtensionCatalog.cs (1)
106allowList = new HashSet<TrainerName>(allowList);
TransformInference\TransformInference.cs (1)
479var existingColNames = new HashSet<string>(columns.Select(c => c.ColumnName));
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
329HashSet<String> columnNamesSet = new HashSet<String>(columnNames);
Microsoft.ML.Core.Tests (3)
UnitTests\TestVBuffer.cs (3)
326var aIndices = new HashSet<int>(a.Items().Select(iv => iv.Key)); 799HashSet<int> aIndices = new HashSet<int>(a.Items().Select(iv => iv.Key)); 800HashSet<int> bIndices = new HashSet<int>(b.Items().Select(iv => iv.Key));
Microsoft.ML.Data (7)
DataLoadSave\Binary\BinarySaver.cs (2)
584HashSet<int> activeSet = new HashSet<int>(activeColumns.Select(col => col.SourceIndex)); 739HashSet<int> active = new HashSet<int>(actives.Select(cc => cc.SourceIndex));
Evaluators\EvaluatorBase.cs (1)
80var stratIndices = Utils.Size(stratCols) > 0 ? new HashSet<int>(stratCols.Select(col => col.Index)) : new HashSet<int>();
Model\Pfa\SavePfaCommand.cs (1)
90return new HashSet<string>(toDrop.Split(','));
Scorers\RowToRowScorerBase.cs (1)
171var activeIndices = new HashSet<int>(activeColumns.Select(c => c.Index));
Transforms\MetadataDispatcher.cs (1)
366var set = new HashSet<string>(kindsSrc);
Transforms\TransformBase.cs (1)
820var activeIndices = new HashSet<int>(activeColumns.Select(c => c.Index));
Microsoft.ML.FastTree (1)
Training\RegressionTreeNodeDocuments.cs (1)
65documentsInNode = new HashSet<int>(Partitioning.DocumentsInLeaf(~NodeIndex));
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckAnalyzer.cs (1)
80private static readonly HashSet<string> _targetSet = new HashSet<string>(new[]
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
128return new HashSet<string>(toDrop);
Microsoft.ML.Predictor.Tests (1)
TestTransposer.cs (1)
108HashSet<int> forceDenseSlotSet = new HashSet<int>(forceDenseSlot);
Microsoft.ML.Tests (1)
Transformers\ValueMappingTests.cs (1)
580var allowedKeyPool = new HashSet<ReadOnlyMemory<char>>(allowedKeys.DenseValues());
Microsoft.ML.TimeSeries (1)
PredictionEngine.cs (1)
169var activeIndices = new HashSet<int>(activeColumns.Select(c => c.Index));
Microsoft.ML.Transforms (1)
OptionalColumnTransform.cs (1)
377var activeIndices = new HashSet<int>(activeColumns.Select(c => c.Index));
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Snippets\CSharpSnippetInfoService.cs (1)
25private readonly ISet<string> _formatTriggeringSnippets = new HashSet<string>(new string[] { "#region", "#endregion" });
PresentationFramework (1)
System\Windows\Markup\RestrictiveXamlXmlReader.cs (1)
21private static readonly HashSet<string> AllXamlNamespaces = new HashSet<string>(XamlLanguage.XamlNamespaces);
Roslyn.Diagnostics.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Roslyn.VisualStudio.Next.UnitTests (1)
Services\ServiceHubServicesTests.cs (1)
1874var expectedSet = new HashSet<T>(expected);
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenHashTable.cs (1)
149Debug.Assert(!hashCodesAreUnique || new HashSet<int>(hashCodes.ToArray()).Count == hashCodes.Length);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
149HashSet<string> mainTypeMemberNames = new HashSet<string>(mainType.GetProperties().Select(p => p.Name));
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (1)
25_removedParts = new HashSet<ComposablePartDefinition>(removedParts);
System.ComponentModel.TypeConverter (1)
System\Drawing\ColorConverter.cs (1)
20var set = new HashSet<Color>(ColorTable.Colors.Values);
System.Data.Common (1)
System\Data\TypeLimiter.cs (1)
203m_allowedTypes = new HashSet<Type>(allowedTypes.Where(type => type != null));
System.Linq.Expressions (2)
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
542_shadowedVars.Push(new HashSet<ParameterExpression>(node.Variables));
System\Runtime\CompilerServices\RuntimeOps.ExpressionQuoter.cs (1)
97_shadowedVars.Push(new HashSet<ParameterExpression>(node.Variables));
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\SearchValues\ProbabilisticMapState.cs (1)
67var unique = new HashSet<char>(_hashEntries);
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
564var certs = new HashSet<X509Certificate2>(Certificates.OfType<X509Certificate2>());
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCharClass.cs (1)
334var whitespaceSet = new HashSet<char>(s_whitespaceChars);
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
334var whitespaceSet = new HashSet<char>(s_whitespaceChars);
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
302? new HashSet<int>(this.manipulatorStates.Keys)
System.Xaml (1)
System\Xaml\Context\ObjectWriterFrame.cs (1)
36_assignedProperties = new HashSet<XamlMember>(source.AssignedProperties);
Test.Utilities (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
Text.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableExtensions.cs (1)
43return source as ISet<T> ?? new HashSet<T>(source);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (1)
341var set = new HashSet<IParameterSymbol>(parameters);
xunit.assert (3)
Sdk\CollectionTracker.cs (3)
201 var dictionaryYKeys = new HashSet<object>(dictionaryY.Keys.Cast<object>()); 344 var setX = new HashSet<object>(enumX.Cast<object>()); 345 var setY = new HashSet<object>(enumY.Cast<object>());