57 references to ToHashSet
Aspire.Dashboard (1)
Components\Controls\Chart\MetricTable.razor.cs (1)
214addedXValues = newMetrics.Keys.Where(newKey => newKey > latestCurrentMetric || latestCurrentMetric == null).ToHashSet();
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
331var healthCheckRegistrationKeys = options.Registrations.Select(hcr => hcr.Name).ToHashSet();
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
71var aggregateResourcesPaths = sidecarOptions?.ResourcesPaths.Select(path => NormalizePath(path)).ToHashSet() ?? new HashSet<string>();
BuildBoss (1)
OptProfCheckerUtil.cs (1)
110return manifest["files"].Select(f => f["fileName"].ToString()).ToHashSet();
Microsoft.AspNetCore.App.UnitTests (21)
SharedFxTests.cs (9)
39.ToHashSet(); 63.ToHashSet(); 66.ToHashSet(); 166.ToHashSet(); 220.ToHashSet(); 263.ToHashSet(); 286.ToHashSet(); 334.Select(i => i.FullName).ToHashSet(); 336var expectedPaths = runtimeListEntries.Select(i => i.Attribute("Path").Value).ToHashSet();
TargetingPackTests.cs (12)
40.ToHashSet(); 41var listedTargetingPackAssemblies = TestData.ListedTargetingPackAssemblies.ToHashSet(); 66.ToHashSet(); 142.ToHashSet(); 145.ToHashSet(); 236.ToHashSet(); 256.ToHashSet(); 294.ToHashSet(); 309.ToHashSet() : 330.ToHashSet(); 376.Select(i => i.FullName).ToHashSet(); 378var expectedPaths = frameworkListEntries.Select(i => i.Attribute("Path").Value).ToHashSet();
Microsoft.AspNetCore.OpenApi (1)
Schemas\OpenApiJsonSchema.Helpers.cs (1)
239schema.Required = ReadList<string>(ref reader)?.ToHashSet();
Microsoft.Build (2)
BackEnd\Shared\BuildRequestConfiguration.cs (1)
1038private HashSet<string> GetProjectTargets(IDictionary<string, ProjectTargetInstance> projectTargets) => projectTargets.Keys.ToHashSet();
CollectionHelpers.cs (1)
55return a.ToHashSet().SetEquals(b);
Microsoft.Build.Engine.UnitTests (7)
BackEnd\ResultsCache_Tests.cs (4)
434resultsCache2.ResultsDictionary.Keys.ToHashSet().SetEquals(resultsCache1.ResultsDictionary.Keys.ToHashSet()).ShouldBeTrue(); 444copiedBuildResult.ResultsByTarget.Keys.ToHashSet().SetEquals(initialBuildResult.ResultsByTarget.Keys.ToHashSet()).ShouldBeTrue();
Graph\GraphTestingUtilities.cs (1)
216return ComputeClosureRecursive(node).ToHashSet();
Graph\ProjectGraph_Tests.cs (2)
2108var referenceNumbersSet = innerBuildWithCommonReferences.ProjectReferences.Select(r => Path.GetFileNameWithoutExtension(r.ProjectInstance.FullPath)).ToHashSet(); 2114referenceNumbersSet = innerBuildWithAdditionalReferences.ProjectReferences.Select(r => Path.GetFileNameWithoutExtension(r.ProjectInstance.FullPath)).ToHashSet();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (9)
Diagnostics\GetDiagnosticsTests.cs (9)
1632AssertEx.SetEqual(expectedSymbolCallbacks, analyzer.AnalyzedSymbols.Select(s => s.Name).ToHashSet()); 1637AssertEx.SetEqual(expectedSyntaxNodeCallbacks, analyzer.AnalyzedSyntaxNodes.Select(s => s.ToString()).ToHashSet()); 1641AssertEx.SetEqual(expectedSyntaxNodeInsideBlockCallbacks, analyzer.AnalyzedSyntaxNodesInsideCodeBlock.Select(s => s.ToString()).ToHashSet()); 1646AssertEx.SetEqual(expectedOperationCallbacks, analyzer.AnalyzedOperations.Select(op => op.Syntax.ToString()).ToHashSet()); 1650AssertEx.SetEqual(expectedOperationInsideBlockCallbacks, analyzer.AnalyzedOperationsInsideOperationBlock.Select(op => op.Syntax.ToString()).ToHashSet()); 1662AssertEx.SetEqual(expectedBlockSymbolCallbacks, actualBlockSymbolCallbacks.Select(s => s.Name).ToHashSet()); 1667AssertEx.SetEqual(expectedSymbolStartSymbolCallbacks, analyzer.AnalyzedSymbolStartSymbols.Select(s => s.Name).ToHashSet()); 1669AssertEx.SetEqual(expectedSymbolStartSymbolCallbacks, analyzer.AnalyzedSymbolEndSymbols.Select(s => s.Name).ToHashSet()); 1673AssertEx.SetEqual(expectedSemanticModelTreeCallbacks, analyzer.AnalyzedSemanticModels.Select(s => s.SyntaxTree).ToHashSet());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxTests.cs (2)
310var returnedKindsInts = ((IEnumerable<SyntaxKind>)method.Invoke(null, null)).Select(static k => (int)k).ToHashSet(); 331var returnedKindsInts = SyntaxFacts.GetPreprocessorKeywordKinds().Select(static k => (int)k).ToHashSet();
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Symbols\WorkspaceSymbolsTests.cs (1)
24=> Assert.True(expected.ToHashSet().SetEquals(results));
Microsoft.DotNet.Build.Tasks.Feed (4)
src\PublishArtifactsInManifestBase.cs (4)
837AssetSelection.NonShippingOnly => packages.Where(p => p.NonShipping).ToHashSet(), 838AssetSelection.ShippingOnly => packages.Where(p => !p.NonShipping).ToHashSet(), 1061AssetSelection.NonShippingOnly => blobs.Where(p => p.NonShipping).ToHashSet(), 1062AssetSelection.ShippingOnly => blobs.Where(p => !p.NonShipping).ToHashSet(),
Microsoft.DotNet.Helix.Sdk (2)
CheckAzurePipelinesTestResults.cs (1)
223HashSet<string> expectedFailures = ExpectedTestFailures?.Select(i => i.GetMetadata("Identity")).ToHashSet() ?? new HashSet<string>();
ProvisioningProfileProvider.cs (1)
149rootLevelAppBundles = rootLevelAppBundles.Except(appBundlesWithProfile).ToHashSet();
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
75var singleFileHostIncludeFilenames = SingleFileHostIncludeFilenames?.ToHashSet();
Microsoft.DotNet.SignTool (1)
src\BatchSignUtil.cs (1)
119var toRepackSet = _batchData.FilesToSign.Where(x => x.ShouldRepack)?.Select(x => x.FullPath)?.ToHashSet();
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphQueryManager.cs (1)
124var tasks = graphQueries.Select(q => Task.Run(() => q.GetGraphAsync(solution, context, cancellationToken), cancellationToken)).ToHashSet();
MSBuild (1)
CollectionHelpers.cs (1)
55return a.ToHashSet().SetEquals(b);