118 references to ToDictionary
Aspire.Dashboard.Tests (1)
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (1)
35var resourcesByName = new ConcurrentDictionary<string, ResourceViewModel>(applications.ToDictionary(app => app.Name));
Aspire.Hosting.Azure (1)
AzureProvisioningResource.cs (1)
75var distinctInfrastructureParametersLookup = distinctInfrastructureParameters.ToDictionary(p => p.BicepIdentifier);
Aspire.Hosting.Azure.Tests (2)
AzureBicepResourceTests.cs (2)
778var infrastructureParametersLookup = infrastructureParameters.ToDictionary(p => p.BicepIdentifier); 817var infrastructureParametersLookup = infrastructureParameters.ToDictionary(p => p.BicepIdentifier);
Aspire.Workload.Tests (1)
WorkloadTestsBase.cs (1)
153var expectedRowsTable = expectedResources.ToDictionary(r => r.Name);
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
236var partMap = partList.ToDictionary(x => x.RelativeName);
CSharpSyntaxGenerator (2)
AbstractFileWriter.cs (2)
33_nodeMap = tree.Types.OfType<Node>().ToDictionary(n => n.Name); 34_typeMap = tree.Types.ToDictionary(n => n.Name);
Microsoft.AspNetCore.Components.Server.Tests (4)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (4)
211}.ToDictionary(t => t.Name); 346}.ToDictionary(t => t.Name); 384}.ToDictionary(t => t.Name); 434}.ToDictionary(t => t.Name);
Microsoft.AspNetCore.DataProtection.Tests (2)
KeyManagement\XmlKeyManagerTests.cs (2)
963var keyDictWithRevocations = keyManager.GetAllKeys().ToDictionary(k => k.KeyId); 974var keyDictWithDeletions = keyManager.GetAllKeys().ToDictionary(k => k.KeyId);
Microsoft.AspNetCore.SignalR.Common.Tests (12)
Internal\Protocol\JsonHubProtocolTests.cs (1)
220}.ToDictionary(t => t.Name);
Internal\Protocol\JsonHubProtocolTestsBase.cs (4)
96}.ToDictionary(t => t.Name); 109}.ToDictionary(t => t.Name); 382}.ToDictionary(t => t.Name); 429}.ToDictionary(t => t.Name);
Internal\Protocol\MessagePackHubProtocolTestBase.cs (4)
211}.ToDictionary(t => t.Name); 346}.ToDictionary(t => t.Name); 384}.ToDictionary(t => t.Name); 434}.ToDictionary(t => t.Name);
Internal\Protocol\MessagePackHubProtocolTests.cs (2)
181}.ToDictionary(t => t.Name); 208}.ToDictionary(t => t.Name);
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (1)
106}.ToDictionary(t => t.Name);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
DefaultHubMessageSerializerTests.cs (1)
114}.ToDictionary(t => t.Name);
RedisProtocolTests.cs (4)
29}.ToDictionary(t => t.Name); 61}.ToDictionary(t => t.Name); 136}.ToDictionary(t => t.Name); 246}.ToDictionary(t => t.Name);
Microsoft.AspNetCore.SignalR.Tests (1)
UserAgentHeaderTest.cs (1)
28}.ToDictionary(t => t.Name);
Microsoft.Build (2)
FrameworkLocationHelper.cs (2)
398private static readonly Lazy<IReadOnlyDictionary<Version, DotNetFrameworkSpec>> DotNetFrameworkSpecDict = new(() => DotNetFrameworkSpecs().ToDictionary(spec => spec.Version)); 399private static readonly Lazy<IReadOnlyDictionary<Version, VisualStudioSpec>> VisualStudioSpecDict = new(() => VisualStudioSpecs.Value.ToDictionary(spec => spec.Version));
Microsoft.Build.Engine.UnitTests (2)
Evaluation\Evaluator_Tests.cs (2)
4828.ToDictionary(piv => piv.PropertyName); 4948.ToDictionary(piv => piv.PropertyName);
Microsoft.Build.Utilities.Core (2)
FrameworkLocationHelper.cs (2)
398private static readonly Lazy<IReadOnlyDictionary<Version, DotNetFrameworkSpec>> DotNetFrameworkSpecDict = new(() => DotNetFrameworkSpecs().ToDictionary(spec => spec.Version)); 399private static readonly Lazy<IReadOnlyDictionary<Version, VisualStudioSpec>> VisualStudioSpecDict = new(() => VisualStudioSpecs.Value.ToDictionary(spec => spec.Version));
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (4)
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);
Microsoft.CodeAnalysis.EditorFeatures (2)
Preview\AbstractPreviewFactoryService.cs (2)
228var oldProjectReferences = projectChanges.OldProject.ProjectReferences.ToDictionary(r => r.ProjectId); 229var newProjectReferences = projectChanges.NewProject.ProjectReferences.ToDictionary(r => r.ProjectId);
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (4)
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);
Microsoft.DotNet.XliffTasks (1)
Tasks\TransformTemplates.cs (1)
35Dictionary<string, ITaskItem> resourceMap = UnstructuredResources.ToDictionary(item => item.GetMetadata("FullPath"));
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionMetadata.cs (1)
88Dictionary<string, AIFunctionParameterMetadata>? parametersByName = _parametersByName ??= _parameters.ToDictionary(p => p.Name);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
ManifestEmbeddedFileProviderTests.cs (1)
392var root = provider.GetDirectoryContents("/").ToDictionary(f => f.Name);
Microsoft.ML.AutoML (1)
Experiment\SuggestedTrainer.cs (1)
80var spMap = SweepParams.ToDictionary(sp => sp.Name);
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)
634var 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)
1256var result = inputSchema.ToDictionary(x => x.Name); 1257var resultDic = inputSchema.ToDictionary(x => x.Name);
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);