22 references to ToDictionary
Aspire.Hosting (1)
src\Shared\SecretsStore.cs (1)
92.ToDictionary(i => i.Key, i => i.Value, StringComparer.OrdinalIgnoreCase);
dotnet-user-secrets (1)
Internal\SecretsStore.cs (1)
99.ToDictionary(i => i.Key, i => i.Value, StringComparer.OrdinalIgnoreCase);
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
743return _headerHandler.DecodedHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, _headerHandler.DecodedHeaders.Comparer); 760return _headerHandler.DecodedHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, _headerHandler.DecodedHeaders.Comparer);
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
893requestHeaders.Add(context.Request.Headers.ToDictionary(k => k.Key, k => k.Value, StringComparer.OrdinalIgnoreCase));
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentOptions.cs (1)
27.ToDictionary(f => f.Name, f => (TOptions)f.GetValue(null)!, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
336.ToDictionary(r => r.Name, r => r, StringComparer.Ordinal);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
743return _headerHandler.DecodedHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, _headerHandler.DecodedHeaders.Comparer); 760return _headerHandler.DecodedHeaders.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, _headerHandler.DecodedHeaders.Comparer);
Microsoft.Build (1)
BackEnd\Components\ProjectCache\ProxyTargets.cs (1)
38_proxyTargetToRealTargetMap = proxyTargetToRealTargetMap.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\EmbeddedLanguageCommentOptions.cs (1)
26.ToDictionary(f => f.Name, f => (TOptions)f.GetValue(null)!, StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestSyntaxTreeOptionsProvider.cs (1)
25x => x.Item2.ToDictionary(
Microsoft.CodeAnalysis.UnitTests (1)
Collections\ImmutableSegmentedDictionaryTest.cs (1)
154list.ToDictionary(k => k, v => v, null); // verifies BCL behavior is to not throw.
Microsoft.DotNet.Build.Tasks.Packaging (2)
GetLayoutFiles.cs (1)
45var frameworks = Frameworks.NullAsEmpty().ToDictionary(
HarvestPackage.cs (1)
522_pathsToInclude = PathsToInclude.NullAsEmpty().ToDictionary(i => NormalizePath(i.ItemSpec), i=> i, StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
70?.ToDictionary(
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\HardcodedValueFileSystem.cs (1)
27_fileContent = fileContent.ToDictionary(static x => x.Key.FullName, static y => y.Value, StringComparer.OrdinalIgnoreCase);
Microsoft.Gen.ContextualOptions (2)
ContextReceiver.cs (1)
51.ToDictionary<IGrouping<ISymbol?, TypeDeclarationSyntax>, INamedTypeSymbol, List<TypeDeclarationSyntax>>(
ContextualOptionsGenerator.cs (1)
43.ToDictionary<IGrouping<ISymbol?, TypeDeclarationSyntax>, INamedTypeSymbol, List<TypeDeclarationSyntax>>(
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenDictionary.cs (1)
58source.ToDictionary(keySelector, elementSelector, comparer).ToFrozenDictionary(comparer);
System.Linq (2)
System\Linq\ToCollection.cs (2)
138source.ToDictionary(vt => vt.Key, vt => vt.Value, comparer); 194ToDictionary(source, keySelector, elementSelector, null);