150 references to ToDictionary
Aspire.Dashboard.Tests (3)
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (3)
23var resourcesByName = new ConcurrentDictionary<string, ResourceViewModel>(resources.ToDictionary(app => app.Name)); 66var resourcesByName = new ConcurrentDictionary<string, ResourceViewModel>(resources.ToDictionary(app => app.Name)); 147var resourcesByName = new ConcurrentDictionary<string, ResourceViewModel>(resources.ToDictionary(app => app.Name));
Aspire.Hosting (1)
Dcp\DcpExecutor.cs (1)
130_resourceState = new(model.Resources.ToDictionary(r => r.Name), _appResources);
Aspire.Hosting.Azure (1)
AzureProvisioningResource.cs (1)
237var distinctInfrastructureParametersLookup = distinctInfrastructureParameters.ToDictionary(p => p.BicepIdentifier);
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
228.ToDictionary(db => db.Name);
Aspire.Hosting.Azure.Sql (1)
AzureSqlExtensions.cs (1)
189.ToDictionary(db => db.Name);
Aspire.Hosting.Azure.Tests (2)
AzureInfrastructureExtensionsTests.cs (2)
56var infrastructureParametersLookup = infrastructureParameters.ToDictionary(p => p.BicepIdentifier); 95var infrastructureParametersLookup = infrastructureParameters.ToDictionary(p => p.BicepIdentifier);
Aspire.Templates.Tests (1)
TemplateTestsBase.cs (1)
182var expectedRowsTable = expectedResources.ToDictionary(r => r.Name);
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\TypeIndex.cs (1)
14private readonly Dictionary<TypeRef, TypeSpec> _index = typeSpecs.ToDictionary(spec => spec.TypeRef);
CSharpSyntaxGenerator (2)
AbstractFileWriter.cs (2)
33_nodeMap = tree.Types.OfType<Node>().ToDictionary(n => n.Name); 34_typeMap = tree.Types.ToDictionary(n => n.Name);
dotnet (1)
Commands\Workload\Install\WorkloadManifestUpdater.cs (1)
443var workloads = manifest.Workloads.Values.OfType<WorkloadDefinition>().ToDictionary(w => w.Id);
GenerateDocumentationAndConfigFiles (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
399var nodesToReplace = nodes != null ? nodes.ToDictionary(n => n.FullSpan) : []; 400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : []; 401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : []; 517nodesToReplace = retryAnnotations.GetAnnotatedNodes(root).ToDictionary(n => n.FullSpan); 523tokensToReplace = retryAnnotations.GetAnnotatedTokens(root).ToDictionary(t => t.FullSpan); 529triviaToReplace = retryAnnotations.GetAnnotatedTrivia(root).ToDictionary(t => t.FullSpan);
Microsoft.Build.Framework (3)
BuildCheck\BuildCheckTracingData.cs (1)
20: this(telemetryData.ToDictionary(data => data.RuleId), infrastructureTracingData)
Utilities\FrameworkLocationHelper.cs (2)
433private static readonly Lazy<IReadOnlyDictionary<Version, DotNetFrameworkSpec>> DotNetFrameworkSpecDict = new(() => DotNetFrameworkSpecs().ToDictionary(spec => spec.Version)); 434private static readonly Lazy<IReadOnlyDictionary<Version, VisualStudioSpec>> VisualStudioSpecDict = new(() => VisualStudioSpecs.Value.ToDictionary(spec => spec.Version));
Microsoft.CodeAnalysis.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
399var nodesToReplace = nodes != null ? nodes.ToDictionary(n => n.FullSpan) : []; 400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : []; 401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : []; 517nodesToReplace = retryAnnotations.GetAnnotatedNodes(root).ToDictionary(n => n.FullSpan); 523tokensToReplace = retryAnnotations.GetAnnotatedTokens(root).ToDictionary(t => t.FullSpan); 529triviaToReplace = retryAnnotations.GetAnnotatedTrivia(root).ToDictionary(t => t.FullSpan);
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
399var nodesToReplace = nodes != null ? nodes.ToDictionary(n => n.FullSpan) : []; 400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : []; 401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : []; 517nodesToReplace = retryAnnotations.GetAnnotatedNodes(root).ToDictionary(n => n.FullSpan); 523tokensToReplace = retryAnnotations.GetAnnotatedTokens(root).ToDictionary(t => t.FullSpan); 529triviaToReplace = retryAnnotations.GetAnnotatedTrivia(root).ToDictionary(t => t.FullSpan);
Microsoft.CodeAnalysis.CodeStyle (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
399var nodesToReplace = nodes != null ? nodes.ToDictionary(n => n.FullSpan) : []; 400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : []; 401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : []; 517nodesToReplace = retryAnnotations.GetAnnotatedNodes(root).ToDictionary(n => n.FullSpan); 523tokensToReplace = retryAnnotations.GetAnnotatedTokens(root).ToDictionary(t => t.FullSpan); 529triviaToReplace = retryAnnotations.GetAnnotatedTrivia(root).ToDictionary(t => t.FullSpan);
Microsoft.CodeAnalysis.Features (2)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (2)
312var oldProjectSourceGeneratedDocumentsById = oldProjectSourceGeneratedDocuments.ToDictionary(static document => document.Id); 314var newProjectSourceGeneratedDocumentsById = newProjectSourceGeneratedDocuments.ToDictionary(static document => document.Id);
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
399var nodesToReplace = nodes != null ? nodes.ToDictionary(n => n.FullSpan) : []; 400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : []; 401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : []; 517nodesToReplace = retryAnnotations.GetAnnotatedNodes(root).ToDictionary(n => n.FullSpan); 523tokensToReplace = retryAnnotations.GetAnnotatedTokens(root).ToDictionary(t => t.FullSpan); 529triviaToReplace = retryAnnotations.GetAnnotatedTrivia(root).ToDictionary(t => t.FullSpan);
Microsoft.CodeAnalysis.Workspaces (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
399var nodesToReplace = nodes != null ? nodes.ToDictionary(n => n.FullSpan) : []; 400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : []; 401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : []; 517nodesToReplace = retryAnnotations.GetAnnotatedNodes(root).ToDictionary(n => n.FullSpan); 523tokensToReplace = retryAnnotations.GetAnnotatedTokens(root).ToDictionary(t => t.FullSpan); 529triviaToReplace = retryAnnotations.GetAnnotatedTrivia(root).ToDictionary(t => t.FullSpan);
Microsoft.DotNet.ApiCompatibility (2)
Rules\EnumsMustMatch.cs (2)
59.ToDictionary(a => a.Name); 63.ToDictionary(a => a.Name);
Microsoft.DotNet.XliffTasks (1)
Tasks\TransformTemplates.cs (1)
35Dictionary<string, ITaskItem> resourceMap = UnstructuredResources.ToDictionary(item => item.GetMetadata("FullPath"));
Microsoft.ML.AutoML (1)
Experiment\SuggestedTrainer.cs (1)
80var spMap = SweepParams.ToDictionary(sp => sp.Name);
Microsoft.ML.AutoML.Tests (5)
SweeperTests.cs (5)
257var parameterSetNewHash = new ParameterSet(new IParameterValue[] { value1 }.ToDictionary(x => x.Name), hash: parameterSet.GetHashCode() + 1); 262var parameterSetMoreValues = new ParameterSet(new IParameterValue[] { value1, value2 }.ToDictionary(x => x.Name), hash: parameterSet.GetHashCode()); 267var parameterSetDifferentName = new ParameterSet(new IParameterValue[] { value2 }.ToDictionary(x => x.Name), hash: parameterSet.GetHashCode()); 272var parameterSetDifferentValue = new ParameterSet(new IParameterValue[] { stringValue1 }.ToDictionary(x => x.Name), hash: parameterSet.GetHashCode()); 277var parameterSetSameHash = new ParameterSet(new IParameterValue[] { value1 }.ToDictionary(x => x.Name), hash: parameterSet.GetHashCode());
Microsoft.ML.Data (12)
Prediction\CalibratorCatalog.cs (1)
124var outColumns = inputSchema.ToDictionary(x => x.Name);
Training\TrainerEstimatorBase.cs (1)
85var outColumns = inputSchema.ToDictionary(x => x.Name);
Transforms\ColumnConcatenatingEstimator.cs (1)
148var result = inputSchema.ToDictionary(x => x.Name);
Transforms\ColumnCopying.cs (1)
76var resultDic = inputSchema.ToDictionary(x => x.Name);
Transforms\FeatureContributionCalculationTransformer.cs (1)
349var result = inputSchema.ToDictionary(x => x.Name);
Transforms\Hashing.cs (1)
1956var result = inputSchema.ToDictionary(x => x.Name);
Transforms\KeyToValue.cs (1)
637var result = inputSchema.ToDictionary(x => x.Name);
Transforms\KeyToVector.cs (1)
821var result = inputSchema.ToDictionary(x => x.Name);
Transforms\Normalizer.cs (1)
347var result = inputSchema.ToDictionary(x => x.Name);
Transforms\TypeConverting.cs (1)
625var result = inputSchema.ToDictionary(x => x.Name);
Transforms\ValueMapping.cs (1)
93var resultDic = inputSchema.ToDictionary(x => x.Name);
Transforms\ValueToKeyMappingEstimator.cs (1)
181var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.FastTree (1)
TreeEnsembleFeaturizationEstimator.cs (1)
134var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.ImageAnalytics (5)
ImageGrayscale.cs (1)
249var result = inputSchema.ToDictionary(x => x.Name);
ImageLoader.cs (1)
440var result = inputSchema.ToDictionary(x => x.Name);
ImagePixelExtractor.cs (1)
812var result = inputSchema.ToDictionary(x => x.Name);
ImageResizer.cs (1)
512var result = inputSchema.ToDictionary(x => x.Name);
VectorToImageTransform.cs (1)
746var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
893var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.OnnxTransformer (2)
OnnxTransform.cs (2)
1052var result = inputSchema.ToDictionary(x => x.Name); 1053var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
818var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Recommender (1)
MatrixFactorizationTrainer.cs (1)
579var outColumns = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.StandardTrainers (3)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
647var outColumns = inputSchema.ToDictionary(x => x.Name);
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (1)
154var outColumns = inputSchema.ToDictionary(x => x.Name);
Standard\Simple\SimpleTrainers.cs (1)
314var outColumns = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
1033var result = inputSchema.ToDictionary(x => x.Name); 1034var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.TimeSeries (6)
IidChangePointDetector.cs (1)
273var resultDic = inputSchema.ToDictionary(x => x.Name);
IidSpikeDetector.cs (1)
249var resultDic = inputSchema.ToDictionary(x => x.Name);
SRCNNAnomalyDetector.cs (1)
281var resultDic = inputSchema.ToDictionary(x => x.Name);
SsaChangePointDetector.cs (1)
309var resultDic = inputSchema.ToDictionary(x => x.Name);
SSaForecasting.cs (1)
339var resultDic = inputSchema.ToDictionary(x => x.Name);
SsaSpikeDetector.cs (1)
288var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.TorchSharp (6)
AutoFormerV2\ObjectDetectionTrainer.cs (2)
444var outColumns = inputSchema.ToDictionary(x => x.Name); 545var outColumns = inputSchema.ToDictionary(x => x.Name);
NasBert\NasBertTrainer.cs (2)
323var outColumns = inputSchema.ToDictionary(x => x.Name); 433var outColumns = inputSchema.ToDictionary(x => x.Name);
Roberta\QATrainer.cs (2)
508var outColumns = inputSchema.ToDictionary(x => x.Name); 594var outColumns = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Transforms (22)
CountFeatureSelection.cs (1)
167var result = inputSchema.ToDictionary(x => x.Name);
CustomMappingTransformer.cs (1)
258var result = inputSchema.ToDictionary(x => x.Name);
Dracula\CountTableTransformer.cs (1)
323var result = inputSchema.ToDictionary(x => x.Name);
ExpressionTransformer.cs (1)
172var columnDictionary = inputSchema.ToDictionary(x => x.Name);
GcnTransform.cs (1)
913var result = inputSchema.ToDictionary(x => x.Name);
KeyToVectorMapping.cs (1)
470var result = inputSchema.ToDictionary(x => x.Name);
MissingValueDroppingTransformer.cs (1)
42var resultDic = inputSchema.ToDictionary(x => x.Name);
MissingValueIndicatorTransformer.cs (1)
537var result = inputSchema.ToDictionary(x => x.Name);
MissingValueReplacing.cs (1)
1037var result = inputSchema.ToDictionary(x => x.Name);
MutualInformationFeatureSelection.cs (1)
231var result = inputSchema.ToDictionary(x => x.Name);
RandomFourierFeaturizing.cs (1)
725var result = inputSchema.ToDictionary(x => x.Name);
StatefulCustomMappingTransformer.cs (1)
391var result = inputSchema.ToDictionary(x => x.Name);
Text\LdaTransform.cs (1)
1323var result = inputSchema.ToDictionary(x => x.Name);
Text\NgramHashingTransformer.cs (1)
1215var result = inputSchema.ToDictionary(x => x.Name);
Text\NgramTransform.cs (1)
1080var result = inputSchema.ToDictionary(x => x.Name);
Text\StopWordsRemovingTransformer.cs (2)
672var result = inputSchema.ToDictionary(x => x.Name); 1240var result = inputSchema.ToDictionary(x => x.Name);
Text\TextFeaturizingEstimator.cs (1)
642var result = inputSchema.ToDictionary(x => x.Name);
Text\TextNormalizing.cs (1)
581var result = inputSchema.ToDictionary(x => x.Name);
Text\TokenizingByCharacters.cs (1)
685var result = inputSchema.ToDictionary(x => x.Name);
Text\WordEmbeddingsExtractor.cs (1)
933var result = inputSchema.ToDictionary(x => x.Name);
Text\WordTokenizing.cs (1)
533var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (2)
1255var result = inputSchema.ToDictionary(x => x.Name); 1256var resultDic = inputSchema.ToDictionary(x => x.Name);
NuGet.Commands (2)
PackagesLockFileBuilder.cs (1)
24.ToDictionary(e => new PackageIdentity(e.Name, e.Version));
RestoreCommand\LockFileBuilder.cs (1)
51var previousLibraries = previousLockFile?.Libraries.ToDictionary(l => ValueTuple.Create(l.Name, l.Version));
NuGet.Configuration (1)
Settings\NuGetConfiguration.cs (1)
15internal IReadOnlyDictionary<string, SettingSection> Sections => Children.ToDictionary(c => c.ElementName);
NuGet.PackageManagement (1)
NuGetPackageManager.cs (1)
2430= buildIntegratedProjectsToUpdate.ToDictionary((project) => project.MSBuildProjectPath);
NuGet.Packaging (4)
RuntimeModel\RuntimeGraph.cs (4)
48: this(runtimes.ToDictionary(r => r.RuntimeIdentifier), EmptySupports) 53: this(EmptyRuntimes, supports.ToDictionary(r => r.Name)) 59runtimes.ToDictionary(r => r.RuntimeIdentifier), 60supports.ToDictionary(r => r.Name))
Roslyn.Diagnostics.Analyzers (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (6)
399var nodesToReplace = nodes != null ? nodes.ToDictionary(n => n.FullSpan) : []; 400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : []; 401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : []; 517nodesToReplace = retryAnnotations.GetAnnotatedNodes(root).ToDictionary(n => n.FullSpan); 523tokensToReplace = retryAnnotations.GetAnnotatedTokens(root).ToDictionary(t => t.FullSpan); 529triviaToReplace = retryAnnotations.GetAnnotatedTrivia(root).ToDictionary(t => t.FullSpan);
System.Composition.TypedParts (1)
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (1)
69.ToDictionary(d => ((PropertyImportSite)d.Site).Property);
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
874.ToDictionary(e => e.ButtonID);
vstest.console (3)
TestPlatformHelpers\TestRequestManager.cs (3)
213}).ToDictionary(k => k.Source!); 331}).ToDictionary(k => k.Source!); 498}).ToDictionary(k => k.Source!);
vstest.console.arm64 (3)
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (3)
213}).ToDictionary(k => k.Source!); 331}).ToDictionary(k => k.Source!); 498}).ToDictionary(k => k.Source!);