43 types derived from Dictionary
Aspire.Hosting (1)
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
107private class FileTree : Dictionary<string, FileTree>
Aspire.Hosting.Docker (1)
Resources\ServiceNodes\Swarm\LabelSpecs.cs (1)
13public sealed class LabelSpecs : Dictionary<string, string>
ConfigurationSchemaGenerator.Tests (1)
VariousTypes.cs (1)
136public sealed class TreeElement : Dictionary<string, TreeElement>;
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
914internal class MessageHeaderDescriptionTable : Dictionary<QName, MessageHeaderDescription>
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\JitInterface\UnboxingMethodDescFactory.cs (1)
9internal sealed class UnboxingMethodDescFactory : Dictionary<MethodDesc, UnboxingMethodDesc>
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\UnboxingMethodDescFactory.cs (1)
9internal sealed class UnboxingMethodDescFactory : Dictionary<MethodDesc, UnboxingMethodDesc>
Microsoft.AspNetCore.Mvc.Core (1)
SerializableError.cs (1)
14public sealed class SerializableError : Dictionary<string, object>
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.AspNetCore.Routing (1)
DecisionTree\DecisionTreeBuilder.cs (1)
216private sealed class Criterion : Dictionary<DecisionCriterionValue, List<ItemDescriptor<TItem>>>
Microsoft.Build (1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\PooledDictionary.cs (1)
15internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\MSBuildTask\PropertyDictionary.cs (1)
9internal class PropertyDictionary : Dictionary<string, object?>
Microsoft.CodeAnalysis (3)
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (2)
20private sealed class FrameworkAssemblyDictionary : Dictionary<string, FrameworkAssemblyDictionary.Value> 48private sealed class FrameworkRetargetingDictionary : Dictionary<FrameworkRetargetingDictionary.Key, List<FrameworkRetargetingDictionary.Value>>
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.RangeVariableMap.cs (1)
26private class RangeVariableMap : Dictionary<RangeVariableSymbol, ImmutableArray<string>>
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
17internal sealed class PooledDictionary<K, V> : Dictionary<K, V>, IDisposable
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.Maui (1)
PersistedState.cs (1)
5 public class PersistedState : Dictionary<string, string?>, IPersistedState
Microsoft.Maui.Controls (1)
Shell\ShellRouteParameters.cs (1)
9 internal class ShellRouteParameters : Dictionary<string, object>
Microsoft.Maui.Graphics (1)
Text\TextAttributes.cs (1)
5 public class TextAttributes : Dictionary<TextAttribute, string>, ITextAttributes
Microsoft.ML.FastTree (1)
TreeEnsemble\InternalTreeEnsemble.cs (1)
382internal class FeatureToGainMap : Dictionary<int, double>
Microsoft.ML.GenAI.Core (1)
Utility\Cache.cs (1)
26public class DynamicKVCache : Dictionary<int, (Tensor, Tensor)>, IKVCache
Microsoft.ML.Tokenizers (1)
Utils\StringSpanOrdinalKey.cs (1)
129internal sealed class Vocabulary : Dictionary<StringSpanOrdinalKey, (int, string)>;
Microsoft.TestPlatform.CommunicationUtilities (1)
Json\Jsonite\Jsonite.cs (1)
1341class JsonObject : Dictionary<string, object>
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Interfaces\XmlTestStoreParameters.cs (1)
16internal sealed class XmlTestStoreParameters : Dictionary<string, object>
NuGet.Protocol (1)
Model\CaseInsensitiveDictionary.cs (1)
9internal class CaseInsensitiveDictionary<TValue> : Dictionary<string, TValue>
PresentationFramework (2)
MS\Internal\Data\CommitManager.cs (1)
150private class Set<T> : Dictionary<T, object>, IEnumerable<T>
MS\Internal\Data\LiveShapingList.cs (1)
683private class DPFromPath : Dictionary<String, DependencyProperty>
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
System.CommandLine (1)
Parsing\SymbolResultTree.cs (1)
8internal sealed class SymbolResultTree : Dictionary<Symbol, SymbolResult>
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
248private sealed class ServiceCollection<T> : Dictionary<Type, T>
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\AsyncLocal.cs (1)
480private sealed class ManyElementAsyncLocalValueMap : Dictionary<IAsyncLocal, object?>, IAsyncLocalValueMap
System.Private.Xml (2)
System\Xml\Serialization\Compilation.cs (1)
707internal sealed class TempMethodDictionary : Dictionary<string, TempMethod>
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
54internal sealed class Graph<V> : Dictionary<V, List<V>?>
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
975internal class MessageHeaderDescriptionTable : Dictionary<QName, MessageHeaderDescription>
System.Windows.Forms (1)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObjectCollection.cs (1)
10internal class ComboBoxItemAccessibleObjectCollection : Dictionary<Entry, ComboBoxItemAccessibleObject>
System.Xaml (1)
System\Xaml\Schema\TypeReflector.cs (1)
1134internal class ThreadSafeDictionary<K, V> : Dictionary<K, V> where V : class
8030 instantiations of Dictionary
aspire (115)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
873arguments = new Dictionary<string, JsonElement>();
Bundles\BundleService.cs (1)
497var targets = new Dictionary<string, string?>(s_linkedLayoutDirectories.Length, StringComparer.Ordinal);
Certificates\CertificateService.cs (1)
67var environmentVariables = new Dictionary<string, string>();
Commands\AgentMcpCommand.cs (2)
233? new Dictionary<string, JsonElement>(a) 271? new Dictionary<string, JsonElement>(a)
Commands\AppHostLauncher.cs (1)
457var environment = new Dictionary<string, string> { [KnownConfigNames.CliRunDetached] = "true" };
Commands\DashboardRunCommand.cs (1)
129var environmentVariables = new Dictionary<string, string>
Commands\DescribeCommand.cs (1)
228var lastDisplayedContent = new Dictionary<string, object>(StringComparers.ResourceName);
Commands\ExportCommand.cs (1)
258var logLinesByResource = new Dictionary<string, List<string>>();
Commands\GroupedHelpWriter.cs (1)
49var grouped = new Dictionary<HelpGroup, List<BaseCommand>>();
Commands\McpCallCommand.cs (1)
84var dict = new Dictionary<string, JsonElement>();
Commands\ParseResultHelper.cs (2)
243var owners = new Dictionary<Token, SymbolResult>(ReferenceEqualityComparer.Instance); 343var knownOptions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\PipelineCommandBase.cs (4)
195EnvironmentVariables = new Dictionary<string, string> 244var env = new Dictionary<string, string> 719var steps = new Dictionary<string, string>(); 813var steps = new Dictionary<string, StepInfo>();
Commands\PsCommand.cs (3)
191var activeAppHosts = new Dictionary<string, AppHostDisplayInfo>(appHostKeyComparer); 192var lastJsonByAppHost = new Dictionary<string, string>(appHostKeyComparer); 225var nextActiveAppHosts = new Dictionary<string, AppHostDisplayInfo>(appHostKeyComparer);
Commands\RenderCommand.cs (2)
37private static readonly Dictionary<string, string> s_choices = new() 59private static readonly Dictionary<string, string> s_publishSummaryScenarioDescriptions = new(StringComparers.CommandName)
Commands\ResourceCommand.cs (3)
59private static readonly Dictionary<string, (string ProgressVerb, string BaseVerb, string PastTenseVerb)> s_wellKnownCommands = new(StringComparers.CommandName) 71private static readonly Dictionary<string, string> s_legacyCommandNameMap = new(StringComparers.CommandName) 281var options = new Dictionary<ResourceSnapshotCommandArgument, Option>();
Commands\RunCommand.cs (2)
331EnvironmentVariables = new Dictionary<string, string>(), 1150private readonly Dictionary<string, RpcResourceState> _resourceStates = new();
Commands\TelemetryTracesCommand.cs (1)
245var traceInfos = new Dictionary<string, (string Resource, string FirstSpanName, string TraceId, ulong? StartTimeNano, TimeSpan Duration, int SpanCount, bool HasError)>();
Configuration\AspireConfigFile.cs (2)
246var profiles = new Dictionary<string, AspireConfigProfile>(); 260profile.EnvironmentVariables = new Dictionary<string, string>();
Configuration\ConfigurationService.cs (3)
161var allConfig = new Dictionary<string, string>(); 172var localConfig = new Dictionary<string, string>(); 180var globalConfig = new Dictionary<string, string>();
Configuration\FlexibleBooleanDictionaryConverter.cs (1)
28var dictionary = new Dictionary<string, bool>();
Documentation\ApiDocs\ApiDocsIndexService.cs (2)
701var mergedItems = new Dictionary<string, ApiReferenceItem>(_itemsById, StringComparer.OrdinalIgnoreCase); 817? new Dictionary<string, ApiReferenceItem>(StringComparer.OrdinalIgnoreCase)
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (1)
66var slugCounts = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Documentation\Docs\DocsIndexService.cs (2)
232var documentFrequency = new Dictionary<string, int>(StringComparer.Ordinal); 266var idf = new Dictionary<string, float>(documentFrequency.Count, StringComparer.Ordinal);
Documentation\Docs\LlmsTxtParser.cs (1)
151var slugCounts = new Dictionary<string, int>(docBoundaries.Count, StringComparer.Ordinal);
DotNet\DotNetCliRunner.cs (5)
212var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 816var env = new Dictionary<string, string> 992var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 1083env: new Dictionary<string, string> 1145env: new Dictionary<string, string>
DotNet\ProcessExecutionFactory.cs (1)
214var envSnapshot = new Dictionary<string, string?>(startInfo.Environment, StringComparer.OrdinalIgnoreCase);
KnownFeatures.cs (1)
41private static readonly Dictionary<string, FeatureMetadata> s_featureMetadata = new()
Layout\LayoutProcessRunner.cs (2)
116? new Dictionary<string, string>(StringComparer.Ordinal) 117: new Dictionary<string, string>(environmentVariables, StringComparer.Ordinal);
Mcp\McpResourceToolRefreshService.cs (2)
22private Dictionary<string, ResourceToolEntry> _resourceToolMap = new(StringComparer.Ordinal); 79var refreshedMap = new Dictionary<string, ResourceToolEntry>(StringComparer.Ordinal);
NuGet\BundleNuGetPackageCache.cs (1)
190var environmentVariables = new Dictionary<string, string>();
NuGet\BundleNuGetService.cs (1)
184var environmentVariables = new Dictionary<string, string>();
Packaging\NuGetConfigMerger.cs (2)
212var urlToExistingKey = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 853var urlToExistingKey = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Packaging\PackagingService.cs (1)
689var versionsById = new Dictionary<string, SortedSet<string>>(StringComparer.OrdinalIgnoreCase);
Processes\IsolatedProcess.cs (1)
91=> _environment = new Dictionary<string, string?>(ProcessEnvironment.Comparer);
Processes\ProcessEnvironment.cs (1)
19var dict = new Dictionary<string, string?>(parent.Count, Comparer);
Profiling\ProfileCaptureEnvironment.cs (2)
29var previousValues = new Dictionary<string, string?>(StringComparers.EnvironmentVariableName); 69return new Dictionary<string, string?>(StringComparers.EnvironmentVariableName)
Profiling\ProfileCaptureService.cs (1)
151return new Dictionary<string, string>
Projects\AppHostCandidateFinder.cs (2)
120return new([], new Dictionary<string, int>(StringComparer.Ordinal)); 395return new([], new Dictionary<string, int>(StringComparer.Ordinal));
Projects\AppHostProjectContext.cs (1)
64public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Projects\AppHostServerSession.cs (2)
182? new Dictionary<string, string>() 183: new Dictionary<string, string>(_callerEnvironmentVariables);
Projects\DefaultLanguageDiscovery.cs (1)
75private static readonly Dictionary<string, string> s_experimentalFeatureFlags = new(StringComparer.OrdinalIgnoreCase)
Projects\DotNetAppHostProject.cs (3)
1457var env = new Dictionary<string, string>(context.EnvironmentVariables); 1808var directEnv = new Dictionary<string, string>(); 2351var env = new Dictionary<string, string>(context.EnvironmentVariables);
Projects\DotNetBasedAppHostServerProject.cs (1)
407var scaffold = new Dictionary<string, string>(StringComparer.Ordinal)
Projects\GuestAppHostProject.cs (6)
409certEnvVars = new Dictionary<string, string>(certResult.EnvironmentVariables); 806var envVars = new Dictionary<string, string>(); 838var environmentVariables = new Dictionary<string, string>(contextEnvironmentVariables); 967var result = new Dictionary<string, string>(); 1022var result = new Dictionary<string, string>(); 1723var convertedFiles = new Dictionary<string, string>(StringComparer.Ordinal);
Projects\GuestRuntime.cs (3)
91var environmentVariables = commandSpec.EnvironmentVariables ?? new Dictionary<string, string>(); 131var environmentVariables = _spec.InstallDependencies.EnvironmentVariables ?? new Dictionary<string, string>(); 563var mergedEnvironment = new Dictionary<string, string>(environmentVariables);
Projects\IAppHostProject.cs (1)
109public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Projects\PrebuiltAppHostServer.cs (1)
1595var packageFingerprints = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Projects\ProjectUpdater.cs (3)
1327var mappings = new Dictionary<string, List<string>>(); 1468public Dictionary<string, List<string>> OriginalMappings { get; set; } = new(); 1469public Dictionary<string, List<string>> ProposedMappings { get; set; } = new();
src\Shared\ConsoleLogs\PromptContext.cs (1)
11private readonly Dictionary<string, string> _promptValueMap = new Dictionary<string, string>();
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
325var spansByTraceId = new Dictionary<string, List<OtlpSpanDto>>(StringComparer.Ordinal);
src\Shared\EnumerableExtensions.cs (1)
19var dictionary = new Dictionary<TKey, TValue>();
src\Shared\Export\ExportArchive.cs (5)
24public Dictionary<string, ResourceJson> Resources { get; } = new(); 30public Dictionary<string, List<string>> ConsoleLogs { get; } = new(); 36public Dictionary<string, OtlpTelemetryDataJson> StructuredLogs { get; } = new(); 42public Dictionary<string, OtlpTelemetryDataJson> Traces { get; } = new(); 48public Dictionary<string, OtlpTelemetryDataJson> Metrics { get; } = new();
src\Shared\IntegrationPackageProbeManifest.cs (4)
46var managedLookup = new Dictionary<string, IntegrationPackageManagedAssembly>(StringComparer.OrdinalIgnoreCase); 63var nativeLookup = new Dictionary<string, IntegrationPackageNativeLibrary>(StringComparer.OrdinalIgnoreCase); 270var lookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 282var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
src\Shared\UserSecrets\SecretsStore.cs (4)
118return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 124return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 130return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 136var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Telemetry\InternalMicrosoftDetector.cs (1)
823var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Telemetry\ProfilingTelemetry.cs (1)
1107var baggage = new Dictionary<string, string>();
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
58var conditions = new Dictionary<string, bool>
Utils\CommandPathResolver.cs (1)
11private static readonly Dictionary<string, CommandMetadata> s_commandMetadata = new(StringComparer.OrdinalIgnoreCase)
Utils\ConsoleActivityLogger.cs (4)
30private readonly Dictionary<string, string> _stepColors = new(); 31private readonly Dictionary<string, ActivityState> _stepStates = new(); // Track final state per step for summary 32private readonly Dictionary<string, string> _displayNames = new(); // Optional friendly display names for step keys 529var childrenByParent = new Dictionary<string, List<StepDurationRecord>>(StringComparers.CommandName);
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
249var environmentVariables = new Dictionary<string, string>();
Utils\EnvironmentChecker\OperatingSystemCheck.cs (1)
109var values = new Dictionary<string, string>(StringComparer.Ordinal);
Utils\FileSystemHelper.cs (3)
149var result = new Dictionary<string, string>(comparer); 157var segmentsMap = new Dictionary<string, string[]>(comparer); 158var depthMap = new Dictionary<string, int>(comparer);
Utils\ResourceColorMap.cs (1)
20internal static readonly Dictionary<string, string> s_hexColors = new()
aspire-managed (6)
NuGet\Commands\NuGetPackageAssetResolver.cs (2)
228return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 231var overrides = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\Shared\IntegrationPackageProbeManifest.cs (4)
46var managedLookup = new Dictionary<string, IntegrationPackageManagedAssembly>(StringComparer.OrdinalIgnoreCase); 63var nativeLookup = new Dictionary<string, IntegrationPackageNativeLibrary>(StringComparer.OrdinalIgnoreCase); 270var lookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 282var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Acquisition.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Azure.AI.OpenAI.Tests (2)
AspireAzureAIOpenAIExtensionsTests.cs (2)
205builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 231builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Azure.Messaging.EventHubs.Tests (2)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (2)
78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
AspireAzureEFPostgreSqlExtensionsTests.cs (2)
317builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 347builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Azure.Security.KeyVault.Tests (2)
MockTransport.cs (2)
78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Cli.EndToEnd.Tests (9)
Helpers\CliE2ETestHelpers.cs (1)
588var buildArgs = new Dictionary<string, string>();
McpDocsE2ETests.cs (8)
95new Dictionary<string, object?> { ["query"] = "redis" }, 116new Dictionary<string, object?> { ["query"] = "aspire", ["topK"] = 3 }, 137new Dictionary<string, object?> { ["query"] = "redis" }, 154new Dictionary<string, object?> { ["slug"] = slug }, 172new Dictionary<string, object?> { ["query"] = "" }, 203new Dictionary<string, object?> { ["slug"] = slug }, 221new Dictionary<string, object?> { ["slug"] = "nonexistent-doc-that-does-not-exist" }, 252new Dictionary<string, object?>
Aspire.Cli.Tests (609)
Acquisition\IdentityResolverTests.cs (15)
31environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = "pr-12345" }); 89environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = string.Empty }); 125environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = "99.0.0-test" }); 140environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = version }); 159environmentVariables: new Dictionary<string, string?> { [IdentityResolver.VersionEnvVar] = version }); 186environmentVariables: new Dictionary<string, string?> { [IdentityResolver.CommitEnvVar] = commit }); 202environmentVariables: new Dictionary<string, string?> { [IdentityResolver.CommitEnvVar] = commit }); 215environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = url }); 230environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = url }); 244environmentVariables: new Dictionary<string, string?> { [IdentityResolver.ChannelEnvVar] = "totally-made-up" }, 273environmentVariables: new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = "http://env/v3/index.json" }, 314environmentVariables: new Dictionary<string, string?> { [IdentityResolver.PackagesEnvVar] = "/env/packages" }, 371var sidecar = new Dictionary<string, string> 380environmentVariables = new Dictionary<string, string?> 456environmentVariables: new Dictionary<string, string?>
Acquisition\InstallationDiscoveryDiscoverAllTests.cs (14)
133var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 174var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 222var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 253var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 281var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 305var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 331var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 371var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 405var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 440var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 476var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 767var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 797var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult> 864var probe = new FakePeerInstallProbe(new Dictionary<string, PeerProbeResult>
Agents\AspireSkillsBundleTests.cs (13)
36await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 63await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 95await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 124await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 311await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 366await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 395await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 466await CreateBundleAsync(bundleDirectory, new Dictionary<string, string> 491new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() }, 731new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() }, 754new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() }, 777new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() }, 800new Dictionary<string, string> { ["SKILL.md"] = CreateSkillFileContent() });
Agents\AspireSkillsInstallerTests.cs (7)
268.AddInMemoryCollection(new Dictionary<string, string?> 606.AddInMemoryCollection(new Dictionary<string, string?> 653.AddInMemoryCollection(new Dictionary<string, string?> 693.AddInMemoryCollection(new Dictionary<string, string?> 763.AddInMemoryCollection(new Dictionary<string, string?> 835.AddInMemoryCollection(new Dictionary<string, string?> 1797.AddInMemoryCollection(new Dictionary<string, string?>
Agents\CopilotCliAgentEnvironmentScannerTests.cs (1)
171var vsCodeEnvironment = new TestEnvironment(new Dictionary<string, string?> { ["TERM_PROGRAM"] = "vscode" });
Agents\PlaywrightCliInstallerTests.cs (3)
483.AddInMemoryCollection(new Dictionary<string, string?> 528.AddInMemoryCollection(new Dictionary<string, string?> 567.AddInMemoryCollection(new Dictionary<string, string?>
Agents\TelemetryHookConfiguratorTests.cs (1)
50var configurator = CreateConfigurator(workspace, home, new Dictionary<string, string?>
Agents\TelemetryHookScriptTests.cs (11)
34new() { ["COPILOT_CLI"] = "1" }); 93new() { ["COPILOT_CLI"] = "1", ["ASPIRE_CLI_TELEMETRY_OPTOUT"] = "1" }); 169new() { ["COPILOT_CLI"] = "1" }); 187new() { ["COPILOT_CLI"] = "1" }); 202new() { ["COPILOT_CLI"] = "1" }); 216new() { ["COPILOT_CLI"] = "1" }); 257new() { ["COPILOT_CLI"] = "1", ["ASPIRE_CLI_TELEMETRY_OPTOUT"] = "true" }); 339new() { ["COPILOT_CLI"] = "1" }); 356new() { ["COPILOT_CLI"] = "1" }); 370new() { ["COPILOT_CLI"] = "1" }); 435var environment = new Dictionary<string, string?>(StringComparer.Ordinal)
Backchannel\AppHostCliBackchannelTests.cs (2)
19var environment = new TestEnvironment(new Dictionary<string, string?> 54var environment = new TestEnvironment(new Dictionary<string, string?>
Backchannel\BackchannelJsonSerializerContextTests.cs (1)
49var payload = new Dictionary<string, JsonElement>(StringComparer.Ordinal)
Backchannel\ExtensionBackchannelTests.cs (1)
155.AddInMemoryCollection(new Dictionary<string, string?>
Backchannel\ResourceSnapshotMapperTests.cs (2)
66Options = new Dictionary<string, string?> { ["primary"] = "Primary" }, 342Properties = new Dictionary<string, JsonNode?>
Caching\AppHostInfoDiskCacheTests.cs (2)
27.AddInMemoryCollection(processConfigurationValues ?? new Dictionary<string, string?>()) 220var cache = CreateCacheWithRealConfigurationService(workspace, new Dictionary<string, string?>
Caching\DiskCacheTests.cs (1)
17var values = new Dictionary<string,string?>();
Certificates\CertificateServiceTests.cs (1)
556var envVars = new Dictionary<string, string?>
Certificates\UnixCertificateManagerTests.cs (6)
33var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 80var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 115var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 150var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 185var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 220var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?>
CliBootstrapTests.cs (1)
174var envVars = new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = "http://localhost:5000/v3/index.json" };
Commands\AddCommandTests.cs (1)
1546var exactMatchQueryCounts = new Dictionary<string, int>(StringComparer.Ordinal);
Commands\AppHostLauncherTests.cs (4)
1308var environment = env is null ? null : new Dictionary<string, string>(env); 1430?? new Dictionary<string, string?>(); 1469public IReadOnlyDictionary<string, string?> EnvironmentVariables => new Dictionary<string, string?>(); 1542public IReadOnlyDictionary<string, string?> EnvironmentVariables => new Dictionary<string, string?>();
Commands\AppHostStartupTimeoutTests.cs (3)
16.AddInMemoryCollection(new Dictionary<string, string?> 41.AddInMemoryCollection(new Dictionary<string, string?> 59.AddInMemoryCollection(new Dictionary<string, string?>
Commands\ConfigCommandTests.cs (3)
1038return Task.FromResult(new Dictionary<string, string> 1047return Task.FromResult(new Dictionary<string, string> 1055return Task.FromResult(new Dictionary<string, string>());
Commands\DashboardRunCommandTests.cs (9)
101var environment = CreateEnvironment(new Dictionary<string, string?> 115var environment = CreateEnvironment(new Dictionary<string, string?>()); 126var environment = CreateEnvironment(new Dictionary<string, string?>()); 498var environment = CreateEnvironment(new Dictionary<string, string?>()); 511var environment = CreateEnvironment(new Dictionary<string, string?> 528var environment = CreateEnvironment(new Dictionary<string, string?>()); 542var environment = CreateEnvironment(new Dictionary<string, string?> 560var environment = CreateEnvironment(new Dictionary<string, string?> 576var environment = CreateEnvironment(new Dictionary<string, string?>());
Commands\DeployCommandTests.cs (2)
65new Dictionary<string, string> 144new Dictionary<string, string>
Commands\DescribeCommandTests.cs (1)
461Properties = new Dictionary<string, JsonNode?>
Commands\DocsCommandTests.cs (2)
195options.DocsIndexServiceFactory = _ => new TestDocsIndexService(new Dictionary<string, DocsContent> 259_documents = documents ?? new Dictionary<string, DocsContent>
Commands\ExportCommandTests.cs (12)
43telemetryEndpoints: new Dictionary<string, string> 120telemetryEndpoints: new Dictionary<string, string> 323telemetryEndpoints: new Dictionary<string, string> 443telemetryEndpoints: new Dictionary<string, string> 500telemetryEndpoints: new Dictionary<string, string> 558telemetryEndpoints: new Dictionary<string, string> 608telemetryEndpoints: new Dictionary<string, string> 652telemetryEndpoints: new Dictionary<string, string> 696telemetryEndpoints: new Dictionary<string, string> 738telemetryEndpoints: new Dictionary<string, string> 774telemetryEndpoints: new Dictionary<string, string> 821telemetryEndpoints: new Dictionary<string, string>(),
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1011private readonly Dictionary<string, TaskCompletionSource> _promptCompletionSources = new();
Commands\ResourceCommandTests.cs (8)
996options: new Dictionary<string, string?> 1032options: new Dictionary<string, string?> 1287options: new Dictionary<string, string?> 1738options: new Dictionary<string, string?> 1859CreateArgument("item", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["banana"] = "Banana" }), 1868CreateArgument("category", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["fruit"] = "Fruit" }), 1900CreateArgument("category", inputType: "Choice", required: true, options: new Dictionary<string, string?> { ["fruit"] = "Fruit" }), 2254options: new Dictionary<string, string?>
Commands\RunCommandTests.cs (7)
3241env: new Dictionary<string, string>(), 3285env: new Dictionary<string, string>(), 3333env: new Dictionary<string, string>(), 3376env: new Dictionary<string, string>(), 3420env: new Dictionary<string, string>(), 3464env: new Dictionary<string, string>(), 3509env: new Dictionary<string, string>(),
Commands\StartCommandTests.cs (1)
742public IReadOnlyDictionary<string, string?> EnvironmentVariables => new Dictionary<string, string?>();
Commands\TelemetryLogsCommandTests.cs (3)
66telemetryEndpoints: new Dictionary<string, string> 101telemetryEndpoints: new Dictionary<string, string> 132telemetryEndpoints: new Dictionary<string, string>
Commands\TelemetrySpansCommandTests.cs (2)
65telemetryEndpoints: new Dictionary<string, string> 100telemetryEndpoints: new Dictionary<string, string>
Commands\TelemetryTracesCommandTests.cs (2)
262telemetryEndpoints: new Dictionary<string, string> 313telemetryEndpoints: new Dictionary<string, string>
Commands\UpdateCommandTests.cs (1)
3398return new Dictionary<string, string?>
Commands\VsCodeExtensionCheckTests.cs (12)
18var environment = new TestEnvironment(new Dictionary<string, string?>()); 34var environment = new TestEnvironment(new Dictionary<string, string?> 64var environment = new TestEnvironment(new Dictionary<string, string?> 93var environment = new TestEnvironment(new Dictionary<string, string?> 118var environment = new TestEnvironment(new Dictionary<string, string?> 139var environment = new TestEnvironment(new Dictionary<string, string?> 160var environment = new TestEnvironment(new Dictionary<string, string?>()); 174var environment = new TestEnvironment(new Dictionary<string, string?>()); 190var environment = new TestEnvironment(new Dictionary<string, string?> 209var environment = new TestEnvironment(new Dictionary<string, string?> 231var environment = new TestEnvironment(new Dictionary<string, string?> 252var environment = new TestEnvironment(new Dictionary<string, string?>
Commands\WslEnvironmentCheckTests.cs (1)
548var environmentVariables = new Dictionary<string, string?>();
Configuration\AspireConfigFileTests.cs (6)
290Packages = new Dictionary<string, string> { ["Aspire.Hosting.Redis"] = "13.1.0" } 303Packages = new Dictionary<string, string> 343Packages = new Dictionary<string, string> 404Features = new Dictionary<string, bool> 427Profiles = new Dictionary<string, AspireConfigProfile> 432EnvironmentVariables = new Dictionary<string, string>
Configuration\IntegrationReferenceTests.cs (4)
38Packages = new Dictionary<string, string> 65Packages = new Dictionary<string, string> 84Packages = new Dictionary<string, string> 103Packages = new Dictionary<string, string>
Configuration\KnownFeaturesTests.cs (1)
86var configData = new Dictionary<string, string?>();
DotNet\DotNetCliRunnerTests.cs (33)
79env: new Dictionary<string, string>(), 197new Dictionary<string, string>(), 238new Dictionary<string, string>(), 415configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 508.AddInMemoryCollection(new Dictionary<string, string?> 545.AddInMemoryCollection(new Dictionary<string, string?> 601env: new Dictionary<string, string>(), 642env: new Dictionary<string, string>(), 676var existingEnv = new Dictionary<string, string> 740env: new Dictionary<string, string>(), 793env: new Dictionary<string, string> 879env: new Dictionary<string, string>(), 921env: new Dictionary<string, string>(), 957var userEnv = new Dictionary<string, string> 1020env: new Dictionary<string, string> 1075env: new Dictionary<string, string> 1113env: new Dictionary<string, string> 1155env: new Dictionary<string, string> 1547env: new Dictionary<string, string>(), 1593env: new Dictionary<string, string>(), 1628env: new Dictionary<string, string>(), 1665env: new Dictionary<string, string>(), 1708env: new Dictionary<string, string>(), 1753env: new Dictionary<string, string>(), 1805env: new Dictionary<string, string>(), 1854env: new Dictionary<string, string>(), 1902env: new Dictionary<string, string>(), 2513env: new Dictionary<string, string>(), 2551env: new Dictionary<string, string>(), 2590env: new Dictionary<string, string>(), 2630env: new Dictionary<string, string>(), 2667env: new Dictionary<string, string>(), 2689?? new Dictionary<string, string?>();
DotNet\ProcessExecutionDetachedTests.cs (4)
94environment: new Dictionary<string, string> 163environment: new Dictionary<string, string> 283environment: new Dictionary<string, string> 341environment: new Dictionary<string, string>
Layout\LayoutProcessRunnerTests.cs (2)
42var callerEnv = new Dictionary<string, string> { ["ASPIRE_CLI_PID"] = "999" }; 84var callerEnv = new Dictionary<string, string> { ["ASPIRE_CLI_PID"] = "999" };
Mcp\ApiDocs\ApiDocsFetcherTests.cs (2)
104private readonly Dictionary<string, string> _content = new(StringComparer.OrdinalIgnoreCase); 105private readonly Dictionary<string, string?> _etags = new(StringComparer.OrdinalIgnoreCase);
Mcp\ApiDocs\ApiDocsIndexServiceTests.cs (12)
158new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 244.AddInMemoryCollection(new Dictionary<string, string?> 257new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 288.AddInMemoryCollection(new Dictionary<string, string?> 301new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 328.AddInMemoryCollection(new Dictionary<string, string?> 342new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 442new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 493new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 543new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 621private readonly Dictionary<string, string> _content = new(StringComparer.OrdinalIgnoreCase); 622private readonly Dictionary<string, string?> _etags = new(StringComparer.OrdinalIgnoreCase);
Mcp\ApiDocs\ApiDocsSourceConfigurationTests.cs (1)
15.AddInMemoryCollection(new Dictionary<string, string?>
Mcp\ApiDocs\ApiMemberMarkdownParserTests.cs (2)
44new Dictionary<string, ApiReferenceItem>(StringComparer.OrdinalIgnoreCase) 92new Dictionary<string, ApiReferenceItem>(StringComparer.OrdinalIgnoreCase)
Mcp\Docs\DocsIndexServiceTests.cs (1)
466.AddInMemoryCollection(new Dictionary<string, string?>
Mcp\Docs\DocsSourceConfigurationTests.cs (1)
15.AddInMemoryCollection(new Dictionary<string, string?>
Mcp\E2E\McpDocsE2ETests.cs (8)
83new Dictionary<string, object?> { ["query"] = "redis" }); 102new Dictionary<string, object?> { ["query"] = "aspire", ["topK"] = 3 }); 120new Dictionary<string, object?> { ["query"] = "redis" }); 136new Dictionary<string, object?> { ["slug"] = slug }); 152new Dictionary<string, object?> { ["query"] = "" }); 180new Dictionary<string, object?> { ["slug"] = slug }); 196new Dictionary<string, object?> { ["slug"] = "nonexistent-doc-that-does-not-exist" }); 224new Dictionary<string, object?>
Mcp\ExcludeFromMcpTests.cs (15)
43Properties = new Dictionary<string, JsonNode?> 58Properties = new Dictionary<string, JsonNode?> 73Properties = new Dictionary<string, JsonNode?> 88Properties = new Dictionary<string, JsonNode?> 118Properties = new Dictionary<string, JsonNode?> 151Properties = new Dictionary<string, JsonNode?> 183Properties = new Dictionary<string, JsonNode?> 194var arguments = new Dictionary<string, JsonElement> 228var arguments = new Dictionary<string, JsonElement> 255Properties = new Dictionary<string, JsonNode?> 286var arguments = new Dictionary<string, JsonElement> 323var arguments = new Dictionary<string, JsonElement> 360var arguments = new Dictionary<string, JsonElement> 409var arguments = new Dictionary<string, JsonElement> 449Properties = new Dictionary<string, JsonNode?>
Mcp\ListConsoleLogsToolTests.cs (13)
22var arguments = new Dictionary<string, JsonElement> 61var arguments = new Dictionary<string, JsonElement> 96var arguments = new Dictionary<string, JsonElement> 130var arguments = new Dictionary<string, JsonElement> 160var arguments = new Dictionary<string, JsonElement> 189var arguments = new Dictionary<string, JsonElement> 220var arguments = new Dictionary<string, JsonElement> 254var arguments = new Dictionary<string, JsonElement> 286var arguments = new Dictionary<string, JsonElement> 320var arguments = new Dictionary<string, JsonElement> 355var arguments = new Dictionary<string, JsonElement> 392var arguments = new Dictionary<string, JsonElement> 429var arguments = new Dictionary<string, JsonElement>
Mcp\ListStructuredLogsToolTests.cs (2)
324var arguments = new Dictionary<string, JsonElement> 463var arguments = new Dictionary<string, JsonElement>
Mcp\ListTracesToolTests.cs (3)
309var arguments = new Dictionary<string, JsonElement> 412var arguments = new Dictionary<string, JsonElement> 505var arguments = new Dictionary<string, JsonElement>
Npm\AspireJsLauncherTests.cs (1)
255var packageMap = new Dictionary<string, string> { [rid] = ridPackageName };
NuGet\NuGetSignatureVerificationEnablerTests.cs (8)
20var envVars = new Dictionary<string, string>(); 37var envVars = new Dictionary<string, string>(); 39var environment = CreateEnvironment(new Dictionary<string, string?>()); // empty env — no user override 55var envVars = new Dictionary<string, string>(); 57var environment = CreateEnvironment(new Dictionary<string, string?> 76var envVars = new Dictionary<string, string>(); 78var environment = CreateEnvironment(new Dictionary<string, string?> 97var envVars = new Dictionary<string, string>();
Packaging\PackagingServiceTests.cs (33)
64.AddInMemoryCollection(new Dictionary<string, string?> 274.AddInMemoryCollection(new Dictionary<string, string?> 363var settings = new Dictionary<string, string?>(); 429.AddInMemoryCollection(new Dictionary<string, string?> 461.AddInMemoryCollection(new Dictionary<string, string?> 491.AddInMemoryCollection(new Dictionary<string, string?> 517.AddInMemoryCollection(new Dictionary<string, string?> 544.AddInMemoryCollection(new Dictionary<string, string?> 571.AddInMemoryCollection(new Dictionary<string, string?> 597.AddInMemoryCollection(new Dictionary<string, string?> 638.AddInMemoryCollection(new Dictionary<string, string?> 668.AddInMemoryCollection(new Dictionary<string, string?> 723.AddInMemoryCollection(new Dictionary<string, string?> 847.AddInMemoryCollection(new Dictionary<string, string?> 890.AddInMemoryCollection(new Dictionary<string, string?> 922.AddInMemoryCollection(new Dictionary<string, string?> 954.AddInMemoryCollection(new Dictionary<string, string?> 984.AddInMemoryCollection(new Dictionary<string, string?> 1014.AddInMemoryCollection(new Dictionary<string, string?> 1044.AddInMemoryCollection(new Dictionary<string, string?> 1074.AddInMemoryCollection(new Dictionary<string, string?> 1101.AddInMemoryCollection(new Dictionary<string, string?> 1159.AddInMemoryCollection(new Dictionary<string, string?> 1250.AddInMemoryCollection(new Dictionary<string, string?> 1285.AddInMemoryCollection(new Dictionary<string, string?> 1321.AddInMemoryCollection(new Dictionary<string, string?> 1356.AddInMemoryCollection(new Dictionary<string, string?> 1400.AddInMemoryCollection(new Dictionary<string, string?> 1432.AddInMemoryCollection(new Dictionary<string, string?> 1462.AddInMemoryCollection(new Dictionary<string, string?> 1822.AddInMemoryCollection(new Dictionary<string, string?> 1874.AddInMemoryCollection(new Dictionary<string, string?> 1925.AddInMemoryCollection(new Dictionary<string, string?>
Processes\LauncherLivenessMonitorTests.cs (2)
54.AddInMemoryCollection(new Dictionary<string, string?> 98.AddInMemoryCollection(new Dictionary<string, string?>
Processes\OrphanDetectionEnvironmentTests.cs (10)
15var environment = new Dictionary<string, string>(StringComparer.Ordinal); 27var environment = new Dictionary<string, string>(StringComparer.Ordinal); 40var environment = new Dictionary<string, string>(StringComparer.Ordinal) 58var environment = new Dictionary<string, string>(StringComparer.Ordinal); 72var environment = new Dictionary<string, string>(StringComparer.Ordinal) 85var environment = new Dictionary<string, string?>(StringComparer.Ordinal); 96var environment = new Dictionary<string, string?>(StringComparer.Ordinal); 108var environment = new Dictionary<string, string?>(StringComparer.Ordinal) 125var environment = new Dictionary<string, string?>(StringComparer.Ordinal) 142var environment = new Dictionary<string, string?>(StringComparer.Ordinal)
ProfileCaptureOptionsTests.cs (1)
194var environmentVariables = new Dictionary<string, string>();
ProgramTests.cs (1)
47services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
Projects\AppHostEnvironmentDefaultsTests.cs (6)
14var env = new Dictionary<string, string>(); 25var env = new Dictionary<string, string> 41var env = new Dictionary<string, string> 60var env = new Dictionary<string, string> 76var env = new Dictionary<string, string>(); 77var inherited = new Dictionary<string, string?>
Projects\AppHostServerSessionTests.cs (3)
32var environmentVariables = new Dictionary<string, string> 55var environmentVariables = new Dictionary<string, string> 611: new Dictionary<string, string>(environmentVariables);
Projects\DotNetAppHostProjectTests.cs (64)
217var env = new Dictionary<string, string>(); 222inheritedEnvironmentVariables: new Dictionary<string, string?>()); 233var env = new Dictionary<string, string>(); 238inheritedEnvironmentVariables: new Dictionary<string, string?>()); 249var env = new Dictionary<string, string>(); 254inheritedEnvironmentVariables: new Dictionary<string, string?>(), 282var env = new Dictionary<string, string>(); 287inheritedEnvironmentVariables: new Dictionary<string, string?>()); 300var env = new Dictionary<string, string>(); 305inheritedEnvironmentVariables: new Dictionary<string, string?> 342EnvironmentVariables = new Dictionary<string, string>() 375EnvironmentVariables = new Dictionary<string, string>() 470EnvironmentVariables = new Dictionary<string, string>() 519EnvironmentVariables = new Dictionary<string, string> 539var environment = new TestEnvironment(new Dictionary<string, string?> 578EnvironmentVariables = new Dictionary<string, string>() 602var environmentVariables = new Dictionary<string, string> 641EnvironmentVariables = useExplicitOverlay ? environmentVariables : new Dictionary<string, string>() 685EnvironmentVariables = new Dictionary<string, string>() 731EnvironmentVariables = new Dictionary<string, string>() 791EnvironmentVariables = new Dictionary<string, string>() 854EnvironmentVariables = new Dictionary<string, string>() 912EnvironmentVariables = new Dictionary<string, string>() 966EnvironmentVariables = new Dictionary<string, string> 1066EnvironmentVariables = new Dictionary<string, string> 1150EnvironmentVariables = new Dictionary<string, string> 1205EnvironmentVariables = new Dictionary<string, string>() 1239EnvironmentVariables = new Dictionary<string, string>() 1281EnvironmentVariables = new Dictionary<string, string>() 1322EnvironmentVariables = new Dictionary<string, string>() 1372EnvironmentVariables = new Dictionary<string, string>() 1416EnvironmentVariables = new Dictionary<string, string>() 1470EnvironmentVariables = new Dictionary<string, string>() 1527EnvironmentVariables = new Dictionary<string, string>() 1681EnvironmentVariables = new Dictionary<string, string>() 1736EnvironmentVariables = new Dictionary<string, string>() 1791EnvironmentVariables = new Dictionary<string, string>() 1856EnvironmentVariables = new Dictionary<string, string>() 1917EnvironmentVariables = new Dictionary<string, string>() 1982EnvironmentVariables = new Dictionary<string, string>() 2039EnvironmentVariables = new Dictionary<string, string>() 2105EnvironmentVariables = new Dictionary<string, string>() 2166EnvironmentVariables = new Dictionary<string, string>() 2218EnvironmentVariables = new Dictionary<string, string>() 2249EnvironmentVariables = new Dictionary<string, string>() 2297EnvironmentVariables = new Dictionary<string, string>() 2324var env = new Dictionary<string, string>(); 2329inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2359var env = new Dictionary<string, string>(); 2364inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2403var env = new Dictionary<string, string>(); 2408inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2423var env = new Dictionary<string, string>(); 2428inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2450var env = new Dictionary<string, string>(); 2455inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2475var env = new Dictionary<string, string>(); 2480inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2490var env = new Dictionary<string, string>(); 2495inheritedEnvironmentVariables: new Dictionary<string, string?>()); 2518var env = new Dictionary<string, string>(); 2523inheritedEnvironmentVariables: new Dictionary<string, string?>(), 2610EnvironmentVariables = new Dictionary<string, string>() 4190var properties = new Dictionary<string, string?>
Projects\ExtensionGuestLauncherTests.cs (6)
33new Dictionary<string, string>(), 56await launcher.LaunchAsync("npx", ["tsx"], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 71await launcher.LaunchAsync("npx", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 86var envVars = new Dictionary<string, string> 106var (exitCode, output) = await launcher.LaunchAsync("cmd", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None); 122await launcher.LaunchAsync("python", [], new DirectoryInfo("/tmp"), new Dictionary<string, string>(), afterLaunchAsync: null, options: null, CancellationToken.None);
Projects\GuestAppHostProjectTests.cs (40)
251Packages = new Dictionary<string, string> 274Packages = new Dictionary<string, string> 314Packages = new Dictionary<string, string> 337Packages = new Dictionary<string, string> 359Packages = new Dictionary<string, string> 420Packages = new Dictionary<string, string> 478inheritedEnvironmentVariables: new Dictionary<string, string?>()); 488launchProfileEnvironmentVariables: new Dictionary<string, string> 498inheritedEnvironmentVariables: new Dictionary<string, string?>()); 512launchProfileEnvironmentVariables: new Dictionary<string, string> 520inheritedEnvironmentVariables: new Dictionary<string, string?>(), 551new Dictionary<string, string> 556new Dictionary<string, string> 575contextEnvironmentVariables: new Dictionary<string, string>(), 576launchProfileEnvironmentVariables: new Dictionary<string, string> 587inheritedEnvironmentVariables: new Dictionary<string, string?>()); 601contextEnvironmentVariables: new Dictionary<string, string>(), 603inheritedEnvironmentVariables: new Dictionary<string, string?>(), 615contextEnvironmentVariables: new Dictionary<string, string>(), 617inheritedEnvironmentVariables: new Dictionary<string, string?>(), 627contextEnvironmentVariables: new Dictionary<string, string>(), 628launchProfileEnvironmentVariables: new Dictionary<string, string> 635inheritedEnvironmentVariables: new Dictionary<string, string?>(), 647contextEnvironmentVariables: new Dictionary<string, string>(), 650inheritedEnvironmentVariables: new Dictionary<string, string?> 663contextEnvironmentVariables: new Dictionary<string, string> 669inheritedEnvironmentVariables: new Dictionary<string, string?>()); 680contextEnvironmentVariables: new Dictionary<string, string> 686inheritedEnvironmentVariables: new Dictionary<string, string?>()); 696var files = new Dictionary<string, string> 1104.AddInMemoryCollection(new Dictionary<string, string?> 1166EnvironmentVariables = new Dictionary<string, string>() 1516var envVars = new Dictionary<string, string>(); 1538var envVars = new Dictionary<string, string> 1560var envVars = new Dictionary<string, string> 1591var envVars = new Dictionary<string, string> 1614var envVars = new Dictionary<string, string>(); 1645var environment = TestEnvironment.CreateWindows(new Dictionary<string, string?> 1650var envVars = new Dictionary<string, string> 1710var envVars = new Dictionary<string, string>
Projects\GuestRuntimeTests.cs (48)
129var envVars = new Dictionary<string, string>(); 149await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None); 170var (exitCode, _) = await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None); 191await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 211new Dictionary<string, string>(), 241new Dictionary<string, string>(), 287await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 337new Dictionary<string, string>(), 366new Dictionary<string, string>(), 389await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: true, launcher, CancellationToken.None); 406await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--output", "/out"], launcher, cancellationToken: CancellationToken.None); 427await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--output", "/out"], launcher, cancellationToken: CancellationToken.None); 453new Dictionary<string, string>(), 482new Dictionary<string, string>(), 503await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), null, launcher, cancellationToken: CancellationToken.None); 515EnvironmentVariables = new Dictionary<string, string> { ["SPEC_VAR"] = "spec_value" } 521var envVars = new Dictionary<string, string> { ["CALLER_VAR"] = "caller_value" }; 536EnvironmentVariables = new Dictionary<string, string> { ["SHARED_VAR"] = "from_spec" } 542var envVars = new Dictionary<string, string> { ["SHARED_VAR"] = "from_caller" }; 562await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 581await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 599await runtime.PublishAsync(appHostFile, directory, new Dictionary<string, string>(), ["--extra", "arg"], launcher, cancellationToken: CancellationToken.None); 619await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 706new Dictionary<string, string>(), 739new Dictionary<string, string>(), 797new Dictionary<string, string>(), 861new Dictionary<string, string>(), 913new Dictionary<string, string>(), 963MigrationFiles = new Dictionary<string, string> 978await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1011MigrationFiles = new Dictionary<string, string> 1022await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1042await runtime.RunAsync(appHostFile, directory, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1056await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1072await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1095await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1118await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1143await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1165await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1194await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1218await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1259await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1284await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1328await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1356await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1387await runtime.RunAsync(appHostFile, workspace.WorkspaceRoot, new Dictionary<string, string>(), watchMode: false, launcher, CancellationToken.None); 1466public IDictionary<string, string> LastEnvironmentVariables { get; private set; } = new Dictionary<string, string>(); 1481LastEnvironmentVariables = new Dictionary<string, string>(environmentVariables);
Projects\PrebuiltAppHostServerTests.cs (13)
802.AddInMemoryCollection(new Dictionary<string, string?> 2100var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2241var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2380var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2416var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2449var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2496var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2503var packageMetadata = new Dictionary<string, (string NuGetPackageId, string NuGetPackageVersion, string PathInPackage, string AssetType)>(StringComparer.Ordinal) 2556var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2594var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2631var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2768var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2908return new Dictionary<string, (string NuGetPackageId, string NuGetPackageVersion, string PathInPackage, string AssetType)>(StringComparer.Ordinal)
Projects\ProcessGuestLauncherTests.cs (6)
40new Dictionary<string, string>(), 67new Dictionary<string, string>(), 125new Dictionary<string, string>(), 177new Dictionary<string, string>(), 231new Dictionary<string, string>(), 291new Dictionary<string, string>(),
Projects\ProjectLocatorTests.cs (7)
469.AddInMemoryCollection(new Dictionary<string, string?> 2114return Task.FromResult(new Dictionary<string, string>()); 2119return Task.FromResult(new Dictionary<string, string>()); 2124return Task.FromResult(new Dictionary<string, string>()); 2936var envVars = new Dictionary<string, string?> 3004var envVars = new Dictionary<string, string?> 3044var envVars = new Dictionary<string, string?>
Telemetry\AspireCliTelemetryTests.cs (1)
388var configurationValues = new Dictionary<string, string?>();
Telemetry\CIEnvironmentDetectorTests.cs (12)
38.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value }) 54.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value }) 65.AddInMemoryCollection(new Dictionary<string, string?> 80.AddInMemoryCollection(new Dictionary<string, string?> 94.AddInMemoryCollection(new Dictionary<string, string?> 108.AddInMemoryCollection(new Dictionary<string, string?> 123.AddInMemoryCollection(new Dictionary<string, string?> 137.AddInMemoryCollection(new Dictionary<string, string?> 152.AddInMemoryCollection(new Dictionary<string, string?> 169.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value }) 182.AddInMemoryCollection(new Dictionary<string, string?> { [varName] = value }) 193.AddInMemoryCollection(new Dictionary<string, string?>
Telemetry\InternalMicrosoftDetectorTests.cs (5)
240environmentVariables: new Dictionary<string, string?> 272environmentVariables: new Dictionary<string, string?> 306environmentVariables: new Dictionary<string, string?> 428environmentVariables: new Dictionary<string, string?> 615?? new Dictionary<string, string?>();
Telemetry\ProfilingTelemetryContextTests.cs (3)
25var environment = new Dictionary<string, string>(); 41var environment = new Dictionary<string, string>(); 56var environment = new Dictionary<string, string>();
Telemetry\TelemetryConfigurationTests.cs (9)
30? new Dictionary<string, string?>() 31: new Dictionary<string, string?>(config); 66var config = new Dictionary<string, string?> 113.AddInMemoryCollection(new Dictionary<string, string?> 148var config = WithTelemetryOptIn(new Dictionary<string, string?> 193var config = new Dictionary<string, string?> 212var config = WithTelemetryOptIn(new Dictionary<string, string?> 232var config = new Dictionary<string, string?> 286.AddInMemoryCollection(new Dictionary<string, string?>
Templating\ConditionalBlockProcessorTests.cs (4)
274var conditions = new Dictionary<string, bool> 304var conditions = new Dictionary<string, bool> 329var conditions = new Dictionary<string, bool> 366var conditions = new Dictionary<string, bool>
Templating\DotNetTemplateFactoryTests.cs (1)
474EnvironmentVariables = new Dictionary<string, string>(),
TestServices\FakeAppHostServerSession.cs (3)
97CapturedEnvironmentVariables = environmentVariables is null ? null : new Dictionary<string, string>(environmentVariables); 123=> Task.FromResult(new Dictionary<string, string>()); 126=> Task.FromResult(new Dictionary<string, string>());
TestServices\FakePeerInstallProbe.cs (1)
24_responses = new Dictionary<string, PeerProbeResult>(_pathComparer);
TestServices\FakePlaywrightServices.cs (1)
86var files = new Dictionary<(string SkillName, string RelativePath), string>
TestServices\TestCertificateService.cs (1)
14EnvironmentVariables = new Dictionary<string, string>(),
TestServices\TestConfigurationService.cs (3)
31return Task.FromResult(new Dictionary<string, string>()); 36return Task.FromResult(new Dictionary<string, string>()); 41return Task.FromResult(new Dictionary<string, string>());
TestServices\TestFeatures.cs (1)
10private readonly Dictionary<string, bool> _features = new();
TestServices\TestProcessExecutionFactory.cs (1)
159?? new Dictionary<string, string?>();
Utils\AspireAnsiConsoleOutputTests.cs (5)
16.AddInMemoryCollection(new Dictionary<string, string?> 36.AddInMemoryCollection(new Dictionary<string, string?> 56.AddInMemoryCollection(new Dictionary<string, string?> 77.AddInMemoryCollection(new Dictionary<string, string?> 98.AddInMemoryCollection(new Dictionary<string, string?>
Utils\CliHostEnvironmentTests.cs (18)
46.AddInMemoryCollection(new Dictionary<string, string?> 66.AddInMemoryCollection(new Dictionary<string, string?> 89.AddInMemoryCollection(new Dictionary<string, string?> 106.AddInMemoryCollection(new Dictionary<string, string?> 128.AddInMemoryCollection(new Dictionary<string, string?> 146.AddInMemoryCollection(new Dictionary<string, string?> 190.AddInMemoryCollection(new Dictionary<string, string?> 208.AddInMemoryCollection(new Dictionary<string, string?> 226.AddInMemoryCollection(new Dictionary<string, string?> 244.AddInMemoryCollection(new Dictionary<string, string?> 263.AddInMemoryCollection(new Dictionary<string, string?> 282.AddInMemoryCollection(new Dictionary<string, string?> 301.AddInMemoryCollection(new Dictionary<string, string?> 320.AddInMemoryCollection(new Dictionary<string, string?> 339.AddInMemoryCollection(new Dictionary<string, string?> 357.AddInMemoryCollection(new Dictionary<string, string?> 378.AddInMemoryCollection(new Dictionary<string, string?> 396.AddInMemoryCollection(new Dictionary<string, string?>
Utils\CliTestHelper.cs (1)
89var configurationValues = new Dictionary<string, string?>();
Utils\CliUpdateNotificationServiceTests.cs (1)
437return new Dictionary<string, string?>
Utils\DevCertsCheckTests.cs (16)
341var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 376var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 422var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 466var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 517var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 572var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 622var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 681var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 738var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 779var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 823var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 869var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 915var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 961var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 1004var environment = TestEnvironment.CreateLinux(new Dictionary<string, string?> 1040var environment = TestEnvironment.CreateMacOS(new Dictionary<string, string?>
Utils\NpmInstallDetectionTests.cs (5)
13using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 37using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 51using var scope = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?> 65using var baseline = NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?>()); 68using (NpmInstallDetection.UseEnvironmentForTesting(new Dictionary<string, string?>
Utils\TestEnvironment.cs (1)
18Variables = variables ?? new Dictionary<string, string?>();
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
15private readonly Dictionary<string, Statistics> _state = new();
Aspire.Dashboard (75)
Authentication\FrontendCompositeAuthenticationHandler.cs (2)
27items: new Dictionary<string, string?>(), 28parameters: new Dictionary<string, object?> { [AspirePolicyEvaluator.SuppressChallengeKey] = true }));
Components\Controls\Chart\ChartBase.cs (3)
68private Dictionary<SpanKey, OtlpSpan> _currentCache = new Dictionary<SpanKey, OtlpSpan>(); 69private Dictionary<SpanKey, OtlpSpan> _newCache = new Dictionary<SpanKey, OtlpSpan>(); 215_newCache = new Dictionary<SpanKey, OtlpSpan>();
Components\Controls\Chart\ChartDataCalculator.cs (1)
71var traces = new Dictionary<int, ChartTrace>
Components\Controls\Chart\PlotlyChart.razor.cs (1)
120var exemplarGroups = new Dictionary<ExemplarGroupKey, List<ChartExemplar>>();
Components\Controls\ResourceDetails.razor.cs (1)
199_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Controls\SpanDetails.razor.cs (1)
145_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Controls\StructuredLogDetails.razor.cs (1)
107_valueComponents = new Dictionary<string, ComponentMetadata>
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
54_elementRefs = new();
Components\Dialogs\ManageDataDialog.razor.cs (2)
65private readonly Dictionary<string, ResourceDataRow> _resourceDataRows = new(StringComparers.ResourceName); 667var result = new Dictionary<string, HashSet<AspireDataType>>(StringComparers.ResourceName);
Components\Layout\AspirePageContentLayout.razor.cs (1)
61public Dictionary<string, Func<Task>> DialogCloseListeners { get; } = new();
Components\Pages\ComponentTelemetryContext.cs (1)
113return new Dictionary<string, AspireTelemetryProperty>
Components\Pages\TraceDetail.razor.cs (2)
655return Task.FromResult(new Dictionary<string, int>(StringComparers.OtlpAttribute)); 839var map = new Dictionary<SpanWaterfallViewModel, SpanWaterfallViewModel>();
Configuration\EndpointInfo.cs (1)
25var map = new Dictionary<string, List<EndpointInfo>>();
DashboardWebApplication.cs (1)
666var initialValues = new Dictionary<string, string?>();
Extensions\FluentUIExtensions.cs (1)
15var attributes = new Dictionary<string, object>(StringComparers.HtmlAttribute)
Model\ConnectionStringParser.cs (2)
17private static readonly Dictionary<string, int> s_schemeDefaultPorts = new(StringComparer.OrdinalIgnoreCase) 511var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Model\ConsoleLogsFetcher.cs (1)
70var result = new Dictionary<string, List<LogEntry>>(StringComparer.OrdinalIgnoreCase);
Model\ConsoleLogsFilters.cs (4)
16FilterResourceLogsDates = new Dictionary<string, DateTime>() 30: new Dictionary<string, DateTime>(value, StringComparers.ResourceName); 38new() { FilterAllLogsDate = clearDate, FilterResourceLogsDates = new Dictionary<string, DateTime>() }; 45var newDictionary = new Dictionary<string, DateTime>(_filterResourceLogsDates, StringComparers.ResourceName)
Model\DashboardCommandExecutor.cs (1)
45new Dictionary<string, AspireTelemetryProperty>
Model\GenAI\GenAISchemaHelpers.cs (1)
29schema.Properties = new Dictionary<string, ToolDefinitionSchema>();
Model\GenAI\GenAIVisualizerDialogViewModel.cs (2)
461var messages = new Dictionary<int, Dictionary<string, string>>(); 478message = new Dictionary<string, string>();
Model\ResourceMenuBuilder.cs (1)
196AdditionalAttributes = new Dictionary<string, object>
Model\ResourceViewModelExtensions.cs (1)
20var result = new Dictionary<string, string?>(StringComparer.Ordinal);
Model\SpanDetailsViewModel.cs (1)
40var traceCache = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal);
Model\TraceHelpers.cs (2)
19var spanLookup = new Dictionary<OtlpSpan, List<OtlpSpan>>(); 67var resourceFirstTimes = new Dictionary<OtlpResource, OrderedResource>(OtlpResourceEqualityComparer.Instance);
Otlp\Http\OtlpJsonConverters.cs (2)
16private static readonly Dictionary<Type, Func<string, IMessage>> s_jsonDeserializers = new() 35private static readonly Dictionary<Type, Func<IMessage, string>> s_jsonSerializers = new()
Otlp\Model\OtlpSpan.cs (1)
251var attributeValues = new Dictionary<string, int>(StringComparers.OtlpAttribute);
Otlp\Storage\GetInstrumentRequest.cs (1)
39public IReadOnlyDictionary<string, IReadOnlyList<string?>> DimensionFilters { get; init; } = new Dictionary<string, IReadOnlyList<string?>>();
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (4)
25private readonly Dictionary<string, CachedScope> _cachedScopesByName = new(StringComparer.Ordinal); 765public Dictionary<KeyValuePair<string, string>[], CachedResourceView> ViewsByProperties { get; } = new(ResourceViewPropertiesComparer.Instance); 766public Dictionary<string, CachedResourceScope> Scopes { get; } = new(StringComparer.Ordinal); 777public Dictionary<string, CachedInstrument> Instruments { get; } = new(StringComparer.Ordinal);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (1)
470return new Dictionary<string, int>(StringComparers.OtlpAttribute);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
120var knownAttributeValues = new Dictionary<string, List<string?>>();
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (3)
558return new Dictionary<string, int>(StringComparers.OtlpAttribute); 694return new Dictionary<string, OtlpTrace>(StringComparer.Ordinal); 747var traces = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal);
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (6)
45var traces = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal); 47var latestReceivedTimestampTicks = new Dictionary<string, long>(StringComparer.Ordinal); 137var existingTraces = new Dictionary<string, IngestionTraceRecord>(StringComparer.Ordinal); 161var existingSpans = new Dictionary<(string TraceId, string SpanId), IngestionExistingSpanRecord>(); 263var parentSpanIds = new Dictionary<(string TraceId, string SpanId), string?>(); 1055var latestReceivedTimestampTicks = new Dictionary<string, long>(StringComparer.Ordinal);
Otlp\Storage\TelemetryRepositoryLimits.cs (2)
18private readonly Dictionary<string, HashSet<string>> _values = new(StringComparer.Ordinal); 60var dimensionValues = new Dictionary<string, string>(StringComparer.Ordinal);
ServiceClient\DashboardClient.cs (1)
54private readonly Dictionary<string, ResourceViewModel> _resourceByName = new(StringComparers.ResourceName);
ServiceClient\DashboardDataSourcePool.cs (1)
18private readonly Dictionary<string, Entry> _entries = new(s_pathComparer);
ServiceClient\SqliteResourceRepository.cs (6)
23private readonly Dictionary<string, ResourceState> _resourceStates = new(StringComparers.ResourceName); 25private readonly Dictionary<string, ImmutableHashSet<Channel<IReadOnlyList<ResourceLogLine>>>> _consoleChannels = new(StringComparers.ResourceName); 187var replacementResources = new Dictionary<string, ResourceViewModel>(StringComparers.ResourceName); 244var resourcesToSave = new Dictionary<string, ResourceToSave>(StringComparers.ResourceName); 330var consoleLogToInsertIndexes = new Dictionary<int, int>(); 450var updatedStates = new Dictionary<string, ResourceState>(StringComparers.ResourceName);
src\Shared\EnumerableExtensions.cs (1)
19var dictionary = new Dictionary<TKey, TValue>();
src\Shared\Export\ExportArchive.cs (5)
24public Dictionary<string, ResourceJson> Resources { get; } = new(); 30public Dictionary<string, List<string>> ConsoleLogs { get; } = new(); 36public Dictionary<string, OtlpTelemetryDataJson> StructuredLogs { get; } = new(); 42public Dictionary<string, OtlpTelemetryDataJson> Traces { get; } = new(); 48public Dictionary<string, OtlpTelemetryDataJson> Metrics { get; } = new();
Telemetry\DashboardTelemetryService.cs (1)
25_defaultProperties = new Dictionary<string, AspireTelemetryProperty>
Telemetry\TelemetryErrorRecorder.cs (1)
38new Dictionary<string, AspireTelemetryProperty>
Utils\GlobalizationHelpers.cs (1)
47var dict = new Dictionary<string, List<CultureInfo>>(StringComparers.CultureName);
Utils\MimeTypeHelpers.cs (1)
47public static readonly Dictionary<string, string> MimeToExtension = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Aspire.Dashboard.Components.Tests (18)
Controls\ResourceDetailsTests.cs (9)
432properties: new Dictionary<string, ResourcePropertyViewModel> 467var properties = new Dictionary<string, ResourcePropertyViewModel> 499var properties = new Dictionary<string, ResourcePropertyViewModel> 560var properties = new Dictionary<string, ResourcePropertyViewModel> 742var properties = new Dictionary<string, ResourcePropertyViewModel> 788var properties = new Dictionary<string, ResourcePropertyViewModel> 834var properties = new Dictionary<string, ResourcePropertyViewModel> 864var properties = new Dictionary<string, ResourcePropertyViewModel> 891var properties = new Dictionary<string, ResourcePropertyViewModel>
Dialogs\FilterDialogTests.cs (4)
144fieldValues.SetResult(new Dictionary<string, int> { ["request"] = 1 }); 224secondFieldValues.SetResult(new Dictionary<string, int> { ["latest-value"] = 1 }); 226firstFieldValues.SetResult(new Dictionary<string, int> { ["stale-value"] = 1 }); 379? new Dictionary<string, int> { ["request"] = 1 }
Pages\ConsoleLogsTerminalTests.cs (1)
682var properties = new Dictionary<string, ResourcePropertyViewModel>
Pages\ConsoleLogsTests.cs (1)
756await consoleLogsManager.UpdateFiltersAsync(new ConsoleLogsFilters { FilterAllLogsDate = earliestEntry.Timestamp!.Value, FilterResourceLogsDates = new Dictionary<string, DateTime>() });
Pages\ResourcesTests.cs (3)
415new Dictionary<string, bool> { { "Type1", true }, { "Type2", false } }, 417new Dictionary<string, bool> { { "Running", true }, { "Finished", false } }, 419new Dictionary<string, bool> { { "Healthy", true }, { "Unhealthy", false } },
Aspire.Dashboard.Tests (101)
ChartDataCalculatorTests.cs (1)
350var traces = new Dictionary<int, ChartTrace>
DashboardOptionsTests.cs (2)
53.AddInMemoryCollection(new Dictionary<string, string?> 77.AddInMemoryCollection(new Dictionary<string, string?>
Integration\IntegrationTestHelpers.cs (1)
59var initialData = new Dictionary<string, string?>
Integration\MockOpenIdAuthority.cs (1)
95Claims = new Dictionary<string, object>
Integration\Playwright\AccessibilityTests.cs (1)
234new Dictionary<string, (string, string, Func<IPage, Task>)>(StringComparer.Ordinal)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
30Configuration = new Dictionary<string, string?>
Integration\StartupTests.cs (3)
244.AddInMemoryCollection(new Dictionary<string, string?> { [dashboardFileConfigDirectoryNameKey] = fileConfigDirectory.FullName }) 279.AddInMemoryCollection(new Dictionary<string, string?> { [DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory.FullName }) 1080builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Model\ApplicationsSelectHelpersTests.cs (1)
173var apps = new Dictionary<string, OtlpResource>();
Model\ConsoleLogsFiltersTests.cs (3)
19FilterResourceLogsDates = new Dictionary<string, DateTime> 43FilterResourceLogsDates = new Dictionary<string, DateTime> 69var filters = new ConsoleLogsFilters { FilterAllLogsDate = null, FilterResourceLogsDates = new Dictionary<string, DateTime>() };
Model\EnvHelpersTests.cs (4)
15var environmentVariables = new Dictionary<string, string?> 39var environmentVariables = new Dictionary<string, string?> 71var environmentVariables = new Dictionary<string, string?> 95var environmentVariables = new Dictionary<string, string?>
Model\ExportHelpersTests.cs (2)
25var resourceByName = new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }; 49var resourceByName = new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource };
Model\GenAIItemPartViewModelTests.cs (2)
157AdditionalProperties = new Dictionary<string, JsonElement> 178AdditionalProperties = new Dictionary<string, JsonElement>
Model\ResourceGraphMapperTests.cs (7)
26var resources = new Dictionary<string, ResourceViewModel> 47var resources = new Dictionary<string, ResourceViewModel> 68var resources = new Dictionary<string, ResourceViewModel> 86var resources = new Dictionary<string, ResourceViewModel> 108var resources = new Dictionary<string, ResourceViewModel> 130var resources = new Dictionary<string, ResourceViewModel> 151var resources = new Dictionary<string, ResourceViewModel>
Model\ResourceIconHelpersTests.cs (1)
118var properties = new Dictionary<string, ResourcePropertyViewModel>
Model\ResourceMenuBuilderTests.cs (9)
96new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }, 146new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }, 196new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }, 232new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }, 265new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }, 311new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }, 349new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }, 390new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }, 431new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource },
Model\ResourceSourceViewModelTests.cs (1)
18var properties = new Dictionary<string, ResourcePropertyViewModel>();
Model\ResourceStateViewModelTests.cs (5)
79var propertiesDictionary = new Dictionary<string, ResourcePropertyViewModel>(); 117properties: new Dictionary<string, ResourcePropertyViewModel> 145properties: new Dictionary<string, ResourcePropertyViewModel> 176properties: new Dictionary<string, ResourcePropertyViewModel> 204properties: new Dictionary<string, ResourcePropertyViewModel>
Model\ResourceViewModelExtensionsTerminalTests.cs (5)
17properties: new Dictionary<string, ResourcePropertyViewModel> 37properties: new Dictionary<string, ResourcePropertyViewModel> 52properties: new Dictionary<string, ResourcePropertyViewModel> 64properties: new Dictionary<string, ResourcePropertyViewModel> 78properties: new Dictionary<string, ResourcePropertyViewModel>
Model\TelemetryExportServiceTests.cs (5)
697var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 819var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 870var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 1396properties: new Dictionary<string, ResourcePropertyViewModel> 1529properties: new Dictionary<string, ResourcePropertyViewModel>
ResourceOutgoingPeerResolverTests.cs (29)
37var resources = new Dictionary<string, ResourceViewModel> 50var resources = new Dictionary<string, ResourceViewModel> 63var resources = new Dictionary<string, ResourceViewModel> 76var resources = new Dictionary<string, ResourceViewModel> 95var resources = new Dictionary<string, ResourceViewModel> 109var resources = new Dictionary<string, ResourceViewModel> 123var resources = new Dictionary<string, ResourceViewModel> 138var resources = new Dictionary<string, ResourceViewModel> 158var resources = new Dictionary<string, ResourceViewModel> 171var resources = new Dictionary<string, ResourceViewModel> 192var resources = new Dictionary<string, ResourceViewModel> 217var resources = new Dictionary<string, ResourceViewModel> 240var resources = new Dictionary<string, ResourceViewModel> 255var resources = new Dictionary<string, ResourceViewModel> 268var resources = new Dictionary<string, ResourceViewModel> 437var resources = new Dictionary<string, ResourceViewModel> 451var resources = new Dictionary<string, ResourceViewModel> 483var resources = new Dictionary<string, ResourceViewModel> 498var resources = new Dictionary<string, ResourceViewModel> 512var resources = new Dictionary<string, ResourceViewModel> 527var resources = new Dictionary<string, ResourceViewModel> 540var resources = new Dictionary<string, ResourceViewModel> 554var resources = new Dictionary<string, ResourceViewModel> 569var resources = new Dictionary<string, ResourceViewModel> 581var properties = new Dictionary<string, ResourcePropertyViewModel> 617var properties = new Dictionary<string, ResourcePropertyViewModel> 639var resources = new Dictionary<string, ResourceViewModel> 654var resources = new Dictionary<string, ResourceViewModel> 671var resources = new Dictionary<string, ResourceViewModel>
TelemetryRepositoryTests\MetricsTests.cs (2)
422DimensionFilters = new Dictionary<string, IReadOnlyList<string?>> 1513DimensionFilters = new Dictionary<string, IReadOnlyList<string?>>
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (4)
220var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 267var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 307var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 338var selectedResources = new Dictionary<string, HashSet<AspireDataType>>
TelemetryRepositoryTests\TraceTests.cs (1)
4730await repositoryContext.Repository.AsWriter().ClearSelectedSignalsAsync(new Dictionary<string, HashSet<AspireDataType>>
Terminal\DefaultTerminalConnectionResolverTests.cs (3)
62properties: new Dictionary<string, ResourcePropertyViewModel> 82properties: new Dictionary<string, ResourcePropertyViewModel> 119properties: new Dictionary<string, ResourcePropertyViewModel>
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (7)
67private readonly Dictionary<string, OtlpScope> _logScopes = new(); 73private readonly Dictionary<ResourceKey, int> _resourceUnviewedErrorLogs = new(); 77private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 1767var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute); 2143var updatedTraces = new Dictionary<ReadOnlyMemory<byte>, OtlpTrace>(); 2543var allKnownAttributes = new Dictionary<string, List<string?>>(); 2658public Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>, DimensionScope> Dimensions { get; } = new(ScopeAttributesComparer.Instance);
Aspire.Deployment.EndToEnd.Tests (51)
AcaCompactNamingDeploymentTests.cs (2)
180new Dictionary<string, string>(), 324new Dictionary<string, string>(),
AcaCompactNamingUpgradeDeploymentTests.cs (1)
374new Dictionary<string, string>(),
AcaCustomRegistryDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AcaExistingRegistryDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
AcaManagedRedisDeploymentTests.cs (1)
55var deploymentUrls = new Dictionary<string, string>();
AcaStarterDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
AcrPurgeTaskDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentCertManagerDeploymentTests.cs (1)
64var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs (1)
67var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs (1)
58var deploymentUrls = new Dictionary<string, string>();
AksBlazorRedisDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksMultipleNodePoolsDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksPersistentVolumeDeploymentTests.cs (1)
50var deploymentUrls = new Dictionary<string, string>();
AksStarterDeploymentTests.cs (1)
337new Dictionary<string, string>
AksStarterWithRedisHelmDeploymentTests.cs (1)
367new Dictionary<string, string>
AksVnetInfraDeploymentTests.cs (1)
181new Dictionary<string, string>(),
AksVnetWithAzureResourcesDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksWithAzureResourcesDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksWithHelmChartDeploymentTests.cs (1)
59var deploymentUrls = new Dictionary<string, string>();
AppServicePythonDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AppServiceReactDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AppServiceStoragePrivateEndpointDeploymentTests.cs (1)
235new Dictionary<string, string>(),
AzureAppConfigDeploymentTests.cs (1)
157new Dictionary<string, string>(),
AzureContainerRegistryDeploymentTests.cs (1)
140new Dictionary<string, string>(),
AzureEventHubsDeploymentTests.cs (1)
157new Dictionary<string, string>(),
AzureKeyVaultDeploymentTests.cs (1)
157new Dictionary<string, string>(),
AzureLogAnalyticsDeploymentTests.cs (1)
140new Dictionary<string, string>(),
AzureResourceScopeDeploymentTests.cs (1)
151new Dictionary<string, string>(),
AzureRoleAssignmentRunModeTests.cs (1)
202new Dictionary<string, string>(),
AzureServiceBusDeploymentTests.cs (1)
159new Dictionary<string, string>(),
AzureStorageDeploymentTests.cs (2)
174new Dictionary<string, string>(), 334new Dictionary<string, string>(),
AzureStorageRunModeTests.cs (1)
182new Dictionary<string, string>(),
FoundryHostedAgentDeploymentTests.cs (1)
55var deploymentUrls = new Dictionary<string, string>();
FrontDoorDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
KubernetesGatewayTlsDeploymentTests.cs (1)
440new Dictionary<string, string>
KubernetesHelmChartDeploymentTests.cs (1)
283new Dictionary<string, string>
NspStorageKeyVaultDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
PythonFastApiDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
RadiusStarterDeploymentTests.cs (1)
598new Dictionary<string, string>
TypeScriptAzureContainerAppJobDeploymentTests.cs (1)
88new Dictionary<string, string>(),
TypeScriptExpressDeploymentTests.cs (1)
52var deploymentUrls = new Dictionary<string, string>();
TypeScriptJavaScriptHostingDeploymentTests.cs (1)
90new Dictionary<string, string>(),
TypeScriptVnetSqlServerInfraDeploymentTests.cs (1)
244new Dictionary<string, string>(),
VnetKeyVaultConnectivityDeploymentTests.cs (1)
51var deploymentUrls = new Dictionary<string, string>();
VnetKeyVaultInfraDeploymentTests.cs (1)
168new Dictionary<string, string>(),
VnetSqlServerConnectivityDeploymentTests.cs (1)
56var deploymentUrls = new Dictionary<string, string>();
VnetSqlServerInfraDeploymentTests.cs (1)
169new Dictionary<string, string>(),
VnetStorageBlobConnectivityDeploymentTests.cs (1)
51var deploymentUrls = new Dictionary<string, string>();
VnetStorageBlobInfraDeploymentTests.cs (1)
170new Dictionary<string, string>(),
Aspire.EndToEnd.Tests (4)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
35public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
169EnvVars = new Dictionary<string, string>(); 288EnvVars = new Dictionary<string, string>(otherBuildEnvironment.EnvVars);
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Hosting (69)
ApplicationModel\CertificateTrustConfigurationCallbackAnnotation.cs (1)
151internal Dictionary<string, Func<X509Certificate2Collection, CancellationToken, Task<byte[]>>> CustomBundlesFactories { get; } = new();
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (1)
151public Dictionary<string, Func<X509Certificate2Collection, CancellationToken, Task<byte[]>>> CustomBundlesFactories { get; } = new();
ApplicationModel\CommandsConfigurationExtensions.cs (1)
220var preRebuildStates = new Dictionary<string, string?>(StringComparer.Ordinal);
ApplicationModel\DebugSupportExtensions.cs (1)
138new Dictionary<string, string>(),
ApplicationModel\EnvironmentCallbackAnnotation.cs (1)
118var result = new Dictionary<string, object>(context.EnvironmentVariables);
ApplicationModel\EnvironmentCallbackContext.cs (1)
37public Dictionary<string, object> EnvironmentVariables { get; } = environmentVariables ?? new();
ApplicationModel\EnvironmentVariablesConfigurationGatherer.cs (1)
18var envVars = new Dictionary<string, object>(context.EnvironmentVariables);
ApplicationModel\ExecutionConfigurationGathererContext.cs (2)
14public Dictionary<string, object> EnvironmentVariables { get; } = new(); 47Dictionary<string, (object Unprocessed, string Value)> resolvedEnvironmentVariables = new(EnvironmentVariables.Count);
ApplicationModel\ProcessCommandSpec.cs (1)
48public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
ApplicationModel\ResourceCollection.cs (1)
15private readonly Dictionary<string, IResource> _resourcesByName = new(StringComparers.ResourceName);
ApplicationModel\ResourceCommandService.cs (2)
21private static readonly Dictionary<string, string> s_legacyCommandNameMap = new(StringComparers.CommandName) 789var values = new Dictionary<string, string?>(StringComparers.InteractionInputName);
ApplicationModel\ResourceExtensions.cs (2)
419var config = new Dictionary<string, object>(); 1660var envVars = new Dictionary<string, object>();
ApplicationModel\ResourceNotificationService.cs (1)
777var versionsSeen = new Dictionary<string, long>();
Ats\CollectionExports.cs (1)
125var result = new Dictionary<string, object?>(dict.Count);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (4)
226var arguments = new Dictionary<string, object?>(); 378var values = new Dictionary<string, string?>(StringComparers.InteractionInputName); 1143var properties = new Dictionary<string, JsonNode?>(); 1489var result = new Dictionary<string, string?>();
ConnectionPropertiesExtensions.cs (1)
25var dict = new Dictionary<string, ReferenceExpression>(StringComparer.OrdinalIgnoreCase);
Dashboard\DashboardEventHandlers.cs (1)
906var dashboardResourceTasks = new Dictionary<string, Task>();
Dashboard\DashboardService.cs (1)
456var values = new Dictionary<string, string?>(StringComparers.InteractionInputName);
Dashboard\DashboardServiceData.cs (1)
247var submittedInputsByName = new Dictionary<string, InputDto>(StringComparers.InteractionInputName);
Dcp\DcpExecutor.cs (2)
399var objectsByName = new Dictionary<string, TDcpResource>(StringComparer.Ordinal); 560var latest = new Dictionary<string, TDcpResource>(StringComparer.Ordinal);
Dcp\DcpHost.cs (1)
466var loggerCache = new Dictionary<int, ILogger>();
Dcp\DcpNameGenerator.cs (1)
24private readonly Dictionary<string, string> _networkServices = new();
Dcp\DcpResourceWatcher.cs (2)
150var resourceLogState = new Dictionary<string, (bool logsAvailable, bool hasSubscribers)>(); 720var counts = new Dictionary<LogEntryKey, int>();
Dcp\Model\ExecutableReplicaSet.cs (2)
28Annotations = new Dictionary<string, string>(); 38Annotations = new Dictionary<string, string>();
Dcp\Model\ModelCommon.cs (3)
51Metadata.Annotations = new Dictionary<string, string>(); 61Metadata.Annotations = new Dictionary<string, string>(); 71Metadata.Annotations = new Dictionary<string, string>();
Dcp\Model\Schema.cs (1)
8private readonly Dictionary<Type, (string Kind, string Resource)> _byType = new();
Dcp\Process\ProcessSpec.cs (1)
12public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Dcp\ProxylessEndpointPortAllocator.cs (1)
37private readonly Dictionary<EndpointAnnotation, int> _reservedPorts = new(ReferenceEqualityComparer.Instance);
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
38remappedUrls ??= new();
DistributedApplicationBuilder.cs (6)
276_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 328_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 464new Dictionary<string, string?> 478new Dictionary<string, string?> 489new Dictionary<string, string?> 769var switchMappings = new Dictionary<string, string>()
Health\ResourceHealthCheckService.cs (1)
16private readonly Dictionary<string, ResourceMonitorState> _resourceMonitoringStates = new();
IInteractionService.cs (1)
617var inputsByName = new Dictionary<string, InteractionInput>(StringComparers.InteractionInputName);
Orchestrator\ApplicationOrchestrator.cs (1)
87var connectionProperties = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Orchestrator\ParameterProcessor.cs (1)
113var referencedParameters = new Dictionary<string, ParameterResource>();
Pipelines\DistributedApplicationPipeline.cs (4)
855var stepCompletions = new Dictionary<string, TaskCompletionSource>(steps.Count, StringComparer.Ordinal); 1080var visitStates = new Dictionary<string, VisitState>(steps.Count, StringComparer.Ordinal); 1395var result = new Dictionary<string, StepHierarchyInfo>(StringComparer.Ordinal); 1427var result = new Dictionary<string, int>(StringComparer.Ordinal);
Pipelines\Internal\DeploymentStateManagerBase.cs (1)
38private readonly Dictionary<string, SectionMetadata> _sections = new();
Publishing\DockerContainerRuntime.cs (1)
92var environmentVariables = new Dictionary<string, string>();
Publishing\ManifestPublishingContext.cs (2)
49private readonly Dictionary<string, ReferenceExpression> _conditionalExpressions = new(StringComparers.ResourceName); 778formats = new Dictionary<string, string>(StringComparer.Ordinal);
Publishing\PodmanContainerRuntime.cs (2)
110var grouped = new Dictionary<string, List<ComposeServicePort>>(StringComparer.OrdinalIgnoreCase); 200var environmentVariables = new Dictionary<string, string>();
Publishing\ResourceContainerImageManager.cs (2)
463var resolvedBuildArguments = new Dictionary<string, string?>(); 470var resolvedBuildSecrets = new Dictionary<string, BuildImageSecretValue>();
ResourceBuilderExtensions.cs (3)
815var schemeIndexTracker = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 3396var result = new Dictionary<string, string>(StringComparer.Ordinal); 3431var environmentVariables = processCommandSpec.EnvironmentVariables ?? new Dictionary<string, string>();
UserSecrets\NoopUserSecretsManager.cs (1)
43configuration.AddInMemoryCollection(new Dictionary<string, string?> { [name] = value });
UserSecrets\UserSecretsManagerFactory.cs (2)
27private readonly Dictionary<string, IUserSecretsManager> _managerCache = new(); 143new Dictionary<string, string?>
Utils\DotnetSdkUtils.cs (1)
10private static readonly Dictionary<string, string> s_dotnetCliEnvVars = new()
Aspire.Hosting.Azure (9)
AcrLoginService.cs (1)
158var formData = new Dictionary<string, string>
AzureBicepResource.cs (2)
122public Dictionary<string, object?> Outputs { get; } = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 127public Dictionary<string, string?> SecretOutputs { get; } = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
AzurePublishingContext.cs (2)
150var moduleMap = new Dictionary<AzureBicepResource, ModuleImport>(); 354var outputs = new Dictionary<string, BicepOutputReference>();
AzureResourcePreparer.cs (2)
183var globalRoleAssignments = new Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>>(); 363var result = new Dictionary<AzureProvisioningResource, IEnumerable<RoleDefinition>>();
Provisioning\Internal\DefaultArmClientProvider.cs (1)
474var locationNameByProviderValue = new Dictionary<string, string>(StringComparers.AzureLocation);
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (1)
12public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Aspire.Hosting.Azure.AppContainers (4)
AzureContainerAppExtensions.cs (3)
141private readonly Dictionary<string, Dictionary<string, ManagedEnvironmentName>> _environmentsByManagedEnvironmentName = new(StringComparer.Ordinal); 155environmentNames = new Dictionary<string, ManagedEnvironmentName>(StringComparer.Ordinal); 424var managedStorages = new Dictionary<string, ContainerAppManagedEnvironmentStorage>();
ContainerAppEnvironmentContext.cs (1)
24private readonly Dictionary<IResource, BaseContainerAppContext> _containerApps = new(new ResourceNameComparer());
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceEnvironmentContext.cs (1)
24private readonly Dictionary<IResource, AzureAppServiceWebsiteContext> _appServices = new(new ResourceNameComparer());
Aspire.Hosting.Azure.Kubernetes (3)
AzureKubernetesEnvironmentExtensions.cs (2)
547var poolSubnetParams = new Dictionary<string, ProvisioningParameter>(); 742var subnetExistingByKey = new Dictionary<string, SubnetResource>(StringComparer.Ordinal);
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (1)
12public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Aspire.Hosting.Azure.Kubernetes.Tests (2)
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
129Assert.Equivalent(new Dictionary<string, object>() { { "ACCEPT_EULA", "Y" } }, env);
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresFlexibleServerResource.cs (2)
24private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName); 294: new Dictionary<string, ReferenceExpression>(
Aspire.Hosting.Azure.Sql (2)
AzureSqlServerResource.cs (2)
32private readonly Dictionary<string, AzureSqlDatabaseResource> _databases = new Dictionary<string, AzureSqlDatabaseResource>(StringComparers.ResourceName); 515var result = new Dictionary<string, ReferenceExpression>(
Aspire.Hosting.Azure.Tests (93)
AzureBicepProvisionerTests.cs (4)
428new Dictionary<string, IEnumerable<string>>(StringComparer.OrdinalIgnoreCase) 500new Dictionary<string, IEnumerable<string>>(StringComparer.OrdinalIgnoreCase) 1097new Dictionary<string, IEnumerable<string>>(StringComparer.OrdinalIgnoreCase) 1213new Dictionary<string, IEnumerable<string>>(StringComparer.OrdinalIgnoreCase)
AzureContainerAppsTests.cs (1)
2405Profiles = new Dictionary<string, LaunchProfile>
AzureCosmosDBEmulatorFunctionalTests.cs (2)
181hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 230hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
AzureCosmosDBExtensionsTests.cs (6)
155var target = new Dictionary<string, object>(); 360var secrets = new Dictionary<string, string> 464var secrets = new Dictionary<string, string> 674var env = new Dictionary<string, object>(); 708var env = new Dictionary<string, object>(); 742var env = new Dictionary<string, object>();
AzureDeployerTests.cs (32)
143string name when name.StartsWith("env-acr") => new Dictionary<string, object> 148string name when name.StartsWith("env") => new Dictionary<string, object> 206string name when name.StartsWith("env-acr") => new Dictionary<string, object> 211string name when name.StartsWith("env") => new Dictionary<string, object> 265string name when name.StartsWith("env-acr") => new Dictionary<string, object> 270string name when name.StartsWith("env") => new Dictionary<string, object> 325string name when name.StartsWith("env-acr") => new Dictionary<string, object> 330string name when name.StartsWith("env") => new Dictionary<string, object> 391string name when name.StartsWith("env-acr") => new Dictionary<string, object> 396string name when name.StartsWith("env") => new Dictionary<string, object> 457string name when name.StartsWith("env-acr") => new Dictionary<string, object> 462string name when name.StartsWith("env") => new Dictionary<string, object> 513string name when name.StartsWith("env-acr") => new Dictionary<string, object> 518string name when name.StartsWith("env") => new Dictionary<string, object> 576string name when name.StartsWith("aca-env-acr") => new Dictionary<string, object> 581string name when name.StartsWith("aca-env") => new Dictionary<string, object> 590string name when name.StartsWith("aas-env-acr") => new Dictionary<string, object> 595string name when name.StartsWith("aas-env") => new Dictionary<string, object> 864string name when name.StartsWith("env-acr") => new Dictionary<string, object> 869string name when name.StartsWith("env") => new Dictionary<string, object> 928string name when name.StartsWith("env-acr") => new Dictionary<string, object> 933string name when name.StartsWith("env") => new Dictionary<string, object> 1094string name when name.StartsWith("env-acr") => new Dictionary<string, object> 1099string name when name.StartsWith("env") => new Dictionary<string, object> 1108string name when name.StartsWith("funcstorage") => new Dictionary<string, object> 1116string name when name.StartsWith("hoststorage") => new Dictionary<string, object> 1124string name when name.StartsWith("funcapp-identity") => new Dictionary<string, object> 1130string name when name.StartsWith("funcapp-containerapp") => new Dictionary<string, object> 1137string name when name.StartsWith("funcapp") => new Dictionary<string, object> 1214string name when name.StartsWith("env") => new Dictionary<string, object> 1222string name when name.StartsWith("kv") => new Dictionary<string, object> 1625Profiles = new Dictionary<string, LaunchProfile>
AzureEnvironmentResourceExtensionsTests.cs (5)
5223private readonly Dictionary<string, IReadOnlyList<ContextSubscriptionResource>> _subscriptionsByTenant = new(StringComparer.OrdinalIgnoreCase) 5228private readonly Dictionary<string, IReadOnlyList<(string Name, string Location)>> _resourceGroupsBySubscription = new(StringComparer.OrdinalIgnoreCase) 5364private readonly Dictionary<string, JsonObject> _sections = new(StringComparer.Ordinal); 5429private readonly Dictionary<string, string?> _provisionedLocations = new(StringComparer.Ordinal); 5463return new Dictionary<string, string?>(_provisionedLocations, StringComparer.Ordinal);
AzureEnvironmentResourceTests.cs (1)
359public IDictionary<string, object?> Parameters { get; } = new Dictionary<string, object?>();
AzureEventHubsExtensionsTests.cs (1)
594var target = new Dictionary<string, object>();
AzureFunctionsTests.cs (7)
466Profiles = new Dictionary<string, LaunchProfile> 483Profiles = new Dictionary<string, LaunchProfile> 500Profiles = new Dictionary<string, LaunchProfile> 517Profiles = new Dictionary<string, LaunchProfile> 533Profiles = new Dictionary<string, LaunchProfile> 550Profiles = new Dictionary<string, LaunchProfile> 567Profiles = new Dictionary<string, LaunchProfile>
AzureServiceBusExtensionsTests.cs (1)
695var target = new Dictionary<string, object>();
BicepUtilitiesTests.cs (4)
444configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 468configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 495configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 534configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?>
DefaultArmClientProviderTests.cs (1)
868private readonly Dictionary<string, List<string>> _headers = new(StringComparer.OrdinalIgnoreCase);
DefaultAzurePrincipalProviderTests.cs (1)
324var payload = new Dictionary<string, object?>
ProvisioningTestHelpers.cs (3)
250: this(new Dictionary<string, object>()) 275public TestArmClient() : this(new Dictionary<string, object>()) 976public TestArmClientProvider() : this(new Dictionary<string, object>())
PublicApiTests\FunctionsPublicApiTests.cs (1)
102Profiles = new Dictionary<string, LaunchProfile>
ResourceWithAzureFunctionsConfigTests.cs (21)
110var target = new Dictionary<string, object>(); 128var target = new Dictionary<string, object>(); 149var target = new Dictionary<string, object>(); 166var target = new Dictionary<string, object>(); 183var target = new Dictionary<string, object>(); 199var target = new Dictionary<string, object>(); 215var target = new Dictionary<string, object>(); 231var target = new Dictionary<string, object>(); 248var target = new Dictionary<string, object>(); 273var target = new Dictionary<string, object>(); 301var target = new Dictionary<string, object>(); 323var target = new Dictionary<string, object>(); 343var target = new Dictionary<string, object>(); 363var target = new Dictionary<string, object>(); 383var target = new Dictionary<string, object>(); 400var target = new Dictionary<string, object>(); 419var target = new Dictionary<string, object>(); 439var target = new Dictionary<string, object>(); 458var target = new Dictionary<string, object>(); 479var target = new Dictionary<string, object>(); 501var target = new Dictionary<string, object>();
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubResource.cs (1)
20internal Dictionary<string, AzureWebPubSubHubResource> Hubs { get; } = new(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Blazor (1)
Manifests\EndpointsManifestTransformer.cs (1)
80var mergedChildren = new Dictionary<string, AssetNode>();
Aspire.Hosting.Blazor.Tests (28)
BlazorHostedExtensionsTests.cs (1)
507var env = new Dictionary<string, object>();
EndpointsManifestTransformerTests.cs (7)
138Children = new Dictionary<string, AssetNode> 142Children = new Dictionary<string, AssetNode> 159Children = new Dictionary<string, AssetNode> 163Children = new Dictionary<string, AssetNode> 219Children = new Dictionary<string, AssetNode> 232Children = new Dictionary<string, AssetNode> 275Children = new Dictionary<string, AssetNode>
GatewayConfigurationBuilderTests.cs (20)
23var env = new Dictionary<string, object>(); 46var env = new Dictionary<string, object>(); 68var env = new Dictionary<string, object>(); 95var env = new Dictionary<string, object>(); 121var env = new Dictionary<string, object>(); 141var env = new Dictionary<string, object>(); 167var env = new Dictionary<string, object>(); 192var env = new Dictionary<string, object>(); 215var env = new Dictionary<string, object> 247var env = new Dictionary<string, object>(); 268var env = new Dictionary<string, object>(); 294var env = new Dictionary<string, object>(); 318var env = new Dictionary<string, object>(); 341var env = new Dictionary<string, object>(); 366var env = new Dictionary<string, object>(); 397var env = new Dictionary<string, object>(); 456var env = new Dictionary<string, object>(); 485var env = new Dictionary<string, object>(); 504Environment = new Dictionary<string, string> 530var env = new Dictionary<string, object>();
Aspire.Hosting.Browsers (7)
BrowserHostRegistry.cs (1)
21private readonly Dictionary<BrowserHostIdentity, BrowserHostEntry> _hosts = new();
BrowserLogsCdpProtocol.cs (1)
898var properties = new Dictionary<string, BrowserLogsCdpProtocolValue>(StringComparer.Ordinal);
BrowserLogsConfigurationManager.cs (1)
208var options = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
BrowserLogsConfigurationStore.cs (1)
12private readonly Dictionary<string, BrowserConfiguration> _resourceConfigurations = new(StringComparers.ResourceName);
BrowserLogsEventLogger.cs (1)
27private readonly Dictionary<string, BrowserNetworkRequestState> _networkRequests = new(StringComparer.Ordinal);
BrowserLogsSessionManager.cs (1)
575public Dictionary<string, ActiveBrowserSession> ActiveSessions { get; } = new(StringComparer.Ordinal);
ChromiumBrowserResolver.cs (1)
165var profiles = new Dictionary<string, ChromiumBrowserProfile>(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Browsers.Tests (8)
BrowserLogsBuilderExtensionsTests.cs (1)
1937public Dictionary<string, string> Secrets { get; } = new(StringComparer.Ordinal);
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
21private readonly Dictionary<BrowserHostIdentity, BrowserHostEntry> _hosts = new();
src\Aspire.Hosting.Browsers\BrowserLogsCdpProtocol.cs (1)
898var properties = new Dictionary<string, BrowserLogsCdpProtocolValue>(StringComparer.Ordinal);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
208var options = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationStore.cs (1)
12private readonly Dictionary<string, BrowserConfiguration> _resourceConfigurations = new(StringComparers.ResourceName);
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (1)
27private readonly Dictionary<string, BrowserNetworkRequestState> _networkRequests = new(StringComparer.Ordinal);
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (1)
575public Dictionary<string, ActiveBrowserSession> ActiveSessions { get; } = new(StringComparer.Ordinal);
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (1)
165var profiles = new Dictionary<string, ChromiumBrowserProfile>(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.CodeGeneration.Go (14)
AtsGoCodeGenerator.cs (13)
17public Dictionary<string, GoExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal); 49private readonly Dictionary<string, string> _interfaceNames = new(StringComparer.Ordinal); 52private readonly Dictionary<string, string> _implNames = new(StringComparer.Ordinal); 55private readonly Dictionary<string, bool> _isInterfaceType = new(StringComparer.Ordinal); 58private readonly Dictionary<string, bool> _isResourceBuilder = new(StringComparer.Ordinal); 60private readonly Dictionary<string, string> _dtoNames = new(StringComparer.Ordinal); 61private readonly Dictionary<string, string> _enumNames = new(StringComparer.Ordinal); 64private readonly Dictionary<string, string> _optionsTypeNames = new(StringComparer.Ordinal); 72return new Dictionary<string, string>(StringComparer.Ordinal) 244var optionsNameFirstCapability = new Dictionary<string, AtsCapabilityInfo>(StringComparer.Ordinal); 390var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 415var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 1636var seenForCapability = new Dictionary<string, string>(StringComparer.Ordinal);
GoLanguageSupport.cs (1)
33var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.Java (11)
AtsJavaCodeGenerator.cs (10)
15public Dictionary<string, JavaExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal); 38private readonly Dictionary<string, string> _classNames = new(StringComparer.Ordinal); 39private readonly Dictionary<string, string> _dtoNames = new(StringComparer.Ordinal); 40private readonly Dictionary<string, string> _enumNames = new(StringComparer.Ordinal); 41private readonly Dictionary<string, List<AtsParameterInfo>> _optionsClassesToGenerate = new(StringComparer.Ordinal); 42private readonly Dictionary<string, string> _capabilityOptionsClassMap = new(StringComparer.Ordinal); 53var files = new Dictionary<string, string>(StringComparer.Ordinal); 119var declarations = new Dictionary<string, string>(StringComparer.Ordinal); 2422var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 2459var typeIds = new Dictionary<string, bool>(StringComparer.Ordinal);
JavaLanguageSupport.cs (1)
48var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.Python (18)
AtsPythonCodeGenerator.cs (9)
29public Dictionary<string, PythonExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal); 126private readonly Dictionary<string, MergedCapabilityDispatch> _mergedCapabilityDispatches = new(StringComparer.Ordinal); 136private readonly Dictionary<string, string> _wrapperClassNames = new(StringComparer.Ordinal); 139private readonly Dictionary<string, string> _enumTypeNames = new(StringComparer.Ordinal); 638var files = new Dictionary<string, string>(); 1828var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>(); 1831var typeRefsByTypeId = new Dictionary<string, AtsTypeRef>(); 1834var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>(); 2086var typeRefs = new Dictionary<string, AtsTypeRef>();
PythonLanguageSupport.cs (1)
66var files = new Dictionary<string, string>();
PythonModuleBuilder.cs (8)
33public Dictionary<string, StringBuilder> TypeClasses { get; } = new(); 38public Dictionary<string, StringBuilder> InterfaceClasses { get; } = new(); 43public Dictionary<string, StringBuilder> ResourceBuilders { get; } = new(); 48public Dictionary<string, StringBuilder> ResourceOptions { get; } = new(); 53public Dictionary<string, List<string>> ResourceOptionNames { get; } = new(); 58public Dictionary<string, StringBuilder> ResourceClasses { get; } = new(); 68public Dictionary<string, string> HandleRegistrations { get; } = new(); 73public Dictionary<string, StringBuilder> MethodParameters { get; } = new();
Aspire.Hosting.CodeGeneration.Rust (7)
AtsRustCodeGenerator.cs (6)
30private readonly Dictionary<string, string> _structNames = new(StringComparer.Ordinal); 31private readonly Dictionary<string, string> _dtoNames = new(StringComparer.Ordinal); 32private readonly Dictionary<string, string> _enumNames = new(StringComparer.Ordinal); 40return new Dictionary<string, string>(StringComparer.Ordinal) 841var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 1208public Dictionary<string, RustExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal);
RustLanguageSupport.cs (1)
37var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.TypeScript (19)
AtsTypeScriptCodeGenerator.cs (1)
425var files = new Dictionary<string, string>();
TypeScriptApiProjector.cs (16)
459var declarations = new Dictionary<string, TypeScriptApiDeclaration>(StringComparer.Ordinal) 1374new Dictionary<string, IReadOnlyList<ClientOnlyDtoProperty>>(StringComparer.Ordinal) 1563private readonly Dictionary<string, string> _wrapperClassNames = new(StringComparer.Ordinal); 1567private readonly Dictionary<string, string> _concreteTypeIds = new(StringComparer.Ordinal); 1569private readonly Dictionary<string, AtsTypeRef> _typeRefsById = new(StringComparer.Ordinal); 1582private readonly Dictionary<string, List<AtsParameterInfo>> _optionsInterfacesToGenerate = new(StringComparer.Ordinal); 1588private readonly Dictionary<string, string> _capabilityOptionsInterfaceMap = new(StringComparer.Ordinal); 1594private readonly Dictionary<string, string> _optionsInterfaceOwningAssemblies = new(StringComparer.Ordinal); 1598private readonly Dictionary<string, string> _enumTypeNames = new(StringComparer.Ordinal); 1602private readonly Dictionary<string, AtsDocumentationInfo> _handleDocumentationById = new(StringComparer.Ordinal); 1606private readonly Dictionary<string, AtsDtoTypeInfo> _dtoTypesById = new(StringComparer.Ordinal); 2571var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>(); 2574var typeRefsByTypeId = new Dictionary<string, AtsTypeRef>(); 2577var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>(); 2856var typeRefs = new Dictionary<string, AtsTypeRef>(); 3044public Dictionary<string, ExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal);
TypeScriptLanguageSupport.cs (2)
65var files = new Dictionary<string, string>(); 290MigrationFiles = new Dictionary<string, string>
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
1312var constructorHandleTypes = new Dictionary<string, string>(StringComparer.Ordinal);
Aspire.Hosting.Containers.Tests (6)
TestcontainersPodmanConfigurationTests.cs (6)
59environment: new() { [DockerHostVariable] = "npipe://./pipe/docker_engine" }, 72environment: new() { [DockerHostVariable] = "npipe:////./pipe/podman-machine-default" }, 83environment: new() { [DockerHostVariable] = "unix:///var/run/docker.sock" }, 100environment: new() { [DockerHostVariable] = dockerHost }, 113environment: new() 167environment: new() { [RyukDisabledVariable] = "false" },
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
489var schemeIndexTracker = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelCliClientTests.cs (1)
22.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Docker (3)
DockerComposeEnvironmentResource.cs (1)
55internal Dictionary<IResource, DockerComposeServiceResource> ResourceMapping { get; } = new(new ResourceNameComparer());
DockerComposeServiceResource.cs (1)
219var env = new Dictionary<string, string>();
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (1)
12public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Aspire.Hosting.Docker.Tests (5)
DockerComposePublisherTests.cs (3)
1168public TestProjectWithLaunchSettings() => Profiles = new() 1175EnvironmentVariables = new() 1185EnvironmentVariables = new()
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.EntityFrameworkCore (6)
EFCoreOperationExecutor.cs (6)
540return await ExecuteEfCommandAsync("database", "drop", new Dictionary<string, string?> 568var args = new Dictionary<string, string?> 589return await ExecuteEfCommandAsync("migrations", "remove", new Dictionary<string, string?> 600var result = await ExecuteEfCommandAsync("migrations", "list", new Dictionary<string, string?> 701var args = new Dictionary<string, string?>(); 732var args = new Dictionary<string, string?>();
Aspire.Hosting.Foundry (7)
HostedAgent\AzureHostedAgentResource.cs (2)
309var collectedEnvVars = new Dictionary<string, object>(); 322var resolvedEnvVars = new Dictionary<string, string>();
HostedAgent\HostedAgentConfiguration.cs (2)
29public IDictionary<string, string> Metadata { get; init; } = new Dictionary<string, string>() 107public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
HostedAgent\HostedAgentOptions.cs (2)
40public IDictionary<string, string> Metadata { get; init; } = new Dictionary<string, string>(); 46public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
PromptAgent\AzurePromptAgentResource.cs (1)
127public IDictionary<string, string> Metadata { get; init; } = new Dictionary<string, string>()
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
2149var attributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Java.Tests (2)
AddJavaAppTests.cs (2)
908var envVars = new Dictionary<string, object>(); 1362new Dictionary<string, string>(),
Aspire.Hosting.JavaScript.Tests (12)
AddBunAppTests.cs (2)
253var envVars = new Dictionary<string, object>(); 283var envVars = new Dictionary<string, object>();
AddViteAppTests.cs (10)
570var env = new Dictionary<string, object>(); 630var env = new Dictionary<string, object>(); 682var env = new Dictionary<string, object>(); 728var env = new Dictionary<string, object>(); 777var env = new Dictionary<string, object>(); 839var env = new Dictionary<string, object>(); 908var configPaths = new Dictionary<string, string>(); 919EnvironmentVariables = new Dictionary<string, object>(), 1017var env = new Dictionary<string, object>(); 1115EnvironmentVariables = new Dictionary<string, object>(),
Aspire.Hosting.Kubernetes (17)
Deployment\HelmDeploymentEngine.cs (2)
299var overrideValues = new Dictionary<string, Dictionary<string, Dictionary<string, object>>>(); 303var resolvedLookup = new Dictionary<string, string>();
Extensions\ResourceExtensions.cs (1)
220bindingsByVolumeName = new Dictionary<string, KubernetesPersistentVolumeBindingAnnotation>(StringComparer.Ordinal);
KubernetesEnvironmentContext.cs (1)
11private readonly Dictionary<IResource, KubernetesResource> _kubernetesComponents = new(new ResourceNameComparer());
KubernetesEnvironmentResource.cs (2)
459var deploymentTargets = new Dictionary<IResource, KubernetesResource>(new ResourceNameComparer()); 781var pathsByHost = new Dictionary<string, List<IngressPathConfig>>();
KubernetesManifestResource.cs (2)
132var childFields = new Dictionary<string, object?>(StringComparer.Ordinal); 237var result = new Dictionary<string, object?>(StringComparer.Ordinal);
KubernetesPublishingContext.cs (8)
27private readonly Dictionary<string, Dictionary<string, object>> _helmValues = new() 29[HelmExtensions.ParametersKey] = new Dictionary<string, object>(), 30[HelmExtensions.SecretsKey] = new Dictionary<string, object>(), 31[HelmExtensions.ConfigKey] = new Dictionary<string, object>(), 178resourceSection = new Dictionary<string, object>(); 217var result = new Dictionary<string, KubernetesResource.HelmValue>(StringComparer.Ordinal); 218var origins = new Dictionary<string, string>(StringComparer.Ordinal); 265var paramValues = new Dictionary<string, object>();
KubernetesResource.cs (1)
161Labels = new()
Aspire.Hosting.Kubernetes.Tests (8)
KubernetesDeployTests.cs (3)
1072var lookup = new Dictionary<string, string> 1086var lookup = new Dictionary<string, string> 1100var lookup = new Dictionary<string, string>();
KubernetesPublisherTests.cs (3)
1914public TestProjectWithLaunchSettings() => Profiles = new() 1921EnvironmentVariables = new() 1931EnvironmentVariables = new()
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Maui (7)
MauiAndroidExtensions.cs (2)
175var msBuildProperties = new Dictionary<string, string>(); 380var msBuildProperties = new Dictionary<string, string>();
MauiiOSExtensions.cs (2)
182var msBuildProperties = new Dictionary<string, string> 391var msBuildProperties = new Dictionary<string, string>();
MauiMacCatalystExtensions.cs (1)
115msBuildProperties: new Dictionary<string, string>
Utilities\MauiEnvironmentHelper.cs (1)
40var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Utilities\ProjectFileReader.cs (1)
32var platformCache = s_projectCache.GetOrAdd(projectPath, _ => new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase));
Aspire.Hosting.Maui.Tests (18)
MauiEnvironmentHelperTests.cs (9)
18var envVars = new Dictionary<string, string> 35var envVars = new Dictionary<string, string> 55var envVars = new Dictionary<string, string> 72var envVars = new Dictionary<string, string> 88var envVars = new Dictionary<string, string> 112var envVars = new Dictionary<string, string> 128var envVars = new Dictionary<string, string> 148var envVars = new Dictionary<string, string> 165var envVars = new Dictionary<string, string>
MauiPlatformExtensionsTests.cs (9)
47new Dictionary<string, string> { ["OpenArguments"] = "-W" }), 56new Dictionary<string, string> { ["AdbTarget"] = "-d" }), 65new Dictionary<string, string> { ["AdbTarget"] = "-e" }), 74new Dictionary<string, string> { ["RuntimeIdentifier"] = "ios-arm64" }), 368Assert.Equal(new Dictionary<string, string> { ["AdbTarget"] = "-s abc12345" }, launchConfiguration.MsBuildProperties); 391Assert.Equal(new Dictionary<string, string> { ["AdbTarget"] = "-s Pixel_5_API_33" }, launchConfiguration.MsBuildProperties); 415Assert.Equal(new Dictionary<string, string> 442Assert.Equal(new Dictionary<string, string> 906configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
72private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
125private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
15private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.MySql.Tests (6)
MySqlFunctionalTests.cs (6)
91hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 168hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 238hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 349hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 433hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 504hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
111var data = new Dictionary<string, object>
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
109private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.Orleans.Tests (1)
OrleansProviderTypeTests.cs (1)
120var env = new Dictionary<string, object>();
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
91private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.PostgreSQL.Tests (5)
PostgresFunctionalTests.cs (5)
119hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 242hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 305hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 408hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 492hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Qdrant.Tests (3)
QdrantFunctionalTests.cs (3)
45hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 131hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 177hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Radius (45)
Annotations\RadiusRecipeParametersAnnotation.cs (2)
22public Dictionary<string, object> EnvironmentWide { get; } = new(StringComparer.Ordinal); 29public Dictionary<string, Dictionary<string, object>> ByResourceType { get; } = new(StringComparer.Ordinal);
Publishing\BicepPostProcessor.cs (1)
300var seen = new Dictionary<string, string>(StringComparer.Ordinal);
Publishing\RadiusInfrastructureBuilder.cs (32)
47private readonly Dictionary<string, ProvisioningParameter> _envParametersByName = new(StringComparer.Ordinal); 51private readonly Dictionary<string, ParameterResource> _deployParametersByIdentifier = new(StringComparer.Ordinal); 56private readonly Dictionary<string, ProvisioningParameter> _recipeParameters = new(StringComparer.Ordinal); 61private readonly Dictionary<string, ParameterResource> _recipeParameterBindings = new(StringComparer.Ordinal); 65private readonly Dictionary<string, string> _recipeParameterIdentifiers = new(StringComparer.Ordinal); 74private static readonly Dictionary<string, string> s_defaultRecipeTemplates = new(StringComparer.Ordinal) 132var udtRecipeEntries = new Dictionary<string, RecipeEntry>(StringComparer.Ordinal); 133var legacyRecipeEntries = new Dictionary<string, Dictionary<string, RecipeEntry>>(StringComparer.Ordinal); 134var typeInstancesByResourceName = new Dictionary<string, RadiusResourceTypeConstruct>(StringComparer.Ordinal); 246var instanceParents = new Dictionary<RadiusResourceTypeConstruct, (ProvisionableResource? Env, ProvisionableResource App)>(); 268var containerConnectionTargets = new Dictionary<RadiusContainerConstruct, Dictionary<string, RadiusResourceTypeConstruct>>(); 276var containerPortSnapshots = new Dictionary<string, Dictionary<string, (int Port, string Protocol)>>(StringComparer.Ordinal); 385var deployParameters = new Dictionary<string, ParameterResource>(_deployParametersByIdentifier, StringComparer.Ordinal); 637var resolved = new Dictionary<IResource, (string ResourceType, string ApiVersion)>(); 877byName = new Dictionary<string, RecipeEntry>(StringComparer.Ordinal); 993var connections = new Dictionary<string, RadiusResourceTypeConstruct>(StringComparer.Ordinal); 1065var ports = new Dictionary<string, ContainerPortConstruct>(StringComparer.Ordinal); 1116var result = new Dictionary<string, ContainerEnvVarConstruct>(StringComparer.Ordinal); 1459var containersByMapKey = new Dictionary<string, RadiusContainerConstruct>(StringComparer.Ordinal); 1668var effective = new Dictionary<string, object>(annotation.EnvironmentWide, StringComparer.Ordinal); 1942var storeConstructs = new Dictionary<string, RadiusSecretStoreConstruct>(StringComparer.Ordinal); 1993var bicepAuth = new Dictionary<string, object>(StringComparer.Ordinal); 1994var gitPat = new Dictionary<string, object>(StringComparer.Ordinal); 1995var envSecrets = new Dictionary<string, object>(StringComparer.Ordinal); 2003bicepAuth[consumer.Selector!] = new Dictionary<string, object> { ["secret"] = secretRef }; 2006gitPat[consumer.Selector!] = new Dictionary<string, object> { ["secret"] = secretRef }; 2009envSecrets[consumer.Selector!] = new Dictionary<string, object> 2021var recipeConfig = new Dictionary<string, object>(StringComparer.Ordinal); 2024recipeConfig["bicep"] = new Dictionary<string, object> { ["authentication"] = bicepAuth }; 2029recipeConfig["terraform"] = new Dictionary<string, object> 2031["authentication"] = new Dictionary<string, object> 2033["git"] = new Dictionary<string, object> { ["pat"] = gitPat },
Publishing\RadiusInfrastructureOptions.cs (3)
88internal Dictionary<string, ValidatedManifest> SealedSecretManifests { get; } = new(StringComparer.Ordinal); 97internal Dictionary<string, ProvisioningParameter> RecipeParameters { get; } = new(StringComparer.Ordinal); 104internal Dictionary<string, ParameterResource> RecipeParameterBindings { get; } = new(StringComparer.Ordinal);
Recipes\RadiusRecipeParameterExtensions.cs (3)
72var staging = new Dictionary<string, object>(StringComparer.Ordinal); 106var staging = new Dictionary<string, object>(StringComparer.Ordinal); 112target = new Dictionary<string, object>(StringComparer.Ordinal);
ResourceMapping\ResourceTypeMapper.cs (1)
49private static readonly Dictionary<string, RadiusTypeMapping> s_typeMappings = new(StringComparer.Ordinal)
Secrets\RadiusSecretStorePopulation.cs (1)
27public Dictionary<string, RadiusSecretKeyBinding> Data { get; } = new(StringComparer.Ordinal);
Secrets\RadiusSecretStoreValidation.cs (2)
348var appScoped = new Dictionary<string, RadiusSecretStoreResource>(StringComparer.Ordinal); 349var envScoped = new Dictionary<(string? EnvironmentName, string Identifier), RadiusSecretStoreResource>();
Aspire.Hosting.Radius.Tests (4)
Recipes\RecipePackParametersBicepTests.cs (1)
33p["settings"] = new Dictionary<string, object> { ["tier"] = "standard", ["replicas"] = 3 };
Recipes\RecipeParameterAdvancedTests.cs (3)
50p["settings"] = new Dictionary<string, object?> 52["connection"] = new Dictionary<string, object?> 139p["scope"] = new Dictionary<string, object?>
Aspire.Hosting.Redis.Tests (8)
RedisFunctionalTests.cs (8)
113hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 153hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 255hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 292hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 338hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 373hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 423hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 454hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.RemoteHost (25)
Ats\CapabilityDispatcher.cs (1)
32private readonly Dictionary<string, HashSet<string>> _polyglotMethodNamesByClrName = new(StringComparer.Ordinal);
AtsCapabilityScanner.cs (16)
51public Dictionary<string, MethodInfo> Methods { get; init; } = new(); 57public Dictionary<string, PropertyInfo> Properties { get; init; } = new(); 93private readonly Dictionary<string, AtsEnumTypeInfo> _enums = new(StringComparer.Ordinal); 147var allMethods = new Dictionary<string, MethodInfo>(); 148var allProperties = new Dictionary<string, PropertyInfo>(); 149var seenCapabilities = new Dictionary<string, AtsCapabilityInfo>(); // Track capability ID -> first capability for duplicate detection 306var methods = new Dictionary<string, MethodInfo>(); 307var properties = new Dictionary<string, PropertyInfo>(); 311var discoveredResourceTypes = new Dictionary<string, Type>(); 533var enumTypes = new Dictionary<string, Type>(StringComparer.Ordinal); 873var typeToCompatibleTypes = new Dictionary<string, List<AtsTypeRef>>(); 953var expandedTargetsToRemove = new Dictionary<string, HashSet<string>>(StringComparer.Ordinal); 1527public Dictionary<string, MethodInfo> Methods { get; init; } = new(); 1532public Dictionary<string, PropertyInfo> Properties { get; init; } = new(); 1543var methods = new Dictionary<string, MethodInfo>(); 1544var properties = new Dictionary<string, PropertyInfo>();
AtsContextFilter.cs (1)
360var referencedHandleTypes = new Dictionary<string, AtsTypeRef>(StringComparer.Ordinal);
CodeGeneration\CodeGeneratorResolver.cs (2)
105var generators = new Dictionary<string, ICodeGenerator>(StringComparer.OrdinalIgnoreCase); 155var exporters = new Dictionary<string, IApiReferenceExporter>(StringComparer.OrdinalIgnoreCase);
Language\LanguageSupportResolver.cs (1)
63var languages = new Dictionary<string, ILanguageSupport>(StringComparer.OrdinalIgnoreCase);
src\Shared\IntegrationPackageProbeManifest.cs (4)
46var managedLookup = new Dictionary<string, IntegrationPackageManagedAssembly>(StringComparer.OrdinalIgnoreCase); 63var nativeLookup = new Dictionary<string, IntegrationPackageNativeLibrary>(StringComparer.OrdinalIgnoreCase); 270var lookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 282var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.RemoteHost.Tests (22)
AssemblyLoaderTests.cs (5)
52.AddInMemoryCollection(new Dictionary<string, string?> 99.AddInMemoryCollection(new Dictionary<string, string?> 160.AddInMemoryCollection(new Dictionary<string, string?> 176.AddInMemoryCollection(new Dictionary<string, string?> 231.AddInMemoryCollection(new Dictionary<string, string?>
AtsExportsTests.cs (1)
22.AddInMemoryCollection(new Dictionary<string, string?>
AtsMarshallerTests.cs (1)
553var dict = new Dictionary<string, int> { ["a"] = 1 };
CapabilityDispatcherTests.cs (3)
2536return new Dictionary<string, object> 2547return new Dictionary<string, int> 2558return new Dictionary<int, string>
CodeGeneration\ApiReferenceExportTests.cs (3)
134var service = CreateCodeGenerationService(new Dictionary<string, string?> 220var configurationValues = new Dictionary<string, string?> 261.AddInMemoryCollection(new Dictionary<string, string?> { ["ASPIRE_REMOTE_APPHOST_TOKEN"] = "test-token" })
CodeGenerationResolverTests.cs (1)
95.AddInMemoryCollection(new Dictionary<string, string?>
JsonRpcAuthenticationTests.cs (1)
113builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
OrphanDetectorTests.cs (5)
34.AddInMemoryCollection(new Dictionary<string, string?> { ["REMOTE_APP_HOST_PID"] = "1111" }) 55.AddInMemoryCollection(new Dictionary<string, string?> 80.AddInMemoryCollection(new Dictionary<string, string?> 105.AddInMemoryCollection(new Dictionary<string, string?> 130.AddInMemoryCollection(new Dictionary<string, string?>
ServiceErrorMessageTests.cs (2)
73.AddInMemoryCollection(new Dictionary<string, string?> 120.AddInMemoryCollection(new Dictionary<string, string?>())
Aspire.Hosting.Rust.Tests (19)
CargoMetadataTests.cs (15)
100var environment = new Dictionary<string, string> 117var environment = new Dictionary<string, string> { ["REGISTRY_TOKEN"] = " secret " }; 129var environment = new Dictionary<string, string> { ["REGISTRY_TOKEN"] = Secret }; 142var resourceEnvironment = new Dictionary<string, string>(); 143var inheritedEnvironment = new Dictionary<string, string?> 160var inheritedEnvironment = new Dictionary<string, string?> 167new Dictionary<string, string>(), 183var inheritedEnvironment = new Dictionary<string, string?> 190new Dictionary<string, string>(), 201var inheritedEnvironment = new Dictionary<string, string?> 208new Dictionary<string, string>(), 217var environment = new Dictionary<string, string> { ["API_TOKEN"] = "1" }; 227var environment = new Dictionary<string, string> 241var environment = new Dictionary<string, string> { ["API_TOKEN"] = "1" }; 257new Dictionary<string, string>());
FakeCargoMetadataReader.cs (1)
18public IReadOnlyDictionary<string, string> LastEnvironment { get; private set; } = new Dictionary<string, string>();
RustPublicApiTests.cs (3)
320new Dictionary<string, string> 409environmentVariables: new Dictionary<string, string> { ["CARGO_TARGET_DIR"] = "/first-target" }); 412environmentVariables: new Dictionary<string, string> { ["CARGO_TARGET_DIR"] = "/second-target" });
Aspire.Hosting.Sdk.Tests (20)
AppHostSdkTargetsTests.cs (20)
146new Dictionary<string, string> 237environment: new Dictionary<string, string> 256environment: new Dictionary<string, string> 276new Dictionary<string, string> 312new Dictionary<string, string> { ["AspireCliPath"] = aspireCliPath }); 337new Dictionary<string, string> 407? new Dictionary<string, string> { [SuppressCliRunHookEnvironmentVariable] = suppressionValue } 429var environment = new Dictionary<string, string> 466var environment = new Dictionary<string, string> 506var environment = new Dictionary<string, string> 547var environment = new Dictionary<string, string> 599var environment = new Dictionary<string, string> 648var environment = new Dictionary<string, string> 681var environment = new Dictionary<string, string> 708var environment = new Dictionary<string, string> 736var environment = new Dictionary<string, string> 762var environment = new Dictionary<string, string> 821new Dictionary<string, string> 927var environment = new Dictionary<string, string> 1778return new Dictionary<string, string>
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
129private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.SqlServer.Tests (2)
SqlServerFunctionalTests.cs (2)
189hb1.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 275hb2.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Testing (3)
DistributedApplicationFactory.cs (2)
200var additionalConfig = new Dictionary<string, string?>(); 271var additionalConfig = new Dictionary<string, string?>();
DistributedApplicationTestingBuilder.cs (1)
408configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Tests (279)
AddParameterTests.cs (14)
50appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 79appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 131appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 217appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 287appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 618InvokeWithCustomInputForPolyglot(parameter, new Dictionary<string, object?> 623[nameof(InteractionInput.Options)] = new Dictionary<string, string> 679InvokeWithCustomInputForPolyglot(parameter, new Dictionary<string, object?> 685[nameof(InteractionInput.Options)] = new Dictionary<string, string>() 703foreach (var (propertyName, value) in properties ?? new Dictionary<string, object?>()) 721appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 744appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 768appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 794appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
AtsHealthCheckExportsTests.cs (1)
23Data = new Dictionary<string, string>
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (9)
26.AddInMemoryCollection(new Dictionary<string, string?> 72.AddInMemoryCollection(new Dictionary<string, string?> 90.AddInMemoryCollection(new Dictionary<string, string?> 944.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, owner.Resource, new Dictionary<string, object>())) 1001.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, owner.Resource, new Dictionary<string, object>())) 1205.EvaluateOnceAsync(new EnvironmentCallbackContext(executionContext, resource, new Dictionary<string, object>())) 2220.AddInMemoryCollection(new Dictionary<string, string?> 2817.AddInMemoryCollection(new Dictionary<string, string?> 2857.AddInMemoryCollection(new Dictionary<string, string?>
Backchannel\AuxiliaryBackchannelTests.cs (3)
337new object[] { "nonexistent-resource", "some-tool", new Dictionary<string, object?>() } 378new object[] { "mycontainer", "some-tool", new Dictionary<string, object?>() } 637.AddInMemoryCollection(new Dictionary<string, string?>
Backchannel\BackchannelContractTests.cs (5)
188Baggage = new() 198var expectedValues = new Dictionary<PropertyInfo, object?>(); 210Baggage = new() 284Baggage = new() 375return new Dictionary<string, string> { ["property"] = propertyName };
Cli\CliOrphanDetectorTests.cs (7)
37.AddInMemoryCollection(new Dictionary<string, string?> { { "ASPIRE_CLI_PID", "1111" } }) 60.AddInMemoryCollection(new Dictionary<string, string?> 85.AddInMemoryCollection(new Dictionary<string, string?> 113.AddInMemoryCollection(new Dictionary<string, string?> 137.AddInMemoryCollection(new Dictionary<string, string?> 183.AddInMemoryCollection(new Dictionary<string, string?> 211.AddInMemoryCollection(new Dictionary<string, string?> { { "ASPIRE_CLI_PID", "1111" } })
ConnectionPropertiesExtensionsTests.cs (1)
26var dict = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Dashboard\DashboardEventHandlersTests.cs (6)
282configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 295var envVars = new Dictionary<string, object>(); 330.AddInMemoryCollection(new Dictionary<string, string?> 346var environmentVariables = new Dictionary<string, object>(); 374.AddInMemoryCollection(new Dictionary<string, string?> 387var environmentVariables = new Dictionary<string, object>();
Dashboard\DashboardOptionsTests.cs (3)
21builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 39builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 62builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dashboard\DashboardResourceTests.cs (14)
33builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 99builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 198builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 233builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 269var config = new Dictionary<string, string?> 304builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 369builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 411builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 447builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 484builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 532builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 579builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 613builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 807var config = new Dictionary<string, string?>
Dashboard\DashboardServiceTests.cs (5)
737configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 790configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 921.AddInMemoryCollection(new Dictionary<string, string?> 953.AddInMemoryCollection(new Dictionary<string, string?> 983.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ConfigureDefaultDcpOptionsTests.cs (4)
23var options = ConfigureWithDcpPublisher(new() 40var options = ConfigureWithDcpPublisher(new() 66var options = ConfigureWithDcpPublisher(new() 88var options = ConfigureWithDcpPublisher(new()
Dcp\DcpCliArgsTests.cs (2)
162builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 191configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\DcpExecutorTests.cs (104)
192configurationBuilder.AddInMemoryCollection(new Dictionary<string, string?> 294var configDict = new Dictionary<string, string?> 833var configDict = new Dictionary<string, string?> 868var configDict = new Dictionary<string, string?> 906var configDict = new Dictionary<string, string?> 1106.AddInMemoryCollection(new Dictionary<string, string?> 1185var configDict = new Dictionary<string, string?> 1223var configDict = new Dictionary<string, string?> 1261var configDict = new Dictionary<string, string?> 1382var configDict = new Dictionary<string, string?> 3493var configDict = new Dictionary<string, string?> 3530var configDict = new Dictionary<string, string?> 4259configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4294configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4339configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4371configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4407configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4447configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4478configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4509configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4539configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4568configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4620.AddInMemoryCollection(new Dictionary<string, string?> 4667var configDict = new Dictionary<string, string?> 4718var configDict = new Dictionary<string, string?> 4860configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 4900.AddInMemoryCollection(new Dictionary<string, string?> 4940.AddInMemoryCollection(new Dictionary<string, string?> 4984.AddInMemoryCollection(new Dictionary<string, string?> 5037.AddInMemoryCollection(new Dictionary<string, string?> 5072configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 5102var configDict = new Dictionary<string, string?> 5218.AddInMemoryCollection(new Dictionary<string, string?> 5255var configDict = new Dictionary<string, string?> 5308var configDict = new Dictionary<string, string?> 5359var configDict = new Dictionary<string, string?> 5582var configDict = new Dictionary<string, string?> 5621var configDict = new Dictionary<string, string?> 5660var configDict = new Dictionary<string, string?> 5696var configDict = new Dictionary<string, string?> 5738var configDict = new Dictionary<string, string?> 5780var configDict = new Dictionary<string, string?> 5822var configDict = new Dictionary<string, string?> 5859var configDict = new Dictionary<string, string?> 5896var configDict = new Dictionary<string, string?> 5938var configDict = new Dictionary<string, string?> 5972var configDict = new Dictionary<string, string?> 6011var configDict = new Dictionary<string, string?> 6053var configDict = new Dictionary<string, string?> 6090var configDict = new Dictionary<string, string?> 6136var configDict = new Dictionary<string, string?> 6193var configDict = new Dictionary<string, string?> 6247var configDict = new Dictionary<string, string?> 6347MsBuildProperties = new Dictionary<string, string> 6360var configDict = new Dictionary<string, string?> 6462.AddInMemoryCollection(new Dictionary<string, string?> 6597.AddInMemoryCollection(new Dictionary<string, string?> 6696.AddInMemoryCollection(new Dictionary<string, string?> 6786.AddInMemoryCollection(new Dictionary<string, string?> 6901.AddInMemoryCollection(new Dictionary<string, string?> 6954.AddInMemoryCollection(new Dictionary<string, string?> 7000var configDict = new Dictionary<string, string?> 7086var configDict = new Dictionary<string, string?> 7127var configDict = new Dictionary<string, string?> 7183var configDict = new Dictionary<string, string?> 7225var configDict = new Dictionary<string, string?> 7305var configDict = new Dictionary<string, string?> 7337var configDict = new Dictionary<string, string?> 7383var configDict = new Dictionary<string, string?> 7424var configDict = new Dictionary<string, string?> 7463var configDict = new Dictionary<string, string?> 7506var configDict = new Dictionary<string, string?> 7706var configDict = new Dictionary<string, string?> 7778var configDict = new Dictionary<string, string?> 7817var configDict = new Dictionary<string, string?> 7851var configDict = new Dictionary<string, string?> 7915var configDict = new Dictionary<string, string?> 7946var configDict = new Dictionary<string, string?> 7978var configDict = new Dictionary<string, string?> 8040var configDict = new Dictionary<string, string?> 8095var configDict = new Dictionary<string, string?> 8146var configDict = new Dictionary<string, string?> 8199var configDict = new Dictionary<string, string?> 8276var configDict = new Dictionary<string, string?> 8311var configDict = new Dictionary<string, string?> 8366var configDict = new Dictionary<string, string?> 8408var configDict = new Dictionary<string, string?> 8445var configDict = new Dictionary<string, string?> 8480var configDict = new Dictionary<string, string?> 8556var configDict = new Dictionary<string, string?> 8639var configDict = new Dictionary<string, string?> 8701var configDict = new Dictionary<string, string?> 8752var configDict = new Dictionary<string, string?> 8795var configDict = new Dictionary<string, string?> 8845var configDict = new Dictionary<string, string?> 9230var configDict = new Dictionary<string, string?> 9283var configDict = new Dictionary<string, string?> 9653var configDict = new Dictionary<string, string?> 9700var configDict = new Dictionary<string, string?> 9744var configDict = new Dictionary<string, string?> 9793var configDict = new Dictionary<string, string?> 10072builder.AddInMemoryCollection(new Dictionary<string, string?> 10366EnvironmentVariables = new Dictionary<string, string> 10376EnvironmentVariables = new Dictionary<string, string>
Dcp\DcpHostNotificationTests.cs (6)
492.AddInMemoryCollection(new Dictionary<string, string?> 536.AddInMemoryCollection(new Dictionary<string, string?> 576var excludedVars = new Dictionary<string, string> 633.AddInMemoryCollection(new Dictionary<string, string?> 874.AddInMemoryCollection(new Dictionary<string, string?> 1048.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ExecutableLaunchPlanTests.cs (4)
30new Dictionary<string, string?> 77new Dictionary<string, string?> 136new Dictionary<string, string?> 157.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ProcessUtilTests.cs (1)
147EnvironmentVariables = new Dictionary<string, string>
Dcp\ResourceSnapshotBuilderTests.cs (5)
76var snapshot = CreateSnapshotBuilder(new Dictionary<string, IResource> 102var snapshotBuilder = CreateSnapshotBuilder(new Dictionary<string, IResource> 141CreateSnapshotBuilder(new Dictionary<string, IResource> 169var snapshotBuilder = CreateSnapshotBuilder(new Dictionary<string, IResource> 290return new(new DcpResourceState(applicationModel ?? new Dictionary<string, IResource>(), []));
DebugSupportExtensionsTests.cs (2)
272new Dictionary<string, string> { ["GO_PACKAGE"] = "./cmd/api" }, 439.AddInMemoryCollection(new Dictionary<string, string?>
Devcontainers\SshRemoteOptionsTests.cs (4)
17.AddInMemoryCollection(new Dictionary<string, string?> 39.AddInMemoryCollection(new Dictionary<string, string?> 60.AddInMemoryCollection(new Dictionary<string, string?> 81.AddInMemoryCollection(new Dictionary<string, string?>
ExpressionResolverTests.cs (1)
349Expressions = new()
FileSystemServiceTests.cs (1)
16var configDict = new Dictionary<string, string?>();
InteractionServiceTests.cs (5)
211configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 239configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 262configBuilder.AddInMemoryCollection(new Dictionary<string, string?> 1079LoadCallback = c => Task.FromResult<IReadOnlyList<KeyValuePair<string, string>>>(new Dictionary<string, string> 1112LoadCallback = c => Task.FromResult<IReadOnlyList<KeyValuePair<string, string>>>(new Dictionary<string, string>
KestrelConfigTests.cs (1)
379Profiles = new()
MSBuildTests.cs (10)
341new Dictionary<string, string> 460BuildProject(appHostDirectory, new Dictionary<string, string> { ["ASPIRE_HOME"] = bundle.LayoutRoot }); 481BuildProject(appHostDirectory, new Dictionary<string, string> 519new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome }); 548new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome }); 577new Dictionary<string, string> { ["ASPIRE_HOME"] = aspireHome }); 605BuildProject(appHostDirectory, new Dictionary<string, string> 637var output = BuildProjectWithFailure(appHostDirectory, new Dictionary<string, string> 659BuildProject(appHostDirectory, new Dictionary<string, string> 796var output = BuildProjectWithFailure(appHostDirectory, new Dictionary<string, string>
Orchestrator\ApplicationOrchestratorTests.cs (3)
367new ChildResourceWithConnectionString("child", new Dictionary<string, string> { { "Namespace", "ns" } }, parentResource.Resource) 370new ChildResourceWithConnectionString("grand-child", new Dictionary<string, string> { { "Database", "db" } }, childResource.Resource) 484new Dictionary<string, string?>
Orchestrator\ParameterProcessorTests.cs (2)
1325.AddInMemoryCollection(new Dictionary<string, string?> { [$"Parameters:{name}"] = value }) 1357.AddInMemoryCollection(new Dictionary<string, string?> { ["Parameters:generatedParam"] = "existingValue" })
PathLookupHelperTests.cs (5)
23new Dictionary<string, string> { ["PATH"] = binPath }); 33new Dictionary<string, string> { ["PATH"] = string.Empty })); 62new Dictionary<string, string> { ["PATH"] = string.Join(Path.PathSeparator, firstBinPath, secondBinPath) }); 80new Dictionary<string, string> { ["PATH"] = binPath }); 100new Dictionary<string, string> { ["PATH"] = binPath });
Pipelines\DistributedApplicationPipelineTests.cs (2)
934var executionTimes = new Dictionary<string, DateTime>(); 2019var executionOrder = new Dictionary<string, int>();
ProjectResourceTests.cs (10)
1068protected Dictionary<string, LaunchProfile>? Profiles { get; set; } = new(); 1082Profiles = new() 1090EnvironmentVariables = new() 1103Profiles = new() 1111EnvironmentVariables = new() 1124Profiles = new() 1132EnvironmentVariables = new() 1145Profiles = new() 1166Profiles = new() 1187Profiles = new()
PublishAsDockerfileTests.cs (1)
531Profiles = new()
Publishing\DeploymentStateManagerTests.cs (4)
398.AddInMemoryCollection(new Dictionary<string, string?> 426.AddInMemoryCollection(new Dictionary<string, string?> 507.AddInMemoryCollection(new Dictionary<string, string?> 534.AddInMemoryCollection(new Dictionary<string, string?>
Publishing\ResourceContainerImageManagerTests.cs (4)
991var secrets = new Dictionary<string, BuildImageSecretValue> 1004var secrets = new Dictionary<string, BuildImageSecretValue> 1017var secrets = new Dictionary<string, BuildImageSecretValue> 1030var secrets = new Dictionary<string, BuildImageSecretValue>
ResourceCommandServiceTests.cs (9)
600new Dictionary<string, string?> { ["message"] = "hello" }, 640new Dictionary<string, string?> { ["message"] = "hello" }, 795var argumentValues = new Dictionary<string, string?> { ["selecter"] = "#submit" }; 827var argumentValues = new Dictionary<string, string?> { ["saveToUserSecrets"] = "true" }; 868var argumentValues = new Dictionary<string, string?> { ["item"] = "banana" }; 1029ArgumentValues = new Dictionary<string, string?> 1119ArgumentValues = new Dictionary<string, string?> 1194ArgumentValues = new Dictionary<string, string?> 1245ArgumentValues = new Dictionary<string, string?> { ["selecter"] = "#submit" },
ResourceDependencyTests.cs (1)
267new EnvironmentCallbackContext(executionContext, executable.Resource, new Dictionary<string, object>()));
SecretsStoreTests.cs (1)
82return new Dictionary<string, string?>();
UserSecretsParameterDefaultTests.cs (2)
106var secretsToWrite = new Dictionary<string, string> 390var secrets = new Dictionary<string, string?>();
VersionChecking\VersionCheckServiceTests.cs (7)
54configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 81configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 116configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 156configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 200configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 228configurationManager.AddInMemoryCollection(new Dictionary<string, string?> 263configurationManager.AddInMemoryCollection(new Dictionary<string, string?>
WithHttpCommandTests.cs (1)
352Headers = new Dictionary<string, string>
WithProcessCommandTests.cs (8)
224EnvironmentVariables = new Dictionary<string, string> 983var environmentVariables = new Dictionary<string, string> 1015environmentVariables: new Dictionary<string, string> 1041environmentVariables: new Dictionary<string, string> 1072EnvironmentVariables = new Dictionary<string, string> 1181EnvironmentVariables = new Dictionary<string, string> 1191EnvironmentVariables = new Dictionary<string, string> 1506EnvironmentVariables = environmentVariables ?? new Dictionary<string, string>(),
WithUrlsTests.cs (1)
1008Profiles = new Dictionary<string, LaunchProfile>
Aspire.Hosting.TestUtilities (6)
Utils\DotnetFileAppProcess.cs (1)
35EnvironmentVariables = environmentVariables ?? new Dictionary<string, string>(),
Utils\Grpc\TestServerCallContext.cs (2)
24_authContext = new AuthContext(string.Empty, new Dictionary<string, List<AuthProperty>>()); 25_userState = new Dictionary<object, object>();
Utils\LaunchConfigurationTestHelpers.cs (1)
21environmentVariables ?? new Dictionary<string, string>(),
Utils\MockUserSecretsManager.cs (1)
22public Dictionary<string, string> Secrets { get; } = new(StringComparer.OrdinalIgnoreCase);
Utils\TestDcpExecutor.cs (1)
11private readonly Dictionary<string, IResourceReference> _resources = new(StringComparers.ResourceName);
Aspire.Hosting.Valkey.Tests (3)
ValkeyFunctionalTests.cs (3)
37hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 101hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 153hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Yarp (3)
ConfigurationBuilder\YarpCluster.cs (1)
77Destinations = new Dictionary<string, DestinationConfig>(StringComparer.OrdinalIgnoreCase)
ConfigurationBuilder\YarpRoute.cs (2)
204var transform = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 224var copiedTransform = new Dictionary<string, string>(transform, StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Yarp.Tests (13)
AddYarpTests.cs (1)
102var env = new Dictionary<string, object>();
YarpConfigGeneratorTests.cs (12)
60new Dictionary<string, string> 64new Dictionary<string, string> 68new Dictionary<string, string> 72new Dictionary<string, string> 78Metadata = new Dictionary<string, string> { { "routeA-K1", "routeA-V1" }, { "routeA-K2", "routeA-V2" } } 120Destinations = new Dictionary<string, DestinationConfig>(StringComparer.OrdinalIgnoreCase) 128Metadata = new Dictionary<string, string> { { "destA-K1", "destA-V1" }, { "destA-K2", "destA-V2" } }, 193Metadata = new Dictionary<string, string> { { "cluster1-K1", "cluster1-V1" }, { "cluster1-K2", "cluster1-V2" } } 198Destinations = new Dictionary<string, DestinationConfig>(StringComparer.OrdinalIgnoreCase) 229var variables = new Dictionary<string, object>(); 248var variables = new Dictionary<string, object>(); 280.WithMetadata(new Dictionary<string, string>() { { "custom-metadata", "some-value" } });
Aspire.Managed.Tests (2)
ParentProcessWatchdogTests.cs (2)
15var environment = new Dictionary<string, string?> 30var environment = new Dictionary<string, string?>
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (2)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (2)
360builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 387builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (2)
310builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 336builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (2)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (2)
78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.MongoDB.EntityFrameworkCore.Tests (2)
AspireMongoDBEntityFrameworkCoreExtensionsTests.cs (2)
264builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 294builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
AspireEFPostgreSqlExtensionsTests.cs (2)
317builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 347builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Oracle.EntityFrameworkCore.Tests (2)
AspireOracleEFCoreDatabaseExtensionsTests.cs (2)
342builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 368builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Playground.Tests (15)
AppHostTests.cs (14)
178resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } }, 186resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 191resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } }, 204resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }), 206resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 213resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } }, 219resourceEndpoints: new() { 228resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 233resourceEndpoints: new() { 247resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } }, 254resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }, 260resourceEndpoints: new() { { "api", ["/alive", "/health"] } }, 267resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 273resourceEndpoints: new() {
Infrastructure\DistributedApplicationExtensions.cs (1)
59var renamedVolumes = new Dictionary<string, string>();
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
AspireEFMySqlExtensionsTests.cs (2)
308builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 336builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Templates.Tests (4)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
35public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
169EnvVars = new Dictionary<string, string>(); 288EnvVars = new Dictionary<string, string>(otherBuildEnvironment.EnvVars);
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.TerminalHost (1)
TerminalReplica.cs (1)
53private readonly Dictionary<string, TerminalHostPeerInfo> _peers = new(StringComparer.Ordinal);
Aspire.TypeSystem (2)
AtsContext.cs (2)
94public Dictionary<string, MethodInfo> Methods { get; } = new(); 99public Dictionary<string, PropertyInfo> Properties { get; } = new();
blazor-devserver (1)
Server\Program.cs (1)
34var inMemoryConfiguration = new Dictionary<string, string?>
cdac-build-tool (11)
ContractDescriptorSourceFileEmitter.cs (1)
80public Dictionary<string, string> Elements { get; } = new();
DataDescriptorModel.cs (10)
98private readonly Dictionary<string, TypeModelBuilder> _types = new(); 99private readonly Dictionary<string, GlobalBuilder> _globals = new(); 100private readonly Dictionary<string, GlobalBuilder> _subDescriptors = new(); 101private readonly Dictionary<string, ContractBuilder> _contracts = new(); 201var types = new Dictionary<string, TypeModel>(); 206var globals = new Dictionary<string, GlobalModel>(); 216var subDescriptors = new Dictionary<string, GlobalModel>(); 226var contracts = new Dictionary<string, string>(); 237private readonly Dictionary<string, FieldBuilder> _fields = new(); 267var fields = new Dictionary<string, FieldModel>();
ConfigurationSchemaGenerator (5)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (2)
26private readonly Dictionary<ITypeSymbol, TypeSpec> _createdTypeSpecs = new(SymbolEqualityComparer.Default); 682(properties ??= new(StringComparer.OrdinalIgnoreCase))[propertyName] = spec;
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (2)
27private readonly Dictionary<TypeRef, bool> _seenTransitiveTypes = new(); 32private readonly Dictionary<MethodsToGen_CoreBindingHelper, HashSet<TypeSpec>> _typesForGen = new();
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
134private readonly Dictionary<ComplexTypeSpec, TypedInterceptorInvocationInfo.Builder> _invocationInfoBuilderCache = new();
ConfigurationSchemaGenerator.Tests (2)
VariousTypes.cs (2)
83public IDictionary<string, TimeSpan> PropertyOfStringToTimeSpan { get; } = new Dictionary<string, TimeSpan>(); 93public IDictionary<string, DefaultSettings> PropertyOfStringToDefaultSettings { get; } = new Dictionary<string, DefaultSettings>();
crossgen2 (9)
Program.cs (4)
32private Dictionary<string, string> _allInputFilePaths = new(); 157Dictionary<string, string> inputFilePaths = new Dictionary<string, string>(); 158Dictionary<string, string> unrootedInputFilePaths = new Dictionary<string, string>(); 280var singleCompilationInputFilePaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (5)
33Dictionary<string, string> dictionary = new(StringComparer.OrdinalIgnoreCase); 46Dictionary<string, string> dictionary = new(StringComparer.OrdinalIgnoreCase); 232Dictionary<string, string> inputToReproPackageFileName = new(); 234Dictionary<string, string> outputToReproPackageFileName = new(); 255Dictionary<string, string> dictionary = new();
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
csc (2)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
dotnet (101)
_generated\103\WorkloadSearchVersionsJsonSerializerContext.DictionaryStringDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>(),
_generated\104\WorkloadSearchVersionsJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\113\WorkloadHistoryJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\164\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\165\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\28\RunFileApiJsonSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\42\RunFileBuildCacheJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\6\CliSchemaJsonSerializerContext.DictionaryStringArgumentDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>(),
_generated\7\CliSchemaJsonSerializerContext.DictionaryStringCommandDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>(),
_generated\72\GlobalJsonWorkloadSetsJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\8\CliSchemaJsonSerializerContext.DictionaryStringOptionDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>(),
_generated\90\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
CliSchema.cs (4)
88var telemetryProperties = new Dictionary<string, string?> { { "command", commandString } }; 130var dict = new Dictionary<string, ArgumentDetails>(); 144var dict = new Dictionary<string, OptionDetails>(); 158var dict = new Dictionary<string, CommandDetails>();
CommandFactory\CommandResolution\ActivityContextFactory.cs (1)
28var environment = new Dictionary<string, string>(capacity: 2);
CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
46TelemetryEventEntry.TrackEvent(CommandResolveEvent, new Dictionary<string, string>()
CommandFactory\CommandResolution\DotnetToolsCommandResolver.cs (1)
12private static readonly IReadOnlyDictionary<string, string> AggregateToolPackages = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
CommandFactory\CommandResolution\MSBuildProject.cs (2)
79return new Dictionary<string, string> 108var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
CommandFactory\CommandSpec.cs (1)
16public IDictionary<string, string> EnvironmentVariables { get; } = environmentVariables ?? new Dictionary<string, string>();
Commands\MSBuild\MSBuildLogger.cs (4)
105private Dictionary<string, Dictionary<string, int>> _aggregatedEvents = new(); 264Dictionary<string, string?> stringProperties = new(); 278eventData = new Dictionary<string, int>(); 368properties ??= new(eventProperties);
Commands\New\BuiltInTemplatePackageProvider.cs (2)
77var versionFileInfo = new Dictionary<string, SemanticVersion>(); 92IDictionary<string, (string path, SemanticVersion version)> bestVersionsByBucket = new Dictionary<string, (string path, SemanticVersion version)>();
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (2)
191Dictionary<string, string?> properties = new() 215var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\New\MSBuildEvaluation\MultiTargetEvaluationResult.cs (1)
15internal IReadOnlyDictionary<string, MSBuildProject?> EvaluatedProjects { get; private set; } = new Dictionary<string, MSBuildProject?>();
Commands\New\NewCommandParser.cs (1)
129var preferences = new Dictionary<string, string>
Commands\Package\Add\PackageAddCommand.cs (1)
87.FromProperties(new Dictionary<string, string>
Commands\Package\List\PackageListCommand.cs (1)
53msbuildArgs: MSBuildArgs.FromProperties(new Dictionary<string, string>
Commands\Package\VirtualProjectPackageReflector.cs (1)
24var packageReferences = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Commands\Restore\RestoringCommand.cs (1)
22new(new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Commands\Run\CommonRunHelpers.cs (2)
42=> new(VirtualProjectBuilder.GetGlobalBuildProperties(), StringComparer.OrdinalIgnoreCase) 106var globalProperties = msbuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\Run\EnvironmentVariablesToMSBuild.cs (3)
42projectInstance.AddItem(Constants.RuntimeEnvironmentVariable, name, new Dictionary<string, string> 65var result = new Dictionary<string, string>(StringComparer.Ordinal); 156var additionalProperties = new ReadOnlyDictionary<string, string>(new Dictionary<string, string>
Commands\Run\RunCommand.cs (4)
260var properties = new Dictionary<string, string> { { "Device", Device } }; 310var properties = new Dictionary<string, string> { { "Device", selectedDevice } }; 390new Dictionary<string, string> { { "TargetFramework", selectedFramework } }); 1096var globalProperties = MSBuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\Run\RunCommandSelector.cs (2)
207_project = Collection.LoadProject(_projectFilePath, new Dictionary<string, string>(_globalProperties), toolsVersion: null); 271var restoreProperties = new Dictionary<string, string>(_globalProperties, StringComparer.OrdinalIgnoreCase);
Commands\Run\RunFileBuildCacheEntry.cs (1)
74GlobalProperties = new(GlobalPropertiesComparer);
Commands\Run\RunTelemetry.cs (1)
47var properties = new Dictionary<string, string?>
Commands\Run\VirtualProjectBuildingCommand.cs (3)
333var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 670?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 671: new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
Commands\Test\MTP\ArtifactPostProcessingTelemetry.cs (1)
61return new Dictionary<string, string?>
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
861selector.InvalidateGlobalProperties(new Dictionary<string, string>
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (2)
164var modulesWithMissingOptions = new Dictionary<bool, List<(string[], string[])>>(); 170var missingOptionsToModules = new Dictionary<string, List<string>>();
Commands\Test\MTP\MSBuildUtility.cs (1)
151var properties = new Dictionary<string, string>(globalProperties, StringComparer.OrdinalIgnoreCase);
Commands\Test\MTP\SolutionAndProjectUtility.cs (4)
200globalProperties = new Dictionary<string, string>(capacity); 225if (!(globalProperties ??= new Dictionary<string, string>()).ContainsKey(property.Key)) 237if (!(globalProperties ??= new Dictionary<string, string>()).ContainsKey(property.Key)) 528var devicesByTfm = new Dictionary<string, (string? Device, string? RuntimeIdentifier)>();
Commands\Test\MTP\Terminal\TestProgressState.cs (4)
12private readonly Dictionary<string, TestNodeInfoEntry> _testUidToResults = new(); 13private readonly Dictionary<string, int> _instanceIdToAttemptNumber = new(); 22private readonly Dictionary<string, (string DisplayName, TimeSpan Duration)> _testUidToDuration = new(); 30private readonly Dictionary<string, string> _uidWithEarlierFailure = new();
Commands\Test\MTP\TestApplication.cs (2)
66private readonly Dictionary<NamedPipeServer, HandshakeMessage> _handshakes = new(); 856var properties = new Dictionary<byte, string>(capacity: 6)
Commands\Test\MTP\TestApplicationHandler.cs (1)
18private readonly Dictionary<string, (int TestSessionStartCount, int TestSessionEndCount)> _testSessionEventCountPerSessionUid = new();
Commands\Test\MTP\TestResultsDirectoryResolver.cs (1)
70Dictionary<string, HashSet<string>> identitiesByProjectName = new(StringComparer.OrdinalIgnoreCase);
Commands\Test\VSTest\TestCommand.cs (1)
342Dictionary<string, string> globalProperties = new(StringComparer.OrdinalIgnoreCase);
Commands\Test\VSTest\VSTestArgumentConverter.cs (2)
22= new Dictionary<string, string>() 41= new Dictionary<string, string>()
Commands\Test\VSTest\VSTestForwardingApp.cs (1)
48return new()
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
93localToolsResolverCache.Save(new Dictionary<RestoredCommandIdentifier, ToolCommand>
Commands\Tool\Install\LocalToolsResolverCacheExtensions.cs (1)
36new Dictionary<RestoredCommandIdentifier, ToolCommand>
Commands\Workload\GlobalJsonWorkloadSetFile.cs (1)
68foreach (var kvp in new Dictionary<string, string>(globalJsonWorkloadSetVersions))
Commands\Workload\List\InstalledWorkloadsCollection.cs (1)
27_workloads = new Dictionary<string, string>(workloadIds.Select(id => new KeyValuePair<string, string>(id.ToString(), installationSource)));
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
75var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (2)
101Reporter.WriteLine(JsonSerializer.Serialize(versions.Select(version => new Dictionary<string, string>() 138Reporter.WriteLine(JsonSerializer.Serialize(new Dictionary<string, Dictionary<string, string>>()
MsbuildProject.cs (1)
211options.GlobalProperties = new Dictionary<string, string>
Program.cs (1)
126TelemetryInstance.TrackEvent("command/finish", new Dictionary<string, string?> { { "exitCode", exitCode.ToString() } });
ReleasePropertyProjectLocator.cs (4)
64return new Dictionary<string, string>(1, StringComparer.OrdinalIgnoreCase) { [EnvironmentVariableNames.DISABLE_PUBLISH_AND_PACK_RELEASE] = "true" }.AsReadOnly(); // Don't throw error if publish* conflicts but global config specified. 78var newConfigurationArgs = new Dictionary<string, string>(2, StringComparer.OrdinalIgnoreCase); 291return new(new Dictionary<string, string>() { [MSBuildPropertyNames.TARGET_FRAMEWORK] = commandOptions.FrameworkOption }); 300var newDictionary = new Dictionary<string, string>(globalProperties, StringComparer.OrdinalIgnoreCase);
ShellShim\ShellShimRepository.cs (1)
118var files = new Dictionary<string, string>();
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Telemetry\AllowListToSendFirstAppliedOptions.cs (1)
30new Dictionary<string, string>
Telemetry\AllowListToSendFirstArgument.cs (1)
34new Dictionary<string, string?>
Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
31new Dictionary<string, string?>
Telemetry\TelemetryClient.cs (2)
233var carrierMap = new Dictionary<string, IEnumerable<string>?> { { "traceparent", [traceParent] } }; 357properties ??= new Dictionary<string, string?>();
Telemetry\TelemetryCommonProperties.cs (1)
57public FrozenDictionary<string, string?> GetTelemetryCommonProperties(string? currentSessionId) => new Dictionary<string, string?>
Telemetry\TelemetryFilter.cs (5)
26var reportProperties = new Dictionary<string, string?> 35var exceptionProperties = new Dictionary<string, string?> 60Dictionary<string, string?> properties = new() { ["verb"] = topLevelCommandName }; 79var verbosityProperties = new Dictionary<string, string?>() 92var vulnerableProperties = new Dictionary<string, string?>()
Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
31new Dictionary<string, string?>
dotnet-aot (36)
_generated\23\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\24\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\50\RunFileBuildCacheJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\60\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\7\CliSchemaJsonSerializerContext.DictionaryStringArgumentDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>(),
_generated\8\CliSchemaJsonSerializerContext.DictionaryStringCommandDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>(),
_generated\9\CliSchemaJsonSerializerContext.DictionaryStringOptionDetails.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>(),
NativeEntryPoint.cs (1)
275telemetryClient.ThreadBlockingTrackEvent("command/finish", new Dictionary<string, string?> { { "exitCode", exitCode.ToString() } });
src\sdk\src\Cli\dotnet\CliSchema.cs (4)
88var telemetryProperties = new Dictionary<string, string?> { { "command", commandString } }; 130var dict = new Dictionary<string, ArgumentDetails>(); 144var dict = new Dictionary<string, OptionDetails>(); 158var dict = new Dictionary<string, CommandDetails>();
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\ActivityContextFactory.cs (1)
28var environment = new Dictionary<string, string>(capacity: 2);
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
46TelemetryEventEntry.TrackEvent(CommandResolveEvent, new Dictionary<string, string>()
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\DotnetToolsCommandResolver.cs (1)
12private static readonly IReadOnlyDictionary<string, string> AggregateToolPackages = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
src\sdk\src\Cli\dotnet\CommandFactory\CommandSpec.cs (1)
16public IDictionary<string, string> EnvironmentVariables { get; } = environmentVariables ?? new Dictionary<string, string>();
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (2)
153var launchEnvironment = new Dictionary<string, string?>(StringComparer.Ordinal); 383?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (2)
42=> new(VirtualProjectBuilder.GetGlobalBuildProperties(), StringComparer.OrdinalIgnoreCase) 106var globalProperties = msbuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Cli\dotnet\Commands\Run\RunFileBuildCacheEntry.cs (1)
74GlobalProperties = new(GlobalPropertiesComparer);
src\sdk\src\Cli\dotnet\Commands\Test\VSTest\VSTestForwardingApp.cs (1)
48return new()
src\sdk\src\Cli\dotnet\Commands\Workload\List\InstalledWorkloadsCollection.cs (1)
27_workloads = new Dictionary<string, string>(workloadIds.Select(id => new KeyValuePair<string, string>(id.ToString(), installationSource)));
src\sdk\src\Cli\dotnet\MsbuildProject.cs (1)
211options.GlobalProperties = new Dictionary<string, string>
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstAppliedOptions.cs (1)
30new Dictionary<string, string>
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendFirstArgument.cs (1)
34new Dictionary<string, string?>
src\sdk\src\Cli\dotnet\Telemetry\AllowListToSendVerbSecondVerbFirstArgument.cs (1)
31new Dictionary<string, string?>
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (2)
233var carrierMap = new Dictionary<string, IEnumerable<string>?> { { "traceparent", [traceParent] } }; 357properties ??= new Dictionary<string, string?>();
src\sdk\src\Cli\dotnet\Telemetry\TelemetryCommonProperties.cs (1)
57public FrozenDictionary<string, string?> GetTelemetryCommonProperties(string? currentSessionId) => new Dictionary<string, string?>
src\sdk\src\Cli\dotnet\Telemetry\TelemetryFilter.cs (5)
26var reportProperties = new Dictionary<string, string?> 35var exceptionProperties = new Dictionary<string, string?> 60Dictionary<string, string?> properties = new() { ["verb"] = topLevelCommandName }; 79var verbosityProperties = new Dictionary<string, string?>() 92var vulnerableProperties = new Dictionary<string, string?>()
src\sdk\src\Cli\dotnet\Telemetry\TopLevelCommandNameAndOptionToLog.cs (1)
31new Dictionary<string, string?>
dotnet-format (6)
Analyzers\AnalyzerReferenceInformationProvider.cs (2)
14private static readonly Dictionary<string, Assembly> s_pathsToAssemblies = new(StringComparer.OrdinalIgnoreCase); 15private static readonly Dictionary<string, Assembly> s_namesToAssemblies = new(StringComparer.OrdinalIgnoreCase);
Analyzers\CodeAnalysisResult.cs (1)
10private readonly Dictionary<Project, List<Diagnostic>> _dictionary = new();
Analyzers\CodeStyleInformationProvider.cs (1)
36var analyzersByLanguage = new Dictionary<string, AnalyzersAndFixers>();
Logging\SimpleConsoleLogger.cs (1)
20private static ImmutableDictionary<LogLevel, ConsoleColor> LogLevelColorMap => new Dictionary<LogLevel, ConsoleColor>
Workspaces\MSBuildWorkspaceLoader.cs (1)
24var properties = new Dictionary<string, string>(StringComparer.Ordinal)
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
27private static readonly Dictionary<string, string> s_referencedic = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
dotnet-openapi (3)
Commands\BaseCommand.cs (3)
174var metadata = new Dictionary<string, string>(); 465var packageVersionsDictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 489var result = new Dictionary<string, string>();
dotnet-svcutil-lib (214)
AppInsightsTelemetryClient.cs (1)
214var properties = new Dictionary<string, string>();
CmdCredentialsProvider.cs (2)
139private Dictionary<string, X509Certificate> _validatedClientCerts = new Dictionary<string, X509Certificate>(); 219private Dictionary<string, bool> _validatedServerCerts = new Dictionary<string, bool>();
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
67Dictionary<string, CodeTypeDeclaration> nameTable = new Dictionary<string, CodeTypeDeclaration>();
CodeDomFixup\CodeDomVisitors\CodeTypeNameScope.cs (1)
13private Dictionary<string, CodeTypeMember> _nameTable = new Dictionary<string, CodeTypeMember>();
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
214Dictionary<string, string> methodNames = new Dictionary<string, string>();
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
14private Dictionary<string, string> _namespacesToMatch = new Dictionary<string, string>() { { "System.ServiceModel.XmlSerializerFormatAttribute", "System.Xml.Serialization" }, { "System.Xml.Linq", "System.Xml.Linq" }, { "System.ServiceModel.Duplex", "System.ServiceModel.Extensions" } };
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (1)
27_privateIfaceMethods = new Dictionary<string, PrivateInterfaceMethod>();
CodeDomFixup\CodeDomVisitors\NamespaceFixer.cs (2)
18private Dictionary<string, Type> _xmlTypes = new Dictionary<string, Type>(); 19private Dictionary<string, Type> _codeDomTypes = new Dictionary<string, Type>();
CodeDomFixup\CodeDomVisitors\PropertyFieldNameScope.cs (1)
13private Dictionary<string, MemberInfo> _nameTable = new Dictionary<string, MemberInfo>();
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
13private Dictionary<string, CodeTypeDeclaration> _specialIXmlSerializableTypes = new Dictionary<string, CodeTypeDeclaration>();
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (2)
14internal Dictionary<string, CodeTypeDeclaration> AllTypeDecls = new Dictionary<string, CodeTypeDeclaration>(); 15internal Dictionary<string, string> TypeNamespaceMappings = new Dictionary<string, string>();
CommandProcessorOptions.cs (1)
878Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count);
FrameworkFork\Microsoft.CodeDom\Configuration\CodeDomCompilationConfiguration.cs (2)
38compilerInfo._providerOptions = new Dictionary<string, string>(); 49compilerInfo._providerOptions = new Dictionary<string, string>();
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
379_namespaces = new Dictionary<String, NamespaceDecl>(_hasher); 1826Dictionary<String, String> nstable = new Dictionary<String, String>();
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriter.cs (1)
58_lookupCDataElems = new Dictionary<XmlQualifiedName, int>();
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriterV1.cs (1)
79_lookupCDataElems = new Dictionary<XmlQualifiedName, XmlQualifiedName>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlSubtreeReader.cs (1)
1210return new Dictionary<string, string>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
8223_currentEntities = new Dictionary<IDtdEntityInfo, IDtdEntityInfo>();
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (1)
1487_nsHashtable = new Dictionary<string, int>(new SecureStringHasher());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (2)
1868_nsHashtable = new Dictionary<string, int>(_hasher); 2247_attrHashTable = new Dictionary<string, int>(_hasher);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (1)
996Dictionary<string, string> dict = new Dictionary<string, string>();
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
174_mappings = new Dictionary<Uri, PreloadedData>(16, uriComparer);
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (1)
1375_undeclaredNotations = new Dictionary<string, UndeclaredNotation>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (2)
14private Dictionary<XmlQualifiedName, SchemaAttDef> _attdefs = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 23private Dictionary<XmlQualifiedName, XmlQualifiedName> _prohibitedAttributes = new Dictionary<XmlQualifiedName, XmlQualifiedName>();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (8)
32private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 33private Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 43private Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>(); 44private Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 47private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 84_generalEntities = new Dictionary<XmlQualifiedName, SchemaEntity>(); 96_parameterEntities = new Dictionary<XmlQualifiedName, SchemaEntity>(); 129_notations = new Dictionary<string, SchemaNotation>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (1)
70Dictionary<string, string> dict = new Dictionary<string, string>(1);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (1)
18private Dictionary<XmlQualifiedName, XmlSchemaObject> _table = new Dictionary<XmlQualifiedName, XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (4)
85_freeLocals = new Dictionary<Tuple<Type, string>, Queue<LocalBuilder>>(); 86_argList = new Dictionary<string, ArgBuilder>(); 155private Dictionary<Type, LocalBuilder> _tmpLocals = new Dictionary<Type, LocalBuilder>(); 2657_locals = new Dictionary<string, LocalBuilder>();
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1183replaceList = new Dictionary<string, MemberInfo>();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (4)
19private Dictionary<string, MethodBuilderInfo> _methodBuilders = new Dictionary<string, MethodBuilderInfo>(); 21internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>(); 23internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>(); 67private static Dictionary<string, Regex> s_regexs = new Dictionary<string, Regex>();
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (3)
188_hashTable = new Dictionary<string, int>(_lastDecl); 221Dictionary<string, string> prefixes = new Dictionary<string, string>(_lastDecl + 1); 257Dictionary<string, string> dict = new Dictionary<string, string>(_lastDecl - i + 1);
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathDocument.cs (2)
399_mapNmsp = new Dictionary<XPathNodeRef, XPathNodeRef>(); 432_idValueMap = new Dictionary<string, XPathNodeRef>();
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (1)
536Dictionary<string, string> dict = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (1)
930Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (8)
52_namespaces = new Dictionary<string, string>(); 53_clrNamespaces = new Dictionary<string, string>(StringComparer.Ordinal); 277ExportClassDataContractHierarchy(classDataContract.StableName, classDataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object>()); 746dataContract = DataContract.GetDataContract(type).BindGenericParameters(paramContracts, new Dictionary<DataContract, DataContract>()); 937return GetKnownTypeContracts((ClassDataContract)dataContract, new Dictionary<DataContract, object>()); 984dataContract.KnownDataContracts = new DataContractDictionary(); 995DataContractDictionary knownContractDictionary = GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object>()); 1427Dictionary<string, object> fragments = new Dictionary<string, object>(StringComparer.Ordinal);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
164private Dictionary<LocalBuilder, string> _localNames = new Dictionary<LocalBuilder, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (1)
42_memberNames = new Dictionary<string, object>(StringComparer.Ordinal);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (9)
562s_typeToIDCache = new Dictionary<TypeHandleRef, IntRef>(new TypeHandleRefEqualityComparer()); 816s_typeToBuiltInContract = new Dictionary<Type, DataContract>(); 833s_nameToBuiltInContract = new Dictionary<XmlQualifiedName, DataContract>(); 1024s_namespaces = new Dictionary<string, string>(); 1051s_clrTypeStrings = new Dictionary<string, XmlDictionaryString>(); 2063Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 2147knownDataContracts = new DataContractDictionary(); 2175nameToDataContractTable = new DataContractDictionary(); 2193return Equals(other, new Dictionary<DataContractPairKey, object>());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (4)
63_contracts = new Dictionary<XmlQualifiedName, DataContract>(); 75_processedContracts = new Dictionary<DataContract, object>(); 352_referencedTypesDictionary = new Dictionary<XmlQualifiedName, object>(); 374_referencedCollectionTypesDictionary = new Dictionary<XmlQualifiedName, object>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (3)
160s_typeToName = new Dictionary<Type, XmlQualifiedName>(); 161s_nameToType = new Dictionary<XmlQualifiedName, Type>(); 275Dictionary<string, DataMember> memberValuesTable = new Dictionary<string, DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (6)
129s_essentialExceptionFields = new Dictionary<string, string>(); 212_knownDataContracts = new Dictionary<XmlQualifiedName, DataContract>(); 269Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 308Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 487Dictionary<string, object> fieldToValueDictionary = new Dictionary<string, object>(); 599Dictionary<string, string> mapDict = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (2)
57s_nsToPrefixTable = new Dictionary<string, string>(); 58s_prefixToNsTable = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\HybridObjectCache.cs (2)
24_objectDictionary = new Dictionary<string, object>(); 42_referencedObjectDictionary = new Dictionary<string, object>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ImportOptions.cs (1)
77_namespaces = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectReferenceStack.cs (1)
38_objectDictionary = new Dictionary<object, object>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (4)
188Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 224DataContractDictionary knownDataContracts = new DataContractDictionary(); 243SchemaObjectDictionary schemaObjects = new SchemaObjectDictionary(); 928knownDataContracts = new DataContractDictionary();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (2)
203DataContractDictionary dataContracts = new DataContractDictionary(); 204Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReaderSession.cs (1)
39_stringDict = new Dictionary<int, XmlDictionaryString>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriterSession.cs (1)
188_dictionary = new Dictionary<K, V>();
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionary.cs (2)
36_lookup = new Dictionary<string, XmlDictionaryString>(); 43_lookup = new Dictionary<string, XmlDictionaryString>(capacity);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (2)
43_items = new Dictionary<TKey, CacheEntry>(); 47_items = new Dictionary<TKey, CacheEntry>(comparer);
FrameworkFork\System.ServiceModel\System\IdentityModel\CryptoHelper.cs (1)
16private static Dictionary<string, Func<object>> s_algorithmDelegateDictionary = new Dictionary<string, Func<object>>();
FrameworkFork\System.ServiceModel\System\IdentityModel\IdentityModelDictionary.cs (1)
45Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
24_properties = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
406Dictionary<string, object> properties = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
33_properties = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
119Dictionary<string, int> myHeaders = new Dictionary<string, int>(); 122Dictionary<string, int> otherHeaders = new Dictionary<string, int>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
31_endpointPools = new Dictionary<TKey, EndpointConnectionPool>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
15_registry = new Dictionary<string, List<ConnectionPool>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
123_connectionMapping = new Dictionary<TItem, IdlingConnectionSettings>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
19_states = new Dictionary<Key, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (4)
66_operationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 67_optionalOperationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 87_operationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 92_optionalOperationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
200Dictionary<Type, byte> supportedChannels = new Dictionary<Type, byte>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (1)
205dictionary = new Dictionary<DirectionalAction, TransactionFlowOption>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElementImporter.cs (1)
198retValue = new Dictionary<XmlQualifiedName, XmlQualifiedName>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (2)
324private static Dictionary<string, int> s_targetNameCounter = new Dictionary<string, int>(); 339private static Dictionary<HttpRequestMessage, string> s_serverCertMap = new Dictionary<HttpRequestMessage, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UnrecognizedAssertionsBindingElement.cs (2)
48_operationAssertions = new Dictionary<OperationDescription, ICollection<XmlElement>>(); 58_messageAssertions = new Dictionary<MessageDescription, ICollection<XmlElement>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (4)
18private Dictionary<OperationDescription, DataContractFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, DataContractFormatAttribute>(); 39_isNonNillableReferenceTypes = new Dictionary<MessagePartDescription, bool>(); 59_knownTypes = new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>(); 86Dictionary<CodeTypeReference, object> operationKnownTypes = new Dictionary<CodeTypeReference, object>(new CodeTypeReferenceComparer());
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (4)
32private readonly Dictionary<OperationDescription, PolicyAssertionCollection> _operationBindingAssertions = new Dictionary<OperationDescription, PolicyAssertionCollection>(); 33private readonly Dictionary<MessageDescription, PolicyAssertionCollection> _messageBindingAssertions = new Dictionary<MessageDescription, PolicyAssertionCollection>(); 34private readonly Dictionary<FaultDescription, PolicyAssertionCollection> _faultBindingAssertions = new Dictionary<FaultDescription, PolicyAssertionCollection>(); 242Dictionary<K, V> counterValue = new Dictionary<K, V>(sets.Count);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (2)
45_bodyPartsTable = new Dictionary<WsdlNS.Message, IList<string>>(); 850Dictionary<string, object> prefixesUsed = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (1)
469_usedRetrievers = new Dictionary<MetadataRetriever, MetadataRetriever>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (4)
17private readonly Dictionary<object, object> _state = new Dictionary<object, object>(); 91_operationBindingAssertions = new Dictionary<OperationDescription, PolicyAssertionCollection>(); 92_messageBindingAssertions = new Dictionary<MessageDescription, PolicyAssertionCollection>(); 93_faultBindingAssertions = new Dictionary<FaultDescription, PolicyAssertionCollection>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (2)
18private readonly Dictionary<XmlQualifiedName, ContractDescription> _knownContracts = new Dictionary<XmlQualifiedName, ContractDescription>(); 20private readonly Dictionary<object, object> _state = new Dictionary<object, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (3)
41_parameterAttributes = new Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection>(); 51_parameterTypes = new Dictionary<MessagePartDescription, CodeTypeReference>(); 61_specialPartName = new Dictionary<MessagePartDescription, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (5)
46_generatedTypes = new Dictionary<ContractDescription, ServiceContractGenerationContext>(); 47_generatedOperations = new Dictionary<OperationDescription, OperationContractGenerationContext>(); 48_referencedTypes = new Dictionary<ContractDescription, Type>(); 189_generatedTypedMessages = new Dictionary<MessageDescription, CodeTypeReference>(MessageDescriptionComparer.Singleton); 707_namespaceMappings = new Dictionary<string, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SoapHelper.cs (1)
165versions = new Dictionary<WsdlNS.Binding, EnvelopeVersion>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TransactionFlowAttribute.cs (1)
56dictionary = new Dictionary<DirectionalAction, TransactionFlowOption>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (2)
51_contracts = new Dictionary<Type, ContractDescription>(); 52_messages = new Dictionary<Type, MessageDescriptionItems>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlContractConversionContext.cs (7)
38_wsdlOperations = new Dictionary<OperationDescription, WsdlNS.Operation>(); 39_operationDescriptions = new Dictionary<WsdlNS.Operation, OperationDescription>(); 40_wsdlOperationMessages = new Dictionary<MessageDescription, WsdlNS.OperationMessage>(); 41_messageDescriptions = new Dictionary<WsdlNS.OperationMessage, MessageDescription>(); 42_wsdlOperationFaults = new Dictionary<FaultDescription, WsdlNS.OperationFault>(); 43_faultDescriptions = new Dictionary<WsdlNS.OperationFault, FaultDescription>(); 44_operationBindings = new Dictionary<WsdlNS.Operation, Collection<WsdlNS.OperationBinding>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlEndpointConversionContext.cs (6)
35_wsdlOperationBindings = new Dictionary<OperationDescription, WsdlNS.OperationBinding>(); 36_operationDescriptionBindings = new Dictionary<WsdlNS.OperationBinding, OperationDescription>(); 37_wsdlMessageBindings = new Dictionary<MessageDescription, WsdlNS.MessageBinding>(); 38_messageDescriptionBindings = new Dictionary<WsdlNS.MessageBinding, MessageDescription>(); 39_wsdlFaultBindings = new Dictionary<FaultDescription, WsdlNS.FaultBinding>(); 40_faultDescriptionBindings = new Dictionary<WsdlNS.FaultBinding, FaultDescription>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (4)
29= new Dictionary<ContractDescription, WsdlContractConversionContext>(); 30private Dictionary<BindingDictionaryKey, WsdlEndpointConversionContext> _exportedBindings = new Dictionary<BindingDictionaryKey, WsdlEndpointConversionContext>(); 31private Dictionary<EndpointDictionaryKey, ServiceEndpoint> _exportedEndpoints = new Dictionary<EndpointDictionaryKey, ServiceEndpoint>(); 952private readonly Dictionary<string, string> _lookup = new Dictionary<string, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (14)
23private readonly Dictionary<WsdlNS.NamedItem, WsdlImportException> _importErrors = new Dictionary<WsdlNS.NamedItem, WsdlImportException>(); 26private readonly Dictionary<XmlQualifiedName, WsdlContractConversionContext> _importedPortTypes = new Dictionary<XmlQualifiedName, WsdlContractConversionContext>(); 27private readonly Dictionary<XmlQualifiedName, WsdlEndpointConversionContext> _importedBindings = new Dictionary<XmlQualifiedName, WsdlEndpointConversionContext>(); 28private readonly Dictionary<WsdlNS.Port, ServiceEndpoint> _importedPorts = new Dictionary<WsdlNS.Port, ServiceEndpoint>(); 34private readonly Dictionary<string, XmlElement> _policyDocuments = new Dictionary<string, XmlElement>(); 35private readonly Dictionary<string, string> _warnings = new Dictionary<string, string>(); 1688Dictionary<XmlElement, XmlElement> unique = new Dictionary<XmlElement, XmlElement>(); 2205policyAlternatives.OperationBindingAlternatives = new Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>>(endpointContext.Endpoint.Contract.Operations.Count); 2206policyAlternatives.MessageBindingAlternatives = new Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>>(); 2207policyAlternatives.FaultBindingAlternatives = new Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>>(); 2287private readonly Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>> _embeddedPolicyDictionary = new Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>>(); 2288private readonly Dictionary<string, XmlElement> _externalPolicyDictionary = new Dictionary<string, XmlElement>(); 2289private readonly Dictionary<XmlElement, WsdlNS.ServiceDescription> _policySourceTable = new Dictionary<XmlElement, WsdlNS.ServiceDescription>(); 2334wsdlPolicyDictionary = new Dictionary<string, XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
568_xmlMappings = new Dictionary<string, XmlMembersMapping>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (4)
23private Dictionary<OperationDescription, XmlSerializerFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, XmlSerializerFormatAttribute>(); 35_partInfoTable = new Dictionary<MessagePartDescription, PartInfo>(); 123Dictionary<XmlMembersMapping, XmlMembersMapping> alreadyExported = new Dictionary<XmlMembersMapping, XmlMembersMapping>(); 145_operationGenerator.GenerateOperation(context, ref style, xmlSerializerFormatAttribute.IsEncoded, new WrappedBodyTypeGenerator(context), new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>());
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
39_operations = new Dictionary<string, ProxyOperationRuntime>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
39_operationMap = new Dictionary<object, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderT.cs (1)
81private static Dictionary<Type, TypedHeaderManager> s_cache = new Dictionary<Type, TypedHeaderManager>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ScopedMessagePartSpecification.cs (2)
21_actionParts = new Dictionary<string, MessagePartSpecification>(); 187_readOnlyNormalizedActionParts = new Dictionary<string, MessagePartSpecification>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (3)
124_scopedSupportingTokenAuthenticatorSpecification = new Dictionary<string, ICollection<SupportingTokenAuthenticatorSpecification>>(); 145_scopedSupportingTokenAuthenticatorSpecification = new Dictionary<string, ICollection<SupportingTokenAuthenticatorSpecification>>(factory._scopedSupportingTokenAuthenticatorSpecification); 800_mergedSupportingTokenAuthenticatorsMap = new Dictionary<string, MergedSupportingTokenAuthenticatorSpecification>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (2)
26_scopedCertificates = new Dictionary<Uri, X509Certificate2>(); 38_scopedCertificates = new Dictionary<Uri, X509Certificate2>();
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceModelDictionary.cs (1)
45Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
174_dictionary = new Dictionary<K, T>(_comparer);
ImportModule.cs (3)
376private readonly Dictionary<Binding, ContractDescription> _bindingContractMapping = new Dictionary<Binding, ContractDescription>(); 377private readonly Dictionary<Binding, XmlQualifiedName> _bindingWsdlMapping = new Dictionary<Binding, XmlQualifiedName>(); 378private readonly Dictionary<XmlQualifiedName, WsdlNS.Port> _bindingPortMapping = new Dictionary<XmlQualifiedName, WsdlNS.Port>();
Metadata\ServiceDescriptorFactory.cs (1)
23private Dictionary<int, ServiceDescriptor> _cache = new Dictionary<int, ServiceDescriptor>();
Shared\MSBuildProj.cs (1)
34public Dictionary<string, string> GlobalProperties { get; } = new Dictionary<string, string>();
Shared\ProjectPropertyResolver.cs (1)
25var propertyTable = new Dictionary<string, string>();
Shared\Utilities\ProcessRunner.cs (1)
49var emptyVars = new Dictionary<string, string>();
Tool.cs (1)
177var properties = new Dictionary<string, string>()
dotnet-svcutil-lib.Tests (1)
ProjectUtils.cs (1)
89var envVars = new Dictionary<string, string> { { AppInsightsTelemetryClient.OptOutVariable, (!AppInsightsTelemetryClient.IsUserOptedIn).ToString() } };
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (1)
92_contents = new Dictionary<string, IList<string>>(capacity);
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
263_parent._namespaceMappings = new Dictionary<string, string>(namespaceMappingsArgs.Count); 384Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count);
dotnet-user-jwts (7)
_generated\5\JwtSerializerContext.IDictionaryStringJwt.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Jwt>(),
_generated\6\JwtSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Commands\CreateCommand.cs (1)
210var claims = new Dictionary<string, string>();
Helpers\DevJwtCliHelpers.cs (1)
298claims = new Dictionary<string, string>();
Helpers\Jwt.cs (1)
15public IDictionary<string, string> CustomClaims { get; set; } = new Dictionary<string, string>();
Helpers\JwtStore.cs (2)
24public IDictionary<string, Jwt> Jwts { get; private set; } = new Dictionary<string, Jwt>(); 33Jwts = JsonSerializer.Deserialize(fileStream, JwtSerializerContext.Default.IDictionaryStringJwt) ?? new Dictionary<string, Jwt>();
dotnet-user-secrets (2)
_generated\0\SecretManagerJsonSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Internal\ListCommand.cs (1)
55var secrets = new Dictionary<string, string>();
dotnet-watch (3)
Watch\DotNetWatcher.cs (1)
24var environmentBuilder = new Dictionary<string, string>();
Watch\MsBuildFileSetFactory.cs (1)
93var fileItems = new Dictionary<string, FileItem>();
Watch\StaticFileHandler.cs (1)
17var refreshRequests = new Dictionary<BrowserRefreshServer, List<string>>();
DotNetWatchTasks (1)
FileSetSerializer.cs (1)
22var projectItems = new Dictionary<string, ProjectItems>();
GenerateDocumentationAndConfigFiles (40)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (1)
51var releaseTrackingDataByRulesBuilder = new Dictionary<string, ReleaseTrackingDataForRuleBuilder>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (5)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
28_cache = new(comparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>() 45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>() 51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>() 56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>() 62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>() 67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>() 73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>() 78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>() 88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>() 98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
HelixTestTasks (1)
ComputeBatchTimeout.cs (1)
76var counts = new Dictionary<string, int>();
ILAssembler (23)
DocumentCompiler.cs (1)
23Dictionary<string, SourceText> loadedDocuments = new()
EntityRegistry.cs (10)
17private readonly Dictionary<TableIndex, List<EntityBase>> _seenEntities = new(); 18private readonly Dictionary<(TypeDefinitionEntity? ContainingType, string Namespace, string Name), TypeDefinitionEntity> _seenTypeDefs = new(); 19private readonly Dictionary<(EntityBase ResolutionScope, string Namespace, string Name), TypeReferenceEntity> _seenTypeRefs = new(); 20private readonly Dictionary<string, AssemblyReferenceEntity> _seenAssemblyRefs = new(StringComparer.OrdinalIgnoreCase); 21private readonly Dictionary<string, ModuleReferenceEntity> _seenModuleRefs = new(); 22private readonly Dictionary<BlobBuilder, TypeSpecificationEntity> _seenTypeSpecs = new(new BlobBuilderContentEqualityComparer()); 23private readonly Dictionary<BlobBuilder, StandaloneSignatureEntity> _seenStandaloneSignatures = new(new BlobBuilderContentEqualityComparer()); 24private readonly Dictionary<string, FileEntity> _seenFiles = new(); 26private readonly Dictionary<(ExportedTypeEntity? ContainingType, string Namespace, string Name), ExportedTypeEntity> _seenExportedTypes = new(); 28private readonly Dictionary<(EntityBase, BlobBuilder), MethodSpecificationEntity> _seenMethodSpecs = new(new MethodSpecEqualityComparer());
GrammarVisitor.cs (8)
87private readonly Dictionary<string, int> _mappedFieldDataNames = new(); 88private readonly Dictionary<string, List<Blob>> _mappedFieldDataReferenceFixups = new(); 92private readonly Dictionary<string, TypedefEntry> _typedefs = new(); 99private readonly Dictionary<string, DocumentHandle> _documentHandles = new(); 996public Dictionary<string, LabelHandle> Labels { get; } = new(); 1000public Dictionary<string, ParserRuleContext> UndefinedLabelReferences { get; } = new(); 1002public Dictionary<string, int> ArgumentNames { get; } = new(); 3638var localsScope = currentMethod.LocalsScopes.Count != 0 ? currentMethod.LocalsScopes[currentMethod.LocalsScopes.Count - 1] : new();
NamedElementList.cs (1)
18private readonly Dictionary<string, T> _elementsByName = new();
PreprocessedTokenSource.cs (1)
21private readonly Dictionary<string, string?> _definedVars = new();
VTableExportPEBuilder.cs (2)
112_mappedFieldDataOffsets = mappedFieldDataOffsets ?? new Dictionary<string, int>(); 378var slotOffsets = new Dictionary<(int EntryIndex, int SlotIndex), int>();
ilc (8)
ConfigurablePInvokePolicy.cs (1)
21_directPInvokes = new Dictionary<string, HashSet<string>>(target.IsWindows ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
Program.cs (2)
86Dictionary<int, bool> warningsAsErrors = new Dictionary<int, bool>(); 382var featureSwitches = new Dictionary<string, bool>();
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (5)
33Dictionary<string, string> dictionary = new(StringComparer.OrdinalIgnoreCase); 46Dictionary<string, string> dictionary = new(StringComparer.OrdinalIgnoreCase); 232Dictionary<string, string> inputToReproPackageFileName = new(); 234Dictionary<string, string> outputToReproPackageFileName = new(); 255Dictionary<string, string> dictionary = new();
ILCompiler.Build.Tasks (1)
ComputeManagedAssembliesToCompileToNative.cs (1)
89var nativeAotFrameworkAssembliesToUse = new Dictionary<string, ITaskItem>();
ILCompiler.Compiler (134)
Compiler\AnalysisBasedMetadataManager.cs (3)
29private readonly Dictionary<TypeDesc, MetadataCategory> _reflectableTypes = new Dictionary<TypeDesc, MetadataCategory>(); 30private readonly Dictionary<MethodDesc, MetadataCategory> _reflectableMethods = new Dictionary<MethodDesc, MetadataCategory>(); 31private readonly Dictionary<FieldDesc, MetadataCategory> _reflectableFields = new Dictionary<FieldDesc, MetadataCategory>();
Compiler\BodySubstitutionParser.cs (4)
29_methodSubstitutions = new Dictionary<MethodDesc, BodySubstitution>(); 30_fieldSubstitutions = new Dictionary<FieldDesc, object>(); 36_methodSubstitutions = new Dictionary<MethodDesc, BodySubstitution>(); 37_fieldSubstitutions = new Dictionary<FieldDesc, object>();
Compiler\Dataflow\ArrayValue.cs (1)
43IndexValues = new Dictionary<int, ValueBasicBlockPair>();
Compiler\Dataflow\CompilerGeneratedCallGraph.cs (1)
17public CompilerGeneratedCallGraph() => _callGraph = new Dictionary<TypeSystemEntity, HashSet<TypeSystemEntity>>();
Compiler\Dataflow\CompilerGeneratedState.cs (5)
126var generatedTypeToTypeArgs = new Dictionary<MetadataType, TypeArgumentInfo>(); 258_compilerGeneratedTypeToUserCodeMethod ??= new Dictionary<MetadataType, MethodDesc>(); 320_compilerGeneratedMembers ??= new Dictionary<MethodDesc, List<TypeSystemEntity>>(); 330_compilerGeneratedMethodToUserCodeMethod ??= new Dictionary<MethodDesc, MethodDesc>(); 361_generatedTypeToTypeArgumentInfo ??= new Dictionary<MetadataType, TypeArgumentInfo>();
Compiler\Dataflow\MethodBodyScanner.cs (1)
350Dictionary<int, Stack<StackSlot>> knownStacks = new Dictionary<int, Stack<StackSlot>>();
Compiler\Dataflow\TrimAnalysisPatternStore.cs (5)
26AssignmentPatterns = new Dictionary<(MessageOrigin, int?), TrimAnalysisAssignmentPattern>(); 27MethodCallPatterns = new Dictionary<MessageOrigin, TrimAnalysisMethodCallPattern>(); 28TokenAccessPatterns = new Dictionary<(MessageOrigin, TypeSystemEntity), TrimAnalysisTokenAccessPattern>(); 29GenericInstantiations = new Dictionary<(MessageOrigin, TypeSystemEntity), TrimAnalysisGenericInstantiationAccessPattern>(); 30FieldAccessPatterns = new Dictionary<(MessageOrigin, FieldDesc), TrimAnalysisFieldAccessPattern>();
Compiler\DependencyAnalysis\DehydratedDataNode.cs (2)
65var relocOccurences = new Dictionary<ISymbolNode, int>(); 105var relocs = new Dictionary<ISymbolNode, int>(relocSort);
Compiler\DependencyAnalysis\ExternalReferencesTableNode.cs (1)
21private Dictionary<SymbolAndDelta, uint> _insertedSymbolsDictionary = new Dictionary<SymbolAndDelta, uint>();
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (2)
25_gvmImplementations = new Dictionary<MethodDesc, Dictionary<TypeDesc, MethodDesc>>(); 70_gvmImplementations[openCallingMethod] = new Dictionary<TypeDesc, MethodDesc>();
Compiler\DependencyAnalysis\InterfaceGenericVirtualMethodTableNode.cs (3)
27_interfaceGvmSlots = new Dictionary<MethodDesc, HashSet<object>>(); 28_interfaceImpls = new Dictionary<object, Dictionary<TypeDesc, HashSet<int>>>(); 102_interfaceImpls[openImplementationMethod] = new Dictionary<TypeDesc, HashSet<int>>();
Compiler\DependencyAnalysis\ModuleInitializerListNode.cs (1)
184private readonly Dictionary<ModuleDesc, ModuleGraphNode> _nodes = new Dictionary<ModuleDesc, ModuleGraphNode>();
Compiler\DependencyAnalysis\NodeFactory.cs (1)
1660public Dictionary<ISymbolNode, (Utf8String Name, bool Hidden)> NodeAliases = new Dictionary<ISymbolNode, (Utf8String, bool)>();
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
122Dictionary<int, HashSet<TypeDesc>> methodsEmitted = new Dictionary<int, HashSet<TypeDesc>>();
Compiler\DependencyAnalysis\StackTraceDocumentsNode.cs (1)
17private Dictionary<string, int> _documentToIndex = new Dictionary<string, int>(StringComparer.Ordinal);
Compiler\HardwareIntrinsicILProvider.cs (1)
29_instructionSetMap = new Dictionary<string, InstructionSet>();
Compiler\ILAssemblyGeneratingMethodDebugInfoProvider.cs (1)
23private readonly Dictionary<MethodDesc, MethodDebugInformation> _generatedInfos = new Dictionary<MethodDesc, MethodDebugInformation>();
Compiler\ILScanner.cs (6)
296private readonly Dictionary<TypeDesc, MethodDesc[]> _vtableSlices = new Dictionary<TypeDesc, MethodDesc[]>(); 339private Dictionary<TypeSystemEntity, (GenericLookupResult[] Slots, GenericLookupResult[] DiscardedSlots)> _layouts = new(); 462private Dictionary<TypeDesc, HashSet<TypeDesc>> _implementators = new(); 480var vtables = new Dictionary<TypeDesc, List<MethodDesc>>(); 857private readonly Dictionary<MethodDesc, TypeSystemException> _importationErrors = new Dictionary<MethodDesc, TypeSystemException>(); 901Dictionary<MetadataType, int> offsets = new Dictionary<MetadataType, int>();
Compiler\Logger.cs (2)
67_warningsAsErrors = new Dictionary<int, bool>(warningsAsErrors); 78: this(writer, ilProvider, isVerbose, Array.Empty<int>(), singleWarn: false, Array.Empty<string>(), Array.Empty<string>(), Array.Empty<string>(), false, new Dictionary<int, bool>(), disableGeneratedCodeHeuristics)
Compiler\ManifestResourceBlockingPolicy.cs (3)
45var result = new Dictionary<ModuleDesc, HashSet<string>>(); 67var copy = new Dictionary<ModuleDesc, IReadOnlySet<string>>(); 147private readonly Dictionary<ModuleDesc, HashSet<string>> _substitutions = new();
Compiler\MetadataManager.cs (2)
829methodMetadataMappings = new Dictionary<MethodDesc, int>(); 831fieldMetadataMappings = new Dictionary<FieldDesc, int>();
Compiler\MstatObjectDumper.cs (3)
41private Dictionary<MethodDesc, int> _methodEhInfo = new(); 42private Dictionary<string, int> _blobs = new(); 43private Dictionary<MethodDesc, List<(MethodDesc Method, int MangledName)>> _deduplicatedBodies = new();
Compiler\ObjectWriter\CodeView\CodeViewFileTableBuilder.cs (1)
20private readonly Dictionary<string, uint> _fileNameToIndex = new();
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (4)
32private readonly Dictionary<int, DwarfLineSequenceWriter> _lineSequences = new(); 33private readonly Dictionary<string, int> _fileNameMap = new(); // fileName -> _fileNames index (1-based) 40private readonly Dictionary<TypeFlags, uint> _primitiveDwarfTypes = new(); 41private readonly Dictionary<(uint, uint), uint> _simpleArrayDwarfTypes = new(); // (elementTypeIndex, size) -> arrayTypeIndex
Compiler\ObjectWriter\Dwarf\DwarfEhFrame.cs (1)
19private readonly Dictionary<DwarfCie, uint> _cieOffset = new();
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (1)
28private readonly Dictionary<DwarfAbbrev, int> _usedAbbrevs = new();
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (2)
16private readonly Dictionary<string, uint> _directoryNameToIndex = new(); 17private readonly Dictionary<DwarfFileName, uint> _fileNameToIndex = new();
Compiler\ObjectWriter\ElfObjectWriter.Aot.cs (1)
76_armUnwindSections ??= new();
Compiler\ObjectWriter\UnixObjectWriter.Aot.cs (1)
148private Dictionary<INodeWithCodeInfo, Utf8String[]> _lsdas = new Dictionary<INodeWithCodeInfo, Utf8String[]>(LsdaComparer.Instance);
Compiler\ReachabilityInstrumentationFilter.cs (1)
23private readonly Dictionary<Guid, bool[]> _reachabilityInfo = new Dictionary<Guid, bool[]>();
Compiler\RuntimeConfigurationRootProvider.cs (2)
68var settings = new Dictionary<string, ISymbolNode>(); 71var valueDict = new Dictionary<string, ISymbolNode>();
Compiler\SourceLinkWriter.cs (1)
29_sourceLinkMaps = new Dictionary<EcmaModule, SourceLinkMap>();
Compiler\SubstitutionProvider.cs (1)
225InlineableResourceStrings = new Dictionary<string, string>();
Compiler\TypePreinit.cs (7)
42private readonly Dictionary<FieldDesc, Value> _fieldValues = new Dictionary<FieldDesc, Value>(); 43private readonly Dictionary<string, StringInstance> _internedStrings = new Dictionary<string, StringInstance>(); 44private readonly Dictionary<TypeDesc, RuntimeTypeValue> _internedTypes = new Dictionary<TypeDesc, RuntimeTypeValue>(); 45private readonly Dictionary<AllocationSite, ForeignTypeInstance> _foreignInstances = new Dictionary<AllocationSite, ForeignTypeInstance>(); 46private readonly Dictionary<MetadataType, NestedPreinitResult> _nestedPreinitResults = new Dictionary<MetadataType, NestedPreinitResult>(); 47private readonly Dictionary<EcmaField, byte[]> _rvaFieldDatas = new Dictionary<EcmaField, byte[]>(); 3793_fieldValues = new Dictionary<FieldDesc, ISerializableValue>();
Compiler\UsageBasedMetadataManager.cs (1)
980_dictionary = new Dictionary<T, MetadataCategory>(),
Compiler\UserDefinedTypeDescriptor.cs (11)
860private Dictionary<TypeDesc, uint> _knownTypes = new Dictionary<TypeDesc, uint>(); 861private Dictionary<TypeDesc, uint> _completeKnownTypes = new Dictionary<TypeDesc, uint>(); 862private Dictionary<TypeDesc, uint> _knownReferenceWrappedTypes = new Dictionary<TypeDesc, uint>(); 863private Dictionary<TypeDesc, uint> _knownStateMachineThisTypes = new Dictionary<TypeDesc, uint>(); 864private Dictionary<TypeDesc, uint> _pointerTypes = new Dictionary<TypeDesc, uint>(); 865private Dictionary<TypeDesc, uint> _enumTypes = new Dictionary<TypeDesc, uint>(); 866private Dictionary<TypeDesc, uint> _byRefTypes = new Dictionary<TypeDesc, uint>(); 867private Dictionary<TypeDesc, uint> _thisTypes = new Dictionary<TypeDesc, uint>(); 868private Dictionary<TypeDesc, uint> _primitiveTypes = new Dictionary<TypeDesc, uint>(); 869private Dictionary<MethodDesc, uint> _methodIndices = new Dictionary<MethodDesc, uint>(); 870private Dictionary<MethodDesc, uint> _methodIdIndices = new Dictionary<MethodDesc, uint>();
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Wasm.cs (3)
16private readonly Dictionary<int, TypeDesc> _structsBySize = new Dictionary<int, TypeDesc>(); 17private readonly Dictionary<int, TypeDesc> _alignedStructsBySize = new Dictionary<int, TypeDesc>(); 18private readonly Dictionary<int, TypeDesc> _returnStructsBySize = new Dictionary<int, TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
115private Dictionary<P, Vertex> _vertexMap = new Dictionary<P, Vertex>();
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (3)
181var supportMatrix = new Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>>(); 192var matrix = new Dictionary<TargetArchitecture, InstructionSetFlags>(); 203var support = new Dictionary<string, InstructionSet>();
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (6)
131private Dictionary<TypeDesc, Utf8String> _mangledTypeNames = new Dictionary<TypeDesc, Utf8String>(); 132private Dictionary<string, Utf8String> _mangledAssemblyNames = new Dictionary<string, Utf8String>(StringComparer.OrdinalIgnoreCase); 467private Dictionary<MethodDesc, Utf8String> _mangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 468private Dictionary<MethodDesc, Utf8String> _unqualifiedMangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 626private Dictionary<FieldDesc, Utf8String> _mangledFieldNames = new Dictionary<FieldDesc, Utf8String>(); 684private Dictionary<string, Utf8String> _mangledStringLiterals = new Dictionary<string, Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectDataInterner.cs (2)
29public static ObjectDataInterner Null { get; } = new ObjectDataInterner() { _symbolRemapping = new() }; 49symbolRemapping = new Dictionary<ISymbolNode, ISymbolNode>((int)(1.05 * (previousSymbolRemapping?.Count ?? 0)));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
57private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 58private readonly Dictionary<int, CoffSectionSymbol> _sectionNumberToComdatAuxRecord = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (2)
47private readonly Dictionary<Utf8String, ElfSectionDefinition> _comdatNameToElfSection = new(); 50private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
66private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 69private readonly Dictionary<Utf8String, (Utf8String StartNode, Utf8String EndNode, int Size)> _rangeSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
38private readonly Dictionary<ISymbolNode, Utf8String> _mangledNameMap = new(); 43private readonly Dictionary<string, int> _sectionNameToSectionIndex = new(StringComparer.Ordinal); 49private readonly Dictionary<Utf8String, SymbolDefinition> _definedSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (2)
82private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new(); 380_definedSymbols = new Dictionary<Utf8String, SymbolDefinition>(definedSymbols);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
19private Dictionary<Utf8String, uint> _stringToOffset = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (1)
13private readonly Dictionary<string, int> _sectionNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (3)
24private readonly Dictionary<ObjectNodeSection, WasmSectionType> _sectionToType = new() 56private protected readonly Dictionary<string, WasmGlobal> _definedGlobals = new(); 383_definedSymbols = new Dictionary<Utf8String, SymbolDefinition>(definedSymbols);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmRelocatableObjectWriter.cs (1)
62private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
58private readonly Dictionary<Utf8String, Entry> _entries = new();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
239public static readonly TypeMapMetadata Empty = new TypeMapMetadata(new Dictionary<TypeDesc, Map>(), "No type maps", null);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoInstructionSet.cs (1)
1105private static Dictionary<(string, TargetArchitecture), string> AllInstructionSetGroups { get; } = new()
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
545Dictionary<PgoSchemaElem, PgoSchemaElem> dataMerger = new Dictionary<PgoSchemaElem, PgoSchemaElem>(PgoSchemaMergeComparer.Singleton);
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
23private Dictionary<string, AssemblyReferenceHandle> _assemblyRefNameHandles = new Dictionary<string, AssemblyReferenceHandle>(); 24private Dictionary<IAssemblyDesc, AssemblyReferenceHandle> _assemblyRefs = new Dictionary<IAssemblyDesc, AssemblyReferenceHandle>(); 25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>(); 26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>(); 27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>();
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (3)
33Dictionary = other.Dictionary == null ? null : new Dictionary<TKey, TValue>(other.Dictionary); 44(Dictionary ??= new Dictionary<TKey, TValue>())[key] = value; 101var dict = new Dictionary<TKey, TValue>();
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
62branchInput = new(); 63exceptionState = new(); 64exceptionFinallyState = new(); 65finallyInputState = new();
ILCompiler.DependencyAnalysisFramework (3)
DependencyAnalyzer.cs (2)
37private Dictionary<int, List<DependencyNodeCore<DependencyContextType>>> _deferredStaticDependencies = new Dictionary<int, List<DependencyNodeCore<DependencyContextType>>>(); 42private Dictionary<DependencyNodeCore<DependencyContextType>, HashSet<DependencyNodeCore<DependencyContextType>.CombinedDependencyListEntry>> _conditional_dependency_store = new Dictionary<DependencyNodeCore<DependencyContextType>, HashSet<DependencyNodeCore<DependencyContextType>.CombinedDependencyListEntry>>();
DgmlWriter.cs (1)
103private Dictionary<object, int> _nodeMappings = new Dictionary<object, int>();
ILCompiler.Diagnostics (2)
PdbWriter.cs (2)
312_stringTableToOffsetMapping = new Dictionary<string,int>(); 346_documentToChecksumOffsetMapping = new Dictionary<SymDocument,int>();
ILCompiler.MetadataTransform (8)
ILCompiler\Metadata\EntityMap.cs (1)
22_map = new Dictionary<TEntity, TRecord>(comparer);
ILCompiler\Metadata\Transform.Namespace.cs (2)
16private Dictionary<NamespaceKey, NamespaceDefinition> _namespaceDefs = new Dictionary<NamespaceKey, NamespaceDefinition>(); 70private Dictionary<NamespaceKey, NamespaceReference> _namespaceRefs = new Dictionary<NamespaceKey, NamespaceReference>();
ILCompiler\Metadata\Transform.String.cs (1)
13private Dictionary<string, ConstantStringValue> _strings = new Dictionary<string, ConstantStringValue>(StringComparer.Ordinal);
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (2)
157private Dictionary<MetadataRecord, MetadataRecord> _recordPool = new Dictionary<MetadataRecord, MetadataRecord>(); 210var res = new Dictionary<string, DstT>();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (2)
53internal Dictionary<Vertex, Vertex> _placedMap = new Dictionary<Vertex, Vertex>(); 110private Dictionary<Vertex, Vertex> _unifier = new Dictionary<Vertex, Vertex>();
ILCompiler.ReadyToRun (109)
Compiler\CallChainProfile.cs (6)
49private Dictionary<string, int> _resolveFails = new Dictionary<string, int>(); 66var resolvedProfileData = new Dictionary<MethodDesc, Dictionary<MethodDesc, int>>(); 67Dictionary<string, MethodDesc> nameToMethodDescMap = new Dictionary<string, MethodDesc>(); 86resolvedProfileData.Add(resolvedKeyMethod, new Dictionary<MethodDesc, int>()); 247Dictionary<string, Dictionary<string, int>> profileData = new Dictionary<string, Dictionary<string, int>>(); 282profileData.Add(keyParts, new Dictionary<string, int>());
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILDeduplicator.cs (1)
25_cachedMapping = new Dictionary<ISymbolNode, ISymbolNode>();
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (1)
83Dictionary<byte[], BlobVertex> blobCache = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance);
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (1)
63Dictionary<MethodDesc, HashSet<MethodDesc>> inlineeToInliners = new Dictionary<MethodDesc, HashSet<MethodDesc>>();
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (2)
103Dictionary<byte[], BlobVertex> uniqueFixups = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance); 104Dictionary<byte[], BlobVertex> uniqueSignatures = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance);
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (3)
63Dictionary<TypeSystemEntityOrUnknown, int> _typeConversions = new Dictionary<TypeSystemEntityOrUnknown, int>(); 64Dictionary<TypeSystemEntityOrUnknown, int> _methodConversions = new Dictionary<TypeSystemEntityOrUnknown, int>(); 249Dictionary<byte[], BlobVertex> uniqueInstrumentationData = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance);
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (2)
86_assemblyRefToModuleIdMap = new Dictionary<string, int>(); 87_moduleIdToAssemblyNameMap = new Dictionary<int, AssemblyNameInfo>();
Compiler\DependencyAnalysis\ReadyToRun\MethodEntryPointTableNode.cs (1)
77Dictionary<byte[], BlobVertex> uniqueFixups = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance);
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (2)
54_insertedMethodNodes = new Dictionary<MethodWithGCInfo, int>(); 86Dictionary<(MethodWithGCInfo method, int funcletIdx), uint> methodToVirtualIP = new ();
Compiler\FileLayoutOptimizer.cs (4)
209var nameMap = new Dictionary<string, MethodWithGCInfo>(methods.Count); 210var order = new Dictionary<MethodWithGCInfo, int>(methods.Count); 283Dictionary<MethodDesc, MethodWithGCInfo> methodMap = new Dictionary<MethodDesc, MethodWithGCInfo>(); 329var mdToIndex = new Dictionary<MethodDesc, int>();
Compiler\PettisHansenSort\CallGraphNode.cs (1)
16public Dictionary<CallGraphNode, long> OutgoingEdges { get; } = new Dictionary<CallGraphNode, long>();
Compiler\PettisHansenSort\PettisHansen.cs (1)
27var dict = new Dictionary<int, long>(node.OutgoingEdges.Count);
Compiler\ProfileData.cs (1)
81mergedCallWeights = new Dictionary<MethodDesc, int>(data.CallWeights);
Compiler\ProfileDataManager.cs (4)
322private readonly Dictionary<MethodDesc, MethodProfileData> _profileData = new(); 323private readonly Dictionary<ModuleDesc, HashSet<MethodDesc>> _placedProfileMethods = new(); 417Dictionary<MethodSignature, HashSet<MethodDesc>> delegateTargets = new(); 418Dictionary<TypeDesc, HashSet<TypeDesc>> implementers = new();
Compiler\ReadyToRunCompilationModuleGroupBase.cs (2)
62private readonly Dictionary<ModuleDesc, CompilationUnitIndex> _moduleCompilationUnits = new Dictionary<ModuleDesc, CompilationUnitIndex>(); 728var typeRefsInCompilationModuleSet = new Dictionary<TypeDesc, ModuleToken>();
Compiler\ReadyToRunStandaloneMethodMetadata.cs (2)
68Dictionary<int, int> _alternateNonTokenStrings = new Dictionary<int, int>(); 217Dictionary<TypeDesc, EntityHandle> _alternateTypeRefTokens = new Dictionary<TypeDesc, EntityHandle>();
Compiler\ReadyToRunTableManager.cs (1)
53private Dictionary<EcmaModule, PerModuleMethodsGenerated> _methodsGenerated = new Dictionary<EcmaModule, PerModuleMethodsGenerated>();
IBC\IBCDataModel.cs (1)
283Tokens = new Dictionary<SectionFormat, List<TokenData>>();
IBC\IBCDataReader.cs (2)
16private Dictionary<byte, uint> seenFlags = new Dictionary<byte, uint>(); 211var result = new Dictionary<SectionFormat, SectionInfo>();
IBC\IBCProfileData.cs (1)
60private readonly Dictionary<MethodDesc, MethodProfileData> _methodData = new Dictionary<MethodDesc, MethodProfileData>();
IBC\IBCProfileParser.cs (1)
194Dictionary<IBCBlobKey, BlobEntry> blobs = new Dictionary<IBCBlobKey, BlobEntry>();
IBC\MIbcProfileParser.cs (2)
292Dictionary<string, string> keyValue = new(); 585weights = new Dictionary<MethodDesc, int>();
IL\ReadyToRunILProvider.cs (1)
141private Dictionary<MethodDesc, MethodIL> _manifestModuleWrappedMethods = new Dictionary<MethodDesc, MethodIL>();
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
489private Dictionary<TypeDesc, bool> _preInitedTypes = new Dictionary<TypeDesc, bool>();
ObjectWriter\MapFileBuilder.cs (1)
120Dictionary<Utf8String, int> statsNameIndex = new Dictionary<Utf8String, int>();
ObjectWriter\ProfileFileBuilder.cs (1)
135_symbolMethodMap = new Dictionary<MethodDesc, ISymbolDefinitionNode>();
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\PEReaderExtensions.cs (2)
27_namedExportRva = new Dictionary<string, int>(); 28_ordinalRva = new Dictionary<int, int>();
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Wasm.cs (3)
16private readonly Dictionary<int, TypeDesc> _structsBySize = new Dictionary<int, TypeDesc>(); 17private readonly Dictionary<int, TypeDesc> _alignedStructsBySize = new Dictionary<int, TypeDesc>(); 18private readonly Dictionary<int, TypeDesc> _returnStructsBySize = new Dictionary<int, TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
115private Dictionary<P, Vertex> _vertexMap = new Dictionary<P, Vertex>();
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (3)
181var supportMatrix = new Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>>(); 192var matrix = new Dictionary<TargetArchitecture, InstructionSetFlags>(); 203var support = new Dictionary<string, InstructionSet>();
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (6)
131private Dictionary<TypeDesc, Utf8String> _mangledTypeNames = new Dictionary<TypeDesc, Utf8String>(); 132private Dictionary<string, Utf8String> _mangledAssemblyNames = new Dictionary<string, Utf8String>(StringComparer.OrdinalIgnoreCase); 467private Dictionary<MethodDesc, Utf8String> _mangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 468private Dictionary<MethodDesc, Utf8String> _unqualifiedMangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 626private Dictionary<FieldDesc, Utf8String> _mangledFieldNames = new Dictionary<FieldDesc, Utf8String>(); 684private Dictionary<string, Utf8String> _mangledStringLiterals = new Dictionary<string, Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectDataInterner.cs (2)
29public static ObjectDataInterner Null { get; } = new ObjectDataInterner() { _symbolRemapping = new() }; 49symbolRemapping = new Dictionary<ISymbolNode, ISymbolNode>((int)(1.05 * (previousSymbolRemapping?.Count ?? 0)));
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
57private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 58private readonly Dictionary<int, CoffSectionSymbol> _sectionNumberToComdatAuxRecord = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (2)
47private readonly Dictionary<Utf8String, ElfSectionDefinition> _comdatNameToElfSection = new(); 50private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
66private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 69private readonly Dictionary<Utf8String, (Utf8String StartNode, Utf8String EndNode, int Size)> _rangeSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
38private readonly Dictionary<ISymbolNode, Utf8String> _mangledNameMap = new(); 43private readonly Dictionary<string, int> _sectionNameToSectionIndex = new(StringComparer.Ordinal); 49private readonly Dictionary<Utf8String, SymbolDefinition> _definedSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (2)
82private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new(); 380_definedSymbols = new Dictionary<Utf8String, SymbolDefinition>(definedSymbols);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
19private Dictionary<Utf8String, uint> _stringToOffset = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (1)
13private readonly Dictionary<string, int> _sectionNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (3)
24private readonly Dictionary<ObjectNodeSection, WasmSectionType> _sectionToType = new() 56private protected readonly Dictionary<string, WasmGlobal> _definedGlobals = new(); 383_definedSymbols = new Dictionary<Utf8String, SymbolDefinition>(definedSymbols);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
58private readonly Dictionary<Utf8String, Entry> _entries = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (2)
58private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new(); 457Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
239public static readonly TypeMapMetadata Empty = new TypeMapMetadata(new Dictionary<TypeDesc, Map>(), "No type maps", null);
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (2)
53internal Dictionary<Vertex, Vertex> _placedMap = new Dictionary<Vertex, Vertex>(); 110private Dictionary<Vertex, Vertex> _unifier = new Dictionary<Vertex, Vertex>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (10)
78private Dictionary<MethodDesc, PgoInstrumentationResults> _pgoResults = new Dictionary<MethodDesc, PgoInstrumentationResults>(); 237Dictionary<object, IntPtr> objectToHandle = new Dictionary<object, IntPtr>(); 238Dictionary<IntPtr, object> handleToObject = new Dictionary<IntPtr, object>(); 663private Dictionary<object, GCHandle> _pins = new Dictionary<object, GCHandle>(); 753private Dictionary<object, IntPtr> _objectToHandle = new Dictionary<object, IntPtr>(new JitObjectComparer()); 754private Dictionary<MethodDesc, IntPtr> _methodILScopeToHandle = new Dictionary<MethodDesc, IntPtr>(new JitObjectComparer()); 865_instantiationToJitVisibleInstantiation ??= new Dictionary<Instantiation, IntPtr[]>(); 2464private Dictionary<DefType, bool> _doubleAlignHeuristicCache = new Dictionary<DefType, bool>(); 2631private Dictionary<TypeDesc, uint> _classNumInstanceFields = new(); 4094private Dictionary<CorInfoHelpFunc, ISymbolNode> _helperCache = new Dictionary<CorInfoHelpFunc, ISymbolNode>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoInstructionSet.cs (1)
1105private static Dictionary<(string, TargetArchitecture), string> AllInstructionSetGroups { get; } = new()
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
45private Dictionary<string, string> _config = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (1)
545Dictionary<PgoSchemaElem, PgoSchemaElem> dataMerger = new Dictionary<PgoSchemaElem, PgoSchemaElem>(PgoSchemaMergeComparer.Singleton);
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
23private Dictionary<string, AssemblyReferenceHandle> _assemblyRefNameHandles = new Dictionary<string, AssemblyReferenceHandle>(); 24private Dictionary<IAssemblyDesc, AssemblyReferenceHandle> _assemblyRefs = new Dictionary<IAssemblyDesc, AssemblyReferenceHandle>(); 25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>(); 26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>(); 27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>();
TypeSystem\Mutable\MutableModule.cs (5)
23Dictionary<ModuleDesc, EntityHandle> _moduleRefs = new Dictionary<ModuleDesc, EntityHandle>(); 96Dictionary<MetadataType, string> result = new Dictionary<MetadataType, string>(); 160public Dictionary<int, object> Entities = new Dictionary<int, object>(); 161public Dictionary<object, int> ExistingEntities = new Dictionary<object, int>(); 322private Dictionary<ModuleDesc, string> _moduleToModuleRefString = new Dictionary<ModuleDesc, string>();
ILCompiler.RyuJit (22)
Compiler\ProfileDataManager.cs (1)
14private readonly Dictionary<MethodDesc, MethodProfileData> _mergedProfileData = new Dictionary<MethodDesc, MethodProfileData>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (3)
209var nameMap = new Dictionary<string, MethodWithGCInfo>(methods.Count); 210var order = new Dictionary<MethodWithGCInfo, int>(methods.Count); 329var mdToIndex = new Dictionary<MethodDesc, int>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\CallGraphNode.cs (1)
16public Dictionary<CallGraphNode, long> OutgoingEdges { get; } = new Dictionary<CallGraphNode, long>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (1)
27var dict = new Dictionary<int, long>(node.OutgoingEdges.Count);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ProfileData.cs (1)
81mergedCallWeights = new Dictionary<MethodDesc, int>(data.CallWeights);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCDataModel.cs (1)
283Tokens = new Dictionary<SectionFormat, List<TokenData>>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCProfileData.cs (1)
60private readonly Dictionary<MethodDesc, MethodProfileData> _methodData = new Dictionary<MethodDesc, MethodProfileData>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (2)
292Dictionary<string, string> keyValue = new(); 585weights = new Dictionary<MethodDesc, int>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (10)
78private Dictionary<MethodDesc, PgoInstrumentationResults> _pgoResults = new Dictionary<MethodDesc, PgoInstrumentationResults>(); 237Dictionary<object, IntPtr> objectToHandle = new Dictionary<object, IntPtr>(); 238Dictionary<IntPtr, object> handleToObject = new Dictionary<IntPtr, object>(); 663private Dictionary<object, GCHandle> _pins = new Dictionary<object, GCHandle>(); 753private Dictionary<object, IntPtr> _objectToHandle = new Dictionary<object, IntPtr>(new JitObjectComparer()); 754private Dictionary<MethodDesc, IntPtr> _methodILScopeToHandle = new Dictionary<MethodDesc, IntPtr>(new JitObjectComparer()); 865_instantiationToJitVisibleInstantiation ??= new Dictionary<Instantiation, IntPtr[]>(); 2464private Dictionary<DefType, bool> _doubleAlignHeuristicCache = new Dictionary<DefType, bool>(); 2631private Dictionary<TypeDesc, uint> _classNumInstanceFields = new(); 4094private Dictionary<CorInfoHelpFunc, ISymbolNode> _helperCache = new Dictionary<CorInfoHelpFunc, ISymbolNode>();
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
45private Dictionary<string, string> _config = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ILCompiler.TypeSystem (1)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
127_urlCache ??= new Dictionary<DocumentHandle, string>();
illink (74)
ILLink.RoslynAnalyzer (19)
DataFlow\LocalDataFlowVisitor.cs (2)
634var savedTargetValues = new Dictionary<IOperation, TValue>(); 1137evaluatedTargetValues = new Dictionary<IOperation, TValue>();
DataFlowAnalyzerContext.cs (1)
42var enabledAnalyzers = new Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>>();
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (3)
33Dictionary = other.Dictionary == null ? null : new Dictionary<TKey, TValue>(other.Dictionary); 44(Dictionary ??= new Dictionary<TKey, TValue>())[key] = value; 101var dict = new Dictionary<TKey, TValue>();
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
62branchInput = new(); 63exceptionState = new(); 64exceptionFinallyState = new(); 65finallyInputState = new();
TrimAnalysis\ArrayValue.cs (1)
30IndexValues = new Dictionary<int, MultiValue>();
TrimAnalysis\DiagnosticContext.cs (1)
70Dictionary<string, string?>? DAMArgument = new Dictionary<string, string?>();
TrimAnalysis\TrimAnalysisPatternStore.cs (7)
29AssignmentPatterns = new Dictionary<IOperation, TrimAnalysisAssignmentPattern>(); 30FieldAccessPatterns = new Dictionary<IOperation, TrimAnalysisFieldAccessPattern>(); 31BackingFieldAccessPatterns = new Dictionary<IOperation, TrimAnalysisBackingFieldAccessPattern>(); 32GenericInstantiationPatterns = new Dictionary<IOperation, TrimAnalysisGenericInstantiationPattern>(); 33MethodCallPatterns = new Dictionary<IOperation, TrimAnalysisMethodCallPattern>(); 34ReflectionAccessPatterns = new Dictionary<IOperation, TrimAnalysisReflectionAccessPattern>(); 35FeatureCheckReturnValuePatterns = new Dictionary<IOperation, FeatureCheckReturnValuePattern>();
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
94readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string>(); 95readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string>(); 96readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers>(); 97readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new(); 216featureSwitchMembers.Add(currentFeatureSwitch.Value, new Dictionary<string, ClassMembers>());
Infrastructure.Common (4)
ConditionalWcfTest.cs (1)
18private static Dictionary<string, bool> s_evaluatedConditions = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
JsonSerializer.cs (1)
32Dictionary<string, string> dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TestEventListener.cs (1)
15private Dictionary<string, bool> _targetSourceName = new Dictionary<string, bool>();
TestProperties.cs (1)
21Dictionary<String, String> properties = new Dictionary<String, String>(StringComparer.OrdinalIgnoreCase);
Infrastructure.Tests (73)
Pipelines\NixCliPackageTests.cs (5)
12private static readonly Dictionary<string, string> s_expectedSystems = new(StringComparer.Ordinal) 96new Dictionary<string, string?> 140var hexByRid = new Dictionary<string, string>(StringComparer.Ordinal) 158new Dictionary<string, string?> 187new Dictionary<string, string?>
PowerShellScripts\BuildTestMatrixTests.cs (3)
450runners: new Dictionary<string, string> { ["macos"] = "macos-latest-xlarge" }); 506runners: new Dictionary<string, string> { ["linux"] = "ubuntu-24.04" }); 542runners: new Dictionary<string, string>
PowerShellScripts\DownloadNativeArchivesTests.cs (4)
442private readonly Dictionary<string, byte[]> _artifactZips = new(); 444private readonly Dictionary<string, int> _flakyRemaining = new(StringComparer.Ordinal); 445private readonly Dictionary<string, int> _truncatedRemaining = new(StringComparer.Ordinal); 446private readonly Dictionary<string, int> _corruptRemaining = new(StringComparer.Ordinal);
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (3)
411runners: new Dictionary<string, string> { ["macos"] = "macos-latest-xlarge" }); 445runners: new Dictionary<string, string> 646var results = new Dictionary<string, GitHubActionsMatrix>();
PowerShellScripts\PowerShellCommand.cs (1)
24public Dictionary<string, string> Environment { get; } = new();
PowerShellScripts\SplitTestMatrixByDepsTests.cs (2)
292var dict = new Dictionary<string, object>(); 307var results = new Dictionary<string, GitHubActionsMatrix>();
Shared\TestDataBuilder.cs (5)
44Properties = new Dictionary<string, bool> 91Properties = new Dictionary<string, bool> 211Properties = new Dictionary<string, bool> 244public Dictionary<string, bool> Properties { get; set; } = new(); 308public Dictionary<string, bool> Properties { get; set; } = new();
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
504var paths = new Dictionary<string, AffectedPath>(StringComparer.Ordinal)
TestTriggerMap\SelectTestsCliTests.cs (1)
1074var map = new Dictionary<string, string>(StringComparer.Ordinal);
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (1)
357var map = new Dictionary<string, string>(StringComparer.Ordinal);
TestTriggerMap\TestTriggerMapModel.cs (1)
20public Dictionary<string, List<string>> Groups { get; set; } = new();
TestTriggerMap\TestTriggerMapTests.cs (1)
276var expected = new Dictionary<string, Func<bool>>(StringComparer.Ordinal)
tools\GenerateCITimeline\GitHubApi.cs (1)
87var merged = new Dictionary<string, List<string>>();
tools\GenerateCITimeline\TimelineRenderer.cs (4)
57private static readonly Dictionary<string, string> s_statusIcon = new() 65private static readonly Dictionary<string, string> s_runnerEmoji = new() 222var groups = new Dictionary<string, JobGroup>(); 401var phaseJobs = new Dictionary<string, List<JobInfo>>();
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (21)
330new Dictionary<string, string> 335new Dictionary<string, string> 448pullRequestsByHead = new Dictionary<string, object[]> 500pullRequestsByHeadPages = new Dictionary<string, object[][]> 569pullRequestsByHead = new Dictionary<string, object[]> 810issueStatesByNumber = new Dictionary<string, string> 814commentHtmlUrlByNumber = new Dictionary<string, string> 881Dictionary<string, string[]> expectations = new() 1055issueStatesByNumber = new Dictionary<string, string> 1059commentHtmlUrlByNumber = new Dictionary<string, string> 1147issueStatesByNumber = new Dictionary<string, string> 1183issueStatesByNumber = new Dictionary<string, string> 1225issueStatesByNumber = new Dictionary<string, string> 1569new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." }, 1570new Dictionary<string, string> { ["1"] = "Process failed with 0xC0000142" }, 1595new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." }, 1596new Dictionary<string, string> { ["1"] = "Some unrelated failure" }, 1620new Dictionary<string, string> { ["1"] = "Process completed with exit code 1." }, 1621new Dictionary<string, string> { ["1"] = "0xC0000142" }, 2194: new Dictionary<string, string> { [job.Id.ToString()] = jobLogText }; 2198new Dictionary<string, string> { [job.Id.ToString()] = annotationsOrText },
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (1)
418new Dictionary<string, string?>
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (3)
287new Dictionary<string, string?> 318new Dictionary<string, string?> 349new Dictionary<string, string?>
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (15)
87runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() }, 104runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() }, 124runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun() }, 143runsByFile = new Dictionary<string, object> { [WatchedFile] = FailingRun(updatedAt: MinutesAgo(30)) }, 165runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() }, 185runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() }, 206runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun(updatedAt: MinutesAgo(30)) }, 227runsByFile = new Dictionary<string, object> 250runsByFile = new Dictionary<string, object> 274runsByFile = new Dictionary<string, object> { [WatchedFile] = SucceedingRun() }, 295runsByFile = new Dictionary<string, object> 319runsByFile = new Dictionary<string, object> 348runsByFile = new Dictionary<string, object> { ["deployment-tests.yml"] = StartupFailureRun() }, 367runsByFile = new Dictionary<string, object> { [workflowFile] = StartupFailureRun(updatedAt: MinutesAgo(30)) }, 383runsByFile = new Dictionary<string, object> { ["tests-outerloop.yml"] = FailingRun() },
installer.tasks (1)
GenerateFileVersionProps.cs (1)
44var fileVersions = new Dictionary<string, FileVersionData>(StringComparer.OrdinalIgnoreCase);
Microsoft.Analyzers.Extra (9)
Arrays.cs (1)
31private static readonly Dictionary<string, string[]> _collectionFactories = new()
CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
CallAnalyzer.State.cs (5)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default);
StaticTime.cs (2)
16private static readonly Dictionary<string, string[]> _timeMethods = new() 29private static readonly Dictionary<string, string[]> _timeProperties = new()
Microsoft.Analyzers.Local (9)
AssemblyAnalysis.cs (2)
17public Dictionary<ISymbol, List<string>> MissingConstraints { get; } = new(SymbolEqualityComparer.Default); 18public Dictionary<ISymbol, List<string>> MissingBaseTypes { get; } = new(SymbolEqualityComparer.Default);
CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
CallAnalyzer.State.cs (5)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default);
JsonObject.cs (1)
26_properties = new Dictionary<string, JsonValue>();
Microsoft.AspNetCore.Analyzers (1)
StartupAnalysisBuilder.cs (1)
22_analysesByType = new Dictionary<INamedTypeSymbol, List<object>>(SymbolEqualityComparer.Default);
Microsoft.AspNetCore.App.Analyzers (1)
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
77internal static readonly Dictionary<string, string> PropertyMapping = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.App.CodeFixes (1)
Dependencies\ExtensionMethodsCache.cs (1)
12return new()
Microsoft.AspNetCore.Authentication (1)
PropertiesSerializer.cs (1)
71var extra = new Dictionary<string, string?>(count);
Microsoft.AspNetCore.Authentication.Abstractions (5)
AuthenticationOptions.cs (1)
25public IDictionary<string, AuthenticationSchemeBuilder> SchemeMap { get; } = new Dictionary<string, AuthenticationSchemeBuilder>(StringComparer.Ordinal);
AuthenticationProperties.cs (4)
44Items = items ?? new Dictionary<string, string?>(StringComparer.Ordinal); 45Parameters = parameters ?? new Dictionary<string, object?>(StringComparer.Ordinal); 54new Dictionary<string, string?>(Items, StringComparer.Ordinal), 55new Dictionary<string, object?>(Parameters, StringComparer.Ordinal));
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationHandlerProvider.cs (1)
29private readonly Dictionary<string, IAuthenticationHandler> _handlerMap = new Dictionary<string, IAuthenticationHandler>(StringComparer.Ordinal);
AuthenticationSchemeProvider.cs (1)
21: this(options, new Dictionary<string, AuthenticationScheme>(StringComparer.Ordinal))
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (4)
DeviceBoundSessionSourceSchemes.cs (4)
9public IDictionary<string, string> Schemes { get; } = new Dictionary<string, string>(StringComparer.Ordinal); 12public IDictionary<string, string> RefreshSchemes { get; } = new Dictionary<string, string>(StringComparer.Ordinal); 15public IDictionary<string, string> SessionSchemes { get; } = new Dictionary<string, string>(StringComparer.Ordinal); 18public IDictionary<string, string> PolicySchemes { get; } = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
64var queryStrings = new Dictionary<string, string>
Microsoft.AspNetCore.Authentication.OAuth (3)
OAuthHandler.cs (2)
200var tokenRequestParameters = new Dictionary<string, string>() 305var parameters = new Dictionary<string, string>
OAuthOptions.cs (1)
94public IDictionary<string, string> AdditionalAuthorizationParameters { get; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectOptions.cs (1)
247public IDictionary<string, string> AdditionalAuthorizationParameters { get; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Authentication.Twitter (4)
TwitterHandler.cs (4)
186var authorizationParts = new SortedDictionary<string, string>(extraOAuthPairs ?? new Dictionary<string, string>()) 274var response = await ExecuteRequestAsync(TwitterDefaults.RequestTokenEndpoint, HttpMethod.Post, extraOAuthPairs: new Dictionary<string, string>() { { "oauth_callback", callBackUri } }); 299var formPost = new Dictionary<string, string> { { "oauth_verifier", verifier } }; 325var response = await ExecuteRequestAsync("https://api.twitter.com/1.1/account/verify_credentials.json", HttpMethod.Get, accessToken, queryParameters: new Dictionary<string, string>() { { "include_email", "true" } });
Microsoft.AspNetCore.Authorization (1)
AuthorizationOptions.cs (1)
18private Dictionary<string, Task<AuthorizationPolicy?>> PolicyMap { get; } = new Dictionary<string, Task<AuthorizationPolicy?>>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components (38)
CascadingParameterValueProvider.cs (1)
12private readonly Dictionary<ComponentSubscriptionKey, CascadingParameterSubscription> _subscriptions = new();
NavigationManagerExtensions.cs (2)
26private static readonly Dictionary<Type, QueryParameterFormatter<object>> _queryParameterFormatters = new() 706var parameterSources = new Dictionary<ReadOnlyMemory<char>, QueryParameterSource>(QueryParameterNameComparer.Instance);
ParameterView.cs (1)
108var result = new Dictionary<string, object?>();
PersistentState\ComponentStatePersistenceManager.cs (1)
21private readonly Dictionary<string, byte[]> _currentState = new(StringComparer.Ordinal);
PersistentState\PersistentServicesRegistry.cs (1)
185_underlyingAccessors = new Dictionary<string, (PropertySetter, PropertyGetter, RestoreOptions)>(StringComparer.OrdinalIgnoreCase);
Reflection\ComponentProperties.cs (3)
133unmatched ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 154unmatched ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 294_underlyingWriters = new Dictionary<string, PropertySetter>(StringComparer.OrdinalIgnoreCase);
Reflection\MemberAssignment.cs (1)
17var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
Rendering\RenderBatchBuilder.cs (2)
36public Dictionary<string, int> AttributeDiffSet { get; } = new Dictionary<string, int>(); 41= new StackObjectPool<Dictionary<object, KeyedItemInfo>>(maxPreservedItems: 10, () => new Dictionary<object, KeyedItemInfo>());
Rendering\RenderTreeBuilder.cs (2)
842var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance)); 914var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance));
RenderTree\Renderer.cs (6)
35private readonly Dictionary<int, ComponentState> _componentStateById = new Dictionary<int, ComponentState>(); 36private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>(); 38private readonly Dictionary<ulong, (int RenderedByComponentId, EventCallback Callback, string? attributeName)> _eventBindings = new(); 39private readonly Dictionary<ulong, ulong> _eventHandlerIdReplacements = new Dictionary<ulong, ulong>(); 46private readonly object _activityLinksStore = new Dictionary<string, CategoryLink>(StringComparer.OrdinalIgnoreCase); 336_rootComponentsLatestParameters ??= new();
ResourceAssetCollection.cs (1)
29var mappings = new Dictionary<string, ResourceAsset>(StringComparer.OrdinalIgnoreCase);
Routing\Router.cs (2)
25= new Dictionary<string, object>(); 422new RouteData(componentType, new Dictionary<string, object>()));
Routing\RouteTableFactory.cs (1)
88var templatesByHandler = new Dictionary<Type, string[]>();
Sections\SectionRegistry.cs (2)
10private readonly Dictionary<object, SectionOutlet> _subscribersByIdentifier = new(); 11private readonly Dictionary<object, List<SectionContent>> _providersByIdentifier = new();
src\aspnetcore\src\Components\Shared\src\QueryParameterValueSupplier.cs (1)
12private readonly Dictionary<ReadOnlyMemory<char>, StringSegmentAccumulator> _queryParameterValuesByName = new(QueryParameterNameComparer.Instance);
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (5)
34new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>()); 37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>()); 461updatedDefaults = new Dictionary<string, object?>(defaults.Count, StringComparer.OrdinalIgnoreCase); 602updatedDefaults = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Http\Routing\src\RouteConstraintBuilder.cs (2)
44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 54var constraints = new Dictionary<string, IRouteConstraint>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Http\Routing\src\RouteOptions.cs (1)
104var defaults = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
src\aspnetcore\src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
31Literals = new Dictionary<string, UrlMatchingNode>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
34? new Dictionary<string, CategoryLink>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Components.AI (1)
Pipeline\UIAgentOptions.cs (1)
29new(StringComparer.Ordinal);
Microsoft.AspNetCore.Components.AI.SourceGenerators (4)
DiagnosticDescriptors.cs (1)
91private static readonly Dictionary<string, DiagnosticDescriptor> s_byId = new()
ToolBlockEmitter.cs (1)
185var seen = new Dictionary<string, ToolBlockCandidate>();
ToolBlockParser.cs (2)
116var seenKeys = new Dictionary<string, string>(); 160var seenResultKeys = new Dictionary<string, string>();
Microsoft.AspNetCore.Components.Analyzers (3)
ForLoopIteratorInClosureAnalyzer.cs (1)
29var availableTypes = new Dictionary<string, INamedTypeSymbol?>()
StateHasChangedAnalyzer.cs (2)
98var expressionBodyCallLocations = new Dictionary<int, Location>(); 117var callLocations = new Dictionary<int, Location>();
Microsoft.AspNetCore.Components.Endpoints (41)
_generated\2\ImportMapSerializerContext.IReadOnlyDictionaryStringIReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IReadOnlyDictionary<string, string>>(),
_generated\25\BrowserOptionsJsonContext.IDictionaryStringJsonElement.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>(),
_generated\26\BrowserOptionsJsonContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\3\ImportMapSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\56\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
Assets\ImportMapDefinition.cs (1)
146importMap._scopes[key] = new Dictionary<string, string>(value);
BrowserConfiguration\InteractiveServerBrowserOptions.cs (1)
44public IDictionary<string, JsonElement> Extensions { get; } = new Dictionary<string, JsonElement>();
BrowserConfiguration\InteractiveWebAssemblyBrowserOptions.cs (1)
29public IDictionary<string, string> EnvironmentVariables { get; } = new Dictionary<string, string>();
Builder\ResourceCollectionUrlEndpoint.cs (2)
60new Dictionary<string, string> 66new Dictionary<string, string>
Builder\ResourcePreloadCollection.cs (1)
10private readonly Dictionary<string, List<PreloadAsset>> _storage = new();
CacheView\CacheViewService.cs (1)
364resolutions = new Dictionary<string, (CacheView, Task<SerializedRenderFragment?>)>(StringComparer.Ordinal);
Discovery\ComponentCollectionBuilder.cs (1)
12private readonly Dictionary<string, IReadOnlyList<ComponentBuilder>> _components = new();
Discovery\PageCollectionBuilder.cs (1)
11private readonly Dictionary<string, IReadOnlyList<PageComponentBuilder>> _pages = new();
FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
19new Dictionary<TKey, TValue>();
FormMapping\HttpContextFormValueMapper.cs (1)
125var dictionary = new Dictionary<FormKey, StringValues>();
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
Rendering\EndpointHtmlRenderer.EventDispatch.cs (2)
22private readonly Dictionary<(int ComponentId, int FrameIndex), string> _namedSubmitEventsByLocation = new(); 23private readonly Dictionary<string, HashSet<(int ComponentId, int FrameIndex)>> _namedSubmitEventsByScopeQualifiedName = new(StringComparer.Ordinal);
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (2)
265public Dictionary<string, byte[]> Saved { get; private set; } = new(); 271Saved = new Dictionary<string, byte[]>(state);
Rendering\SSRRenderModeBoundary.cs (2)
130_topLevelCaptures ??= new(); 246var dict = new Dictionary<string, object?>(latestParameters.Count);
Results\RazorComponentResult.cs (1)
19= new Dictionary<string, object?>().AsReadOnly();
Results\RazorComponentResultExecutor.cs (1)
57var hostParameters = ParameterView.FromDictionary(new Dictionary<string, object?>
Serialization\JsonStoredDataSerializer.cs (1)
73var result = new Dictionary<string, object?>(data.Count);
SessionCascadingValueSupplier.cs (1)
20private readonly Dictionary<string, Func<object?>> _valueCallbacks = new(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
34? new Dictionary<string, CategoryLink>(StringComparer.OrdinalIgnoreCase)
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (2)
19ExistingState = new Dictionary<string, byte[]>(); 53var dictionary = state as Dictionary<string, byte[]> ?? new Dictionary<string, byte[]>(state);
src\aspnetcore\src\Shared\Components\ProtectedPrerenderComponentApplicationStore.cs (1)
27ExistingState = new Dictionary<string, byte[]>(deserializedState);
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
TempData\SessionStorageTempDataProvider.cs (3)
37return new Dictionary<string, object?>(); 46return new Dictionary<string, object?>(); 51return new Dictionary<string, object?>();
TempData\TempData.cs (2)
12private readonly Dictionary<string, object?> _data = new(StringComparer.OrdinalIgnoreCase); 89var dataToSave = new Dictionary<string, object?>();
TempData\TempDataCascadingValueSupplier.cs (1)
18private readonly Dictionary<string, Func<object?>> _valueCallbacks = new(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.Forms (3)
EditContext.cs (1)
20private readonly Dictionary<FieldIdentifier, FieldState> _fieldStates = new Dictionary<FieldIdentifier, FieldState>();
EditContextProperties.cs (1)
28_contents ??= new Dictionary<object, object>();
ValidationMessageStore.cs (1)
14private readonly Dictionary<FieldIdentifier, List<string>> _messages = new Dictionary<FieldIdentifier, List<string>>();
Microsoft.AspNetCore.Components.Media (1)
FileDownload.cs (1)
79var copy = new Dictionary<string, object>(AdditionalAttributes.Count);
Microsoft.AspNetCore.Components.QuickGrid (4)
Infrastructure\EventCallbackSubscribable.cs (1)
14private readonly Dictionary<EventCallbackSubscriber<T>, EventCallback<T>> _callbacks = new();
QuickGrid.razor.cs (2)
304var attributes = new Dictionary<string, object> 405return NavigationManager.GetUriWithQueryParameters(new Dictionary<string, object?>
src\aspnetcore\src\Components\Shared\src\QueryParameterValueSupplier.cs (1)
12private readonly Dictionary<ReadOnlyMemory<char>, StringSegmentAccumulator> _queryParameterValuesByName = new(QueryParameterNameComparer.Instance);
Microsoft.AspNetCore.Components.Server (14)
_generated\42\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
_generated\9\CircuitPersistenceManagerSerializerContext.DictionaryInt32ComponentMarker.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>(),
Circuits\CircuitPersistenceManager.cs (2)
164rootComponentDescriptors = new Dictionary<int, WebRootComponentDescriptor>(); 211var persistedComponents = new Dictionary<int, ComponentMarker>();
Circuits\ComponentParameterDeserializer.cs (1)
26var parametersDictionary = new Dictionary<string, object>();
Circuits\RemoteJSRuntime.cs (1)
27internal readonly Dictionary<long, RemoteJSDataStream> RemoteJSDataStreamInstances = new();
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
52_deduplicatedStringIndices = new Dictionary<string, int>();
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
34? new Dictionary<string, CategoryLink>(StringComparer.OrdinalIgnoreCase)
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (2)
19ExistingState = new Dictionary<string, byte[]>(); 53var dictionary = state as Dictionary<string, byte[]> ?? new Dictionary<string, byte[]>(state);
src\aspnetcore\src\Shared\Components\ProtectedPrerenderComponentApplicationStore.cs (1)
27ExistingState = new Dictionary<string, byte[]>(deserializedState);
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
246var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.Components.Testing (8)
_generated\5\E2EManifestJsonContext.DictionaryStringE2EAppEntry.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>(),
_generated\6\E2EManifestJsonContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Infrastructure\E2EAppEntry.cs (1)
26public Dictionary<string, string> EnvironmentVariables { get; set; } = new();
Infrastructure\E2EManifest.cs (1)
12public Dictionary<string, E2EAppEntry> Apps { get; set; } = new();
Infrastructure\PlaywrightExtensions.cs (1)
39?? new Dictionary<string, string>();
Infrastructure\ServerFactory.cs (1)
304Destinations = new Dictionary<string, DestinationConfig>
Infrastructure\ServerInstance.cs (1)
217var environment = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\ServerStartOptions.cs (1)
17public Dictionary<string, string> EnvironmentVariables { get; } = new();
Microsoft.AspNetCore.Components.Testing.Tasks (2)
E2EManifestModel.cs (2)
13public Dictionary<string, E2EAppEntryModel> Apps { get; set; } = new(); 32public Dictionary<string, string> EnvironmentVariables { get; set; } = new();
Microsoft.AspNetCore.Components.Web (11)
_generated\6\WebRendererSerializerContext.DictionaryStringJSComponentParameterArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>(),
_generated\7\WebRendererSerializerContext.DictionaryStringListString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>(),
Forms\InputBase.cs (2)
387result = new Dictionary<string, object>(); 396result = new Dictionary<string, object>();
Forms\Mapping\FormMappingContext.cs (3)
97_errors ??= new Dictionary<string, FormMappingError>(); 118_errorsByFormName ??= new Dictionary<string, Dictionary<string, FormMappingError>>(); 121formErrors = new Dictionary<string, FormMappingError>();
JSComponents\JSComponentConfigurationStore.cs (3)
24private readonly Dictionary<string, Type> _jsComponentTypesByIdentifier = new(StringComparer.Ordinal); 25internal Dictionary<string, JSComponentParameter[]> JSComponentParametersByIdentifier { get; } = new(StringComparer.Ordinal); 26internal Dictionary<string, List<string>> JSComponentIdentifiersByInitializer { get; } = new(StringComparer.Ordinal);
JSComponents\JSComponentInterop.cs (1)
202ParameterInfoByName = new(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.WebAssembly (9)
_generated\24\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, byte[]>(),
Hosting\WebAssemblyHostConfiguration.cs (1)
41IDictionary<string, object> IConfigurationBuilder.Properties { get; } = new Dictionary<string, object>();
Http\WebAssemblyHttpRequestMessageExtensions.cs (1)
126fetchOptions = new Dictionary<string, object>(StringComparer.Ordinal);
Prerendering\WebAssemblyComponentParameterDeserializer.cs (1)
30var parametersDictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
52_deduplicatedStringIndices = new Dictionary<string, int>();
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (2)
19ExistingState = new Dictionary<string, byte[]>(); 53var dictionary = state as Dictionary<string, byte[]> ?? new Dictionary<string, byte[]>(state);
Microsoft.AspNetCore.Components.WebAssembly.Authentication (4)
_generated\4\InteractiveRequestOptionsSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Models\InteractiveRequestOptions.cs (1)
45AdditionalRequestParameters ??= new();
Options\OidcProviderOptions.cs (1)
68public IDictionary<string, string> AdditionalProviderParameters { get; } = new Dictionary<string, string>();
RemoteAuthenticatorViewCore.cs (1)
404new Dictionary<string, object?> { ["returnUrl"] = loginUrl });
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
18private static readonly Dictionary<StringSegment, string> _encodingExtensionMap = new Dictionary<StringSegment, string>(StringSegmentComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Components.WebView (7)
_generated\6\SourceGenerationContext.DictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
_generated\7\SourceGenerationContext.IDictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
FileExtensionContentTypeProvider.cs (1)
28: this(new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
52_deduplicatedStringIndices = new Dictionary<string, int>();
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer);
StaticContentProvider.cs (1)
89=> new Dictionary<string, string>()
WebViewManager.cs (1)
29private readonly Dictionary<string, RootComponent> _rootComponentsBySelector = new();
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
22: this(new Dictionary<object, object?>())
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsOptions.cs (1)
16= new Dictionary<string, (CorsPolicy, Task<CorsPolicy>)>(StringComparer.Ordinal);
Microsoft.AspNetCore.DataProtection (4)
KeyManagement\KeyRing.cs (1)
22_keyIdToKeyHolderMap = new Dictionary<Guid, KeyHolder>();
XmlEncryption\XmlEncryptionExtensions.cs (2)
35var placeholderReplacements = new Dictionary<XElement, XElement>(); 117var placeholderReplacements = new Dictionary<XElement, EncryptedXmlInfo>();
XmlEncryption\XmlKeyDecryptionOptions.cs (1)
16private readonly Dictionary<string, List<X509Certificate2>> _certs = new Dictionary<string, List<X509Certificate2>>(StringComparer.Ordinal);
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
src\aspnetcore\src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
23ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Diagnostics (1)
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Diagnostics.HealthChecks (3)
HealthCheckOptions.cs (3)
25private IDictionary<HealthStatus, int> _resultStatusCodes = new Dictionary<HealthStatus, int>(DefaultStatusCodesMapping); 27private static readonly IReadOnlyDictionary<HealthStatus, int> DefaultStatusCodesMapping = new Dictionary<HealthStatus, int> 47set => _resultStatusCodes = value != null ? ValidateStatusCodesMapping(value) : new Dictionary<HealthStatus, int>(DefaultStatusCodesMapping);
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Logging\IncomingHttpRouteUtility.cs (1)
36var parametersToRedact = new Dictionary<string, DataClassification>();
Logging\LoggingRedactionOptions.cs (3)
58public IDictionary<string, DataClassification> RouteParameterDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase); 67public IDictionary<string, DataClassification> RequestHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase); 76public IDictionary<string, DataClassification> ResponseHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase);
Logging\RequestHeadersLogEnricherOptions.cs (1)
23public IDictionary<string, DataClassification> HeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (3)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
RedactionBenchmark.cs (2)
24private readonly Dictionary<string, object?> _routeValues = new() 131var newDict = new Dictionary<string, string>(_routeValues.Count);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (22)
Latency\RequestLatencyTelemetryExtensionsTests.cs (1)
70.AddInMemoryCollection(new Dictionary<string, string?>
Logging\AcceptanceTests.Routing.cs (1)
79validateRequestState(new Dictionary<string, string?>(state));
Logging\HeaderReaderTests.cs (5)
20var reader = new HeaderReader(new Dictionary<string, DataClassification>(), null!, string.Empty); 22var headers = new HeaderDictionary(new Dictionary<string, StringValues> { [HeaderNames.Accept] = MediaTypeNames.Text.Plain }); 30var reader = new HeaderReader(new Dictionary<string, DataClassification> { [HeaderNames.Accept] = DataClassification.Unknown }, null!, string.Empty); 42var headersToLog = new Dictionary<string, DataClassification> 50var headers = new Dictionary<string, StringValues>
Logging\HttpLoggingServiceExtensionsTests.cs (3)
163o.RouteParameterDataClasses = new Dictionary<string, DataClassification> 168o.RequestHeadersDataClasses = new Dictionary<string, DataClassification> 173o.ResponseHeadersDataClasses = new Dictionary<string, DataClassification>
Logging\IncomingHttpRouteUtilityTests.cs (11)
57var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal)); 95var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal)); 135var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal)); 177var d = new Dictionary<string, DataClassification> 220var d = new Dictionary<string, DataClassification> 267var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal)); 306var d = new Dictionary<string, DataClassification> 354var d = new Dictionary<string, DataClassification> 399var d = new Dictionary<string, DataClassification>(); 438var d = new Dictionary<string, DataClassification> 460var d = new Dictionary<string, DataClassification>
Logging\RequestHeadersEnricherTests.cs (1)
265HeadersDataClasses = new Dictionary<string, DataClassification>
Microsoft.AspNetCore.Grpc.JsonTranscoding (8)
Internal\Json\JsonConverterHelper.cs (1)
23internal static readonly Dictionary<string, Type> WellKnownTypeNames = new Dictionary<string, Type>
Internal\Json\MessageTypeInfoResolver.cs (1)
192var map = new Dictionary<string, FieldDescriptor>();
Internal\JsonTranscodingServerCallContext.cs (1)
21private static readonly AuthContext UnauthenticatedContext = new AuthContext(null, new Dictionary<string, List<AuthProperty>>());
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
32var properties = new Dictionary<string, List<AuthProperty>>(StringComparer.Ordinal);
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
116var resolvedCompressionProviders = new Dictionary<string, ICompressionProvider>(StringComparer.Ordinal);
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (3)
391var routeParameterDescriptors = new Dictionary<string, RouteParameter>(StringComparer.Ordinal); 500return new Dictionary<string, FieldDescriptor>(); 504var queryParameters = new Dictionary<string, FieldDescriptor>();
Microsoft.AspNetCore.HeaderParsing (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
143temp4 ??= (global::System.Collections.Generic.IDictionary<string, global::Microsoft.Extensions.Primitives.StringValues>)new Dictionary<string, global::Microsoft.Extensions.Primitives.StringValues>(); 164temp8 ??= (global::System.Collections.Generic.IDictionary<string, int>)new Dictionary<string, int>();
HeaderParsingOptions.cs (2)
22public IDictionary<string, StringValues> DefaultValues { get; set; } = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase); 40public IDictionary<string, int> MaxCachedValuesPerHeader { get; set; } = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.HeaderParsing.Tests (3)
HeaderParsingExtensionsTests.cs (1)
66.AddInMemoryCollection(new Dictionary<string, string?>
HeaderParsingOptionsTests.cs (2)
15var defValue = new Dictionary<string, StringValues>(); 16var maxCachedValues = new Dictionary<string, int>();
Microsoft.AspNetCore.HeaderPropagation (1)
HeaderPropagationMiddleware.cs (1)
46var headers = _values.Headers ??= new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Hosting (4)
_generated\6\SourceGenerationContext.DictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
_generated\7\SourceGenerationContext.IDictionaryStringStaticWebAssetNode.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer);
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Http (12)
Builder\ApplicationBuilder.cs (1)
44Properties = new Dictionary<string, object?>(StringComparer.Ordinal);
HeaderDictionary.cs (1)
58Store = new Dictionary<string, StringValues>(capacity, StringComparer.OrdinalIgnoreCase);
Internal\ItemsDictionary.cs (2)
134_items = new Dictionary<object, object?>(); 163public static readonly IDictionary<object, object?> Dictionary = new Dictionary<object, object?>();
QueryCollection.cs (1)
60Store = new Dictionary<string, StringValues>(capacity, StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
47_innerDictionary = new Dictionary<TKey, TValue>(_sourceDictionary,
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (3)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>(); 65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
81_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer); 518_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer);
Timeouts\RequestTimeoutOptions.cs (1)
20public IDictionary<string, RequestTimeoutPolicy> Policies { get; } = new Dictionary<string, RequestTimeoutPolicy>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Abstractions (6)
ProblemDetails\HttpValidationProblemDetails.cs (2)
18: this(new Dictionary<string, string[]>(StringComparer.Ordinal)) 36: this(new Dictionary<string, string[]>(errors ?? throw new ArgumentNullException(nameof(errors)), StringComparer.Ordinal))
ProblemDetails\ProblemDetails.cs (1)
71public IDictionary<string, object?> Extensions { get; set; } = new Dictionary<string, object?>(StringComparer.Ordinal);
Routing\RouteValueDictionary.cs (1)
900var names = new Dictionary<string, PropertyHelper>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
1020var requestHeaders = new Dictionary<string, StringValues>(existingRequestFeature.Headers.Count, StringComparer.OrdinalIgnoreCase); 1062newHttpContext.Items = new Dictionary<object, object?>(context.Items);
Microsoft.AspNetCore.Http.Connections.Client (1)
HttpConnectionOptions.cs (1)
46_headers = new Dictionary<string, string>();
Microsoft.AspNetCore.Http.Extensions (10)
_generated\3\ProblemDetailsJsonContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\4\ProblemDetailsJsonContext.IDictionaryStringStringArray.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string[]>(),
RequestDelegateFactory.cs (1)
2306var dictionary = new Dictionary<FormKey, StringValues>();
RequestDelegateFactoryContext.cs (1)
43public Dictionary<string, string> TrackedParameters { get; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
19new Dictionary<TKey, TValue>();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\aspnetcore\src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
18Dictionary<TSource, ImmutableArray<TElement>.Builder> map = new(comparer);
StaticRouteHandlerModel\EndpointParameter.cs (1)
486var lookupTable = new Dictionary<ParameterLookupKey, IPropertySymbol>();
Microsoft.AspNetCore.Http.Results (1)
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
425TypedResults.ValidationProblem(new Dictionary<string, string[]> { 434var errorDictionary = new Dictionary<string, string[]>(1);
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (1)
61var personalData = new Dictionary<string, string?>();
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (1)
61var personalData = new Dictionary<string, string?>();
Microsoft.AspNetCore.InternalTesting (4)
AssemblyTestLog.cs (1)
30private static readonly Dictionary<Assembly, AssemblyTestLog> _logs = new();
Tracing\CollectingEventListener.cs (1)
17private readonly Dictionary<string, EventSource> _existingSources = new Dictionary<string, EventSource>(StringComparer.OrdinalIgnoreCase);
Tracing\EventSourceValidator.cs (1)
54var seenIds = new Dictionary<int, string>();
xunit\AspNetTestAssemblyRunner.cs (1)
18private readonly Dictionary<Type, object> _assemblyFixtureMappings = new();
Microsoft.AspNetCore.Mvc.Abstractions (8)
Abstractions\ActionDescriptor.cs (2)
21Properties = new Dictionary<object, object?>(); 22RouteValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
ApiExplorer\ApiDescription.cs (1)
39public IDictionary<object, object> Properties { get; } = new Dictionary<object, object>();
ModelBinding\ModelMetadata.cs (2)
667var parameterMapping = new Dictionary<ModelMetadata, ModelMetadata>(); 668var propertyMapping = new Dictionary<ModelMetadata, ModelMetadata>();
ModelBinding\Validation\ValidationStateDictionary.cs (1)
27_inner = new Dictionary<object, ValidationStateEntry>(ReferenceEqualityComparer.Instance);
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Mvc.ApiExplorer (4)
ApiResponseTypeProvider.cs (3)
193var results = new Dictionary<ResponseKey, ApiResponseType>(); 194var statusCodeScopes = new Dictionary<int, int>(); 309var results = new Dictionary<ResponseKey, ApiResponseType>();
DefaultApiDescriptionProvider.cs (1)
245var routeParameters = new Dictionary<string, ApiParameterRouteInfo>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.Core (41)
ApiBehaviorOptions.cs (1)
92public IDictionary<int, ClientErrorData> ClientErrorMapping { get; } = new Dictionary<int, ClientErrorData>();
ApplicationModels\ActionModel.cs (4)
38RouteValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 39Properties = new Dictionary<object, object?>(); 61Properties = new Dictionary<object, object?>(other.Properties); 62RouteValues = new Dictionary<string, string?>(other.RouteValues, StringComparer.OrdinalIgnoreCase);
ApplicationModels\ApplicationModel.cs (1)
23Properties = new Dictionary<object, object?>();
ApplicationModels\ApplicationModelFactory.cs (4)
60var actionsByMethod = new Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>>(); 61var actionsByRouteName = new Dictionary<string, List<(ActionModel, SelectorModel)>>(StringComparer.OrdinalIgnoreCase); 86var attributeRoutingConfigurationErrors = new Dictionary<MethodInfo, string>(); 131var routeValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase)
ApplicationModels\ControllerModel.cs (4)
38Properties = new Dictionary<object, object?>(); 39RouteValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 60RouteValues = new Dictionary<string, string?>(other.RouteValues, StringComparer.OrdinalIgnoreCase); 61Properties = new Dictionary<object, object?>(other.Properties);
ApplicationModels\ParameterModelBase.cs (2)
28Properties = new Dictionary<object, object?>(); 43Properties = new Dictionary<object, object?>(other.Properties);
Formatters\FormatterMappings.cs (1)
16new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Formatters\TextOutputFormatter.cs (1)
42var cache = new Dictionary<string, string>();
Infrastructure\ActionSelectionTable.cs (2)
107var ordinalEntries = new Dictionary<string[], List<T>>(StringArrayComparer.Ordinal); 108var ordinalIgnoreCaseEntries = new Dictionary<string[], List<T>>(StringArrayComparer.OrdinalIgnoreCase);
Infrastructure\ControllerActionInvoker.cs (1)
75_arguments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
28var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
24var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
ModelBinding\Binders\DictionaryModelBinder.cs (2)
161var keyMappings = new Dictionary<string, TKey>(StringComparer.Ordinal); 245return new Dictionary<TKey, TValue>();
ModelBinding\CompositeValueProvider.cs (1)
141return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
20var dictionary = new Dictionary<string, StringValues>(
ModelBinding\Metadata\DisplayMetadata.cs (1)
20public IDictionary<object, object> AdditionalValues { get; } = new Dictionary<object, object>();
ModelBinding\ModelBinderFactory.cs (1)
224Visited = new Dictionary<Key, IModelBinder?>();
ModelBinding\PrefixContainer.cs (1)
77var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MvcOptions.cs (1)
40CacheProfiles = new Dictionary<string, CacheProfile>(StringComparer.OrdinalIgnoreCase);
Routing\ActionEndpointFactory.cs (1)
313resolvedRequiredValues = new Dictionary<string, string?>(action.RouteValues);
Routing\AttributeRoute.cs (1)
145var templateCache = new Dictionary<string, RouteTemplate>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
47_innerDictionary = new Dictionary<TKey, TValue>(_sourceDictionary,
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (3)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>(); 65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
ValidationProblemDetails.cs (1)
37var errorDictionary = new Dictionary<string, string[]>(StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
176var namesAndValues = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (6)
AnnotatedProblemDetails.cs (1)
45public IDictionary<string, object?> Extensions { get; } = new Dictionary<string, object?>(StringComparer.Ordinal);
BsonTempDataSerializer.cs (4)
31private static readonly Dictionary<JTokenType, Type> _tokenTypeLookup = new Dictionary<JTokenType, Type>(8) 53return new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 57var convertedDictionary = new Dictionary<string, object?>( 229var convertedDictionary = new Dictionary<string, TVal?>(StringComparer.Ordinal);
ValidationProblemDetailsConverter.cs (1)
66public IDictionary<string, string[]> Errors { get; } = new Dictionary<string, string[]>(StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.Razor (5)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
67_hotReloadedViews ??= new(StringComparer.Ordinal);
Compilation\DefaultViewCompiler.cs (1)
52var compiledViews = new Dictionary<string, Task<CompiledViewDescriptor>>(
RazorPageBase.cs (1)
28private readonly IDictionary<string, RenderAsyncDelegate> _sectionWriters = new Dictionary<string, RenderAsyncDelegate>(StringComparer.OrdinalIgnoreCase);
RazorViewEngine.cs (1)
244expanderValues = new Dictionary<string, string?>(StringComparer.Ordinal);
TagHelpers\UrlResolutionTagHelper.cs (1)
58new(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
CSharpCompiler.cs (1)
170new Dictionary<string, ReportDiagnostic>
RuntimeViewCompiler.cs (1)
63_precompiledViews = new Dictionary<string, CompiledViewDescriptor>(
Microsoft.AspNetCore.Mvc.RazorPages (11)
ApplicationModels\PageApplicationModel.cs (1)
65Properties = new Dictionary<object, object?>(other.Properties);
ApplicationModels\PageHandlerModel.cs (2)
29Properties = new Dictionary<object, object?>(); 49Properties = new Dictionary<object, object?>(other.Properties);
ApplicationModels\PageRouteModel.cs (4)
37Properties = new Dictionary<object, object?>(); 39RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 55Properties = new Dictionary<object, object?>(other.Properties); 57RouteValues = new Dictionary<string, string>(other.RouteValues, StringComparer.OrdinalIgnoreCase);
Builder\PageActionEndpointConventionBuilder.cs (1)
26internal IDictionary<string, object> Items { get; set; } = new Dictionary<string, object>();
Infrastructure\CompiledPageActionDescriptorProvider.cs (1)
57var lookup = new Dictionary<string, CompiledViewDescriptor>(feature.ViewDescriptors.Count, StringComparer.Ordinal);
Infrastructure\PageActionDescriptorProvider.cs (1)
105Properties = new Dictionary<object, object?>(model.Properties),
Infrastructure\PageActionInvoker.cs (1)
425_arguments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.TagHelpers (12)
AnchorTagHelper.cs (1)
143_routeValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ComponentTagHelper.cs (1)
43_parameters ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
FormActionTagHelper.cs (1)
159_routeValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
FormTagHelper.cs (1)
128_routeValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
InputTagHelper.cs (5)
23new(StringComparer.OrdinalIgnoreCase) 57new(StringComparer.Ordinal) 216htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 418htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 460htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
SelectTagHelper.cs (1)
139htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
TextAreaTagHelper.cs (1)
77htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
ValidationMessageTagHelper.cs (1)
67htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.Testing (4)
_generated\0\CustomJsonSerializerContext.IDictionaryStringString.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
DeferredHostBuilder.cs (1)
13public IDictionary<object, object> Properties { get; } = new Dictionary<object, object>();
WebApplicationFactory.cs (2)
302config.AddInMemoryCollection(new Dictionary<string, string?> 309var arbitraryActions = new Dictionary<string, Action<object?>>(capacity: 1)
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
GenerateMvcTestManifestTask.cs (1)
35var output = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.ViewFeatures (21)
CookieTempDataProvider.cs (1)
94return new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
DefaultEditorTemplates.cs (1)
180var htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
Filters\SaveTempDataPropertyFilterBase.cs (1)
33public IDictionary<PropertyInfo, object> OriginalValues { get; } = new Dictionary<PropertyInfo, object>();
FormContext.cs (3)
35_formData = new Dictionary<string, object>(StringComparer.Ordinal); 107_renderedFields = new Dictionary<string, bool>(StringComparer.Ordinal); 122_invariantFields ??= new(StringComparer.Ordinal);
HtmlHelper.cs (3)
161return new Dictionary<string, object>(dictionary, StringComparer.OrdinalIgnoreCase); 164dictionary = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 1382var groupList = new Dictionary<string, SelectListGroup>();
Infrastructure\DefaultTempDataSerializer.cs (3)
17return new Dictionary<string, object>(); 27var deserialized = new Dictionary<string, object>(StringComparer.Ordinal); 119var dictionary = new Dictionary<string, string>(StringComparer.Ordinal);
Rendering\ViewContext.cs (1)
207internal Dictionary<object, object?> Items => _items ??= new Dictionary<object, object?>();
SessionStateTempDataProvider.cs (1)
43return new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
TempDataDictionary.cs (2)
141? new Dictionary<string, object?>(providerDictionary, StringComparer.OrdinalIgnoreCase) 142: new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
TemplateRenderer.cs (2)
23new Dictionary<string, Func<IHtmlHelper, IHtmlContent>>(StringComparer.OrdinalIgnoreCase) 38new Dictionary<string, Func<IHtmlHelper, IHtmlContent>>(StringComparer.OrdinalIgnoreCase)
TryGetValueProvider.cs (1)
16new Dictionary<Type, TryGetValueDelegate>();
ViewComponents\DefaultViewComponentHelper.cs (1)
119return new Dictionary<string, object?>(capacity: 1, comparer: StringComparer.OrdinalIgnoreCase)
ViewDataDictionary.cs (1)
119data: new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase),
Microsoft.AspNetCore.OpenApi (31)
Extensions\JsonNodeSchemaExtensions.cs (1)
27private static readonly Dictionary<Type, string> _simpleTypeToFormat = new()
Extensions\JsonTypeInfoExtensions.cs (1)
14private static readonly Dictionary<Type, string> _simpleTypeToName = new()
Schemas\OpenApiJsonSchema.Helpers.cs (8)
72var values = new Dictionary<string, T>(); 334schema.Discriminator.Mapping ??= new Dictionary<string, OpenApiSchemaReference>(); 350schema.Metadata ??= new Dictionary<string, object>(); 355schema.Metadata ??= new Dictionary<string, object>(); 360schema.Metadata ??= new Dictionary<string, object>(); 376schema.Metadata ??= new Dictionary<string, object>(); 381schema.Metadata ??= new Dictionary<string, object>(); 386schema.Metadata ??= new Dictionary<string, object>();
Services\OpenApiDocumentService.cs (16)
97document.Components.Schemas = new Dictionary<string, IOpenApiSchema>( 280var operations = new Dictionary<HttpMethod, OpenApiOperation>(); 284operation.Metadata ??= new Dictionary<string, object>(); 428Content = new Dictionary<string, IOpenApiMediaType>() 434var schemasByContentType = new Dictionary<string, OpenApiResponseContentSchemas>(); 536Properties = new Dictionary<string, IOpenApiSchema> 677actualSchema.Metadata ??= new Dictionary<string, object>(); 731Content = new Dictionary<string, IOpenApiMediaType>() 734var schema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() }; 777Properties = new Dictionary<string, IOpenApiSchema> 785schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 817Properties = new Dictionary<string, IOpenApiSchema> 837schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 847var propertySchema = new OpenApiSchema { Type = JsonSchemaType.Object, Properties = new Dictionary<string, IOpenApiSchema>() }; 875schema.Properties ??= new Dictionary<string, IOpenApiSchema>(); 927Content = new Dictionary<string, IOpenApiMediaType>(),
Services\OpenApiGenerator.cs (3)
119var eligibileAnnotations = new Dictionary<int, (Type?, MediaTypeCollection)>(); 202var responseContent = new Dictionary<string, IOpenApiMediaType>(); 274var requestBodyContent = new Dictionary<string, IOpenApiMediaType>();
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
src\aspnetcore\src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
18Dictionary<TSource, ImmutableArray<TElement>.Builder> map = new(comparer);
Microsoft.AspNetCore.OutputCaching (3)
CacheVaryByRules.cs (1)
21public IDictionary<string, string> VaryByValues => _varyByValues ??= new Dictionary<string, string>();
OutputCacheOptions.cs (2)
55NamedPolicies ??= new Dictionary<string, IOutputCachePolicy>(StringComparer.OrdinalIgnoreCase); 77NamedPolicies ??= new Dictionary<string, IOutputCachePolicy>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Owin (8)
OwinEnvironment.cs (4)
407new Dictionary<string, FeatureMap> 481_contextDependentEntries = new Dictionary<string, FeatureMap> 609_contextEntries = new Dictionary<string, FeatureMap>(StringComparer.Ordinal); 613_contextEntries = new Dictionary<string, FeatureMap>(_entries, StringComparer.Ordinal);
WebSockets\OwinWebSocketAcceptAdapter.cs (1)
59options = new Dictionary<string, object>(1)
WebSockets\OwinWebSocketAcceptContext.cs (2)
18public OwinWebSocketAcceptContext() : this(new Dictionary<string, object>(1)) 47_options = new Dictionary<string, object>(1);
WebSockets\WebSocketAdapter.cs (1)
45_environment = new Dictionary<string, object>();
Microsoft.AspNetCore.RateLimiting (3)
RateLimiterOptions.cs (2)
17= new Dictionary<string, DefaultRateLimiterPolicy>(StringComparer.Ordinal); 20= new Dictionary<string, Func<IServiceProvider, DefaultRateLimiterPolicy>>(StringComparer.Ordinal);
RateLimitingMiddleware.cs (1)
47_policyMap = new Dictionary<string, DefaultRateLimiterPolicy>(options.Value.PolicyMap);
Microsoft.AspNetCore.Razor.Runtime (7)
Runtime\TagHelpers\TagHelperExecutionContext.cs (2)
29items: new Dictionary<object, object>(), 240_perEncoderChildContent = new Dictionary<HtmlEncoder, TagHelperContent>();
Runtime\TagHelpers\TagHelperScopeManager.cs (1)
65items = new Dictionary<object, object>();
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
47_innerDictionary = new Dictionary<TKey, TValue>(_sourceDictionary,
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (3)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>(); 65_copy = new Dictionary<TKey, TValue>(_source, _source.Comparer);
Microsoft.AspNetCore.Razor.Utilities.Shared (5)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\DictionaryPool`2.Policy.cs (1)
41public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.AspNetCore.RequestDecompression (1)
RequestDecompressionOptions.cs (1)
14public IDictionary<string, IDecompressionProvider> DecompressionProviders { get; } = new Dictionary<string, IDecompressionProvider>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Rewrite (4)
ApacheModRewrite\FlagParser.cs (1)
8private static readonly IDictionary<string, FlagType> _ruleFlagLookup = new Dictionary<string, FlagType>(StringComparer.OrdinalIgnoreCase) {
ApacheModRewrite\Flags.cs (1)
22FlagDictionary = new Dictionary<FlagType, string>();
IISUrlRewrite\IISRewriteMap.cs (1)
8private readonly Dictionary<string, string> _map = new Dictionary<string, string>();
IISUrlRewrite\IISRewriteMapCollection.cs (1)
10private readonly Dictionary<string, IISRewriteMap> _rewriteMaps = new Dictionary<string, IISRewriteMap>();
Microsoft.AspNetCore.Routing (34)
DecisionTree\DecisionTreeBuilder.cs (2)
103var criteria = new Dictionary<string, Criterion>(StringComparer.OrdinalIgnoreCase); 153var reducedBranches = new Dictionary<object, DecisionTreeNode<TItem>>(comparer.InnerComparer);
DefaultLinkParser.cs (1)
89var constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase);
EndpointNameAddressScheme.cs (1)
38var entries = new Dictionary<string, Endpoint[]>(StringComparer.Ordinal);
Internal\DfaGraphWriter.cs (1)
54var visited = new Dictionary<DfaNode, int>();
Matching\AcceptsMatcherPolicy.cs (1)
150var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase);
Matching\ContentEncodingNegotiationMatcherPolicy.cs (1)
70_extraDestinations ??= new Dictionary<string, (int destination, double quality)>(StringComparer.OrdinalIgnoreCase);
Matching\DataSourceDependentMatcher.cs (1)
41var seenEndpointNames = new Dictionary<string, string?>();
Matching\DfaMatcherBuilder.cs (2)
52_assignments = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 124_cachedParameters = new Dictionary<string, IParameterPolicy>(StringComparer.Ordinal);
Matching\DfaNode.cs (2)
42PolicyEdges = new Dictionary<object, DfaNode>(); 52Literals = new Dictionary<string, DfaNode>(StringComparer.OrdinalIgnoreCase);
Matching\HostMatcherPolicy.cs (1)
207var edges = new Dictionary<EdgeKey, List<Endpoint>>();
Matching\HttpMethodDestinationsLookup.cs (1)
81_extraDestinations ??= new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Matching\HttpMethodMatcherPolicy.cs (1)
175var edges = new Dictionary<EdgeKey, List<Endpoint>>();
Matching\NegotiationMatcherPolicy.cs (1)
262var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase);
Patterns\RoutePatternFactory.cs (7)
34new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>()); 37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>()); 461updatedDefaults = new Dictionary<string, object?>(defaults.Count, StringComparer.OrdinalIgnoreCase); 602updatedDefaults = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase); 653updatedParameterPolicies = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(parameterPolicies.Count, StringComparer.OrdinalIgnoreCase); 1050var combinedDictionary = new Dictionary<string, TValue>(leftDictionary.Count + rightDictionary.Count, StringComparer.OrdinalIgnoreCase);
RouteCollection.cs (1)
22new Dictionary<string, INamedRouter>(StringComparer.OrdinalIgnoreCase);
RouteConstraintBuilder.cs (2)
44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 54var constraints = new Dictionary<string, IRouteConstraint>(StringComparer.OrdinalIgnoreCase);
RouteOptions.cs (1)
104var defaults = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
RouteValuesAddressScheme.cs (1)
73var namedOutboundMatchResults = new Dictionary<string, List<OutboundMatchResult>>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Tree\LinkGenerationDecisionTree.cs (1)
176var results = new Dictionary<string, DecisionCriterionValue>(StringComparer.OrdinalIgnoreCase);
Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
Tree\TreeRouter.cs (1)
88_namedEntries = new Dictionary<string, OutboundMatch>(StringComparer.OrdinalIgnoreCase);
Tree\UrlMatchingNode.cs (1)
31Literals = new Dictionary<string, UrlMatchingNode>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Routing.Abstractions (2)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.HttpSys (5)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
762var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
StandardFeatureCollection.cs (1)
14private static readonly Dictionary<Type, Func<RequestContext, object?>> _featureFuncLookup = new()
UrlPrefixCollection.cs (1)
17private readonly IDictionary<int, UrlPrefix> _prefixes = new Dictionary<int, UrlPrefix>(1);
Microsoft.AspNetCore.Server.IIS (4)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
762var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Server.IntegrationTesting (3)
CachingApplicationPublisher.cs (1)
10private readonly Dictionary<DotnetPublishParameters, PublishedApplication> _publishCache = new Dictionary<DotnetPublishParameters, PublishedApplication>();
Common\DeploymentParameters.cs (2)
165public IDictionary<string, string> EnvironmentVariables { get; } = new Dictionary<string, string>(); 170public IDictionary<string, string> PublishEnvironmentVariables { get; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Server.Kestrel.Core (11)
Internal\CertificatePathWatcher.cs (2)
23private readonly Dictionary<string, DirectoryWatchMetadata> _metadataForDirectory = new(); 25private readonly Dictionary<string, FileWatchMetadata> _metadataForFile = new();
Internal\ConfigurationReader.cs (2)
41var certificates = new Dictionary<string, CertificateConfig>(0, StringComparer.OrdinalIgnoreCase); 123var sniDictionary = new Dictionary<string, SniConfig>(0, StringComparer.OrdinalIgnoreCase);
Internal\Http\HttpHeaders.cs (1)
26protected Dictionary<string, StringValues> Unknown => MaybeUnknown ??= new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Internal\Http2\Http2Connection.cs (1)
152internal readonly Dictionary<int, Http2Stream> _streams = new Dictionary<int, Http2Stream>();
Internal\Http3\Http3Connection.cs (3)
25internal readonly Dictionary<long, IHttp3Stream> _streams = new(); 26internal readonly Dictionary<long, Http3PendingStream> _unidentifiedStreams = new(); 73_webtransportSessions = new();
Internal\SniOptionsSelector.cs (1)
28private readonly Dictionary<string, SniOptions> _exactNameOptions = new Dictionary<string, SniOptions>(StringComparer.OrdinalIgnoreCase);
KestrelConfigurationLoader.cs (1)
72= new Dictionary<string, Action<EndpointConfiguration>>(0, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (1)
TlsEventPump.cs (1)
53private readonly Dictionary<int, HandshakingConnection> _handshaking = new();
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
11private readonly Dictionary<EncodedKey, byte[]> _store = new Dictionary<EncodedKey, byte[]>();
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (3)
1046readers = new Dictionary<string, object>(); 1509invocationMessage.Headers ??= new Dictionary<string, string>(); 2419private readonly Dictionary<string, InvocationRequest> _pendingCalls = new Dictionary<string, InvocationRequest>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.Parser.cs (1)
240var providerSymbols = new Dictionary<string, (ITypeSymbol, MemberAccessExpressionSyntax)>();
HubServerProxyGenerator.Parser.cs (1)
228var hubSymbols = new Dictionary<string, (ITypeSymbol, MemberAccessExpressionSyntax)>();
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (1)
25private readonly Dictionary<string, HubMethodDescriptor> _methods = new(StringComparer.OrdinalIgnoreCase);
Internal\DefaultHubProtocolResolver.cs (1)
22_availableProtocols = new Dictionary<string, IHubProtocol>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
483var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocolWorker.cs (1)
246var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
480var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.SpaServices.Extensions (1)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
73var envVars = new Dictionary<string, string>
Microsoft.AspNetCore.StaticFiles (1)
FileExtensionContentTypeProvider.cs (1)
22: this(new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.WebUtilities (4)
KeyValueAccumulator.cs (3)
25_accumulator = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase); 49_expandingAccumulator = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 105return _accumulator ?? new Dictionary<string, StringValues>(0, StringComparer.OrdinalIgnoreCase);
QueryHelpers.cs (1)
131return new Dictionary<string, StringValues>(0, StringComparer.OrdinalIgnoreCase);
Microsoft.Build (269)
BackEnd\BuildManager\BuildManager.cs (7)
304_buildSubmissions = new Dictionary<int, BuildSubmissionBase>(); 308_nodeIdToKnownConfigurations = new Dictionary<int, HashSet<int>>(); 309_unnamedProjectInstanceToNames = new Dictionary<ProjectInstance, string>(); 314_projectStartedEvents = new Dictionary<int, BuildEventArgs>(); 2341new ReadOnlyDictionary<ProjectGraphNode, BuildResult>(resultsPerNode ?? new Dictionary<ProjectGraphNode, BuildResult>()))); 2372var buildingNodes = new Dictionary<BuildSubmissionBase, ProjectGraphNode>(); 2373var resultsPerNode = new Dictionary<ProjectGraphNode, BuildResult>(projectGraph.ProjectNodes.Count);
BackEnd\BuildManager\BuildParameters.cs (1)
375Dictionary<string, string> environment = new(BuildProcessEnvironmentInternal, CommunicationsUtilities.EnvironmentVariableComparer);
BackEnd\BuildManager\CacheAggregator.cs (1)
68var configIdMapping = new Dictionary<int, int>();
BackEnd\BuildManager\LegacyThreadingData.cs (1)
28private readonly IDictionary<int, Tuple<AutoResetEvent, ManualResetEvent>> _legacyThreadingEventsById = new Dictionary<int, Tuple<AutoResetEvent, ManualResetEvent>>();
BackEnd\BuildManager\RequestedProjectState.cs (1)
135return new Dictionary<string, List<string>>(capacity, StringComparer.OrdinalIgnoreCase);
BackEnd\Client\MSBuildClient.cs (4)
183_serverEnvironmentVariables = new(); 600? new Dictionary<string, string?>() 601: new Dictionary<string, string?>(baseOverrides); 633Dictionary<string, string> envVars = new();
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
38_componentEntriesByType = new Dictionary<BuildComponentType, BuildComponentEntry>();
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
168_requestsByGlobalRequestId = new Dictionary<int, BuildRequestEntry>(); 422var environmentVariables = new Dictionary<string, string>(_componentHost.BuildParameters.BuildProcessEnvironmentInternal); 660_unresolvedConfigurationsById = new Dictionary<int, BuildRequestConfiguration>(); 661_unresolvedConfigurationsByMetadata = new Dictionary<ConfigurationMetadata, BuildRequestConfiguration>();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (4)
375_outstandingResults ??= new Dictionary<int, BuildResult>(); 437_outstandingResults = new Dictionary<int, BuildResult>(_outstandingRequests.Count); 517_outstandingRequests ??= new Dictionary<int, BuildRequest>(); 525_unresolvedConfigurations ??= new Dictionary<int, List<BuildRequest>>();
BackEnd\Components\Communications\NodeManager.cs (1)
77_nodeIdToProvider = new Dictionary<int, INodeProvider>();
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
1218_forwardEnvironmentBaseline = new Dictionary<string, string>(environment, CommunicationsUtilities.EnvironmentVariableComparer); 1242: new Dictionary<string, string>(globalParameters, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\Logging\LoggingService.cs (1)
322_eventSinkDictionary = new Dictionary<int, IBuildEventSink>();
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
872Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties)
BackEnd\Components\Logging\ProjectTelemetry.cs (4)
42private readonly Dictionary<string, int> _msbuildTaskSubclassUsage = new(); 187Dictionary<string, string> properties = new(); 201Dictionary<string, string> properties = new(); 218Dictionary<string, string> properties = new();
BackEnd\Components\ProjectCache\ProjectCacheDescriptor.cs (1)
17PluginSettings = pluginSettings ?? new Dictionary<string, string>(0);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
189var pluginSettings = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 396Dictionary<string, string> globalProperties = new(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 728var globalProperties = new Dictionary<string, string>(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 795var globalProperties = new Dictionary<string, string>(templateGlobalProperties, StringComparer.OrdinalIgnoreCase)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (2)
212var itemListsToBeBatched = new Dictionary<string, ICollection<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default); 399var itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
711_addTable = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
609var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\Lookup.cs (6)
510allModifies ??= new Dictionary<ProjectItemInstance, MetadataModifications>(modifies.Count); 865PrimaryModifyTable ??= new ItemTypeToItemsMetadataUpdateDictionary(MSBuildNameIgnoreCaseComparer.Default); 869modifiesOfType = new Dictionary<ProjectItemInstance, MetadataModifications>(); 902_cloneTable ??= new Dictionary<ProjectItemInstance, ProjectItemInstance>(); 1135_modifications = new Dictionary<string, MetadataModification>(MSBuildNameIgnoreCaseComparer.Default); 1145_modifications = new Dictionary<string, MetadataModification>(other._modifications, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1035results = new Dictionary<int, BuildResult>();
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (6)
416itemVectorTransformsInTargetInputs = new ItemVectorPartitionCollection(MSBuildNameIgnoreCaseComparer.Default); 799itemVectors = new ItemVectorPartitionCollection(MSBuildNameIgnoreCaseComparer.Default); 800discreteItems = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 842itemVectorPartition = new ItemVectorPartition(MSBuildNameIgnoreCaseComparer.Default); 1261(s_sortInputsOutputs ? (IDictionary<string, object>)new SortedDictionary<string, object>(StringComparer.OrdinalIgnoreCase) : (IDictionary<string, object>)new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)); 1267(s_sortInputsOutputs ? (IDictionary<string, object>)new SortedDictionary<string, object>(StringComparer.OrdinalIgnoreCase) : (IDictionary<string, object>)new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase));
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
345lookupHash ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
987targetOutputsPerProject.Add(new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase)); 1165new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase) 1227targetOutputsPerProject?.Add(new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase));
BackEnd\Components\Scheduler\SchedulableRequest.cs (2)
136_requestsWeAreBlockedBy = new Dictionary<BlockingRequestKey, SchedulableRequest>(); 139_timeRecords = new Dictionary<SchedulableRequestState, ScheduleTimeRecord>(5);
BackEnd\Components\Scheduler\Scheduler.cs (3)
600_availableNodes = new Dictionary<int, NodeInfo>(8); 1358Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 2418Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count);
BackEnd\Components\Scheduler\SchedulingData.cs (11)
24private readonly Dictionary<int, SchedulableRequest> _executingRequests = new Dictionary<int, SchedulableRequest>(32); 29private readonly Dictionary<int, SchedulableRequest> _blockedRequests = new Dictionary<int, SchedulableRequest>(32); 34private readonly Dictionary<int, SchedulableRequest> _yieldingRequests = new Dictionary<int, SchedulableRequest>(32); 39private readonly Dictionary<int, SchedulableRequest> _readyRequests = new Dictionary<int, SchedulableRequest>(32); 50private readonly Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>> _unscheduledRequestNodesByRequest = new Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>>(32); 59private readonly Dictionary<int, HashSet<SchedulableRequest>> _scheduledRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32); 74private readonly Dictionary<int, HashSet<SchedulableRequest>> _readyRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32); 79private readonly Dictionary<int, HashSet<int>> _configurationsByNode = new Dictionary<int, HashSet<int>>(32); 87private readonly Dictionary<int, int> _configurationToNode = new Dictionary<int, int>(32); 92private readonly Dictionary<int, HashSet<SchedulableRequest>> _configurationToRequests = new Dictionary<int, HashSet<SchedulableRequest>>(32); 110private readonly Dictionary<SchedulableRequest, List<SchedulableRequest>> _buildHierarchy = new Dictionary<SchedulableRequest, List<SchedulableRequest>>(32);
BackEnd\Components\Scheduler\SchedulingPlan.cs (4)
37private Dictionary<string, PlanConfigData> _configPathToData = new Dictionary<string, PlanConfigData>(); 42private Dictionary<int, PlanConfigData> _configIdToData = new Dictionary<int, PlanConfigData>(); 47private Dictionary<int, List<Stack<PlanConfigData>>> _configIdToPaths = new Dictionary<int, List<Stack<PlanConfigData>>>(); 110Dictionary<int, double> accumulatedTimeByConfiguration = new Dictionary<int, double>();
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
443_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 501_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>();
BackEnd\Components\SdkResolution\SdkResult.cs (3)
90translator.TranslateDictionary(ref _propertiesToAdd, count => new Dictionary<string, string>(count, StringComparer.OrdinalIgnoreCase)); 94dictionaryCreator: count => new Dictionary<string, SdkResultItem>(count, StringComparer.OrdinalIgnoreCase)); 95translator.TranslateDictionary(ref _environmentVariablesToAdd, count => new Dictionary<string, string>(count, StringComparer.OrdinalIgnoreCase));
BackEnd\Shared\BuildAbortedException.cs (1)
79return new Dictionary<string, string>()
BackEnd\Shared\BuildRequestConfiguration.cs (2)
496Dictionary<string, string> globalProperties = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 645new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase));
BackEnd\Shared\BuildResult.cs (1)
674Dictionary<string, string> additionalEntries = new();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
176private readonly Dictionary<string, TaskFactoryWrapper> _intrinsicTasks = new Dictionary<string, TaskFactoryWrapper>(StringComparer.OrdinalIgnoreCase); 576var setParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BuildCheck\Checks\DoubleWritesCheck.cs (1)
47private readonly Dictionary<string, (string projectFilePath, string taskName)> _filesWritten = new(StringComparer.CurrentCultureIgnoreCase);
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
37private readonly Dictionary<string, (string, string)> _projectsPerReferencePath = new(MSBuildNameIgnoreCaseComparer.Default); 38private readonly Dictionary<string, string> _projectsPerOutputPath = new(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Checks\PropertiesUsageCheck.cs (5)
121private Dictionary<string, IMSBuildElementLocation?> _writenProperties = new(MSBuildNameIgnoreCaseComparer.Default); 126private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsInScope = new(MSBuildNameIgnoreCaseComparer.Default); 127private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsOutOfScope = new(MSBuildNameIgnoreCaseComparer.Default); 239_writenProperties = new Dictionary<string, IMSBuildElementLocation?>(MSBuildNameIgnoreCaseComparer.Default); 240_uninitializedReadsInScope = new Dictionary<string, IMSBuildElementLocation>(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
36private readonly Dictionary<string, string> _projectsPerOutputPath = new(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (2)
29_eventHandlersFull = new() 47_eventHandlersRestore = new()
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
548private readonly Dictionary<int, HashSet<string>> _deferredProjectEvalIdToImportedProjects = new(); 662private readonly Dictionary<int, List<BuildEventArgs>> _deferredEvalDiagnostics = new();
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
53Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(); 152Dictionary<string, TaskInvocationCheckData.TaskParameter> taskParameters = new();
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
164var filteredConfig = new Dictionary<string, string>();
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
81var resultingDictionary = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
BuildCheck\Infrastructure\TracingReporter.cs (1)
32=> new Dictionary<string, TimeSpan>()
Collections\ItemDictionary.cs (3)
48_itemLists = new Dictionary<string, List<T>>(MSBuildNameIgnoreCaseComparer.Default); 58_itemLists = new Dictionary<string, List<T>>(initialItemTypesCapacity, MSBuildNameIgnoreCaseComparer.Default); 67_itemLists = new Dictionary<string, List<T>>(MSBuildNameIgnoreCaseComparer.Default);
Collections\ItemDictionarySlim.cs (1)
19_itemLists = new Dictionary<string, List<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default);
Collections\LookasideStringInterner.cs (1)
49_stringToIdsMap = new Dictionary<string, int>(defaultCollectionSize, comparer);
Collections\MultiDictionary.cs (3)
67_backing = new Dictionary<K, SmallList<V>>(keyComparer); 76_backing = new Dictionary<K, SmallList<V>>(capacity, keyComparer); 166_backing = new Dictionary<K, SmallList<V>>();
Collections\PropertyDictionary.cs (1)
566var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default);
Collections\WeakValueDictionary.cs (1)
46_dictionary = new Dictionary<K, WeakReference<V>>(_capacity, keyComparer);
Construction\ProjectTaskElement.cs (1)
149var parametersClone = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Construction\Solution\ProjectInSolution.cs (1)
145_projectConfigurations = new Dictionary<string, ProjectConfigurationInSolution>(StringComparer.OrdinalIgnoreCase);
Construction\Solution\SolutionFile.cs (8)
354_projectsByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 355_solutionFoldersByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 360_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>(); 765_projectsByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 766_solutionFoldersByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 771_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>(); 826var projectsByUniqueName = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 1709var rawProjectConfigurationsEntries = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Construction\Solution\SolutionProjectGenerator.cs (3)
183_globalProperties = globalProperties ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 251new Dictionary<string, string> 2138var properties = new Dictionary<string, string>(_metaprojectGlobalProperties.Length, StringComparer.OrdinalIgnoreCase);
Definition\Project.cs (2)
2175var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 4153ConditionedProperties = new Dictionary<string, List<string>>(MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectCollection.cs (5)
679dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default); 1322var mergedProperties = new Dictionary<string, string>(globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default); 1955_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase); 2006private Dictionary<string, List<Project>> _loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase); 2166_loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase);
Definition\Toolset.cs (1)
268_subToolsets = subToolsetsAsDictionary ?? new Dictionary<string, SubToolset>(subToolsets);
Definition\ToolsetConfigurationReader.cs (3)
73_projectImportSearchPathsCache = new Dictionary<string, Dictionary<string, ProjectImportPathMatch>>(StringComparer.OrdinalIgnoreCase); 216kindToPathsCache = new Dictionary<string, ProjectImportPathMatch>(); 234var pathsTable = new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetLocalReader.cs (1)
51return new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetReader.cs (1)
465Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Errors\InternalLoggerException.cs (1)
148return new Dictionary<string, string>()
Errors\InvalidProjectFileException.cs (1)
134return new Dictionary<string, string>()
Errors\InvalidToolsetDefinitionException.cs (1)
115return new Dictionary<string, string>()
Evaluation\Evaluator.cs (6)
280_importsSeen = new Dictionary<string, ProjectImportElement>(StringComparer.OrdinalIgnoreCase); 282_projectSupportsReturnsAttribute = new Dictionary<ProjectRootElement, bool>(); 844Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 845Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 847Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets = new Dictionary<string, LinkedListNode<ProjectTargetElement>>(StringComparer.OrdinalIgnoreCase); 2071escapedMetadata = new Dictionary<string, string>(item.Value.Metadata.Count, StringComparer.OrdinalIgnoreCase);
Evaluation\EvaluatorMetadataTable.cs (1)
92_metadata = new Dictionary<string, string>(_capacity, MSBuildNameIgnoreCaseComparer.Default);
Evaluation\Expander.ItemExpander.cs (1)
62private static readonly FrozenDictionary<string, TransformKind> s_intrinsicTransforms = new Dictionary<string, TransformKind>(StringComparer.OrdinalIgnoreCase)
Evaluation\Expander.ItemExpander.Transforms.cs (2)
49private static readonly FrozenDictionary<string, string> s_itemSpecModifiers = new Dictionary<string, string>() 325Dictionary<string, string> directoryNameTable = new Dictionary<string, string>(input.Count, StringComparer.OrdinalIgnoreCase);
Evaluation\ExpressionShredder.cs (1)
430pair.Metadata ??= new Dictionary<string, MetadataReference>(MSBuildNameIgnoreCaseComparer.Default);
Evaluation\GlobResultBuilder.cs (1)
80var removeElementCache = new Dictionary<string, CumulativeRemoveElementData>(projectItemElements.Count);
Evaluation\ItemSpec.cs (2)
584_children = new Dictionary<string, MetadataTrie<P, I>>(comparer); 597_children = new Dictionary<string, MetadataTrie<P, I>>(comparer);
Evaluation\LazyItemEvaluator.cs (4)
43new Dictionary<string, LazyItemList>() : 44new Dictionary<string, LazyItemList>(StringComparer.OrdinalIgnoreCase); 239_cache = new Dictionary<ISet<string>, OrderedItemDataCollection>(); 364Dictionary<string, UpdateOperation> itemsWithNoWildcards = new Dictionary<string, UpdateOperation>(StringComparer.OrdinalIgnoreCase);
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (1)
106_dictionaryBuilder = new Dictionary<string, ItemDataCollectionValue<I>>(StringComparer.OrdinalIgnoreCase);
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
134capturedItemsFromReferencedItemTypes ??= new Dictionary<string, I>(StringComparer.OrdinalIgnoreCase);
Evaluation\ParserIgnoreConfiguration.cs (2)
58_allowedAttributes = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase); 59_allowedChildren = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase);
Evaluation\Preprocessor.cs (2)
56private readonly Dictionary<XmlDocument, List<ResolvedImport>> _implicitImportsByProject = new Dictionary<XmlDocument, List<ResolvedImport>>(); 67_importTable = new Dictionary<XmlElement, IList<ProjectRootElement>>(imports.Count);
Evaluation\Profiler\EvaluationProfiler.cs (1)
23private readonly Dictionary<EvaluationLocation, ProfiledLocation> _timeSpent = new Dictionary<EvaluationLocation, ProfiledLocation>();
Evaluation\PropertiesUseTracker.cs (1)
94_properties = new(StringComparer.OrdinalIgnoreCase);
Evaluation\ToolsetElement.cs (3)
172private Dictionary<string, string> _previouslySeenOS = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 347private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 526private Dictionary<string, string> _previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\ToolsetProvider.cs (2)
38_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase); 103_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
Graph\GraphBuilder.cs (5)
148Dictionary<ProjectGraphNode, HashSet<ProjectGraphNode>> transitiveReferenceCache = new(allParsedProjects.Count); 214var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>(); 320Dictionary<string, ImmutableDictionary<string, string>> globalPropertiesForProjectConfiguration = new(StringComparer.OrdinalIgnoreCase); 324Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new(); 456var nodeStates = new Dictionary<ProjectGraphNode, NodeVisitationState>();
Graph\ParallelWorkSet.cs (1)
49var completedWork = new Dictionary<TKey, TResult>(_inProgressOrCompletedWork.Count);
Instance\HostServices.cs (5)
142_hostObjectMap ??= new Dictionary<string, HostObjects>(StringComparer.OrdinalIgnoreCase); 171_hostObjectMap ??= new Dictionary<string, HostObjects>(StringComparer.OrdinalIgnoreCase); 221_projectAffinities = new Dictionary<string, NodeAffinity>(StringComparer.OrdinalIgnoreCase); 312var hostObjectMap = new Dictionary<string, HostObjects>(); 418_hostObjects = new Dictionary<TargetTaskKey, MonikerNameOrITaskHost>(1);
Instance\ProjectInstance.cs (8)
604thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>(); 605thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>(); 2620translator.TranslateDictionary(ref _beforeTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count)); 2621translator.TranslateDictionary(ref _afterTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count)); 2706Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase); 3190clone = new Dictionary<string, TValue>(0); 3194clone = new Dictionary<string, TValue>(dictionary, strComparer); 3490var projectItemToInstanceMap = keepEvaluationCache ? new Dictionary<ProjectItem, ProjectItemInstance>(items.Count) : null;
Instance\ProjectItemInstance.cs (2)
1633Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(metadata.Count, MSBuildNameIgnoreCaseComparer.Default); 1650Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectTaskInstance.cs (1)
237Dictionary<string, string> filteredParameters = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Instance\TaskFactories\TaskHostTask.cs (3)
208_setParameters = new Dictionary<string, object>(); 452var result = new Dictionary<string, string>(requestProperties.Count); 461return new Dictionary<string, string>(_buildComponentHost.BuildParameters.GlobalProperties);
Instance\TaskFactoryWrapper.cs (4)
277propertyInfoCache = new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 291namesOfPropertiesWithAmbiguousMatches = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 301namesOfPropertiesWithRequiredAttribute = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 312namesOfPropertiesWithOutputAttribute = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\TaskRegistry.cs (7)
154private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>(); 741? new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(capacity.Value, RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact) 742: new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact); 1286_taskNamesCreatableByFactory ??= new Dictionary<RegisteredTaskIdentity, object>( 1508var taskFactoryParams = new Dictionary<string, string>(3) 1768_usingTaskParameters ??= new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 1860translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase));
Logging\BaseConsoleLogger.cs (1)
678table = new Dictionary<string, PerformanceCounter>(StringComparer.OrdinalIgnoreCase);
Logging\BinaryLogger\BuildEventArgsReader.cs (4)
642globalProperties = ReadStringDictionary() ?? new Dictionary<string, string>(); 720var d = new Dictionary<EvaluationLocation, ProfiledLocation>(count); 1289var rawTracingData = ReadStringDictionary() ?? new Dictionary<string, string>(); 1575var result = new Dictionary<string, string>(count);
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
75private readonly Dictionary<HashKey, int> stringHashes = new Dictionary<HashKey, int>(); 80private readonly Dictionary<HashKey, int> nameValueListHashes = new Dictionary<HashKey, int>();
Logging\BinaryLogger\ExtendedDataFields.cs (1)
29new Dictionary<string, string?>(ExtendedMetadata);
Logging\ParallelLogger\ParallelConsoleLogger.cs (8)
30internal Dictionary<(int nodeId, int contextId), string> propertyOutputMap = new Dictionary<(int nodeId, int contextId), string>(); 68_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 208propertyOutputMap = new Dictionary<(int, int), string>(); 210_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 442var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 1673table = new Dictionary<string, PerformanceCounter>(StringComparer.OrdinalIgnoreCase); 1727? new Dictionary<BuildEventContext, object>() 1728: new Dictionary<BuildEventContext, object>(comparer);
Logging\ParallelLogger\ParallelLoggerHelpers.cs (4)
22private Dictionary<string, int> _projectTargetKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 23private Dictionary<string, int> _projectKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 32_projectStartedEvents = new Dictionary<BuildEventContext, ProjectStartedEventMinimumFields>(s_compareContextNodeId); 33_targetStartedEvents = new Dictionary<BuildEventContext, TargetStartedEventMinimumFields>(s_compareContextNodeIdTargetId);
Logging\ProfilerLogger.cs (4)
128new Dictionary<EvaluationLocation, ProfiledLocation>(EvaluationLocationIdAgnosticComparer.Singleton); 132var mergeMap = new Dictionary<long, long>(); 135var originalLocations = new Dictionary<EvaluationLocation, EvaluationLocation>(EvaluationLocationIdAgnosticComparer.Singleton); 218var result = new Dictionary<EvaluationLocation, ProfiledLocation>();
src\9f0d3f3da306d8cf\IEnumerableExtensions.cs (1)
805var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (1)
1222var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (4)
551var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 559return new Dictionary<K, ImmutableArray<T>>(comparer); 564var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 578var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\msbuild\src\Shared\NodePacketFactory.cs (1)
25_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
src\msbuild\src\Shared\PlatformNegotiation.cs (1)
106Dictionary<string, string> table = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\PropertyParser.cs (2)
33propertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 89finalPropertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
87result[i] = new Dictionary<string, string>(globalProperties[i].Count, StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskHostBuildResponse.cs (2)
64var dict = new Dictionary<string, ITaskItem[]>(projectOutputs.Count, StringComparer.OrdinalIgnoreCase); 95var dict = new Dictionary<string, TaskParameter>(projectOutputs?.Count ?? 0, StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskHostConfiguration.cs (3)
208_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 233_taskParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 241_globalParameters = globalParameters ?? new Dictionary<string, string>();
src\msbuild\src\Shared\TaskHostTaskComplete.cs (3)
126_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 139_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 204_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskParameter.cs (7)
593_customEscapedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 610_customEscapedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 632_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 641_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 756_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 842IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 901IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
src\msbuild\src\Shared\Tracing.cs (1)
57s_counts = new Dictionary<string, int>();
src\msbuild\src\Shared\TypeLoader.cs (2)
280Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length); 451_publicTypeNameToType = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
TelemetryInfra\TasksDetailsTelemetry.cs (1)
49return new Dictionary<string, string>(3)
Microsoft.Build.Framework (59)
BackEnd\CommunicationsUtilities.cs (1)
294Dictionary<string, string> table = new(vars.Count, EnvironmentVariableComparer);
BackEnd\TranslatorHelpers.cs (5)
104capacity => new Dictionary<string, string>(capacity, comparer)); 121capacity => new Dictionary<string, T>(capacity, stringComparer)); 137capacity => new Dictionary<string, string>(capacity, comparer)); 154capacity => new Dictionary<string, T>(capacity, stringComparer)); 185translator.TranslateDictionary(ref localDict, capacity => new Dictionary<string, string>(capacity, comparer));
BinaryReaderExtensions.cs (2)
108data.ExtendedMetadata = new Dictionary<string, string?>(); 128var durations = new Dictionary<string, TimeSpan>(count);
BinaryTranslator.cs (5)
601count => new Dictionary<string, string>(count, comparer)); 625dictionary = new Dictionary<string, string>(count, comparer); 626additionalEntries = new(); 733dictionary = new Dictionary<string, T>(count, comparer); 799dictionary = new(count, comparer);
BuildCheck\BuildCheckTracingData.cs (2)
24: this(new Dictionary<string, BuildCheckRuleTelemetryData>(), []) 28: this(new Dictionary<string, BuildCheckRuleTelemetryData>(), executionData)
BuildException\BuildExceptionBase.cs (1)
135customKeyedSerializedData = new Dictionary<string, string?>(count, StringComparer.CurrentCulture);
BuildException\BuildExceptionSerializationHelper.cs (1)
49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
BuildSubmissionStartedEventArgs.cs (2)
19GlobalProperties = new Dictionary<string, string?>(); 83Dictionary<string, string?> globalProperties = new Dictionary<string, string?>(numberOfProperties);
Collections\ReadOnlyEmptyDictionary.cs (2)
23private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 160return new Dictionary<K, V>()[key];
Coordinator\Messages\Message.FactoryBase.Group.cs (1)
20var map = new Dictionary<TMessageType, TFactory>(factories.Length);
DotnetHostEnvironmentHelper.cs (1)
94var overrides = new Dictionary<string, string?>
EscapingUtilities.cs (1)
32private static readonly Dictionary<string, string> s_escapedStringCache = new(StringComparer.Ordinal);
Features.cs (1)
39private static readonly Dictionary<string, FeatureStatus> _featureStatusMap = new Dictionary<string, FeatureStatus>
InterningWriteTranslator.cs (2)
85_stringToIds = new Dictionary<string, int>(initialCapacity, comparer); 86_stringToPathIds = new Dictionary<string, InternPathIds>(initialCapacity, comparer);
Loader\CoreCLRAssemblyLoader.cs (2)
26private readonly Dictionary<string, Assembly> _pathsToAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase); 27private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
LoggerException.cs (1)
116return new Dictionary<string, string?>()
MultiThreadedTaskEnvironmentDriver.cs (2)
35_environmentVariables = new Dictionary<string, string>(environmentVariables, CommunicationsUtilities.EnvironmentVariableComparer); 47_environmentVariables = new Dictionary<string, string>(variables.Count, CommunicationsUtilities.EnvironmentVariableComparer);
MutableTaskItem.cs (3)
16private readonly Dictionary<string, string> _metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 40public IDictionary CloneCustomMetadata() => new Dictionary<string, string>(_metadata); 52public IDictionary CloneCustomMetadataEscaped() => new Dictionary<string, string>(_metadata);
Profiler\EvaluationLocation.cs (1)
63new Dictionary<EvaluationPass, string>
Sdk\SdkResultItem.cs (1)
24Metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
SolutionConfiguration.cs (5)
52_cachedProjectElements = new Dictionary<string, XmlElement>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 53_cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 54_cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 55_cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 56_cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase);
TaskHostParameters.cs (1)
161internal Dictionary<string, string> ToDictionary() => new(3, StringComparer.OrdinalIgnoreCase)
TaskItemData.cs (2)
19private static readonly Dictionary<string, string> _emptyMetadata = new Dictionary<string, string>(); 41var dictionary = new Dictionary<string, string>();
TaskParameterEventArgs.cs (1)
125internal static Func<int, IDictionary<string, string>> DictionaryFactory = capacity => new Dictionary<string, string>(capacity);
Telemetry\BuildCheckTelemetry.cs (3)
25var properties = new Dictionary<string, string>(); 55var properties = new Dictionary<string, string>(); 66properties = new Dictionary<string, string>();
Telemetry\BuildTelemetry.cs (2)
175Dictionary<string, object> telemetryItems = new(8); 212var properties = new Dictionary<string, string>();
Telemetry\CrashTelemetry.cs (2)
496Dictionary<string, object> telemetryItems = new(10); 566var properties = new Dictionary<string, string>();
Telemetry\LoggingConfigurationTelemetry.cs (1)
86var properties = new Dictionary<string, string>();
Telemetry\TelemetryDataUtils.cs (1)
385Dictionary<string, object> properties = new(5)
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
43Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> tasksExecutionData = new(); 64Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> targetsExecutionData = new();
TelemetryEventArgs.cs (1)
24public IDictionary<string, string?> Properties { get; set; } = new Dictionary<string, string?>();
Utilities\FileMatcher.cs (1)
3859searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.NuGetSdkResolver (1)
GlobalJsonReader.cs (1)
196versionsByName ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.CodeAnalysis (4)
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (2)
99var rootByItemSpec = new Dictionary<string, ITaskItem>(); 133var topLevelMappedPaths = new Dictionary<string, string>();
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.Core (99)
AssemblyDependency\GenerateBindingRedirects.cs (1)
376var map = new Dictionary<AssemblyName, string>();
AssemblyDependency\Node\RarNodeExecuteRequest.cs (1)
17private Dictionary<string, TaskParameter> _taskInputs = new(StringComparer.Ordinal);
AssemblyDependency\Node\RarNodeExecuteResponse.cs (1)
18private Dictionary<string, TaskParameter> _taskOutputs = new(StringComparer.Ordinal);
AssemblyDependency\Node\RarTaskParameters.cs (1)
59Dictionary<string, TaskParameter> taskParameters = new(properties.Length, StringComparer.Ordinal);
AssemblyDependency\Reference.cs (3)
27private Dictionary<string, ITaskItem> _sourceItems = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 76private Dictionary<string, UnificationVersion> _preUnificationVersions = new Dictionary<string, UnificationVersion>(StringComparer.OrdinalIgnoreCase); 508_preUnificationVersions = new Dictionary<string, UnificationVersion>(StringComparer.OrdinalIgnoreCase);
AssemblyDependency\ReferenceTable.cs (8)
36private static readonly Dictionary<string, Tuple<RedistList, string>> s_monikerToHighestRedistList = new Dictionary<string, Tuple<RedistList, string>>(StringComparer.OrdinalIgnoreCase); 46private readonly Dictionary<string, AssemblyNameExtension> _externallyResolvedImmutableFiles = new Dictionary<string, AssemblyNameExtension>(StringComparer.OrdinalIgnoreCase); 356_resolvedSDKReferences = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 402internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1407var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1413var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 1899var fullNameToReference = new Dictionary<string, AssemblyNameReference>(References.Count, StringComparer.OrdinalIgnoreCase); 2216var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase);
AssemblyDependency\ResolveAssemblyReference.cs (3)
234private Dictionary<string, MessageImportance> _showAssemblyFoldersExLocations = new Dictionary<string, MessageImportance>(StringComparer.OrdinalIgnoreCase); 1316_unresolvedConflicts.Add(new TaskItem(assemblyName.Name, new Dictionary<string, string>() 3222Dictionary<string, AssemblyTableInfo> tableMap = new Dictionary<string, AssemblyTableInfo>(StringComparer.OrdinalIgnoreCase);
AssignProjectConfiguration.cs (2)
371_vcxToDefaultMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 372_defaultToVcxMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\BootstrapperBuilder.cs (8)
43private readonly Dictionary<string, XmlNode> _cultures = new Dictionary<string, XmlNode>(StringComparer.OrdinalIgnoreCase); 44private readonly Dictionary<string, ProductValidationResults> _validationResults = new Dictionary<string, ProductValidationResults>(StringComparer.Ordinal); 209var eulas = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.Ordinal); 274var builtProducts = new Dictionary<string, ProductBuilder>(); 275var productsAndIncludes = new Dictionary<string, Product>(); 620var availableProducts = new Dictionary<string, Product>(StringComparer.Ordinal); 622var buildQueue = new Dictionary<string, Product>(StringComparer.Ordinal); 2217var includedProducts = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase)
BootstrapperUtil\PackageCollection.cs (1)
16private readonly Dictionary<string, Package> _cultures = new Dictionary<string, Package>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\Product.cs (1)
30private readonly Dictionary<string, Package> _cultures = new Dictionary<string, Package>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\ProductCollection.cs (1)
22private readonly Dictionary<string, Product> _table = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\productvalidationresults.cs (1)
17new Dictionary<string, XmlValidationResults>(StringComparer.Ordinal);
Copy.cs (2)
506var filesActuallyCopied = new Dictionary<string, string>( 617var partitionsByDestination = new Dictionary<string, List<int>>(
CreateItem.cs (1)
219var uniqueItems = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
CreateManifestResourceName.cs (1)
36protected Dictionary<string, ITaskItem> itemSpecToTaskitem = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
FileIO\GetFileHash.cs (1)
28= new Dictionary<string, Func<HashAlgorithm>>(StringComparer.OrdinalIgnoreCase)
GenerateResource.cs (1)
3960resourcesHashTable = new Dictionary<string, IResource>(StringComparer.OrdinalIgnoreCase);
GetSDKReferenceFiles.cs (4)
1225_pathToReferenceMetadata = new Dictionary<string, SdkReferenceInfo>(StringComparer.OrdinalIgnoreCase); 1226_directoryToFileList = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 1271}, count => new Dictionary<string, SdkReferenceInfo>(count, StringComparer.OrdinalIgnoreCase)); 1276}, count => new Dictionary<string, List<string>>(count, StringComparer.OrdinalIgnoreCase));
ManifestUtil\ApplicationManifest.cs (4)
433var clsidList = new Dictionary<string, ComInfo>(); 434var tlbidList = new Dictionary<string, ComInfo>(); 565var usedExtensions = new Dictionary<string, FileAssociation>(StringComparer.OrdinalIgnoreCase); 642var targetPathList = new Dictionary<string, bool>();
ManifestUtil\AssemblyIdentity.cs (1)
402var redistDictionary = new Dictionary<string, RedistList>();
ManifestUtil\Manifest.cs (1)
629var identityList = new Dictionary<string, bool>();
ManifestUtil\Util.cs (1)
412var list = new Dictionary<string, ITaskItem>();
MSBuild.cs (1)
551var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
RedistList.cs (7)
39private static readonly Dictionary<string, RedistList> s_cachedRedistList = new Dictionary<string, RedistList>(StringComparer.OrdinalIgnoreCase); 117var simpleNameMap = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 301s_redistListPathCache = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 666var denyListOfAssemblyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 699var assemblyEntries = new Dictionary<string, AssemblyEntry>(StringComparer.OrdinalIgnoreCase); 871var attributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1090s_subsetListPathCache = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
ResGenDependencies.cs (4)
32internal IDictionary<string, ResXFile> resXFiles = new Dictionary<string, ResXFile>(); 37internal IDictionary<string, PortableLibraryFile> portableLibraries = new Dictionary<string, PortableLibraryFile>(); 111count => new Dictionary<string, ResXFile>(count)); 120count => new Dictionary<string, PortableLibraryFile>(count));
ResolveManifestFiles.cs (4)
853private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(); 854private readonly Dictionary<string, MapEntry> _simpleNameDictionary = new Dictionary<string, MapEntry>(); 918private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(StringComparer.InvariantCultureIgnoreCase); 976private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
ResolveSDKReference.cs (7)
30private static readonly Dictionary<string, string> PlatformAliases = new(StringComparer.OrdinalIgnoreCase) 286_runtimeReferenceOnlyDependenciesByName = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase); 300var sdkItems = new Dictionary<string, ITaskItem>(InstalledSDKs.Length, StringComparer.OrdinalIgnoreCase); 332var productFamilyNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 335var sdkNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 741FrameworkIdentitiesFromManifest = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 742AppxLocationsFromManifest = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ResourceHandling\MSBuildResXReader.cs (1)
25var aliases = new Dictionary<string, string>();
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
47internal static readonly IDictionary<string, IEnumerable<string>> DefaultReferences = new Dictionary<string, IEnumerable<string>>(StringComparer.OrdinalIgnoreCase) 72internal static readonly IDictionary<string, ISet<string>> ValidCodeLanguages = new Dictionary<string, ISet<string>>(StringComparer.OrdinalIgnoreCase)
src\msbuild\src\Shared\NodePacketFactory.cs (1)
25_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
src\msbuild\src\Shared\PlatformNegotiation.cs (1)
106Dictionary<string, string> table = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\PropertyParser.cs (2)
33propertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 89finalPropertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskParameter.cs (7)
593_customEscapedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 610_customEscapedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 632_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 641_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 756_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 842IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 901IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
src\msbuild\src\Shared\Tracing.cs (1)
57s_counts = new Dictionary<string, int>();
system.design\stronglytypedresourcebuilder.cs (2)
150var resourceTypes = new Dictionary<String, ResourceData>(StringComparer.InvariantCultureIgnoreCase); 749reverseFixupTable = new Dictionary<string, string>(0, StringComparer.InvariantCultureIgnoreCase);
SystemState.cs (6)
31private Dictionary<string, FileState> upToDateLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 42internal Dictionary<string, FileState> instanceLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 47internal Dictionary<string, FileState> instanceLocalOutgoingFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 54private Dictionary<string, DateTime> instanceLocalLastModifiedCache = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase); 61private Dictionary<string, bool> instanceLocalDirectoryExists = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase); 68private Dictionary<string, string[]> instanceLocalDirectories = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
Telemetry.cs (1)
35IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
WriteCodeFragment.cs (3)
41private static readonly IReadOnlyDictionary<string, ParameterType> EmptyParameterTypes = new Dictionary<string, ParameterType>(); 345parameterTypes = new(); 375parameterTypes = new();
Microsoft.Build.Tasks.Git (4)
GitDataReader\GitConfig.Reader.cs (2)
78var variables = new Dictionary<GitVariableName, List<string>>(); 93var variables = new Dictionary<GitVariableName, List<string>>();
GitDataReader\GitIgnore.Matcher.cs (2)
33_patternGroups = new Dictionary<string, PatternGroup?>(StringComparer.Ordinal); 34_directoryIgnoreStateCache = new Dictionary<string, bool>(Ignore.PathComparer);
Microsoft.Build.Utilities.Core (20)
MuxLogger.cs (2)
58private readonly Dictionary<int, SubmissionRecord> _submissionRecords = new Dictionary<int, SubmissionRecord>(); 93private readonly Dictionary<int, int> _submissionProjectsInProgress = new Dictionary<int, int>();
SDKManifest.cs (2)
379_frameworkIdentities = new Dictionary<string, string>(); 390_appxLocations = new Dictionary<string, string>();
src\msbuild\src\Shared\Tracing.cs (1)
57s_counts = new Dictionary<string, int>();
TargetPlatformSDK.cs (2)
49ExtensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 50Platforms = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ToolLocationHelper.cs (13)
404var extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 450var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase); 624var filteredExtensionSdks = new Dictionary<string, string>(); 889s_cachedTargetPlatformReferences = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 958s_cachedExtensionSdkReferences = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 1419s_vsInstallFolders = new Dictionary<string, string[]>(); 2101s_cachedReferenceAssemblyPaths = new Dictionary<string, IList<string>>(StringComparer.OrdinalIgnoreCase); 2456s_cachedTargetPlatforms = new Dictionary<string, IEnumerable<TargetPlatformSDK>>(StringComparer.OrdinalIgnoreCase); 2461s_cachedExtensionSdks = new Dictionary<string, TargetPlatformSDK>(StringComparer.OrdinalIgnoreCase); 2466var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3099s_chainedReferenceAssemblyPath ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3100s_cachedTargetFrameworkDisplayNames ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3674s_cachedHighestFrameworkNameForTargetFrameworkIdentifier = new Dictionary<string, FrameworkNameVersioning>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis (131)
Binding\AbstractLookupSymbolsInfo.cs (1)
237_nameMap = new Dictionary<string, UniqueSymbolOrArities>(comparer);
CodeGen\CompilationTestData.cs (1)
68var map = new Dictionary<string, MethodData>();
CodeGen\LocalSlotManager.cs (1)
103map = new Dictionary<ILocalSymbolInternal, LocalDefinition>(ReferenceEqualityComparer.Instance);
CodeGen\SwitchStringJumpTableEmitter.cs (2)
140var hashBucketLabelsMap = new Dictionary<uint, object>(count); 196var stringHashMap = new Dictionary<uint, HashBucket>(caseLabels.Length);
Collections\CachingDictionary.cs (1)
140return new Dictionary<TKey, ImmutableArray<TElement>>(capacity, _comparer);
Collections\IdentifierCollection.cs (1)
27private readonly Dictionary<string, object> _map = new Dictionary<string, object>(
Collections\KeyedStack.cs (1)
18private readonly Dictionary<T, Stack<R>> _dict = new Dictionary<T, Stack<R>>();
Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
CommandLine\CommonCompiler.cs (1)
429var embeddedTreeMap = new Dictionary<string, SyntaxTree>(Arguments.EmbeddedFiles.Length);
CommandLine\SarifV1ErrorLogger.cs (2)
235private readonly Dictionary<string, int> _counters = new Dictionary<string, int>(); 238private readonly Dictionary<DiagnosticDescriptor, string> _keys = new Dictionary<DiagnosticDescriptor, string>(SarifDiagnosticComparer.Instance);
CommandLine\SarifV2ErrorLogger.cs (1)
459private readonly Dictionary<DiagnosticDescriptor, DescriptorInfoWithIndex> _distinctDescriptors = new(SarifDiagnosticComparer.Instance);
Compilation\CommonModuleCompilationState.cs (1)
49Interlocked.CompareExchange(ref _lazyStateMachineTypes, new Dictionary<TMethodSymbol, TNamedTypeSymbol>(), null);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (8)
46_completedSyntaxAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>(); 47_completedSemanticAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>(); 48_completedSyntaxAnalyzersByAdditionalFile = new Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>>(); 49_analyzerActionCounts = new Dictionary<DiagnosticAnalyzer, AnalyzerActionCounts>(analyzers.Length); 55var map = new Dictionary<DiagnosticAnalyzer, TimeSpan>(analyzers.Length); 340lazyLocalDiagnostics = lazyLocalDiagnostics ?? new Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>(); 353allDiagnostics = new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>(); 375_nonLocalDiagnosticsOpt = _nonLocalDiagnosticsOpt ?? new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>();
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
29private readonly Dictionary<string, DirectoryLoadContext> _loadContextByDirectory = new Dictionary<string, DirectoryLoadContext>(GeneratedPathComparer);
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (3)
77private readonly Dictionary<string, (IAnalyzerPathResolver? Resolver, string ResolvedPath, AssemblyName? AssemblyName)> _originalPathInfoMap = new(OriginalPathComparer); 87private readonly Dictionary<string, HashSet<string>> _assemblySimpleNameToOriginalPathListMap = new(SimpleNameComparer.Comparer); 98private readonly Dictionary<string, string> _resolvedToOriginalPathMap = new(GeneratedPathComparer);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
422_lazyGeneratedCodeSymbolsForTreeMap = new Dictionary<SyntaxTree, ImmutableHashSet<ISymbol>>();
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
194var map = new Dictionary<DiagnosticAnalyzer, AnalyzerOptions>( 201var optionsProviderToOptions = new Dictionary<AnalyzerConfigOptionsProvider, AnalyzerOptions>(ReferenceEqualityComparer.Instance);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
230Dictionary<string, ImmutableHashSet<string>.Builder> typeNameMap = new Dictionary<string, ImmutableHashSet<string>.Builder>(StringComparer.OrdinalIgnoreCase);
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (3)
150_lazySymbolScopeTasks ??= new Dictionary<ISymbol, Task<HostSymbolStartAnalysisScope>>(); 170_lazyPendingMemberSymbolsMap ??= new Dictionary<ISymbol, HashSet<ISymbol>?>(); 473_lazyPendingSymbolEndActionsMap ??= new Dictionary<ISymbol, (ImmutableArray<SymbolEndAnalyzerAction>, SymbolDeclaredCompilationEvent)>();
DiagnosticAnalyzer\AnalyzerManager.cs (1)
45var analyzerExecutionContextMap = new Dictionary<DiagnosticAnalyzer, AnalyzerExecutionContext>();
DiagnosticAnalyzer\CompilationAnalysisValueProvider.cs (1)
25_valueMap = new Dictionary<TKey, TValue>(analysisValueProvider.KeyComparer);
DiagnosticAnalyzer\CompilationAnalysisValueProviderFactory.cs (1)
21Interlocked.CompareExchange(ref _lazySharedStateProviderMap, new Dictionary<object, object>(), null);
DiagnosticAnalyzer\DiagnosticQueue.cs (1)
134lazyDiagnosticsMap ??= new Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>();
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (3)
45private readonly Dictionary<string, SuppressMessageInfo> _compilationWideSuppressions = new Dictionary<string, SuppressMessageInfo>(); 48private readonly Dictionary<string, List<SuppressMessageInfo>> _unresolvedSuppressionsById = new Dictionary<string, List<SuppressMessageInfo>>(StringComparer.Ordinal); 111var resolvedSuppressions = new Dictionary<ISymbol, SuppressMessageInfo>();
Emit\EditAndContinue\DefinitionMap.cs (4)
67var mappedMethods = new Dictionary<IMethodSymbolInternal, EncMappedMethod>(); 248var declaratorToIndex = new Dictionary<SyntaxNode, int>(); 557var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>(); 558var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.Instance);
Emit\EditAndContinue\DeltaMetadataWriter.cs (12)
100_deletedTypeMembers = new Dictionary<ITypeDefinition, ImmutableArray<ITypeDefinitionMember>>(ReferenceEqualityComparer.Instance); 108_parameterDefList = new Dictionary<IParameterDefinition, IMethodDefinition>(Cci.SymbolEquivalentEqualityComparer.Instance); 114_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 117_firstParamRowMap = new Dictionary<MethodDefinitionHandle, int>(); 118_existingParameterDefs = new Dictionary<IParameterDefinition, int>(ReferenceEqualityComparer.Instance); 128_addedOrChangedMethods = new Dictionary<IMethodDefinition, AddedOrChangedMethodInfo>(Cci.SymbolEquivalentEqualityComparer.Instance); 192var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>(); 263var result = new Dictionary<K, V>(comparer); 518var result = new Dictionary<ITypeDefinition, ArrayBuilder<ITypeDefinitionMember>>(ReferenceEqualityComparer.Instance); 519var typesUsedByDeletedMembers = new Dictionary<ITypeDefinition, DeletedSourceTypeDefinition>(ReferenceEqualityComparer.Instance); 1515this.added = new Dictionary<T, int>(comparer); 1608_map = new Dictionary<int, T>();
Emit\EditAndContinue\EmitBaseline.cs (15)
176generationOrdinals: new Dictionary<Cci.IDefinition, int>(), 177typesAdded: new Dictionary<Cci.ITypeDefinition, int>(), 178eventsAdded: new Dictionary<Cci.IEventDefinition, int>(), 179fieldsAdded: new Dictionary<Cci.IFieldDefinition, int>(), 180methodsAdded: new Dictionary<Cci.IMethodDefinition, int>(), 181firstParamRowMap: new Dictionary<MethodDefinitionHandle, int>(), 182propertiesAdded: new Dictionary<Cci.IPropertyDefinition, int>(), 183eventMapAdded: new Dictionary<int, int>(), 184propertyMapAdded: new Dictionary<int, int>(), 185methodImplsAdded: new Dictionary<MethodImplKey, int>(), 186customAttributesAdded: new Dictionary<EntityHandle, ImmutableArray<int>>(), 195methodsAddedOrChanged: new Dictionary<int, AddedOrChangedMethodInfo>(), 503var result = new Dictionary<int, int>(); 518var result = new Dictionary<int, int>(); 533var result = new Dictionary<MethodImplKey, int>();
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
83var previousLocalInfoToSlot = new Dictionary<EncLocalInfo, int>();
Emit\EditAndContinue\SymbolChanges.cs (3)
357var changesBuilder = new Dictionary<ISymbolInternal, SymbolChange>(); 358var updatedMethodsBuilder = new Dictionary<INamedTypeSymbolInternal, ArrayBuilder<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>>(); 387lazyDeletedMembersBuilder ??= new();
Emit\EditAndContinue\SymbolMatcher.cs (2)
78var result = new Dictionary<K, V>(Cci.SymbolEquivalentEqualityComparer.Instance); 97var result = new Dictionary<int, AddedOrChangedMethodInfo>();
InternalUtilities\ConcurrentLruCache.cs (1)
40_cache = new Dictionary<K, CacheValue>(capacity);
InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
MetadataReader\MetadataHelpers.cs (1)
909var names = new Dictionary<string, int>(nestedNamespaces.Count, nameComparer);
MetadataReader\PEAssembly.cs (1)
136var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase);
MetadataReader\PEModule.cs (6)
50private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>(); 51private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(); 676Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?>(); 757var namespaceHandles = new Dictionary<NamespaceDefinitionHandle, ArrayBuilder<TypeDefinitionHandle>>(NamespaceHandleEqualityComparer.Singleton); 3835var caseInsensitiveMap = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(StringComparer.OrdinalIgnoreCase); 3903typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
MetadataReference\AssemblyIdentityMap.cs (1)
25_map = new Dictionary<string, OneOrMany<KeyValuePair<AssemblyIdentity, TValue>>>(AssemblyIdentityComparer.SimpleNameComparer);
NativePdbWriter\PdbWriter.cs (2)
48_documentIndex = new Dictionary<DebugSourceDocument, int>(); 49_qualifiedNameCache = new Dictionary<object, string>(ReferenceEqualityComparer.Instance);
Operations\ControlFlowGraphBuilder.cs (1)
8017var explicitProperties = new Dictionary<IPropertySymbol, IOperation>(SymbolEqualityComparer.IgnoreAll);
PEWriter\FullMetadataWriter.cs (2)
100_fieldDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess, ReferenceEqualityComparer.Instance); 101_methodDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess, ReferenceEqualityComparer.Instance);
PEWriter\MetadataWriter.cs (12)
122_smallMethodBodies = new Dictionary<(ImmutableArray<byte>, bool), int>(ByteSequenceBoolTupleComparer.Instance); 123_scopeIndex = new Dictionary<IImportScope, ImportScopeHandle>(new ImportScopeEqualityComparer(context)); 438private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 439private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance); 440private readonly Dictionary<string, int> _fileRefIndex = new Dictionary<string, int>(32); // more than enough in most cases, value is a RowId 442private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(ReferenceEqualityComparer.Instance); 447private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>(); 449private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(ReferenceEqualityComparer.Instance); 4298: this(writer, new Dictionary<T, int>(), lastRowId) 4325: this(writer, new Dictionary<ITypeReference, int>(ReferenceEqualityComparer.Instance), lastRowId) 4355_instanceIndex = new Dictionary<T, int>(ReferenceEqualityComparer.Instance); 4356_structuralIndex = new Dictionary<T, int>(structuralComparer);
PEWriter\MetadataWriter.DynamicAnalysis.cs (3)
50_blobs = new Dictionary<ImmutableArray<byte>, BlobHandle>(1 + methodCountEstimate + 4 * documentCountEstimate, ByteSequenceComparer.Instance); 54_guids = new Dictionary<Guid, GuidHandle>(documentCountEstimate); 58_documentIndex = new Dictionary<DebugSourceDocument, int>(documentCountEstimate);
PEWriter\MetadataWriter.PortablePdb.cs (1)
54private readonly Dictionary<DebugSourceDocument, DocumentHandle> _documentIndex = new Dictionary<DebugSourceDocument, DocumentHandle>();
ReferenceManager\CommonReferenceManager.Resolution.cs (3)
236var boundReferences = new Dictionary<MetadataReference, MetadataReference>(MetadataReferenceEqualityComparer.Instance); 620lazyAliasMap = new Dictionary<MetadataReference, MergedAliases>(); 829localBoundReferenceDirectives = new Dictionary<(string, string), MetadataReference>();
ReferenceManager\CommonReferenceManager.State.cs (4)
202this.ObservedMetadata = observedMetadata ?? new Dictionary<MetadataReference, MetadataOrDiagnostic>(); 472referencedAssembliesMap = new Dictionary<MetadataReference, int>(referenceMap.Length); 473referencedModulesMap = new Dictionary<MetadataReference, int>(referencedModuleCount); 504(mergedAssemblyReferencesMapOpt ??= new Dictionary<MetadataReference, ImmutableArray<MetadataReference>>()).Add(reference, referenceMap[i].MergedReferences);
RuleSet\RuleSet.cs (2)
108var effectiveSpecificOptions = new Dictionary<string, ReportDiagnostic>(); 290diagnosticOptions = new Dictionary<string, ReportDiagnostic>();
SourceGeneration\Nodes\GeneratorRunStateTable.cs (2)
34_namedSteps = new Dictionary<string, HashSet<IncrementalGeneratorRunStep>>(); 35_outputSteps = new Dictionary<string, HashSet<IncrementalGeneratorRunStep>>();
SpecialTypes.cs (1)
95s_nameToTypeIdMap = new Dictionary<string, ExtendedSpecialType>((int)InternalSpecialType.NextAvailable - 1);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
WellKnownTypes.cs (1)
761private static readonly Dictionary<string, WellKnownType> s_nameToTypeIdMap = new Dictionary<string, WellKnownType>((int)Count);
Microsoft.CodeAnalysis.Analyzers (44)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (1)
195var newText = await UpdateEntriesInUnshippedFileAsync(unshippedDataDocument, new Dictionary<string, string>() { { ruleId, entryToUpdate } }, cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
146var entriesToUpdate = new Dictionary<string, string>();
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
100var fixInfoMap = new Dictionary<TextDocument, List<FixInfo>>();
MetaAnalyzers\ReleaseTrackingHelper.cs (1)
51var releaseTrackingDataByRulesBuilder = new Dictionary<string, ReleaseTrackingDataForRuleBuilder>();
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
95var result = new Dictionary<(string ContainerName, string SymbolName), List<BanFileEntry>>();
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (5)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
28_cache = new(comparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>() 45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>() 51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>() 56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>() 62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>() 67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>() 73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>() 78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>() 88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>() 98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.AnalyzerUtilities (28)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
124var originalCoreAnalysisData = new Dictionary<AnalysisEntity, CopyAbstractValue>(coreAnalysisData);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
32var rvalueFlowCaptureIds = new Dictionary<CaptureId, HashSet<IFlowCaptureReferenceOperation>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (5)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
28_cache = new(comparer);
Microsoft.CodeAnalysis.CodeStyle (29)
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
70var result = new Dictionary<int, int>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
29var enumMembers = new Dictionary<long, ISymbol>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
60var enumMembers = new Dictionary<long, ISymbol>();
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
124private readonly Dictionary<ISymbol, ValueUsageInfo> _symbolValueUsageStateMap_doNotAccessDirectly = new(OriginalDefinitionSymbolEqualityComparer.Instance);
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (5)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
28_cache = new(comparer);
Microsoft.CodeAnalysis.CodeStyle.Fixes (18)
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
80var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
174var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
109var cache = new Dictionary<DocumentId, SemanticDocument>();
src\roslyn\src\Analyzers\Core\CodeFixes\Options\FadingOptions.cs (1)
21private static readonly ImmutableDictionary<string, PerLanguageOption2<bool>> s_diagnosticToFadingOption = new Dictionary<string, PerLanguageOption2<bool>>
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
320var canEditMap = new Dictionary<DocumentId, bool>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>() 45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>() 51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>() 56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>() 62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>() 67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>() 73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>() 78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>() 88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>() 98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.CSharp (82)
Binder\Binder_Constraints.cs (1)
44var names = new Dictionary<string, int>(n, StringOrdinalComparer.Instance);
Binder\Binder.CapturedParametersFinder.cs (1)
76var result = new Dictionary<ParameterSymbol, FieldSymbol>(ReferenceEqualityComparer.Instance);
Binder\Binder.QueryTranslationState.cs (1)
50public readonly Dictionary<RangeVariableSymbol, ArrayBuilder<string>> allRangeVariables = new Dictionary<RangeVariableSymbol, ArrayBuilder<string>>();
Binder\OpenTypeVisitor.cs (1)
45_allowedMap ??= new Dictionary<GenericNameSyntax, bool>();
Binder\PatternExplainer.cs (3)
314constraints = new Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>>(); 315evaluations = new Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>>(); 674var properties = new Dictionary<Symbol, string>();
Binder\RefSafetyAnalysis.cs (2)
253_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>(); 531_localEscapeScopes ??= new Dictionary<LocalSymbol, (SafeContext RefEscapeScope, SafeContext ValEscapeScope)>();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
2881var candidates = new Dictionary<TypeWithAnnotations, TypeWithAnnotations>(EqualsIgnoringDynamicTupleNamesAndNullabilityComparer.Instance);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
904Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMap = new Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>>();
Binder\SwitchBinder.cs (2)
100var map = new Dictionary<object, SourceLabelSymbol>(labels.Length, new SwitchConstantValueHelper.SwitchLabelsComparer()); 478var result = new Dictionary<SyntaxNode, LabelSymbol>();
BoundTree\BoundNode_Source.cs (1)
22appendSourceCore(this, indent: 0, tempIdentifiers: new Dictionary<SynthesizedLocal, int>());
CodeGen\EmitStatement.cs (1)
2041_labelClones = labelClones = new Dictionary<LabelSymbol, GeneratedLabelSymbol>();
CommandLine\CSharpCommandLineParser.cs (3)
121var diagnosticOptions = new Dictionary<string, ReportDiagnostic>(); 122var noWarns = new Dictionary<string, ReportDiagnostic>(); 123var warnAsErrors = new Dictionary<string, ReportDiagnostic>();
Compilation\MemberSemanticModel.cs (3)
33private readonly Dictionary<SyntaxNode, OneOrMany<BoundNode>> _guardedBoundNodeMap = new Dictionary<SyntaxNode, OneOrMany<BoundNode>>(); 34private readonly Dictionary<SyntaxNode, IOperation> _guardedIOperationNodeMap = new Dictionary<SyntaxNode, IOperation>(); 1461_lazyGuardedSynthesizedStatementsMap = new Dictionary<SyntaxNode, BoundStatement>();
Compiler\ClsComplianceChecker.cs (1)
1075containingTypes = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>();
Compiler\TypeCompilationState.cs (1)
156_wrappers = new Dictionary<MethodSymbol, MethodSymbol>();
Emitter\EditAndContinue\CSharpDefinitionMap.cs (3)
64var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>(); 65var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.Instance); 155var map = new Dictionary<EncLocalInfo, int>();
Emitter\Model\PEModuleBuilder.cs (2)
720var exportedNamesMap = new Dictionary<string, NamedTypeSymbol>(StringOrdinalComparer.Instance); 1619Interlocked.CompareExchange(ref _fixedImplementationTypes, new Dictionary<FieldSymbol, NamedTypeSymbol>(), null);
Errors\ErrorFacts.cs (1)
98var map = new Dictionary<ErrorCode, string>()
FlowAnalysis\AbstractFlowPass.cs (1)
218_loopHeadState = new Dictionary<BoundLoopStatement, TLocalState>(ReferenceEqualityComparer.Instance);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
909_labelsInInterestingTry = labelsInInterestingTry = new Dictionary<BoundTryStatement, HashSet<LabelSymbol>>(); 1055this.proxyLabels = proxyLabels = new Dictionary<LabelSymbol, LabelSymbol>(); 1136_hoistedLocals = new Dictionary<LocalSymbol, LocalSymbol>();
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
100_awaiterFields = new Dictionary<TypeSymbol, FieldSymbol>(Symbols.SymbolEqualityComparer.IgnoringDynamicTupleNamesAndNullability); 103_placeholderMap = new Dictionary<BoundValuePlaceholderBase, BoundExpression>();
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (2)
24private readonly Dictionary<LocalSymbol, LocalSymbol> localMap = new Dictionary<LocalSymbol, LocalSymbol>(); 27private readonly Dictionary<BoundValuePlaceholderBase, BoundValuePlaceholderBase> _placeholderMap = new Dictionary<BoundValuePlaceholderBase, BoundValuePlaceholderBase>();
Lowering\ClosureConversion\ClosureConversion.cs (3)
85private readonly Dictionary<ParameterSymbol, ParameterSymbol> _parameterMap = new Dictionary<ParameterSymbol, ParameterSymbol>(); 88private readonly Dictionary<BoundNode, Analysis.ClosureEnvironment> _frames = new Dictionary<BoundNode, Analysis.ClosureEnvironment>(); 92private readonly Dictionary<NamedTypeSymbol, Symbol> _framePointers = new Dictionary<NamedTypeSymbol, Symbol>();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
21private readonly Dictionary<ParameterSymbol, BoundExpression> _parameterMap = new Dictionary<ParameterSymbol, BoundExpression>(); 916_placeholderReplacementMap ??= new Dictionary<BoundValuePlaceholder, BoundExpression>();
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.IteratorFinallyFrame.cs (2)
84this.knownStates = knownStates = new Dictionary<StateMachineState, IteratorFinallyFrame>(); 109this.proxyLabels = proxyLabels = new Dictionary<LabelSymbol, LabelSymbol>();
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (1)
77_labelsInYieldingTrys = yieldingTryLabels = new Dictionary<BoundTryStatement, HashSet<LabelSymbol>>();
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
19private readonly Dictionary<(TypeSymbol?, TypeSymbol, MethodSymbol), FieldSymbol> _delegateFields = new(CLRSignatureComparer.Instance);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
107var containers = _genericCacheContainers ??= new Dictionary<Symbol, DelegateCacheContainer>(ReferenceEqualityComparer.Instance);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
179_lazyUnmatchedLabelCache = new Dictionary<BoundNode, HashSet<LabelSymbol>>();
Lowering\LocalRewriter\LocalRewriter.cs (1)
547_placeholderReplacementMapDoNotUseDirectly = new Dictionary<BoundValuePlaceholderBase, BoundExpression>();
Lowering\MethodToClassRewriter.cs (1)
24protected Dictionary<Symbol, CapturedSymbolReplacement> proxies = new Dictionary<Symbol, CapturedSymbolReplacement>();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
44private readonly Dictionary<LocalSymbol, BoundExpression> _boundRefLocalInitializers = new Dictionary<LocalSymbol, BoundExpression>();
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
64private Dictionary<LabelSymbol, List<StateMachineState>> _dispatches = new Dictionary<LabelSymbol, List<StateMachineState>>(); 238_dispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>(); 503_lazyAvailableReusableHoistedFields = new Dictionary<TypeSymbol, ArrayBuilder<StateMachineFieldSymbol>>(Symbols.SymbolEqualityComparer.IgnoringDynamicTupleNamesAndNullability); 746oldDispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>();
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
115initialParameters = new Dictionary<Symbol, CapturedSymbolReplacement>(); 146var proxiesBuilder = new Dictionary<Symbol, CapturedSymbolReplacement>();
Lowering\SynthesizedSubmissionFields.cs (1)
77_previousSubmissionFieldMap = new Dictionary<ImplicitNamedTypeSymbol, FieldSymbol>();
Symbols\MemberSymbolExtensions.cs (1)
163ordinals = new Dictionary<TypeParameterSymbol, int>(ReferenceEqualityComparer.Instance);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
34new Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance);
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
262var namespaces = new Dictionary<ReadOnlyMemory<char>, PENestedNamespaceSymbol>(ReadOnlyMemoryOfCharComparer.Instance); 304noPiaLocalTypes = new Dictionary<string, TypeDefinitionHandle>(StringOrdinalComparer.Instance);
Symbols\ReferenceManager.cs (1)
849missingAssemblies = new Dictionary<AssemblyIdentity, MissingAssemblySymbol>();
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
50new Dictionary<AssemblySymbol, DestinationData>();
Symbols\Source\ExtensionGroupingInfo.cs (2)
31var groupingMap = new Dictionary<string, MultiDictionary<string, SourceNamedTypeSymbol>>(EqualityComparer<string>.Default); 330var counts = new Dictionary<CSharpAttributeData, int>(comparer);
Symbols\Source\QuickAttributeChecker.cs (2)
64_nameToAttributeMap = new Dictionary<string, QuickAttributes>(StringComparer.Ordinal); 70_nameToAttributeMap = new Dictionary<string, QuickAttributes>(previous._nameToAttributeMap, StringComparer.Ordinal);
Symbols\Source\SourceAssemblySymbol.cs (1)
2855forwardedTypesFromSource = new Dictionary<string, NamedTypeSymbol>(StringOrdinalComparer.Instance);
Symbols\Source\SourceMemberContainerSymbol.cs (11)
209new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance); 1436var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>(); 1752return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(1, ReadOnlyMemoryOfCharComparer.Instance) 1760return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(ReadOnlyMemoryOfCharComparer.Instance); 1773var dictionary = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(accumulator.Count, ReadOnlyMemoryOfCharComparer.Instance); 2182var methodsBySignature = new Dictionary<MethodSymbol, MethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2183var conversionsAsMethods = new Dictionary<MethodSymbol, MethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2436var indexersBySignature = new Dictionary<PropertySymbol, PropertySymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2629membersByName = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(membersByName, ReadOnlyMemoryOfCharComparer.Instance); 3138var instanceMap = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>(ReferenceEqualityComparer.Instance); 4165var membersBySignature = new Dictionary<Symbol, Symbol>(MemberSignatureComparer.PartialMethodsComparer);
Symbols\Source\SourceNamespaceSymbol.cs (1)
282var result = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>>(builder.Count, ReadOnlyMemoryOfCharComparer.Instance);
Utilities\FirstAmongEqualsSet.cs (1)
51_dictionary = new Dictionary<T, T>(equalityComparer);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.EqualityComparer) 36private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.EqualityComparer)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Microsoft.CodeAnalysis.CSharp.Features (4)
ChangeSignature\CSharpChangeSignatureService.cs (1)
825var dictionary = new Dictionary<string, XmlElementSyntax>();
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
22private static readonly Dictionary<BinaryOperatorKind, SyntaxKind> s_operatorMap = new()
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
697var replacements = new Dictionary<SyntaxNode, SyntaxNode>();
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
96var map = new Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>>();
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.FixAllProvider.cs (1)
37Dictionary<IBlockOperation, IdentifierGenerator> scopeMap = new();
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
FileBasedPrograms\FileBasedProgramService.cs (1)
28var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.EqualityComparer) 36private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.EqualityComparer)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
899_seen ??= new(NamedDirectiveComparer.Instance);
Microsoft.CodeAnalysis.Extensions.Package (6)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Features (67)
ChangeSignature\AbstractChangeSignatureService.cs (5)
254var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>(); 255var definitionToUse = new Dictionary<SyntaxNode, ISymbol>(); 376var updatedRoots = new Dictionary<DocumentId, SyntaxNode>(); 482var argumentToParameterMap = new Dictionary<IUnifiedArgumentSyntax, IParameterSymbol>(); 483var parameterToIndexMap = new Dictionary<IParameterSymbol, int>();
CodeFixes\Service\CodeFixService.cs (2)
505var uniqueDiagnosticToEquivalenceKeysMap = new Dictionary<Diagnostic, PooledHashSet<string?>>(); 510var diagnosticAndEquivalenceKeyToFixersMap = new Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
50var currentDiagnosticSpans = new Dictionary<Diagnostic, TextSpan>();
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
135_childFolders = new Dictionary<string, FolderInfo>(StringComparer.Ordinal);
Completion\CompletionService_GetCompletions.cs (1)
328var result = new Dictionary<CompletionProvider, int>(completionProviders.Length);
Completion\CompletionService.ProviderManager.cs (1)
39_rolesToProviders = new Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>>(this);
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
33new()
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
230var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default);
Completion\Providers\AbstractSymbolCompletionProvider.cs (3)
176var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default); 421var result = new Dictionary<SymbolAndSelectionInfo, TSyntaxContext>(); 486var missingSymbols = new Dictionary<ISymbol, ArrayBuilder<ProjectId>>(LinkedFilesSymbolEquivalenceComparer.Instance);
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
382var parameterToPropMap = new Dictionary<string, ISymbol>();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
302var documentToEditorMap = new Dictionary<Document, SyntaxEditor>();
Copilot\ICopilotChangeAnalysisService.cs (10)
181var idToCount = new Dictionary<string, int>(); 182var categoryToCount = new Dictionary<string, int>(); 183var severityToCount = new Dictionary<DiagnosticSeverity, int>(); 243var diagnosticIdToCount = new Dictionary<string, int>(); 244var diagnosticIdToApplicationTime = new Dictionary<string, TimeSpan>(); 245var diagnosticIdToProviderName = new Dictionary<string, HashSet<string>>(); 246var providerNameToApplicationTime = new Dictionary<string, TimeSpan>(); 247var providerNameToHasConflict = new Dictionary<string, bool>(); 248var providerNameToTotalCount = new Dictionary<string, int>(); 249var providerNameToSuccessCount = new Dictionary<string, int>();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
802var map = new Dictionary<SyntaxNode, EditKind>(editScript.Edits.Length); 1634var map = new Dictionary<SyntaxNode, SyntaxNode>();
EditAndContinue\EditSession.cs (2)
939var mergedUpdateEditSyntaxMaps = new Dictionary<SymbolKey, (Func<SyntaxNode, SyntaxNode?>? matchingNodes, Func<SyntaxNode, RuntimeRudeEdit?>? runtimeRudeEdits)>(symbolKeyComparer); 1143var changedDocumentsStaleness = new Dictionary<string, DocumentStalenessReason?>(SolutionState.FilePathComparer);
EditAndContinue\Utilities\BidirectionalMap.cs (4)
28var forward = new Dictionary<T, T>(Forward.Count + 1); 29var reverse = new Dictionary<T, T>(Reverse.Count + 1); 50var forward = new Dictionary<T, T>(count); 51var reverse = new Dictionary<T, T>(count);
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
25new()
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
195var statMap = new Dictionary<string, List<int>>();
ExtractMethod\AbstractSyntaxTriviaService.cs (3)
74var map = new Dictionary<SyntaxToken, SyntaxToken>(); 97var triviaList = new Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> 110var tokens = new Dictionary<TriviaLocation, SyntaxToken>
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (3)
59var map = new Dictionary<SyntaxToken, SyntaxToken>(); 177var map = new Dictionary<SyntaxToken, LeadingTrailingTriviaPair>(); 213var tokenPairs = new Dictionary<TriviaLocation, PreviousNextTokenPair>
ExtractMethod\ExtractMethodFlowControlInformation.cs (1)
62var flowValues = new Dictionary<FlowControlKind, object?>();
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
359var renameTable = new Dictionary<ISymbol, string>();
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
245? new Dictionary<Document, List<TExpressionSyntax>> { [document] = [] } 335var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (3)
64var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>(); 243var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); 495var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (2)
125var anonymousTypeToName = new Dictionary<INamedTypeSymbol, string>(); 189var transitiveReferences = new Dictionary<INamedTypeSymbol, (int order, int count)>();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
522var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap);
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
416var nodesToUpdate = new Dictionary<SyntaxNode, SyntaxNode>();
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
33private readonly Dictionary<string, Dictionary<(string @namespace, string typeName), string>?> _typeForwardCache = new(StringComparer.OrdinalIgnoreCase);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
23var result = new Dictionary<Glyph, QuickInfoGlyphElement>(capacity: glyphs.Length);
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
70var result = new Dictionary<int, int>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
29var enumMembers = new Dictionary<long, ISymbol>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
60var enumMembers = new Dictionary<long, ISymbol>();
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
124private readonly Dictionary<ISymbol, ValueUsageInfo> _symbolValueUsageStateMap_doNotAccessDirectly = new(OriginalDefinitionSymbolEqualityComparer.Instance);
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
80var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
174var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
109var cache = new Dictionary<DocumentId, SemanticDocument>();
src\roslyn\src\Analyzers\Core\CodeFixes\Options\FadingOptions.cs (1)
21private static readonly ImmutableDictionary<string, PerLanguageOption2<bool>> s_diagnosticToFadingOption = new Dictionary<string, PerLanguageOption2<bool>>
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
320var canEditMap = new Dictionary<DocumentId, bool>();
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
60var builtReferences = new Dictionary<string, ReferenceInfo?>();
Microsoft.CodeAnalysis.Features.ExternalAccess (1)
Copilot\Internal\CodeMapper\CopilotCSharpMapCodeService.cs (1)
32var options = new Dictionary<string, object>();
Microsoft.CodeAnalysis.NetAnalyzers (44)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (4)
125var propertiesMap = new Dictionary<string, IPropertySymbol>(StringComparer.OrdinalIgnoreCase); 193return parameter.Locations.CreateDiagnostic(DefaultRule, new Dictionary<string, string?> { { "case", AddAccessorCase } }.ToImmutableDictionary(), parameter.Name, attributeType.Name); 199return property.GetMethod!.Locations.CreateDiagnostic(IncreaseVisibilityRule, new Dictionary<string, string?> { { "case", MakePublicCase } }.ToImmutableDictionary(), property.Name, parameter.Name); 205return property.SetMethod!.Locations.CreateDiagnostic(RemoveSetterRule, new Dictionary<string, string?> { { "case", RemoveSetterCase } }.ToImmutableDictionary(), property.Name, parameter.Name);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotHaveIncorrectSuffix.cs (2)
95new Dictionary<string, ImmutableArray<string>> 111new Dictionary<string, ImmutableArray<string>>
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypeNamesShouldNotMatchNamespaces.cs (2)
104var namespaceComponentToNamespaceNameDictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 286var wellKnownSystemNamespaceTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsAnalyzer.cs (1)
140Dictionary<IMethodSymbol, RuleKind> methodSymbols = new Dictionary<IMethodSymbol, RuleKind>(SymbolEqualityComparer.Default);
Microsoft.NetCore.Analyzers\ImmutableCollections\DoNotCallToImmutableCollectionOnAnImmutableCollectionValue.cs (1)
37private static readonly ImmutableDictionary<string, string> ImmutableCollectionMetadataNames = new Dictionary<string, string>
Microsoft.NetCore.Analyzers\Performance\AvoidPotentiallyExpensiveCallWhenLogging.cs (2)
42private static readonly Dictionary<string, int> s_logLevelsByName = new(StringComparer.OrdinalIgnoreCase) 279Dictionary<IMethodSymbol, int> logExtensionsMethods = new(SymbolEqualityComparer.Default);
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Analyzer.cs (2)
289ImmutableDictionary<string, string?> dict = new Dictionary<string, string?>() 326ImmutableDictionary<string, string?> dict = new Dictionary<string, string?>()
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectly.cs (1)
82var properties = new Dictionary<string, string?> { [MethodPropertyKey] = invocation.TargetMethod.Name }.ToImmutableDictionary();
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (1)
196var results = new Dictionary<ISymbol, HashSet<ISymbol>>();
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (1)
334var results = new Dictionary<ISymbol, HashSet<ISymbol>>();
Microsoft.NetCore.Analyzers\Security\UseContainerLevelAccessPolicy.cs (1)
72var namespaceTypeSymbolAndPolicyIdentifierNamePairs = new Dictionary<INamespaceSymbol, string>();
Microsoft.NetCore.Analyzers\Tasks\UseValueTasksCorrectly.cs (1)
242var seen = new Dictionary<BasicBlock, FlowState>();
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessing.cs (3)
189private readonly Dictionary<ISymbol, XmlDocumentEnvironment> _xmlDocumentEnvironments = new(); 190private readonly Dictionary<ISymbol, XmlTextReaderEnvironment> _xmlTextReaderEnvironments = new(); 191private readonly Dictionary<ISymbol, XmlReaderSettingsEnvironment> _xmlReaderSettingsEnvironments = new();
Microsoft.NetFramework.Analyzers\TypesShouldNotExtendCertainBaseTypes.cs (1)
38private static readonly ImmutableDictionary<string, string> s_badBaseTypesToMessage = new Dictionary<string, string>
src\40daf5e1cab76dff\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
39this.TaintedSourcesBySink = new Dictionary<SymbolAccess, (ImmutableHashSet<SinkKind>.Builder SinkKinds, ImmutableHashSet<SymbolAccess>.Builder SourceOrigins)>();
src\afc74d572e54ec72\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (1)
40_trackedInstanceFieldLocations = new Dictionary<IFieldSymbol, PointsToAbstractValue>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (4)
392var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 400return new Dictionary<K, ImmutableArray<T>>(comparer); 405var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 419var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\TemporaryDictionary`2.cs (1)
22private static readonly Dictionary<TKey, TValue> EmptyDictionary = new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
66var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
123var originalCoreAnalysisData = new Dictionary<AnalysisEntity, CopyAbstractValue>(coreAnalysisData);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (5)
65_analysisEntityMap = new Dictionary<IOperation, AnalysisEntity?>(); 66_tupleElementEntitiesMap = new Dictionary<ITupleOperation, ImmutableArray<AnalysisEntity>>(); 67_captureIdEntityMap = new Dictionary<CaptureId, AnalysisEntity>(); 68_captureIdCopyValueMap = new Dictionary<CaptureId, CopyAbstractValue>(); 70_instanceLocationsForSymbols = new Dictionary<ISymbol, PointsToAbstractValue>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (6)
233_exceptionPathsThrownExceptionInfoMap ??= new Dictionary<BasicBlock, ThrownExceptionInfo>(); 304_interproceduralMethodToCfgMap = new Dictionary<IMethodSymbol, ControlFlowGraph?>(); 728AnalysisDataForUnhandledThrowOperations ??= new Dictionary<ThrownExceptionInfo, TAnalysisData>(); 914AnalysisDataForUnhandledThrowOperations ??= new Dictionary<ThrownExceptionInfo, TAnalysisData>(); 1193TaskWrappedValuesMap ??= new Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>(); 2151AnalysisDataForUnhandledThrowOperations ??= new Dictionary<ThrownExceptionInfo, TAnalysisData>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
32var rvalueFlowCaptureIds = new Dictionary<CaptureId, HashSet<IFlowCaptureReferenceOperation>>();
Microsoft.CodeAnalysis.Razor.Compiler (27)
CSharp\RequiredAttributeParser.cs (1)
19new Dictionary<char, RequiredAttributeValueComparison>
Language\BoundAttributeDescriptorBuilder.cs (1)
16private static readonly Dictionary<string, string> s_primitiveDisplayTypeNameLookups = new(StringComparer.Ordinal)
Language\CodeGeneration\TagHelperRenderingContext.cs (1)
22_renderedBoundAttributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Language\Components\ComponentGenericTypePass.cs (3)
64var bindings = new Dictionary<string, Binding>(); 88node.ProvidesCascadingGenericTypes ??= new(); 149node.ProvidesCascadingGenericTypes ??= new();
Language\Components\ComponentMarkupDiagnosticPass.cs (1)
28private readonly Dictionary<string, (string name, IntermediateNode node)> _attributes = new(StringComparer.OrdinalIgnoreCase);
Language\Components\ComponentTildePathPass.cs (1)
76var result = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase);
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (2)
211private readonly Dictionary<string, List<TagHelperDescriptor>> _tagHelperMap = new(StringComparer.Ordinal); 418private readonly Dictionary<ReadOnlyMemory<char>, List<TagHelperDescriptor>> _namespaceToComponentsMap = new(ReadOnlyMemoryOfCharComparer.Instance);
Language\Extensions\DefaultTagHelperOptimizationPass.cs (1)
228_tagHelpers = new Dictionary<TagHelperDescriptor, string>();
Language\Intermediate\IntermediateNodeFormatter.cs (1)
39private readonly Dictionary<string, string> _properties = new(StringComparer.Ordinal);
Language\Legacy\CSharpCodeParser.cs (2)
154var keywordParserMap = new Dictionary<CSharpSyntaxKind, Action<SyntaxListBuilder<RazorSyntaxNode>, CSharpTransitionSyntax?>>(capacity: s_initialKeywordCount + 1); 158var directiveParserMap = new Dictionary<string, Action<SyntaxListBuilder<RazorSyntaxNode>, CSharpTransitionSyntax>>(capacity: directives.Length + 5, StringComparer.Ordinal);
Language\Legacy\HtmlTokenizer.cs (1)
17private static readonly FrozenDictionary<SyntaxKind, SyntaxToken> s_kindToTokenMap = new Dictionary<SyntaxKind, SyntaxToken>()
Language\Legacy\NativeCSharpLanguageCharacteristics.cs (1)
15private static readonly Dictionary<SyntaxKind, string> _tokenSamples = new Dictionary<SyntaxKind, string>()
Language\Legacy\NativeCSharpTokenizer.cs (1)
113_operatorHandlers = new Dictionary<char, Func<SyntaxKind>>()
Language\Legacy\ParserHelpers.cs (2)
176private static readonly FrozenDictionary<string, string> s_namedHtmlEntities = new Dictionary<string, string>() 2411private static readonly FrozenDictionary<int, string> s_htmlEntityCodePoints = new Dictionary<int, string>()
Language\Legacy\RoslynCSharpLanguageCharacteristics.cs (1)
15private static readonly Dictionary<SyntaxKind, string> _tokenSamples = new Dictionary<SyntaxKind, string>()
Language\RazorLanguageVersion.cs (1)
47var map = new Dictionary<string, RazorLanguageVersion>(StringComparer.OrdinalIgnoreCase)
Language\TagHelperBinder.cs (1)
102var map = new Dictionary<string, TagHelperSet>(capacity: tagNameToBuilderIndexMap.Count, StringComparer.OrdinalIgnoreCase);
Language\TagHelperCollection.SegmentCollectionBase.cs (1)
28var lookupTable = new Dictionary<Checksum, int>(collection.Count);
Language\TypeNameObject.cs (1)
34var typeNameToIndex = new Dictionary<string, byte>(StringComparer.Ordinal);
Mvc.Version1_X\ViewComponentTagHelperDescriptorFactory.cs (1)
23private static readonly IReadOnlyDictionary<string, string> PrimitiveDisplayTypeNameLookups = new Dictionary<string, string>(StringComparer.Ordinal)
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (1)
23private static readonly IReadOnlyDictionary<string, string> PrimitiveDisplayTypeNameLookups = new Dictionary<string, string>(StringComparer.Ordinal)
Mvc\ViewComponentTagHelperDescriptorFactory.cs (1)
23private static readonly IReadOnlyDictionary<string, string> PrimitiveDisplayTypeNameLookups = new Dictionary<string, string>(StringComparer.Ordinal)
Microsoft.CodeAnalysis.ResxSourceGenerator (26)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (5)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
28_cache = new(comparer);
Microsoft.CodeAnalysis.Scripting (7)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (4)
88_assembliesLoadedFromLocationByFullPath = new Dictionary<string, AssemblyAndLocation>(); 89_assembliesLoadedFromLocation = new Dictionary<Assembly, LoadedAssembly>(); 90_loadedAssembliesBySimpleName = new Dictionary<string, List<LoadedAssemblyInfo>>(AssemblyIdentityComparer.SimpleNameComparer); 91_dependenciesWithLocationBySimpleName = new Dictionary<string, List<AssemblyIdentityAndLocation>>();
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
52private readonly Dictionary<FileKey, CacheEntry<MetadataShadowCopy>> _shadowCopies = new Dictionary<FileKey, CacheEntry<MetadataShadowCopy>>(); 56private readonly Dictionary<FileKey, CacheEntry<Metadata>> _noShadowCopyCache = new Dictionary<FileKey, CacheEntry<Metadata>>();
ScriptState.cs (1)
123var map = new Dictionary<string, int>(Script.Compiler.IdentifierComparer);
Microsoft.CodeAnalysis.VisualBasic (19)
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (1)
45Me._byRefLocalsInitializers = New Dictionary(Of LocalSymbol, BoundExpression)()
Binding\BackstopBinder.vb (1)
235Private Shared ReadOnly s_defaultXmlNamespaces As New Dictionary(Of String, String) From {
Binding\Binder_XmlLiterals.vb (2)
1122namespaces = New Dictionary(Of String, String) 1146allAttributes = New Dictionary(Of XmlName, BoundXmlAttribute)(XmlNameComparer.Instance)
Binding\GetTypeBinder.vb (1)
67_allowedMap = New Dictionary(Of GenericNameSyntax, Boolean)()
Compilation\DocumentationComments\DocumentationCommentCompiler.Event.vb (1)
47Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Compilation\DocumentationComments\DocumentationCommentCompiler.Field.vb (1)
44Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Compilation\DocumentationComments\DocumentationCommentCompiler.Method.vb (1)
70Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Compilation\DocumentationComments\DocumentationCommentCompiler.NamedType.vb (1)
85Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Compilation\DocumentationComments\DocumentationCommentCompiler.Property.vb (1)
48Dim wellKnownElementNodes As New Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax))
Lowering\Diagnostics\DiagnosticsPass.vb (1)
170_withExpressionPlaceholderMap = New Dictionary(Of BoundValuePlaceholderBase, BoundWithStatement)()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
38Private ReadOnly _parameterMap As Dictionary(Of ParameterSymbol, BoundExpression) = New Dictionary(Of ParameterSymbol, BoundExpression)()
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (3)
50Friend blockParent As Dictionary(Of BoundNode, BoundNode) = New Dictionary(Of BoundNode, BoundNode)() 58Friend variableScope As Dictionary(Of Symbol, BoundNode) = New Dictionary(Of Symbol, BoundNode)(ReferenceEqualityComparer.Instance) 68Friend gotoBlock As Dictionary(Of BoundGotoStatement, BoundNode) = New Dictionary(Of BoundGotoStatement, BoundNode)()
Lowering\SynthesizedSubmissionFields.vb (1)
67_previousSubmissionFieldMap = New Dictionary(Of ImplicitNamedTypeSymbol, FieldSymbol)()
Symbols\Metadata\PE\PENamespaceSymbol.vb (2)
201Dim members As New Dictionary(Of String, ImmutableArray(Of Symbol))(CaseInsensitiveComparison.Comparer) 258noPiaLocalTypes = New Dictionary(Of String, TypeDefinitionHandle)()
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
51Private ReadOnly _retargetingAssemblyMap As New Dictionary(Of AssemblySymbol, DestinationData)()
Microsoft.CodeAnalysis.Workspaces (66)
CodeCleanup\AbstractCodeCleanerService.cs (1)
276var tokenAnnotationMap = new Dictionary<SyntaxToken, List<SyntaxAnnotation>>();
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
50var docIdToTextMerger = new Dictionary<DocumentId, TextChangeMerger>();
Differencing\Match.LongestCommonSubsequence.cs (1)
29var result = new Dictionary<TNode, TNode>();
ExtensionManager\IExtensionManagerExtensions.cs (2)
93var map = new Dictionary<Type, ImmutableArray<TExtension>>(); 117var map = new Dictionary<int, ImmutableArray<TExtension>>();
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
117var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>();
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
465var order = new Dictionary<ProjectId, int>(capacity: solution.ProjectIds.Count);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
47var hasInheritanceRelationshipCache = new Dictionary<(ISymbol searchSymbol, ISymbol candidateSymbol), bool>();
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
36private static readonly ObjectPool<Dictionary<ISymbol, SymbolGroup>> s_symbolToGroupPool = new(() => new(MetadataUnifyingEquivalenceComparer.Instance));
FindSymbols\ReferenceLocationExtensions.cs (1)
22var result = new Dictionary<ISymbol, List<Location>>();
Rename\ConflictEngine\ConflictingIdentifierTracker.cs (1)
17private readonly Dictionary<string, List<SyntaxToken>> _currentIdentifiersInScope = new(identifierComparer);
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
264var documentIdErrorStateLookup = new Dictionary<DocumentId, bool>(); 345var reverseMappedLocations = new Dictionary<Location, Location>();
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
44var signatureToConflictingMember = new Dictionary<ImmutableArray<ParameterSignature>, ISymbol>(ConflictingSignatureComparer.Instance);
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
29private readonly Dictionary<string, DirectoryLoadContext> _loadContextByDirectory = new Dictionary<string, DirectoryLoadContext>(GeneratedPathComparer);
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (3)
77private readonly Dictionary<string, (IAnalyzerPathResolver? Resolver, string ResolvedPath, AssemblyName? AssemblyName)> _originalPathInfoMap = new(OriginalPathComparer); 87private readonly Dictionary<string, HashSet<string>> _assemblySimpleNameToOriginalPathListMap = new(SimpleNameComparer.Comparer); 98private readonly Dictionary<string, string> _resolvedToOriginalPathMap = new(GeneratedPathComparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (5)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
28_cache = new(comparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>() 45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>() 51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>() 56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>() 62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>() 67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>() 73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>() 78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>() 88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>() 98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Utilities\Documentation\XmlDocumentationProvider.cs (1)
68var comments = new Dictionary<string, string>();
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
29private static readonly ObjectPool<Dictionary<string, Guid>> s_pathToMvidMapPool = new(() => new(SolutionState.FilePathComparer));
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
38private readonly Dictionary<string, DocumentId> _documentPathsToDocumentIds = new(StringComparer.OrdinalIgnoreCase);
Workspace\Solution\Project.cs (1)
264Interlocked.CompareExchange(ref idMap, new Dictionary<DocumentId, TDocument>(), null);
Workspace\Solution\ProjectState.cs (1)
128var result = new Dictionary<ImmutableArray<byte>, DocumentId>(ImmutableArrayComparer<byte>.Instance);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
48private static readonly Dictionary<string, AnalyzerReferenceMap> s_languageToAnalyzerReferenceMap = new()
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
494var metadataReferenceToProjectId = new Dictionary<MetadataReference, ProjectId>();
Workspace\Solution\TextDocumentStates.cs (1)
40private static readonly ObjectPool<Dictionary<string, OneOrMany<DocumentId>>> s_filePathPool = new(() => new(SolutionState.FilePathComparer));
Workspace\Workspace_EventsLegacy.cs (1)
17private readonly Dictionary<(object eventHandler, WorkspaceEventType eventType), (int adviseCount, IDisposable disposer)> _disposableEventHandlers = new();
Workspace\Workspace.cs (1)
1443var outputAssemblyToProjectIdMap = new Dictionary<string, ProjectId>();
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
92_pathToDiscoveredProjectInfosMap = new Dictionary<string, ImmutableArray<ProjectInfo>>(PathUtilities.Comparer);
MSBuild\ProjectFileExtensionRegistry.cs (1)
27_extensionToLanguageMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
MSBuild\ProjectMap.cs (2)
44_projectPathToProjectIdsMap = new Dictionary<string, HashSet<ProjectId>>(PathUtilities.Comparer); 45_projectPathToProjectInfosMap = new Dictionary<string, ImmutableArray<ProjectInfo>>(PathUtilities.Comparer);
Rpc\RemoteBuildHost.cs (1)
46=> _client.InvokeAsync(BuildHostTargetObject, nameof(IBuildHost.ConfigureGlobalState), parameters: [knownCommandLineParserLanguages.ToArray(), new Dictionary<string, string>(globalProperties), binlogPath, maxNodeCount], cancellationToken);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Build\ProjectBuildManager.cs (3)
28private static readonly Dictionary<string, string> s_defaultGlobalProperties = new() 85var allProperties = new Dictionary<string, string>(s_defaultGlobalProperties); 216var mergedGlobalProperties = new Dictionary<string, string>(_projectCollection.GlobalProperties, StringComparer.OrdinalIgnoreCase);
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
144private static readonly Dictionary<string, string> s_debugTypeValues = new(StringComparer.OrdinalIgnoreCase)
MSBuild\ProjectFile\ProjectFile.cs (3)
70metadata = new Dictionary<string, string> 106var metadata = new Dictionary<string, string>(); 180var metadata = new Dictionary<string, string>
Microsoft.CSharp (18)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeDesc.cs (2)
60internal static Dictionary<string, ComEventDesc> EmptyEvents { get; } = new Dictionary<string, ComEventDesc>(); 140var names = new Dictionary<string, object>();
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeLibDesc.cs (2)
28private static readonly Dictionary<Guid, ComTypeLibDesc> s_cachedTypeLibDesc = new Dictionary<Guid, ComTypeLibDesc>(); 32_enums = new Dictionary<string, ComTypeEnumDesc>();
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (2)
82private static readonly Dictionary<Guid, ComTypeDesc> s_cacheComTypeDesc = new Dictionary<Guid, ComTypeDesc>(); 386events = new Dictionary<string, ComEventDesc>();
Microsoft\CSharp\RuntimeBinder\ComInterop\VarEnumSelector.cs (1)
92Dictionary<VarEnum, Type> dict = new Dictionary<VarEnum, Type>()
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
40_DictionaryOfParameters = new Dictionary<ExprCall, Expression>();
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (1)
100Dictionary<Name, string> dict = new Dictionary<Name, string>(28)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
18private static readonly Dictionary<Key, Symbol> s_dictionary = new Dictionary<Key, Symbol>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
185var typesByName = new Dictionary<string, PredefinedType>((int)PredefinedType.PT_COUNT);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
82new Dictionary<TypeArrayKey, TypeArray>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
19new Dictionary<(Assembly, Assembly), bool>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
52new Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType>(); 55new Dictionary<KeyPair<CType, int>, ArrayType>(); 58new Dictionary<KeyPair<CType, bool>, ParameterModifierType>(); 61private static readonly Dictionary<CType, PointerType> s_pointerTable = new Dictionary<CType, PointerType>(); 62private static readonly Dictionary<CType, NullableType> s_nullableTable = new Dictionary<CType, NullableType>();
Microsoft.Data.Analysis (8)
DataFrame.IO.cs (1)
394var names = new Dictionary<string, int>();
DataFrame.Join.cs (2)
213var newRetainedIndicesReverseMapping = new Dictionary<long, long>(shrinkedRetainedIndices.Length); 255var shrinkedOccurences = new Dictionary<long, ICollection<long>>();
DataFrameColumn.cs (1)
280var ret = new Dictionary<long, ICollection<long>>();
DataFrameColumnCollection.cs (1)
17private readonly Dictionary<string, int> _columnNameToIndexDictionary = new Dictionary<string, int>(StringComparer.Ordinal);
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
494Dictionary<string, ICollection<long>> multimap = new Dictionary<string, ICollection<long>>(EqualityComparer<string>.Default);
DataFrameColumns\StringDataFrameColumn.cs (1)
412Dictionary<string, ICollection<long>> multimap = new Dictionary<string, ICollection<long>>(EqualityComparer<string>.Default);
PrimitiveDataFrameColumn.cs (1)
617Dictionary<T, ICollection<long>> multimap = new Dictionary<T, ICollection<long>>(EqualityComparer<T>.Default);
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
80data.Add(new Dictionary<string, object>
Microsoft.Data.Analysis.Tests (7)
DataFrameTests.cs (7)
1120df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: true); 1124ret = df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: false); 1129df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: true); 1136ret = df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: false); 1144df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: true); 1150ret = df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: false); 1172Assert.Throws<FormatException>(() => df.Append(new Dictionary<string, object> { { "Column2", "str" } }, inPlace: true));
Microsoft.Diagnostics.DataContractReader (9)
_generated\4\ContractDescriptorContext.DictionaryStringFieldDescriptor.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>(),
_generated\5\ContractDescriptorContext.DictionaryStringGlobalDescriptor.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>(),
_generated\6\ContractDescriptorContext.DictionaryStringTypeDescriptor.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>(),
_generated\7\ContractDescriptorContext.DictionaryStringJsonElement.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>(),
_generated\8\ContractDescriptorContext.DictionaryStringString.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
ContractDescriptorParser.cs (1)
118Dictionary<string, FieldDescriptor>? fields = new();
ContractDescriptorTarget.cs (3)
54private IReadOnlyDictionary<string, string> _contracts = new Dictionary<string, string>(); 55private IReadOnlyDictionary<string, GlobalValue> _globals = new Dictionary<string, GlobalValue>(); 56private IReadOnlyDictionary<string, TypeInfo> _types = new Dictionary<string, TypeInfo>();
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Target.cs (1)
317Fields = new Dictionary<string, FieldInfo>();
Microsoft.Diagnostics.DataContractReader.Contracts (16)
Contracts\DacStreams_1.cs (1)
64Dictionary<TargetPointer, string> stringToAddress = new();
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
19private readonly Dictionary<TargetPointer, CodeBlock> _codeInfos = new();
Contracts\Loader_1.cs (1)
787Dictionary<LoaderAllocatorHeapType, TargetPointer> heaps = new()
Contracts\ManagedTypeSource_1.cs (4)
16private readonly Dictionary<string, Target.TypeInfo?> _typeInfoCache = new(); 17private readonly Dictionary<string, ITypeHandle?> _typeHandleCache = new(); 18private readonly Dictionary<(string Fqn, string FieldName), TargetPointer> _fieldDescCache = new(); 224Dictionary<string, Target.FieldInfo> instanceFields = new();
Contracts\RuntimeTypeSystem_1.cs (4)
33private readonly Dictionary<TargetPointer, MethodTable> _methodTables = new(); 34private readonly Dictionary<TargetPointer, MethodDesc> _methodDescs = new(); 35private readonly Dictionary<TypeKey, ITypeHandle> _typeHandles = new(); 39private readonly Dictionary<TargetPointer, TargetTypeHandle> _targetTypeHandles = new();
Data\Frames\ArgumentRegisters.cs (1)
16Dictionary<string, TargetNUInt> registers = new(type.Fields.Count);
Data\Frames\CalleeSavedRegisters.cs (1)
16Dictionary<string, TargetNUInt> registers = new(type.Fields.Count);
Data\Frames\HijackArgs.cs (1)
16Dictionary<string, TargetNUInt> registers = new(type.Fields.Count);
PrintfStressMessageFormatter.cs (2)
36_formatActions = new() 70_alternateActions = new()
Microsoft.Diagnostics.DataContractReader.Legacy (2)
MetaDataImportImpl.cs (2)
2324Dictionary<int, uint> lookup = new(); 2338Dictionary<int, uint> lookup = new();
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsIpc\ProcessEnvironment.cs (1)
52Dictionary<string, string> env = new();
Microsoft.DotNet.ApiCompat.Task (2)
src\sdk\src\Tasks\Common\TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
ValidatePackageTask.cs (1)
176Dictionary<NuGetFramework, IEnumerable<string>> packageAssemblyReferencesDict = new(packageAssemblyReferences.Length);
Microsoft.DotNet.ApiCompatibility (6)
Mapping\AssemblyMapper.cs (2)
33_namespaces = new Dictionary<INamespaceSymbol, INamespaceMapper>(Settings.SymbolEqualityComparer); 107Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> typeForwards = new(comparer);
Mapping\AssemblySetMapper.cs (1)
29_assemblies = new Dictionary<IAssemblySymbol, IAssemblyMapper>(Settings.SymbolEqualityComparer);
Mapping\NamespaceMapper.cs (1)
39_types = new Dictionary<ITypeSymbol, ITypeMapper>(Settings.SymbolEqualityComparer);
Mapping\TypeMapper.cs (2)
79_nestedTypes = new Dictionary<ITypeSymbol, ITypeMapper>(Settings.SymbolEqualityComparer); 118_members = new Dictionary<ISymbol, IMemberMapper>(Settings.SymbolEqualityComparer);
Microsoft.DotNet.ApiSymbolExtensions (2)
AssemblySymbolLoader.cs (2)
38private readonly Dictionary<string, string> _referencePathFiles = new(StringComparer.OrdinalIgnoreCase); 75new Dictionary<string, IAssemblySymbol>());
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
68var runtimeItems = new Dictionary<string, IEnumerable<KeyValuePair<string, string>>>();
Microsoft.DotNet.Build.Manifest (5)
ArtifactModel.cs (1)
15public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
BuildIdentity.cs (1)
37public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
MSBuildListSplitter.cs (2)
15return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 23var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
VersionIdentifier.cs (1)
103Dictionary<int,string> majorMinorPatchDictionary = new Dictionary<int, string>();
Microsoft.DotNet.Build.Tasks.Installers (3)
src\CreateWixBuildWixpack.cs (3)
188_defineVariablesDictionary = new Dictionary<string, string>(System.StringComparer.OrdinalIgnoreCase); 454var dict = new Dictionary<string, string>(System.StringComparer.OrdinalIgnoreCase); 485var dict = new Dictionary<string, string>(System.StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.Build.Tasks.Packaging (32)
ApplyBaseLine.cs (1)
61Dictionary<string, SortedSet<Version>> baseLineVersions = new Dictionary<string, SortedSet<Version>>();
ApplyMetaPackages.cs (2)
58var suppressMetaPackages = new Dictionary<string, HashSet<string>>(); 95Dictionary<string, HashSet<NuGetFramework>> metaPackagesToAdd = new Dictionary<string, HashSet<NuGetFramework>>();
ApplyPreReleaseSuffix.cs (1)
118_stablePackageVersions = new Dictionary<string, Version>();
GeneratePackageReport.cs (4)
87SupportedFrameworks = new Dictionary<string, string>() 198_frameworks = new Dictionary<NuGetFramework, string[]>(NuGetFramework.Comparer); 285var packageItems = new Dictionary<string, List<PackageItem>>(); 319_targetPathToPackageItem = new Dictionary<string, PackageItem>();
GenerateRuntimeDependencies.cs (1)
75Dictionary<string, string> packageAliases = new Dictionary<string, string>();
GetApplicableAssetsFromPackages.cs (2)
149_packageToPackageItems = new Dictionary<string, List<PackageItem>>(); 176_targetPathToPackageItem = new Dictionary<string, PackageItem>();
GetLastStablePackage.cs (3)
74Dictionary<string, ITaskItem> originalItems = new Dictionary<string, ITaskItem>(); 75Dictionary<string, Version> latestPackages = new Dictionary<string, Version>(); 76Dictionary<string, Version> lastStablePackages = new Dictionary<string, Version>();
GetPackageDescription.cs (2)
16private static Dictionary<string, Dictionary<string, string>> s_descriptionCache = new Dictionary<string, Dictionary<string, string>>(); 92Dictionary<string, string> descriptions = new Dictionary<string, string>();
GetPackageFromModule.cs (1)
50modulesToPackages = new Dictionary<string, string>();
HarvestPackage.cs (2)
116private Dictionary<string, string> _packageFolders = new Dictionary<string, string>(); 274var livePackageFiles = new Dictionary<string, PackageItem>(StringComparer.OrdinalIgnoreCase);
NuGetAssetResolver.cs (5)
172_packages = new Dictionary<string, ContentItemCollection>(); 192Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 243Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 261Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 276Dictionary<string, IEnumerable<ContentItemGroup>> resolvedAssets = new Dictionary<string, IEnumerable<ContentItemGroup>>();
NugetPropertyStringProvider.cs (1)
19var propertyDictionary = new Dictionary<string, string>();
PackageIndex.cs (1)
746private Dictionary<string, string> packageToMetaPackage = new Dictionary<string, string>();
PackageReport.cs (1)
22Targets = new Dictionary<string, Target>();
SplitReferences.cs (2)
57Dictionary<string, ITaskItem> packageReferences = new Dictionary<string, ITaskItem>(); 58Dictionary<string, ITaskItem> assemblyReferences = new Dictionary<string, ITaskItem>();
ValidatePackage.cs (2)
302Dictionary<string, PackageAsset> implementationFiles = new Dictionary<string, PackageAsset>(); 455_frameworks = new Dictionary<NuGetFramework, ValidationFramework>();
ValidationTask.cs (1)
99_suppressions = new Dictionary<Suppression, HashSet<string>>();
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
19private static readonly Dictionary<string, TargetFrameworkResolver> s_targetFrameworkResolverCache = new();
Microsoft.DotNet.Build.Tasks.Templating (1)
MSBuildListSplitter.cs (1)
14Dictionary<string, string> values = new(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.Build.Tasks.Workloads (4)
EmbeddedTemplates.cs (2)
12private static readonly Dictionary<string, string> s_templateResources = new(); 68s_templateResources = new()
Wix\HarvesterToolTask.cs (1)
15private static readonly Dictionary<HeatSuppressions, string> s_SuppressionArguments = new()
WorkloadTemplateBase.cs (1)
34} = new();
Microsoft.DotNet.Cli.CommandLine (1)
SymbolDocumentationExtensions.cs (1)
13private static readonly Dictionary<Symbol, string> s_documentationLinks = new();
Microsoft.DotNet.Cli.Definitions (3)
Common\CommonOptions.cs (2)
55var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 311var result = new Dictionary<string, string>(
Help\HelpBuilder.cs (1)
73_customizationsBySymbol ??= new();
Microsoft.DotNet.Cli.Telemetry (7)
_generated\16\TelemetryJsonContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Implementation\AzureMonitorLogSerializer.cs (2)
72var properties = new Dictionary<string, string>(StringComparer.Ordinal); 192var tags = new Dictionary<string, string>(StringComparer.Ordinal);
Implementation\AzureMonitorTelemetrySerializer.cs (4)
189properties ??= new Dictionary<string, string>(StringComparer.Ordinal); 215var tags = new Dictionary<string, string>(StringComparer.Ordinal); 231var tags = new Dictionary<string, string>(StringComparer.Ordinal) 252properties ??= new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.DotNet.Cli.Utils (5)
Command.cs (1)
14customEnvironmentVariables == null ? null : new(customEnvironmentVariables);
MSBuildArgs.cs (3)
244var newRestoreProperties = new Dictionary<string, string>(RestoreGlobalProperties, StringComparer.OrdinalIgnoreCase); 294var newProperties = new Dictionary<string, string>(GlobalProperties, StringComparer.OrdinalIgnoreCase); 377var newdict = new Dictionary<string, string>(GlobalProperties, StringComparer.OrdinalIgnoreCase);
MSBuildForwardingAppWithoutLogging.cs (1)
321return new()
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
72Dictionary<string, string> parsedPinvokes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.GenFacades (2)
GenPartialFacadeSourceGenerator.cs (2)
66var dictionary = new Dictionary<string, string>(StringComparer.Ordinal); 145var typeTable = new Dictionary<string, IList<string>>();
Microsoft.DotNet.HotReload.Utils.Generator (1)
BaselineProject.cs (1)
31var props = new Dictionary<string,string> (config.Properties);
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (2)
HotReloadDeltaGeneratorComputeScriptOutputs.cs (2)
100result[index] = new TaskItem(name, new Dictionary<string,string> { { deltaOutputTypeMetadata, outputType.ToString() } }); 125result[i] = new TaskItem(changes[i].Update, new Dictionary<string,string> { { "DeltaForBaseline", changes[i].Document} });
Microsoft.DotNet.HotReload.Watch (10)
Build\EvaluationResult.cs (2)
162var fileItemsBuilder = new Dictionary<string, FileItem>(); 163var staticWebAssetManifestsBuilder = new Dictionary<ProjectInstanceId, StaticWebAssetsManifest>();
Build\FilePathExclusions.cs (1)
19var globs = new Dictionary<(string fixedDirectoryPart, string wildcardDirectoryPart, string filenamePart), (MSBuildGlob glob, string value, string projectDir)>();
Build\ProjectBuildManager.cs (1)
18private static readonly IReadOnlyDictionary<string, TargetResult> s_emptyTargetResults = new Dictionary<string, TargetResult>();
FileWatcher\FileWatcher.cs (2)
14protected readonly Dictionary<string, DirectoryWatcher> _directoryTreeWatchers = new(PathUtilities.OSSpecificPathComparer); 18protected readonly Dictionary<string, DirectoryWatcher> _directoryWatchers = new(PathUtilities.OSSpecificPathComparer);
FileWatcher\PollingDirectoryWatcher.cs (3)
16private Dictionary<string, DateTime> _currentSnapshot = new(PathUtilities.OSSpecificPathComparer); 19private Dictionary<string, DateTime> _snapshotBuilder = new(PathUtilities.OSSpecificPathComparer); 20private readonly Dictionary<string, ChangeKind> _changesBuilder = new(PathUtilities.OSSpecificPathComparer);
Process\ProjectLauncher.cs (1)
63var environmentBuilder = new Dictionary<string, string>();
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (1)
74var packages = new Dictionary<string, PackageInfo>();
src\ReplacePackageParts.cs (1)
83var map = new Dictionary<string, string>(partCount);
Microsoft.DotNet.PackageTesting (6)
GetCompatiblePackageTargetFrameworks.cs (1)
17private static Dictionary<NuGetFramework, HashSet<NuGetFramework>> packageTfmMapping = new();
VerifyClosure.cs (3)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 43private Dictionary<string, Version> ignoredReferences = new Dictionary<string, Version>(StringComparer.OrdinalIgnoreCase); 261var suspectCycles = new Dictionary<AssemblyInfo, AssemblyInfo[]>();
VerifyTypes.cs (2)
33private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 47var types = new Dictionary<string, AssemblyInfo>();
Microsoft.DotNet.ProjectTools (3)
BuildService.cs (1)
95var mergedGlobalProperties = new Dictionary<string, string>(projectCollection.Inner.GlobalProperties, StringComparer.OrdinalIgnoreCase);
LaunchSettings\LaunchSettings.cs (1)
15private static readonly IReadOnlyDictionary<string, LaunchProfileParser> s_providers = new Dictionary<string, LaunchProfileParser>
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
899_seen ??= new(NamedDirectiveComparer.Instance);
Microsoft.DotNet.SharedFramework.Sdk (6)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (3)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 43private Dictionary<string, Version> ignoredReferences = new Dictionary<string, Version>(StringComparer.OrdinalIgnoreCase); 261var suspectCycles = new Dictionary<AssemblyInfo, AssemblyInfo[]>();
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (2)
33private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 47var types = new Dictionary<string, AssemblyInfo>();
src\ValidateFileVersions.cs (1)
22var fileVersions = new Dictionary<string, FileVersionData>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.SourceBuild.Tasks (2)
src\ReadNuGetPackageInfos.cs (1)
34new Dictionary<string, string>
src\UsageReport\WriteUsageReports.cs (1)
68var prodConPackageOrigin = new Dictionary<string, string>(
Microsoft.DotNet.TemplateLocator (21)
_generated\0\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\1\WorkloadSetJsonSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\9\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (4)
118_knownManifestIdsAndOrder = new Dictionary<string, int>(); 340var manifestIdsToManifests = new Dictionary<string, ReadableWorkloadManifest>(StringComparer.OrdinalIgnoreCase); 384Dictionary<string, string> directoriesWithManifests = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 600Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (7)
176workloads ?? new Dictionary<WorkloadId, BaseWorkloadDefinition>(), 177packs ?? new Dictionary<WorkloadPackId, WorkloadPack>(), 220var dependsOn = new Dictionary<string, FXVersion>(StringComparer.OrdinalIgnoreCase); 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 350var dictionary = new Dictionary<string, string>(); 376var dictionary = new Dictionary<string, TValue>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (5)
17private readonly Dictionary<string, (WorkloadManifest manifest, WorkloadManifestInfo info)> _manifests = new(StringComparer.OrdinalIgnoreCase); 18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 167(redirects ??= new()).Add(redirect.Id, (redirect, manifest)); 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
Microsoft.DotNet.XliffTasks (3)
Model\XlfDocument.cs (2)
78Dictionary<string, TranslatableNode> nodesById = new(); 262Dictionary<string, string> dictionary = new();
Tasks\TranslateSource.cs (1)
34? new Dictionary<string, string>()
Microsoft.Extensions.AI (5)
ChatCompletion\ImageGeneratingChatClient.cs (1)
148private readonly Dictionary<string, AIContent> _imageContentById = new(StringComparer.OrdinalIgnoreCase);
Generated\361d1da7f942c932\OtelContext.IReadOnlyDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string> s_extensionToMediaType = new(StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string> s_mediaTypeToExtension = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Extensions.AI.Abstractions (13)
AdditionalPropertiesDictionary{TValue}.cs (3)
30_dictionary = new(StringComparer.OrdinalIgnoreCase); 36_dictionary = new(dictionary, StringComparer.OrdinalIgnoreCase); 45_dictionary = new Dictionary<string, TValue>(StringComparer.OrdinalIgnoreCase);
ChatCompletion\ChatResponseExtensions.cs (2)
204imageResultIndexById = new(StringComparer.Ordinal); 242webSearchCallIndexById ??= new(StringComparer.Ordinal);
Functions\AIFunctionArguments.cs (2)
81arguments is null ? new(comparer) : 83new(arguments, comparer);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.DictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string> s_extensionToMediaType = new(StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string> s_mediaTypeToExtension = new(StringComparer.OrdinalIgnoreCase)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\NullabilityInfoContext\NullabilityInfoContext.cs (2)
27private readonly Dictionary<Module, NotAnnotatedStatus> _publicOnlyModules = new(); 28private readonly Dictionary<MemberInfo, NullabilityState> _context = new();
Microsoft.Extensions.AI.Abstractions.Tests (51)
AdditionalPropertiesDictionaryTests.cs (2)
18d = new(new Dictionary<string, object?> { ["key1"] = "value1" }); 21d = new((IEnumerable<KeyValuePair<string, object?>>)new Dictionary<string, object?> { ["key1"] = "value1", ["key2"] = "value2" });
ChatCompletion\ChatMessageTests.cs (1)
271new FunctionCallContent("function-id", "plugin-name-function-name", new Dictionary<string, object?> { ["parameter"] = "argument" }),
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (1)
1127new() { Contents = [new FunctionCallContent("fc1", "SearchTool", new Dictionary<string, object?> { ["q"] = "test" })] },
Contents\AIContentTests.cs (3)
72new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } }), 77new ToolApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })), 78new ToolApprovalResponseContent("request123", approved: true, new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
Contents\FunctionCallContentTests.cs (4)
87var sut = new FunctionCallContent("callId1", "functionName", new Dictionary<string, object?> { ["key"] = "value" }) 164var sut = new FunctionCallContent("callId1", "functionName", new Dictionary<string, object?> { ["key"] = "value" }) { Exception = ex }; 187["d"] = new ReadOnlyDictionary<string, string>((new Dictionary<string, string> 414Arguments = new Dictionary<string, object?> { { "arg1", "value1" } }
Contents\InputRequestContentTests.cs (1)
40new ToolApprovalRequestContent("request123", new FunctionCallContent("call123", "functionName", new Dictionary<string, object?> { { "param1", 123 } })),
Contents\McpServerToolCallContentTests.cs (2)
43IDictionary<string, object?> args = new Dictionary<string, object?>(); 67Arguments = new Dictionary<string, object?> { { "arg1", "value1" } }
Contents\ToolApprovalRequestContentTests.cs (2)
24new FunctionCallContent("FCC1", "TestFunction", new Dictionary<string, object?> { { "param1", 123 } }), 25new McpServerToolCallContent("MCC1", "TestTool", "TestServer") { Arguments = new Dictionary<string, object?> { { "arg1", "value1" } } },
Contents\ToolApprovalResponseContentTests.cs (2)
24new FunctionCallContent("FCC1", "TestFunction", new Dictionary<string, object?> { { "param1", 123 } }), 25new McpServerToolCallContent("MCC1", "TestTool", "TestServer") { Arguments = new Dictionary<string, object?> { { "arg1", "value1" } } },
Contents\ToolCallContentTests.cs (1)
56new FunctionCallContent("call1", "function1", new Dictionary<string, object?> { { "param1", 123 } }),
Functions\AIFunctionArgumentsTests.cs (8)
28var args = new AIFunctionArguments(new Dictionary<string, object?>()); 39var args = new AIFunctionArguments(new Dictionary<string, object?> 71IReadOnlyDictionary<string, object?> args = new AIFunctionArguments(new Dictionary<string, object?> 109IDictionary<string, object?> args = new AIFunctionArguments(new Dictionary<string, object?> 208var originalArgs = new Dictionary<string, object?> 240var originalDict = new Dictionary<string, object?>(comparer) 264var originalDict = new Dictionary<string, object?>(comparer) 291var originalDict = new Dictionary<string, object?>(StringComparer.Ordinal)
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonDocument.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonNode.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringInt32.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, int>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringSimplePoco.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>(),
parent\parent\Shared\JsonSchemaExporter\TestTypes.cs (4)
515Value: new() { Name = "name", ExtensionData = new() { ["x"] = 42 } }, 827Value: new() { ["one"] = 1, ["two"] = 2, ["three"] = 3 }, 839Value: new() 862Value: new() { ["one"] = 1, ["two"] = "two", ["three"] = 3.14 },
Tools\HostedCodeInterpreterToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedFileSearchToolTests.cs (1)
26var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedImageGenerationToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedMcpServerToolTests.cs (4)
32var props = new Dictionary<string, object?> { ["key"] = "value" }; 43var props = new Dictionary<string, object?> { ["key"] = "value" }; 95tool.Headers = new Dictionary<string, string> { ["X-Custom-Header"] = "value1" }; 106Headers = new Dictionary<string, string>
Tools\HostedToolSearchToolTests.cs (1)
27var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedWebSearchToolTests.cs (1)
24var props = new Dictionary<string, object?> { ["key"] = "value" };
Utilities\AIJsonUtilitiesTests.cs (3)
1484string key5 = AIJsonUtilities.HashDataToString([new Dictionary<string, object> { ["key1"] = 1, ["key2"] = 2 }], options); 1485string key6 = AIJsonUtilities.HashDataToString([new Dictionary<string, object> { ["key2"] = 2, ["key1"] = 1 }], options); 1501Dictionary<string, object> dict = new() { ["key1"] = 1, ["key2"] = 2 };
Microsoft.Extensions.AI.Evaluation (3)
EvaluationMetricExtensions.cs (2)
31metric.Context ??= new Dictionary<string, EvaluationContext>(); 118metric.Metadata ??= new Dictionary<string, string>();
EvaluationResult.cs (1)
53var metricsDictionary = new Dictionary<string, EvaluationMetric>();
Microsoft.Extensions.AI.Evaluation.Console (11)
Commands\CleanCacheCommand.cs (1)
27var telemetryProperties = new Dictionary<string, string>();
Commands\CleanResultsCommand.cs (1)
29new Dictionary<string, string>
Commands\ReportCommand.cs (5)
37new Dictionary<string, string> 80new Dictionary<(string? model, string? modelProvider), TurnAndTokenUsageDetails>(); 194new Dictionary<string, string> 227new Dictionary<string, string> 302new Dictionary<string, string>
Telemetry\TelemetryExtensions.cs (2)
168properties ??= new Dictionary<string, string>(); 203properties ??= new Dictionary<string, string>();
Telemetry\TelemetryHelper.cs (2)
48new Dictionary<string, string> 175combinedProperties = new Dictionary<string, string>(_commonProperties);
Microsoft.Extensions.AI.Evaluation.Reporting (4)
Generated\361d1da7f942c932\JsonContext.IDictionaryStringEvaluationContext.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationContext>(),
Generated\361d1da7f942c932\JsonContext.IDictionaryStringEvaluationMetric.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringString.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Generated\361d1da7f942c932\JsonContext.IDictionaryStringEvaluationContext.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationContext>(),
Generated\361d1da7f942c932\JsonContext.IDictionaryStringEvaluationMetric.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.Evaluation.EvaluationMetric>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.IDictionaryStringString.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (1)
ScenarioRunResultTests.cs (1)
222arguments: new Dictionary<string, object?> { ["query"] = "fixed" })
Microsoft.Extensions.AI.Evaluation.Safety (10)
CodeVulnerabilityEvaluator.cs (1)
37metricNames: new Dictionary<string, string> { ["code_vulnerability"] = CodeVulnerabilityMetricName })
ContentHarmEvaluator.cs (1)
38new Dictionary<string, string>
GroundednessProEvaluator.cs (1)
38metricNames: new Dictionary<string, string> { ["generic_groundedness"] = GroundednessProMetricName })
HateAndUnfairnessEvaluator.cs (1)
25metricNames: new Dictionary<string, string> { ["hate_fairness"] = HateAndUnfairnessMetricName })
IndirectAttackEvaluator.cs (1)
48metricNames: new Dictionary<string, string> { ["xpia"] = IndirectAttackMetricName })
ProtectedMaterialEvaluator.cs (1)
33new Dictionary<string, string>
SelfHarmEvaluator.cs (1)
24: ContentHarmEvaluator(metricNames: new Dictionary<string, string> { ["self_harm"] = SelfHarmMetricName })
SexualEvaluator.cs (1)
24: ContentHarmEvaluator(metricNames: new Dictionary<string, string> { ["sexual"] = SexualMetricName })
UngroundedAttributesEvaluator.cs (1)
42new Dictionary<string, string> { ["inference_sensitive_attributes"] = UngroundedAttributesMetricName })
ViolenceEvaluator.cs (1)
24: ContentHarmEvaluator(metricNames: new Dictionary<string, string> { ["violence"] = ViolenceMetricName })
Microsoft.Extensions.AI.Integration.Tests (3)
ChatClientIntegrationTests.cs (3)
137["stream_options"] = new Dictionary<string, object> { ["include_usage"] = true, }, 425aiFuncOptions.AdditionalProperties = new Dictionary<string, object?> { ["strict"] = true }; 433Dictionary<string, object?> additionalProperties = new();
Microsoft.Extensions.AI.OpenAI (11)
Generated\361d1da7f942c932\OpenAIJsonContext.DictionaryStringJsonElement.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>(),
Generated\361d1da7f942c932\OpenAIJsonContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
OpenAIRealtimeClientSession.cs (2)
254var metadata = new Dictionary<string, BinaryData>(); 560var sdkHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
OpenAIResponsesChatClient.cs (5)
236(mcpApprovalRequests ??= new())[mtcari.Id] = approvalRequest; 539(mcpApprovalRequests ??= new())[mtcari.Id] = streamApprovalRequest; 1045namespaceGroups ??= new(); 1142Dictionary<string, Namespace> namespacedToolNames = new(StringComparer.Ordinal); 1143Dictionary<string, Namespace> namespacesByName = new(StringComparer.Ordinal);
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string> s_extensionToMediaType = new(StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string> s_mediaTypeToExtension = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Extensions.AI.OpenAI.Tests (35)
OpenAIChatClientTests.cs (11)
178Assert.Equal(new Dictionary<string, long> 852Assert.Equal(new Dictionary<string, long> 949Assert.Equal(new Dictionary<string, long> 1047Assert.Equal(new Dictionary<string, long> 1159Assert.Equal(new Dictionary<string, long> 1170AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 1244Assert.Equal(new Dictionary<string, long> 1351AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 1360Assert.Equal(new Dictionary<string, long> 1501Assert.Equal(new Dictionary<string, long> 1616Assert.Equal(new Dictionary<string, long>
OpenAIConversionTests.cs (21)
246var webSearchTool = new HostedWebSearchToolWithProperties(new Dictionary<string, object?> 317var fileSearchTool = new HostedFileSearchTool(new Dictionary<string, object?> 409var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?> 444var imageGenTool = new HostedImageGenerationTool(new Dictionary<string, object?> 492Headers = new Dictionary<string, string> { ["Authorization"] = "Bearer test-token" } 510Headers = new Dictionary<string, string> 627Headers = new Dictionary<string, string> { ["Authorization"] = "Bearer connector-token" } 731new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?> 772Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?> 800new FunctionCallContent("callid123", "SomeFunction", new Dictionary<string, object?> 828Assert.True(JsonElement.DeepEquals(JsonSerializer.SerializeToElement(new Dictionary<string, object?> 1220new FunctionCallContent("call123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" }) 1489var mcpToolCall = new McpServerToolCallContent("call_123", "get_weather", "weather_server") { Arguments = new Dictionary<string, object?> { ["city"] = "Seattle" } }; 1575var complexArgs = new Dictionary<string, object?> 1581["nestedObject"] = new Dictionary<string, object?> 1774var functionCallContent = new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> 1812var functionCall1 = new FunctionCallContent("call-1", "Function1", new Dictionary<string, object?> { ["param1"] = "value1" }); 1813var functionCall2 = new FunctionCallContent("call-2", "Function2", new Dictionary<string, object?> { ["param2"] = "value2" }); 1846new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" }), 2087new FunctionCallContent("call-123", "TestFunction", new Dictionary<string, object?> { ["param"] = "value" }) 2122new FunctionCallContent("call-456", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" })
OpenAIResponseClientIntegrationTests.cs (1)
524Headers = new Dictionary<string, string> { ["Authorization"] = $"Bearer {accessToken}" },
OpenAIResponseClientTests.cs (2)
2717Headers = new Dictionary<string, string> 2808Headers = new Dictionary<string, string>
Microsoft.Extensions.AI.Stabilization.Tests (4)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedCodeInterpreterToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedImageGenerationToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedWebSearchToolTests.cs (1)
24var props = new Dictionary<string, object?> { ["key"] = "value" };
Microsoft.Extensions.AI.Tests (140)
ChatCompletion\DistributedCachingChatClientTest.cs (3)
52Contents = [new FunctionCallContent("someCallId", "functionName", new Dictionary<string, object?> 255new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" }), 266Contents = [new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" })],
ChatCompletion\FunctionInvocationContextTests.cs (1)
55FunctionCallContent callContent = new(string.Empty, string.Empty, new Dictionary<string, object?>());
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (63)
41new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 49new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 77new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 85new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 124new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 137new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 176new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }) 185new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 260new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 265new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 272new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 283new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 312new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 317new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 325new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 336new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 367new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 375new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 383new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" }, 395new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]) { MessageId = "resp2" }, 423new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 428new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 435new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 450new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 482new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 487new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 494new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 506new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 514new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 546new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 554new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 564new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 579new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 612new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })), 613new ToolApprovalRequestContent("ficc_callId3", new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } })) 618new ToolApprovalResponseContent("ficc_callId2", false, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })), 619new ToolApprovalResponseContent("ficc_callId3", true, new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } })) 629new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }), 630new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }) 650new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }), 651new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }) 667new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }), 668new FunctionCallContent("callId3", "Func3", arguments: new Dictionary<string, object?> { { "s", "test" } }) 762new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 767new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 774new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 780new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })]), 785new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 789new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 3 } })) 816new ToolApprovalRequestContent("ficc_callId2", new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 821new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 823new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 838new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1040new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1049new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1059new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1117new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 1124new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1135new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1163new ToolApprovalResponseContent("ficc_callId2", true, new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })) 1179new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1"), new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 1488new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } }) 1567new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })
ChatCompletion\FunctionInvokingChatClientTests.cs (35)
96new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 98new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 130new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 132new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 163new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 165new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 195new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 34 } }), 196new FunctionCallContent("callId3", "Func2", arguments: new Dictionary<string, object?> { { "i", 56 } }), 206new FunctionCallContent("callId4", "Func2", arguments: new Dictionary<string, object?> { { "i", 78 } }), 254new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }), 255new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }), 298new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }), 299new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }), 332new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 334new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 961arguments: new Dictionary<string, object?> { { "shouldThrow", callShouldThrow }, { "callIndex", thisCallIndex } })); 986new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 988new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]), 1043new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 1100new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 1142JsonSerializer.Serialize(new Dictionary<string, object?> { ["arg1"] = "value1" }, AIJsonUtilities.DefaultOptions), 1192new() { Contents = [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["text"] = "Input 1" })] }, 1193new() { Contents = [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["text"] = "Input 2" })] } 1294new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["i"] = 41 })]), 1296new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["i"] = 42 })]), 1304new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "Func1", new Dictionary<string, object?> { ["i"] = 43 })]), 1365new FunctionCallContent("callId2", "Search", new Dictionary<string, object?> { { "result", "birds" } }), 1450new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "value1" })]), 1480new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg"] = "value1" }), 1481new FunctionCallContent("callId2", "Func1", new Dictionary<string, object?> { ["arg"] = "value2" }), 1533new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }), 1534new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 }) 1552new FunctionCallContent("callId1", "UnknownFunc", new Dictionary<string, object?> { ["i"] = 1 }), 1553new FunctionCallContent("callId2", "KnownFunc", new Dictionary<string, object?> { ["i"] = 2 }) 1885new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId1", "Func1", new Dictionary<string, object?> { ["arg1"] = "secret" })]),
ChatCompletion\ImageGeneratingChatClientTests.cs (8)
317[new FunctionCallContent(callId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })]); 360[new FunctionCallContent(callId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })]); 405"at-start" => [new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }), 408new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })], 410new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }), 480"at-start" => [new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }), 483new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" })], 485new FunctionCallContent(imageCallId, "GenerateImage", new Dictionary<string, object?> { ["prompt"] = "a cat" }),
ChatCompletion\OpenTelemetryChatClientTests.cs (5)
408new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" }), 424yield return new() { Contents = [new FunctionCallContent("call-123", "GetWeather", new Dictionary<string, object?> { ["location"] = "Seattle" })] }; 665new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }, 690yield return new() { Contents = [new McpServerToolCallContent("mcp-call-1", "myTool", "myServer") { Arguments = new Dictionary<string, object?> { ["param1"] = "value1" } }] }; 838Arguments = new Dictionary<string, object?> { ["action"] = "delete" }
ChatReduction\MessageCountingChatReducerTests.cs (1)
128new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call1", "get_weather", new Dictionary<string, object?> { ["location"] = "Seattle" })]),
ChatReduction\SummarizingChatReducerTests.cs (2)
188new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call1", "get_weather", new Dictionary<string, object?> { ["location"] = "Seattle" }), new TestInputRequestContent("uir2")]), 193new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("call2", "get_weather", new Dictionary<string, object?> { ["location"] = "New York" })]),
ChatRouting\SemanticRoutingChatClientTests.cs (11)
21var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance) 35new Dictionary<IChatClient, IReadOnlyList<string>>(), 40new Dictionary<IChatClient, IReadOnlyList<string>> 48new Dictionary<IChatClient, IReadOnlyList<string>> 76var vectors = new Dictionary<string, float[]> 107var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance) 133var vectors = new Dictionary<string, float[]> 156var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance) 178var vectors = new Dictionary<string, float[]> 199var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance) 223var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance)
Functions\AIFunctionFactoryTest.cs (3)
490IReadOnlyDictionary<string, object?> metadata = new Dictionary<string, object?> { ["a"] = "b" }; 923Context = new Dictionary<object, object?>(), 930Context = new Dictionary<object, object?>
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonDocument.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonNode.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Generated\361d1da7f942c932\TestJsonSerializerContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Realtime\FunctionInvokingRealtimeClientTests.cs (2)
102CreateFunctionCallOutputItemMessage("call_001", "get_weather", new Dictionary<string, object?> { ["city"] = "Seattle" }), 151CreateFunctionCallOutputItemMessage("call_002", "get_weather", new Dictionary<string, object?> { ["city"] = "London" }),
Realtime\OpenTelemetryRealtimeClientTests.cs (1)
602[new FunctionCallContent("call_123", "search", new Dictionary<string, object?> { ["query"] = "test" })],
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataExtensionsTests.cs (2)
94.AddInMemoryCollection(new Dictionary<string, string?> 120.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.AmbientMetadata.Build.Tests (2)
BuildMetadataServiceCollectionExtensionsTests.cs (1)
48.AddInMemoryCollection(new Dictionary<string, string?>
ConfigurationBindingQuirkBehaviorTests.cs (1)
54return configuration.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.AsyncState (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Caching.Hybrid.Tests (2)
SerializerTests.cs (1)
189Dictionary<string, (int id, string who, DateTime when)> source = new()
TestEventListener.cs (1)
49var args = new Dictionary<string, string?>
Microsoft.Extensions.Compliance.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Classification\DataClassificationTypeConverterTests.cs (2)
52var expected = new Dictionary<string, DataClassification> 180public IDictionary<string, DataClassification> Facts { get; set; } = new Dictionary<string, DataClassification>();
Microsoft.Extensions.Compliance.Redaction (1)
RedactorProvider.cs (1)
46var dict = new Dictionary<DataClassificationSet, Redactor>(map.Count);
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
21.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Compliance.Testing.Tests (1)
Setup.cs (1)
16.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Configuration (3)
ConfigurationBuilder.cs (1)
25public IDictionary<string, object> Properties { get; } = new Dictionary<string, object>();
ConfigurationManager.cs (1)
265private readonly Dictionary<string, object> _properties = new();
ConfigurationProvider.cs (1)
24Data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Binder.SourceGeneration (5)
ConfigurationBindingGenerator.Parser.cs (2)
26private readonly Dictionary<ITypeSymbol, TypeSpec> _createdTypeSpecs = new(SymbolEqualityComparer.Default); 774(properties ??= new(StringComparer.OrdinalIgnoreCase))[propertyName] = spec;
Specs\BindingHelperInfo.cs (2)
27private readonly Dictionary<TypeRef, bool> _seenTransitiveTypes = new(); 32private readonly Dictionary<MethodsToGen_CoreBindingHelper, HashSet<TypeSpec>> _typesForGen = new();
Specs\InterceptorInfo.cs (1)
136private readonly Dictionary<ComplexTypeSpec, TypedInterceptorInvocationInfo.Builder> _invocationInfoBuilderCache = new();
Microsoft.Extensions.Configuration.CommandLine (2)
CommandLineConfigurationProvider.cs (2)
43var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 140var switchMappingsCopy = new Dictionary<string, string>(switchMappings.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
86var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
227Data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
28var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
16private readonly Dictionary<string, string?> _data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
60var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Xml (2)
XmlStreamConfigurationProvider.cs (2)
94var children = new Dictionary<string, List<XmlConfigurationElement>>(StringComparer.OrdinalIgnoreCase); 257Dictionary<string, string?> configuration = new(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.DataIngestion (1)
Writers\VectorStoreWriter.cs (1)
79Dictionary<string, object?> record = new()
Microsoft.Extensions.DataIngestion.Abstractions (2)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string> s_extensionToMediaType = new(StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string> s_mediaTypeToExtension = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownMcpReader.cs (1)
84Dictionary<string, object?> parameters = new()
Microsoft.Extensions.DependencyInjection (5)
ServiceLookup\CallSiteChain.cs (1)
17_callSiteChain = new Dictionary<ServiceIdentifier, ChainItemInfo>();
ServiceLookup\CallSiteFactory.cs (2)
19private readonly Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem> _descriptorLookup = new Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem>(); 390keyedSlotAssignment = new Dictionary<ServiceIdentifier, int>(capacity: _descriptors.Length)
ServiceLookup\ServiceProviderEngineScope.cs (1)
31ResolvedServices = new Dictionary<ServiceCacheKey, object?>();
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.DependencyModel (2)
DependencyContextJsonReader.cs (2)
20private readonly Dictionary<string, string> _stringPool = new Dictionary<string, string>(); 648var libraries = new Dictionary<string, LibraryStub>();
Microsoft.Extensions.Diagnostics (5)
Metrics\DefaultMeterFactory.cs (1)
14private readonly Dictionary<string, List<FactoryMeter>> _cachedMeters = new();
Metrics\ListenerSubscription.cs (1)
16private readonly Dictionary<Instrument, object?> _instruments = new();
Tracing\DefaultActivitySourceFactory.cs (3)
398var newDict = new Dictionary<(string Name, bool IsLocalScope), SourceFilterState>(state.SourceFilterStates) 572public static readonly ListenerState Empty = new([], hasOperationNameRules: false, new Dictionary<(string, bool), SourceFilterState>()); 591=> new(rules, ComputeHasOperationNameRules(rules), new Dictionary<(string, bool), SourceFilterState>());
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
ExceptionSummarizer.cs (1)
19var exceptionTypesToProvidersBuilder = new Dictionary<Type, IExceptionSummaryProvider>();
HttpExceptionSummaryProvider.cs (2)
37var socketErrors = new Dictionary<SocketError, int>(); 52var webStatuses = new Dictionary<WebExceptionStatus, int>();
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
62var entries = new Dictionary<string, HealthReportEntry>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
HealthCheckResult.cs (1)
14private static readonly IReadOnlyDictionary<string, object> _emptyReadOnlyDictionary = new Dictionary<string, object>();
HealthReportEntry.cs (1)
15private static readonly IReadOnlyDictionary<string, object> _emptyReadOnlyDictionary = new Dictionary<string, object>();
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
TelemetryHealthChecksPublisherExtensionsTests.cs (1)
73var configurationDict = new Dictionary<string, string?>
TelemetryHealthChecksPublisherTests.cs (1)
154var healthStatusRecords = new Dictionary<string, HealthReportEntry>();
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (1)
ResourceUtilizationHealthCheck.cs (1)
34IReadOnlyDictionary<string, object> data = new Dictionary<string, object>
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (1)
ResourceHealthCheckExtensionsTests.cs (1)
572var configurationDict = new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
KubernetesProbesExtensionsTests.cs (1)
95.AddInMemoryCollection(new Dictionary<string, string?>
MockHealthCheckService.cs (1)
26var healthStatusRecords = new Dictionary<string, HealthReportEntry> { { "id", entry } };
TcpEndpointProbesExtensionsTests.cs (2)
105.AddInMemoryCollection(new Dictionary<string, string?> 130.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Windows\Disk\WindowsDiskMetrics.cs (1)
26private readonly Dictionary<string, WindowsDiskIoRatePerfCounter> _diskIoRateCounters = new();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
ResourceMonitoringExtensionsTests.cs (1)
165.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\CollectedMeasurement.cs (1)
28var d = new Dictionary<string, object?>();
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
55.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
87_features = new Dictionary<Type, object>(_initialCapacity);
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
98var dict = new Dictionary<string, List<string>>();
Microsoft.Extensions.Hosting (2)
HostApplicationBuilder.cs (1)
168hostBuilderContext = new HostBuilderContext(new Dictionary<object, object>())
HostBuilder.cs (1)
54public IDictionary<object, object> Properties { get; } = new Dictionary<object, object>();
Microsoft.Extensions.Hosting.Testing.Tests (1)
FakeHostBuilderTests.cs (1)
88IDictionary<object, object> properties = new Dictionary<object, object>();
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientMappingRegistry.cs (2)
16public Dictionary<string, Type> NamedClientRegistrations { get; } = new(); 18public Dictionary<string, HttpClientKeyedLifetime> KeyedLifetimeMap { get; } = new();
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Http.Diagnostics (14)
Latency\Internal\HttpRequestLatencyListener.cs (10)
114private static readonly Dictionary<string, string> _socketMap = new() 120private static readonly Dictionary<string, string> _nameResolutionMap = new() 126private static readonly Dictionary<string, string> _httpMap = new() 140private static readonly Dictionary<string, string> _httpMeasureMap = new() 150Dictionary<string, CheckpointToken> socket = new(); 156Dictionary<string, CheckpointToken> nameResolution = new(); 162Dictionary<string, CheckpointToken> http = new(); 168Dictionary<string, MeasureToken> httpMeasures = new(); 174_eventToCheckpointTokenMap = new Dictionary<string, FrozenDictionary<string, CheckpointToken>> 181_eventToMeasureTokenMap = new Dictionary<string, FrozenDictionary<string, MeasureToken>>
Logging\LoggingOptions.cs (4)
51public IDictionary<string, DataClassification> RequestQueryParametersDataClasses { get; set; } = new Dictionary<string, DataClassification>(); 111public IDictionary<string, DataClassification> RequestHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(); 124public IDictionary<string, DataClassification> ResponseHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(); 151public IDictionary<string, DataClassification> RouteParameterDataClasses { get; set; } = new Dictionary<string, DataClassification>();
Microsoft.Extensions.Http.Diagnostics.Tests (57)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
111.AddInMemoryCollection(new Dictionary<string, string?>
Logging\AcceptanceTests.cs (10)
453options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } }; 460options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } }; 489options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } }; 496options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } }; 523options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test1", FakeTaxonomy.PrivateData } }; 529options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test2", FakeTaxonomy.PrivateData } }; 535options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test3", FakeTaxonomy.PrivateData } }; 541options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test4", FakeTaxonomy.PrivateData } }; 547options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test5", FakeTaxonomy.PrivateData } }; 552options.ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { "test6", FakeTaxonomy.PrivateData } };
Logging\HttpClientLoggerTest.cs (12)
204ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData }, { "Header3", FakeTaxonomy.PrivateData } }, 205RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData }, { "Header3", FakeTaxonomy.PrivateData } }, 297ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 298RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 406ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 407RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 503ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 504RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 618ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 619RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 889ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 890RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
Logging\HttpClientLoggingExtensionsTest.cs (6)
250.AddInMemoryCollection(new Dictionary<string, string?> 302.AddInMemoryCollection(new Dictionary<string, string?> 389.AddInMemoryCollection(new Dictionary<string, string?> 411.AddInMemoryCollection(new Dictionary<string, string?> 433.AddInMemoryCollection(new Dictionary<string, string?> 615.AddInMemoryCollection(new Dictionary<string, string?>
Logging\HttpHeadersReaderTest.cs (4)
52RequestHeadersDataClasses = new Dictionary<string, DataClassification> 57ResponseHeadersDataClasses = new Dictionary<string, DataClassification> 114RequestHeadersDataClasses = new Dictionary<string, DataClassification> 120ResponseHeadersDataClasses = new Dictionary<string, DataClassification>
Logging\HttpRequestReaderTest.cs (20)
64RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } }, 65ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } }, 194RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 195ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 269RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 270ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 344RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 403RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 404ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 476RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 477ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 545RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 546ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 635RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 680RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>() // No data classification 707RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 738RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 775RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 828RequestQueryParametersDataClasses = new Dictionary<string, DataClassification> 869RequestQueryParametersDataClasses = new Dictionary<string, DataClassification>
Logging\Internal\TestConfiguration.cs (1)
19.AddInMemoryCollection(new Dictionary<string, string?>
Logging\LoggingOptionsTest.cs (3)
73var testHeaders = new Dictionary<string, DataClassification> 87var testHeaders = new Dictionary<string, DataClassification> 122var paramsToRedacts = new Dictionary<string, DataClassification>
Microsoft.Extensions.Http.Resilience (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Http.Resilience.Tests (17)
Hedging\StandardHedgingTests.cs (5)
95var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 131var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 152var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 242new() 260reloadAction(new() { { "standard:Hedging:MaxHedgedAttempts", "6" } });
Helpers\ConfigurationStubFactory.cs (1)
40Data = new Dictionary<string, string?>(data, StringComparer.OrdinalIgnoreCase);
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (4)
65new Dictionary<string, string?> 75new Dictionary<string, string?> 230new() 255reloadAction(new() { { "standard:Retry:MaxRetryAttempts", "10" } });
Routing\OrderedRoutingStrategyTest.cs (3)
38new() 42new() 52routingBuilder.ConfigureOrderedGroups(GetSection(new Dictionary<string, string>
Routing\RoutingStrategyTest.cs (1)
192Data = new Dictionary<string, string?>(data, StringComparer.OrdinalIgnoreCase);
Routing\WeightedRoutingStrategyTest.cs (3)
52new() 57new() 68routingBuilder.ConfigureWeightedGroups(GetSection(new Dictionary<string, string>
Microsoft.Extensions.Identity.Core (2)
TokenOptions.cs (1)
36public Dictionary<string, TokenProviderDescriptor> ProviderMap { get; set; } = new Dictionary<string, TokenProviderDescriptor>();
UserManager.cs (1)
46new Dictionary<string, IUserTwoFactorTokenProvider<TUser>>();
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerSettings.cs (1)
32public IDictionary<string, LogLevel> Switches { get; set; } = new Dictionary<string, LogLevel>();
Microsoft.Extensions.Logging.Generators (3)
LoggerMessageGenerator.Parser.cs (2)
619var methods = new Dictionary<string, int>(lc.Methods.Count); 1016public readonly Dictionary<string, string> TemplateMap = new(StringComparer.OrdinalIgnoreCase);
LoggerMessageGenerator.Roslyn4.0.cs (1)
169var allLogClasses = new Dictionary<string, LoggerClass>(); // Deduplicate by class key
Microsoft.Extensions.Options (2)
StartupValidatorOptions.cs (2)
14public Dictionary<(Type, string), Action> _validators { get; } = new Dictionary<(Type, string), Action>(); 18public Dictionary<(Type, string), Func<CancellationToken, Task>> _asyncValidators { get; } = new Dictionary<(Type, string), Func<CancellationToken, Task>>();
Microsoft.Extensions.Options.SourceGeneration (6)
Emitter.cs (2)
61var staticValidationAttributesDict = new Dictionary<string, StaticFieldInfo>(); 62var staticValidatorsDict = new Dictionary<string, StaticFieldInfo>();
Model\ValidationAttributeInfo.cs (1)
11public Dictionary<string, string> Properties { get; } = new();
OptionsSourceGenContext.cs (1)
26internal Dictionary<string, HashSet<object>?> AttributesToGenerate { get; set; } = new Dictionary<string, HashSet<object>?>();
Parser.cs (2)
34private readonly Dictionary<ITypeSymbol, (ValidatorType? Sync, ValidatorType? Async)> _synthesizedValidators = new(SymbolEqualityComparer.Default); 41private readonly Dictionary<string, HashSet<string>> _usedSynthesizedValidatorNames = new(StringComparer.Ordinal);
Microsoft.Extensions.ServiceDiscovery.Dns (3)
FallbackDnsResolver.cs (1)
54var lookupMapping = new Dictionary<string, List<AddressResult>>();
Resolver\DnsResolver.cs (2)
220Dictionary<EncodedDomainName, EncodedDomainName> aliasMap = new(); 221Dictionary<EncodedDomainName, List<AddressResult>> aRecordMap = new();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
DnsSrvServiceEndpointResolverTests.cs (1)
185InitialData = new Dictionary<string, string?>
Microsoft.Extensions.ServiceDiscovery.Tests (10)
ConfigurationServiceEndpointResolverTests.cs (7)
23var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 58var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 139var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 232var data = new Dictionary<string, string?>(); 279InitialData = new Dictionary<string, string?> 342InitialData = new Dictionary<string, string?> 387InitialData = new Dictionary<string, string?>
PassThroughServiceEndpointResolverTests.cs (3)
48InitialData = new Dictionary<string, string?> 81InitialData = new Dictionary<string, string?> 115InitialData = new Dictionary<string, string?>
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
ServiceDiscoveryDestinationResolver.cs (1)
26Dictionary<string, DestinationConfig> results = new();
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (11)
YarpServiceDiscoveryTests.cs (11)
39var destinationConfigs = new Dictionary<string, DestinationConfig> 57var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 70var destinationConfigs = new Dictionary<string, DestinationConfig> 88var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 100var destinationConfigs = new Dictionary<string, DestinationConfig> 120var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 134var destinationConfigs = new Dictionary<string, DestinationConfig> 200var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 218var destinationConfigs = new Dictionary<string, DestinationConfig> 244var destinationConfigs = new Dictionary<string, DestinationConfig> 293var destinationConfigs = new Dictionary<string, DestinationConfig>
Microsoft.Extensions.Telemetry (3)
Latency\Internal\Registry.cs (1)
33var keyOrderBuilder = new Dictionary<string, int>(c);
Logging\ExtendedLoggerFactory.cs (1)
22private readonly Dictionary<string, ExtendedLogger> _loggers = new(StringComparer.Ordinal);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Telemetry.Abstractions (1)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Logging\LoggerMessageHelperTests.cs (4)
28var d0 = new Dictionary<string, string> 34var d1 = new Dictionary<string, string> 48var d3 = new Dictionary<string, int> 56var d4 = new Dictionary<int, string>
Microsoft.Extensions.Telemetry.Tests (27)
Http\HttpParserTests.cs (11)
21Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 38Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 57Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 77Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 123Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 155Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 226Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 280Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } }; 347Dictionary<string, DataClassification> parametersToRedact = new() 391Dictionary<string, DataClassification> parametersToRedact = new() 437Dictionary<string, DataClassification> parametersToRedact = new()
Http\HttpRouteFormatterTests.cs (13)
20var parametersToRedact = new Dictionary<string, DataClassification>(); 93Dictionary<string, DataClassification> parametersToRedact = new() 136Dictionary<string, DataClassification> parametersToRedact = new() 157Dictionary<string, DataClassification> parametersToRedact = new() 218Dictionary<string, DataClassification> parametersToRedact = new() 239Dictionary<string, DataClassification> parametersToRedact = new() 257Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 324Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 353Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 373Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } }; 415Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 435Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 451Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
Latency\Internal\TagCollectionTests.cs (1)
30Dictionary<string, int> namesNumTimes = new Dictionary<string, int>
Latency\LatencyConsoleExtensionsTests.cs (1)
70.AddInMemoryCollection(new Dictionary<string, string?>
Latency\LatencyContextExtensionTests.cs (1)
123.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Validation (1)
ValidateContext.cs (1)
65_validationErrors ??= new Dictionary<string, List<ValidationError>>();
Microsoft.Extensions.VectorData.Abstractions (4)
ProviderServices\CollectionModelBuilder.cs (3)
174return new(typeof(Dictionary<string, object?>), static () => new Dictionary<string, object?>(), KeyProperties, DataProperties, VectorProperties, PropertyMap); 336property.ProviderAnnotations = new Dictionary<string, object?>(definitionProperty.ProviderAnnotations); 496var storageNameMap = new Dictionary<string, PropertyModel>();
RecordDefinition\VectorStoreProperty.cs (1)
40? new Dictionary<string, object?>(source.ProviderAnnotations)
Microsoft.Extensions.VectorData.ConformanceTests (14)
EmbeddingGenerationTests.cs (3)
212var record = new Dictionary<string, object?> 274new() 281new()
ModelTests\DynamicModelTests.cs (7)
214var inserted = new Dictionary<string, object?> 233var updated = new Dictionary<string, object?> 253new() 260new() 415new() 422new() 429new()
TypeTests\DataTypeTests.cs (1)
316var record = new Dictionary<string, object?>();
TypeTests\EmbeddingTypeTests.cs (1)
104var dynamicRecord = new Dictionary<string, object?>
TypeTests\KeyTypeTests.cs (2)
105var dynamicRecord = new Dictionary<string, object?> 111var nextDynamicRecord = new Dictionary<string, object?>
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
GeneratorTests.cs (1)
65return new TestAnalyzerConfigOptionsProvider(new Dictionary<string, string?>
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
GeneratorTests.cs (3)
56? new() { ["build_property.ComplianceReportOutputPath"] = Directory.GetCurrentDirectory() } 120var options = new Dictionary<string, string> 147var options = new Dictionary<string, string>
Microsoft.Gen.Logging (2)
Parser.cs (1)
57var parameterSymbols = new Dictionary<LoggingMethodParameter, IParameterSymbol>();
Parser.LogProperties.cs (1)
104var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>();
Microsoft.Gen.Logging.Generated.Tests (42)
LogMethodTests.cs (1)
941new Dictionary<string, int>
LogPropertiesRedactionTests.cs (6)
33var expectedState = new Dictionary<string, string?> 59var expectedState = new Dictionary<string, string?> 82var expectedState = new Dictionary<string, string?> 113var expectedState = new Dictionary<string, string?> 142var expectedState = new Dictionary<string, string?> 168var expectedState = new Dictionary<string, string?>
LogPropertiesTests.cs (14)
33P7 = new Dictionary<string, int> 231var expectedState = new Dictionary<string, string?> 305var expectedState = new Dictionary<string, string?> 325var expectedState = new Dictionary<string, string?> 345var expectedState = new Dictionary<string, string?> 368var expectedState = new Dictionary<string, string?> 392var expectedState = new Dictionary<string, string?> 422var expectedState = new Dictionary<string, string?> 451var expectedState = new Dictionary<string, string?> 477var expectedState = new Dictionary<string, string?> 504var expectedState = new Dictionary<string, string?> 528var expectedState = new Dictionary<string, string?> 553var expectedState = new Dictionary<string, string?> 579var expectedState = new Dictionary<string, string?>
TagNameTests.cs (2)
20logger.Collector.LatestRecord.StructuredState.Should().NotBeNull().And.Equal(new Dictionary<string, string?> 27logger.Collector.LatestRecord.StructuredState.Should().NotBeNull().And.Equal(new Dictionary<string, string?>
TagProviderTests.cs (15)
37var expectedState = new Dictionary<string, string?> 60var expectedState = new Dictionary<string, string?> 87var expectedState = new Dictionary<string, string?> 110var expectedState = new Dictionary<string, string?> 142var expectedState = new Dictionary<string, string?> 211var expectedState = new Dictionary<string, string?> 230var expectedState = new Dictionary<string, string?> 250var expectedState = new Dictionary<string, string?> 272var expectedState = new Dictionary<string, string?> 293var expectedState = new Dictionary<string, string?> 313var expectedState = new Dictionary<string, string?> 334var expectedState = new Dictionary<string, string?> 361var expectedState = new Dictionary<string, string?> 399var expectedState = new Dictionary<string, string?> 424var expectedState = new Dictionary<string, string?>
TransitiveTests.cs (4)
22var expectedState = new Dictionary<string, string?> 32expectedState = new Dictionary<string, string?> 49var expectedState = new Dictionary<string, string?> 60expectedState = new Dictionary<string, string?>
Microsoft.Gen.Logging.Unit.Tests (1)
SymbolLoaderTests.cs (1)
31new Dictionary<string, string>(),
Microsoft.Gen.MetadataExtractor (1)
Parser_2.cs (1)
286var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
GeneratorTests.cs (4)
73? new() { ["build_property.MetadataReportOutputPath"] = Directory.GetCurrentDirectory() } 124var options = new Dictionary<string, string> 145var options = new Dictionary<string, string> 175var options = new Dictionary<string, string>
Microsoft.Gen.Metrics (1)
Parser.cs (1)
286var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetricsReports (1)
Parser.cs (1)
286var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetricsReports.Unit.Tests (6)
EmitterTests.cs (2)
29DimensionsDescriptions = new Dictionary<string, string> 72DimensionsDescriptions = new Dictionary<string, string>
GeneratorTests.cs (4)
38? new() { ["build_property.MetricsReportOutputPath"] = Directory.GetCurrentDirectory() } 85var options = new Dictionary<string, string> 101var options = new Dictionary<string, string> 128var options = new Dictionary<string, string>
Microsoft.Interop.ComInterfaceGenerator (5)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
53var methodsOfInterest = new Dictionary<ISymbol, ImmutableArray<Func<IInvocationOperation, (ITypeSymbol, Location)?>>>(SymbolEqualityComparer.Default);
ComInterfaceContext.cs (2)
32Dictionary<string, ComInterfaceInfo> nameToInterfaceInfoMap = new(); 38Dictionary<string, DiagnosticOr<ComInterfaceContext>> nameToContextCache = new();
ComInterfaceGenerator.cs (1)
73Dictionary<ComMethodInfo, IMethodSymbol> methodSymbols = new();
ComMethodContext.cs (1)
123var allMethodsCache = new Dictionary<ComInterfaceContext, ImmutableArray<Builder>>();
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
32Dictionary<(INamedTypeSymbol marshallerType, ITypeSymbol managedType, bool isLinearCollectionMarshaller), HashSet<string>> uniqueMarshallersToFix = new(); 55Dictionary<INamedTypeSymbol, INamedTypeSymbol> partiallyUpdatedSymbols = new(SymbolEqualityComparer.Default);
Microsoft.Interop.SourceGeneration (3)
ManualTypeMarshallingHelper.cs (1)
165Dictionary<MarshalMode, CustomTypeMarshallerData> modes = new();
Marshalling\MarshallerHelpers.cs (1)
124Dictionary<U, int> elementIndexToEdgeMapNodeId = new(elements.Count);
Marshalling\NoMarshallingInfoErrorResolver.cs (1)
41=> ImmutableDictionary.CreateRange(new Dictionary<ManagedTypeInfo, string>
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (2)
401var result = new Dictionary<string, (MethodInfo, Type[])>(StringComparer.Ordinal); 438var result = new Dictionary<string, (MethodInfo, Type[])>(StringComparer.Ordinal);
Microsoft.Maui (20)
Animations\Lerp.cs (1)
9 public static readonly Dictionary<Type, Lerp> Lerps = new Dictionary<Type, Lerp>()
CommandMapper.cs (1)
9 readonly Dictionary<string, Command> _mapper = new(StringComparer.Ordinal);
Extensions\EnumerableExtensions.cs (1)
39 var result = new Dictionary<TKey, List<TSource>>();
Fonts\FontRegistrar.cs (3)
13 readonly Dictionary<string, (string Filename, string? Alias, Assembly Assembly)> _embeddedFonts = new(StringComparer.Ordinal); 14 readonly Dictionary<string, (string Filename, string? Alias)> _nativeFonts = new(StringComparer.Ordinal); 15 readonly Dictionary<string, string?> _fontLookupCache = new(StringComparer.Ordinal);
Handlers\HybridWebView\FileExtensionContentTypeProvider.cs (1)
30 : this(new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
32 var result = new Dictionary<string, string>();
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (2)
15 private readonly Dictionary<Type, Type> _concreteTypeMapping = new(); 16 private readonly Dictionary<Type, Type> _interfaceTypeMapping = new();
Hosting\Internal\MauiServiceCollection.cs (1)
12 readonly Dictionary<Type, ServiceDescriptor> _descriptorDictionary = new Dictionary<Type, ServiceDescriptor>();
HotReload\HotReloadHelper.cs (3)
117 static Dictionary<string, Type> replacedViews = new(StringComparer.Ordinal); 118 static Dictionary<IHotReloadableView, object[]> currentViews = new Dictionary<IHotReloadableView, object[]>(); 119 static Dictionary<string, List<KeyValuePair<Type, Type>>> replacedHandlers = new(StringComparer.Ordinal);
Layouts\GridLayoutManager.cs (1)
83 readonly Dictionary<SpanKey, Span> _spans = new();
LifecycleEvents\LifecycleEventService.cs (1)
9 readonly Dictionary<string, List<Delegate>> _mapper = new(StringComparer.Ordinal);
PropertyMapper.cs (2)
20 protected readonly Dictionary<string, Action<IElementHandler, IElement>> _mapper = new(StringComparer.Ordinal); 186 var cachedMappers = new Dictionary<string, Action<IElementHandler, IElement>?>(cacheSize);
VisualDiagnostics\VisualDiagnosticsOverlay.Standard.cs (1)
7 readonly Dictionary<IScrollView, object> _scrollViews = new();
WeakEventManager.cs (1)
13 readonly Dictionary<string, List<Subscription>> _eventHandlers = new(StringComparer.Ordinal);
Microsoft.Maui.Controls (44)
AnimationExtensions.cs (2)
60 s_animations = new Dictionary<AnimatableKey, Info>(); 61 s_kinetics = new Dictionary<AnimatableKey, int>();
Application\Application.cs (1)
418 readonly Dictionary<string, WeakReference<Window>> _requestedWindows = new(StringComparer.Ordinal);
AppLinkEntry.cs (1)
15 keyValues = new(StringComparer.Ordinal);
BindableObject.cs (2)
41 internal Dictionary<TriggerBase, SetterSpecificity> _triggerSpecificity = new Dictionary<TriggerBase, SetterSpecificity>(); 42 readonly Dictionary<BindableProperty, BindablePropertyContext> _properties = new Dictionary<BindableProperty, BindablePropertyContext>(4);
BindableProperty.cs (3)
43 internal static readonly Dictionary<Type, TypeConverter> KnownTypeConverters = new Dictionary<Type, TypeConverter> 51 internal static readonly Dictionary<Type, IValueConverter> KnownIValueConverters = new Dictionary<Type, IValueConverter> 58 internal static readonly Dictionary<Type, Type[]> SimpleConvertTypes = new Dictionary<Type, Type[]>
DataTemplate.cs (2)
41 public IDictionary<BindableProperty, BindingBase> Bindings { get; } = new Dictionary<BindableProperty, BindingBase>(); 44 public IDictionary<BindableProperty, object> Values { get; } = new Dictionary<BindableProperty, object>();
DataTemplateSelector.cs (1)
10 Dictionary<Type, DataTemplate> _dataTemplates = new Dictionary<Type, DataTemplate>();
DependencyService.cs (1)
20 static readonly Dictionary<Type, DependencyData> DependencyImplementations = new Dictionary<Type, DependencyData>();
DragAndDrop\DataPackagePropertySet.cs (1)
16 _propertyBag = new(StringComparer.Ordinal);
Element\Element.cs (1)
369 Dictionary<BindableProperty, (string, SetterSpecificity)> DynamicResources => _dynamicResources ?? (_dynamicResources = new Dictionary<BindableProperty, (string, SetterSpecificity)>());
Hosting\Effects\AppHostBuilderExtensions.cs (1)
72 internal Dictionary<Type, Func<PlatformEffect>> RegisteredEffects { get; } = new Dictionary<Type, Func<PlatformEffect>>();
Internals\NameScope.cs (2)
17 readonly Dictionary<string, object> _names = new(StringComparer.Ordinal); 18 readonly Dictionary<object, string> _values = new Dictionary<object, string>();
Layout\AbsoluteLayout.cs (1)
21 readonly Dictionary<IView, AbsoluteLayoutInfo> _viewInfo = new();
Layout\FlexLayout.cs (1)
256 readonly Dictionary<IView, FlexInfo> _viewInfo = new();
Layout\Grid.cs (1)
12 readonly Dictionary<IView, GridInfo> _viewInfo = new();
LegacyLayouts\RelativeLayout.cs (1)
70 var solveTable = new Dictionary<View, bool>();
ListProxy.cs (1)
316 _items = new Dictionary<int, object>();
MessagingCenter.cs (1)
108 new Dictionary<Sender, List<Subscription>>();
OrderedDictionary.cs (1)
63 _dict = new Dictionary<TKey, TValue>(capacity, equalityComparer);
PlatformConfigurationRegistry.cs (1)
12 readonly Dictionary<Type, object> _platformSpecifics = new Dictionary<Type, object>();
Registrar.cs (4)
45 readonly Dictionary<Type, Dictionary<Type, HandlerType>> _handlers = new Dictionary<Type, Dictionary<Type, HandlerType>>(); 64 visualRenderers = new Dictionary<Type, HandlerType>(); 312 internal static Dictionary<string, EffectType> Effects { get; } = new(StringComparer.Ordinal); 359 var properties = new Dictionary<string, IList<StylePropertyAttribute>>(StringComparer.Ordinal);
ResourceDictionary.cs (1)
23 readonly Dictionary<string, object> _innerDictionary = new(StringComparer.Ordinal);
ResourcesExtensions.cs (3)
17 resources = resources ?? new(StringComparer.Ordinal); 36 resources = resources ?? new Dictionary<string, object>(8, StringComparer.Ordinal); 49 resources = resources ?? new(StringComparer.Ordinal);
Routing.cs (2)
13 static Dictionary<string, RouteFactory> s_routes = new(StringComparer.Ordinal); 14 static Dictionary<string, Page> s_implicitPageRoutes = new(StringComparer.Ordinal);
Shell\ShellNavigationQueryParameters.cs (1)
10 Dictionary<string, object> _internal = new Dictionary<string, object>();
Shell\ShellRouteParameters.cs (1)
105 Dictionary<string, string> lookupDict = new(StringComparer.Ordinal);
StyleSheets\Style.cs (2)
17 public IDictionary<string, string> Declarations { get; set; } = new Dictionary<string, string>(StringComparer.Ordinal); 18 Dictionary<KeyValuePair<string, string>, object> convertedValues = new Dictionary<KeyValuePair<string, string>, object>();
StyleSheets\StyleSheet.cs (1)
21 internal IDictionary<Selector, Style> Styles { get; set; } = new Dictionary<Selector, Style>();
TemplatedItemsList.cs (1)
1231 readonly Dictionary<TemplatedItemsList<TView, TItem>, string> _oldNames = new Dictionary<TemplatedItemsList<TView, TItem>, string>();
VisualElement\VisualElement.cs (1)
503 readonly Dictionary<Size, SizeRequest> _measureCache = new Dictionary<Size, SizeRequest>();
Visuals\VisualTypeConverter.cs (1)
28 var mappings = new Dictionary<string, IVisual>(StringComparer.OrdinalIgnoreCase);
Microsoft.Maui.Controls.Build.Tasks (16)
ILContext.cs (4)
16 Values = new Dictionary<IValueNode, object>(); 17 Variables = new Dictionary<IElementNode, VariableDefinition>(); 18 Scopes = new Dictionary<INode, Tuple<VariableDefinition, IList<string>>>(); 19 TypeExtensions = new Dictionary<INode, TypeReference>();
PerformanceProvider.cs (1)
21 readonly Dictionary<string, Statistic> _Statistics = new(StringComparer.Ordinal);
SetPropertiesVisitor.cs (3)
867 var locs = new Dictionary<TypeReference, VariableDefinition>(); 963 var locs = new Dictionary<TypeReference, VariableDefinition>(); 1096 var locs = new Dictionary<TypeReference, VariableDefinition>();
XamlCache.cs (8)
14 readonly Dictionary<ModuleDefinition, IList<XmlnsDefinitionAttribute>> _xmlnsDefinitions = new(); 15 readonly Dictionary<TypeReference, TypeDefinition> _resolvedTypes = new(); 16 readonly Dictionary<(ModuleDefinition module, string fieldRefKey), FieldReference> _fieldReferenceCache = new(); 17 readonly Dictionary<(ModuleDefinition module, string typeKey), TypeReference> _typeReferenceCache = new(); 18 readonly Dictionary<(ModuleDefinition module, string methodRefKey), MethodReference> _methodReferenceCache = new(); 19 readonly Dictionary<(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName)), TypeDefinition> _typeDefinitionCache = new(); 20 readonly Dictionary<VariableDefinition, ICollection<string>> _resourceNamesInUse = new(); 56 public Dictionary<TypeReference, Type> GetKnownCompiledTypeConverters(ModuleDefinition module) => _knownCompiledTypeConverters ??= new(TypeRefComparer.Default)
Microsoft.Maui.Controls.SourceGen (2)
CodeBehindGenerator.cs (1)
244 return new Dictionary<XmlType, string>();
src\Controls\src\Xaml\XamlNode.cs (1)
161 Properties = new Dictionary<XmlName, INode>();
Microsoft.Maui.Controls.Xaml (7)
HydrationContext.cs (2)
11 Values = new Dictionary<INode, object>(); 12 Types = new Dictionary<IElementNode, Type>();
NamescopingVisitor.cs (1)
8 readonly Dictionary<INode, NameScopeRef> _scopes = new Dictionary<INode, NameScopeRef>();
XamlLoader.cs (1)
259 static readonly Dictionary<Type, string> XamlResources = new Dictionary<Type, string>();
XamlNode.cs (1)
161 Properties = new Dictionary<XmlName, INode>();
XamlServiceProvider.cs (2)
14 readonly Dictionary<Type, object> services = new Dictionary<Type, object>(); 286 readonly Dictionary<string, string> namespaces = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.Maui.Essentials (5)
FilePicker\FilePicker.shared.cs (1)
140 fileTypes = new Dictionary<DevicePlatform, IEnumerable<string>>();
Types\Shared\WebUtils.shared.cs (1)
11 var parameters = new Dictionary<string, string>(StringComparer.Ordinal);
VersionTracking\VersionTracking.shared.cs (2)
241 versionTrail = new(StringComparer.Ordinal) 249 versionTrail = new(StringComparer.Ordinal)
WebAuthenticator\WebAuthenticatorResult.shared.cs (1)
76 public Dictionary<string, string> Properties { get; set; } = new(StringComparer.Ordinal);
Microsoft.Maui.Graphics (1)
Text\TextColors.cs (1)
9 public static Dictionary<string, string> StandardColors = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\SimpleCssParser.cs (1)
13 var values = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.Maui.Resizetizer (6)
ColorTable.cs (1)
17 var colors = new Dictionary<string, SKColor>(StringComparer.OrdinalIgnoreCase);
DetectInvalidResourceOutputFilenamesTask.cs (1)
25 var tempInvalidItems = new Dictionary<ITaskItem, string>();
ResizetizeImages.cs (2)
107 var attr = new Dictionary<string, string>(StringComparer.Ordinal); 132 var imagesPairs = new Dictionary<string, ResizeImageInfo>();
TizenResourceXmlGenerator.cs (1)
10 static readonly IDictionary<string, string> resolutionMap = new Dictionary<string, string>(StringComparer.Ordinal)
TizenSplashUpdater.cs (1)
19 static public Dictionary<(string Resolution, string Orientation), string> splashDpiMap = new Dictionary<(string, string), string>();
Microsoft.ML.AutoML (22)
API\Pipeline.cs (1)
48Properties = properties ?? new Dictionary<string, object>();
ColumnInference\ColumnInformationUtil.cs (1)
147var result = new Dictionary<ColumnPurpose, int>();
EstimatorExtensions\EstimatorExtensionCatalog.cs (1)
31Dictionary<EstimatorName, Type>()
EstimatorExtensions\EstimatorExtensions.cs (2)
304var pipelineNodeProperty = new Dictionary<string, object>() 329var pipelineNodeProperty = new Dictionary<string, object>()
SweepableEstimator\MultiModelPipeline.cs (1)
22_estimators = new Dictionary<string, SweepableEstimator>();
SweepableEstimator\SweepablePipeline.cs (2)
21private readonly Dictionary<string, SweepableEstimator> _estimators = new Dictionary<string, SweepableEstimator>(); 68_estimators = new Dictionary<string, SweepableEstimator>();
Sweepers\ISweeper.cs (2)
85_parameterValues = new Dictionary<string, IParameterValue>(); 141new ParameterSet(new Dictionary<string, IParameterValue>(_parameterValues), _hash);
TrainerExtensions\BinaryTrainerExtensions.cs (1)
53additionalProperties = new Dictionary<string, object>()
TrainerExtensions\RankingTrainerExtensions.cs (1)
54var property = new Dictionary<string, object>();
TrainerExtensions\RecommendationTrainerExtensions.cs (1)
27var property = new Dictionary<string, object>();
TrainerExtensions\TrainerExtensionCatalog.cs (1)
14new Dictionary<TrainerName, Type>()
TrainerExtensions\TrainerExtensionUtil.cs (3)
107Properties = new Dictionary<string, object>() 144var props = new Dictionary<string, object>(); 166props = new Dictionary<string, object>();
Tuner\AutoZeroTuner.cs (1)
24private readonly Dictionary<int, Config> _configLookBook = new Dictionary<int, Config>();
Tuner\CostFrugalTuner.cs (2)
17private readonly Dictionary<int, SearchThread> _searchThreadPool = new Dictionary<int, SearchThread>(); 19private readonly Dictionary<int, int> _trialProposedBy = new Dictionary<int, int>();
Tuner\EciCfoTuner.cs (1)
28_tuners = new Dictionary<string, ITuner>();
Tuner\PipelineProposer.cs (1)
50_estimatorCost = new Dictionary<EstimatorType, double>()
Microsoft.ML.AutoML.Tests (9)
EstimatorExtensionTests.cs (1)
29Properties = new Dictionary<string, object> { }
TrainerExtensionsTests.cs (3)
312var props = new Dictionary<string, object>() 318Properties = new Dictionary<string, object>() 343var props = new Dictionary<string, object>()
TunerTests.cs (4)
37var tunerCandidates = new Dictionary<string, ITuner>() 243var tunerCandidates = new Dictionary<string, ITuner>() 298var tunerCandidates = new Dictionary<string, ITuner>() 347var tunerCandidates = new Dictionary<string, ITuner>()
Utils\TaskAgnosticIterationResult.cs (1)
16internal Dictionary<string, double> MetricValues = new Dictionary<string, double>();
Microsoft.ML.CodeGenerator (15)
CodeGenerator\CSharp\CodeGeneratorSettings.cs (1)
18OnnxInputMapping = new Dictionary<string, ColumnMapping>();
CodeGenerator\CSharp\TrainerGeneratorBase.cs (1)
41_arguments = new Dictionary<string, object>();
CodeGenerator\CSharp\TrainerGenerators.cs (13)
24new Dictionary<string, string>() 95new Dictionary<string, string>() 126new Dictionary<string, string>() 238new Dictionary<string, string>() 265new Dictionary<string, string>() 324new Dictionary<string, string>() 358new Dictionary<string, string>() 388new Dictionary<string, string>() 418new Dictionary<string, string>() 489new Dictionary<string, string>() 522new Dictionary<string, string>() 600new Dictionary<string, string>(); 619new Dictionary<string, string>()
Microsoft.ML.CodeGenerator.Tests (65)
ApprovalTests\ConsoleCodeGeneratorTests.cs (7)
545var hyperParam = new Dictionary<string, object>() 684new Dictionary<string, object>() 723var hyperParam = new Dictionary<string, object>() 772new Dictionary<string, object>() 851var mapping = new Dictionary<string, CodeGeneratorSettings.ColumnMapping>() 982new Dictionary<string, object>() 1019var mapping = new Dictionary<string, CodeGeneratorSettings.ColumnMapping>()
ApprovalTests\TemplateTest.cs (1)
37SampleData = new Dictionary<string, string>()
CodeGenTests.cs (6)
28var elementProperties = new Dictionary<string, object>() 48var elementProperties = new Dictionary<string, object>() 68var elementProperties = new Dictionary<string, object>(); 82var elementProperties = new Dictionary<string, object>(); 123var elementProperties = new Dictionary<string, object>() 125{"Booster", new CustomProperty(){Properties= new Dictionary<string, object>(), Name = "TreeBooster"} },
TrainerGeneratorTests.cs (40)
30var elementProperties = new Dictionary<string, object>() 58var elementProperties = new Dictionary<string, object>() 79var elementProperties = new Dictionary<string, object>() 102var elementProperties = new Dictionary<string, object>(); 119var elementProperties = new Dictionary<string, object>() 139var elementProperties = new Dictionary<string, object>(); 156var elementProperties = new Dictionary<string, object>() 176var elementProperties = new Dictionary<string, object>(); 193var elementProperties = new Dictionary<string, object>() 213var elementProperties = new Dictionary<string, object>(); 230var elementProperties = new Dictionary<string, object>() 250var elementProperties = new Dictionary<string, object>(); 267var elementProperties = new Dictionary<string, object>() 286var elementProperties = new Dictionary<string, object>(); 300var elementProperties = new Dictionary<string, object>() 327var elementProperties = new Dictionary<string, object>(); 344var elementProperties = new Dictionary<string, object>() 364var elementProperties = new Dictionary<string, object>(); 381var elementProperties = new Dictionary<string, object>() 401var elementProperties = new Dictionary<string, object>(); 418var elementProperties = new Dictionary<string, object>() 438var elementProperties = new Dictionary<string, object>(); 455var elementProperties = new Dictionary<string, object>() 475var elementProperties = new Dictionary<string, object>(); 492var elementProperties = new Dictionary<string, object>() 512var elementProperties = new Dictionary<string, object>(); 529var elementProperties = new Dictionary<string, object>() 550var elementProperties = new Dictionary<string, object>(); 567var elementProperties = new Dictionary<string, object>() 588var elementProperties = new Dictionary<string, object>(); 605var elementProperties = new Dictionary<string, object>() 626var elementProperties = new Dictionary<string, object>(); 643var elementProperties = new Dictionary<string, object>() 664var elementProperties = new Dictionary<string, object>(); 680var elementProperties = new Dictionary<string, object>() 701var elementProperties = new Dictionary<string, object>(); 718var elementProperties = new Dictionary<string, object>() 739var elementProperties = new Dictionary<string, object>(); 756var elementProperties = new Dictionary<string, object>() 774var elementProperties = new Dictionary<string, object>();
TransformGeneratorTests.cs (11)
25var elementProperties = new Dictionary<string, object>();//categorical 39var elementProperties = new Dictionary<string, object>();//categorical 53var elementProperties = new Dictionary<string, object>(); 67var elementProperties = new Dictionary<string, object>(); 81var elementProperties = new Dictionary<string, object>();//nume to num feature 2 95var elementProperties = new Dictionary<string, object>(); 109var elementProperties = new Dictionary<string, object>();//numeric feature 123var elementProperties = new Dictionary<string, object>(); 137var elementProperties = new Dictionary<string, object>(); 151var elementProperties = new Dictionary<string, object>(); 165var elementProperties = new Dictionary<string, object>();
Microsoft.ML.Core (14)
CommandLine\CmdParser.cs (1)
468var map = new Dictionary<string, Argument>();
ComponentModel\ComponentCatalog.cs (5)
77_classesByKey = new Dictionary<LoadableClassInfo.Key, LoadableClassInfo>(); 79_signatures = new Dictionary<Type, bool>(); 82_entryPointMap = new Dictionary<string, EntryPointInfo>(); 83_componentMap = new Dictionary<string, ComponentInfo>(); 86_extensionsMap = new Dictionary<(Type AttributeType, string ContractName), Type>();
Data\Repository.cs (1)
473_entries = new Dictionary<string, ZipArchiveEntry>();
Data\RoleMappedSchema.cs (2)
219var map = new Dictionary<string, List<DataViewSchema.Column>>(); 313var copy = new Dictionary<string, IReadOnlyList<DataViewSchema.Column>>(map.Count);
Data\ServerChannel.cs (1)
134_toPublish = new Dictionary<string, Delegate>();
Utilities\LruCache.cs (1)
35_cache = new Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>>(_size);
Utilities\Tree.cs (1)
88_children = new Dictionary<TKey, Tree<TKey, TValue>>();
Utilities\Utils.cs (2)
161map = new Dictionary<TKey, TValue>(); 169map = new Dictionary<TKey, TValue>();
Microsoft.ML.Core.Tests (5)
UnitTests\ColumnTypes.cs (1)
23var dict = new Dictionary<DataViewType, string>();
UnitTests\TestEntryPoints.cs (4)
3350var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3351var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 3402var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3403var inputMap = new Dictionary<ParameterBinding, VariableBinding>();
Microsoft.ML.CpuMath.UnitTests (2)
UnitTests.cs (2)
100_disableAvxEnvironmentVariables = new Dictionary<string, string>() 105_disableAvxAndSseEnvironmentVariables = new Dictionary<string, string>()
Microsoft.ML.Data (66)
Commands\DataCommand.cs (2)
155Dictionary<string, double> averageMetric = new Dictionary<string, double>(); 196Dictionary<string, double> newAverageMetric = new Dictionary<string, double>();
Commands\TypeInfoCommand.cs (2)
84var dstToSrcMap = new Dictionary<HashSet<InternalDataKind>, HashSet<InternalDataKind>>(comp); 85var srcToDstMap = new Dictionary<InternalDataKind, HashSet<InternalDataKind>>();
Data\Conversion.cs (8)
105_delegatesStd = new Dictionary<(Type src, Type dst), Delegate>(); 106_delegatesAll = new Dictionary<(Type src, Type dst), Delegate>(); 107_isNADelegates = new Dictionary<Type, Delegate>(); 108_hasNADelegates = new Dictionary<Type, Delegate>(); 109_isDefaultDelegates = new Dictionary<Type, Delegate>(); 110_hasZeroDelegates = new Dictionary<Type, Delegate>(); 111_getNADelegates = new Dictionary<Type, Delegate>(); 112_tryParseDelegates = new Dictionary<Type, Delegate>();
Data\DataViewTypeManager.cs (2)
39private static readonly Dictionary<TypeWithAttributes, DataViewType> _rawTypeToDataViewTypeMap = new Dictionary<TypeWithAttributes, DataViewType>(); 44private static readonly Dictionary<DataViewType, TypeWithAttributes> _dataViewTypeToRawTypeMap = new Dictionary<DataViewType, TypeWithAttributes>();
Data\SchemaDefinition.cs (1)
245AnnotationInfos = new Dictionary<string, AnnotationInfo>();
DataLoadSave\Binary\BinaryLoader.cs (1)
330var map = new Dictionary<string, MetadataTableOfContentsEntry>();
DataLoadSave\Binary\CodecFactory.cs (2)
45_loadNameToCodecCreator = new Dictionary<string, GetCodecFromStreamDelegate>(); 46_simpleCodecTypeMap = new Dictionary<Type, IValueCodec>();
DataLoadSave\Binary\UnsafeTypeOps.cs (1)
32_type2ops = new Dictionary<Type, object>();
DataLoadSave\Database\DatabaseLoader.cs (1)
481var nameToInfoIndex = new Dictionary<string, int>(Infos.Length);
DataLoadSave\Text\TextLoader.cs (2)
757var nameToInfoIndex = new Dictionary<string, int>(Infos.Length); 927var nameToInfoIndex = new Dictionary<string, int>(Infos.Length);
DataLoadSave\Text\TextLoaderParser.cs (2)
693var mapOne = new Dictionary<InternalDataKind, Func<RowSet, ColumnPipe>>(); 694var mapVec = new Dictionary<InternalDataKind, Func<RowSet, ColumnPipe>>();
DataView\ArrayDataViewBuilder.cs (2)
43_getSlotNames = new Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>>(); 44_getKeyValues = new Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>>();
DataView\InternalSchemaDefinition.cs (1)
76Annotations = metadataInfos == null ? new Dictionary<string, AnnotationInfo>()
DataView\Transposer.cs (2)
107_nameToICol = new Dictionary<string, int>(); 753var nameToCol = new Dictionary<string, int>();
Deprecated\Instances\HeaderSchema.cs (2)
212var dict = new Dictionary<int, string>(); 280var lookup = new Dictionary<string, int>();
EntryPoints\EntryPointNode.cs (7)
273_vars = new Dictionary<string, EntryPointVariable>(); 487_inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 488_inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 510_outputMap = new Dictionary<string, string>(); 603var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 604var inputParamBindingMap = new Dictionary<ParameterBinding, VariableBinding>(); 748var toModify = new Dictionary<string, string>();
EntryPoints\InputBuilder.cs (3)
382result.Add(attr.Input.Name ?? field.Name, builder.GetJsonObject(instanceVal, new Dictionary<string, List<ParameterBinding>>(), 383new Dictionary<ParameterBinding, VariableBinding>())); 593var dict = new Dictionary<string, T>();
Evaluators\AnomalyDetectionEvaluator.cs (1)
204var result = new Dictionary<string, IDataView>();
Evaluators\BinaryClassifierEvaluator.cs (1)
369var result = new Dictionary<string, IDataView>();
Evaluators\ClusteringEvaluator.cs (1)
214var result = new Dictionary<string, IDataView>
Evaluators\EvaluatorBase.cs (1)
410_dict = new Dictionary<TStrat, TAgg>();
Evaluators\EvaluatorUtils.cs (7)
39var tmp = new Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> 466var slotNames = new Dictionary<string, int>(); 611var keyNames = new Dictionary<ReadOnlyMemory<char>, int>(); 679var keyNames = new Dictionary<ReadOnlyMemory<char>, int>(); 813var vectorSizes = new Dictionary<string, int>(); 814var firstDvSlotNames = new Dictionary<string, VBuffer<ReadOnlyMemory<char>>>(); 817var firstDvKeyNoNamesColumns = new Dictionary<string, ulong>();
Evaluators\MulticlassClassificationEvaluator.cs (1)
246var result = new Dictionary<string, IDataView>
Evaluators\MultiOutputRegressionEvaluator.cs (1)
160var result = new Dictionary<string, IDataView>();
Evaluators\RankingEvaluator.cs (1)
238var result = new Dictionary<string, IDataView>();
Evaluators\RegressionEvaluatorBase.cs (1)
108var result = new Dictionary<string, IDataView>();
Model\Pfa\BoundPfaContext.cs (1)
53_nameToVarName = new Dictionary<string, string>();
Transforms\ColumnBindingsBase.cs (1)
311_nameToInfoIndex = new Dictionary<string, int>(names.Length);
Transforms\ColumnSelecting.cs (1)
566var columnDict = new Dictionary<string, List<int>>();
Transforms\InvertHashUtils.cs (1)
182_slotToValueSet = new Dictionary<int, HashSet<Pair>>();
Transforms\NAFilter.cs (2)
102_srcIndexToInfoIndex = new Dictionary<int, int>(_infos.Length); 139_srcIndexToInfoIndex = new Dictionary<int, int>(_infos.Length);
Transforms\OneToOneTransformerBase.cs (1)
101ColMapNewToOld = new Dictionary<int, int>();
Transforms\ValueMapping.cs (3)
319Dictionary<TValue, uint> keyTypeValueMapping = new Dictionary<TValue, uint>(); 843return new Dictionary<ReadOnlyMemory<char>, TValue>(new ReadOnlyMemoryUtils.ReadonlyMemoryCharComparer()) as Dictionary<TKey, TValue>; 844return new Dictionary<TKey, TValue>();
Microsoft.ML.DataView (2)
DataViewSchema.cs (2)
431var nameMap = new Dictionary<string, int>(); 453_nameMap = new Dictionary<string, int>();
Microsoft.ML.EntryPoints (41)
CrossValidationMacro.cs (13)
179var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 180var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 185var outputMap = new Dictionary<string, string>(); 208var mapping = new Dictionary<string, string>(); 239inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 240inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 247outputMap = new Dictionary<string, string>(); 255inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 256inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 266outputMap = new Dictionary<string, string>(); 318var combineInputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 319var combineInputMap = new Dictionary<ParameterBinding, VariableBinding>(); 337var combineOutputMap = new Dictionary<string, string>();
MacroUtils.cs (6)
124var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 125var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 135var outputMap = new Dictionary<string, string>(); 147var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 148var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 158var outputMap = new Dictionary<string, string>();
OneVersusAllMacro.cs (7)
60var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 61var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 66var outputMap = new Dictionary<string, string>(); 78var mapping = new Dictionary<string, string>(); 172var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 173var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 182var outputMap = new Dictionary<string, string>();
TrainTestMacro.cs (15)
168inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 169inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 179outputMap = new Dictionary<string, string>(); 191inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 192inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 203outputMap = new Dictionary<string, string>(); 225inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 226inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 237outputMap = new Dictionary<string, string>(); 248inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 249inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 255outputMap = new Dictionary<string, string>(); 270inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 271inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 277outputMap = new Dictionary<string, string>();
Microsoft.ML.Fairlearn (4)
Metrics\FairlearnMetricCatalog.cs (4)
118Dictionary<string, double> metricsDict = new Dictionary<string, double> 187var groupMetric = new Dictionary<object, RegressionMetrics>(); 244Dictionary<string, double> diffDict = new Dictionary<string, double>(); 259Dictionary<string, double> metricsDict = new Dictionary<string, double>
Microsoft.ML.FastTree (12)
Dataset\Dataset.cs (4)
338Dictionary<string, DatasetSkeletonQueryDocData> newAuxData = new Dictionary<string, DatasetSkeletonQueryDocData>(); 455AuxiliaryData = new Dictionary<string, DatasetSkeletonQueryDocData>(); 487AuxiliaryData = new Dictionary<string, DatasetSkeletonQueryDocData>(); 806Dictionary<string, bool> auxNames = new Dictionary<string, bool>();
Dataset\DatasetUtils.cs (1)
48Dictionary<uint, int> uvalToOrder = new Dictionary<uint, int>();
FastTree.cs (1)
3301var keyValues = new Dictionary<string, object>();
GamModelParameters.cs (2)
104_inputFeatureToShapeFunctionMap = new Dictionary<int, int>(_shapeToInputMap.Length); 148_inputFeatureToShapeFunctionMap = new Dictionary<int, int>(len);
Training\ScoreTracker.cs (2)
144private static readonly Dictionary<int, Dictionary<int, double>> _treeMultiplierMap = new Dictionary<int, Dictionary<int, double>>(); 154_treeMultiplierMap[t] = new Dictionary<int, double>();
TreeEnsemble\InternalRegressionTree.cs (1)
1174Dictionary<int, int> categoricalSplitNodeToId = new Dictionary<int, int>();
TreeEnsemble\InternalTreeEnsemble.cs (1)
119Dictionary<int, int> featureToID = new Dictionary<int, int>(); //Mapping from feature to ini input id
Microsoft.ML.GenAI.Core (4)
Extension\ModuleExtension.cs (4)
33return new(); 37var dict = new Dictionary<string, long>(); 176var deviceMap = new Dictionary<string, string>(); 219var deviceMap = new Dictionary<string, string>();
Microsoft.ML.GenAI.Core.Tests (2)
QuantizedLinearTests.cs (2)
84model.load_state_dict(new Dictionary<string, Tensor> 112model.load_state_dict(new Dictionary<string, Tensor>
Microsoft.ML.GenAI.LLaMA (2)
LlamaTextCompletionService.cs (1)
27public IReadOnlyDictionary<string, object?> Attributes => new Dictionary<string, object?>()
LlamaTokenizerHelper.cs (1)
27private static readonly Dictionary<string, int> _specialTokens = new()
Microsoft.ML.GenAI.Mistral (2)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
171var propertiesSchemas = new Dictionary<string, JsonSchema>();
MistralTokenizerHelper.cs (1)
63var specialTokens = new Dictionary<string, int>
Microsoft.ML.GenAI.Phi (3)
Phi2\Phi2ForCausalLM.cs (1)
62var loadedParameters = new Dictionary<string, bool>();
Phi3\Phi3CausalLMTextGenerationService.cs (1)
23public IReadOnlyDictionary<string, object?> Attributes => new Dictionary<string, object?>()
Phi3\Phi3TokenizerHelper.cs (1)
40specialTokens: new Dictionary<string, int>
Microsoft.ML.GenAI.Samples (1)
Mistral\Mistral_7B_Instruct.cs (1)
135functionMap: new Dictionary<string, Func<string, Task<string>>>
Microsoft.ML.ImageAnalytics (1)
MLImage.cs (1)
430private static readonly Dictionary<string, SKEncodedImageFormat> _extensionToEncodingFormat = new Dictionary<string, SKEncodedImageFormat>(StringComparer.OrdinalIgnoreCase)
Microsoft.ML.IntegrationTests (2)
Common.cs (2)
29var types = new Dictionary<string, Type>(); 30var counts = new Dictionary<string, int>();
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendAnalyzer.cs (1)
63var assemblyHasAttrMap = new Dictionary<IAssemblySymbol, bool>(SymbolEqualityComparer.Default);
Microsoft.ML.LightGbm (6)
LightGbmArguments.cs (1)
37private protected static Dictionary<string, string> NameMapping = new Dictionary<string, string>()
LightGbmTrainerBase.cs (3)
54private protected static Dictionary<string, string> NameMapping = new Dictionary<string, string>() 284Dictionary<string, object> res = new Dictionary<string, object>(); 891Dictionary<int, float> ivPair = new Dictionary<int, float>();
WrappedLightGbmBooster.cs (2)
203Dictionary<string, string> parameters = new Dictionary<string, string>(); 233Dictionary<string, string> kvPairs = new Dictionary<string, string>();
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
27Dictionary<string, string> packageVersions = new Dictionary<string, string>();
Microsoft.ML.OnnxConverter (1)
OnnxContextImpl.cs (1)
52_columnNameMap = new Dictionary<string, string>();
Microsoft.ML.OnnxTransformer (7)
OnnxTransform.cs (2)
247var shapeDictionary = new Dictionary<string, int[]>(); 671Outputs = new Dictionary<string, DisposableNamedOnnxValue>();
OnnxUtils.cs (5)
262var inputTypePool = new Dictionary<string, DataViewType>(); 266var initializerTypePool = new Dictionary<string, DataViewType>(); 270var outputTypePool = new Dictionary<string, DataViewType>(); 272var casterPool = new Dictionary<string, Func<NamedOnnxValue, object>>(); 511new Dictionary<Type, InternalDataKind>
Microsoft.ML.OnnxTransformerTest (9)
OnnxTransformTests.cs (9)
843var inputDict0 = new Dictionary<int, float> { { 0, 94.17f }, { 1, 17.36f } }; 844var inputDict1 = new Dictionary<int, float> { { 0, 12.28f }, { 1, 75.12f } }; 853output.Output = new Dictionary<int, float>(); 898var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } }; 983var shapeDictionary = new Dictionary<string, int[]>() { 998shapeDictionary = new Dictionary<string, int[]>() { 1014shapeDictionary = new Dictionary<string, int[]>() { 1029shapeDictionary = new Dictionary<string, int[]>() { 1068var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } };
Microsoft.ML.ResultProcessor (11)
ResultProcessor.cs (11)
62public static Dictionary<string, Dictionary<string, string>> MapDefaultSettingToLearner = new Dictionary<string, Dictionary<string, string>>(); 70SameHeaderValues = new Dictionary<string, object>(); 162return new Dictionary<string, string>(); 169return new Dictionary<string, string>(0); 531predictorSettings = new Dictionary<string, string>(0); 792Dictionary<string, ResultMetric> runResults = new Dictionary<string, ResultMetric>(); 890Dictionary<string, ResultMetric> perFoldMetrics = new Dictionary<string, ResultMetric>(); 892Dictionary<int, Dictionary<string, float>> foldResults = new Dictionary<int, Dictionary<string, float>>(); 927var metricToFoldValuesDict = new Dictionary<string, Dictionary<int, float>>(); 938metricDict = new Dictionary<int, float>(); 985Dictionary<string, float> valuesDict = new Dictionary<string, float>();
Microsoft.ML.Samples (27)
Dynamic\Transforms\Conversion\MapValue.cs (3)
31var timeframeMap = new Dictionary<string, string>(); 40var timeframeKeyMap = new Dictionary<string, uint>(); 48var scoreMap = new Dictionary<int, string>();
Dynamic\Transforms\Conversion\MapValueToArray.cs (1)
35var timeframeMap = new Dictionary<string, int[]>();
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (10)
42Dictionary<string, Object> dic1 = new Dictionary<string, Object>(); 48Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 54Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 60Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 66Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 72Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 78Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 84Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 90Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 101Dictionary<string, Object> dim = new Dictionary<string, Object>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (13)
48Dictionary<string, Object> dic1 = new Dictionary<string, Object> 56Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 62Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 68Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 74Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 80Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 86Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 92Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 98Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 104Dictionary<string, Object> dic10 = new Dictionary<string, Object>(); 110Dictionary<string, Object> dic11 = new Dictionary<string, Object>(); 116Dictionary<string, Object> dic12 = new Dictionary<string, Object>(); 127Dictionary<string, Object> dim = new Dictionary<string, Object>();
Microsoft.ML.SearchSpace (5)
Option\NestOption.cs (1)
18private readonly Dictionary<string, OptionBase> _options = new Dictionary<string, OptionBase>();
Parameter.cs (1)
221var parameter = new Parameter(new Dictionary<string, Parameter>(), ParameterType.Object);
SearchSpace.cs (3)
51_options = new Dictionary<string, OptionBase>(); 196var res = new Dictionary<string, OptionBase>(); 243var res = new Dictionary<string, OptionBase>();
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\LogisticRegression.cs (1)
289weightIndicesInvMap = new Dictionary<int, int>(numParams);
Microsoft.ML.Sweeper (4)
Algorithms\KdoSweeper.cs (2)
356Dictionary<string, int> labelToIndex = new Dictionary<string, int>(); 399Dictionary<string, int> labelToIndex = new Dictionary<string, int>();
ISweeper.cs (2)
114_parameterValues = new Dictionary<string, IParameterValue>(); 170new ParameterSet(new Dictionary<string, IParameterValue>(_parameterValues), _hash);
Microsoft.ML.TensorFlow (1)
TensorflowTransform.cs (1)
683Outputs = new Dictionary<string, Tensor>();
Microsoft.ML.Tests (94)
OnnxConversionTest.cs (92)
1247pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, int> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1248pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, long> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1249pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, short> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1250pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, uint> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1251pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, ushort> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1252pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, ulong> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1253pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, string> { { 3, "True" }, { 23, "False" } }, "Keys", treatValuesAsKeyType)); 1254pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, float> { { 3, 6 }, { 23, 46 } }, "Keys", treatValuesAsKeyType)); 1255pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, double> { { 3, 698 }, { 23, 7908 } }, "Keys", treatValuesAsKeyType)); 1256pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<float, bool> { { 3, false }, { 23, true } }, "Keys", treatValuesAsKeyType)); 1260pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1261pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1262pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1263pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1264pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1265pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, float> { { 3, 6 }, { 23, 46 } }, "Keys")); 1266pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, long> { { 3, 698 }, { 23, 7908 } }, "Keys")); 1267pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, double> { { 3, 698 }, { 23, 7908 } }, "Keys")); 1268pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<double, bool> { { 3, true }, { 23, false } }, "Keys")); 1272pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, int> { { true, 6 }, { false, 46 } }, "Keys")); 1273pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, short> { { true, 6 }, { false, 46 } }, "Keys")); 1274pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, uint> { { true, 6 }, { false, 46 } }, "Keys")); 1275pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, ushort> { { true, 6 }, { false, 46 } }, "Keys")); 1276pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, ulong> { { true, 6 }, { false, 46 } }, "Keys")); 1277pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, string> { { true, "True" }, { false, "False" } }, "Keys")); 1278pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, float> { { true, 6 }, { false, 46 } }, "Keys")); 1279pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, long> { { true, 698 }, { false, 7908 } }, "Keys")); 1280pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, double> { { true, 698 }, { false, 7908 } }, "Keys")); 1281pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<bool, bool> { { false, true }, { true, false } }, "Keys")); 1285pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, int> { { "3", 3 }, { "23", 23 } }, "Keys")); 1286pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, short> { { "3", 3 }, { "23", 23 } }, "Keys")); 1287pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, uint> { { "3", 6 }, { "23", 46 } }, "Keys")); 1288pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, ushort> { { "3", 6 }, { "23", 46 } }, "Keys")); 1289pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, ulong> { { "3", 6 }, { "23", 46 } }, "Keys")); 1290pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, float> { { "3", 6 }, { "23", 23 } }, "Keys")); 1291pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, double> { { "3", 6 }, { "23", 23 } }, "Keys")); 1292pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, long> { { "3", 3 }, { "23", 23 } }, "Keys")); 1293pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<string, bool> { { "3", true }, { "23", false } }, "Keys")); 1297pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1298pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1299pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1300pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1301pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1302pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1303pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1304pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1305pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<int, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1309pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1310pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1311pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1312pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1313pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1314pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1315pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1316pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1317pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<short, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1321pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1322pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1323pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1324pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1325pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1326pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1327pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1328pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1329pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<long, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1333pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1334pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1335pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1336pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1337pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1338pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1339pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1340pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1341pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<uint, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1345pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1346pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1347pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1348pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1349pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1350pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1351pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1352pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1353pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ushort, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1357pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, short> { { 3, 6 }, { 23, 46 } }, "Keys")); 1358pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, int> { { 3, 6 }, { 23, 46 } }, "Keys")); 1359pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, long> { { 3, 6 }, { 23, 46 } }, "Keys")); 1360pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, ushort> { { 3, 6 }, { 23, 46 } }, "Keys")); 1361pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, uint> { { 3, 6 }, { 23, 46 } }, "Keys")); 1362pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, ulong> { { 3, 6 }, { 23, 46 } }, "Keys")); 1363pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, string> { { 3, "True" }, { 23, "False" } }, "Keys")); 1364pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, float> { { 3, 6.435f }, { 23, 23.534f } }, "Keys")); 1365pipelines.Add(mlContext.Transforms.Conversion.MapValue("Value", new Dictionary<ulong, double> { { 3, 6.435f }, { 23, 23.534f } }, "Keys"));
TextLoaderTests.cs (2)
735var irisFirstRow = new Dictionary<string, float>(); 844var irisFirstRow = new Dictionary<string, float>();
Microsoft.ML.TimeSeries (12)
PolynomialUtils.cs (1)
285var hash = new Dictionary<Complex, FactorMultiplicity>();
RootCauseAnalyzer.cs (9)
99Dictionary<Dictionary<string, object>, TimeSeriesPoint> dimPointMapping = new Dictionary<Dictionary<string, object>, TimeSeriesPoint>(dc); 130return new Dictionary<string, object>(keyList.Select(dim => new KeyValuePair<string, object>(dim, dimension[dim])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value)); 202Dictionary<string, int> pointDistribution = new Dictionary<string, int>(); 251Dictionary<BestDimension, double> entroyGainRatioMap = new Dictionary<BestDimension, double>(); 293Dictionary<BestDimension, double> entropyRatioMap = new Dictionary<BestDimension, double>(); 639Dictionary<string, Object> newDim = new Dictionary<string, Object>(dimension); 762ChildrenNodes = new Dictionary<string, List<TimeSeriesPoint>>(); 776AnomalyDis = new Dictionary<string, int>(); 777PointDis = new Dictionary<string, int>();
STL\InnerStl.cs (1)
285_xValuesPool = new Dictionary<int, List<double>>();
STL\Loess.cs (1)
58_neighbors = new Dictionary<int, LocalRegression>();
Microsoft.ML.TimeSeries.Tests (30)
TimeSeriesDirectApi.cs (30)
970Dictionary<string, Object> expectedDim = new Dictionary<string, Object>(); 999Dictionary<string, Object> expectedDim = new Dictionary<string, Object>(); 1015expectedDim = new Dictionary<string, Object>(); 1047Dictionary<string, object> expectedDim = new Dictionary<string, object> 1087Dictionary<string, Object> dic1 = new Dictionary<string, Object>(); 1093Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 1099Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 1105Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 1111Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 1117Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 1123Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 1129Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 1135Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 1141Dictionary<string, Object> dic10 = new Dictionary<string, Object>(); 1147Dictionary<string, Object> dic11 = new Dictionary<string, Object>(); 1153Dictionary<string, Object> dic12 = new Dictionary<string, Object>(); 1164Dictionary<string, Object> dim = new Dictionary<string, Object>(); 1197Dictionary<string, int> expectedDim = new Dictionary<string, int> 1231Dictionary<string, object> dic1 = new Dictionary<string, object>(); 1237Dictionary<string, object> dic2 = new Dictionary<string, object>(); 1243Dictionary<string, object> dic3 = new Dictionary<string, object>(); 1249Dictionary<string, object> dic4 = new Dictionary<string, object>(); 1255Dictionary<string, object> dic5 = new Dictionary<string, object>(); 1261Dictionary<string, object> dic6 = new Dictionary<string, object>(); 1267Dictionary<string, object> dic7 = new Dictionary<string, object>(); 1273Dictionary<string, object> dic8 = new Dictionary<string, object>(); 1279Dictionary<string, object> dic9 = new Dictionary<string, object>(); 1285Dictionary<string, object> dic10 = new Dictionary<string, object>(); 1291Dictionary<string, object> dic11 = new Dictionary<string, object>(); 1297Dictionary<string, object> dic12 = new Dictionary<string, object>();
Microsoft.ML.Tokenizers (37)
Model\BPETokenizer.cs (4)
152Dictionary<StringSpanOrdinalKey, int> vocab = new Dictionary<StringSpanOrdinalKey, int>(1000); 319_vocab = vocab ?? new Dictionary<StringSpanOrdinalKey, int>(); 363Merges = new(); 1175private readonly Dictionary<char, string> _charToString = new Dictionary<char, string>();
Model\Cache.cs (1)
21_map = new Dictionary<TKey, TValue>(capacity);
Model\CodeGenTokenizer.cs (2)
1704internal static readonly Dictionary<string, int> CodeGenSpecialTokens = new() 1769var mergeRanks = new Dictionary<StringSpanOrdinalKeyPair, int>();
Model\EnglishRobertaTokenizer.cs (3)
239var vocab = new Dictionary<string, int>(); 1113_idToIndex = new Dictionary<int, int>(); 1115_stringSymbolToIndexMapping = new Dictionary<string, int>();
Model\SentencePieceBaseModel.cs (4)
41InternalSpecialTokens = new Dictionary<StringSpanOrdinalKey, int>(); 42SpecialTokensReverse = new Dictionary<int, string>(); 88InternalSpecialTokens = new Dictionary<StringSpanOrdinalKey, int>(); 89SpecialTokensReverse = new Dictionary<int, string>();
Model\SentencePieceBpeModel.cs (4)
22private readonly Dictionary<StringSpanOrdinalKey, (int Id, float Score, byte Type)> _vocab = new(); 23private readonly Dictionary<int, string> _vocabReverse = new(); 51var vocab = new Dictionary<string, int>(); 1210revMerge ??= new();
Model\SentencePieceTokenizer.cs (1)
763Dictionary<string, int> result = new Dictionary<string, int>();
Model\TiktokenTokenizer.cs (12)
182encoder = new Dictionary<ReadOnlyMemory<byte>, int>(suggestedCapacity, ReadOnlyMemoryByteComparer.Instance); 183vocab = new Dictionary<StringSpanOrdinalKey, (int Id, string Token)>(suggestedCapacity); 184decoder = new Dictionary<int, ReadOnlyMemory<byte>>(suggestedCapacity); 1072new Dictionary<string, ModelEncoding>(StringComparer.OrdinalIgnoreCase) 1176new Dictionary<string, int> 1210new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 }, { IMStart, 100264 }, 1213new Dictionary<string, int> { { EndOfText, 100257 }, { FimPrefix, 100258 }, { FimMiddle, 100259 }, { FimSuffix, 100260 }, { EndOfPrompt, 100276 } }, 1217return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName); 1220return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName); 1223return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName); 1226return (new Dictionary<string, int> 1230return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), R50RanksFile, Type.GetType(R50kBaseTypeName), R50kBasePackageName);
Model\WordPieceTokenizer.cs (2)
99Dictionary<StringSpanOrdinalKey, int> vocab = new Dictionary<StringSpanOrdinalKey, int>(); 100Dictionary<int, string> vocabReverse = new Dictionary<int, string>();
ModelSourceGenerationContext.DictionaryStringSpanOrdinalKeyInt32.g.cs (1)
29ObjectCreator = () => new global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>(),
Utils\LruCache.cs (1)
17private readonly Dictionary<StringSpanOrdinalKey, LinkedListNode<KeyValuePair<string, TValue>>> _cache = new();
Utils\StringSpanOrdinalKey.cs (1)
86_map = new Dictionary<StringSpanOrdinalKey, TValue>(capacity);
Utils\TokenizerExtensions.cs (1)
37Dictionary<TValue, TKey> dictionary = new Dictionary<TValue, TKey>();
Microsoft.ML.Tokenizers.Tests (20)
BertTokenizerTests.cs (1)
26Dictionary<string, int> specialTokens = new() {
BpeTests.cs (14)
27new Dictionary<string, int>() { { UnknownToken, 0 }, { "!", 5 }, { ",", 6 }, { ".", 7 }, { "B", 8 }, { "H", 9 }, { "T", 10 }, { "W", 11 }, { "a", 12 }, { "b", 13 }, { "c", 14 }, { "d", 15 }, { "e", 16 }, 53new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 68new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } }, 83new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } }, 98new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 113new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 128new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "ab", 3 }, { UnknownToken, 4} }, 143new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "c", 3 }, { "ab", 4 }, { "abc", 5 } }, 158new Dictionary<string, int>(){ { UnknownToken, 0} }, 173new Dictionary<string, int>(){ { UnknownToken, 0} }, 188new Dictionary<string, int>() { { UnknownToken, 0}, { "H", 1 }, { "e", 2 }, { "l", 3 }, { "o", 4 }, { "!", 5 }, { "He", 6 }, { "lo", 7}, { "llo", 8 }, 525IReadOnlyDictionary<string, int> specialTokens = new Dictionary<string, int>() 898SpecialTokens = new Dictionary<string, int> // SpecialTokens not part of the original vocab.json 1077Dictionary<string, int> specialTokens = new Dictionary<string, int>();
LlamaTests.cs (1)
48specialTokens: new Dictionary<string, int>
TiktokenTests.cs (2)
26private static readonly Dictionary<string, int> _specialTokens = new Dictionary<string, int> 815new Dictionary<string, int>
UnigramTests.cs (1)
60new Dictionary<string, int>
WordPieceTests.cs (1)
184Dictionary<string, int> specialTokens = new Dictionary<string, int>
Microsoft.ML.TorchSharp (10)
AutoFormerV2\Attention.cs (1)
73var attentionOffsets = new Dictionary<Tuple<int, int>, int>();
AutoFormerV2\ObjectDetectionMetrics.cs (2)
99Dictionary<string, List<Tuple<float, float>>> iouDic = new(); 100Dictionary<string, int> groundTruthBoxes = new();
NasBert\Models\NasBertEncoder.cs (1)
207new Dictionary<string, object> { { PositionalEmbedding.PositionKey, positions } });
NasBert\Modules\IncrementalState.cs (1)
51private static Dictionary<string, torch.Tensor> EmptyIncrementalState => new Dictionary<string, torch.Tensor>();
NasBert\Modules\MultiHeadAttention.cs (1)
316return GetIncrementalState(this, incrementalState, AttentionStateKey) ?? new Dictionary<string, torch.Tensor>();
NasBert\Modules\TransformerCell.cs (2)
65return (Operations[arch] as Layer)!.forward(x, new Dictionary<string, object> 130return Operation.forward(x, new Dictionary<string, object>
Roberta\QATrainer.cs (1)
443var mapping = new Dictionary<int, int>();
Utils\DefaultDictionary.cs (1)
27_dictionary = new Dictionary<TKey, TValue>();
Microsoft.ML.Transforms (19)
Dracula\CMCountTable.cs (4)
100Tables[i][j] = new Dictionary<int, float>(count); 232_tables[iLabel][iDepth] = new Dictionary<int, double>(); 249_tables[iLabel][iDepth] = new Dictionary<int, double>(); 271tables[iLabel][iDepth] = new Dictionary<int, float>();
Dracula\DictCountTable.cs (4)
77Tables[iTable] = new Dictionary<long, float>(); 176_tables[i] = new Dictionary<long, double>(); 187_tables[i] = new Dictionary<long, double>(); 204singleTables[iTable] = new Dictionary<long, float>();
Expression\KeyWordTable.cs (2)
37_mpnstrtidWord = new Dictionary<NormStr, KeyWordKind>(); 38_mpnstrtidPunc = new Dictionary<NormStr, TokKind>();
Expression\LambdaParser.cs (1)
243_mapTidStr = new Dictionary<TokKind, string>();
Expression\MethodGenerator.cs (1)
172_locals = new Dictionary<LocalKey, List<LocalBuilder>>();
MissingValueReplacingUtils.cs (1)
382_valueCounts = new Dictionary<TType, int>();
PermutationFeatureImportanceExtensions.cs (1)
708var output = new Dictionary<string, TResult>();
Text\StopWordsRemovingTransformer.cs (1)
364_colMapNewToOld = new Dictionary<int, int>();
Text\TextNormalizing.cs (1)
311var combinedDiacriticsMap = new Dictionary<char, char>();
Text\WordEmbeddingsExtractor.cs (3)
95private static readonly Dictionary<string, WeakReference<Model>> _vocab = new Dictionary<string, WeakReference<Model>>(); 605private static readonly Dictionary<WordEmbeddingEstimator.PretrainedModelKind, string> _modelsMetaData = new Dictionary<WordEmbeddingEstimator.PretrainedModelKind, string>() 619private static readonly Dictionary<WordEmbeddingEstimator.PretrainedModelKind, int> _linesToSkipInModels = new Dictionary<WordEmbeddingEstimator.PretrainedModelKind, int>()
Microsoft.ML.Vision (4)
DnnRetrainTransform.cs (2)
538_idvToTfMapping = new Dictionary<string, string>(); 851Outputs = new Dictionary<string, Tensor>();
ImageClassificationTrainer.cs (2)
101internal static IReadOnlyDictionary<Architecture, string> ModelFileName = new Dictionary<Architecture, string> 113new Dictionary<Architecture, Tuple<int, int>>
Microsoft.NET.Build.Containers (11)
AuthHandshakeMessageHandler.cs (2)
136Dictionary<string, string> keyValues = new(); 460Dictionary<string, string?> parameters = new()
DigestUtils.cs (1)
26private static readonly Dictionary<string, Regex> s_registeredAlgorithms = new(StringComparer.Ordinal)
ImageConfig.cs (2)
264Dictionary<string, string> labels = new(); 281Dictionary<string, string> envVars = new();
ImageIndexGenerator.cs (1)
113annotations = new Dictionary<string, string>
Layer.cs (1)
93var entryAttributes = new Dictionary<string, string>();
Registry\Registry.cs (2)
267var ridDict = new Dictionary<string, PlatformSpecificManifest>(); 281var ridDict = new Dictionary<string, PlatformSpecificOciManifest>();
Tasks\ComputeDotnetBaseImageAndTag.cs (1)
349var telemetryProperties = new Dictionary<string, string?>
Telemetry.cs (1)
64private IDictionary<string, string?> ContextProperties() => new Dictionary<string, string?>
Microsoft.NET.Build.Extensions.Tasks (7)
AddFacadesToReferences.cs (1)
23Dictionary<string, ITaskItem> facadeDict = new(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (2)
14private Dictionary<string, TConflictItem> _winningItemsByKey = new(); 18private Dictionary<string, List<TConflictItem>> _unresolvedConflictItems = new(StringComparer.Ordinal);
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverride.cs (1)
32OverriddenPackages = new Dictionary<string, OverrideVersion>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverrideResolver.cs (1)
38result = new Dictionary<string, PackageOverride>(_packageOverrideItems.Length, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\PackageRank.cs (1)
15packageRanks = new Dictionary<string, int>(numPackages, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
Microsoft.NET.Build.Tasks (66)
_generated\10\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\11\WorkloadSetJsonSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\19\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
AllowEmptyTelemetry.cs (1)
39IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ApplyImplicitVersions.cs (1)
67var result = new Dictionary<string, ImplicitPackageReferenceVersion>();
CreateWindowsSdkKnownFrameworkReferences.cs (1)
72var knownFrameworkReferencesByWindowsSdkVersion = new Dictionary<Version, List<(Version minimumNetVersion, TaskItem[] knownFrameworkReferences)>>();
DependencyContextBuilder.cs (8)
74_libraryDependencies = new Dictionary<string, List<LibraryDependency>>(StringComparer.OrdinalIgnoreCase); 139_dependencyLibraries = new Dictionary<string, DependencyLibrary>(); 140_libraryDependencies = new Dictionary<string, List<LibraryDependency>>(); 155_referenceLibraryNames = new Dictionary<ReferenceInfo, string>(); 184_compileReferences = new Dictionary<string, List<ReferenceInfo>>(StringComparer.OrdinalIgnoreCase); 195_resolvedNuGetFiles = new Dictionary<string, List<ResolvedFile>>(StringComparer.OrdinalIgnoreCase); 224_runtimePackAssets = new Dictionary<string, List<RuntimePackAssetInfo>>(); 328var referenceNameToRealName = new Dictionary<string, string>();
FileGroup.cs (1)
28private static readonly IDictionary<string, string> _emptyProperties = new Dictionary<string, string>();
FrameworkPackages\FrameworkPackages.cs (2)
53: this(framework, frameworkName) => this.Packages = new(frameworkPackages.Packages); 59public Dictionary<string, NuGetVersion> Packages { get; } = new Dictionary<string, NuGetVersion>(StringComparer.OrdinalIgnoreCase);
GenerateDepsFile.cs (1)
127filteredPackages = new Dictionary<PackageIdentity, string>();
GenerateSupportedTargetFrameworkAlias.cs (1)
53convertedTfms.Add(new TaskItem(targetFrameworkAlias, new Dictionary<string, string>() { { "DisplayName", displayName } }));
GetAssemblyAttributes.cs (2)
29AssemblyAttributes = FormatToAttributes(AssemblyAttributesNameByFieldInFileVersionInfo: new Dictionary<string, string> 46AssemblyAttributesNameByFieldInFileVersionInfo = new Dictionary<string, string>();
GetPackageDirectory.cs (1)
52var originalByAbsolute = new Dictionary<string, string>(PackageFolders.Length, StringComparer.Ordinal);
GetPackagesToPrune.cs (1)
181Dictionary<string, NuGetVersion> packagesToPrune = new();
LockFileLookup.cs (2)
19_packages = new Dictionary<KeyValuePair<string, NuGetVersion>, LockFileLibrary>(PackageCacheKeyComparer.Instance); 20_projects = new Dictionary<string, LockFileLibrary>(StringComparer.OrdinalIgnoreCase);
NugetContentAssetPreprocessor.cs (2)
13private Dictionary<string, string> _preprocessorValues = new(); 18_preprocessorValues = preprocessorValues ?? new Dictionary<string, string>();
ParseTargetManifests.cs (1)
28var runtimeStorePackages = new Dictionary<PackageIdentity, StringBuilder>();
ProduceContentAssets.cs (1)
122var preprocessorValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ProjectContext.cs (1)
126var filterLookup = new Dictionary<string, HashSet<PackageIdentity>>(StringComparer.OrdinalIgnoreCase);
ReferenceInfo.cs (1)
130Dictionary<string, ReferenceInfo> directReferences = new();
ResolveAppHosts.cs (1)
107var packagesToDownload = new Dictionary<string, string>();
ResolvePackageAssets.cs (4)
764_stringTable = new Dictionary<string, int>(InitialStringTableCapacity, StringComparer.Ordinal); 1535var result = new Dictionary<string, LogLevel>(); 1551var packageReverseDependencies = new Dictionary<string, HashSet<string>>(_compileTimeTarget.Libraries.Count, StringComparer.OrdinalIgnoreCase); 1997Dictionary<string, string> paths = new();
ResolvePackageDependencies.cs (1)
24private readonly Dictionary<string, string> _fileTypes = new(StringComparer.OrdinalIgnoreCase);
RuntimeOptions.cs (1)
24public IDictionary<string, JsonNode> RawOptions { get; } = new Dictionary<string, JsonNode>();
SingleProjectInfo.cs (1)
76Dictionary<string, SingleProjectInfo> projectReferences = new(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (4)
118_knownManifestIdsAndOrder = new Dictionary<string, int>(); 340var manifestIdsToManifests = new Dictionary<string, ReadableWorkloadManifest>(StringComparer.OrdinalIgnoreCase); 384Dictionary<string, string> directoriesWithManifests = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 600Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (7)
176workloads ?? new Dictionary<WorkloadId, BaseWorkloadDefinition>(), 177packs ?? new Dictionary<WorkloadPackId, WorkloadPack>(), 220var dependsOn = new Dictionary<string, FXVersion>(StringComparer.OrdinalIgnoreCase); 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 350var dictionary = new Dictionary<string, string>(); 376var dictionary = new Dictionary<string, TValue>();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (5)
17private readonly Dictionary<string, (WorkloadManifest manifest, WorkloadManifestInfo info)> _manifests = new(StringComparer.OrdinalIgnoreCase); 18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 167(redirects ??= new()).Add(redirect.Id, (redirect, manifest)); 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (2)
14private Dictionary<string, TConflictItem> _winningItemsByKey = new(); 18private Dictionary<string, List<TConflictItem>> _unresolvedConflictItems = new(StringComparer.Ordinal);
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverride.cs (1)
32OverriddenPackages = new Dictionary<string, OverrideVersion>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverrideResolver.cs (1)
38result = new Dictionary<string, PackageOverride>(_packageOverrideItems.Length, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\PackageRank.cs (1)
15packageRanks = new Dictionary<string, int>(numPackages, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\TaskBase.cs (1)
53(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
TypeLibraryDictionaryBuilder.cs (2)
34typeLibraryIdMap = new Dictionary<int, string> { { id, typeLibraries[0].ItemSpec } }; 37typeLibraryIdMap = new Dictionary<int, string>();
ValidateExecutableReferences.cs (1)
46Dictionary<string, string> projectAdditionalProperties = new(StringComparer.OrdinalIgnoreCase);
Microsoft.NET.HostModel (3)
Bundle\Bundler.cs (1)
493var relativePathToSpec = new Dictionary<string, (FileSpec Spec, FileType Type)>(StringComparer.Ordinal);
ComHost\ClsidMap.cs (1)
35Dictionary<string, ClsidEntry> clsidMap = new Dictionary<string, ClsidEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (15)
BootJsonData.cs (2)
65public ResourceHashesByNameDictionary runtime { get; set; } = new ResourceHashesByNameDictionary(); 70public ResourceHashesByNameDictionary assembly { get; set; } = new ResourceHashesByNameDictionary();
GenerateBlazorWebAssemblyBootJson50.cs (4)
105resourceData.lazyAssembly ??= new ResourceHashesByNameDictionary(); 110resourceData.satelliteResources ??= new Dictionary<string, ResourceHashesByNameDictionary>(StringComparer.OrdinalIgnoreCase); 115resourceList = new ResourceHashesByNameDictionary(); 121resourceData.pdb ??= new ResourceHashesByNameDictionary();
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (6)
335var deferred = new Dictionary<string, int>(OSPath.PathComparer); 469var result = new Dictionary<string, string>(StringComparer.Ordinal); 1711var dictionary = new Dictionary<string, StaticWebAsset>(candidateAssets.Length); 1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>(); 1975_additionalCustomMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1984var result = new Dictionary<string, string>(((ITaskItem)this).MetadataCount)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetGroup.cs (2)
67return new(); 70var result = new Dictionary<(string SourceId, string Name), StaticWebAssetGroup>(items.Length);
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (1)
247var dictionary = new Dictionary<string, string>();
Microsoft.NET.Sdk.Publish.Tasks (15)
AppSettingsTransform.cs (1)
44appSettingsModel.ConnectionStrings = new Dictionary<string, string>();
MsDeploy\CommonUtility.cs (7)
274s_wellKnownNamesDict = new Dictionary<string, string?>(wellKnownNames.GetLength(0), StringComparer.OrdinalIgnoreCase); 299s_wellKnownNamesMsdeployDict = new Dictionary<string, string?>(wellKnownNames.GetLength(0), StringComparer.OrdinalIgnoreCase); 1126Dictionary<string, string> nameValueDictionary = new(parameters.Count, StringComparer.OrdinalIgnoreCase); 1177Dictionary<string, string> nameValueDictionary = new(parameters.Count, StringComparer.OrdinalIgnoreCase); 1178Dictionary<string, string?> entryIdentityDictionary = new(parameters.Count); 1420Dictionary<string, bool> FoundDictionary = new(optimizedValueList.Count, StringComparer.OrdinalIgnoreCase); 1800Dictionary<string, string> versionsList = new();
MsDeploy\VsMSDeployObject.cs (1)
344private Dictionary<string, string?> m_NameValueDictionary = new(10, StringComparer.OrdinalIgnoreCase);
Tasks\MsDeploy\CreateParameterFile.cs (2)
106= new(parameters.GetLength(0), StringComparer.OrdinalIgnoreCase); 245= new(parameters.GetLength(0));
Tasks\MsDeploy\MSDeploy.cs (3)
678Dictionary<string, string> lookupDictionary = new(items.Count); 754Dictionary<string, string> lookupDictionary = new(items.Count); 755Dictionary<string, string> nameValueDictionary = new(items.Count, StringComparer.OrdinalIgnoreCase);
Tasks\MsDeploy\VsMsdeploy.cs (1)
519ExtendedMetadata = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase)
Microsoft.NET.Sdk.Razor.Tasks (2)
ReferenceResolver.cs (2)
23_classifications = new Dictionary<AssemblyItem, Classification>(); 25Lookup = new Dictionary<string, AssemblyItem>(StringComparer.Ordinal);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (57)
_generated\22\StaticWebAssetsJsonSerializerContext.DictionaryStringStaticWebAssetNode.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>(),
_generated\23\StaticWebAssetsJsonSerializerContext.DictionaryStringStaticWebAsset.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>(),
_generated\36\DefineStaticWebAssetsSerializerContext.DictionaryStringCopyCandidate.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>(),
_generated\37\DefineStaticWebAssetsSerializerContext.DictionaryStringStaticWebAsset.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>(),
_generated\46\ImportMapSerializerContext.DictionaryStringDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>(),
_generated\47\ImportMapSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
ApplyCompressionNegotiation.cs (2)
36var compressionHeadersByEncoding = new Dictionary<string, StaticWebAssetEndpointResponseHeader[]>(2); 197var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(endpointsByAsset.Count);
CollectStaticWebAssetsToCopy.cs (1)
74copyToOutputFolder.Add(new TaskItem(source, new Dictionary<string, string>
Compression\ResolveCompressedAssets.cs (1)
202var existingCompressionFormatsByAssetItemSpec = new Dictionary<string, HashSet<string>>();
Data\ContentTypeProvider.cs (1)
14new()
Data\StaticWebAsset.cs (6)
335var deferred = new Dictionary<string, int>(OSPath.PathComparer); 469var result = new Dictionary<string, string>(StringComparer.Ordinal); 1711var dictionary = new Dictionary<string, StaticWebAsset>(candidateAssets.Length); 1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>(); 1975_additionalCustomMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1984var result = new Dictionary<string, string>(((ITaskItem)this).MetadataCount)
Data\StaticWebAssetEndpoint.cs (3)
179var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(candidateEndpoints.Length / 2, OSPath.PathComparer); 520_additionalCustomMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 529var result = new Dictionary<string, string>(((ITaskItem)this).MetadataCount)
Data\StaticWebAssetEndpointGroup.cs (1)
23var groups = new Dictionary<string, StaticWebAssetEndpointGroup>(StringComparer.Ordinal);
Data\StaticWebAssetGroup.cs (2)
67return new(); 70var result = new Dictionary<(string SourceId, string Name), StaticWebAssetGroup>(items.Length);
Data\StaticWebAssetPathPattern.cs (1)
247var dictionary = new Dictionary<string, string>();
DefineStaticWebAssetEndpoints.cs (1)
78Dictionary<string, HashSet<string>> existingEndpointsByAssetFile = new(ExistingEndpoints.Length, OSPath.PathComparer);
DefineStaticWebAssets.Cache.cs (3)
86var inputHashes = new Dictionary<string, ITaskItem>(candidateAssets.Length); 240var remainingCandidates = new Dictionary<string, ITaskItem>(); 310internal ITaskItem ToTaskItem() => new TaskItem(Identity, new Dictionary<string, string> { ["TargetPath"] = TargetPath });
DefineStaticWebAssets.cs (3)
122var assetsByRelativePath = new Dictionary<string, (ITaskItem First, ITaskItem Second)>(CandidateAssets.Length); 793var result = new Dictionary<string, List<GroupDefinition>>(StringComparer.Ordinal); 812var groupValues = new Dictionary<string, string>(StringComparer.Ordinal);
FilterStaticWebAssetEndpoints.cs (1)
41var endpointFoundMatchingAsset = new Dictionary<string, StaticWebAsset>();
GeneratePackageAssetsManifestFile.cs (2)
92var identityToPackagePath = new Dictionary<string, string>(parsedAssets.Length, Utils.OSPath.PathComparer); 111var assets = new Dictionary<string, StaticWebAsset>(OSPath.PathComparer);
GenerateStaticWebAssetsDevelopmentManifest.cs (7)
178var contentRootIndex = new Dictionary<string, int>(); 198currentNode.Children ??= new Dictionary<string, StaticWebAssetNode>(StringComparer.Ordinal); 207currentNode.Children ??= new Dictionary<string, StaticWebAssetNode>(StringComparer.Ordinal); 216Children = new Dictionary<string, StaticWebAssetNode>(StringComparer.Ordinal) 271currentNode.Children ??= new Dictionary<string, StaticWebAssetNode>(StringComparer.Ordinal); 289currentNode.Children ??= new Dictionary<string, StaticWebAssetNode>(StringComparer.Ordinal); 298Children = new Dictionary<string, StaticWebAssetNode>(StringComparer.Ordinal)
GenerateStaticWebAssetsManifest.cs (1)
166var result = new Dictionary<string, (StaticWebAsset First, StaticWebAsset Second, List<StaticWebAsset> Other)>(StringComparer.OrdinalIgnoreCase);
JSModules\ApplyJsModules.cs (1)
32var jsModulesByRazorItem = new Dictionary<string, IList<ITaskItem>>();
Legacy\ValidateStaticWebAssetsUniquePaths.cs (1)
24var assetsByWebRootPaths = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
MergeConfigurationProperties.cs (1)
46var entry = new TaskItem(configuration.ItemSpec, new Dictionary<string, string>
OverrideHtmlAssetPlaceholders.cs (4)
235Dictionary<string, string>? imports = new(); 236Dictionary<string, Dictionary<string, string>>? scopes = new(); 237Dictionary<string, string>? integrity = new(); 265var mappings = new Dictionary<string, ResourceAsset>(StringComparer.OrdinalIgnoreCase);
ReadPackageAssetsManifest.cs (1)
110var frameworkPaths = new Dictionary<string, string>(OSPath.PathComparer);
ScopedCss\ApplyCssScopes.cs (1)
35var scopedCssByRazorItem = new Dictionary<string, IList<ITaskItem>>();
UpdateExternallyDefinedStaticWebAssets.cs (1)
71var assetMapping = new Dictionary<string, (string NewIdentity, string OldBasePath)>(OSPath.PathComparer);
UpdatePackageStaticWebAssets.cs (2)
46var assetMapping = new Dictionary<string, (string NewIdentity, string OldBasePath)>(OSPath.PathComparer); 94var endpointsByRoute = new Dictionary<string, List<(StaticWebAssetEndpoint Parsed, int OriginalIndex)>>(StringComparer.Ordinal);
Utils\Globbing\StaticWebAssetGlobMatcherBuilder.cs (2)
105current.LiteralsDictionary ??= new(StringComparer.OrdinalIgnoreCase); 182current.ExtensionsDictionary ??= new(StringComparer.OrdinalIgnoreCase);
Utils\HashingUtils.cs (1)
59var hashSet = new Dictionary<string, ITaskItem>(candidateAssets.Length);
Microsoft.NET.Sdk.WorkloadManifestReader (21)
_generated\0\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\1\WorkloadSetJsonSerializerContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\9\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
SdkDirectoryWorkloadManifestProvider.cs (4)
118_knownManifestIdsAndOrder = new Dictionary<string, int>(); 340var manifestIdsToManifests = new Dictionary<string, ReadableWorkloadManifest>(StringComparer.OrdinalIgnoreCase); 384Dictionary<string, string> directoriesWithManifests = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 600Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>();
TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadManifestReader.cs (7)
176workloads ?? new Dictionary<WorkloadId, BaseWorkloadDefinition>(), 177packs ?? new Dictionary<WorkloadPackId, WorkloadPack>(), 220var dependsOn = new Dictionary<string, FXVersion>(StringComparer.OrdinalIgnoreCase); 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 350var dictionary = new Dictionary<string, string>(); 376var dictionary = new Dictionary<string, TValue>();
WorkloadResolver.cs (5)
17private readonly Dictionary<string, (WorkloadManifest manifest, WorkloadManifestInfo info)> _manifests = new(StringComparer.OrdinalIgnoreCase); 18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 167(redirects ??= new()).Add(redirect.Id, (redirect, manifest)); 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadSet.cs (1)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new();
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (3)
CachingWorkloadResolver.cs (3)
157var itemsToAdd = new Dictionary<string, SdkResultItem>(); 160metadata: new Dictionary<string, string>() 165Dictionary<string, string> propertiesToAdd = new();
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
126_internCallCountsByString = new Dictionary<string, int>();
Microsoft.Private.Windows.Core (2)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (1)
35s_knownTypes ??= new(60, TypeNameComparer.FullNameMatch)
System\Private\Windows\Ole\DataStore.cs (1)
21private readonly Dictionary<string, DataStoreEntry> _mappedData = new(BackCompatibleStringComparer.Default);
Microsoft.TemplateEngine.Abstractions (2)
Installer\InstallRequest.cs (1)
21Details = details ?? new Dictionary<string, string>();
Parameters\ParameterDefinitionSet.cs (1)
23_parameters = parameters ?? new Dictionary<string, ITemplateParameter>();
Microsoft.TemplateEngine.Cli (35)
Alias\AliasModel.cs (2)
11: this(new Dictionary<string, IReadOnlyList<string>>()) 17CommandAliases = new Dictionary<string, IReadOnlyList<string>>(commandAliases.ToDictionary(x => x.Key, x => x.Value), StringComparer.OrdinalIgnoreCase);
Alias\AliasRegistry.cs (3)
29return new Dictionary<string, IReadOnlyList<string>>(_aliases!.CommandAliases, StringComparer.OrdinalIgnoreCase); 59Dictionary<string, IReadOnlyList<string>> aliasesWithCandidate = new(_aliases!.CommandAliases); 172Dictionary<string, IReadOnlyList<string>> result = new(comparer ?? StringComparer.Ordinal);
ChoiceTemplateParameter.cs (1)
19private Dictionary<string, ParameterChoice> _choices = new(StringComparer.OrdinalIgnoreCase);
CliEnvironment.cs (1)
15Dictionary<string, string> variables = new(StringComparer.OrdinalIgnoreCase)
CliTemplateInfo.cs (1)
95Dictionary<string, CliTemplateParameter> parameters = new();
Commands\BaseCommand.cs (1)
29protected static readonly Dictionary<string, Func<Func<ParseResult, ITemplateEngineHost>, Command, Command>> SubcommandFactories = new()
Commands\BaseFilterableArgs.cs (1)
49Dictionary<FilterOptionDefinition, OptionResult> filterValues = new();
Commands\create\CombinedChoiceTemplateParameter.cs (1)
15private Dictionary<string, ParameterChoice> _combinedParameters = new(StringComparer.OrdinalIgnoreCase);
Commands\create\InvalidTemplateOptionResult.cs (1)
131Dictionary<string, ParameterChoice> validChoices = new();
Commands\create\TemplateCommand.cs (1)
26private Dictionary<string, TemplateOption> _templateSpecificOptions = new();
Commands\create\TemplateCommandArgs.cs (1)
12private Dictionary<string, OptionResult> _templateOptions = new();
Commands\FilterOptionDefinition.cs (1)
56public static readonly IReadOnlyDictionary<string, FilterOptionDefinition> AllDefinitions = new Dictionary<string, FilterOptionDefinition>()
HostSpecificTemplateData.cs (4)
20var symbolsInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>(); 46var symbolProperties = new Dictionary<string, string>(); 145Dictionary<string, string> map = new(); 163Dictionary<string, string> map = new();
NuGet\NugetApiManager.cs (1)
28_sourceRepositories = new Dictionary<PackageSource, SourceRepository>();
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\Tables\WideTable.cs (1)
18_lookup = new Dictionary<Unicode, uint[,]>();
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\Tables\ZeroTable.cs (1)
18_lookup = new Dictionary<Unicode, uint[,]>();
TabularOutput\TabularOutput.cs (2)
78Dictionary<int, int> columnWidthLookup = new(); 364private readonly IDictionary<TextAlign, Func<string, int, StringBuilder, StringBuilder>> _alignRules = new Dictionary<TextAlign, Func<string, int, StringBuilder, StringBuilder>>()
TemplateInvoker.cs (1)
86new Dictionary<string, string?>
TemplatePackageCoordinator.cs (3)
190TelemetryEventEntry.TrackEvent(TelemetryConstants.InstallEvent, new Dictionary<string, string?> { { TelemetryConstants.ToInstallCount, args.TemplatePackages.Count.ToString() } }); 192var details = new Dictionary<string, string>(); 664var packagesToUninstall = new Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>();
TemplatePackageDisplay.cs (1)
24private readonly IReadOnlyDictionary<int, string> _vulnerabilitySeverityToColorMap = new Dictionary<int, string>
TemplateResolution\TemplateGroupMatchInfo.cs (1)
266Dictionary<string, ParameterChoice> validChoices = new();
TemplateResolution\TemplateResolutionResult.cs (1)
263Dictionary<string, string?> parameterList = new();
TemplateSearch\CliHostSearchCacheData.cs (1)
35Dictionary<string, HostSpecificTemplateData> cliData = new();
TemplateSearch\CliSearchFiltersFactory.cs (2)
19Dictionary<string, string?> filterData = new(); 100Dictionary<string, HostSpecificTemplateData> hostSpecificData = new();
TemplateSearch\CliTemplateSearchCoordinatorFactory.cs (1)
14Dictionary<string, Func<object, object>> dataReaders = new()
Microsoft.TemplateEngine.Core (8)
Expressions\OperatorSetBuilder.cs (2)
11private readonly Dictionary<Operators, Func<IEvaluable, IEvaluable>> _operatorScopeLookupFactory = new Dictionary<Operators, Func<IEvaluable, IEvaluable>>(); 12private readonly Dictionary<TToken, Operators> _tokensToOperatorsMap = new Dictionary<TToken, Operators>();
Matching\Trie.cs (1)
11NextNodes = new Dictionary<byte, TrieNode<T>>();
Operations\PhasedOperation.cs (1)
25Dictionary<ITokenConfig, int> tokenMap = new Dictionary<ITokenConfig, int>();
Util\EngineConfig.cs (1)
29Flags = new Dictionary<string, bool>();
VariableCollection.cs (3)
22: this(parent, new Dictionary<string, object>()) 37_values = values ?? new Dictionary<string, object>(); 98public static VariableCollection Root() => Root(new Dictionary<string, object>());
Microsoft.TemplateEngine.Edge (45)
_generated\11\SettingsStoreJsonSerializerContext.DictionaryStringHashSetGuid.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>(),
_generated\12\SettingsStoreJsonSerializerContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\2\GlobalSettingsJsonSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\31\TemplateCacheJsonSerializerContext.DictionaryStringDateTime.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.DateTime>(),
_generated\32\TemplateCacheJsonSerializerContext.IReadOnlyDictionaryStringIBaselineInfo.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.TemplateEngine.Abstractions.IBaselineInfo>(),
_generated\33\TemplateCacheJsonSerializerContext.IReadOnlyDictionaryStringParameterChoice.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.TemplateEngine.Abstractions.ParameterChoice>(),
_generated\34\TemplateCacheJsonSerializerContext.IReadOnlyDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (2)
16private readonly Dictionary<Guid, IInstaller> _installersByGuid = new Dictionary<Guid, IInstaller>(); 17private readonly Dictionary<string, IInstaller> _installersByName = new Dictionary<string, IInstaller>();
Constraints\OSConstraint.cs (1)
12private static readonly Dictionary<string, OSPlatform> PlatformMap = new Dictionary<string, OSPlatform>(StringComparer.OrdinalIgnoreCase)
DefaultEnvironment.cs (1)
56Dictionary<string, string> variables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
DefaultTemplateEngineHost.cs (1)
28_hostDefaults = defaults ?? new Dictionary<string, string>();
Installers\Folder\FolderManagedTemplatePackage.cs (1)
13private static readonly Dictionary<string, string> EmptyDictionary = new Dictionary<string, string>();
Installers\NuGet\NuGetInstaller.cs (1)
382Dictionary<string, string> installationDetails = new Dictionary<string, string>();
Installers\NuGet\NuGetManagedTemplatePackage.cs (2)
46Details = new Dictionary<string, string> 170var details = new Dictionary<string, string>();
Mount\Archive\ZipFileMountPoint.cs (1)
43Dictionary<string, IFileSystemInfo> universe = new Dictionary<string, IFileSystemInfo>
Settings\ComponentManager.cs (4)
18private readonly Dictionary<Guid, string> _componentIdToAssemblyQualifiedTypeName = new Dictionary<Guid, string>(); 40_componentIdsByType = new Dictionary<Type, HashSet<Guid>>(); 65internal Dictionary<Type, Dictionary<Guid, object>> ComponentCache { get; } = new Dictionary<Type, Dictionary<Guid, object>>(); 282typeCache = new Dictionary<Guid, object>();
Settings\SettingsStore.cs (2)
77internal Dictionary<string, string> ComponentGuidToAssemblyQualifiedName { get; } = new(); 83internal Dictionary<string, HashSet<Guid>> ComponentTypeToGuidList { get; } = new();
Settings\TemplateCache.cs (3)
28var templateDeduplicationDictionary = new Dictionary<string, IList<(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint MountPoint)>>(); 84MountPointsInfo = new Dictionary<string, DateTime>(); 93var mountPointInfo = new Dictionary<string, DateTime>();
Settings\TemplateInfo.cs (7)
170Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 173tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 177IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>(); 194Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>(); 226public IReadOnlyDictionary<string, IBaselineInfo> BaselineInfo { get; private set; } = new Dictionary<string, IBaselineInfo>(); 229public IReadOnlyDictionary<string, string> TagsCollection { get; private set; } = new Dictionary<string, string>(); 266localizedChoices = new Dictionary<string, ParameterChoice>();
Settings\TemplateInfoReader.cs (3)
56Dictionary<string, IBaselineInfo> baselineInfo = new Dictionary<string, IBaselineInfo>(); 96Dictionary<string, string> tags = new Dictionary<string, string>(); 165choices = new Dictionary<string, ParameterChoice>(StringComparer.OrdinalIgnoreCase);
Settings\TemplatePackageManager.cs (2)
254_cachedSources = new Dictionary<ITemplatePackageProvider, Task<IReadOnlyList<ITemplatePackage>>>(); 316var mountPoints = new Dictionary<string, DateTime>();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
264var propertyIndexes = new Dictionary<string, int>(StringComparer.Ordinal); 296Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal); 317Dictionary<string, JsonNode> result = new(comparer ?? StringComparer.Ordinal); 336Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal);
Template\ParameterSetBuilder.cs (1)
215Dictionary<EvalData, HashSet<EvalData>> parametersDependencies = new();
TemplateConstraintManager.cs (1)
17private readonly Dictionary<string, Task<ITemplateConstraint>> _templateConstrains = new Dictionary<string, Task<ITemplateConstraint>>();
VirtualEnvironment.cs (1)
27Dictionary<string, string> variables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (49)
ConfigModel\ExtendedFileSource.cs (1)
13internal static readonly Dictionary<string, string> RenameDefaults = new Dictionary<string, string>(StringComparer.Ordinal);
ConfigModel\GeneratedSymbol.cs (1)
63public IReadOnlyDictionary<string, string> Parameters { get; internal init; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ConfigModel\ParameterSymbol.cs (2)
36var choicesAndDescriptions = new Dictionary<string, ParameterChoice>(); 162Choices = new Dictionary<string, ParameterChoice>()
ConfigModel\PostActionModel.cs (3)
22: this(new Dictionary<string, string>(), new List<ManualInstructionModel>()) { } 60public IReadOnlyDictionary<string, string> Args { get; internal init; } = new Dictionary<string, string>(); 120Dictionary<string, string> args = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ConfigModel\TemplateConfigModel.cs (8)
28private IReadOnlyDictionary<string, string> _tags = new Dictionary<string, string>(); 29private Dictionary<string, BaseSymbol> _symbols = new(); 94Dictionary<string, BaseSymbol> symbols = new(StringComparer.Ordinal); 299public IReadOnlyDictionary<string, IBaselineInfo> BaselineInfo { get; internal init; } = new Dictionary<string, IBaselineInfo>(); 487Dictionary<string, Parameter> parameters = new(); 525Dictionary<string, IValueForm> formMap = new(StringComparer.Ordinal); 556Dictionary<string, IBaselineInfo> allBaselines = new(); 565IReadOnlyDictionary<string, string>? defaultOverrides = obj.Get<JsonObject>(nameof(Utils.BaselineInfo.DefaultOverrides))?.ToStringDictionary() ?? new Dictionary<string, string>();
FileRenameGenerator.cs (1)
47Dictionary<string, string> allRenames = new(StringComparer.Ordinal);
GlobalRunSpec.cs (3)
27Dictionary<string, IOperationConfig> operationConfigLookup = new Dictionary<string, IOperationConfig>(); 74internal IReadOnlyDictionary<string, string> Rename { get; private set; } = new Dictionary<string, string>(); 87Rename = source.Renames ?? new Dictionary<string, string>(StringComparer.Ordinal);
Localization\PostActionLocalizationModel.cs (1)
17public IReadOnlyDictionary<string, string> Instructions { get; set; } = new Dictionary<string, string>();
LocalizationModelDeserializer.cs (4)
51var results = new Dictionary<string, IParameterSymbolLocalizationModel>(); 100var results = new Dictionary<string, ParameterChoiceLocalizationModel>(); 124var results = new Dictionary<string, PostActionLocalizationModel>(); 167var results = new Dictionary<string, string>();
ParameterBasedVariableCollection.cs (2)
33new(null, new Dictionary<string, object>(), parameterSetData); 39Dictionary<string, ParameterBasedVariableCollection> collections = new Dictionary<string, ParameterBasedVariableCollection>();
PostAction.cs (2)
30public IReadOnlyDictionary<string, string> Args { get; } = new Dictionary<string, string>(); 83Dictionary<string, string> processedArgs = new();
RunnableProjectConfig.cs (6)
42private readonly Dictionary<Guid, string> _guidToGuidPrefixMap = new(); 177? new Dictionary<CultureInfo, TemplateLocalizationInfo>() 178: new Dictionary<CultureInfo, TemplateLocalizationInfo>() 185? new Dictionary<string, IFile>() 186: new Dictionary<string, IFile>() 590Dictionary<string, string> fileRenamesFromSource = new Dictionary<string, string>(StringComparer.Ordinal);
RunnableProjectConfig.ITemplate.cs (4)
91Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 94tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 98IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>(); 110Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
RunnableProjectGenerator.cs (4)
507Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 510tags[tag.Key] = new CacheTag(null, null, new Dictionary<string, ParameterChoice> { { tag.Value, new ParameterChoice(null, null) } }, tag.Value); 514IReadOnlyDictionary<string, ParameterChoice> choices = parameter.Choices ?? new Dictionary<string, ParameterChoice>(); 526Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
ScannedTemplateInfo.cs (2)
50Dictionary<string, IFile> allHostFilesForTemplate = new(); 63Dictionary<CultureInfo, TemplateLocalizationInfo> localizations = new();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
264var propertyIndexes = new Dictionary<string, int>(StringComparer.Ordinal); 296Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal); 317Dictionary<string, JsonNode> result = new(comparer ?? StringComparer.Ordinal); 336Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal);
VariableConfig.cs (1)
32new Dictionary<string, string>
Microsoft.TemplateEngine.Utils (13)
DefaultTemplateEngineHost.cs (2)
43_hostDefaults = defaults ?? new Dictionary<string, string>(); 47_diagnosticLoggers = new Dictionary<string, Action<string, string[]>>();
DictionaryExtensions.cs (1)
37Dictionary<string, T> cloneDict = new(comparer);
DirectedGraph.cs (1)
8private static readonly DirectedGraph<T> Empty = new(new Dictionary<T, HashSet<T>>());
FileSystemInfoExtensions.cs (1)
77Dictionary<string, int> sourceSegments = new Dictionary<string, int> { { relTo.FullPath, 0 } };
InMemoryFileSystem.cs (2)
759Directories = new Dictionary<string, FileSystemDirectory>(); 760Files = new Dictionary<string, FileSystemFile>();
ListExtensions.cs (1)
14Dictionary<ValueWrapper<TKey?>, List<TElement>> groups = new Dictionary<ValueWrapper<TKey?>, List<TElement>>(new ValueWrapperComparer<TKey?>(comparer));
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
264var propertyIndexes = new Dictionary<string, int>(StringComparer.Ordinal); 296Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal); 317Dictionary<string, JsonNode> result = new(comparer ?? StringComparer.Ordinal); 336Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal);
TemplateParameter.cs (1)
40Choices = choices ?? new Dictionary<string, ParameterChoice>();
Microsoft.TemplateSearch.Common (34)
Abstractions\TemplatePackageSearchData.cs (1)
35AdditionalData = data ?? new Dictionary<string, object>();
Abstractions\TemplateSearchData.cs (1)
26AdditionalData = data ?? new Dictionary<string, object>();
Providers\NuGetMetadataSearchProvider.cs (1)
26private readonly IReadOnlyDictionary<string, Func<object, object>> _additionalDataReaders = new Dictionary<string, Func<object, object>>();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
264var propertyIndexes = new Dictionary<string, int>(StringComparer.Ordinal); 296Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal); 317Dictionary<string, JsonNode> result = new(comparer ?? StringComparer.Ordinal); 336Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal);
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (18)
48TagsCollection = templateInfo.TagsCollection ?? new Dictionary<string, string>(); 49BaselineInfo = templateInfo.BaselineInfo ?? new Dictionary<string, IBaselineInfo>(); 118public IReadOnlyDictionary<string, ICacheTag> Tags { get; private set; } = new Dictionary<string, ICacheTag>(); 122public IReadOnlyDictionary<string, ICacheParameter> CacheParameters { get; private set; } = new Dictionary<string, ICacheParameter>(); 135public IReadOnlyDictionary<string, IBaselineInfo> BaselineInfo { get; private set; } = new Dictionary<string, IBaselineInfo>(); 141public IReadOnlyDictionary<string, string> TagsCollection { get; private set; } = new Dictionary<string, string>(); 179Dictionary<string, IBaselineInfo> baselineInfo = new Dictionary<string, IBaselineInfo>(); 187DefaultOverrides = item.Value?.ToStringDictionary(propertyName: nameof(IBaselineInfo.DefaultOverrides)) ?? new Dictionary<string, string>() 225Dictionary<string, string> tags = new Dictionary<string, string>(); 238Dictionary<string, ICacheTag> legacyTags = new Dictionary<string, ICacheTag>(); 246choicesAndDescriptions: new Dictionary<string, string>() 258Dictionary<string, ParameterChoice> choicesAndDescriptions = new Dictionary<string, ParameterChoice>(StringComparer.OrdinalIgnoreCase); 259Dictionary<string, string> legacyChoices = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 284Dictionary<string, ICacheParameter> legacyParams = new Dictionary<string, ICacheParameter>(); 312public IReadOnlyDictionary<string, string> DefaultOverrides { get; set; } = new Dictionary<string, string>(); 334Choices = new Dictionary<string, ParameterChoice>(); 363Dictionary<string, ParameterChoice> choices = new Dictionary<string, ParameterChoice>(StringComparer.OrdinalIgnoreCase); 464public IReadOnlyDictionary<string, ParameterChoice> Choices => new Dictionary<string, ParameterChoice>();
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (4)
31Dictionary<string, object> data = new Dictionary<string, object>(); 156Dictionary<string, PackToTemplateEntry> workingPackToTemplateMap = new(); 212additionalData = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 225Dictionary<string, object> workingAdditionalData = new(StringComparer.OrdinalIgnoreCase);
TemplateSearchCache\TemplatePackageSearchData.Json.cs (1)
64: new Dictionary<string, object>();
TemplateSearchCache\TemplateSearchCache.Json.cs (1)
78Dictionary<string, object> additionalData = new(StringComparer.OrdinalIgnoreCase);
TemplateSearchCache\TemplateSearchData.Json.cs (1)
36: new Dictionary<string, object>();
TemplateSearchCoordinator.cs (2)
23IReadOnlyDictionary<string, Func<object, object>> additionalDataReaders1 = additionalDataReaders ?? new Dictionary<string, Func<object, object>>(); 24Dictionary<string, ITemplateSearchProvider> configuredProviders = new Dictionary<string, ITemplateSearchProvider>();
Microsoft.TestPlatform.Build (3)
Tasks\VSTestTask2.cs (3)
134ExtendedMetadata = new Dictionary<string, string?> 177ExtendedMetadata = new Dictionary<string, string?> 203ExtendedMetadata = new Dictionary<string, string?>
Microsoft.TestPlatform.CommunicationUtilities (14)
_generated\63\TestPlatformJsonContext.DictionaryStringHashSetString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>(),
_generated\64\TestPlatformJsonContext.DictionaryStringIEnumerableString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>(),
_generated\65\TestPlatformJsonContext.DictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\66\TestPlatformJsonContext.DictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
_generated\71\TestPlatformJsonContext.IDictionaryTestOutcomeInt64.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome, long>(),
_generated\72\TestPlatformJsonContext.IDictionaryStringObject.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
_generated\73\TestPlatformJsonContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
DataCollectionRequestHandler.cs (1)
321var properties = new Dictionary<string, object?>
Json\Jsonite\Jsonite.cs (1)
1005writers = new Dictionary<Type, Action<object>>()
Messages\DiscoveryCompletePayload.cs (1)
58public Dictionary<string, HashSet<string>>? DiscoveredExtensions { get; set; } = new();
Serialization\AfterTestRunEndResultConverter.cs (1)
36var metrics = DeserializeProperty<IDictionary<string, object>>(root, "Metrics", options) ?? new Dictionary<string, object>();
Serialization\ObjectConverter.cs (2)
53var dict = new Dictionary<string, object?>(); 108var dict = new Dictionary<string, object>();
Serialization\TestRunStatisticsConverter.cs (1)
34stats = new Dictionary<TestOutcome, long>();
Microsoft.TestPlatform.CoreUtilities (2)
FeatureFlag\FeatureFlag.cs (1)
27private static readonly IReadOnlyDictionary<string, bool> DefaultValues = new Dictionary<string, bool>
Helpers\CommandLineArgumentsHelper.cs (1)
21var argsDictionary = new Dictionary<string, string?>();
Microsoft.TestPlatform.CrossPlatEngine (31)
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (1)
36IDictionary<string, Tuple<string, IDataCollectorAttachmentProcessor>> datacollectorsAttachmentsProcessors = new Dictionary<string, Tuple<string, IDataCollectorAttachmentProcessor>>();
Client\LoggerNameValueConfigurationManager.cs (1)
29public Dictionary<string, string?> NameValuePairs { get; } = new();
Client\Parallel\DiscoveryDataAggregator.cs (1)
46public Dictionary<string, HashSet<string>> DiscoveredExtensions { get; private set; } = new();
Client\Parallel\ParallelRunDataAggregator.cs (2)
40DiscoveredExtensions = new Dictionary<string, HashSet<string>>(); 75var testOutcomeMap = new Dictionary<TestOutcome, long>();
Client\ProxyExecutionManagerWithDataCollection.cs (2)
58_dataCollectionEnvironmentVariables = new Dictionary<string, string?>(); 163testProcessStartInfo.EnvironmentVariables ??= new Dictionary<string, string?>();
Client\ProxyOperationManagerWithDataCollection.cs (1)
49_dataCollectionEnvironmentVariables = new Dictionary<string, string?>();
Client\TestLoggerManager.cs (2)
686? new Dictionary<string, string?>(parameters, StringComparer.OrdinalIgnoreCase) 687: new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
DataCollection\InProcDataCollectionExtensionManager.cs (2)
60InProcDataCollectors = new Dictionary<string, IInProcDataCollector>(); 264var properties = new Dictionary<string, object?>
DataCollection\InProcDataCollectionSink.cs (3)
21_testCaseDataCollectionDataMap = new Dictionary<Guid, TestCaseDataCollectionData>(); 45return new Dictionary<string, string>(); 68CollectionData = new Dictionary<string, string>();
DataCollection\ProxyDataCollectionManager.cs (1)
191IDictionary<string, string?> environmentVariables = new Dictionary<string, string?>();
DataCollection\ProxyOutOfProcDataCollectionManager.cs (2)
40_attachmentsCache = new Dictionary<Guid, Collection<AttachmentSet>>(); 48_attachmentsCache = new Dictionary<Guid, Collection<AttachmentSet>>();
Discovery\DiscovererEnumerator.cs (2)
372var result = new Dictionary<LazyExtension<ITestDiscoverer, ITestDiscovererCapabilities>, IEnumerable<string>>(); 457var assemblyTypeToSoucesMap = new Dictionary<AssemblyType, IList<string>>()
Discovery\DiscoveryManager.cs (1)
110var verifiedExtensionSourceMap = new Dictionary<string, IEnumerable<string>>();
Execution\BaseRunTests.cs (2)
367var executorCache = new Dictionary<string, LazyExtension<ITestExecutor, ITestExecutorCapabilities>>(); 619var runStats = TestRunCache?.TestRunStatistics ?? new TestRunStatistics(new Dictionary<TestOutcome, long>());
Execution\RunTestsWithSources.cs (3)
136var result = new Dictionary<Tuple<Uri, string>, IEnumerable<string>>(); 138var verifiedExtensionSourceMap = new Dictionary<string, IEnumerable<string>>(); 223var properties = new Dictionary<string, object?>
Execution\RunTestsWithTests.cs (2)
106var properties = new Dictionary<string, object?> 119var result = new Dictionary<Tuple<Uri, string>, List<TestCase>>();
Execution\TestRunCache.cs (3)
97_runStats = new Dictionary<TestOutcome, long>(); 159var stats = new TestRunStatistics(new Dictionary<TestOutcome, long>(_runStats)); 167public IDictionary<string, int> AdapterTelemetry { get; set; } = new Dictionary<string, int>();
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
522testObjectDictionaryCopy = new Dictionary<Guid, BlameTestObject>(_testObjectDictionary);
Microsoft.TestPlatform.Filter.Source (1)
FastFilter.cs (1)
208private readonly Dictionary<string, ISet<string>> _filterDictionaryBuilder = new Dictionary<string, ISet<string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.TestPlatform.PlatformAbstractions (3)
common\Tracing\PlatformEqtTrace.cs (3)
40new() 54new() 69new()
Microsoft.TestPlatform.TestHostRuntimeProvider (7)
Hosting\DefaultTestHostManager.cs (5)
117public IDictionary<string, string> Properties => new Dictionary<string, string>(); 241EnvironmentVariables = environmentVariables ?? new Dictionary<string, string?>(), 430Dictionary<string, string> selectedExtensions = new(); 431Dictionary<string, Version?> highestFileVersions = new(); 432Dictionary<string, Version> conflictingExtensions = new();
Hosting\DotnetTestHostManager.cs (2)
243startInfo.EnvironmentVariables = environmentVariables ?? new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 829startInfo.EnvironmentVariables ??= new Dictionary<string, string?>();
Microsoft.TestPlatform.Utilities (2)
InferRunSettingsHelper.cs (2)
340legacySettingsTelemetry = new Dictionary<string, string>(); 444environmentVariables = new Dictionary<string, string?>();
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
ConsoleParameters.cs (1)
46public Dictionary<string, string?> EnvironmentVariables { get; set; } = new();
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\Collection.vb (2)
340m_KeyedNodesHash = New Generic.Dictionary(Of String, Node)(StartingHashCapacity, StringComparer.Create(CultureInfo, ignoreCase:=True)) 342m_KeyedNodesHash = New Generic.Dictionary(Of String, Node)(StringComparer.Create(CultureInfo, ignoreCase:=True))
Microsoft\VisualBasic\CompilerServices\CacheDict.vb (1)
19_dict = New Dictionary(Of TKey, KeyInfo)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1568Private ReadOnly _dict As New Dictionary(Of T, LinkedListNode(Of T))
Microsoft.VisualStudio.TestPlatform.Common (20)
DataCollection\DataCollectionManager.cs (3)
108RunDataCollectors = new Dictionary<Type, DataCollectorInformation>(); 181var executionEnvironmentVariables = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 655var dataCollectorEnvironmentVariable = new Dictionary<string, DataCollectionEnvironmentVariable>(StringComparer.OrdinalIgnoreCase);
DataCollection\TestPlatformDataCollectionEvents.cs (1)
29_eventArgsToEventInvokerMap = new Dictionary<Type, EventInvoker>(4)
ExtensionFramework\TestExecutorExtensionManager.cs (1)
65var cache = new Dictionary<string, LazyExtension<TExecutor1, TValue>>();
ExtensionFramework\TestExtensionManager.cs (1)
134TestExtensionByUri = new Dictionary<Uri, LazyExtension<TExtension, TMetadata>>();
ExtensionFramework\TestPluginCache.cs (1)
31private readonly Dictionary<string, Assembly?> _resolvedAssemblies = new();
ExtensionFramework\TestPluginDiscoverer.cs (1)
41var pluginInfos = new Dictionary<string, TPluginInfo>();
ExtensionFramework\TestPluginManager.cs (1)
218unfilteredExtensions.Add(new LazyExtension<TExtension, Dictionary<string, object>>(plugin, new Dictionary<string, object>()));
ExtensionFramework\Utilities\TestExtensions.cs (5)
112return new Dictionary<string, HashSet<string>>(); 117return new Dictionary<string, HashSet<string>>(second!); 122return new Dictionary<string, HashSet<string>>(first!); 378var extensions = new Dictionary<string, HashSet<string>>(); 424var extensions = new Dictionary<string, TPluginInfo>();
RunSettings.cs (1)
44_settings = new Dictionary<string, LazyExtension<ISettingsProvider, ISettingsProviderCapabilities>>();
SettingsProvider\SettingsProviderExtensionManager.cs (1)
60SettingsProvidersMap = new Dictionary<string, LazyExtension<ISettingsProvider, ISettingsProviderCapabilities>>();
Telemetry\NoOpMetricsCollection.cs (1)
28public IDictionary<string, object> Metrics => new Dictionary<string, object>();
Utilities\AssemblyResolver.cs (1)
28private readonly Dictionary<string, Assembly?> _resolvedAssemblies = new();
Utilities\FakesUtilities.cs (1)
145var dict = new Dictionary<string, FrameworkVersion>();
Utilities\SimpleJSON.cs (1)
840private readonly Dictionary<string, JSONNode> _dict = new();
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (4)
ObjectModel\TestElementAggregation.cs (2)
25private readonly Dictionary<Guid, TestLink> _testLinks = new(); 38return new Dictionary<Guid, TestLink>(_testLinks);
XML\XmlPersistence.cs (2)
89new(); 94private static readonly Dictionary<string, string> QueryCache = new();
Microsoft.VisualStudio.TestPlatform.ObjectModel (37)
Client\DiscoveryCriteria.cs (1)
115AdapterSourceMap = new Dictionary<string, IEnumerable<string>>
Client\Events\DiscoveryCompleteEventArgs.cs (1)
77public Dictionary<string, HashSet<string>>? DiscoveredExtensions { get; set; } = new();
Client\Events\TestRunCompleteEventArgs.cs (1)
80DiscoveredExtensions = new Dictionary<string, HashSet<string>>();
Client\TestRunCriteria.cs (2)
234AdapterSourceMap = new Dictionary<string, IEnumerable<string>> 261AdapterSourceMap = new Dictionary<string, IEnumerable<string>>
DataCollector\Common\FileHelper.cs (1)
21InvalidFileNameChars = new(invalidCharsArray.Length);
DataCollector\Events\SessionEvents.cs (1)
28: this(new DataCollectionContext(new SessionId(Guid.Empty)), new Dictionary<string, object?>())
Navigation\FullSymbolReader.cs (4)
30private readonly Dictionary<string, IDiaSymbol> _typeSymbols = new(); 38private readonly Dictionary<string, Dictionary<string, IDiaSymbol>> _methodSymbols = new(); 268Dictionary<string, IDiaSymbol> methodSymbolsForType = new(); 397methodSymbolsForType = new Dictionary<string, IDiaSymbol>();
Navigation\PortableSymbolReader.cs (2)
25private readonly Dictionary<string, Dictionary<string, DiaNavigationData>> _methodsNavigationDataForType = new(); 110var methodsNavigationData = new Dictionary<string, DiaNavigationData>();
Nuget.Frameworks\FrameworkNameProvider.cs (18)
88_identifierSynonyms = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 89_identifierToShortName = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 90_profilesToShortName = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 91_identifierShortToLong = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 92_profileShortToLong = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 93_portableFrameworks = new Dictionary<int, HashSet<NuGetFramework>>(); 94_portableOptionalFrameworks = new Dictionary<int, HashSet<NuGetFramework>>(); 95_equivalentFrameworks = new Dictionary<NuGetFramework, HashSet<NuGetFramework>>(); 96_equivalentProfiles = new Dictionary<string, Dictionary<string, HashSet<string>>>(StringComparer.OrdinalIgnoreCase); 97_subSetFrameworks = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase); 98_nonPackageBasedFrameworkPrecedence = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 99_packageBasedFrameworkPrecedence = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 100_equivalentFrameworkPrecedence = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 101_compatibilityMappings = new Dictionary<string, HashSet<OneWayCompatibilityMappingEntry>>(StringComparer.OrdinalIgnoreCase); 102_portableCompatibilityMappings = new Dictionary<int, HashSet<FrameworkRange>>(); 103_shortNameRewrites = new Dictionary<NuGetFramework, NuGetFramework>(); 104_fullNameRewrites = new Dictionary<NuGetFramework, NuGetFramework>(); 769profileMappings = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase);
Nuget.Frameworks\FrameworkReducer.cs (2)
385var scores = new Dictionary<NuGetFramework, int>(); 426var result = new Dictionary<NuGetFramework, IEnumerable<NuGetFramework>>();
RunSettings\TestRunParameters.cs (1)
26var testParameters = new Dictionary<string, object>();
TestProperty\TestProperty.cs (1)
255private static readonly Dictionary<string, KeyValuePair<TestProperty, HashSet<Type>>> Properties = new();
TestServiceLocator.cs (1)
16public static Dictionary<string, object> Instances { get; } = new Dictionary<string, object>();
Utilities\XmlRunSettingsUtilities.cs (1)
158nodeValue = new Dictionary<string, object>();
Microsoft.Web.XmlTransform (3)
XmlAttributePreservationDict.cs (2)
18private Dictionary<string, string> leadingSpaces = new Dictionary<string, string>(); 129Dictionary<string, bool> attributeExists = new Dictionary<string, bool>();
XmlTransforms.cs (1)
551Dictionary<string, string> paramDictionary = new Dictionary<string, string>(4, StringComparer.OrdinalIgnoreCase);
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
330s_handlers = new Dictionary<object, List<SystemEventInvokeInfo>>();
Mono.Cecil (64)
Mono.Cecil.Cil\CodeWriter.cs (4)
37 this.standalone_signatures = new Dictionary<uint, MetadataToken> (); 38 this.tiny_method_bodies = new Dictionary<ByteBuffer, RVA> (new ByteBufferEqualityComparer ()); 372 stack_sizes = new Dictionary<Instruction, int> (); 412 stack_sizes = new Dictionary<Instruction, int> ();
Mono.Cecil.Cil\PortablePdb.cs (2)
608 static readonly Dictionary<Guid, DocumentLanguage> guid_language = new Dictionary<Guid, DocumentLanguage> (); 609 static readonly Dictionary<DocumentLanguage, Guid> language_guid = new Dictionary<DocumentLanguage, Guid> ();
Mono.Cecil.Cil\Symbols.cs (2)
780 var instruction_mapping = new Dictionary<Instruction, SequencePoint> (); 784 var offset_mapping = new Dictionary<int, SequencePoint> (sequence_points.Count);
Mono.Cecil.Metadata\Buffers.cs (3)
304 readonly Dictionary<Guid, uint> guids = new Dictionary<Guid, uint> (); 335 protected Dictionary<string, uint> strings = new Dictionary<string, uint> (StringComparer.Ordinal); 432 readonly Dictionary<ByteBuffer, uint> blobs = new Dictionary<ByteBuffer, uint> (new ByteBufferEqualityComparer ());
Mono.Cecil.Metadata\StringHeap.cs (1)
19 readonly Dictionary<uint, string> strings = new Dictionary<uint, string> ();
Mono.Cecil\AssemblyReader.cs (18)
913 metadata.NestedTypes = new Dictionary<uint, Collection<uint>> (length); 914 metadata.ReverseNestedTypes = new Dictionary<uint, uint> (length); 1029 var class_layouts = metadata.ClassLayouts = new Dictionary<uint, Row<ushort, uint>> (length); 1253 metadata.Interfaces = new Dictionary<uint, Collection<Row<uint, MetadataToken>>> (length); 1404 var field_rvas = metadata.FieldRVAs = new Dictionary<uint, uint> (length); 1434 var field_layouts = metadata.FieldLayouts = new Dictionary<uint, uint> (length); 1504 metadata.Events = new Dictionary<uint, Range> (length); 1586 metadata.Properties = new Dictionary<uint, Range> (length); 1686 var semantics = metadata.Semantics = new Dictionary<uint, Row<MethodSemanticsAttributes, MetadataToken>> (0); 1873 var pinvokes = metadata.PInvokes = new Dictionary<uint, Row<PInvokeAttributes, uint, uint>> (length); 1951 var ranges = new Dictionary<MetadataToken, Range []> (length); 2032 metadata.GenericConstraints = new Dictionary<uint, Collection<Row<uint, MetadataToken>>> (length); 2084 metadata.Overrides = new Dictionary<uint, Collection<MetadataToken>> (length); 2400 var constants = metadata.Constants = new Dictionary<MetadataToken, Row<ElementType, uint>> (length); 2591 var marshals = metadata.FieldMarshals = new Dictionary<MetadataToken, uint> (length); 2881 metadata.LocalScopes = new Dictionary<uint, Collection<Row<uint, Range, Range, uint, uint, uint>>> (); 3135 metadata.StateMachineMethods = new Dictionary<uint, uint> (length); 3159 metadata.CustomDebugInformations = new Dictionary<MetadataToken, Row<Guid, uint, uint> []> ();
Mono.Cecil\AssemblyWriter.cs (8)
930 type_ref_map = new Dictionary<TypeRefRow, MetadataToken> (row_equality_comparer); 931 type_spec_map = new Dictionary<uint, MetadataToken> (); 932 member_ref_map = new Dictionary<MemberRefRow, MetadataToken> (row_equality_comparer); 933 method_spec_map = new Dictionary<MethodSpecRow, MetadataToken> (row_equality_comparer); 945 this.document_map = new Dictionary<string, MetadataToken> (StringComparer.Ordinal); 946 this.import_scope_map = new Dictionary<ImportScopeRow, MetadataToken> (row_equality_comparer); 973 this.document_map = new Dictionary<string, MetadataToken> (); 974 this.import_scope_map = new Dictionary<ImportScopeRow, MetadataToken> (row_equality_comparer);
Mono.Cecil\BaseAssemblyResolver.cs (1)
189 var result = new Dictionary<string, string> (StringComparer.OrdinalIgnoreCase);
Mono.Cecil\DefaultAssemblyResolver.cs (1)
22 cache = new Dictionary<string, AssemblyDefinition> (StringComparer.Ordinal);
Mono.Cecil\Import.cs (1)
141 static readonly Dictionary<Type, ElementType> type_etype_mapping = new Dictionary<Type, ElementType> (18) {
Mono.Cecil\MetadataSystem.cs (20)
72 var types = new Dictionary<string, Row<ElementType, bool>> (18, StringComparer.Ordinal) { 139 if (NestedTypes != null) NestedTypes = new Dictionary<uint, Collection<uint>> (capacity: 0); 140 if (ReverseNestedTypes != null) ReverseNestedTypes = new Dictionary<uint, uint> (capacity: 0); 141 if (Interfaces != null) Interfaces = new Dictionary<uint, Collection<Row<uint, MetadataToken>>> (capacity: 0); 142 if (ClassLayouts != null) ClassLayouts = new Dictionary<uint, Row<ushort, uint>> (capacity: 0); 143 if (FieldLayouts != null) FieldLayouts = new Dictionary<uint, uint> (capacity: 0); 144 if (FieldRVAs != null) FieldRVAs = new Dictionary<uint, uint> (capacity: 0); 145 if (FieldMarshals != null) FieldMarshals = new Dictionary<MetadataToken, uint> (capacity: 0); 146 if (Constants != null) Constants = new Dictionary<MetadataToken, Row<ElementType, uint>> (capacity: 0); 147 if (Overrides != null) Overrides = new Dictionary<uint, Collection<MetadataToken>> (capacity: 0); 148 if (CustomAttributes != null) CustomAttributes = new Dictionary<MetadataToken, Range []> (capacity: 0); 149 if (SecurityDeclarations != null) SecurityDeclarations = new Dictionary<MetadataToken, Range []> (capacity: 0); 150 if (Events != null) Events = new Dictionary<uint, Range> (capacity: 0); 151 if (Properties != null) Properties = new Dictionary<uint, Range> (capacity: 0); 152 if (Semantics != null) Semantics = new Dictionary<uint, Row<MethodSemanticsAttributes, MetadataToken>> (capacity: 0); 153 if (PInvokes != null) PInvokes = new Dictionary<uint, Row<PInvokeAttributes, uint, uint>> (capacity: 0); 154 if (GenericParameters != null) GenericParameters = new Dictionary<MetadataToken, Range []> (capacity: 0); 155 if (GenericConstraints != null) GenericConstraints = new Dictionary<uint, Collection<Row<uint, MetadataToken>>> (capacity: 0); 159 if (LocalScopes != null) LocalScopes = new Dictionary<uint, Collection<Row<uint, Range, Range, uint, uint, uint>>> (capacity: 0); 160 if (StateMachineMethods != null) StateMachineMethods = new Dictionary<uint, uint> (capacity: 0);
Mono.Cecil\TypeDefinitionCollection.cs (2)
30 this.name_cache = new Dictionary<Slot, TypeDefinition> (new RowEqualityComparer ()); 37 this.name_cache = new Dictionary<Slot, TypeDefinition> (capacity, new RowEqualityComparer ());
Mono.Cecil\WindowsRuntimeProjections.cs (1)
140 var new_projections = new Dictionary<string, ProjectionInfo> {
Mono.Cecil.Mdb (9)
Mono.Cecil.Mdb\MdbReader.cs (1)
50 this.documents = new Dictionary<string, Document> ();
Mono.Cecil.Mdb\MdbWriter.cs (1)
47 this.source_files = new Dictionary<string, SourceFile> ();
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (6)
177 anonymous_scopes = new Dictionary<int, AnonymousScopeEntry> (); 361 source_file_hash = new Dictionary<int, SourceFileEntry> (); 362 compile_unit_hash = new Dictionary<int, CompileUnitEntry> (); 514 method_token_hash = new Dictionary<int, MethodEntry> (); 577 source_name_hash = new Dictionary<string, int> (); 604 anonymous_scopes = new Dictionary<int, AnonymousScopeEntry> ();
Mono.CompilerServices.SymbolWriter\MonoSymbolTable.cs (1)
1171 var local_names = new Dictionary<string, LocalVariableEntry> ();
Mono.Cecil.Pdb (10)
Microsoft.Cci.Pdb\PdbFile.cs (3)
41Dictionary<string, int> result = new Dictionary<string, int>(); 364pdbInfo.TokenToSourceMapping = new Dictionary<uint, PdbTokenLine>(); 371Dictionary<string, PdbSource> sourceCache = new Dictionary<string, PdbSource>();
Mono.Cecil.Pdb\ModuleMetadata.cs (2)
184 types = new Dictionary<uint, TypeDefinition> (); 185 methods = new Dictionary<uint, MethodDefinition> ();
Mono.Cecil.Pdb\NativePdbReader.cs (3)
26 readonly Dictionary<string, Document> documents = new Dictionary<string, Document> (); 27 readonly Dictionary<uint, PdbFunction> functions = new Dictionary<uint, PdbFunction> (); 28 readonly Dictionary<PdbScope, ImportDebugInformation> imports = new Dictionary<PdbScope, ImportDebugInformation> ();
Mono.Cecil.Pdb\NativePdbWriter.cs (2)
39 this.documents = new Dictionary<string, SymDocumentWriter> (); 40 this.import_info_to_parent = new Dictionary<ImportDebugInformation, MetadataToken> ();
MSBuild (29)
OutOfProcTaskAppDomainWrapperBase.cs (1)
423IDictionary<string, Object> finalParameterValues = new Dictionary<string, Object>(StringComparer.OrdinalIgnoreCase);
OutOfProcTaskHostNode.cs (7)
691Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties), 705return new Dictionary<string, string>(EffectiveConfiguration.GlobalProperties); 1154context.SavedEnvironment = new Dictionary<string, string>( 1682updatedEnvironment = new Dictionary<string, string>(environment, StringComparer.OrdinalIgnoreCase); 1742updatedEnvironment ??= new Dictionary<string, string>(environment, StringComparer.OrdinalIgnoreCase); 1781s_mismatchedEnvironmentValues = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\NodePacketFactory.cs (1)
25_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
87result[i] = new Dictionary<string, string>(globalProperties[i].Count, StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskHostBuildResponse.cs (2)
64var dict = new Dictionary<string, ITaskItem[]>(projectOutputs.Count, StringComparer.OrdinalIgnoreCase); 95var dict = new Dictionary<string, TaskParameter>(projectOutputs?.Count ?? 0, StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskHostConfiguration.cs (3)
208_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 233_taskParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 241_globalParameters = globalParameters ?? new Dictionary<string, string>();
src\msbuild\src\Shared\TaskHostTaskComplete.cs (3)
126_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 139_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 204_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskParameter.cs (7)
593_customEscapedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 610_customEscapedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 632_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 641_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 756_customEscapedMetadata ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 842IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 901IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
src\msbuild\src\Shared\TypeLoader.cs (2)
280Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length); 451_publicTypeNameToType = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
XMake.cs (2)
2221Dictionary<string, string> restoreGlobalProperties = new Dictionary<string, string>(globalProperties); 3772Dictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
NuGet.Build.Tasks (12)
GetCentralPackageVersionsTask.cs (1)
55var properties = new Dictionary<string, string>();
GetRestoreDotnetCliToolsTask.cs (3)
75var properties = new Dictionary<string, string>(); 94var packageProperties = new Dictionary<string, string>(); 104var restoreProperties = new Dictionary<string, string>();
GetRestoreFrameworkReferencesTask.cs (1)
52var properties = new Dictionary<string, string>();
GetRestoreNuGetAuditSuppressionsTask.cs (1)
54var properties = new Dictionary<string, string>();
GetRestorePackageDownloadsTask.cs (1)
46var properties = new Dictionary<string, string>();
GetRestorePackageReferencesTask.cs (1)
52var properties = new Dictionary<string, string>();
GetRestoreProjectReferencesTask.cs (1)
87var properties = new Dictionary<string, string>();
GetRestorePrunedPackageReferencesTask.cs (1)
55var properties = new Dictionary<string, string>();
StaticGraphRestoreTaskBase.cs (2)
323Dictionary<string, string> newGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 370return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
NuGet.Build.Tasks.Console (5)
MSBuildStaticGraphRestore.cs (3)
331var result = new Dictionary<string, CentralPackageVersion>(StringComparer.OrdinalIgnoreCase); 407var result = new Dictionary<string, PrunePackageReference>(StringComparer.OrdinalIgnoreCase); 524var projectTargetFrameworks = new Dictionary<string, IMSBuildProject>();
Program.cs (2)
147var properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 284globalProperties = new Dictionary<string, string>(capacity: count, StringComparer.OrdinalIgnoreCase);
NuGet.Build.Tasks.Pack (11)
PackTaskLogic.cs (11)
217var projectRefToVersionMap = new Dictionary<string, string>(PathUtility.GetStringComparerBasedOnOS()); 371var targetAliasToNuGetFramework = new Dictionary<string, string>(); 372var frameworkToAliases = new Dictionary<string, List<string>>(); 408var tfmSpecificRefs = new Dictionary<string, IList<string>>(StringComparer.OrdinalIgnoreCase); 438var tfmSpecificRefs = new Dictionary<string, ISet<string>>(); 512duplicateTargetPath = new Dictionary<string, string>(); 656var fileModel = new Dictionary<string, IEnumerable<ContentMetadata>>(); 850var sourceFiles = new Dictionary<string, string>(); 893var dependenciesByFramework = new Dictionary<NuGetFramework, HashSet<LibraryDependency>>(NuGetFrameworkFullComparer.Instance); 995var packageSpecificNoWarnProperties = new Dictionary<string, HashSet<(NuGetLogCode, NuGetFramework)>>(StringComparer.OrdinalIgnoreCase); 1146var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
NuGet.CommandLine.XPlat (11)
Commands\Package\Update\PackageUpdateCommandRunner.cs (2)
324var projectPackageUpdates = new Dictionary<string, List<PackageUpdateResult>>(StringComparer.OrdinalIgnoreCase); 684var allPackages = new Dictionary<string, (VersionRange version, List<string> tfms, bool hasError)>(StringComparer.OrdinalIgnoreCase);
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (2)
41_sourceRepositoryCache = new Dictionary<PackageSource, SourceRepository>(); 429var packageMetadataById = new Dictionary<string, List<IPackageSearchMetadata>>(capacity: allPackages.Count);
Commands\PackageSearch\PackageSearchRunner.cs (1)
82Dictionary<Task<IEnumerable<IPackageSearchMetadata>>, PackageSource> searchRequests = new();
Commands\Why\DependencyGraphFinder.cs (1)
35var result = new Dictionary<string, List<DependencyNode>?>(StringComparer.OrdinalIgnoreCase);
Commands\Why\DependencyGraphPrinter.cs (1)
145var dependencyGraphHashes = new Dictionary<int, List<string>>(dependencyGraphPerFramework.Count);
Utility\MSBuildAPIUtility.cs (3)
311var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 932var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 997var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Utility\TableParser.cs (1)
42var columnQueues = new Dictionary<int, Queue<FormattedCell>>();
NuGet.Commands (59)
CommandArgs\PackArgs.cs (1)
21private readonly Dictionary<string, string> _properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MSBuildPackTargetArgs.cs (1)
28SourceFiles = new Dictionary<string, string>();
MSBuildProjectFactory.cs (1)
73ProjectProperties = new Dictionary<string, string>()
PackCommand\Logging\PackageSpecificWarningProperties.cs (2)
60Properties ??= new Dictionary<NuGetLogCode, IDictionary<string, ISet<NuGetFramework>>>(); 64frameworksByLibraryId = new Dictionary<string, ISet<NuGetFramework>>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\CompatibilityChecker.cs (1)
66var compileAssemblies = new Dictionary<string, LibraryIdentity>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\ContentFiles\ContentFileUtils.cs (4)
41var groupsByLanguage = new Dictionary<string, List<ContentItemGroup>>(StringComparer.OrdinalIgnoreCase); 90var entryMappings = new Dictionary<string, List<ContentFilesEntry>>(StringComparer.OrdinalIgnoreCase); 91var languageMappings = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 111Dictionary<string, List<ContentFilesEntry>> relativePathToEntries = new(entryMappings.Count, StringComparer.OrdinalIgnoreCase);
RestoreCommand\DependencyGraphResolver.cs (7)
135Dictionary<string, RestoreTargetGraph> graphsByTargetFramework = new(); 334Dictionary<LibraryRangeIndex, GraphNode<RemoteResolveResult>> nodesById = new(); 342Dictionary<LibraryRangeIndex, GraphNode<RemoteResolveResult>> versionConflicts = new(); 345Dictionary<LibraryRangeIndex, (LibraryRangeIndex FromParentLibraryRangeIndex, LibraryDependency FromLibraryDependency, LibraryRangeIndex ToParentLibraryRangeIndex, LibraryDependencyIndex ToLibraryDependencyIndex, bool IsCentralTransitive)> downgrades = new(); 896Dictionary<LibraryDependencyIndex, VersionRange>? pinnedPackageVersions = new(capacity: projectTargetFramework.CentralPackageVersions.Count); 924Dictionary<LibraryDependencyIndex, ResolvedDependencyGraphItem> resolvedDependencyGraphItems = new(ResolvedDependencyGraphItemDictionarySize); 933Dictionary<LibraryRangeIndex, (LibraryRangeIndex[], LibraryDependencyIndex, LibraryDependencyTarget)> evictions = new Dictionary<LibraryRangeIndex, (LibraryRangeIndex[], LibraryDependencyIndex, LibraryDependencyTarget)>(EvictionsDictionarySize);
RestoreCommand\Diagnostics\IndexedRestoreTargetGraph.cs (1)
19= new Dictionary<string, GraphItem<RemoteResolveResult>>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\LockFileBuilder.cs (2)
340var libraryReferences = new Dictionary<ValueTuple<string, NuGetVersion>, LockFileLibrary>(); 375var libraryReferences = new Dictionary<LockFileTargetLibrary, LockFileTargetLibrary>(comparer: LockFileTargetLibraryNameAndVersionEqualityComparer.Instance);
RestoreCommand\Logging\PackageSpecificWarningProperties.cs (2)
81Properties ??= new Dictionary<NuGetLogCode, IDictionary<string, ISet<string>>>(); 85frameworksByLibraryId = new Dictionary<string, ISet<string>>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (10)
41var warningPropertiesCache = new Dictionary<string, Dictionary<string, WarningPropertiesCollection>>( 91var dependencyMapping = new Dictionary<string, LookUpNode>(StringComparer.OrdinalIgnoreCase); 93var seen = new Dictionary<string, NodeWarningProperties>(StringComparer.OrdinalIgnoreCase); 95var packageNoWarn = new Dictionary<string, HashSet<NuGetLogCode>>(StringComparer.OrdinalIgnoreCase); 245= new Dictionary<string, WarningPropertiesCollection>(StringComparer.OrdinalIgnoreCase); 398merged = new Dictionary<string, HashSet<NuGetLogCode>>(StringComparer.OrdinalIgnoreCase); 543result = new Dictionary<string, Dictionary<string, HashSet<NuGetLogCode>>>(StringComparer.OrdinalIgnoreCase); 559frameworkCollection = new Dictionary<string, HashSet<NuGetLogCode>>(StringComparer.OrdinalIgnoreCase); 591result = new Dictionary<string, HashSet<NuGetLogCode>>(StringComparer.OrdinalIgnoreCase); 781packages = new Dictionary<string, HashSet<NuGetLogCode>>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\RequestFactory\RestoreArgs.cs (1)
151var sourceObjects = new Dictionary<string, PackageSource>();
RestoreCommand\RestoreCommand.cs (4)
44= new Dictionary<RestoreTargetGraph, Dictionary<string, LibraryIncludeFlags>>(); 1161prunedDirectPackages ??= new(StringComparer.OrdinalIgnoreCase); 1237var aliasToTargetGraphName = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2078Dictionary<NuGetFramework, string> targetFrameworkToAlias = new(NuGetFramework.Comparer);
RestoreCommand\RestoreSummary.cs (1)
105var installed = new Dictionary<string, int>(restoreSummaries.Count, PathUtility.GetStringComparerBasedOnOS());
RestoreCommand\RestoreTargetGraph.cs (1)
124var conflicts = new Dictionary<string, HashSet<ResolverRequest>>();
RestoreCommand\Utility\AuditUtility.cs (5)
82SuppressedAdvisories = new Dictionary<string, bool>(restoreAuditProperties.SuppressedAdvisories.Count); 161result ??= new(); 411result ??= new(); 580GraphsPerVulnerability = new(); 592GraphsPerVulnerability = new();
RestoreCommand\Utility\IncludeFlagUtils.cs (2)
37var result = new Dictionary<string, LibraryIncludeFlags>(StringComparer.OrdinalIgnoreCase); 84var unifiedNodes = new Dictionary<string, GraphItem<RemoteResolveResult>>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\Utility\LockFileUtils.cs (2)
586var fileLookup = new Dictionary<string, ProjectRestoreMetadataFile>(StringComparer.OrdinalIgnoreCase); 1030var primaryGroups = new Dictionary<string, List<ContentItemGroup>>(StringComparer.Ordinal);
RestoreCommand\Utility\MSBuildRestoreUtility.cs (9)
73var itemsById = new Dictionary<string, List<IMSBuildItem>>(uniqueNameComparer); 76var projectPathLookup = new Dictionary<string, string>(uniqueNameComparer); 625var aliasGroups = new Dictionary<string, List<ProjectRestoreReference>>(); 727var dict = new Dictionary<string, TargetFrameworkInformation>(StringComparer.OrdinalIgnoreCase); 791var prunePackageReferences = new Dictionary<string, Dictionary<string, PrunePackageReference>>(StringComparer.OrdinalIgnoreCase); 792var isPruningEnabled = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase); 795prunePackageReferences.Add(targetFramework.TargetAlias, new Dictionary<string, PrunePackageReference>(StringComparer.OrdinalIgnoreCase)); 1264var result = new Dictionary<string, Dictionary<string, CentralPackageVersion>>(); 1293versions = new Dictionary<string, CentralPackageVersion>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\Utility\PackageSpecFactory.cs (2)
695var result = new Dictionary<string, PrunePackageReference>(StringComparer.OrdinalIgnoreCase); 824var result = new Dictionary<string, CentralPackageVersion>(StringComparer.OrdinalIgnoreCase);
NuGet.Common (4)
KeyedLock.cs (1)
25_locks = new Dictionary<string, LockState>();
Telemetry\TelemetryEvent.cs (3)
17this(eventName, new Dictionary<string, object?>()) 28_piiProperties = new Dictionary<string, object?>(); 58public IDictionary<string, object?> ComplexData { get; } = new Dictionary<string, object?>();
NuGet.Configuration (16)
PackageSource\MinPublishAgeExceptions.cs (2)
34var itemsByPattern = new Dictionary<string, MinPublishAgeExceptionItem>(items.Count, StringComparer.OrdinalIgnoreCase); 49var packageSourceMapping = new PackageSourceMapping(new Dictionary<string, IReadOnlyList<string>>
PackageSource\PackageSourceProvider.cs (3)
98var packageSourceLookup = new Dictionary<string, IndexedPackageSource>(StringComparer.OrdinalIgnoreCase); 135var packageSourceLookup = new Dictionary<string, IndexedPackageSource>(StringComparer.OrdinalIgnoreCase); 1094var existingSettingsLookup = new Dictionary<string, SourceItem>(StringComparer.OrdinalIgnoreCase);
PackageSourceMapping\PackageSourceMapping.cs (1)
74var patterns = new Dictionary<string, IReadOnlyList<string>>();
PackageSourceMapping\SearchNode.cs (1)
16Children = new Dictionary<char, SearchNode>();
Settings\Items\AddItem.cs (1)
34new Dictionary<string, IReadOnlyCollection<string>>()
Settings\Items\StoreClientCertItem.cs (1)
161protected override IReadOnlyDictionary<string, IReadOnlyCollection<string>> AllowedValues { get; } = new Dictionary<string, IReadOnlyCollection<string>>
Settings\Items\UnknownItem.cs (3)
27_mutableChildren = new Dictionary<SettingBase, SettingBase>(); 49_mutableChildren = new Dictionary<SettingBase, SettingBase>(); 189var otherChildren = new Dictionary<SettingBase, SettingBase>(unknown._mutableChildren);
Settings\SettingElement.cs (2)
73MutableAttributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 105MutableAttributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Settings\SettingItem.cs (1)
66var attributesImmutable = new Dictionary<string, string>(MutableAttributes);
Settings\Settings.cs (1)
222var computedSections = new Dictionary<string, VirtualSettingSection>();
NuGet.DependencyResolver.Core (5)
GraphModel\GraphOperations.cs (2)
674return new Dictionary<GraphNode<RemoteResolveResult>, GraphNode<RemoteResolveResult>>(); 775return new Dictionary<string, GraphNode<TItem>>(StringComparer.OrdinalIgnoreCase);
GraphModel\Tracker.cs (1)
13private readonly Dictionary<string, Entry> _entryByLibraryName = new(StringComparer.OrdinalIgnoreCase);
Remote\RemoteDependencyWalker.cs (1)
626_transitiveCentralPackageVersions = new Dictionary<string, List<GraphNode<RemoteResolveResult>>>(StringComparer.OrdinalIgnoreCase);
Remote\RemoteWalkContext.cs (1)
29LockFileLibraries = new Dictionary<LockFileCacheKey, IList<LibraryIdentity>>();
NuGet.Frameworks (21)
CompatibilityTable.cs (1)
80var table = new Dictionary<NuGetFramework, HashSet<NuGetFramework>>();
FrameworkNameProvider.cs (18)
89_identifierSynonyms = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 90_identifierToShortName = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 91_profilesToShortName = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 92_identifierShortToLong = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 93_profileShortToLong = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 94_portableFrameworks = new Dictionary<int, HashSet<NuGetFramework>>(); 95_portableOptionalFrameworks = new Dictionary<int, HashSet<NuGetFramework>>(); 96_equivalentFrameworks = new Dictionary<NuGetFramework, HashSet<NuGetFramework>>(); 97_equivalentProfiles = new Dictionary<string, Dictionary<string, HashSet<string>>>(StringComparer.OrdinalIgnoreCase); 98_subSetFrameworks = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase); 99_nonPackageBasedFrameworkPrecedence = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 100_packageBasedFrameworkPrecedence = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 101_equivalentFrameworkPrecedence = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 102_compatibilityMappings = new Dictionary<string, HashSet<OneWayCompatibilityMappingEntry>>(StringComparer.OrdinalIgnoreCase); 103_portableCompatibilityMappings = new Dictionary<int, HashSet<FrameworkRange>>(); 104_shortNameRewrites = new Dictionary<NuGetFramework, NuGetFramework>(); 105_fullNameRewrites = new Dictionary<NuGetFramework, NuGetFramework>(); 781profileMappings = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase);
FrameworkReducer.cs (2)
385var scores = new Dictionary<NuGetFramework, int>(); 426var result = new Dictionary<NuGetFramework, IEnumerable<NuGetFramework>>();
NuGet.LibraryModel (1)
Library.cs (1)
20public IDictionary<string, object> Items { get; set; } = new Dictionary<string, object>();
NuGet.PackageManagement (31)
Audit\AuditChecker.cs (3)
54var auditSettings = new Dictionary<string, ProjectAuditSettings>(restoreAuditProperties.Count); 330result ??= new(); 437SuppressedAdvisories = new Dictionary<string, bool>(suppressedAdvisories.Count);
DependencyGraphCacheContext.cs (3)
32new Dictionary<string, DependencyGraphSpec>(StringComparer.Ordinal); 38new Dictionary<string, PackageSpec>(StringComparer.Ordinal); 43public Dictionary<string, IReadOnlyList<IDependencyGraphProject>> DirectReferenceCache { get; set; } = new Dictionary<string, IReadOnlyList<IDependencyGraphProject>>(StringComparer.Ordinal);
IDE\PackageRestoreContext.cs (1)
29private static Dictionary<string, RestoreAuditProperties> EmptyDictionary = new Dictionary<string, RestoreAuditProperties>();
IDE\PackageRestoreManager.cs (2)
146var packageReferencesDict = new Dictionary<PackageReference, List<string>>(PackageReferenceComparer.Instance); 186var restoreAuditProperties = new Dictionary<string, RestoreAuditProperties>(PathUtility.GetStringComparerBasedOnOS());
NuGetPackageManager.cs (8)
1016var preferredVersions = new Dictionary<string, PackageIdentity>(StringComparer.OrdinalIgnoreCase); 2228var nugetProjectActionsLookup = new Dictionary<string, NuGetProjectAction[]>(PathUtility.GetStringComparerBasedOnOS()); 2856new Dictionary<string, NuGetProjectAction[]>(PathUtility.GetStringComparerBasedOnOS()) 2887nugetProjectActionsLookup = new Dictionary<string, NuGetProjectAction[]>(PathUtility.GetStringComparerBasedOnOS()); 2916var lockFileLookup = new Dictionary<string, LockFile>(PathUtility.GetStringComparerBasedOnOS()); 2930var updatedNugetPackageSpecLookup = new Dictionary<string, PackageSpec>(PathUtility.GetStringComparerBasedOnOS()); 2931var originalNugetPackageSpecLookup = new Dictionary<string, PackageSpec>(PathUtility.GetStringComparerBasedOnOS()); 2932var nuGetProjectSourceLookup = new Dictionary<string, HashSet<SourceRepository>>(PathUtility.GetStringComparerBasedOnOS());
PackageDownloader.cs (1)
78var tasksLookup = new Dictionary<Task<DownloadResourceResult>, SourceRepository>();
PackagePreFetcher.cs (1)
58var result = new Dictionary<PackageIdentity, PackagePreFetcherResult>();
Projects\MSBuildNuGetProject.cs (2)
36new Dictionary<FileTransformExtensions, IPackageFileTransformer> 634return new Dictionary<XName, Action<XElement, XElement>>
Projects\NuGetProject.cs (1)
22InternalMetadata = optionalMetadata ?? new Dictionary<string, object>();
Resolution\PrunePackageTree.cs (3)
107IDictionary<string, NuGetVersion> installed = new Dictionary<string, NuGetVersion>(StringComparer.OrdinalIgnoreCase); 183var targets = new Dictionary<string, NuGetVersion>(StringComparer.OrdinalIgnoreCase); 218var installed = new Dictionary<string, NuGetVersion>(StringComparer.OrdinalIgnoreCase);
Resolution\ResolverGather.cs (1)
603var depResources = new Dictionary<SourceRepository, Task<DependencyInfoResource>>();
Resolution\UninstallResolver.cs (2)
19var dependentsDict = new Dictionary<PackageIdentity, HashSet<PackageIdentity>>(PackageIdentity.Comparer); 20dependenciesDict = new Dictionary<PackageIdentity, HashSet<PackageIdentity>>(PackageIdentity.Comparer);
Telemetry\ActionEventBase.cs (1)
28base(eventName, new Dictionary<string, object>
Telemetry\ActionTelemetryStepEvent.cs (1)
14base(NugetActionStepsEventName, new Dictionary<string, object>
Utility\BuildIntegratedProjectUtility.cs (1)
93var typeMappings = new Dictionary<PackageDependencyInfo, LibraryIdentity>(PackageIdentity.Comparer);
NuGet.Packaging (33)
ContentModel\ContentItem.cs (1)
153var properties = new Dictionary<string, object>();
ContentModel\ContentItemCollection.cs (1)
20private static readonly SimplePool<Dictionary<ContentItem, List<Asset>>> GroupAssetsPool = new(() => new(GroupComparer.DefaultComparer));
ContentModel\ContentItemGroup.cs (1)
14Properties = new Dictionary<string, object>();
ContentModel\ManagedCodeConventions.cs (4)
43private static readonly Dictionary<string, object> NetTFMTable = new Dictionary<string, object> 49private static readonly Dictionary<string, object> DefaultTfmAny = new Dictionary<string, object> 75private Dictionary<ReadOnlyMemory<char>, NuGetFramework> _frameworkCache = new(ReadOnlyMemoryCharComparerOrdinal.Instance); 85var props = new Dictionary<string, ContentPropertyDefinition>();
ContentModel\PatternTable.cs (2)
19= new Dictionary<string, Dictionary<ReadOnlyMemory<char>, object>>(StringComparer.Ordinal); 38byProp = new Dictionary<ReadOnlyMemory<char>, object>(ReadOnlyMemoryCharComparerOrdinal.Instance);
ContentModel\SelectionCriteria.cs (1)
22Properties = new Dictionary<string, object>();
Core\NuspecCoreReaderBase.cs (1)
164var metadataValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Licenses\NuGetLicenseData.cs (2)
14public static readonly IReadOnlyDictionary<string, LicenseData> LicenseList = new Dictionary<string, LicenseData>() 751public static readonly IReadOnlyDictionary<string, ExceptionData> ExceptionList = new Dictionary<string, ExceptionData>()
NuspecReader.cs (1)
218var groups = new Dictionary<NuGetFramework, HashSet<string>>(NuGetFrameworkFullComparer.Instance);
PackageCreation\Authoring\PackageBuilder.cs (1)
157Properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
PackageReaderBase.cs (1)
427var groups = new Dictionary<NuGetFramework, List<string>>(NuGetFrameworkFullComparer.Instance);
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (1)
33var nuspecReferences = new Dictionary<string, IEnumerable<string>>();
RuntimeModel\RuntimeDependencySet.cs (1)
16private static readonly IReadOnlyDictionary<string, RuntimePackageDependency> EmptyDependencies = new Dictionary<string, RuntimePackageDependency>();
RuntimeModel\RuntimeDescription.cs (2)
16private static readonly IReadOnlyDictionary<string, RuntimeDependencySet> EmptyRuntimeDependencySets = new Dictionary<string, RuntimeDependencySet>(); 101var newSets = new Dictionary<string, RuntimeDependencySet>(StringComparer.OrdinalIgnoreCase);
RuntimeModel\RuntimeGraph.cs (5)
15private static readonly ReadOnlyDictionary<string, RuntimeDescription> EmptyRuntimes = new(new Dictionary<string, RuntimeDescription>()); 16private static readonly ReadOnlyDictionary<string, CompatibilityProfile> EmptySupports = new(new Dictionary<string, CompatibilityProfile>()); 98Dictionary<string, T> clone = new(source.Count); 125var runtimes = new Dictionary<string, RuntimeDescription>(capacity: left.Runtimes.Count + right.Runtimes.Count); 147var supports = new Dictionary<string, CompatibilityProfile>(capacity: right.Supports.Count + left.Supports.Count);
Signing\Content\KeyPairFileReader.cs (1)
41var entries = new Dictionary<string, string>(StringComparer.Ordinal);
Signing\Signatures\Signature.cs (1)
366_signingCertificateFingerprintLookup = new Dictionary<HashAlgorithmName, string>();
Signing\TrustedSigners\TrustedSignersProvider.cs (1)
85var certificateLookup = new Dictionary<string, CertificateEntryLookupEntry>();
Signing\Verification\AllowListVerificationProvider.cs (2)
66var primarySignatureCertificateFingerprintLookUp = new Dictionary<HashAlgorithmName, string>(); 67var countersignatureCertificateFingerprintLookUp = new Dictionary<HashAlgorithmName, string>();
Telemetry\PackageExtractionTelemetryEvent.cs (1)
29base(EventName, new Dictionary<string, object?>
TopologicalSortUtility.cs (2)
49var lookup = new Dictionary<string, T>(comparer); 95var lookup = new Dictionary<string, ItemDependencyInfo>(comparer);
NuGet.ProjectModel (8)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (2)
1454centralPackageVersions ??= new Dictionary<string, CentralPackageVersion>(); 1518packagesToPrune ??= new Dictionary<string, PrunePackageReference>(StringComparer.OrdinalIgnoreCase);
LockFile\LockFileItem.cs (1)
34_properties ??= new Dictionary<string, string>();
LockFile\LockFileTargetLibrary.cs (1)
34private readonly Dictionary<PropertyKey, object> _propertyValues = new();
PackageSpecOperations.cs (1)
177Dictionary<string, CentralPackageVersion> result = new(dictSize, StringComparer.OrdinalIgnoreCase);
PackageSpecReferenceDependencyProvider.cs (2)
25= new Dictionary<string, ExternalProjectReference>(StringComparer.OrdinalIgnoreCase); 28= new Dictionary<string, ExternalProjectReference>(StringComparer.OrdinalIgnoreCase);
ProjectLockFile\PackagesLockFileUtilities.cs (1)
386var actualDependencies = new Dictionary<LockFileDependency, LockFileDependency>(
NuGet.Protocol (16)
_generated\151\RepositorySignatureJsonContext.IDictionaryStringString.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, string>(),
Converters\FingerprintsConverter.cs (1)
21var dict = new Dictionary<string, string>();
Converters\FingerprintsStjConverter.cs (1)
21var dict = new Dictionary<string, string>();
HttpSource\HttpSourceAuthenticationHandler.cs (1)
29private Dictionary<string, AmbientAuthenticationState> _authStates = new Dictionary<string, AmbientAuthenticationState>();
LegacyFeed\V2FeedPackageInfo.cs (1)
250var results = new Dictionary<NuGetFramework, List<PackageDependency>>(NuGetFrameworkFullComparer.Instance);
LocalRepositories\FindLocalPackagesResourceUnzipped.cs (2)
65var index = new Dictionary<PackageIdentity, LocalPackageInfo>(); 83var index = new Dictionary<Uri, LocalPackageInfo>();
Plugins\MessageConverter.cs (2)
14private static readonly Dictionary<(MessageMethod, MessageType), Func<JsonElement, object?>> _read = new() 65private static readonly Dictionary<Type, Action<Utf8JsonWriter, object>> _write = new()
Plugins\PluginPackageReader.cs (1)
993var groups = new Dictionary<NuGetFramework, List<string>>(NuGetFrameworkFullComparer.Instance);
Resources\ServiceIndexResourceV3.cs (2)
172var result = new Dictionary<string, List<ServiceIndexEntry>>(StringComparer.Ordinal); 237var result = new Dictionary<string, List<ServiceIndexEntry>>(StringComparer.Ordinal);
SourceRepository.cs (2)
20private readonly Dictionary<Type, IReadOnlyList<INuGetResourceProvider>> _providerCache = new(ProviderCacheTypes); 177var cache = new Dictionary<Type, IReadOnlyList<INuGetResourceProvider>>(ProviderCacheTypes);
Utility\MetadataReferenceCache.cs (2)
15private readonly Dictionary<string, string> _stringCache = new Dictionary<string, string>(StringComparer.Ordinal); 16private readonly Dictionary<string, NuGetVersion> _versionCache = new Dictionary<string, NuGetVersion>(StringComparer.Ordinal);
NuGet.Resolver (4)
PackageResolver.cs (2)
264var dependencyRangesByPackageId = new Dictionary<string, IList<VersionRange>>(StringComparer.OrdinalIgnoreCase); 289var dependencyByPackageId = new Dictionary<string, VersionRange>(StringComparer.OrdinalIgnoreCase);
ResolverComparer.cs (1)
34_installedVersions = new Dictionary<string, NuGetVersion>();
ResolverInputSort.cs (1)
45var parents = new Dictionary<string, SortedSet<string>>(StringComparer.OrdinalIgnoreCase);
NuGet.Versioning (2)
NuGetVersionFactory.cs (1)
18private static Dictionary<string, NuGetVersion> ParsedNuGetVersionsMapping = new Dictionary<string, NuGetVersion>(ParsedNuGetVersionsMappingMaxEntries);
VersionRangeFactory.cs (1)
20private static Dictionary<(string, bool), VersionRange> ParsedVersionRangeMapping = new Dictionary<(string, bool), VersionRange>(ParsedVersionRangeMappingMaxEntries);
PresentationBuildTasks (20)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
177Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>(); 292Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (2)
702_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 842Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
4163private Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
61_compatTable = new Dictionary<string,string>(); 62_compatTableReverse = new Dictionary<string,string>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
60_cachedMetadataLoadContextAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase); 61_cachedMetadataLoadContextAssembliesByNameNoExtension = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
882_subsumingNamespaces = new Dictionary<string, object>(); 909_knownNamespaces = new Dictionary<string, object>(); 1835_ignorables = new Dictionary<string, object>(); 1845_processContents = new Dictionary<string, ProcessContentSet>(); 1862_preserveElements = new Dictionary<string, PreserveItemSet>(); 1879_preserveAttributes = new Dictionary<string, PreserveItemSet>(); 2050_names = new Dictionary<string, string>(); 2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (53)
MS\Internal\Automation\EventMap.cs (1)
132_eventsTable = new Dictionary<int, EventInfo>(20);
MS\Internal\DeferredElementTreeState.cs (2)
122private Dictionary<DependencyObject, DependencyObject> _oldCoreParents = new Dictionary<DependencyObject, DependencyObject>(); 123private Dictionary<DependencyObject, DependencyObject> _oldLogicalParents = new Dictionary<DependencyObject, DependencyObject>();
MS\Internal\FontCache\FamilyCollection.cs (1)
473Dictionary<string, Text.TextInterface.Font> faces = new Dictionary<string, Text.TextInterface.Font>(StringComparer.OrdinalIgnoreCase);
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
595_cmap = new Dictionary<int, ushort>();
MS\Internal\FontCache\FontResourceCache.cs (2)
82folderResourceMap = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 146= new Dictionary<Assembly, Dictionary<string, List<string>>>(1);
MS\Internal\FontFace\CompositeFontInfo.cs (3)
34_familyNames = new LanguageSpecificStringDictionary(new Dictionary<XmlLanguage,string>(InitialCultureCount)); 55_familyMapRangesByLanguage = new Dictionary<XmlLanguage, ushort[]>(InitialCultureCount); 146Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count);
MS\Internal\FontFace\FontDifferentiator.cs (1)
31Dictionary<XmlLanguage, string> faceNames = new Dictionary<XmlLanguage, string>(1);
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
41Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1675new System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry>(_coreStrokes.Count);
MS\Internal\Ink\Renderer.cs (2)
186_visuals = new Dictionary<Stroke, StrokeVisual>(); 657_highlighters = new Dictionary<Color, HighlighterContainerVisual>();
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
250Dictionary<Edge, EdgeInfo> adjInformation = new Dictionary<Edge, EdgeInfo>();
MS\Internal\Shaping\TypefaceMap.cs (1)
38private IDictionary<CultureInfo, IntMap> _intMaps = new Dictionary<CultureInfo, IntMap>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
155private static readonly Dictionary<string, ContentType> _fileExtensionToMimeType = new Dictionary<string, ContentType>(4);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
135_assemblies = new Dictionary<object, AssemblyName>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
49_nodeLookup = new Dictionary<K, Node>();
System\Windows\Ink\StrokeCollection2.cs (1)
353Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>();
System\Windows\Input\ManipulationDevice.cs (1)
83_manipulationDevices = new Dictionary<UIElement, ManipulationDevice>(2);
System\Windows\Input\ManipulationLogic.cs (2)
693private Dictionary<int, Manipulator2D> _currentManipulators = new Dictionary<int, Manipulator2D>(2); 696private Dictionary<int, Manipulator2D> _removedManipulators = new Dictionary<int, Manipulator2D>(2);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
172private readonly Dictionary<DpiScale2, Matrix> _transformToDeviceMatrices = new Dictionary<DpiScale2, Matrix>();
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (3)
195private static Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>> _hidToGuidMap = new Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>>() 198new Dictionary<HidUsage, Guid>() 206new Dictionary<HidUsage, Guid>()
System\Windows\Input\Stylus\Common\StylusPointPropertyUnit.cs (1)
63private static Dictionary<uint, StylusPointPropertyUnit> _pointerUnitMap = new Dictionary<uint, StylusPointPropertyUnit>()
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
112} = new Dictionary<PresentationSource, PointerStylusPlugInManager>();
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
27private static Dictionary<byte, short> _hidExponentMap = new Dictionary<byte, short>()
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
29private Dictionary<uint, PointerStylusDevice> _stylusDeviceMap = new Dictionary<uint, PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (2)
21private Dictionary<IntPtr, PointerTabletDevice> _tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>(); 77_tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>();
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
3707private Dictionary<object, PenContexts> __penContextsMap = new Dictionary<object, PenContexts>(2); 3710private Dictionary<int, StylusDevice> __stylusDeviceMap = new Dictionary<int, StylusDevice>(2); 3733private Dictionary<StylusDeviceBase, RawStylusInputReport> _lastMovesQueued = new Dictionary<StylusDeviceBase, RawStylusInputReport>(); 3737private Dictionary<StylusDeviceBase, RawStylusInputReport> _coalescedMoves = new Dictionary<StylusDeviceBase, RawStylusInputReport>();
System\Windows\Media\FontEmbeddingManager.cs (2)
24_collectedGlyphTypefaces = new Dictionary<Uri, Dictionary<ushort, bool>>(_uriComparer); 52glyphSet = _collectedGlyphTypefaces[glyphTypeface] = new Dictionary<ushort, bool>();
System\Windows\Media\GlyphTypeface.cs (1)
386IDictionary<XmlLanguage, string> adjustedLanguageFaceNames = new Dictionary<XmlLanguage, string>(adjustedFaceNames.Count);
System\Windows\Media\HostVisual.cs (1)
557private Dictionary<DUCE.Channel, Dispatcher> _connectedChannels = new Dictionary<DUCE.Channel, Dispatcher>();
System\Windows\Media\Knowncolors.cs (1)
833private static Dictionary<uint, SolidColorBrush> s_solidColorBrushCache = new Dictionary<uint, SolidColorBrush>();
System\Windows\Media\SolidColorBrush.cs (2)
251fwdDictionary = new Dictionary<TKey, TValue>(keyComparer); 252revDictionary = new Dictionary<TValue, List<TKey>>(valueComparer);
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
404Dictionary<char,bool> dict = new Dictionary<char,bool>();
System\Windows\Media\UniqueEventHelper.cs (3)
24ueh._delegates = new Dictionary<EventHandler<TEventArgs>, int>(_delegates); 55ueh._delegates = new Dictionary<EventHandler, int>(_delegates); 99_delegates = new Dictionary<TEventHandler, int>() { { handler, 1 } };
System\Windows\Media\Visual.cs (2)
825channelsToCyclicBrushMap = new Dictionary<DUCE.Channel, int>(); 856cyclicBrushToChannelsMap = new Dictionary<ICyclicBrush, int>();
System\Windows\Media3D\Visual3DCollection.cs (1)
540Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>();
PresentationFramework (109)
MS\Internal\Annotations\AnnotationMap.cs (1)
105private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>();
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
553private static readonly Dictionary<Type, int> s_ZLevel = new(); 558private static readonly Dictionary<int, ZRange> s_ZRanges = new();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
285private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\ObservableDictionary.cs (1)
40_nameValues = new Dictionary<string, string>();
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
108Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 169Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 282private Dictionary<Guid, CachedAnnotation> _currentAnnotations = new Dictionary<Guid, CachedAnnotation>();
MS\Internal\Annotations\XmlElementCollection.cs (1)
39_xmlDocsRefCounts = new Dictionary<XmlDocument, int>();
MS\Internal\AppModel\MimeObjectFactory.cs (2)
74private static readonly Dictionary<ContentType, StreamToObjectFactoryDelegate> _objectConverters = new Dictionary<ContentType, StreamToObjectFactoryDelegate>(9, new ContentType.WeakComparer()); 75private static readonly Dictionary<ContentType, StreamToObjectFactoryDelegateCore> _objectConvertersCore = new Dictionary<ContentType, StreamToObjectFactoryDelegateCore>(9, new ContentType.WeakComparer());
MS\Internal\AppModel\ResourceContainer.cs (1)
322private static readonly Dictionary<string, ResourceManagerWrapper> s_registeredResourceManagers = new(StringComparer.Ordinal);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
67s_xmlTokeFullNames = new Dictionary<XmlToken, string>(); 84_cachedXmlElements = new Dictionary<XmlToken, object>();
MS\Internal\Data\AccessorTable.cs (1)
167private readonly Dictionary<AccessorTableKey, AccessorInfo> _table = new Dictionary<AccessorTableKey, AccessorInfo>();
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
519_nameToGroupMap ??= new Dictionary<object, WeakReference>();
MS\Internal\Data\DataBindEngine.cs (1)
693private Dictionary<ValueConverterTableKey, IValueConverter> _valueConverterTable = new Dictionary<ValueConverterTableKey, IValueConverter>();
MS\Internal\Globalization\BamlResourceDeserializer.cs (1)
389private readonly Dictionary<string, Stack<ILocalizabilityInheritable>> _propertyInheritanceTreeStack = new(8);
MS\Internal\Globalization\BamlTreeMap.cs (4)
104_keyToBamlNodeIndexMap = new Dictionary<BamlLocalizableResourceKey, int>(_tree.Size); 105_uidToBamlNodeIndexMap = new Dictionary<string, int>(_tree.Size / 2); 338_classAttributeTable = new Dictionary<string, ElementLocalizability>(8); 339_propertyAttributeTable = new Dictionary<string, LocalizabilityAttribute>(8);
MS\Internal\Globalization\BamlTreeUpdater.cs (3)
690_uidToNewBamlNodeIndexMap = new Dictionary<string, int>(8); 691_keyToNewBamlNodeIndexMap = new Dictionary<BamlLocalizableResourceKey, int>(8); 813_contentPropertyTable ??= new Dictionary<string, string>(8);
MS\Internal\Ink\ClipboardProcessor.cs (2)
57_preferredClipboardData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>(); 263Dictionary<InkCanvasClipboardFormat, ClipboardData> preferredData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>();
MS\Internal\Interop\InternalDispatchObject.cs (1)
60_dispId2MethodMap = new Dictionary<int, MethodInfo>(methods.Length);
MS\Internal\IO\Packaging\XamlFilter.cs (1)
102_lcidDictionary = new Dictionary<string, uint>(StringComparer.OrdinalIgnoreCase);
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
101private static Dictionary<string, DllModule> _cache = new System.Collections.Generic.Dictionary<string, DllModule>();
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (4)
12private static readonly Dictionary<Type, Type> CustomTypeToHelperTypeMappings = new Dictionary<Type, Type>(); 13private static readonly Dictionary<Type, Type> CustomAbiTypeToTypeMappings = new Dictionary<Type, Type>(); 14private static readonly Dictionary<string, Type> CustomAbiTypeNameToTypeMappings = new Dictionary<string, Type>(); 15private static readonly Dictionary<Type, string> CustomTypeToAbiTypeNameMappings = new Dictionary<Type, string>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
47_predefinedNamespaces = new Dictionary<Uri, IList<Uri>>(6);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
110Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> newChildren = new Dictionary<DateTimeCalendarModePair,DateTimeAutomationPeer>(); 654private Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> _dataChildren = new Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer>(); 655private Dictionary<DateTimeCalendarModePair, WeakReference> _weakRefElementProxyStorage = new Dictionary<DateTimeCalendarModePair, WeakReference>();
System\Windows\Controls\DataGrid.cs (2)
8223Dictionary<string, StringBuilder> dataGridStringBuilders = new Dictionary<string, StringBuilder>(formats.Count); 8618= new Dictionary<DataGridColumn, CellAutomationValueHolder>(); // Holds the content of edited cells. Required for raising Automation events.
System\Windows\Controls\DataGridColumnCollection.cs (2)
471Dictionary<int, int> assignedDisplayIndexMap = new Dictionary<int, int>(); // <DisplayIndex, ColumnIndex> 1465_originalWidthsForResize = new Dictionary<DataGridColumn, DataGridLength>();
System\Windows\Controls\DataGridHelper.cs (1)
436propertyTransferEnabledForObject = new Dictionary<DependencyProperty, bool>();
System\Windows\Controls\DataGridItemAttachedStorage.cs (2)
57_itemStorageMap = new Dictionary<object, Dictionary<DependencyProperty, object>>(); 68map = new Dictionary<DependencyProperty, object>();
System\Windows\Controls\DatePicker.cs (1)
876_isHandlerSuspended = new Dictionary<DependencyProperty, bool>(2);
System\Windows\Controls\Primitives\Selector.cs (3)
2669_set = new Dictionary<ItemInfo, ItemInfo>(capacity, equalityComparer); 2680_set = new Dictionary<ItemInfo, ItemInfo>(collection._set, _equalityComparer); 2851_set = new Dictionary<ItemInfo, ItemInfo>(_list.Count);
System\Windows\Data\BindingGroup.cs (1)
1532private Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (2)
206_dictionariesFromUri = new Dictionary<Uri, List<WeakReference<ResourceDictionary>>>(); 434_resultCache = new Dictionary<WeakReferenceKey<StaticResourceExtension>, WeakReference<ResourceDictionary>>();
System\Windows\Documents\DocumentSequence.cs (1)
654_asyncOps = new Dictionary<Object,GetPageAsyncRequest>();
System\Windows\Documents\FixedDocument.cs (2)
828_highlights = new Dictionary<FixedPage, ArrayList>(); 829_asyncOps = new Dictionary<Object, GetPageAsyncRequest>();
System\Windows\Documents\FixedDSBuilder.cs (1)
39_nameHashTable = new Dictionary<String, NameHashFixedNode>();
System\Windows\Documents\FixedSchema.cs (1)
330private static readonly Dictionary<ContentType, XpsSchema> _schemas = new Dictionary<ContentType, XpsSchema>(new ContentType.StrongComparer());
System\Windows\Documents\FixedTextView.cs (1)
236Dictionary<FixedPage, ArrayList> highlights = new Dictionary<FixedPage,ArrayList>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
640private static readonly Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
38new Dictionary<string, SpellCheckerCreationHelper>();
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (1)
52private static Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\Speller.cs (1)
419_uriMap = new Dictionary<Uri, DictionaryInfo>();
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (3)
85private static readonly Dictionary<Actions, long> _timeLimits100Ns = new Dictionary<Actions, long> 153CumulativeCallTime100Ns = new Dictionary<Actions, long>(), 154NumCallsMeasured = new Dictionary<Actions, long>()
System\Windows\Documents\WinRTSpellerInterop.cs (2)
51_spellCheckers = new Dictionary<CultureInfo, Tuple<WordsSegmenter, SpellChecker>>(); 52_customDictionaryFiles = new Dictionary<string, List<string>>();
System\Windows\FrameworkTemplate.cs (1)
1515private Dictionary<int, Type> _childTypeFromChildIndex = new Dictionary<int, Type>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
33private Dictionary<int, TypeConverter> _typeConverterMap = new Dictionary<int, TypeConverter>(); 34private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 2737_freezeCache = new Dictionary<string, Freezable>();
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (2)
24_namespaces = new Dictionary<string, string>(source._namespaces); 44_namespaces = new Dictionary<string, string>();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
658private readonly Dictionary<string, short[]> _bamlXmlnsMappings = new Dictionary<string, short[]>();
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
321_constructors = new Dictionary<int, Baml6ConstructorInfo>();
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
56_masterTypeTable = new Dictionary<Type, XamlType>(256);
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
59private Dictionary<Type, XamlType> _masterTypeTable = new Dictionary<Type, XamlType>();
System\Windows\Markup\BamlReader.cs (1)
177_reverseXmlnsTable = new Dictionary<String, List<String>>();
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
140_dictionary = new Dictionary<BamlLocalizableResourceKey, BamlLocalizableResource>();
System\Windows\Markup\ParserContext.cs (3)
702_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 789_freezeCache = new Dictionary<string, Freezable>(); 842Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
85constructorArguments = new Dictionary<string, string>(); 688_keyTypeMap = new Dictionary<Type, Type>();
System\Windows\Markup\Primitives\MarkupWriter.cs (6)
490Dictionary<string, string> writtenAttributes = new Dictionary<string, string>(); 1390_uriToPrefix = new Dictionary<string, string>(); 1392_prefixToUri = new Dictionary<string, string>(); 1550private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>(); 1551private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>(); 1564namespaceToUri = new Dictionary<string, string>();
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
38private static Dictionary<Type, Type> initializedTypes = new Dictionary<Type, Type>();
System\Windows\Markup\XamlTypeMapper.cs (2)
310Dictionary<string, string> newDict = new Dictionary<string, string>(); 4163private Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (4)
38_nsDefinitions = new Dictionary<string, FrugalObjectList<string>>(); 55_piNamespaces = new Dictionary<string, string>(typeMapper.PITable.Count); 201_piNamespaces = new Dictionary<string, string>(); 311_allowedInternalTypes = new Dictionary<Type, XamlType>();
System\Windows\Markup\XmlnsCache.cs (2)
130_compatTable = new Dictionary<string, string>(); 131_compatTableReverse = new Dictionary<string, string>();
System\Windows\ResourceDictionary.cs (1)
1814this._weakDeferredResourceReferencesMap ??= new();
System\Windows\Shell\JumpList.cs (1)
252private static readonly Dictionary<Application, JumpList> s_applicationMap = new Dictionary<Application, JumpList>();
System\Windows\Standard\MessageWindow.cs (1)
23private static readonly Dictionary<IntPtr, MessageWindow> s_windowLookup = new Dictionary<IntPtr, MessageWindow>();
System\Windows\SystemResources.cs (3)
464_dictionaries = new Dictionary<Assembly, ResourceDictionaries>(1); 1027_hwndNotify = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper>(); 1028_hwndNotifyHook = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapperHook>();
System\Windows\TemplateContent.cs (1)
1545_namedTypes = new Dictionary<string, XamlType>();
System\Windows\VisualStateManager.cs (2)
667Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>(); 676Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>();
PresentationUI (9)
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
573new Dictionary<Uri, WriteableOnDemandPackagePart>();
MS\Internal\Documents\DigitalSignatureProvider.cs (2)
335new Dictionary<X509Certificate2, CertificatePriorityStatus>(); 391new Dictionary<Guid, XpsSignatureDefinition>();
MS\Internal\Documents\DocumentSignatureManager.cs (2)
42_digSigSigResources = new Dictionary<SignatureResources, DigitalSignature>(); 213new Dictionary<X509Certificate2, CertificatePriorityStatus>();
MS\Internal\Documents\RightsManagementManager.cs (1)
48_userMap = new Dictionary<string, RightsManagementUser>();
MS\Internal\Documents\RightsManagementProvider.cs (3)
502new Dictionary<RightsManagementUser, IList<ContentGrant>>(); 546new Dictionary<RightsManagementUser, RightsManagementLicense>( 682new Dictionary<RightsManagementUser, RightsManagementLicense>();
Publishers.AppHost (1)
AppHost.cs (1)
10builder.Configuration.AddCommandLine(args, new Dictionary<string, string> { ["--target"] = "Deployment:Target" });
ReachFramework (87)
MS\Internal\Printing\MostFrequentlyUsedCache.cs (1)
15this._dictionary = new Dictionary<K, Entry>(maxEntries);
packaging\XpsDigitalSignature.cs (5)
65Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>(); 315Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>(); 364Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>(); 380relHash = new Dictionary<string, int>(); 422_optionalSignedTypes = new Dictionary<string, string>();
Packaging\XpsDocument.cs (1)
870Dictionary<Uri,Uri> dependentList = new Dictionary<Uri,Uri> ();
Packaging\XpsFixedPageReaderWriter.cs (6)
469_fontCache = new Dictionary<Uri, XpsFont>(MS.Internal.UriComparer.Default); 470_colorContextCache = new Dictionary<Uri, XpsColorContext>(); 471_resourceDictionaryCache = new Dictionary<Uri, XpsResourceDictionary>(); 472_imageCache = new Dictionary<Uri, XpsImage>(); 473_resourceCache = new Dictionary<Uri, XpsResource>(); 1517Dictionary<Uri,PackageRelationship> restictedFontRels = new Dictionary<Uri,PackageRelationship>(MS.Internal.UriComparer.Default);
Packaging\XpsManager.cs (5)
53_contentTypes = new Dictionary<string, int>(11); 54_cachedParts = new Dictionary<Uri, PackagePart>(11); 171_packageCache = new Dictionary<Uri,int>(); 983_contentTypes = new Dictionary<string, int>(11); 984_cachedParts = new Dictionary<Uri, PackagePart>(11);
Packaging\XpsResourcePolicy.cs (1)
310Dictionary<Type, object> _objDict = new Dictionary<Type, object>();
PrintConfig\PrintSchemaShim.cs (11)
519private static readonly IDictionary<DevModeCollate, Collation> dmCollateToQResolution = new Dictionary<DevModeCollate, Collation>(2) { 544private static readonly IDictionary<DevModeColor, OutputColor> dmColorToOutputColor = new Dictionary<DevModeColor, OutputColor>(2) { 577private static readonly IDictionary<DevModeDuplex, Duplexing> dmDuplexToDuplexing = new Dictionary<DevModeDuplex, Duplexing>(3) { 674private static readonly IDictionary<short, InputBin> dmPaperSourceToInputBin = new Dictionary<short, InputBin>(4) { 681private static IDictionary<short, PaperSourceOption> paperSourceOptions = new Dictionary<short, PaperSourceOption>() { 781private static readonly IDictionary<short, PageMediaSizeName> dmPaperSizeToPageMediaSize = new Dictionary<short, PageMediaSizeName>(101) { 910private static readonly IDictionary<uint, PageMediaType> dmMediaTypeToMediaType = new Dictionary<uint, PageMediaType>(3) { 916private static IDictionary<uint, MediaTypeOption> mediaTypeOptions = new Dictionary<uint, MediaTypeOption>() { 960private static readonly IDictionary<DevModeOrientation, PageOrientation> dmOrientationToOrientation = new Dictionary<DevModeOrientation, PageOrientation>(2) { 1028private static readonly IDictionary<short, PageQualitativeResolution> dmResToQResolution = new Dictionary<short, PageQualitativeResolution>(4) { 1035private static IDictionary<short, OutputQualityOption> outputQualityOptions = new Dictionary<short, OutputQualityOption>() {
PrintConfig\PrtTicket_Public_Simple.cs (2)
250_setterCache = new Dictionary<CapabilityName, object>(); 274_setterCache = new Dictionary<CapabilityName, object>();
Serialization\Manager\ReachDocumentPageSerializer.cs (4)
45((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 50((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 69((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 74((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (2)
51((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 137((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializer.cs (6)
61((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 63((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 68((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 98((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 100((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 105((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (6)
90((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 92((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 97((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 127((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 129((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 134((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializer.cs (6)
69((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 74((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 79((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>(); 109((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 114((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 119((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializerAsync.cs (4)
106((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 111((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 141((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 146((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (3)
42((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 44((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 49((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (2)
79((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 81((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>();
Serialization\Manager\ReachSerializationUtils.cs (5)
467_serializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 469_serializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 474_serializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 554_serializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 558_serializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPageSerializer.cs (2)
68_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 73_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (3)
51_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 53_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 58_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (3)
68_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 70_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 75_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
77_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 82_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 87_xpsOMSerializationManager.ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMHierarchySimulator.cs (3)
75_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 77_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 82_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\TreeWalkProgress.cs (1)
43private IDictionary<ICyclicBrush, EmptyStruct> _cyclicBrushes = new Dictionary<ICyclicBrush, EmptyStruct>();
Serialization\VisualTreeFlattener.cs (1)
499_nameList = new Dictionary<String, int>();
Serialization\XpsFontSubsetter.cs (1)
104_fontEmbeddingManagerCache = new Dictionary<Uri, FEMCacheItem>(3, MS.Internal.UriComparer.Default);
RepoTasks (2)
BatchHelixWorkItems.cs (1)
49var eligibleGroups = new Dictionary<string, List<ITaskItem>>(StringComparer.OrdinalIgnoreCase);
ResolveDotnetToolPackagePaths.cs (1)
52var toolsByPackageId = new Dictionary<string, JsonElement>(StringComparer.OrdinalIgnoreCase);
Roslyn.Diagnostics.Analyzers (39)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 626return new Dictionary<K, ImmutableArray<T>>(comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (1)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (5)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
28_cache = new(comparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (10)
39public static readonly IEnumerable<KeyValuePair<sbyte, string>> SByteSpecialValues = new Dictionary<sbyte, string>() 45public static readonly IEnumerable<KeyValuePair<short, string>> Int16SpecialValues = new Dictionary<short, string>() 51public static readonly IEnumerable<KeyValuePair<ushort, string>> UInt16SpecialValues = new Dictionary<ushort, string>() 56public static readonly IEnumerable<KeyValuePair<int, string>> Int32SpecialValues = new Dictionary<int, string>() 62public static readonly IEnumerable<KeyValuePair<uint, string>> UInt32SpecialValues = new Dictionary<uint, string>() 67public static readonly IEnumerable<KeyValuePair<long, string>> Int64SpecialValues = new Dictionary<long, string>() 73public static readonly IEnumerable<KeyValuePair<ulong, string>> UInt64SpecialValues = new Dictionary<ulong, string>() 78public static readonly IEnumerable<KeyValuePair<float, string>> SingleSpecialValues = new Dictionary<float, string>() 88public static readonly IEnumerable<KeyValuePair<double, string>> DoubleSpecialValues = new Dictionary<double, string>() 98public static readonly IEnumerable<KeyValuePair<decimal, string>> DecimalSpecialValues = new Dictionary<decimal, string>()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
19new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.EqualityComparer) 36private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.EqualityComparer)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
rzc (11)
ConcurrentLruCache.cs (1)
36_cache = new Dictionary<TKey, CacheValue>(capacity, comparer);
DefaultExtensionAssemblyLoader.cs (4)
30_loadedByPath = new Dictionary<string, (Assembly assembly, AssemblyIdentity identity)>(StringComparer.OrdinalIgnoreCase); 31_loadedByIdentity = new Dictionary<AssemblyIdentity, Assembly>(); 32_identityCache = new Dictionary<string, AssemblyIdentity>(StringComparer.OrdinalIgnoreCase); 33_wellKnownAssemblies = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
GenerateCommand.cs (2)
345var outputBySourcePath = new Dictionary<string, string>(StringComparer.Ordinal); 410var cssScopeAssociations = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
RazorSourceGeneratorHost.cs (4)
42var globalOptions = new Dictionary<string, string>(StringComparer.Ordinal) 55var fileOptions = new Dictionary<string, AnalyzerConfigOptions>(StringComparer.Ordinal); 58var metadata = new Dictionary<string, string>(StringComparer.Ordinal) 195private static readonly AnalyzerConfigOptions s_empty = new RazorAnalyzerConfigOptions(new Dictionary<string, string>(StringComparer.Ordinal));
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
600_headers = new Dictionary<string, string>();
sdk-tasks (3)
_generated\1\SdkTasksJsonSerializerContext.DictionaryStringMetadataEntry.g.cs (1)
31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>(),
DeduplicateAssembliesWithLinks.cs (1)
64var filesByHash = new Dictionary<string, List<FileEntry>>();
ProcessRuntimeAnalyzerVersions.cs (1)
25var metadata = new Dictionary<string, MetadataEntry>();
SelectTests (15)
GraphAffectedProjects.cs (8)
36new Dictionary<string, AffectedPath>(StringComparer.Ordinal)); 184var paths = new Dictionary<string, AffectedPath>(StringComparer.Ordinal); 221var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 238var nodesByProjectPath = new Dictionary<string, List<ProjectGraphNode>>(s_pathComparer); 266var index = new Dictionary<string, HashSet<string>>(s_pathComparer); 323var originatingFile = new Dictionary<string, string>(s_pathComparer); 379var dependents = new Dictionary<string, List<string>>(s_pathComparer); 412var parent = new Dictionary<string, string>(s_pathComparer);
Program.cs (3)
284var map = new Dictionary<string, string>(StringComparer.Ordinal); 795var groups = new Dictionary<string, Dictionary<string, Cause>>(StringComparer.Ordinal); 808members = new Dictionary<string, Cause>(StringComparer.Ordinal);
TestSelector.cs (3)
164var testCauses = new Dictionary<string, List<Cause>>(StringComparer.Ordinal); 165var jobCauses = new Dictionary<string, List<Cause>>(StringComparer.Ordinal); 328new Dictionary<string, IReadOnlyList<Cause>>(StringComparer.Ordinal);
TriggerMap.cs (1)
19public Dictionary<string, List<string>> Groups { get; set; } = new();
Shared (1)
Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Shared.Tests (8)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
49var dictionary = new Dictionary<T, T>();
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringInt32.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, int>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringObject.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, object>(),
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringSimplePoco.g.cs (1)
33ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>(),
JsonSchemaExporter\TestTypes.cs (4)
515Value: new() { Name = "name", ExtensionData = new() { ["x"] = 42 } }, 827Value: new() { ["one"] = 1, ["two"] = 2, ["three"] = 3 }, 839Value: new() 862Value: new() { ["one"] = 1, ["two"] = "two", ["three"] = 3.14 },
Stress.AppHost (5)
CommandResources.cs (5)
592environmentVariables: new Dictionary<string, string> 693environmentVariables: new Dictionary<string, string> 739environmentVariables: new Dictionary<string, string> 1371EnvironmentVariables = environmentVariables ?? new Dictionary<string, string>(), 1396EnvironmentVariables = environmentVariables ?? new Dictionary<string, string>(),
System.CodeDom (4)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
12private readonly Dictionary<string, CodeNamespaceImport> _keys = new Dictionary<string, CodeNamespaceImport>(StringComparer.OrdinalIgnoreCase);
System\CodeDom\Compiler\CodeDomProvider.cs (2)
16private static readonly Dictionary<string, CompilerInfo> s_compilerLanguages = new Dictionary<string, CompilerInfo>(StringComparer.OrdinalIgnoreCase); 17private static readonly Dictionary<string, CompilerInfo> s_compilerExtensions = new Dictionary<string, CompilerInfo>(StringComparer.OrdinalIgnoreCase);
System\CodeDom\Compiler\CompilerInfo.cs (1)
12internal readonly IDictionary<string, string> _providerOptions = new Dictionary<string, string>();
System.Collections.Immutable (4)
System\Collections\Frozen\FrozenDictionary.cs (2)
54Dictionary<TKey, TValue> d = new(source.Length, comparer); 135newDictionary = new Dictionary<TKey, TValue>(capacity, comparer);
System\Linq\ImmutableArrayExtensions.cs (2)
590var result = new Dictionary<TKey, T>(immutableArray.Length, comparer); 615var result = new Dictionary<TKey, TElement>(immutableArray.Length, comparer);
System.CommandLine (4)
Binding\ArgumentConverter.StringConverters.cs (1)
16=> _stringConverters ??= new()
Help\HelpBuilder.cs (1)
77_customizationsBySymbol ??= new();
Parsing\StringExtensions.cs (1)
398Dictionary<string, Token> tokens = new(StringComparer.Ordinal);
Parsing\SymbolResultTree.cs (1)
83_symbolsByName = new();
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (1)
164var controlParameters = new Dictionary<string, object?>();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
213var propertyStoreItems = new Dictionary<string, PropertyStoreItem>();
System\ComponentModel\DataAnnotations\ValidationContext.cs (4)
97_items = items != null ? new Dictionary<object, object?>(items) : new Dictionary<object, object?>(); 133_items = items != null ? new Dictionary<object, object?>(items) : new Dictionary<object, object?>();
System.ComponentModel.Composition (28)
System\ComponentModel\Composition\AttributedModelServices.cs (1)
120var metadata = new Dictionary<string, object?>();
System\ComponentModel\Composition\ContractNameServices.cs (1)
29private static Dictionary<Type, string> TypeIdentityCache => field ??= new();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
39private readonly Dictionary<ComposablePartDefinition, CatalogPart> _activatedParts = new Dictionary<ComposablePartDefinition, CatalogPart>();
System\ComponentModel\Composition\Hosting\CompositionServices.cs (4)
187var dictionary = new Dictionary<string, object?>(StringComparers.MetadataKeyNames); 259dictionary = new Dictionary<string, object?>(); 502metadata = new Dictionary<string, object?>(); 518metadata ??= new Dictionary<string, object?>();
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
756_assemblyCatalogs = new Dictionary<string, AssemblyCatalog>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (1)
36_exportersIndex = new Dictionary<string, List<ComposablePartDefinition>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (1)
42_importersIndex = new Dictionary<string, List<ComposablePartDefinition>>();
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (2)
105_importCache ??= new Dictionary<ImportDefinition, Export[]?>(); 174_importedDisposableExports ??= new Dictionary<ImportDefinition, List<IDisposable>>();
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
22private readonly Dictionary<string, WeakReferenceCollection<PartManager>> _partManagerIndex = new Dictionary<string, WeakReferenceCollection<PartManager>>();
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
53reply = new Dictionary<string, object?>(_sourceDefinition.Metadata);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
318Dictionary<string, List<ComposablePartDefinition>> index = new Dictionary<string, List<ComposablePartDefinition>>(StringComparers.ContractName);
System\ComponentModel\Composition\MetadataServices.cs (1)
12public static readonly IDictionary<string, object?> EmptyMetadata = new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>(0));
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
69private static readonly Dictionary<Type, MetadataViewFactory> _metadataViewFactories = new Dictionary<Type, MetadataViewFactory>();
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (6)
100var originalMetadata = new Dictionary<string, object?>(_originalPartCreationInfo.GetMetadata()!, StringComparers.MetadataKeyNames); 175Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = new Dictionary<LazyMemberInfo, MemberInfo[]>(); 176Dictionary<int, MemberInfo> specializedPartMembers = new Dictionary<int, MemberInfo>(); 240Dictionary<Lazy<ParameterInfo>, ParameterInfo> parametersTable = new Dictionary<Lazy<ParameterInfo>, ParameterInfo>(); 437Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalImport.Metadata, StringComparers.MetadataKeyNames); 454Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalExport.Metadata, StringComparers.MetadataKeyNames);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
25private static Dictionary<Type, Func<Export, object>?> CastSingleValueCache => field ??= new();
System\ComponentModel\Composition\ReflectionModel\PartCreatorExportDefinition.cs (1)
35var metadata = new Dictionary<string, object?>(_productDefinition.Metadata);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (3)
72value = new Dictionary<ImportDefinition, object?>(); 93value = new Dictionary<ImportDefinition, ImportingItem>(); 570_exportsCache ??= new Dictionary<int, ExportingMember>();
System.ComponentModel.Composition.Registration (3)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
123_importBuilders ??= new Dictionary<ParameterInfo, Action<ImportBuilder>>();
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (2)
26private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 27private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>();
System.ComponentModel.TypeConverter (10)
src\runtime\src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
16var colors = new Dictionary<string, Color>(StringComparer.OrdinalIgnoreCase);
System\ComponentModel\AttributeCollection.cs (1)
249s_defaultAttributes ??= new Dictionary<Type, Attribute?>();
System\ComponentModel\ComponentResourceManager.cs (1)
109_resourceSets = new Dictionary<CultureInfo, SortedList<string, object?>?>();
System\ComponentModel\CultureInfoConverter.cs (1)
273var result = new Dictionary<string, string>(Count)
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (1)
29private readonly Dictionary<RelationshipEntry, RelationshipEntry> _relationships = new Dictionary<RelationshipEntry, RelationshipEntry>();
System\ComponentModel\LicenseManager.LicenseInteropHelper.cs (1)
65private readonly Dictionary<string, string> _savedLicenseKeys = new Dictionary<string, string>();
System\ComponentModel\MemberDescriptor.cs (1)
345var map = new Dictionary<object, int>();
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
148return LazyInitializer.EnsureInitialized(ref s_intrinsicTypeConverters, () => new Dictionary<object, IntrinsicTypeConverterData>(32)
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (2)
444Dictionary<string, EventDescriptor> eventList = new Dictionary<string, EventDescriptor>(16); 479Dictionary<string, PropertyDescriptor> propertyList = new Dictionary<string, PropertyDescriptor>(10);
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (2)
19private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 20private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>();
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
181_importBuilders ??= new Dictionary<ParameterInfo, Action<ImportConventionBuilder>>();
System.Composition.Hosting (4)
System\Composition\Hosting\Core\ExportDescriptorProvider.cs (1)
26protected static readonly IDictionary<string, object> NoMetadata = new ReadOnlyDictionary<string, object>(new Dictionary<string, object>());
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (2)
13private Dictionary<CompositionContract, ExportDescriptor[]> _partDefinitions = new Dictionary<CompositionContract, ExportDescriptor[]>(); 29var updatedDefinitions = new Dictionary<CompositionContract, ExportDescriptor[]>(_partDefinitions);
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
15private readonly Dictionary<CompositionContract, UpdateResult> _updateResults = new Dictionary<CompositionContract, UpdateResult>();
System.Composition.Runtime (2)
System\Composition\CompositionContext.cs (1)
181new Dictionary<string, object> { { ImportManyImportMetadataConstraintName, true } });
System\Composition\Hosting\Core\CompositionContract.cs (1)
164var remainingConstraints = new Dictionary<string, object>(_metadataConstraints);
System.Composition.TypedParts (10)
System\Composition\Hosting\SinglePartExportDescriptorProvider.cs (1)
19Metadata = metadata ?? new Dictionary<string, object>();
System\Composition\TypedParts\ContractHelpers.cs (3)
50importMetadata ??= new Dictionary<string, object>(); 60importMetadata ??= new Dictionary<string, object>(); 75importMetadata ??= new Dictionary<string, object>();
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
36private static readonly IDictionary<string, object> s_noMetadata = new Dictionary<string, object>(); 210var partMetadata = new Dictionary<string, object>();
System\Composition\TypedParts\Discovery\TypeInspector.cs (3)
16private static readonly IDictionary<string, object> s_noMetadata = new Dictionary<string, object>(); 57IDictionary<string, object> metadata = new Dictionary<string, object>(); 83IDictionary<string, object> metadata = new Dictionary<string, object>();
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
16private readonly Dictionary<CompositionContract, ICollection<DiscoveredExport>> _discoveredParts = new Dictionary<CompositionContract, ICollection<DiscoveredExport>>();
System.Configuration.ConfigurationManager (2)
System\Configuration\BaseConfigurationRecord.cs (1)
413indirectLocationInputs ??= new Dictionary<string, List<SectionInput>>(1);
System\Configuration\ConfigurationElement.cs (1)
793s_perTypeValidators ??= new Dictionary<Type, ConfigurationValidatorBase>();
System.Console (2)
System\TerminalFormatStrings.cs (1)
54public readonly Dictionary<string, ConsoleKeyInfo> KeyFormatToConsoleKey = new(StringComparer.Ordinal);
System\TermInfo.Database.cs (1)
254var extendedStrings = new Dictionary<string, string>(extendedStringCount);
System.Data.Common (12)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
424var parsetable = new Dictionary<string, string>();
System\Data\Common\AdapterUtil.Common.cs (1)
782Dictionary<string, int> hash = new Dictionary<string, int>(columnNameArray.Length, StringComparer.InvariantCultureIgnoreCase);
System\Data\Common\DbConnectionOptions.cs (1)
39_parsetable = new Dictionary<string, string?>();
System\Data\Common\DbConnectionStringBuilder.cs (1)
65values = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
System\Data\Common\ObjectStorage.cs (2)
610new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>( 620cache = new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>(
System\Data\DataColumnCollection.cs (1)
41_columnFromName = new Dictionary<string, DataColumn?>();
System\Data\DataView.cs (4)
74private Dictionary<DataRow, DataRowView> _rowViewCache = new Dictionary<DataRow, DataRowView>(DataRowReferenceComparer.s_default); 79private readonly Dictionary<DataRow, DataRowView> _rowViewBuffer = new Dictionary<DataRow, DataRowView>(DataRowReferenceComparer.s_default); 911_findIndexes ??= new Dictionary<string, Index>(); 1451Dictionary<DataRow, DataRowView> rvc = new Dictionary<DataRow, DataRowView>(CountFromIndex, DataRowReferenceComparer.s_default);
System\Data\XMLSchema.cs (1)
687_tableDictionary = new Dictionary<DataTable, List<DataTable>>();
System.Data.Odbc (8)
Common\System\Data\Common\DbConnectionOptions.cs (1)
47_parsetable = new Dictionary<string, string?>();
Common\System\Data\Common\DBConnectionString.cs (1)
92_parsetable = new Dictionary<string, string?>(_parsetable);
src\runtime\src\libraries\Common\src\System\Data\Common\BasicFieldNameLookup.cs (1)
130Dictionary<string, int> hash = new Dictionary<string, int>(length);
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
424var parsetable = new Dictionary<string, string>();
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (3)
31_connectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(); 221Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(1 + connectionPoolGroups.Count); 303Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(connectionPoolGroups.Count);
System\Data\Odbc\OdbcConnectionStringbuilder.cs (1)
28private static readonly Dictionary<string, Keywords> s_keywords = new Dictionary<string, Keywords>(2, StringComparer.OrdinalIgnoreCase)
System.Data.OleDb (8)
OleDbConnectionString.cs (1)
262udlcache = new Dictionary<string, string>();
OleDbConnectionStringBuilder.cs (2)
39private static readonly Dictionary<string, Keywords> s_keywords = new Dictionary<string, Keywords>(5, StringComparer.OrdinalIgnoreCase) 419providerInfo = new Dictionary<string, OleDbPropertyInfo>(StringComparer.OrdinalIgnoreCase);
PropertyInfoSet.cs (1)
68propertyLookup = new Dictionary<string, OleDbPropertyInfo>(StringComparer.OrdinalIgnoreCase);
System\Data\ProviderBase\DbConnectionFactory.cs (3)
34_connectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(); 383Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(1 + connectionPoolGroups.Count); 489Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(connectionPoolGroups.Count);
System\Data\ProviderBase\DbConnectionPool.cs (1)
70_transactedCxns = new Dictionary<SysTx.Transaction, TransactedConnectionList>();
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Activity.cs (1)
1150Interlocked.CompareExchange(ref _customProperties, new Dictionary<string, object>(), null);
System\Diagnostics\DsesActivitySourceListener.cs (1)
73var specs = _specsBySourceNameAndActivityName ??= new(SpecLookupKeyComparer.Instance);
System\Diagnostics\Metrics\AggregationManager.cs (1)
27private Dictionary<Instrument, bool> _instruments = new();
System\Diagnostics\Metrics\Meter.cs (1)
20private Dictionary<string, List<Instrument>> _nonObservableInstrumentsCache = new();
System\Diagnostics\Metrics\MeterListener.cs (1)
271callbacksArguments = new Dictionary<Instrument, object?>();
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\ProviderMetadataCachedInformation.cs (1)
69_cache = new Dictionary<ProviderMetadataId, CacheItem>();
System.Diagnostics.PerformanceCounter (4)
System\Diagnostics\PerformanceData\CounterSet.cs (2)
47_stringToId = new Dictionary<string, int>(); 48_idToCounter = new Dictionary<int, CounterType>();
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
112_counters = new Dictionary<int, CounterData>();
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
35private static readonly Dictionary<object, int> s_counterSetList = new Dictionary<object, int>();
System.Diagnostics.Process (3)
System\Diagnostics\ProcessStartInfo.cs (1)
102_environmentVariables = new DictionaryWrapper(new Dictionary<string, string?>(
System\Diagnostics\ProcessWaitState.Unix.cs (2)
91new Dictionary<int, ProcessWaitState>(); 97new Dictionary<int, ProcessWaitState>();
System.DirectoryServices.AccountManagement (9)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (1)
39NonPresentAttrDefaultStateMapping ??= new Dictionary<string, bool>();
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (2)
1011_usersVisited = new Dictionary<string, bool>(); 1273private Dictionary<string, bool> _usersVisited = new Dictionary<string, bool>();
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (3)
108TypeToLdapPropListMap = new Dictionary<int, Dictionary<Type, StringCollection>>(); 114Dictionary<string, string[]> propertyNameToLdapAttr = new Dictionary<string, string[]>(); 116Dictionary<Type, StringCollection> TypeToLdapDict = new Dictionary<Type, StringCollection>();
System\DirectoryServices\AccountManagement\ExtensionCache.cs (1)
52private readonly Dictionary<string, ExtensionCacheValue> _cache = new Dictionary<string, ExtensionCacheValue>();
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (2)
45s_validPropertyMap = new Dictionary<string, ObjectMask>(); 47s_maskMap = new Dictionary<Type, ObjectMask>();
System.DirectoryServices.Protocols (2)
System\DirectoryServices\Protocols\common\ResultCode.cs (1)
57private static readonly Dictionary<ResultCode, string> s_resultCodeMapping = new Dictionary<ResultCode, string>(capacity: 43)
System\DirectoryServices\Protocols\ldap\LdapException.cs (1)
40private static readonly Dictionary<LdapError, string> s_resultCodeMapping = new Dictionary<LdapError, string>(capacity: 20)
System.Drawing.Common (1)
System\Drawing\Gdiplus.cs (1)
18internal static IDictionary<object, object> ThreadData => t_threadData ??= new Dictionary<object, object>();
System.Drawing.Primitives (2)
src\runtime\src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
16var colors = new Dictionary<string, Color>(StringComparer.OrdinalIgnoreCase);
System\Drawing\ColorTranslator.cs (1)
402s_htmlSysColorTable = new Dictionary<string, Color>(27)
System.Formats.Nrbf (2)
System\Formats\Nrbf\ClassInfo.cs (1)
55Dictionary<string, int> memberNames = new(StringComparer.Ordinal);
System\Formats\Nrbf\RecordMap.cs (1)
14private readonly Dictionary<SerializationRecordId, SerializationRecord> _map = new();
System.Formats.Tar (7)
System\Formats\Tar\TarHeader.cs (2)
87internal Dictionary<string, string> ExtendedAttributes => _ea ??= new Dictionary<string, string>(); 149_ea ??= new Dictionary<string, string>();
System\Formats\Tar\TarHeader.Read.cs (1)
104_ea ??= new Dictionary<string, string>();
System\Formats\Tar\TarHeader.Write.cs (1)
909CollectExtendedAttributesFromStandardFieldsIfNeeded(_ea ??= new Dictionary<string, string>());
System\Formats\Tar\TarWriter.Unix.cs (3)
13private readonly Dictionary<uint, string> _userIdentifiers = new Dictionary<uint, string>(); 14private readonly Dictionary<uint, string> _groupIdentifiers = new Dictionary<uint, string>(); 34_hardLinkTargets ??= new Dictionary<(long, long), string>();
System.IO.Compression (1)
System\IO\Compression\ZipArchive.cs (1)
193_entriesDictionary = new Dictionary<string, ZipArchiveEntry>();
System.IO.Packaging (18)
System\IO\Packaging\ContentType.cs (2)
144(_parameterDictionary ??= new Dictionary<string, string>()).GetEnumerator(); 335(_parameterDictionary ??= new Dictionary<string, string>()).Add(
System\IO\Packaging\OrderedDictionary.cs (1)
22_dictionary = new Dictionary<TKey, LinkedListNode<TValue>>(initialCapacity);
System\IO\Packaging\Package.cs (1)
417Dictionary<string, KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>> partDictionary = new(parts.Length);
System\IO\Packaging\PartBasedPackageProperties.cs (1)
838private readonly Dictionary<PackageXmlEnum, object> _propertyDictionary = new Dictionary<PackageXmlEnum, object>(NumCoreProperties);
System\IO\Packaging\XmlCompatibilityReader.cs (9)
820_subsumingNamespaces ??= new Dictionary<string, object?>(); 846_knownNamespaces ??= new Dictionary<string, object?>(); 1647_ignorables ??= new Dictionary<string, object?>(); 1653_processContents ??= new Dictionary<string, ProcessContentSet>(); 1665_preserveElements ??= new Dictionary<string, PreserveItemSet>(); 1677_preserveAttributes ??= new Dictionary<string, PreserveItemSet>(); 1833private readonly Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 1835private readonly Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 1836private readonly Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\IO\Packaging\ZipPackage.cs (4)
776_defaultDictionary = new Dictionary<string, ContentType>(DefaultDictionaryInitialSize, s_extensionEqualityComparer); 950_overrideDictionary ??= new Dictionary<PackUriHelper.ValidatedPartUri, ContentType>( 1372_extensionDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, s_extensionEqualityComparer); 1373_ignoredItemDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, StringComparer.Ordinal);
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
236private static readonly Dictionary<string, SharedServer> s_servers = new Dictionary<string, SharedServer>();
System.Linq (10)
System\Linq\AggregateBy.cs (2)
119Dictionary<TKey, TAccumulate> dict = new(keyComparer); 151Dictionary<TKey, TAccumulate> dict = new(keyComparer);
System\Linq\CountBy.cs (1)
56Dictionary<TKey, int> countsBy = new(keyComparer);
System\Linq\ToCollection.cs (7)
105return new(source, comparer); 155return new Dictionary<TKey, TSource>(comparer); 170Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(capacity, comparer); 181Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(source.Length, comparer); 213return new Dictionary<TKey, TElement>(comparer); 228Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(capacity, comparer); 239Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(source.Length, comparer);
System.Linq.AsyncEnumerable (11)
System\Linq\AggregateBy.cs (4)
64Dictionary<TKey, TAccumulate> dict = new(keyComparer); 135Dictionary<TKey, TAccumulate> dict = new(keyComparer); 202Dictionary<TKey, TAccumulate> dict = new(keyComparer); 271Dictionary<TKey, TAccumulate> dict = new(keyComparer);
System\Linq\CountBy.cs (2)
42Dictionary<TKey, int> countsBy = new(keyComparer); 93Dictionary<TKey, int> countsBy = new(keyComparer);
System\Linq\ToDictionaryAsync.cs (5)
37Dictionary<TKey, TValue> d = new Dictionary<TKey, TValue>(comparer); 92Dictionary<TKey, TSource> d = new(comparer); 132Dictionary<TKey, TSource> d = new(comparer); 177Dictionary<TKey, TElement> d = new(comparer); 224Dictionary<TKey, TElement> d = new(comparer);
System.Linq.Expressions (28)
System\Dynamic\ExpandoClass.cs (1)
92_transitions ??= new Dictionary<int, List<WeakReference>>();
System\Linq\Expressions\Compiler\AnalyzedTree.cs (2)
10internal readonly Dictionary<object, CompilerScope> Scopes = new Dictionary<object, CompilerScope>(); 11internal readonly Dictionary<LambdaExpression, BoundConstants> Constants = new Dictionary<LambdaExpression, BoundConstants>();
System\Linq\Expressions\Compiler\BoundConstants.cs (3)
60private readonly Dictionary<object, int> _indexes = new Dictionary<object, int>(ReferenceEqualityComparer.Instance); 65private readonly Dictionary<TypedConstant, int> _references = new Dictionary<TypedConstant, int>(); 70private readonly Dictionary<TypedConstant, LocalBuilder> _cache = new Dictionary<TypedConstant, LocalBuilder>();
System\Linq\Expressions\Compiler\CompilerScope.cs (3)
64internal readonly Dictionary<ParameterExpression, VariableStorageKind> Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(); 94private readonly Dictionary<ParameterExpression, Storage> _locals = new Dictionary<ParameterExpression, Storage>(); 102Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(variables.Count);
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
72curTypeInfo.TypeChain ??= new Dictionary<Type, TypeInfo>();
System\Linq\Expressions\Compiler\HoistedLocals.cs (1)
69Dictionary<Expression, int> indexes = new Dictionary<Expression, int>(vars.Count);
System\Linq\Expressions\Compiler\KeyedStack.cs (1)
14private readonly Dictionary<TKey, Stack<TValue>> _data = new Dictionary<TKey, Stack<TValue>>();
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
384_labels ??= new Dictionary<LabelTarget, LabelInfo>();
System\Linq\Expressions\Compiler\LambdaCompiler.cs (1)
49private readonly Dictionary<LabelTarget, LabelInfo> _labelInfo = new Dictionary<LabelTarget, LabelInfo>();
System\Linq\Expressions\Compiler\VariableBinder.cs (1)
222referenceScope.ReferenceCount ??= new Dictionary<ParameterExpression, int>();
System\Linq\Expressions\DebugViewWriter.cs (1)
80ids = new Dictionary<T, int>();
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
38_ids ??= new Dictionary<object, int>();
System\Linq\Expressions\Interpreter\InstructionList.cs (1)
851private static readonly Dictionary<FieldInfo, Instruction> s_loadFields = new Dictionary<FieldInfo, Instruction>();
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
1653var caseDict = new Dictionary<T, int>(); 1695var caseDict = new Dictionary<string, int>(); 2794var mapping = new Dictionary<ParameterExpression, LocalVariable>(); 2807private readonly Dictionary<ParameterExpression, int> _definedParameters = new Dictionary<ParameterExpression, int>();
System\Linq\Expressions\Interpreter\LightLambda.cs (3)
39private readonly Dictionary<int, int> _tryStart = new Dictionary<int, int>(); 40private readonly Dictionary<int, string> _handlerEnter = new Dictionary<int, string>(); 41private readonly Dictionary<int, int> _handlerExit = new Dictionary<int, int>();
System\Linq\Expressions\Interpreter\LocalVariables.cs (1)
160_closureVariables ??= new Dictionary<ParameterExpression, LocalVariable>();
System\Linq\Expressions\Interpreter\Utilities.cs (1)
321_dict = new Dictionary<TKey, TValue>();
System\Runtime\CompilerServices\CallSiteBinder.cs (1)
205Interlocked.CompareExchange(ref Cache, new Dictionary<Type, object>(), null);
System.Linq.Parallel (7)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
284new Dictionary<Wrapper<TInputOutput>, Pair<TInputOutput, TLeftKey>>(
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
270_hashLookup = new Dictionary<Wrapper<TInputOutput>, Pair<TInputOutput, TLeftKey>>(_comparer);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
342new Dictionary<Wrapper<TInputOutput>, Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>>(wrapperComparer);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
214_hashLookup = new Dictionary<Wrapper<TInputOutput>, TKey>(
System\Linq\Parallel\Utils\Lookup.cs (1)
46_dict = new Dictionary<TKey, IGrouping<TKey, TElement>>(_comparer);
System\Linq\ParallelEnumerable.cs (2)
4965Dictionary<TKey, TSource> result = new Dictionary<TKey, TSource>(comparer); 5063Dictionary<TKey, TElement> result = new Dictionary<TKey, TElement>(comparer);
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
152_equivalentTypeCache ??= new Dictionary<Type, Type> 422_targetCache = new Dictionary<LabelTarget, LabelTarget>();
System.Net.Http (10)
src\runtime\src\libraries\Common\src\System\Collections\Generic\BidirectionalDictionary.cs (2)
18_forward = new Dictionary<T1, T2>(capacity); 19_backward = new Dictionary<T2, T1>(capacity);
System\Net\Http\Headers\HttpHeaders.cs (1)
1573var dictionary = new Dictionary<HeaderDescriptor, object>(ArrayThreshold);
System\Net\Http\HttpRequestOptions.cs (1)
17private Dictionary<string, object?> Options { get; } = new Dictionary<string, object?>();
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
238internal readonly Dictionary<string, string> Parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
828altSvcBlocklist = new Dictionary<HttpAuthority, Exception?>();
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
147_httpStreams = new Dictionary<int, Http2Stream>();
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
29private readonly Dictionary<QuicStream, Http3RequestStream> _activeRequests = new Dictionary<QuicStream, Http3RequestStream>();
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (1)
25_cache ??= new Dictionary<CredentialCacheKey, NetworkCredential>();
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (1)
504_settings._properties ??= new Dictionary<string, object?>();
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
574public IDictionary<string, object> Properties => field ??= new Dictionary<string, object>();
System.Net.HttpListener (7)
System\Net\Managed\HttpEndPointListener.cs (3)
72_prefixes = new Dictionary<ListenerPrefix, HttpListener>(); 356p2 = new Dictionary<ListenerPrefix, HttpListener>(prefs); 399p2 = new Dictionary<ListenerPrefix, HttpListener>(prefs);
System\Net\Managed\HttpEndPointManager.cs (2)
40private static readonly Dictionary<IPAddress, Dictionary<int, HttpEndPointListener>> s_ipEndPoints = new Dictionary<IPAddress, Dictionary<int, HttpEndPointListener>>(); 144p = new Dictionary<int, HttpEndPointListener>();
System\Net\Managed\HttpListener.Managed.cs (2)
15private readonly Dictionary<HttpListenerContext, HttpListenerContext> _listenerContexts = new Dictionary<HttpListenerContext, HttpListenerContext>(); 18private readonly Dictionary<HttpConnection, HttpConnection> _connections = new Dictionary<HttpConnection, HttpConnection>();
System.Net.Mail (10)
System\Net\Mail\MailHeaderInfo.cs (1)
74var headers = new Dictionary<string, int>((int)MailHeaderID.ZMaxEnumValue + 1, StringComparer.OrdinalIgnoreCase);
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
11private readonly Dictionary<object, NetworkCredential> _sessions = new Dictionary<object, NetworkCredential>();
System\Net\Mail\SmtpNegotiateAuthenticationModule.cs (1)
15private readonly Dictionary<object, NegotiateAuthentication> _sessions = new Dictionary<object, NegotiateAuthentication>();
System\Net\Mail\SmtpNtlmAuthenticationModule.cs (1)
12private readonly Dictionary<object, NegotiateAuthentication> _sessions = new Dictionary<object, NegotiateAuthentication>();
System\Net\Mime\ContentDisposition.cs (1)
43new Dictionary<string, TrackingValidationObjectDictionary.ValidateAndParseValue>() {
System\Net\Mime\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string>.AlternateLookup<ReadOnlySpan<char>> s_extensionToMediaType = new Dictionary<string, string>(ExtensionToMediaTypeCount, StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string>.AlternateLookup<ReadOnlySpan<char>> s_mediaTypeToExtension = new Dictionary<string, string>(MediaTypeToExtensionCount, StringComparer.OrdinalIgnoreCase)
System\Net\Mime\SmtpDateTime.cs (1)
62internal static readonly Dictionary<string, TimeSpan> s_timeZoneOffsetLookup = new Dictionary<string, TimeSpan>()
System\Net\TrackingValidationObjectDictionary.cs (2)
66_internalObjects ??= new Dictionary<string, object>(); 136_internalObjects ??= new Dictionary<string, object>();
System.Net.NameResolution (2)
System\Net\Dns.cs (1)
921private static readonly Dictionary<object, Task> s_tasks = new Dictionary<object, Task>();
System\Net\DnsResolverPal.Managed.cs (1)
215glue ??= new Dictionary<string, List<AddressRecord>>(StringComparer.OrdinalIgnoreCase);
System.Net.NetworkInformation (5)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
94Dictionary<int, LinuxNetworkInterface> interfacesByIndex = new Dictionary<int, LinuxNetworkInterface>(interfaceCount);
System\Net\NetworkInformation\NetworkAddressChange.cs (2)
19new Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>(); 23new Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>();
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (2)
272addressChangedSubscribers = new Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>(s_addressChangedSubscribers); 308new Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>(
System.Net.Primitives (2)
System\Net\CredentialCache.cs (2)
44_cache ??= new Dictionary<CredentialCacheKey, NetworkCredential>(); 70_cacheForHosts ??= new Dictionary<CredentialHostKey, NetworkCredential>();
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
171_sslSessions = new Dictionary<string, IntPtr>();
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
260dict = new Dictionary<TKey, TItem>(comparer);
System.Private.CoreLib (68)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (2)
24private static readonly Dictionary<string, IsolatedComponentLoadContext> s_assemblyLoadContexts = new Dictionary<string, IsolatedComponentLoadContext>(StringComparer.InvariantCulture); 25private static readonly Dictionary<IntPtr, Delegate> s_delegates = new Dictionary<IntPtr, Delegate>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
88Interlocked.CompareExchange(ref s_dataStore, new Dictionary<string, object?>(), null); 224Interlocked.CompareExchange(ref s_switches, new Dictionary<string, bool>(), null);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
34public static ReadOnlyDictionary<TKey, TValue> Empty { get; } = new ReadOnlyDictionary<TKey, TValue>(new Dictionary<TKey, TValue>());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (1)
72_metadata ??= new Dictionary<string, string?>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (1)
476Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
36private readonly Dictionary<EventListener, EventListenerSubscription> m_subscriptions = new Dictionary<EventListener, EventListenerSubscription>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1257args = new Dictionary<string, string?>(4);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (7)
2695commandArgs.Arguments ??= new Dictionary<string, string?>(); 2915Dictionary<int, bool> eventEnabled = new Dictionary<int, bool>(m_eventData.Count); 3061eventData = new Dictionary<int, EventMetadata>(); 3589enabledDict = new Dictionary<int, bool>(m_eventData.Count); 3668eventsByName ??= new Dictionary<string, string>(); 3945private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3947private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (10)
60opcodeTab = new Dictionary<int, string>(); 61stringTab = new Dictionary<string, string>(); 63perEventByteArrayArgIndices = new Dictionary<string, List<int>>(); 99taskTab ??= new Dictionary<int, string>(); 122keywordTab ??= new Dictionary<ulong, string>(); 147channelTab ??= new Dictionary<int, ChannelInfo>(4); 266mapsTab ??= new Dictionary<string, Type>(); 314channelTab ??= new Dictionary<int, ChannelInfo>(4); 640channelTab ??= new Dictionary<int, ChannelInfo>(4); 664taskTab ??= new Dictionary<int, string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
143Dictionary<Type, TraceLoggingTypeInfo> cache = threadCache ??= new Dictionary<Type, TraceLoggingTypeInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Unix.cs (1)
97var results = new Dictionary<string, string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
979private static readonly Dictionary<string, IntPtr> s_sortNameToSortHandleCache = new Dictionary<string, IntPtr>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (3)
153new Dictionary<string, string>(255, StringComparer.OrdinalIgnoreCase) 447var newTable = new Dictionary<string, CultureData>(); 682var newTable = new Dictionary<string, CultureData>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (2)
1122cache = new Dictionary<string, CultureInfo>(); 1137cache = new Dictionary<int, CultureInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
945var dictionary = new Dictionary<ulong, char>(tableData.Length / (sizeof(ulong) + sizeof(char)));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
19private static readonly Dictionary<string, Assembly> s_loadfile = new Dictionary<string, Assembly>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
22private readonly Dictionary<Module, NotAnnotatedStatus> _publicOnlyModules = new(); 23private readonly Dictionary<MemberInfo, NullabilityState> _context = new();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
286new Dictionary<string, ResourceLocator>(FastResourceComparer.Default),
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (3)
179_resourceSets = new Dictionary<string, ResourceSet>(); 246_resourceSets = new Dictionary<string, ResourceSet>(); 294_resourceSets = new Dictionary<string, ResourceSet>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
100_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 128_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (2)
30_table = new Dictionary<object, object?>(); 217caseTable = new Dictionary<string, object?>(copyOfTable.Count, StringComparer.OrdinalIgnoreCase);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
186_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 313caseInsensitiveTable = new Dictionary<string, ResourceLocator>(StringComparer.OrdinalIgnoreCase);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
23return new Dictionary<int, List<Token>>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
40Interlocked.CompareExchange(ref s_allContexts, new Dictionary<long, WeakReference<AssemblyLoadContext>>(), null) ??
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
43_nameToIndex = new Dictionary<string, int>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (1)
74_children = new Dictionary<char, int>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
86Dictionary<int, int> prefixToBucket = new(bucketCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (1)
102Dictionary<int, EncodingInfo> result = new Dictionary<int, EncodingInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
199Interlocked.CompareExchange(ref s_currentActiveTasks, new Dictionary<int, Task>(), null) ?? 228Interlocked.CompareExchange(ref s_runtimeAsyncContinuationTimestamps, new Dictionary<object, long>(ReferenceEqualityComparer.Instance), null) ?? 235Interlocked.CompareExchange(ref s_runtimeAsyncTaskTimestamps, new Dictionary<int, long>(), null) ??
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
675nameToSlotMap = new Dictionary<string, LocalDataStoreSlot>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
615private readonly Dictionary<int, bool> _usedIdToTracksAllValuesMap = new Dictionary<int, bool>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.WaitableObject.Unix.cs (1)
89s_namedObjects ??= new Dictionary<string, WaitableObject>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (2)
1201cachedData._timeZonesUsingAlternativeIds ??= new Dictionary<string, TimeZoneInfo>(StringComparer.OrdinalIgnoreCase); 1288cachedData._systemTimeZones ??= new Dictionary<string, TimeZoneInfo>(StringComparer.OrdinalIgnoreCase)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
291cachedData._systemTimeZones ??= new Dictionary<string, TimeZoneInfo>(StringComparer.OrdinalIgnoreCase) 304Dictionary<string, TimeZoneInfo> filteredTimeZones = new Dictionary<string, TimeZoneInfo>(capacity: initialCapacity, comparer: StringComparer.OrdinalIgnoreCase)
System\AppContext.NativeAot.cs (1)
16var dataStore = new Dictionary<string, object?>((int)count);
System\GC.NativeAot.cs (1)
701Configurations = new Dictionary<string, object>()
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (1)
24Dictionary<MethodBase, CustomMethodInvokerAction> map = new Dictionary<MethodBase, CustomMethodInvokerAction>();
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.String.cs (1)
22Dictionary<MethodBase, CustomMethodInvokerAction> map = new Dictionary<MethodBase, CustomMethodInvokerAction>();
System.Private.CoreLib.Generators (4)
NativeRuntimeEventSourceGenerator.cs (4)
239var templateDict = new Dictionary<string, XElement>(); 390private static readonly Dictionary<string, string> manifestsToGenerate = new() 395private static readonly Dictionary<string, string> providerNameToClassNameMap = new() 400private static readonly Dictionary<string, string> manifestTypeToCSharpTypeMap = new()
System.Private.DataContractSerialization (37)
System\Runtime\Serialization\ClassDataContract.cs (4)
806Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 1224_knownDataContracts ??= new DataContractDictionary(); 1365boundContracts ??= new Dictionary<DataContract, DataContract>(); 1423Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(Members.Count);
System\Runtime\Serialization\CollectionDataContract.cs (2)
708_knownDataContracts ??= new DataContractDictionary(); 1401boundContracts ??= new Dictionary<DataContract, DataContract>();
System\Runtime\Serialization\DataContract.cs (6)
613s_nameToBuiltInContract ??= new Dictionary<XmlQualifiedName, DataContract?>(); 636s_typeNameToBuiltInContract ??= new Dictionary<string, DataContract?>(); 928s_clrTypeStrings = new Dictionary<string, XmlDictionaryString>(); 1960Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 2053knownDataContracts ??= new DataContractDictionary(); 2079nameToDataContractTable = new DataContractDictionary();
System\Runtime\Serialization\DataContractSet.cs (4)
58_contracts ??= new DataContractDictionary(); 61_processedContracts ??= new Dictionary<DataContract, object>(); 324_referencedTypesDictionary = new Dictionary<XmlQualifiedName, object>(); 348_referencedCollectionTypesDictionary = new Dictionary<XmlQualifiedName, object>();
System\Runtime\Serialization\EnumDataContract.cs (3)
78private static readonly Dictionary<Type, XmlQualifiedName> s_typeToName = new Dictionary<Type, XmlQualifiedName>(); 79private static readonly Dictionary<XmlQualifiedName, Type> s_nameToType = new Dictionary<XmlQualifiedName, Type>(); 219Dictionary<string, DataMember> memberValuesTable = new Dictionary<string, DataMember>();
System\Runtime\Serialization\HybridObjectCache.cs (2)
22_objectDictionary ??= new Dictionary<string, object?>(); 36_referencedObjectDictionary ??= new Dictionary<string, object?>();
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
158Dictionary<string, object?> memberTable = new Dictionary<string, object?>(memberCount);
System\Runtime\Serialization\Json\JsonDataContract.cs (2)
291_knownDataContracts ??= new DataContractDictionary(); 317private static readonly Dictionary<DataContract, JsonReadWriteDelegates> s_jsonDelegates = new Dictionary<DataContract, JsonReadWriteDelegates>();
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
219Dictionary<object, object?> genericDictionaryObj = new Dictionary<object, object?>(dictionaryObj.Count);
System\Runtime\Serialization\ObjectReferenceStack.cs (1)
36_objectDictionary ??= new Dictionary<object, object?>();
System\Runtime\Serialization\ReflectionReader.cs (1)
503object newGenericDict = new Dictionary<object, object>();
System\Runtime\Serialization\SchemaImporter.cs (3)
186Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 224DataContractDictionary knownDataContracts = new DataContractDictionary(); 242SchemaObjectDictionary schemaObjects = new SchemaObjectDictionary();
System\Runtime\Serialization\XmlDataContract.cs (1)
198_knownDataContracts ??= new DataContractDictionary();
System\Runtime\Serialization\XmlObjectSerializerContext.cs (2)
193DataContractDictionary dataContracts = new DataContractDictionary(); 194Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>();
System\Xml\XmlBinaryReaderSession.cs (1)
35_stringDict ??= new Dictionary<int, XmlDictionaryString>();
System\Xml\XmlBinaryWriterSession.cs (1)
183_dictionary = new Dictionary<K, V>();
System\Xml\XmlDictionary.cs (2)
26_lookup = new Dictionary<string, XmlDictionaryString>(); 33_lookup = new Dictionary<string, XmlDictionaryString>(capacity);
System.Private.Windows.Core (2)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (1)
35s_knownTypes ??= new(60, TypeNameComparer.FullNameMatch)
System\Private\Windows\Ole\DataStore.cs (1)
21private readonly Dictionary<string, DataStoreEntry> _mappedData = new(BackCompatibleStringComparer.Default);
System.Private.Xml (90)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
347_namespaces = new Dictionary<string, NamespaceDecl>(); 1815Dictionary<string, string> nstable = new Dictionary<string, string>();
System\Xml\Core\QueryOutputWriter.cs (1)
59_lookupCDataElems = new Dictionary<XmlQualifiedName, int>();
System\Xml\Core\QueryOutputWriterV1.cs (1)
73_lookupCDataElems = new Dictionary<XmlQualifiedName, XmlQualifiedName?>();
System\Xml\Core\XmlSubtreeReader.cs (1)
1218return new Dictionary<string, string>();
System\Xml\Core\XmlTextWriter.cs (1)
1537_nsHashtable = new Dictionary<string, int>();
System\Xml\Core\XmlWellFormedWriter.cs (2)
1765_nsHashtable = new Dictionary<string, int>(); 2119_attrHashTable ??= new Dictionary<string, int>();
System\Xml\Dom\XmlNodeReader.cs (1)
987Dictionary<string, string> dict = new Dictionary<string, string>();
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
174_mappings = new Dictionary<Uri, PreloadedData>(16, uriComparer);
System\Xml\Schema\ContentValidator.cs (4)
50_names = new Dictionary<XmlQualifiedName, int>(); 117_wildcards ??= new Dictionary<string, int>(); 1445Dictionary<BitSet, int> stateTable = new(); 2120_elements = new Dictionary<XmlQualifiedName, int>(size);
System\Xml\Schema\DtdParser.cs (1)
1352_undeclaredNotations ??= new Dictionary<string, UndeclaredNotation>();
System\Xml\Schema\SchemaElementDecl.cs (2)
13private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attdefs = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 22private readonly Dictionary<XmlQualifiedName, XmlQualifiedName> _prohibitedAttributes = new Dictionary<XmlQualifiedName, XmlQualifiedName>();
System\Xml\Schema\SchemaInfo.cs (8)
27private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 28private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 38private readonly Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>(); 39private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 42private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 74_generalEntities ??= new Dictionary<XmlQualifiedName, SchemaEntity>(); 77_parameterEntities ??= new Dictionary<XmlQualifiedName, SchemaEntity>(); 101_notations ??= new Dictionary<string, SchemaNotation>();
System\Xml\Schema\XmlAtomicValue.cs (1)
71Dictionary<string, string> dict = new Dictionary<string, string>(1);
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
12private readonly Dictionary<XmlQualifiedName, XmlSchemaObject> _table = new Dictionary<XmlQualifiedName, XmlSchemaObject>();
System\Xml\Serialization\CodeGenerator.cs (4)
93_freeLocals = new Dictionary<(Type, string), Queue<LocalBuilder>>(); 94_argList = new Dictionary<string, ArgBuilder>(); 149private readonly Dictionary<Type, LocalBuilder> _tmpLocals = new Dictionary<Type, LocalBuilder>(); 1565_locals = new Dictionary<string, LocalBuilder>();
System\Xml\Serialization\Compilation.cs (6)
469var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 560var serializers = new Dictionary<string, string>(); 740private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 780? new Dictionary<TempAssemblyCacheKey, TempAssembly>(c) 781: new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 787cache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(_fastCache); // Clone
System\Xml\Serialization\Models.cs (2)
21private readonly Dictionary<Type, TypeModel> _models = new Dictionary<Type, TypeModel>(); 22private readonly Dictionary<Type, TypeModel> _arrayModels = new Dictionary<Type, TypeModel>();
System\Xml\Serialization\NameTable.cs (1)
41private readonly Dictionary<NameKey, object?> _table = new Dictionary<NameKey, object?>();
System\Xml\Serialization\Types.cs (1)
1217replaceList ??= new Dictionary<string, MemberInfo>();
System\Xml\Serialization\XmlAttributeOverrides.cs (2)
19private readonly Dictionary<Type, Dictionary<string, XmlAttributes?>> _types = new Dictionary<Type, Dictionary<string, XmlAttributes?>>(); 37members = new Dictionary<string, XmlAttributes?>();
System\Xml\Serialization\XmlSerializationILGen.cs (4)
19private readonly Dictionary<TypeMapping, string> _methodNames = new Dictionary<TypeMapping, string>(); 21private readonly Dictionary<string, MethodBuilderInfo> _methodBuilders = new Dictionary<string, MethodBuilderInfo>(); 23internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>(); 25internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
23private readonly Dictionary<string, string> _idNames = new Dictionary<string, string>(); 25private readonly Dictionary<string, FieldBuilder> _idNameFields = new Dictionary<string, FieldBuilder>(); 37internal Dictionary<string, EnumMapping> Enums => field ??= new Dictionary<string, EnumMapping>();
System\Xml\Serialization\XmlSerializer.cs (2)
715typedMappingTable = s_xmlSerializerTable.GetOrCreateValue(type, _ => new Dictionary<XmlSerializerMappingKey, XmlSerializer>()); 719var pendingKeys = new Dictionary<XmlSerializerMappingKey, int>();
System\Xml\Serialization\XmlSerializerNamespaces.cs (4)
35_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.NamespacesInternal); 43_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.Length); 54_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.Count); 103private Dictionary<string, XmlQualifiedName> NamespacesInternal => _namespaces ??= new Dictionary<string, XmlQualifiedName>();
System\Xml\XmlNamespacemanager.cs (3)
178_hashTable = new Dictionary<string, int>(_lastDecl); 210Dictionary<string, string> prefixes = new Dictionary<string, string>(_lastDecl + 1); 248Dictionary<string, string> dict = new Dictionary<string, string>(_lastDecl - i + 1);
System\Xml\XPath\Internal\XPathParser.cs (2)
814Dictionary<string, ParamInfo> table = new Dictionary<string, ParamInfo>(36); 848Dictionary<string, Axis.AxisType> table = new Dictionary<string, Axis.AxisType>(13);
System\Xml\XPath\XPathDocument.cs (2)
387_mapNmsp ??= new Dictionary<XPathNodeRef, XPathNodeRef>(); 417_idValueMap ??= new Dictionary<string, XPathNodeRef>();
System\Xml\XPath\XPathNavigator.cs (1)
481Dictionary<string, string> dict = new Dictionary<string, string>();
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
440public static readonly Dictionary<Type, XmlILStorageMethods> StorageMethods = new Dictionary<Type, XmlILStorageMethods>(13)
System\Xml\Xsl\IlGen\StaticDataManager.cs (1)
20private readonly Dictionary<T, int> _lookup = new Dictionary<T, int>();
System\Xml\Xsl\QIL\QilVisitor.cs (1)
439private readonly Dictionary<QilNode, bool> _visitedRef = new Dictionary<QilNode, bool>();
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
26_table = new Dictionary<XmlExtensionFunction, XmlExtensionFunction>();
System\Xml\Xsl\Runtime\XmlILIndex.cs (1)
24_table = new Dictionary<string, XmlQueryNodeSequence>();
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (2)
55private readonly Dictionary<string, string> _usedPrefixes = new Dictionary<string, string>(); //The prefies that used in the current scope 1400_conflictPrefixes ??= new Dictionary<string, string>(16);
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
165_decimalFormats ??= new Dictionary<XmlQualifiedName, DecimalFormat>();
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
790Dictionary<string, FunctionInfo> table = new Dictionary<string, FunctionInfo>(36);
System\Xml\Xsl\Xslt\Compiler.cs (5)
55public Dictionary<QilName, VarPar> AllGlobalVarPars = new Dictionary<QilName, VarPar>(); 56public Dictionary<QilName, Template> NamedTemplates = new Dictionary<QilName, Template>(); 57public Dictionary<QilName, AttributeSet> AttributeSets = new Dictionary<QilName, AttributeSet>(); 58public Dictionary<string, NsAlias> NsAliases = new Dictionary<string, NsAlias>(); 60private readonly Dictionary<string, int> _moduleOrder = new Dictionary<string, int>();
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
261public Dictionary<QilName, List<Pattern>> FixedNamePatterns = new Dictionary<QilName, List<Pattern>>();
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
579paramToTemplate = new Dictionary<VarPar, Template>(); 580paramToFunction = new Dictionary<VarPar, QilFunction>();
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (1)
305Dictionary<string, FunctionInfo> table = new Dictionary<string, FunctionInfo>(16);
System\Xml\Xsl\Xslt\Scripts.cs (1)
51private readonly Dictionary<string, Type?> _backingDictionary = new Dictionary<string, Type?>();
System\Xml\Xsl\Xslt\Stylesheet.cs (4)
21public Dictionary<QilName, XslFlags> ModeFlags = new Dictionary<QilName, XslFlags>(); 23public Dictionary<QilName, List<QilFunction>> ApplyFunctions = new Dictionary<QilName, List<QilFunction>>(); 33public Dictionary<QilName, AttributeSet>? AttributeSets = new Dictionary<QilName, AttributeSet>(); 47public Dictionary<QilName, List<TemplateMatch>> TemplateMatches = new Dictionary<QilName, List<TemplateMatch>>();
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (3)
40private Dictionary<Template, Stylesheet>? _fwdApplyImportsGraph = new Dictionary<Template, Stylesheet>(); 41private Dictionary<QilName, List<ProtoTemplate>>? _revApplyTemplatesGraph = new Dictionary<QilName, List<ProtoTemplate>>(); 47private readonly Dictionary<ModeName, VarPar> _applyTemplatesParams = new Dictionary<ModeName, VarPar>();
System.Reflection.DispatchProxy (4)
System\Reflection\DispatchProxyGenerator.cs (4)
109private readonly Dictionary<Type, Dictionary<Type, GeneratedTypeInfo>> _baseTypeAndInterfaceToGeneratedProxyType = new Dictionary<Type, Dictionary<Type, GeneratedTypeInfo>>(); 153interfaceToProxy = new Dictionary<Type, GeneratedTypeInfo>(); 333var propertyMap = new Dictionary<MethodInfo, PropertyAccessorInfo>(); 343var eventMap = new Dictionary<MethodInfo, EventAccessorInfo>();
System.Reflection.Emit (8)
System\Reflection\Emit\ILGeneratorImpl.cs (2)
31private Dictionary<Label, LabelInfo> _labelTable = new(2); 35private Dictionary<SymbolDocumentWriter, List<SequencePoint>> _documentToSequencePoints = new();
System\Reflection\Emit\ModuleBuilderImpl.cs (5)
22private readonly Dictionary<Assembly, AssemblyReferenceHandle> _assemblyReferences = new(); 23private readonly Dictionary<Type, EntityHandle> _typeReferences = new(); 24private readonly Dictionary<object, EntityHandle> _memberReferences = new(); 29private Dictionary<SymbolDocumentWriter, DocumentHandle> _docHandles = new(); 669_moduleReferences ??= new Dictionary<string, ModuleReferenceHandle>();
System\Reflection\Emit\TypeBuilderImpl.cs (1)
311_methodOverrides ??= new();
System.Reflection.Metadata (10)
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (1)
101_dictionary = new(capacity);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (3)
36private readonly Dictionary<string, UserStringHandle> _userStrings = new Dictionary<string, UserStringHandle>(256); 41private readonly Dictionary<string, StringHandle> _strings = new Dictionary<string, StringHandle>(256); 51private readonly Dictionary<Guid, GuidHandle> _guids = new Dictionary<Guid, GuidHandle>();
System\Reflection\Metadata\Internal\NamespaceCache.cs (3)
114var namespaceBuilderTable = new Dictionary<NamespaceDefinitionHandle, NamespaceDataBuilder>(); 140var namespaceTable = new Dictionary<NamespaceDefinitionHandle, NamespaceData>(); 169var namespaces = new Dictionary<string, NamespaceDataBuilder>();
System\Reflection\Metadata\Internal\VirtualHeap.cs (1)
43_blobs = new Dictionary<uint, PinnedBlob>();
System\Reflection\Metadata\MetadataReader.cs (2)
1438var groupedNestedTypes = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>.Builder>(); 1468var nestedTypesMap = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>>();
System.Reflection.MetadataLoadContext (1)
System\Reflection\PathAssemblyResolver.cs (1)
25private readonly Dictionary<string, List<string>> _fileToPaths = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
System.Resources.Extensions (8)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (3)
55_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 74_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 181_preserializedData ??= new Dictionary<string, PrecannedResource>(FastResourceComparer.Default);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
100_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 128_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
200_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 313caseInsensitiveTable = new Dictionary<string, ResourceLocator>(StringComparer.OrdinalIgnoreCase);
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
39private static readonly Dictionary<string, Type> s_primitiveTypes = new Dictionary<string, Type>(16, TypeNameComparer.Instance)
System.Resources.Writer (3)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (3)
55_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 74_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 181_preserializedData ??= new Dictionary<string, PrecannedResource>(FastResourceComparer.Default);
System.Runtime.Caching (3)
System\Runtime\Caching\MemoryCache.cs (2)
497Dictionary<string, object> h = new Dictionary<string, object>(); 794values ??= new Dictionary<string, object>();
System\Runtime\Caching\MemoryCacheEntry.cs (1)
167_fields._dependents ??= new Dictionary<MemoryCacheEntryChangeMonitor, MemoryCacheEntryChangeMonitor>();
System.Runtime.InteropServices.JavaScript (4)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (4)
16private readonly Dictionary<nint, WeakReference<JSObject>> ThreadCsOwnedObjects = new(); 18private readonly Dictionary<object, nint> ThreadJsOwnedObjects = new(ReferenceEqualityComparer.Instance); 20private readonly Dictionary<nint, PromiseHolder> ThreadJsOwnedHolders = new(); 26internal Dictionary<int, Action<IntPtr>> JSExportByHandle = new Dictionary<int, Action<IntPtr>>();
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationObjectManager.cs (1)
21_objectSeenTable = new Dictionary<object, object>();
System.Runtime.Serialization.Schema (8)
System\Runtime\Serialization\Schema\CodeExporter.cs (7)
47_namespaces = new Dictionary<string, string>(); 48_clrNamespaces = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 226ExportClassDataContractHierarchy(dataContract.XmlName, dataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object?>()); 941return GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object?>()); 1001DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>()); 1541Dictionary<string, object?> fragments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 1634Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System\Runtime\Serialization\Schema\ImportOptions.cs (1)
56public IDictionary<string, string> Namespaces => field ??= new Dictionary<string, string>();
System.Security.AccessControl (2)
System\Security\AccessControl\Privilege.cs (2)
27private static readonly Dictionary<Luid, string> s_privileges = new Dictionary<Luid, string>(); 28private static readonly Dictionary<string, Luid> s_luids = new Dictionary<string, Luid>();
System.Security.Claims (3)
System\Security\Claims\Claim.cs (3)
265_properties = new Dictionary<string, string>(); 300_properties = new Dictionary<string, string>(other._properties); 344public IDictionary<string, string> Properties => _properties ??= new Dictionary<string, string>();
System.Security.Cryptography (14)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\CryptoConfig.cs (2)
55Dictionary<string, string> ht = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase); 119Dictionary<string, object> ht = new Dictionary<string, object>(capacity: capacity, comparer: StringComparer.OrdinalIgnoreCase);
System\Security\Cryptography\OidLookup.cs (2)
99new Dictionary<string, string>(FriendlyNameToOidCount, StringComparer.OrdinalIgnoreCase); 102new Dictionary<string, string>(OidToFriendlyNameCount, StringComparer.Ordinal);
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
16new Dictionary<string, X509KeyUsageFlags>(NamedKeyUsageFlagsCount, StringComparer.OrdinalIgnoreCase)
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
18private readonly Dictionary<CoseHeaderLabel, CoseHeaderValue> _headerParameters = new Dictionary<CoseHeaderLabel, CoseHeaderValue>();
System.Security.Cryptography.Pkcs (11)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
17var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
17new Dictionary<string, CmsSignature>();
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpTransportSecurityHelpers.cs (1)
18private static Dictionary<string, int> s_targetNameCounter = new Dictionary<string, int>();
System.ServiceModel.NetFramingBase (5)
System\ServiceModel\Channels\ConnectionPool.cs (3)
31_endpointPools = new Dictionary<TKey, EndpointConnectionPool>(); 682readonly Dictionary<Uri, string> _forwardTable = new Dictionary<Uri, string>(); 683readonly Dictionary<string, ICollection<Uri>> _reverseTable = new Dictionary<string, ICollection<Uri>>();
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
17_registry = new Dictionary<string, List<ConnectionPool>>();
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
106_connectionMapping = new Dictionary<TItem, IdlingConnectionSettings>();
System.ServiceModel.Primitives (37)
Internals\System\Runtime\GeneratedXmlSerializers.cs (1)
12private static Dictionary<string, Type> s_generatedSerializers = new Dictionary<string, Type>();
Internals\System\Runtime\MruCache.cs (2)
61_items = new Dictionary<TKey, CacheEntry>(); 65_items = new Dictionary<TKey, CacheEntry>(comparer);
Internals\System\Xml\XmlMtomReader.cs (4)
452_mimeParts = new Dictionary<string, MimePart>(); 2227private Dictionary<string, MimeHeader> headers = new Dictionary<string, MimeHeader>(); 2406parameters = new Dictionary<string, string>(); 2417parameters = new Dictionary<string, string>();
System\IdentityModel\CryptoHelper.cs (1)
21private static Dictionary<string, Func<object>> s_algorithmDelegateDictionary = new Dictionary<string, Func<object>>();
System\IdentityModel\IdentityModelDictionary.cs (1)
49Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
23_properties = new Dictionary<string, object>();
System\IdentityModel\SecurityUtils.cs (1)
334Dictionary<string, object> properties = new Dictionary<string, object>();
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
33_properties = new Dictionary<string, object>();
System\ServiceModel\Channels\AddressHeaderCollection.cs (2)
139Dictionary<string, int> myHeaders = new Dictionary<string, int>(); 142Dictionary<string, int> otherHeaders = new Dictionary<string, int>();
System\ServiceModel\Channels\DeliveryStrategy.cs (1)
61items = new Dictionary<Int64, ItemType>();
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
480private Dictionary<IReliableChannelBinder, TState> _faultList = new Dictionary<IReliableChannelBinder, TState>();
System\ServiceModel\Channels\SecurityBindingElement.cs (4)
44_operationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 45_optionalOperationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 64_operationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>(); 70_optionalOperationSupportingTokenParameters = new Dictionary<string, SupportingTokenParameters>();
System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
190Dictionary<Type, byte> supportedChannels = new Dictionary<Type, byte>();
System\ServiceModel\Description\TypeLoader.cs (2)
52_contracts = new Dictionary<Type, ContractDescription>(); 53_messages = new Dictionary<Type, MessageDescriptionItems>();
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
752_xmlMappings = new Dictionary<string, XmlMembersMapping>();
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
36_operations = new Dictionary<string, ProxyOperationRuntime>();
System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
42_operationMap = new Dictionary<IntPtr, string>();
System\ServiceModel\MessageHeaderT.cs (1)
67private static Dictionary<Type, TypedHeaderManager> s_cache = new Dictionary<Type, TypedHeaderManager>();
System\ServiceModel\Security\ReceiveSecurityHeader.cs (1)
264_tokenPoliciesMapping = new Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>>();
System\ServiceModel\Security\ScopedMessagePartSpecification.cs (2)
20_actionParts = new Dictionary<string, MessagePartSpecification>(); 203_readOnlyNormalizedActionParts = new Dictionary<string, MessagePartSpecification>();
System\ServiceModel\Security\SecurityProtocol.cs (2)
260_mergedSupportingTokenProvidersMap = new Dictionary<string, Collection<SupportingTokenProviderSpecification>>(); 301ScopedSupportingTokenProviderSpecification = new Dictionary<string, ICollection<SupportingTokenProviderSpecification>>();
System\ServiceModel\Security\SendSecurityHeaderElementContainer.cs (1)
132_securityTokenMappedToIdentifierClause = new Dictionary<SecurityToken, SecurityKeyIdentifierClause>();
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (2)
25ScopedCertificates = new Dictionary<Uri, X509Certificate2>(); 37ScopedCertificates = new Dictionary<Uri, X509Certificate2>();
System\ServiceModel\ServiceModelDictionary.cs (1)
49Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
System\ServiceModel\SynchronizedKeyedCollection.cs (1)
203_dictionary = new Dictionary<K, T>(_comparer);
System.ServiceModel.Primitives.Tests (2)
ServiceModel\MessageContractTest.4.4.0.cs (2)
146Dictionary<string, string> properties = new Dictionary<string, string>(); 147Dictionary<string, List<string>> headers = new Dictionary<string, List<string>>();
System.ServiceModel.Syndication (4)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
556attrs ??= new Dictionary<XmlQualifiedName, string>();
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
19_attributeExtensions = new Dictionary<XmlQualifiedName, string>(); 41get => _attributeExtensions ??= new Dictionary<XmlQualifiedName, string>();
System\ServiceModel\Syndication\SyndicationContent.cs (1)
24get => _attributeExtensions ??= new Dictionary<XmlQualifiedName, string>();
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceController.cs (1)
334dependencyHash = new Dictionary<string, ServiceController>();
System.Speech (12)
Internal\SrgsCompiler\BackEnd.cs (5)
207Dictionary<State, State> srcToDestHash = new(); 471Dictionary<State, State> SrcToDestHash = new(); // Hash source state to destination state 473Dictionary<Tag, Tag> tags = new(); 532Dictionary<Tag, Tag> tags = new(); 1365private Dictionary<int, Rule> _nameOffsetRules = new();
Internal\StringBlob.cs (1)
200private Dictionary<string, int> _strings = new();
Internal\Synthesis\VoiceSynthesis.cs (1)
1772private Dictionary<VoiceInfo, TTSVoice> _voiceDictionary = new();
Recognition\RecognizerBase.cs (1)
3016private Dictionary<int, object> _bookmarkTable = new();
Recognition\RecognizerInfo.cs (1)
37Dictionary<string, string> attrs = new();
Result\SemanticValue.cs (1)
24_dictionary = new Dictionary<string, SemanticValue>();
Synthesis\VoiceInfo.cs (2)
75Dictionary<string, string> attrs = new(); 204public IDictionary<string, string> AdditionalInfo => _attributes ??= new ReadOnlyDictionary<string, string>(new Dictionary<string, string>(0));
System.Text.Encoding.CodePages (1)
System\Text\CodePagesEncodingProvider.cs (1)
14private readonly Dictionary<int, Encoding> _encodings = new Dictionary<int, Encoding>();
System.Text.Json (33)
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
114var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System\Text\Json\Document\JsonElement.cs (1)
1368Dictionary<string, ValueQueue<JsonElement>> properties2 = new(capacity: remainingProps, StringComparer.Ordinal);
System\Text\Json\JsonHelpers.cs (1)
294return new Dictionary<TKey, TValue>(collection: collection, comparer);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
522private readonly Dictionary<(JsonTypeInfo, JsonPropertyInfo?), string[]> _generated = new();
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
112jsonTypeInfo.CreateObject = () => new Dictionary<string, object?>();
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (1)
60jsonTypeInfo.CreateObject = () => new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (1)
37state.Current.ReturnValue = new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (1)
41state.Current.ReturnValue = new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (3)
48_casesByName = new Dictionary<string, CaseInfo>(unionCases.Length, StringComparer.Ordinal); 51? new Dictionary<string, CaseInfo>(unionCases.Length, StringComparer.OrdinalIgnoreCase) 498var map = new Dictionary<string, int>(fields.Length, comparer);
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
63_enumFieldInfoIndex = new(StringComparer.OrdinalIgnoreCase); 547(enumMemberAttributes ??= new(StringComparer.Ordinal)).Add(field.Name, attribute.Name);
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (4)
154var newDict = new Dictionary<string, object>(); 163extensionData = new Dictionary<string, object>(); 174var newDict = new Dictionary<string, JsonElement>(); 183extensionData = new Dictionary<string, JsonElement>();
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (3)
92Dictionary<JsonValueType, Type> shapeBasedCases = new(); 121Dictionary<byte[], List<PocoPropertyClassifierInfo>> pocoPropertyIndex = new(JsonHelpers.ByteArrayOrdinalComparer.Instance); 134caseInsensitivePocoPropertyIndex ??= new(StringComparer.OrdinalIgnoreCase);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
46var converters = new Dictionary<Type, JsonConverter>(NumberOfSimpleConverters);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
417var substitution = new Dictionary<Type, Type>(requiredParams.Length);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (2)
42private readonly Dictionary<Type, UnionCaseEntry> _entryByCaseType = new(); 321(methodsByCaseType ??= new()).TryAdd(caseType, method);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (6)
1164var map = new Dictionary<JsonValueType, Type>(); 1490public Dictionary<string, (JsonPropertyInfo, int index)> AddedProperties = new(options.PropertyNameCaseInsensitive ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 1513Dictionary<string, JsonPropertyInfo> propertyIndex = new(properties.Count, comparer); 1586Dictionary<ParameterLookupKey, JsonParameterInfoValues> parameterIndex = new(parameterInfoValues.Length); 1624Dictionary<ParameterLookupKey, JsonParameterInfo> parameterIndex = new(ParameterCount); 1867(state.IgnoredProperties ??= new())[memberName] = jsonPropertyInfo;
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
55if (!(_discriminatorIdtoType ??= new()).TryAdd(typeDiscriminator, derivedTypeInfoHolder))
System\Text\Json\Serialization\PreserveReferenceResolver.cs (2)
23_objectToReferenceIdMap = new Dictionary<object, string>(ReferenceEqualityComparer.Instance); 27_referenceIdToObjectMap = new Dictionary<string, object>();
System.Text.Json.SourceGeneration (11)
JsonSourceGenerator.Emitter.cs (3)
69private readonly Dictionary<TypeRef, TypeGenerationSpec> _typeIndex = new(); 76private readonly Dictionary<string, string> _propertyNames = new(); 1134genericAccessorEntries ??= new();
JsonSourceGenerator.Parser.cs (7)
59private readonly Dictionary<ITypeSymbol, TypeGenerationSpec> _generatedTypes = new(SymbolEqualityComparer.Default); 1422var substitution = new Dictionary<ITypeParameterSymbol, ITypeSymbol>(requiredParams.Count, SymbolEqualityComparer.Default); 1641var acceptsNullByCase = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default); 1699var canonicalIndexByPatternKey = new Dictionary<ITypeSymbol, int>(SymbolEqualityComparer.Default); 1787Dictionary<JsonValueType, List<string>> valueTypeToTypes = new(); 2309public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 2370(state.IgnoredMembers ??= new())[memberName] = memberInfo;
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
114var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System.Text.RegularExpressions (18)
System\Text\RegularExpressions\RegexCharClass.cs (1)
122private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
System\Text\RegularExpressions\RegexCompiler.cs (1)
1943var charToBranchIndex = new Dictionary<char, int>();
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
System\Text\RegularExpressions\RegexWriter.cs (1)
41_stringTable = new Dictionary<string, int>();
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
202var idmap = new Dictionary<BDD, long>
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (1)
17private readonly Dictionary<BDD, (uint, uint)[]> _rangeCache = new Dictionary<BDD, (uint, uint)[]>();
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (3)
30private readonly Dictionary<(int ordinal, BDD? one, BDD? zero), BDD> _bddCache = new(); 36private readonly Dictionary<(int op, BDD a, BDD? b), BDD> _operationCache = new(); // op is BooleanOperation; using int to reuse generic instantiation with _bddCache 358return ReplaceTrueImpl(bdd, leaf, new Dictionary<BDD, BDD>());
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
335_setBddCache ??= new Dictionary<string, BDD>();
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (6)
40private readonly Dictionary<TSet, SymbolicRegexNode<TSet>> _singletonCache = new(); 47internal readonly Dictionary<NodeCacheKey, SymbolicRegexNode<TSet>> _nodeCache = new(); 95internal readonly Dictionary<(SymbolicRegexNode<TSet>, TSet elem, uint context), SymbolicRegexNode<TSet>> _derivativeCache = new(); 103internal readonly Dictionary<(SymbolicRegexNode<TSet>, uint), SymbolicRegexNode<TSet>> _pruneLowerPriorityThanNullabilityCache = new(); 111internal readonly Dictionary<SymbolicRegexNode<TSet>, SymbolicRegexNode<TSet>> _stripEffectsCache = new(); 119internal readonly Dictionary<(SymbolicRegexNode<TSet>, SymbolicRegexNode<TSet>), bool> _subsumptionCache = new();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (1)
146Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> result = new();
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
41var catMap = new Dictionary<UnicodeCategory, Ranges>();
System.Text.RegularExpressions.Generator (9)
RegexGenerator.cs (3)
115Dictionary<string, string[]> requiredHelpers = new(); 193var emittedExpressions = new Dictionary<(string Pattern, RegexOptions Options, int? Timeout), RegexMethod>(); 199Dictionary<string, string[]> requiredHelpers = new();
RegexGenerator.Emitter.cs (2)
1620Dictionary<string, int> usedNames = new(); 1633Dictionary<string, string[]> additionalLocalFunctions = new();
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
122private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
UpgradeToGeneratedRegexCodeFixer.cs (2)
493var treeIndexMap = new Dictionary<SyntaxTree, int>(); 501var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
45_limiters = new Dictionary<TKey, Lazy<LimiterEntry>>(equalityComparer);
System.Threading.Tasks.Dataflow (4)
Internal\QueuedMap.cs (2)
162_mapKeyToIndex = new Dictionary<TKey, int>(); 170_mapKeyToIndex = new Dictionary<TKey, int>(capacity);
Internal\ReorderingBuffer.cs (1)
44private readonly Dictionary<long, KeyValuePair<bool, TOutput>> _reorderingBuffer = new Dictionary<long, KeyValuePair<bool, TOutput>>();
Internal\TargetRegistry.cs (1)
77_targetInformation = new Dictionary<ITargetBlock<T>, LinkedTargetInfo>();
System.Windows.Controls.Ribbon (8)
Microsoft\Windows\Controls\Generated\PropertyHelper.cs (1)
124propertyTransferEnabledForObject = new Dictionary<DependencyProperty, bool>();
Microsoft\Windows\Controls\KeyTipService.cs (3)
269Dictionary<DependencyObject, bool> processedElements = new Dictionary<DependencyObject, bool>(); 341elementToScopeMap = new Dictionary<DependencyObject, DependencyObject>(); 921Current._cultureCache = cultureCache = new Dictionary<XmlLanguage, CultureInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
465private Dictionary<int, int> _childIndexToStarLayoutIndexMap = new Dictionary<int, int>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
181Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders = new Dictionary<object, List<RibbonTabHeaderAndIndex>>();
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
62private Dictionary<int, int> _tabIndexToDisplayIndexMap = new Dictionary<int, int>(); // A map from collection index to display index of tab items. 63private Dictionary<int, int> _tabDisplayIndexToIndexMap = new Dictionary<int, int>(); // A map from display index to collection index of tab items.
System.Windows.Forms (12)
System\Windows\Forms\Accessibility\AccessibleRoleControlTypeMap.cs (1)
13private static readonly Dictionary<AccessibleRole, UIA_CONTROLTYPE_ID> s_map = new()
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.cs (1)
465Dictionary<Control, string> controlError = new(bindingsCount);
System\Windows\Forms\Control.cs (1)
2134_dpiFonts ??= new Dictionary<int, Font>
System\Windows\Forms\Control.Ime.cs (1)
1063get => s_imeModeConversionBits ??= new(7)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
417_converters = new(8);
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (3)
40_professionalRGB ??= new Dictionary<KnownColors, Color>((int)KnownColors.lastKnownColor); 49_professionalRGB ??= new Dictionary<KnownColors, Color>((int)KnownColors.lastKnownColor); 58_professionalRGB ??= new Dictionary<KnownColors, Color>((int)KnownColors.lastKnownColor);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1644_shortcuts ??= new Dictionary<Keys, ToolStripMenuItem>(1);
System\Windows\Forms\Input\KeysConverter.cs (1)
38Dictionary<string, Keys> localizedNames = new(34);
System\Windows\Forms\Nrbf\WinFormsNrbfSerializer.cs (1)
29s_knownTypes ??= new(3, TypeNameComparer.FullNameAndAssemblyNameMatch)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
843t_themeHandles ??= new(NumberOfPossibleClasses);
System.Windows.Forms.Design (19)
System\ComponentModel\Design\MenuCommandService.cs (1)
256Dictionary<string, int> buildVerbs = new(verbCount, StringComparer.OrdinalIgnoreCase);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
38_fallbackFonts = new(2);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
97_objectState = new(objectState);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
136Dictionary<string, CodeDomComponentSerializationState> state = new(_objects.Count); 172Dictionary<Assembly, AssemblyName> assemblies = new(_objects.Count);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
418Dictionary<string, int> docMemberHash = new(docDeclaration.Members.Count, caseInsensitive
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (4)
781_instancesByName ??= new(StringComparer.CurrentCulture); 782_namesByInstance ??= new(new ReferenceComparer()); 925_instancesByName = new(StringComparer.CurrentCulture); 926_namesByInstance = new(new ReferenceComparer());
System\ComponentModel\Design\Serialization\ExpressionTable.cs (1)
19_expressions ??= new(new ReferenceComparer());
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
86_statementTable = new Dictionary<string, OrderedCodeStatementCollection>(count); 87Dictionary<string, string> names = new(count);
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
19private readonly Dictionary<(Cursor cursor, int dpi), int> _cursorWidthCache = new();
System\Resources\Tools\StronglyTypedResourceBuilder.cs (3)
165Dictionary<string, ResourceData> resourceTypes = new(StringComparer.InvariantCultureIgnoreCase); 271Dictionary<string, ResourceData> resourceList = new(StringComparer.InvariantCultureIgnoreCase); 865reverseFixupTable = new(0, StringComparer.InvariantCultureIgnoreCase);
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
90defaultValues ??= new Dictionary<string, object>();
System\Windows\Forms\Design\SelectionUIService.cs (1)
391Dictionary<object, SelectionUIItem> newSelection = new(selection.Count);
System.Windows.Forms.Primitives (1)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (1)
25private readonly Dictionary<string, int> _reverseLookup = new(StringComparer.OrdinalIgnoreCase);
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
203var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
604this.manipulatorStates = new Dictionary<int, ManipulatorState>();
System.Xaml (51)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
135_assemblies = new Dictionary<object, AssemblyName>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
882_subsumingNamespaces = new Dictionary<string, object>(); 909_knownNamespaces = new Dictionary<string, object>(); 1835_ignorables = new Dictionary<string, object>(); 1845_processContents = new Dictionary<string, ProcessContentSet>(); 1862_preserveElements = new Dictionary<string, PreserveItemSet>(); 1879_preserveAttributes = new Dictionary<string, PreserveItemSet>(); 2050_names = new Dictionary<string, string>(); 2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\Xaml\AttachablePropertyServices.cs (1)
183instanceProperties = new Dictionary<AttachableMemberIdentifier, object>();
System\Xaml\Context\NameFixupGraph.cs (3)
42_dependenciesByChildObject = new Dictionary<object, NameFixupToken>(referenceComparer); 43_dependenciesByName = new Dictionary<string, FrugalObjectList<NameFixupToken>>(StringComparer.Ordinal); 44_dependenciesByParentObject = new Dictionary<object, FrugalObjectList<NameFixupToken>>(referenceComparer);
System\Xaml\Context\ObjectWriterFrame.cs (2)
31_preconstructionPropertyValues = new Dictionary<XamlMember, object>(source.PreconstructionPropertyValues); 170_preconstructionPropertyValues = new Dictionary<XamlMember, object>();
System\Xaml\Context\XamlCommonFrame.cs (1)
19_namespaces = new Dictionary<string, string>();
System\Xaml\Context\XamlParserContext.cs (2)
35_prescopeNamespaces = new Dictionary<string, string>(); 160_prescopeNamespaces = new Dictionary<string, string>();
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
218_pendingCollectionAdds = new Dictionary<object, List<PendingCollectionAdd>>(); 228_pendingKeyConversionContexts = new Dictionary<object, ObjectWriterContext>();
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
210xmlnsDictionary = new Dictionary<string, string>();
System\Xaml\InfosetObjects\XamlXmlReaderSettings.cs (1)
28_xmlnsDictionary = new Dictionary<string, string>(settings._xmlnsDictionary);
System\Xaml\MS\Impl\XmlNsInfo.cs (3)
304Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 357Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 458_subsumeCount = new Dictionary<string, int>(nsInfo.OldToNewNs.Count);
System\Xaml\Runtime\DynamicMethodRuntime.cs (5)
69_propertyGetDelegates = new Dictionary<MethodInfo, PropertyGetDelegate>(); 82_propertySetDelegates = new Dictionary<MethodInfo, PropertySetDelegate>(); 95_factoryDelegates = new Dictionary<MethodBase, FactoryDelegate>(); 108_converterInstances = new Dictionary<Type, object>(); 121_delegateCreators = new Dictionary<Type, DelegateCreator>();
System\Xaml\Schema\Reflector.cs (2)
151Dictionary<char, char> bracketCharacterAttributeList = new Dictionary<char, char>(); 427Dictionary<char, char> bracketCharacterList = new Dictionary<char, char>();
System\Xaml\Schema\TypeReflector.cs (5)
488Dictionary<string, PropertyInfo> result = new Dictionary<string, PropertyInfo>(propList.Length); 550Dictionary<string, EventInfo> result = new Dictionary<string, EventInfo>(eventList.Length); 738getters = new Dictionary<string, List<MethodInfo>>(); 739setters = new Dictionary<string, List<MethodInfo>>(); 740adders = new Dictionary<string, List<MethodInfo>>();
System\Xaml\Schema\XamlTypeInvoker.cs (1)
165Dictionary<XamlType, MethodInfo> addMethods = new Dictionary<XamlType, MethodInfo>();
System\Xaml\XamlObjectReader.cs (4)
2438objectGraphTable = new Dictionary<object, ObjectMarkupInfo>(new ObjectReferenceEqualityComparer()); 2450serviceProviderTable = new Dictionary<object, string>(new ObjectReferenceEqualityComparer()); 2498namespaceToPrefixMap = new Dictionary<string, string>(); 2499prefixToNamespaceMap = new Dictionary<string, string>();
System\Xaml\XamlSchemaContext.cs (1)
589Dictionary<string, SpecialBracketCharacters> map = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
System\Xaml\XamlType.cs (2)
1687Dictionary<int, IList<XamlType>> result = new Dictionary<int, IList<XamlType>>(); 1694Dictionary<int, IList<XamlType>> ctorDict = new Dictionary<int, IList<XamlType>>();
System\Xaml\XamlXmlWriter.cs (4)
106prefixAssignmentHistory = new Dictionary<string, string>() { {"xml", XamlLanguage.Xml1998Namespace} }; 678private Dictionary<string, string> namespaceMap = new Dictionary<string, string>(); // namespace to prefix map 679private Dictionary<string, string> prefixMap = new Dictionary<string, string>(); // prefix to namespace map 2189private Dictionary<XamlMember, bool> dictionary = new Dictionary<XamlMember, bool>();
TypeScriptApiCompat (7)
AtsSurface.cs (1)
44var surfaces = new Dictionary<string, AtsSurface>(StringComparer.Ordinal);
AtsSurfaceParser.cs (6)
11var handleTypes = new Dictionary<string, AtsHandleType>(StringComparer.Ordinal); 12var dtoTypes = new Dictionary<string, AtsDtoTypeBuilder>(StringComparer.Ordinal); 13var enumTypes = new Dictionary<string, AtsEnumType>(StringComparer.Ordinal); 14var exportedValues = new Dictionary<string, AtsExportedValue>(StringComparer.Ordinal); 15var capabilities = new Dictionary<string, AtsCapability>(StringComparer.Ordinal); 301public Dictionary<string, AtsDtoProperty> Properties { get; } = new(StringComparer.Ordinal);
UnitTests.Common (1)
TestTypes.cs (1)
644_headers = new Dictionary<string, string>();
vbc (2)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
VBCSCompiler (3)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilerServerTelemetry.cs (1)
153var properties = new Dictionary<string, string>(8)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
vstest.console (11)
CommandLine\Executor.cs (1)
359var commandSeenCount = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
CommandLine\InferHelper.cs (3)
28sourceToPlatformMap = new Dictionary<string, Architecture>(); 135sourceToFrameworkMap = new Dictionary<string, Framework>(); 155sourceToFrameworkMap = new Dictionary<string, Framework>();
Processors\EnableBlameArgumentProcessor.cs (3)
221?? new Dictionary<string, string>(); 237?? new Dictionary<string, string>(); 259Dictionary<string, string> monitorPostMortemDebuggerParameters = new()
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
341var traitDictionary = new Dictionary<string, List<string>>();
Processors\Utilities\ArgumentProcessorFactory.cs (2)
258_commandToProcessorMap = new Dictionary<string, IArgumentProcessor>(StringComparer.OrdinalIgnoreCase); 259_specialCommandToProcessorMap = new Dictionary<string, IArgumentProcessor>(StringComparer.OrdinalIgnoreCase);
Processors\Utilities\ArgumentProcessorUtilities.cs (1)
45var parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
vstest.console.arm64 (11)
src\vstest\src\vstest.console\CommandLine\Executor.cs (1)
359var commandSeenCount = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
src\vstest\src\vstest.console\CommandLine\InferHelper.cs (3)
28sourceToPlatformMap = new Dictionary<string, Architecture>(); 135sourceToFrameworkMap = new Dictionary<string, Framework>(); 155sourceToFrameworkMap = new Dictionary<string, Framework>();
src\vstest\src\vstest.console\Processors\EnableBlameArgumentProcessor.cs (3)
221?? new Dictionary<string, string>(); 237?? new Dictionary<string, string>(); 259Dictionary<string, string> monitorPostMortemDebuggerParameters = new()
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
341var traitDictionary = new Dictionary<string, List<string>>();
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorFactory.cs (2)
258_commandToProcessorMap = new Dictionary<string, IArgumentProcessor>(StringComparer.OrdinalIgnoreCase); 259_specialCommandToProcessorMap = new Dictionary<string, IArgumentProcessor>(StringComparer.OrdinalIgnoreCase);
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorUtilities.cs (1)
45var parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
WindowsFormsIntegration (4)
System\Windows\Integration\Convert.cs (2)
32_toSystemWindowsInputCursorDictionary = new Dictionary<SWF.Cursor, System.Windows.Input.Cursor>(); 72_toSystemWindowsFormsCursorDictionary = new Dictionary<SWI.Cursor, SWF.Cursor>();
System\Windows\Integration\PropertyMap.cs (2)
33_wrappedDictionary = new Dictionary<string, PropertyTranslator>(); 222_defaultTranslators = new Dictionary<string, PropertyTranslator>();
13974 references to Dictionary
aspire (274)
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
870Dictionary<string, JsonElement>? arguments = null;
Backchannel\BackchannelJsonSerializerContext.cs (3)
60[JsonSerializable(typeof(Dictionary<string, JsonElement>))] 61[JsonSerializable(typeof(Dictionary<string, JsonNode?>))] 62[JsonSerializable(typeof(Dictionary<string, string>))]
Backchannel\ExtensionBackchannel.cs (2)
507var choicesByFormattedValue = choicesList.ToDictionary(choice => StringUtils.RemoveMarkup(choiceFormatter(choice)), choice => choice); 537var choicesByFormattedValue = choicesList.ToDictionary(choice => StringUtils.RemoveMarkup(choiceFormatter(choice)), choice => choice);
Backchannel\ExtensionBackchannelDataTypes.cs (1)
90public Dictionary<string, string>? EnvironmentVariables { get; set; }
Backchannel\ResourceSnapshotMapper.cs (5)
71var healthReports = snapshot.HealthReports.OrderBy(h => h.Name).ToDistinctDictionary( 80var environment = snapshot.EnvironmentVariables 87var properties = snapshot.Properties.OrderBy(p => p.Key).ToDistinctDictionary( 115var commands = snapshot.Commands 134var stringProperties = snapshot.Properties.OrderBy(p => p.Key).ToDistinctDictionary(
Bundles\BundleService.cs (1)
497var targets = new Dictionary<string, string?>(s_linkedLayoutDirectories.Length, StringComparer.Ordinal);
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
620var environmentVariables = _environment.GetEnvironmentVariables()
Certificates\CertificateService.cs (2)
67var environmentVariables = new Dictionary<string, string>(); 177private void ConfigureSslCertDir(Dictionary<string, string> environmentVariables)
Commands\AgentMcpCommand.cs (3)
29private readonly Dictionary<string, CliMcpTool> _knownTools = []; 232var args = request.Params?.Arguments is { } a 270var args = request.Params?.Arguments is { } a
Commands\AppHostLauncher.cs (2)
455internal static Dictionary<string, string> CreateDetachedChildEnvironment(Activity? activity, string? appHostSelectionOrigin) 457var environment = new Dictionary<string, string> { [KnownConfigNames.CliRunDetached] = "true" };
Commands\ConfigCommand.cs (3)
235var localConfig = await ConfigurationService.GetLocalConfigurationAsync(cancellationToken); 236var globalConfig = await ConfigurationService.GetGlobalConfigurationAsync(cancellationToken); 326private void RenderConfigTable(string title, Dictionary<string, string> config, string emptyMessage, int keyWidth, int valueWidth)
Commands\DashboardRunCommand.cs (1)
129var environmentVariables = new Dictionary<string, string>
Commands\DescribeCommand.cs (5)
34[JsonSerializable(typeof(Dictionary<string, JsonNode?>))] 35[JsonSerializable(typeof(Dictionary<string, string?>))] 36[JsonSerializable(typeof(Dictionary<string, ResourceHealthReportJson>))] 38[JsonSerializable(typeof(Dictionary<string, ResourceCommandJson>))] 228var lastDisplayedContent = new Dictionary<string, object>(StringComparers.ResourceName);
Commands\ExportCommand.cs (1)
258var logLinesByResource = new Dictionary<string, List<string>>();
Commands\GroupedHelpWriter.cs (1)
49var grouped = new Dictionary<HelpGroup, List<BaseCommand>>();
Commands\McpCallCommand.cs (1)
84var dict = new Dictionary<string, JsonElement>();
Commands\ParseResultHelper.cs (6)
68var optionValueOwners = GetValueOwners(parseResult.RootCommandResult, includeArgumentResults: false); 239private static Dictionary<Token, SymbolResult> GetValueOwners( 243var owners = new Dictionary<Token, SymbolResult>(ReferenceEqualityComparer.Instance); 251Dictionary<Token, SymbolResult> currentOwners) 343var knownOptions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 406private static void CollectOptionNames(IList<Option> options, bool includeOnlyRecursive, Dictionary<string, string> knownOptions)
Commands\PipelineCommandBase.cs (5)
244var env = new Dictionary<string, string> 719var steps = new Dictionary<string, string>(); 813var steps = new Dictionary<string, StepInfo>(); 916var tasks = stepInfo.Tasks; 1375public Dictionary<string, TaskInfo> Tasks { get; } = [];
Commands\PsCommand.cs (4)
191var activeAppHosts = new Dictionary<string, AppHostDisplayInfo>(appHostKeyComparer); 192var lastJsonByAppHost = new Dictionary<string, string>(appHostKeyComparer); 225var nextActiveAppHosts = new Dictionary<string, AppHostDisplayInfo>(appHostKeyComparer); 414var shortPaths = FileSystemHelper.ShortenPaths(appHosts.Select(a => a.AppHostPath).ToList(), _environment);
Commands\RenderCommand.cs (2)
37private static readonly Dictionary<string, string> s_choices = new() 59private static readonly Dictionary<string, string> s_publishSummaryScenarioDescriptions = new(StringComparers.CommandName)
Commands\ResourceCommand.cs (3)
59private static readonly Dictionary<string, (string ProgressVerb, string BaseVerb, string PastTenseVerb)> s_wellKnownCommands = new(StringComparers.CommandName) 71private static readonly Dictionary<string, string> s_legacyCommandNameMap = new(StringComparers.CommandName) 281var options = new Dictionary<ResourceSnapshotCommandArgument, Option>();
Commands\RunCommand.cs (1)
1150private readonly Dictionary<string, RpcResourceState> _resourceStates = new();
Commands\Sdk\SdkGenerateCommand.cs (1)
167var generatedFiles = await rpcClient.GenerateCodeForAssemblyAsync(languageInfo.CodeGenerator, integrationAssemblyName, cancellationToken);
Commands\StopCommand.cs (3)
326var displayPaths = FileSystemHelper.ShortenPaths(appHostPaths, _environment); 465var displayPaths = FileSystemHelper.ShortenPaths(appHostPaths, _environment); 466var appHostPathCounts = appHostPaths
Commands\TelemetryTracesCommand.cs (3)
245var traceInfos = new Dictionary<string, (string Resource, string FirstSpanName, string TraceId, ulong? StartTimeNano, TimeSpan Duration, int SpanCount, bool HasError)>(); 354var childrenByParent = spans 377Dictionary<string, List<SpanInfo>> childrenByParent,
Configuration\AspireConfigFile.cs (8)
102public Dictionary<string, bool>? Features { get; set; } 116public Dictionary<string, AspireConfigProfile>? Profiles { get; set; } 123public Dictionary<string, string>? Packages { get; set; } 188var profiles = ReadApphostRunProfiles(Path.Combine(directory, "apphost.run.json")); 229internal static Dictionary<string, AspireConfigProfile>? ReadApphostRunProfiles(string apphostRunPath, ILogger? logger = null) 246var profiles = new Dictionary<string, AspireConfigProfile>(); 399public static AspireConfigFile FromLegacy(AspireJsonConfiguration? settings, Dictionary<string, AspireConfigProfile>? profiles) 510public Dictionary<string, string>? EnvironmentVariables { get; set; }
Configuration\AspireJsonConfiguration.cs (3)
67public Dictionary<string, string>? Packages { get; set; } 76public Dictionary<string, bool>? Features { get; set; } 83public Dictionary<string, JsonElement>? ExtensionData { get; set; }
Configuration\ConfigurationService.cs (8)
159public async Task<Dictionary<string, string>> GetAllConfigurationAsync(CancellationToken cancellationToken = default) 161var allConfig = new Dictionary<string, string>(); 170public async Task<Dictionary<string, string>> GetLocalConfigurationAsync(CancellationToken cancellationToken = default) 172var localConfig = new Dictionary<string, string>(); 178public async Task<Dictionary<string, string>> GetGlobalConfigurationAsync(CancellationToken cancellationToken = default) 180var globalConfig = new Dictionary<string, string>(); 185private static async Task LoadConfigurationFromFileAsync(string filePath, Dictionary<string, string> config, CancellationToken cancellationToken) 340private static void FlattenJsonObject(JsonObject obj, Dictionary<string, string> result, string prefix)
Configuration\FlexibleBooleanDictionaryConverter.cs (4)
14internal sealed class FlexibleBooleanDictionaryConverter : JsonConverter<Dictionary<string, bool>> 16public override Dictionary<string, bool>? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 28var dictionary = new Dictionary<string, bool>(); 60public override void Write(Utf8JsonWriter writer, Dictionary<string, bool> value, JsonSerializerOptions options)
Configuration\IConfigurationService.cs (3)
10Task<Dictionary<string, string>> GetAllConfigurationAsync(CancellationToken cancellationToken = default); 11Task<Dictionary<string, string>> GetLocalConfigurationAsync(CancellationToken cancellationToken = default); 12Task<Dictionary<string, string>> GetGlobalConfigurationAsync(CancellationToken cancellationToken = default);
Documentation\ApiDocs\ApiDocsIndexService.cs (2)
333private volatile Dictionary<string, ApiReferenceItem>? _itemsById; 701var mergedItems = new Dictionary<string, ApiReferenceItem>(_itemsById, StringComparer.OrdinalIgnoreCase);
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (1)
66var slugCounts = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Documentation\Docs\DocsIndexService.cs (5)
145private volatile Dictionary<string, float>? _tokenIdf; 230private static Dictionary<string, float> BuildTokenIdf(IReadOnlyList<IndexedDocument> documents) 232var documentFrequency = new Dictionary<string, int>(StringComparer.Ordinal); 266var idf = new Dictionary<string, float>(documentFrequency.Count, StringComparer.Ordinal); 463var tokenIdf = _tokenIdf;
Documentation\Docs\LlmsTxtParser.cs (3)
151var slugCounts = new Dictionary<string, int>(docBoundaries.Count, StringComparer.Ordinal); 335Dictionary<string, int>? slugCounts) 870private static string GenerateUniqueSlug(string title, Dictionary<string, int>? slugCounts)
DotNet\DotNetCliRunner.cs (7)
212var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>(); 599private static void AddAspireCliPathEnvironment(Dictionary<string, string> env, FileInfo? projectFile) 816var env = new Dictionary<string, string> 937var finalEnv = CreateRunEnvironment( 968var finalEnv = CreateRunEnvironment( 985private Dictionary<string, string> CreateRunEnvironment( 992var finalEnv = env?.ToDictionary() ?? new Dictionary<string, string>();
DotNet\ProcessExecution.cs (1)
178var environment = _startInfo.Environment
DotNet\ProcessExecutionFactory.cs (1)
214var envSnapshot = new Dictionary<string, string?>(startInfo.Environment, StringComparer.OrdinalIgnoreCase);
KnownFeatures.cs (1)
41private static readonly Dictionary<string, FeatureMetadata> s_featureMetadata = new()
Mcp\McpResourceToolRefreshService.cs (2)
22private Dictionary<string, ResourceToolEntry> _resourceToolMap = new(StringComparer.Ordinal); 79var refreshedMap = new Dictionary<string, ResourceToolEntry>(StringComparer.Ordinal);
Mcp\Tools\ListResourcesTool.cs (4)
20[JsonSerializable(typeof(Dictionary<string, JsonNode?>))] 21[JsonSerializable(typeof(Dictionary<string, string?>))] 22[JsonSerializable(typeof(Dictionary<string, ResourceHealthReportJson>))] 24[JsonSerializable(typeof(Dictionary<string, ResourceCommandJson>))]
NuGet\BundleNuGetPackageCache.cs (1)
190var environmentVariables = new Dictionary<string, string>();
NuGet\BundleNuGetService.cs (1)
184var environmentVariables = new Dictionary<string, string>();
NuGet\NuGetSignatureVerificationEnabler.cs (1)
22public static void Apply(Dictionary<string, string> environmentVariables, IFeatures features, IEnvironment environment)
Packaging\NuGetConfigMerger.cs (12)
21public required Dictionary<string, string> UrlToExistingKey { get; init; } 195var urlToExistingKey = BuildExistingSourceMappings(existingAdds); 210private static Dictionary<string, string> BuildExistingSourceMappings(XElement[] existingAdds) 212var urlToExistingKey = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 252var patternToNewSource = context.Mappings.ToDictionary(m => m.PackageFilter, m => m.Source, StringComparer.OrdinalIgnoreCase); 309Dictionary<string, string> patternToNewSource, 310Dictionary<string, string> urlToExistingKey, 389Dictionary<string, string> urlToExistingKey, 499Dictionary<string, string> urlToExistingKey, 690Dictionary<string, string> urlToExistingKey, 853var urlToExistingKey = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 879var patternToRequiredSource = mappings.ToDictionary(m => m.PackageFilter, m => m.Source, StringComparer.OrdinalIgnoreCase);
Packaging\PackageChannel.cs (1)
707var packageFiles = Directory.EnumerateFiles(normalizedSource, "*.nupkg", SearchOption.AllDirectories)
Packaging\PackagingService.cs (1)
689var versionsById = new Dictionary<string, SortedSet<string>>(StringComparer.OrdinalIgnoreCase);
Processes\IsolatedProcess.cs (2)
16private Dictionary<string, string?>? _environment; 93private static Dictionary<string, string?> LoadParentEnvironment()
Processes\ProcessEnvironment.cs (2)
16public static Dictionary<string, string?> LoadParentEnvironment() 19var dict = new Dictionary<string, string?>(parent.Count, Comparer);
Profiling\ProfileCaptureEnvironment.cs (5)
11private readonly Dictionary<string, string?> _previousValues; 13private ProfileCaptureEnvironment(Dictionary<string, string?> previousValues) 22var values = CreateValues(options); 29var previousValues = new Dictionary<string, string?>(StringComparers.EnvironmentVariableName); 60private static Dictionary<string, string?> CreateValues(ProfileCaptureOptions? options = null)
Profiling\ProfileCaptureService.cs (2)
102var environmentVariables = CreateDashboardEnvironment(); 146internal static Dictionary<string, string> CreateDashboardEnvironment()
Program.cs (1)
285internal static async Task<IHost> BuildApplicationAsync(string[] args, CliStartupContext startupContext, Dictionary<string, string?>? configurationValues = null)
Projects\AppHostCandidateFinder.cs (3)
47internal sealed record AppHostCandidateFileSearchResult(FileInfo[] Files, Dictionary<string, int> CountsByPattern); 196var countsByPattern = patterns.ToDictionary(p => p, _ => 0, StringComparer.Ordinal); 416var countsByPattern = patterns.ToDictionary(pattern => pattern, _ => 0, StringComparer.Ordinal);
Projects\AppHostLaunchSettings.cs (1)
34public Dictionary<string, string> EnvironmentVariables { get; set; } = [];
Projects\AppHostRpcClient.cs (6)
86public Task<Dictionary<string, string>> ScaffoldAppHostAsync( 88=> InvokeAsync<Dictionary<string, string>>( 98public Task<Dictionary<string, string>> GenerateCodeAsync(string languageId, CancellationToken cancellationToken) 99=> InvokeCodeGenerationAsync<Dictionary<string, string>>("generateCode", [languageId, null], cancellationToken); 102public Task<Dictionary<string, string>> GenerateCodeForAssemblyAsync(string languageId, string assemblyName, CancellationToken cancellationToken) 103=> InvokeCodeGenerationAsync<Dictionary<string, string>>("generateCode", [languageId, assemblyName], cancellationToken);
Projects\AppHostServerSession.cs (4)
32private readonly Dictionary<string, string>? _callerEnvironmentVariables; 63Dictionary<string, string>? environmentVariables, 181var serverEnvironmentVariables = _callerEnvironmentVariables is null 481Dictionary<string, string>? environmentVariables,
Projects\DefaultLanguageDiscovery.cs (1)
75private static readonly Dictionary<string, string> s_experimentalFeatureFlags = new(StringComparer.OrdinalIgnoreCase)
Projects\DotNetAppHostProject.cs (15)
1457var env = new Dictionary<string, string>(context.EnvironmentVariables); 1622private async Task EnsureDevCertificatesTrustedAsync(AppHostProjectContext context, Dictionary<string, string> env, CancellationToken cancellationToken) 1780Dictionary<string, string> env, 1808var directEnv = new Dictionary<string, string>(); 1951Dictionary<string, string> env, 2197Dictionary<string, string> env, 2226Dictionary<string, string> env, 2245Dictionary<string, string> env) 2247var profiles = AspireConfigFile.ReadApphostRunProfiles(appHostFile.FullName[..^2] + "run.json"); 2253Dictionary<string, string> env, 2294Dictionary<string, string> env, 2351var env = new Dictionary<string, string>(context.EnvironmentVariables); 2539Dictionary<string, string> env, 2655Dictionary<string, string> env, 2682Dictionary<string, string> Environment,
Projects\DotNetBasedAppHostServerProject.cs (4)
407var scaffold = new Dictionary<string, string>(StringComparer.Ordinal) 451private bool TryReuseScaffold(Dictionary<string, string> scaffold) 481private void WriteScaffold(Dictionary<string, string> scaffold, XDocument projectDocument) 526private static string ComputeScaffoldFingerprint(Dictionary<string, string> scaffold)
Projects\ExtensionGuestLauncher.cs (1)
47var effectiveEnvironmentVariables = environmentVariables.ToDictionary();
Projects\GuestAppHostProject.cs (21)
405Dictionary<string, string> certEnvVars; 456var launchProfileEnvironmentVariables = ReadLaunchSettingsEnvironmentVariables(directory); 457var launchSettingsEnvVars = GetServerEnvironmentVariables( 611var environmentVariables = CreateGuestEnvironmentVariables( 786internal Dictionary<string, string> GetServerEnvironmentVariables( 799internal static Dictionary<string, string> GetServerEnvironmentVariables( 806var envVars = new Dictionary<string, string>(); 812internal Dictionary<string, string> CreateGuestEnvironmentVariables( 829internal static Dictionary<string, string> CreateGuestEnvironmentVariables( 838var environmentVariables = new Dictionary<string, string>(contextEnvironmentVariables); 906private Dictionary<string, string>? ReadLaunchSettingsEnvironmentVariables(DirectoryInfo directory) 967var result = new Dictionary<string, string>(); 1003private Dictionary<string, string>? ReadProfileFromAspireConfig(AspireConfigFile aspireConfig) 1022var result = new Dictionary<string, string>(); 1079var launchProfileEnvironmentVariables = ReadLaunchSettingsEnvironmentVariables(directory); 1080var launchSettingsEnvVars = GetServerEnvironmentVariables( 1184var environmentVariables = CreateGuestEnvironmentVariables( 1636Dictionary<string, string> files; 1721internal static Dictionary<string, string> ConvertGeneratedFilesForLegacyTypeScriptAppHost(Dictionary<string, string> files) 1723var convertedFiles = new Dictionary<string, string>(StringComparer.Ordinal);
Projects\GuestRuntime.cs (6)
91var environmentVariables = commandSpec.EnvironmentVariables ?? new Dictionary<string, string>(); 131var environmentVariables = _spec.InstallDependencies.EnvironmentVariables ?? new Dictionary<string, string>(); 257var mergedEnvironment = MergeEnvironmentVariables(environmentVariables, commandSpec); 545var mergedEnvironment = MergeEnvironmentVariables(environmentVariables, commandSpec); 559private static Dictionary<string, string> MergeEnvironmentVariables( 563var mergedEnvironment = new Dictionary<string, string>(environmentVariables);
Projects\IAppHostRpcClient.cs (3)
30Task<Dictionary<string, string>> ScaffoldAppHostAsync( 42Task<Dictionary<string, string>> GenerateCodeAsync(string languageId, CancellationToken cancellationToken); 54Task<Dictionary<string, string>> GenerateCodeForAssemblyAsync(string languageId, string assemblyName, CancellationToken cancellationToken);
Projects\IAppHostServerSession.cs (1)
89Dictionary<string, string>? environmentVariables,
Projects\PrebuiltAppHostServer.cs (3)
835var packageFingerprints = await ReadPackageFingerprintsAsync( 1585private static async Task<Dictionary<string, string>> ReadPackageFingerprintsAsync(string assetsFilePath, CancellationToken cancellationToken) 1595var packageFingerprints = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Projects\ProcessGuestLauncher.cs (1)
70var effectiveEnvironmentVariables = environmentVariables.ToDictionary();
Projects\ProjectLocator.cs (1)
338var candidateCountsByPattern = candidateSearchResult.CountsByPattern;
Projects\ProjectUpdater.cs (9)
1283var originalMappings = ExtractPackageSourceMappings(originalDocument); 1284var proposedMappings = ExtractPackageSourceMappings(proposedDocument); 1325private static Dictionary<string, List<string>> ExtractPackageSourceMappings(XmlDocument? document) 1327var mappings = new Dictionary<string, List<string>>(); 1366private static List<MappingChange> AnalyzeMappingChanges(Dictionary<string, List<string>> originalMappings, Dictionary<string, List<string>> proposedMappings) 1393var mappingChangesBySource = changes.MappingChanges.ToDictionary(mc => mc.SourceKey, mc => mc); 1468public Dictionary<string, List<string>> OriginalMappings { get; set; } = new(); 1469public Dictionary<string, List<string>> ProposedMappings { get; set; } = new();
Scaffolding\ScaffoldingService.cs (3)
162var scaffoldFiles = await rpcClient.ScaffoldAppHostAsync( 243var profiles = AspireConfigFile.ReadApphostRunProfiles(appHostRunPath, _logger); 482var generatedFiles = await rpcClient.GenerateCodeAsync(language.CodeGenerator, cancellationToken);
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (3)
98public Dictionary<string, string> Baggage { get; init; } = []; 1168public Dictionary<string, JsonNode?> Properties { get; init; } = []; 1271public Dictionary<string, string?>? Options { get; init; }
src\Shared\ConsoleLogs\PromptContext.cs (1)
11private readonly Dictionary<string, string> _promptValueMap = new Dictionary<string, string>();
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
325var spansByTraceId = new Dictionary<string, List<OtlpSpanDto>>(StringComparer.Ordinal);
src\Shared\EnumerableExtensions.cs (2)
14public static Dictionary<TKey, TValue> ToDistinctDictionary<TSource, TKey, TValue>( 19var dictionary = new Dictionary<TKey, TValue>();
src\Shared\Export\ExportArchive.cs (5)
24public Dictionary<string, ResourceJson> Resources { get; } = new(); 30public Dictionary<string, List<string>> ConsoleLogs { get; } = new(); 36public Dictionary<string, OtlpTelemetryDataJson> StructuredLogs { get; } = new(); 42public Dictionary<string, OtlpTelemetryDataJson> Traces { get; } = new(); 48public Dictionary<string, OtlpTelemetryDataJson> Metrics { get; } = new();
src\Shared\IntegrationPackageProbeManifest.cs (4)
46var managedLookup = new Dictionary<string, IntegrationPackageManagedAssembly>(StringComparer.OrdinalIgnoreCase); 63var nativeLookup = new Dictionary<string, IntegrationPackageNativeLibrary>(StringComparer.OrdinalIgnoreCase); 270var lookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 282var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
src\Shared\Model\Serialization\ResourceJson.cs (5)
106public Dictionary<string, JsonNode?>? Properties { get; set; } 112public Dictionary<string, string?>? Environment { get; set; } 118public Dictionary<string, ResourceHealthReportJson>? HealthReports { get; set; } 124public Dictionary<string, ResourceCommandJson>? Commands { get; set; } 320public Dictionary<string, string?>? Options { get; set; }
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (1)
35[JsonSerializable(typeof(Dictionary<string, JsonNode?>))]
src\Shared\UserSecrets\SecretsStore.cs (3)
15private readonly Dictionary<string, string> _secrets; 114private static Dictionary<string, string> Load(string path) 136var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Telemetry\InternalMicrosoftDetector.cs (3)
798var values = ParseColonSeparatedFields(output); 816private static Dictionary<string, string> ParseColonSeparatedFields(string text) 823var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Telemetry\ProfilingTelemetry.cs (1)
1107var baggage = new Dictionary<string, string>();
Templating\CliTemplateFactory.PythonStarterTemplate.cs (1)
58var conditions = new Dictionary<string, bool>
Utils\CommandPathResolver.cs (1)
11private static readonly Dictionary<string, CommandMetadata> s_commandMetadata = new(StringComparer.OrdinalIgnoreCase)
Utils\ConsoleActivityLogger.cs (5)
30private readonly Dictionary<string, string> _stepColors = new(); 31private readonly Dictionary<string, ActivityState> _stepStates = new(); // Track final state per step for summary 32private readonly Dictionary<string, string> _displayNames = new(); // Optional friendly display names for step keys 528var recordsByKey = orderedRecords.ToDictionary(r => r.Key, StringComparers.CommandName); 529var childrenByParent = new Dictionary<string, List<StepDurationRecord>>(StringComparers.CommandName);
Utils\EnvironmentChecker\DcpConnectionChecker.cs (1)
249var environmentVariables = new Dictionary<string, string>();
Utils\EnvironmentChecker\DevCertsCheck.cs (3)
233var environmentVariables = GetEnvironmentVariables(environment); 498var environmentVariables = GetEnvironmentVariables(environment); 517private static Dictionary<string, string> GetEnvironmentVariables(IEnvironment environment) =>
Utils\EnvironmentChecker\OperatingSystemCheck.cs (3)
94var osRelease = ParseLinuxOsRelease(osReleaseContents); 107internal static Dictionary<string, string> ParseLinuxOsRelease(string? contents) 109var values = new Dictionary<string, string>(StringComparer.Ordinal);
Utils\FileSystemHelper.cs (4)
144internal static Dictionary<string, string> ShortenPaths(IReadOnlyList<string> paths, IEnvironment environment) 149var result = new Dictionary<string, string>(comparer); 157var segmentsMap = new Dictionary<string, string[]>(comparer); 158var depthMap = new Dictionary<string, int>(comparer);
Utils\ResourceColorMap.cs (1)
20internal static readonly Dictionary<string, string> s_hexColors = new()
aspire-managed (6)
NuGet\Commands\NuGetPackageAssetResolver.cs (2)
79var packageLibraries = lockFile.Libraries 231var overrides = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\Shared\IntegrationPackageProbeManifest.cs (4)
46var managedLookup = new Dictionary<string, IntegrationPackageManagedAssembly>(StringComparer.OrdinalIgnoreCase); 63var nativeLookup = new Dictionary<string, IntegrationPackageNativeLibrary>(StringComparer.OrdinalIgnoreCase); 270var lookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 282var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Acquisition.Tests (1)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Azure.Messaging.EventHubs.Tests (2)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (2)
78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Azure.Security.KeyVault.Tests (2)
MockTransport.cs (2)
78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Cli.EndToEnd.Tests (3)
Helpers\CliE2ETestHelpers.cs (1)
588var buildArgs = new Dictionary<string, string>();
Helpers\CliInstallStrategyTests.cs (2)
1006var cleanVariables = defaults.ToDictionary(variable => variable.Name, variable => variable.Value); 1017private readonly Dictionary<string, string?> _originalValues;
Aspire.Cli.Tests (244)
Acquisition\IdentityResolverTests.cs (1)
371var sidecar = new Dictionary<string, string>
Agents\AspireSkillsBundleTests.cs (1)
832Dictionary<string, string> files,
Agents\TelemetryHookScriptTests.cs (6)
378private async Task<HookRun> RunBashHookAsync(string payload, Dictionary<string, string?>? extraEnv = null) 390private async Task<HookRun> RunPwshHookAsync(string payload, Dictionary<string, string?>? extraEnv = null) 433private static Dictionary<string, string?> BuildEnvironment(string recorderPath, string capturePath, Dictionary<string, string?>? extraEnv) 435var environment = new Dictionary<string, string?>(StringComparer.Ordinal) 478private static ProcessResult RunProcess(string fileName, IReadOnlyList<string> arguments, string stdinPayload, Dictionary<string, string?> environment)
Backchannel\BackchannelJsonSerializerContextTests.cs (3)
49var payload = new Dictionary<string, JsonElement>(StringComparer.Ordinal) 56var roundTripped = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(json, options);
Caching\AppHostInfoDiskCacheTests.cs (1)
23private static AppHostInfoDiskCache CreateCacheWithRealConfigurationService(TemporaryWorkspace workspace, Dictionary<string, string?>? processConfigurationValues = null)
Caching\DiskCacheTests.cs (2)
15private static DiskCache CreateCache(TemporaryWorkspace workspace, Action<Dictionary<string,string?>>? configure = null) 17var values = new Dictionary<string,string?>();
Certificates\CertificateServiceTests.cs (1)
556var envVars = new Dictionary<string, string?>
CliBootstrapTests.cs (1)
174var envVars = new Dictionary<string, string?> { [IdentityResolver.NuGetServiceIndexEnvVar] = "http://localhost:5000/v3/index.json" };
Commands\AddCommandTests.cs (1)
1546var exactMatchQueryCounts = new Dictionary<string, int>(StringComparer.Ordinal);
Commands\AgentTelemetryCommandTests.cs (6)
39var tags = activity.Tags.ToDictionary(t => t.Key, t => t.Value); 69var tags = activity.Tags.ToDictionary(t => t.Key, t => t.Value); 100var tags = activity.Tags.ToDictionary(t => t.Key, t => t.Value); 132var tags = activity.Tags.ToDictionary(t => t.Key, t => t.Value); 158var tags = activity.Tags.ToDictionary(t => t.Key, t => t.Value); 252var tags = activity.Tags.ToDictionary(t => t.Key, t => t.Value);
Commands\AppHostLauncherTests.cs (10)
857var environment = AppHostLauncher.CreateDetachedChildEnvironment(activity, appHostSelectionOrigin: null); 872var environment = AppHostLauncher.CreateDetachedChildEnvironment(null, appHostSelectionOrigin: "explicit-launch-configuration"); 880var environment = AppHostLauncher.CreateDetachedChildEnvironment(null, appHostSelectionOrigin: null); 888var environment = AppHostLauncher.CreateDetachedChildEnvironment(null, appHostSelectionOrigin: null); 899var environment = AppHostLauncher.CreateDetachedChildEnvironment(null, appHostSelectionOrigin: null); 918var environment = AppHostLauncher.CreateDetachedChildEnvironment(Activity.Current, appHostSelectionOrigin: null); 936var environment = AppHostLauncher.CreateDetachedChildEnvironment(activity, appHostSelectionOrigin: null); 948var environment = AppHostLauncher.CreateDetachedChildEnvironment(null, appHostSelectionOrigin: null); 1308var environment = env is null ? null : new Dictionary<string, string>(env); 1316var env = startInfo.Environment
Commands\ConfigCommandTests.cs (3)
1036public Task<Dictionary<string, string>> GetAllConfigurationAsync(CancellationToken cancellationToken = default) 1045public Task<Dictionary<string, string>> GetLocalConfigurationAsync(CancellationToken cancellationToken = default) 1053public Task<Dictionary<string, string>> GetGlobalConfigurationAsync(CancellationToken cancellationToken = default)
Commands\DashboardRunCommandTests.cs (1)
663private static IEnvironment CreateEnvironment(Dictionary<string, string?> envVars)
Commands\DoctorCommandTests.cs (2)
87var osRelease = OperatingSystemCheck.ParseLinuxOsRelease( 1080private static bool TryGetOsReleaseValue(Dictionary<string, string> osRelease, string key, out string value)
Commands\ExportCommandTests.cs (1)
868Dictionary<string, string> telemetryEndpoints,
Commands\LogsCommandTests.cs (1)
1536Action<Dictionary<string, string?>>? configureOptions = null,
Commands\OperatingSystemCheckTests.cs (1)
83var values = OperatingSystemCheck.ParseLinuxOsRelease("""
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1011private readonly Dictionary<string, TaskCompletionSource> _promptCompletionSources = new();
Commands\ResourceCommandTests.cs (1)
2367Dictionary<string, string?>? options = null,
Commands\RunCommandTests.cs (5)
971var tags = fixture.CapturedActivity.TagObjects.ToDictionary(t => t.Key, t => t.Value); 997var tags = fixture.CapturedActivity.TagObjects.ToDictionary(t => t.Key, t => t.Value); 3614var tcs = new TaskCompletionSource<Dictionary<string, string>>(TaskCreationOptions.RunContinuationsAsynchronously); 3686var capturedEnv = await tcs.Task.DefaultTimeout(); 4269var tags = fixture.CapturedActivity.TagObjects.ToDictionary(t => t.Key, t => t.Value);
Commands\TelemetryTestHelper.cs (1)
68Dictionary<string, string> telemetryEndpoints)
Commands\WslEnvironmentCheckTests.cs (1)
548var environmentVariables = new Dictionary<string, string?>();
Configuration\ConfigurationServiceTests.cs (1)
201var config = await service.GetAllConfigurationAsync();
Configuration\KnownFeaturesTests.cs (1)
86var configData = new Dictionary<string, string?>();
DotNet\DotNetCliRunnerTests.cs (6)
676var existingEnv = new Dictionary<string, string> 957var userEnv = new Dictionary<string, string> 1611Dictionary<string, string>? capturedEnv = null; 1648Dictionary<string, string>? capturedEnv = null; 1957Dictionary<string, string>? capturedEnv = null; 2650Dictionary<string, string>? capturedEnv = null;
Layout\LayoutProcessRunnerTests.cs (2)
42var callerEnv = new Dictionary<string, string> { ["ASPIRE_CLI_PID"] = "999" }; 84var callerEnv = new Dictionary<string, string> { ["ASPIRE_CLI_PID"] = "999" };
Mcp\ApiDocs\ApiDocsFetcherTests.cs (2)
104private readonly Dictionary<string, string> _content = new(StringComparer.OrdinalIgnoreCase); 105private readonly Dictionary<string, string?> _etags = new(StringComparer.OrdinalIgnoreCase);
Mcp\ApiDocs\ApiDocsIndexServiceTests.cs (2)
621private readonly Dictionary<string, string> _content = new(StringComparer.OrdinalIgnoreCase); 622private readonly Dictionary<string, string?> _etags = new(StringComparer.OrdinalIgnoreCase);
Mcp\Docs\DocsFetcherTests.cs (2)
412private readonly Dictionary<string, string> _content = []; 413private readonly Dictionary<string, string> _etags = [];
Mcp\Docs\DocsIndexServiceTests.cs (2)
1713private readonly Dictionary<string, string> _content = []; 1714private readonly Dictionary<string, string?> _etags = [];
Mcp\ExcludeFromMcpTests.cs (7)
194var arguments = new Dictionary<string, JsonElement> 228var arguments = new Dictionary<string, JsonElement> 268var arguments = doc.RootElement.EnumerateObject() 286var arguments = new Dictionary<string, JsonElement> 323var arguments = new Dictionary<string, JsonElement> 360var arguments = new Dictionary<string, JsonElement> 409var arguments = new Dictionary<string, JsonElement>
Mcp\ExecuteResourceCommandToolTests.cs (1)
294var partialArgs = JsonDocument.Parse("""{"resourceName": "test"}""").RootElement
Mcp\ListConsoleLogsToolTests.cs (13)
22var arguments = new Dictionary<string, JsonElement> 61var arguments = new Dictionary<string, JsonElement> 96var arguments = new Dictionary<string, JsonElement> 130var arguments = new Dictionary<string, JsonElement> 160var arguments = new Dictionary<string, JsonElement> 189var arguments = new Dictionary<string, JsonElement> 220var arguments = new Dictionary<string, JsonElement> 254var arguments = new Dictionary<string, JsonElement> 286var arguments = new Dictionary<string, JsonElement> 320var arguments = new Dictionary<string, JsonElement> 355var arguments = new Dictionary<string, JsonElement> 392var arguments = new Dictionary<string, JsonElement> 429var arguments = new Dictionary<string, JsonElement>
Mcp\ListStructuredLogsToolTests.cs (2)
324var arguments = new Dictionary<string, JsonElement> 463var arguments = new Dictionary<string, JsonElement>
Mcp\ListTracesToolTests.cs (3)
309var arguments = new Dictionary<string, JsonElement> 412var arguments = new Dictionary<string, JsonElement> 505var arguments = new Dictionary<string, JsonElement>
Npm\AspireJsLauncherTests.cs (1)
255var packageMap = new Dictionary<string, string> { [rid] = ridPackageName };
NuGet\NuGetSignatureVerificationEnablerTests.cs (6)
12private static IEnvironment CreateEnvironment(Dictionary<string, string?>? envVars = null) 20var envVars = new Dictionary<string, string>(); 37var envVars = new Dictionary<string, string>(); 55var envVars = new Dictionary<string, string>(); 76var envVars = new Dictionary<string, string>(); 97var envVars = new Dictionary<string, string>();
Packaging\PackagingServiceTests.cs (1)
363var settings = new Dictionary<string, string?>();
Processes\OrphanDetectionEnvironmentTests.cs (10)
15var environment = new Dictionary<string, string>(StringComparer.Ordinal); 27var environment = new Dictionary<string, string>(StringComparer.Ordinal); 40var environment = new Dictionary<string, string>(StringComparer.Ordinal) 58var environment = new Dictionary<string, string>(StringComparer.Ordinal); 72var environment = new Dictionary<string, string>(StringComparer.Ordinal) 85var environment = new Dictionary<string, string?>(StringComparer.Ordinal); 96var environment = new Dictionary<string, string?>(StringComparer.Ordinal); 108var environment = new Dictionary<string, string?>(StringComparer.Ordinal) 125var environment = new Dictionary<string, string?>(StringComparer.Ordinal) 142var environment = new Dictionary<string, string?>(StringComparer.Ordinal)
ProfileCaptureOptionsTests.cs (1)
194var environmentVariables = new Dictionary<string, string>();
ProfileCaptureServiceTests.cs (1)
446var environmentVariables = ProfileCaptureService.CreateDashboardEnvironment();
Projects\AppHostEnvironmentDefaultsTests.cs (6)
14var env = new Dictionary<string, string>(); 25var env = new Dictionary<string, string> 41var env = new Dictionary<string, string> 60var env = new Dictionary<string, string> 76var env = new Dictionary<string, string>(); 77var inherited = new Dictionary<string, string?>
Projects\AppHostServerSessionTests.cs (8)
32var environmentVariables = new Dictionary<string, string> 55var environmentVariables = new Dictionary<string, string> 75var receivedEnvironmentVariables = Assert.IsType<Dictionary<string, string>>(project.ReceivedEnvironmentVariables); 110var receivedEnvironmentVariables = Assert.IsType<Dictionary<string, string>>(project.ReceivedEnvironmentVariables); 544Dictionary<string, string>? environmentVariables = null, 588public Dictionary<string, string>? ReceivedEnvironmentVariables { get; private set; }
Projects\DotNetAppHostProjectTests.cs (15)
217var env = new Dictionary<string, string>(); 233var env = new Dictionary<string, string>(); 249var env = new Dictionary<string, string>(); 282var env = new Dictionary<string, string>(); 300var env = new Dictionary<string, string>(); 602var environmentVariables = new Dictionary<string, string> 2324var env = new Dictionary<string, string>(); 2359var env = new Dictionary<string, string>(); 2403var env = new Dictionary<string, string>(); 2423var env = new Dictionary<string, string>(); 2450var env = new Dictionary<string, string>(); 2475var env = new Dictionary<string, string>(); 2490var env = new Dictionary<string, string>(); 2518var env = new Dictionary<string, string>(); 4190var properties = new Dictionary<string, string?>
Projects\ExtensionGuestLauncherTests.cs (1)
86var envVars = new Dictionary<string, string>
Projects\GuestAppHostProjectTests.cs (21)
463var envVars = project.GetServerEnvironmentVariables(_workspace.WorkspaceRoot); 475var envVars = GuestAppHostProject.GetServerEnvironmentVariables( 487var envVars = GuestAppHostProject.GetServerEnvironmentVariables( 511var envVars = GuestAppHostProject.GetServerEnvironmentVariables( 549var envVars = project.CreateGuestEnvironmentVariables( 574var envVars = GuestAppHostProject.CreateGuestEnvironmentVariables( 600var envVars = GuestAppHostProject.CreateGuestEnvironmentVariables( 614var envVars = GuestAppHostProject.CreateGuestEnvironmentVariables( 626var envVars = GuestAppHostProject.CreateGuestEnvironmentVariables( 646var envVars = GuestAppHostProject.CreateGuestEnvironmentVariables( 662var envVars = GuestAppHostProject.CreateGuestEnvironmentVariables( 679var envVars = GuestAppHostProject.CreateGuestEnvironmentVariables( 696var files = new Dictionary<string, string> 703var convertedFiles = GuestAppHostProject.ConvertGeneratedFilesForLegacyTypeScriptAppHost(files); 1516var envVars = new Dictionary<string, string>(); 1538var envVars = new Dictionary<string, string> 1560var envVars = new Dictionary<string, string> 1591var envVars = new Dictionary<string, string> 1614var envVars = new Dictionary<string, string>(); 1650var envVars = new Dictionary<string, string> 1710var envVars = new Dictionary<string, string>
Projects\GuestRuntimeTests.cs (3)
129var envVars = new Dictionary<string, string>(); 521var envVars = new Dictionary<string, string> { ["CALLER_VAR"] = "caller_value" }; 542var envVars = new Dictionary<string, string> { ["SHARED_VAR"] = "from_caller" };
Projects\PrebuiltAppHostServerTests.cs (11)
2100var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2241var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2380var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2416var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2449var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2496var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2503var packageMetadata = new Dictionary<string, (string NuGetPackageId, string NuGetPackageVersion, string PathInPackage, string AssetType)>(StringComparer.Ordinal) 2556var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2594var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2631var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal) 2768var closureFiles = new Dictionary<string, string>(StringComparer.Ordinal)
Projects\ProjectLocatorTests.cs (6)
2112public Task<Dictionary<string, string>> GetAllConfigurationAsync(CancellationToken cancellationToken = default) 2117public Task<Dictionary<string, string>> GetLocalConfigurationAsync(CancellationToken cancellationToken = default) 2122public Task<Dictionary<string, string>> GetGlobalConfigurationAsync(CancellationToken cancellationToken = default) 2936var envVars = new Dictionary<string, string?> 3004var envVars = new Dictionary<string, string?> 3044var envVars = new Dictionary<string, string?>
Telemetry\AspireCliTelemetryTests.cs (4)
52var activityTags = activity.Tags.ToDictionary(t => t.Key, t => t.Value); 126var eventTags = exceptionEvent.Tags.ToDictionary(t => t.Key, t => t.Value); 388var configurationValues = new Dictionary<string, string?>(); 422var activityTags = activity.Tags.ToDictionary(t => t.Key, t => t.Value);
Telemetry\InternalMicrosoftDetectorTests.cs (3)
452var environmentVariables = Enumerable.Range(0, 7) 478var environmentVariables = Enumerable.Range(0, 7) 528var environmentVariables = Enumerable.Range(0, 7)
Telemetry\ProfilingTelemetryContextTests.cs (3)
25var environment = new Dictionary<string, string>(); 41var environment = new Dictionary<string, string>(); 56var environment = new Dictionary<string, string>();
Telemetry\TelemetryConfigurationTests.cs (10)
27private static Dictionary<string, string?> WithTelemetryOptIn(Dictionary<string, string?>? config = null) 29var result = config is null 36private static async Task<IHost> BuildHostAsync(Dictionary<string, string?>? config = null) 66var config = new Dictionary<string, string?> 148var config = WithTelemetryOptIn(new Dictionary<string, string?> 178var config = AppHostLauncher.CreateDetachedChildEnvironment(activity, appHostSelectionOrigin: null); 193var config = new Dictionary<string, string?> 212var config = WithTelemetryOptIn(new Dictionary<string, string?> 232var config = new Dictionary<string, string?>
Templating\ConditionalBlockProcessorTests.cs (4)
274var conditions = new Dictionary<string, bool> 304var conditions = new Dictionary<string, bool> 329var conditions = new Dictionary<string, bool> 366var conditions = new Dictionary<string, bool>
TestServices\FakeAppHostServerSession.cs (5)
86public Dictionary<string, string>? CapturedEnvironmentVariables { get; private set; } 90Dictionary<string, string>? environmentVariables, 119public virtual Task<Dictionary<string, string>> ScaffoldAppHostAsync(string languageId, string targetPath, string? projectName, CancellationToken cancellationToken) 122public virtual Task<Dictionary<string, string>> GenerateCodeAsync(string languageId, CancellationToken cancellationToken) 125public virtual Task<Dictionary<string, string>> GenerateCodeForAssemblyAsync(string languageId, string assemblyName, CancellationToken cancellationToken)
TestServices\FakePeerInstallProbe.cs (1)
16private readonly Dictionary<string, PeerProbeResult> _responses;
TestServices\FakePlaywrightServices.cs (2)
86var files = new Dictionary<(string SkillName, string RelativePath), string> 177private SkillBundleSkill CreateSkill(string skillName, string[] installExcludedRelativePaths, Dictionary<(string SkillName, string RelativePath), string> files)
TestServices\TestConfigurationService.cs (3)
29public Task<Dictionary<string, string>> GetAllConfigurationAsync(CancellationToken cancellationToken = default) 34public Task<Dictionary<string, string>> GetLocalConfigurationAsync(CancellationToken cancellationToken = default) 39public Task<Dictionary<string, string>> GetGlobalConfigurationAsync(CancellationToken cancellationToken = default)
TestServices\TestFeatures.cs (1)
10private readonly Dictionary<string, bool> _features = new();
Utils\CliTestHelper.cs (4)
89var configurationValues = new Dictionary<string, string?>(); 370public Action<Dictionary<string, string?>> ConfigurationCallback { get; set; } = (Dictionary<string, string?> config) => 759private readonly Dictionary<LayoutComponent, string> _componentPaths = [];
Utils\FileSystemHelperTests.cs (15)
267var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 282var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 297var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 312var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 323var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 333var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 346var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 360var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 375var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 390var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 399var result = FileSystemHelper.ShortenPaths(Array.Empty<string>(), new TestEnvironment()); 414var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 430var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 447var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment()); 462var result = FileSystemHelper.ShortenPaths(paths, new TestEnvironment());
Utils\SdkInstallHelperTests.cs (3)
33var tags = fixture.CapturedActivity.Tags.ToDictionary(t => t.Key, t => t.Value); 59var tags = fixture.CapturedActivity.Tags.ToDictionary(t => t.Key, t => t.Value); 85var tags = fixture.CapturedActivity.Tags.ToDictionary(t => t.Key, t => t.Value);
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
15private readonly Dictionary<string, Statistics> _state = new();
Aspire.Dashboard (190)
Components\Controls\Chart\ChartBase.cs (2)
68private Dictionary<SpanKey, OtlpSpan> _currentCache = new Dictionary<SpanKey, OtlpSpan>(); 69private Dictionary<SpanKey, OtlpSpan> _newCache = new Dictionary<SpanKey, OtlpSpan>();
Components\Controls\Chart\ChartContainer.razor.cs (1)
265var dimensionFilters = DimensionFilters
Components\Controls\Chart\ChartDataCalculator.cs (2)
71var traces = new Dictionary<int, ChartTrace> 186internal static bool TryCalculateHistogramPoints(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, Dictionary<int, ChartTrace> traces, List<ChartExemplar> exemplars, Func<DateTimeOffset, DateTimeOffset> toLocal)
Components\Controls\Chart\MetricTable.razor.cs (1)
133var traceValuesByPercentile = traces.ToDictionary(trace => trace.Percentile!.Value, trace => trace.Values[iTmp]);
Components\Controls\Chart\PlotlyChart.razor.cs (1)
120var exemplarGroups = new Dictionary<ExemplarGroupKey, List<ChartExemplar>>();
Components\Controls\GridValue.razor.cs (2)
110private Dictionary<string, object>? _componentParameters; 169private Dictionary<string, object> BuildComponentParameters()
Components\Controls\PropertyGrid.razor.cs (1)
147public Dictionary<string, ComponentMetadata>? ValueComponents { get; set; }
Components\Controls\ResourceDetails.razor.cs (1)
130private Dictionary<string, ComponentMetadata>? _valueComponents;
Components\Controls\SpanDetails.razor.cs (1)
81private Dictionary<string, ComponentMetadata>? _valueComponents;
Components\Controls\StructuredLogDetails.razor.cs (1)
50private Dictionary<string, ComponentMetadata>? _valueComponents;
Components\Dialogs\FilterDialog.razor.cs (1)
220var fieldValues = await Content.GetFieldValuesAsync(parameterName, _disposeCts.Token);
Components\Dialogs\InteractionsInputDialog.razor.cs (1)
42private Dictionary<InputViewModel, FluentComponentBase?> _elementRefs = default!;
Components\Dialogs\ManageDataDialog.razor.cs (5)
65private readonly Dictionary<string, ResourceDataRow> _resourceDataRows = new(StringComparers.ResourceName); 557var selectedResources = GetSelectedResourcesAndDataTypes(); 647var selectedResources = GetSelectedResourcesAndDataTypes(); 665private Dictionary<string, HashSet<AspireDataType>> GetSelectedResourcesAndDataTypes() 667var result = new Dictionary<string, HashSet<AspireDataType>>(StringComparers.ResourceName);
Components\Layout\AspirePageContentLayout.razor.cs (1)
61public Dictionary<string, Func<Task>> DialogCloseListeners { get; } = new();
Components\Pages\ComponentTelemetryContext.cs (2)
50internal Dictionary<string, AspireTelemetryProperty> Properties { get; } = []; 111private Dictionary<string, AspireTelemetryProperty> CreateInitializeAndDisposeProperties()
Components\Pages\Resources.razor.cs (3)
43private Dictionary<ResourceKey, int>? _resourceUnviewedErrorCounts; 247var newResourceUnviewedErrorCounts = TelemetryRepository.GetResourceUnviewedErrorLogsCount(); 601private bool ResourceErrorCountsChanged(Dictionary<ResourceKey, int> newResourceUnviewedErrorCounts)
Components\Pages\TraceDetail.razor.cs (8)
651private Task<Dictionary<string, int>> GetTraceSpanFieldValuesAsync(string attributeName, CancellationToken cancellationToken) 658var fieldValues = OtlpSpan.GetFieldValuesFromTraces([_trace], attributeName); 762Dictionary<SpanWaterfallViewModel, SpanWaterfallViewModel>? parentMap = null; 801Dictionary<SpanWaterfallViewModel, SpanWaterfallViewModel> GetParentMap() 813Dictionary<SpanWaterfallViewModel, SpanWaterfallViewModel> parentMap) 837private static Dictionary<SpanWaterfallViewModel, SpanWaterfallViewModel> BuildParentMap(IReadOnlyList<SpanWaterfallViewModel> spans) 839var map = new Dictionary<SpanWaterfallViewModel, SpanWaterfallViewModel>(); 854Dictionary<SpanWaterfallViewModel, SpanWaterfallViewModel> parentMap)
Components\Resize\GridColumnManager.razor.cs (1)
12private Dictionary<string, GridColumn> _columnById = null!;
Components\ResourcesGridColumns\StateColumnDisplay.razor.cs (1)
18public required Dictionary<ResourceKey, int>? UnviewedErrorCounts { get; set; }
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (1)
20public required Dictionary<ResourceKey, int>? UnviewedErrorCounts { get; set; }
Configuration\EndpointInfo.cs (1)
25var map = new Dictionary<string, List<EndpointInfo>>();
DashboardWebApplication.cs (2)
666var initialValues = new Dictionary<string, string?>(); 685static void AddEndpointConfiguration(Dictionary<string, string?> values, string endpointName, string url, HttpProtocols? protocols = null, bool requiredClientCertificate = false)
Extensions\FluentUIExtensions.cs (2)
10public static Dictionary<string, object> GetClipboardCopyAdditionalAttributes(string? text, string? precopy, string? postcopy, params (string Attribute, object Value)[] additionalAttributes) 15var attributes = new Dictionary<string, object>(StringComparers.HtmlAttribute)
Model\ComponentMetadata.cs (1)
9public Dictionary<string, object> Parameters { get; } = [];
Model\ConnectionStringParser.cs (7)
17private static readonly Dictionary<string, int> s_schemeDefaultPorts = new(StringComparer.OrdinalIgnoreCase) 167var keyValuePairs = SplitIntoDictionary(connectionString); 251var keyValuePairs = SplitIntoDictionary(connectionString); 359private static bool TryParseHostPortToken(string token, Dictionary<string, string> keyValuePairs, [NotNullWhen(true)] out string? host, out int? port) 478private static int? PortFromKV(Dictionary<string, string> keyValuePairs) 509private static Dictionary<string, string> SplitIntoDictionary(string connectionString) 511var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Model\ConsoleLogsFetcher.cs (2)
62public async Task<Dictionary<string, List<LogEntry>>> FetchLogEntriesAsync(HashSet<string> resourceNames, CancellationToken cancellationToken) 70var result = new Dictionary<string, List<LogEntry>>(StringComparer.OrdinalIgnoreCase);
Model\ConsoleLogsFilters.cs (3)
19private Dictionary<string, DateTime> _filterResourceLogsDates = default!; 28_filterResourceLogsDates = value is Dictionary<string, DateTime> newDictionary 45var newDictionary = new Dictionary<string, DateTime>(_filterResourceLogsDates, StringComparers.ResourceName)
Model\FilterDialogViewModel.cs (1)
13public required Func<string, CancellationToken, Task<Dictionary<string, int>>> GetFieldValuesAsync { get; init; }
Model\GenAI\GenAIItemPartViewModel.cs (2)
132var additionalProperties = p is GenericPart genericPart ? genericPart.AdditionalProperties ?? [] : []; 138private static JsonObject ToJsonObject(Dictionary<string, JsonElement> dict)
Model\GenAI\GenAIMessages.cs (1)
166public Dictionary<string, JsonElement>? AdditionalProperties { get; set; }
Model\GenAI\GenAIVisualizerDialogViewModel.cs (9)
397var promptMessages = ExtractIndexedMessages(attributes, GenAIHelpers.GenAIPromptPrefix); 398var completionMessages = ExtractIndexedMessages(attributes, GenAIHelpers.GenAICompletionPrefix); 446static string GetMessageRole(Dictionary<string, string> message, string defaultRole) 452static string? GetMessageContent(Dictionary<string, string> message) 459private static Dictionary<int, Dictionary<string, string>> ExtractIndexedMessages(KeyValuePair<string, string>[] attributes, string prefix) 461var messages = new Dictionary<int, Dictionary<string, string>>(); 476if (!messages.TryGetValue(messageIndex, out var message))
Model\GenAI\ToolDefinitionSchema.cs (1)
12public Dictionary<string, ToolDefinitionSchema>? Properties { get; set; }
Model\Markdown\HighlightedCodeBlockRenderer.cs (1)
82var attributes = FluentUIExtensions.GetClipboardCopyAdditionalAttributes(rawCode, copyToClipboard, _loc[nameof(ControlsStrings.GridValueCopied)]);
Model\Otlp\ResourcesSelectHelpers.cs (1)
83var replicasByResourceName = OtlpResource.GetReplicasByResourceName(resources);
Model\Otlp\SpanWaterfallViewModel.cs (1)
167var groupedLogs = logs.GroupBy(l => l.SpanId).ToDictionary(l => l.Key, g => g.ToList());
Model\ResourceViewModelExtensions.cs (1)
20var result = new Dictionary<string, string?>(StringComparer.Ordinal);
Model\Serialization\ResourceJsonSerializerContext.cs (4)
24[JsonSerializable(typeof(Dictionary<string, JsonNode?>))] 25[JsonSerializable(typeof(Dictionary<string, string?>))] 26[JsonSerializable(typeof(Dictionary<string, ResourceHealthReportJson>))] 28[JsonSerializable(typeof(Dictionary<string, ResourceCommandJson>))]
Model\SpanDetailsViewModel.cs (2)
40var traceCache = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal); 62private static SpanLinkViewModel CreateLinkViewModel(string traceId, string spanId, KeyValuePair<string, string>[] attributes, ITelemetryRepository telemetryRepository, Dictionary<string, OtlpTrace> traceCache)
Model\TelemetryExportService.cs (3)
49Dictionary<string, HashSet<AspireDataType>> selectedResources, 64var resourcesByName = snapshot.ToDictionary(r => r.Name, StringComparers.ResourceName); 132var allLogEntries = await _consoleLogsFetcher.FetchLogEntriesAsync(resourceNames, cancellationToken).ConfigureAwait(false);
Model\TraceHelpers.cs (4)
19var spanLookup = new Dictionary<OtlpSpan, List<OtlpSpan>>(); 44static void Visit(Dictionary<OtlpSpan, List<OtlpSpan>> spanLookup, OtlpSpan span, Func<OtlpSpan, TState, TState> spanAction, TState state, Func<OtlpSpan, DateTime> orderByFunc) 67var resourceFirstTimes = new Dictionary<OtlpResource, OrderedResource>(OtlpResourceEqualityComparer.Instance); 90private static void ProcessSpanResource(OtlpSpan span, OtlpResource resource, Dictionary<OtlpResource, OrderedResource> resourceFirstTimes, DateTime currentMinDate)
Otlp\Http\OtlpJsonConverters.cs (2)
16private static readonly Dictionary<Type, Func<string, IMessage>> s_jsonDeserializers = new() 35private static readonly Dictionary<Type, Func<IMessage, string>> s_jsonSerializers = new()
Otlp\Model\OtlpHelpers.cs (1)
513public static bool TryGetOrAddScope(Dictionary<string, OtlpScope> scopes, InstrumentationScope? scope, OtlpContext context, TelemetryType telemetryType, [NotNullWhen(true)] out OtlpScope? s)
Otlp\Model\OtlpInstrument.cs (1)
27public required Dictionary<string, List<string?>> KnownAttributeValues { get; init; }
Otlp\Model\OtlpResource.cs (1)
55public static Dictionary<string, List<OtlpResource>> GetReplicasByResourceName(IEnumerable<OtlpResource> allResources)
Otlp\Model\OtlpSpan.cs (2)
249public static Dictionary<string, int> GetFieldValuesFromTraces(IEnumerable<OtlpTrace> traces, string attributeName) 251var attributeValues = new Dictionary<string, int>(StringComparers.OtlpAttribute);
Otlp\Storage\ITelemetryRepository.cs (3)
29Dictionary<ResourceKey, int> GetResourceUnviewedErrorLogsCount(); 47Task<Dictionary<string, int>> GetTraceFieldValuesAsync(string attributeName, CancellationToken cancellationToken); 48Task<Dictionary<string, int>> GetLogsFieldValuesAsync(string attributeName, CancellationToken cancellationToken);
Otlp\Storage\ITelemetryRepositoryWriter.cs (1)
47Task ClearSelectedSignalsAsync(Dictionary<string, HashSet<AspireDataType>> selectedResources);
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (9)
23private readonly Dictionary<ResourceKey, CachedResource> _cachedResourcesByKey = []; 24private readonly Dictionary<long, CachedResource> _cachedResourcesById = []; 25private readonly Dictionary<string, CachedScope> _cachedScopesByName = new(StringComparer.Ordinal); 26private readonly Dictionary<long, CachedScope> _cachedScopesById = []; 395var metricsByName = batch.ToDictionary(metric => metric.Name, StringComparer.Ordinal); 764public Dictionary<long, CachedResourceView> ViewsById { get; } = []; 765public Dictionary<KeyValuePair<string, string>[], CachedResourceView> ViewsByProperties { get; } = new(ResourceViewPropertiesComparer.Instance); 766public Dictionary<string, CachedResourceScope> Scopes { get; } = new(StringComparer.Ordinal); 777public Dictionary<string, CachedInstrument> Instruments { get; } = new(StringComparer.Ordinal);
Otlp\Storage\SqliteTelemetryRepository.cs (3)
220public Task<Dictionary<string, int>> GetTraceFieldValuesAsync(string attributeName, CancellationToken cancellationToken) => 222public Task<Dictionary<string, int>> GetLogsFieldValuesAsync(string attributeName, CancellationToken cancellationToken) => 235public async Task ClearSelectedSignalsAsync(Dictionary<string, HashSet<AspireDataType>> selectedResources)
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (2)
466private Dictionary<string, int> GetLogsFieldValuesFromDatabase(string attributeName, CancellationToken cancellationToken) 711private async Task ClearSelectedLogsFromDatabaseAsync(Dictionary<string, HashSet<AspireDataType>> selectedResources)
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (7)
120var knownAttributeValues = new Dictionary<string, List<string?>>(); 170Dictionary<string, List<string?>> knownAttributeValues, 265Dictionary<string, List<string?>> knownAttributeValues, 290var instrumentsById = instruments.ToDictionary(instrument => instrument.InstrumentId); 291var instrumentIdsByDimensionId = dimensionRecords 367Dictionary<string, List<string?>> knownAttributeValues) 434var pointIds = points.ToDictionary(
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (7)
674Dictionary<MetricExemplarKey, PendingMetricExemplar> exemplars) 755private async Task ClearSelectedMetricsFromDatabaseAsync(Dictionary<string, HashSet<AspireDataType>> selectedResources) 837public Dictionary<(long InstrumentId, long AttributeHash), List<MetricDimensionState>> Dimensions { get; } = []; 838public Dictionary<long, int> DimensionCounts { get; } = []; 839public Dictionary<long, KnownAttributeValuesState> KnownAttributeValues { get; } = []; 871public Dictionary<long, MetricPointUpdate> Updates { get; } = []; 873public Dictionary<MetricExemplarKey, PendingMetricExemplar> Exemplars { get; } = [];
Otlp\Storage\SqliteTelemetryRepository.Runtime.cs (3)
22private readonly Dictionary<ResourceKey, int> _resourceUnviewedErrorLogs = []; 53public Dictionary<ResourceKey, int> GetResourceUnviewedErrorLogsCount() 111private void ClearUnviewedErrorCounts(Dictionary<string, HashSet<AspireDataType>> selectedResources)
Otlp\Storage\SqliteTelemetryRepository.Traces.Reads.cs (5)
42var tracesById = MaterializeTraces(connection, batch.Select(record => record.TraceId).ToArray()); 398var traces = identities.Select(identity => identity.TraceId).Distinct(StringComparer.Ordinal) 554private Dictionary<string, int> GetTraceFieldValuesFromDatabase(string attributeName, CancellationToken cancellationToken) 655private Dictionary<string, OtlpTrace> MaterializeTraces(SqliteConnection connection, IReadOnlyList<string> traceIds, IDbTransaction? transaction = null) 747var traces = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal);
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (9)
45var traces = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal); 47var latestReceivedTimestampTicks = new Dictionary<string, long>(StringComparer.Ordinal); 137var existingTraces = new Dictionary<string, IngestionTraceRecord>(StringComparer.Ordinal); 161var existingSpans = new Dictionary<(string TraceId, string SpanId), IngestionExistingSpanRecord>(); 263var parentSpanIds = new Dictionary<(string TraceId, string SpanId), string?>(); 303Dictionary<string, OtlpTrace> traces, 305Dictionary<string, long> latestReceivedTimestampTicks, 992private async Task ClearSelectedTracesFromDatabaseAsync(Dictionary<string, HashSet<AspireDataType>> selectedResources) 1055var latestReceivedTimestampTicks = new Dictionary<string, long>(StringComparer.Ordinal);
Otlp\Storage\TelemetryRepositoryLimits.cs (4)
18private readonly Dictionary<string, HashSet<string>> _values = new(StringComparer.Ordinal); 27var dimensionValues = GetDimensionValues(attributes); 58private static Dictionary<string, string> GetDimensionValues(IReadOnlyList<KeyValuePair<string, string>> attributes) 60var dimensionValues = new Dictionary<string, string>(StringComparer.Ordinal);
ServiceClient\DashboardClient.cs (1)
54private readonly Dictionary<string, ResourceViewModel> _resourceByName = new(StringComparers.ResourceName);
ServiceClient\DashboardDataSourcePool.cs (1)
18private readonly Dictionary<string, Entry> _entries = new(s_pathComparer);
ServiceClient\SqliteResourceRepository.cs (8)
23private readonly Dictionary<string, ResourceState> _resourceStates = new(StringComparers.ResourceName); 25private readonly Dictionary<string, ImmutableHashSet<Channel<IReadOnlyList<ResourceLogLine>>>> _consoleChannels = new(StringComparers.ResourceName); 181Dictionary<string, ResourceViewModel> currentResources; 187var replacementResources = new Dictionary<string, ResourceViewModel>(StringComparers.ResourceName); 244var resourcesToSave = new Dictionary<string, ResourceToSave>(StringComparers.ResourceName); 245Dictionary<string, ResourceViewModel> updatedResources; 330var consoleLogToInsertIndexes = new Dictionary<int, int>(); 450var updatedStates = new Dictionary<string, ResourceState>(StringComparers.ResourceName);
src\Shared\EnumerableExtensions.cs (2)
14public static Dictionary<TKey, TValue> ToDistinctDictionary<TSource, TKey, TValue>( 19var dictionary = new Dictionary<TKey, TValue>();
src\Shared\Export\ExportArchive.cs (5)
24public Dictionary<string, ResourceJson> Resources { get; } = new(); 30public Dictionary<string, List<string>> ConsoleLogs { get; } = new(); 36public Dictionary<string, OtlpTelemetryDataJson> StructuredLogs { get; } = new(); 42public Dictionary<string, OtlpTelemetryDataJson> Traces { get; } = new(); 48public Dictionary<string, OtlpTelemetryDataJson> Metrics { get; } = new();
src\Shared\Model\Serialization\ResourceJson.cs (5)
106public Dictionary<string, JsonNode?>? Properties { get; set; } 112public Dictionary<string, string?>? Environment { get; set; } 118public Dictionary<string, ResourceHealthReportJson>? HealthReports { get; set; } 124public Dictionary<string, ResourceCommandJson>? Commands { get; set; } 320public Dictionary<string, string?>? Options { get; set; }
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (1)
35[JsonSerializable(typeof(Dictionary<string, JsonNode?>))]
Telemetry\DashboardTelemetryService.cs (10)
16internal readonly Dictionary<string, AspireTelemetryProperty> _defaultProperties; 99public OperationContext StartOperation(string eventName, Dictionary<string, AspireTelemetryProperty> startEventProperties, TelemetrySeverity severity = TelemetrySeverity.Normal, bool isOptOutFriendly = false, bool postStartEvent = true, IEnumerable<OperationContextProperty>? correlations = null) 145public OperationContext StartUserTask(string eventName, Dictionary<string, AspireTelemetryProperty> startEventProperties, TelemetrySeverity severity = TelemetrySeverity.Normal, bool isOptOutFriendly = false, bool postStartEvent = true, IEnumerable<OperationContextProperty>? correlations = null) 192public OperationContext PostOperation(string eventName, TelemetryResult result, string? resultSummary = null, Dictionary<string, AspireTelemetryProperty>? properties = null, IEnumerable<OperationContextProperty>? correlatedWith = null) 220public OperationContext PostUserTask(string eventName, TelemetryResult result, string? resultSummary = null, Dictionary<string, AspireTelemetryProperty>? properties = null, IEnumerable<OperationContextProperty>? correlatedWith = null) 248public OperationContext PostFault(string eventName, string description, FaultSeverity severity, Dictionary<string, AspireTelemetryProperty>? properties = null, IEnumerable<OperationContextProperty>? correlatedWith = null) 277public OperationContext PostAsset(string eventName, string assetId, int assetEventVersion, Dictionary<string, AspireTelemetryProperty>? additionalProperties = null, IEnumerable<OperationContextProperty>? correlatedWith = null) 340public void PostCommandLineFlags(List<string> flagPrefixes, Dictionary<string, AspireTelemetryProperty> additionalProperties) 373private Dictionary<string, AspireTelemetryProperty>? IncludeDefaultProperties(Dictionary<string, AspireTelemetryProperty>? properties)
Telemetry\TelemetryRequests.cs (5)
10public record PostOperationRequest(string EventName, TelemetryResult Result, string? ResultSummary = null, Dictionary<string, AspireTelemetryProperty>? Properties = null, TelemetryEventCorrelation[]? CorrelatedWith = null); 12public record PostFaultRequest(string EventName, string Description, FaultSeverity Severity, Dictionary<string, AspireTelemetryProperty>? Properties = null, TelemetryEventCorrelation[]? CorrelatedWith = null); 14public record PostAssetRequest(string EventName, string AssetId, int AssetEventVersion, Dictionary<string, AspireTelemetryProperty>? AdditionalProperties, TelemetryEventCorrelation[]? CorrelatedWith = null); 18public record PostCommandLineFlagsRequest(List<string> FlagPrefixes, Dictionary<string, AspireTelemetryProperty> AdditionalProperties); 21Dictionary<string, AspireTelemetryProperty> StartEventProperties,
Utils\DashboardUIHelpers.cs (1)
161var queryParams = QueryHelpers.ParseQuery(queryString);
Utils\FilterHelpers.cs (1)
103Func<string, CancellationToken, Task<Dictionary<string, int>>> getFieldValuesAsync,
Utils\GlobalizationHelpers.cs (3)
22public static Dictionary<string, List<CultureInfo>> ExpandedLocalizedCultures { get; } 45private static Dictionary<string, List<CultureInfo>> GetExpandedLocalizedCultures(List<CultureInfo> localizedCultures, List<CultureInfo> allCultures) 47var dict = new Dictionary<string, List<CultureInfo>>(StringComparers.CultureName);
Utils\MimeTypeHelpers.cs (1)
47public static readonly Dictionary<string, string> MimeToExtension = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Aspire.Dashboard.Components.Tests (23)
Controls\ResourceDetailsTests.cs (9)
467var properties = new Dictionary<string, ResourcePropertyViewModel> 499var properties = new Dictionary<string, ResourcePropertyViewModel> 560var properties = new Dictionary<string, ResourcePropertyViewModel> 742var properties = new Dictionary<string, ResourcePropertyViewModel> 788var properties = new Dictionary<string, ResourcePropertyViewModel> 834var properties = new Dictionary<string, ResourcePropertyViewModel> 864var properties = new Dictionary<string, ResourcePropertyViewModel> 891var properties = new Dictionary<string, ResourcePropertyViewModel> 916Dictionary<string, ResourcePropertyViewModel> properties,
Dialogs\FilterDialogTests.cs (8)
119var fieldValues = new TaskCompletionSource<Dictionary<string, int>>(TaskCreationOptions.RunContinuationsAsynchronously); 171return Task.FromResult<Dictionary<string, int>>([]); 193var firstFieldValues = new TaskCompletionSource<Dictionary<string, int>>(TaskCreationOptions.RunContinuationsAsynchronously); 194var secondFieldValues = new TaskCompletionSource<Dictionary<string, int>>(TaskCreationOptions.RunContinuationsAsynchronously); 207KnownTraceFields.NameField => Task.FromResult<Dictionary<string, int>>([]), 236static Task<Dictionary<string, int>> StartLoad( 238TaskCompletionSource<Dictionary<string, int>> fieldValues) 289var fieldValues = new TaskCompletionSource<Dictionary<string, int>>(TaskCreationOptions.RunContinuationsAsynchronously);
Pages\ConsoleLogsTerminalTests.cs (1)
682var properties = new Dictionary<string, ResourcePropertyViewModel>
Pages\ResourcesTests.cs (1)
543var unviewedErrorCounts = telemetryRepository.GetResourceUnviewedErrorLogsCount();
Shared\TestTelemetryRepository.cs (3)
25public Dictionary<ResourceKey, int> GetResourceUnviewedErrorLogsCount() => inner.GetResourceUnviewedErrorLogsCount(); 44public Task<Dictionary<string, int>> GetTraceFieldValuesAsync(string attributeName, CancellationToken cancellationToken) => inner.GetTraceFieldValuesAsync(attributeName, cancellationToken); 45public Task<Dictionary<string, int>> GetLogsFieldValuesAsync(string attributeName, CancellationToken cancellationToken) => inner.GetLogsFieldValuesAsync(attributeName, cancellationToken);
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
18Dictionary<string, ResourcePropertyViewModel>? properties = null,
Aspire.Dashboard.Tests (95)
ChartDataCalculatorTests.cs (1)
350var traces = new Dictionary<int, ChartTrace>
Integration\FrontendOpenIdConnectAuthTests.cs (1)
95private static void ConfigureOpenIdConnect(Dictionary<string, string?> config, MockOpenIdAuthority.Authority authority)
Integration\IntegrationTestHelpers.cs (3)
41Action<Dictionary<string, string?>>? additionalConfiguration = null, 53Action<Dictionary<string, string?>>? additionalConfiguration = null, 59var initialData = new Dictionary<string, string?>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
17public Dictionary<string, string?> Configuration { get; }
Model\ApplicationsSelectHelpersTests.cs (1)
173var apps = new Dictionary<string, OtlpResource>();
Model\EnvHelpersTests.cs (4)
15var environmentVariables = new Dictionary<string, string?> 39var environmentVariables = new Dictionary<string, string?> 71var environmentVariables = new Dictionary<string, string?> 95var environmentVariables = new Dictionary<string, string?>
Model\ExportHelpersTests.cs (2)
25var resourceByName = new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource }; 49var resourceByName = new Dictionary<string, ResourceViewModel>(StringComparer.OrdinalIgnoreCase) { [resource.Name] = resource };
Model\ResourceGraphMapperTests.cs (7)
26var resources = new Dictionary<string, ResourceViewModel> 47var resources = new Dictionary<string, ResourceViewModel> 68var resources = new Dictionary<string, ResourceViewModel> 86var resources = new Dictionary<string, ResourceViewModel> 108var resources = new Dictionary<string, ResourceViewModel> 130var resources = new Dictionary<string, ResourceViewModel> 151var resources = new Dictionary<string, ResourceViewModel>
Model\ResourceIconHelpersTests.cs (1)
118var properties = new Dictionary<string, ResourcePropertyViewModel>
Model\ResourceSourceViewModelTests.cs (1)
18var properties = new Dictionary<string, ResourcePropertyViewModel>();
Model\ResourceStateViewModelTests.cs (1)
79var propertiesDictionary = new Dictionary<string, ResourcePropertyViewModel>();
Model\TelemetryExportServiceTests.cs (7)
697var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 773var selectedResources = BuildAllResourcesSelection(repositoryContext.Repository); 819var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 870var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 932var selectedResources = BuildAllResourcesSelection(repositoryContext.Repository); 986var selectedResources = BuildAllResourcesSelection(repositoryContext.Repository); 1278private static Dictionary<string, HashSet<AspireDataType>> BuildAllResourcesSelection(ITelemetryRepository repository)
ResourceOutgoingPeerResolverTests.cs (29)
37var resources = new Dictionary<string, ResourceViewModel> 50var resources = new Dictionary<string, ResourceViewModel> 63var resources = new Dictionary<string, ResourceViewModel> 76var resources = new Dictionary<string, ResourceViewModel> 95var resources = new Dictionary<string, ResourceViewModel> 109var resources = new Dictionary<string, ResourceViewModel> 123var resources = new Dictionary<string, ResourceViewModel> 138var resources = new Dictionary<string, ResourceViewModel> 158var resources = new Dictionary<string, ResourceViewModel> 171var resources = new Dictionary<string, ResourceViewModel> 192var resources = new Dictionary<string, ResourceViewModel> 217var resources = new Dictionary<string, ResourceViewModel> 240var resources = new Dictionary<string, ResourceViewModel> 255var resources = new Dictionary<string, ResourceViewModel> 268var resources = new Dictionary<string, ResourceViewModel> 437var resources = new Dictionary<string, ResourceViewModel> 451var resources = new Dictionary<string, ResourceViewModel> 483var resources = new Dictionary<string, ResourceViewModel> 498var resources = new Dictionary<string, ResourceViewModel> 512var resources = new Dictionary<string, ResourceViewModel> 527var resources = new Dictionary<string, ResourceViewModel> 540var resources = new Dictionary<string, ResourceViewModel> 554var resources = new Dictionary<string, ResourceViewModel> 569var resources = new Dictionary<string, ResourceViewModel> 581var properties = new Dictionary<string, ResourcePropertyViewModel> 617var properties = new Dictionary<string, ResourcePropertyViewModel> 639var resources = new Dictionary<string, ResourceViewModel> 654var resources = new Dictionary<string, ResourceViewModel> 671var resources = new Dictionary<string, ResourceViewModel>
TelemetryRepositoryTests\LogTests.cs (8)
330var expected = logs 335var actual = await repositoryContext.Repository.GetLogsFieldValuesAsync(field, TestContext.Current.CancellationToken); 500var unviewedCounts1 = repositoryContext.Repository.GetResourceUnviewedErrorLogsCount(); 510var unviewedCounts2 = repositoryContext.Repository.GetResourceUnviewedErrorLogsCount(); 519var unviewedCounts3 = repositoryContext.Repository.GetResourceUnviewedErrorLogsCount(); 571var unviewedCounts = repositoryContext.Repository.GetResourceUnviewedErrorLogsCount(); 623var unviewedCounts = repositoryContext.Repository.GetResourceUnviewedErrorLogsCount(); 661var unviewedCounts = repositoryContext.Repository.GetResourceUnviewedErrorLogsCount();
TelemetryRepositoryTests\MetricsTests.cs (3)
492var dimensions = instrument.Dimensions.ToDictionary(dimension => Assert.Single(dimension.Attributes).Value); 1790var dimensions = instrument.Dimensions.ToDictionary(dimension => Assert.Single(dimension.Attributes).Value); 1840var dimensions = instrument.Dimensions.ToDictionary(dimension => Assert.Single(dimension.Attributes).Value);
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (6)
213var unviewedBefore = repositoryContext.Repository.GetResourceUnviewedErrorLogsCount(); 220var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 227var unviewedAfter = repositoryContext.Repository.GetResourceUnviewedErrorLogsCount(); 267var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 307var selectedResources = new Dictionary<string, HashSet<AspireDataType>> 338var selectedResources = new Dictionary<string, HashSet<AspireDataType>>
TelemetryRepositoryTests\TraceTests.cs (3)
1649var expected = OtlpSpan.GetFieldValuesFromTraces(traces, field); 1650var actual = await repositoryContext.Repository.GetTraceFieldValuesAsync(field, TestContext.Current.CancellationToken); 2684var serviceNames = await repositoryContext.Repository.GetTraceFieldValuesAsync(KnownResourceFields.ServiceNameField, TestContext.Current.CancellationToken);
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
18Dictionary<string, ResourcePropertyViewModel>? properties = null,
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (15)
67private readonly Dictionary<string, OtlpScope> _logScopes = new(); 73private readonly Dictionary<ResourceKey, int> _resourceUnviewedErrorLogs = new(); 77private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 218public Dictionary<ResourceKey, int> GetResourceUnviewedErrorLogsCount() 1467public Task ClearSelectedSignalsAsync(Dictionary<string, HashSet<AspireDataType>> selectedResources) 1744public async Task<Dictionary<string, int>> GetTraceFieldValuesAsync(string attributeName, CancellationToken cancellationToken) 1753var fieldValues = OtlpSpan.GetFieldValuesFromTraces(_traces, attributeName); 1762public async Task<Dictionary<string, int>> GetLogsFieldValuesAsync(string attributeName, CancellationToken cancellationToken) 1767var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute); 2143var updatedTraces = new Dictionary<ReadOnlyMemory<byte>, OtlpTrace>(); 2543var allKnownAttributes = new Dictionary<string, List<string?>>(); 2658public Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>, DimensionScope> Dimensions { get; } = new(ScopeAttributesComparer.Instance); 2660public Dictionary<string, List<string?>> KnownAttributeValues { get; } = []; 2785public Dictionary<string, OtlpScope> Meters { get; } = []; 2787public Dictionary<OtlpInstrumentKey, InMemoryInstrument> Instruments { get; } = [];
Aspire.Deployment.EndToEnd.Tests (24)
AcaCustomRegistryDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AcaExistingRegistryDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
AcaManagedRedisDeploymentTests.cs (1)
55var deploymentUrls = new Dictionary<string, string>();
AcaStarterDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
AcrPurgeTaskDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentCertManagerDeploymentTests.cs (1)
64var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs (1)
67var deploymentUrls = new Dictionary<string, string>();
AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs (1)
58var deploymentUrls = new Dictionary<string, string>();
AksBlazorRedisDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksMultipleNodePoolsDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksPersistentVolumeDeploymentTests.cs (1)
50var deploymentUrls = new Dictionary<string, string>();
AksVnetWithAzureResourcesDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksWithAzureResourcesDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AksWithHelmChartDeploymentTests.cs (1)
59var deploymentUrls = new Dictionary<string, string>();
AppServicePythonDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
AppServiceReactDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
FoundryHostedAgentDeploymentTests.cs (1)
55var deploymentUrls = new Dictionary<string, string>();
FrontDoorDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
NspStorageKeyVaultDeploymentTests.cs (1)
53var deploymentUrls = new Dictionary<string, string>();
PythonFastApiDeploymentTests.cs (1)
54var deploymentUrls = new Dictionary<string, string>();
TypeScriptExpressDeploymentTests.cs (1)
52var deploymentUrls = new Dictionary<string, string>();
VnetKeyVaultConnectivityDeploymentTests.cs (1)
51var deploymentUrls = new Dictionary<string, string>();
VnetSqlServerConnectivityDeploymentTests.cs (1)
56var deploymentUrls = new Dictionary<string, string>();
VnetStorageBlobConnectivityDeploymentTests.cs (1)
51var deploymentUrls = new Dictionary<string, string>();
Aspire.EndToEnd.Tests (5)
IntegrationServicesFixture.cs (1)
26public Dictionary<string, ProjectInfo> Projects => Project?.InfoTable ?? throw new InvalidOperationException("Project is not initialized");
tests\Shared\TemplatesTesting\AspireProject.cs (1)
35public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
tests\Shared\TemplatesTesting\ProjectInfo.cs (2)
59public static Dictionary<string, ProjectInfo> Parse(string json) => 60JsonSerializer.Deserialize<Dictionary<string, ProjectInfo>>(json)!;
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Hosting (153)
ApplicationModel\CertificateTrustConfigurationCallbackAnnotation.cs (2)
74public required Dictionary<string, object> EnvironmentVariables { get; init; } 151internal Dictionary<string, Func<X509Certificate2Collection, CancellationToken, Task<byte[]>>> CustomBundlesFactories { get; } = new();
ApplicationModel\CertificateTrustExecutionConfigurationGatherer.cs (1)
151public Dictionary<string, Func<X509Certificate2Collection, CancellationToken, Task<byte[]>>> CustomBundlesFactories { get; } = new();
ApplicationModel\CommandsConfigurationExtensions.cs (1)
220var preRebuildStates = new Dictionary<string, string?>(StringComparer.Ordinal);
ApplicationModel\DockerfileBuildAnnotation.cs (2)
35public Dictionary<string, object?> BuildArguments { get; } = []; 40public Dictionary<string, object> BuildSecrets { get; } = [];
ApplicationModel\EnvironmentCallbackAnnotation.cs (7)
8using IEnvCallbackAnnotation = ICallbackResourceAnnotation<EnvironmentCallbackContext, Dictionary<string, object>>; 17private Task<Dictionary<string, object>>? _callbackTask; 42public EnvironmentCallbackAnnotation(Action<Dictionary<string, object>> callback) 86Task<Dictionary<string, object>> IEnvCallbackAnnotation.EvaluateOnceAsync(EnvironmentCallbackContext context) 106bool IEnvCallbackAnnotation.TryGetCachedResult(out Task<Dictionary<string, object>>? result) 115private async Task<Dictionary<string, object>> ExecuteCallbackAsync(EnvironmentCallbackContext context) 118var result = new Dictionary<string, object>(context.EnvironmentVariables);
ApplicationModel\EnvironmentCallbackContext.cs (3)
16public class EnvironmentCallbackContext(DistributedApplicationExecutionContext executionContext, Dictionary<string, object>? environmentVariables = null, CancellationToken cancellationToken = default) 27public EnvironmentCallbackContext(DistributedApplicationExecutionContext executionContext, IResource resource, Dictionary<string, object>? environmentVariables = null, CancellationToken cancellationToken = default) 37public Dictionary<string, object> EnvironmentVariables { get; } = environmentVariables ?? new();
ApplicationModel\EnvironmentEditor.cs (2)
10internal sealed class EnvironmentEditor(Dictionary<string, object> environmentVariables) 12private readonly Dictionary<string, object> _environmentVariables = environmentVariables ?? throw new ArgumentNullException(nameof(environmentVariables));
ApplicationModel\EnvironmentVariablesConfigurationGatherer.cs (1)
18var envVars = new Dictionary<string, object>(context.EnvironmentVariables);
ApplicationModel\ExecutionConfigurationGathererContext.cs (2)
14public Dictionary<string, object> EnvironmentVariables { get; } = new(); 47Dictionary<string, (object Unprocessed, string Value)> resolvedEnvironmentVariables = new(EnvironmentVariables.Count);
ApplicationModel\HttpsCertificateConfigurationCallbackAnnotaion.cs (1)
79public required Dictionary<string, object> EnvironmentVariables { get; init; }
ApplicationModel\IExecutionConfigurationGathererContext.cs (1)
19Dictionary<string, object> EnvironmentVariables { get; }
ApplicationModel\ProjectLaunchDefaultsAnnotation.cs (1)
24internal Dictionary<EndpointAnnotation, string> KestrelEndpointAnnotationHosts { get; } = [];
ApplicationModel\ResourceCollection.cs (1)
15private readonly Dictionary<string, IResource> _resourcesByName = new(StringComparers.ResourceName);
ApplicationModel\ResourceCommandService.cs (2)
21private static readonly Dictionary<string, string> s_legacyCommandNameMap = new(StringComparers.CommandName) 789var values = new Dictionary<string, string?>(StringComparers.InteractionInputName);
ApplicationModel\ResourceExtensions.cs (7)
203public static async ValueTask<Dictionary<string, string>> GetEnvironmentVariableValuesAsync(this IResourceWithEnvironment resource, 413internal static async ValueTask<Dictionary<string, object>> GatherEnvironmentVariableValuesAsync( 419var config = new Dictionary<string, object>(); 450Dictionary<string, object> environmentVariables, 490var config = await GatherEnvironmentVariableValuesAsync(resource, executionContext, logger, cancellationToken).ConfigureAwait(false); 1660var envVars = new Dictionary<string, object>(); 1667var resultingVars = await ann.AsCallbackAnnotation().EvaluateOnceAsync(context).ConfigureAwait(false);
ApplicationModel\ResourceLoggerService.cs (3)
369internal Dictionary<string, ResourceLoggerState> Loggers => _loggers.ToDictionary(); 746Dictionary<LogEntryKey, int>? existingLogCounts = null; 808static void IncrementCount(Dictionary<LogEntryKey, int> counts, LogEntryKey key)
ApplicationModel\ResourceNotificationService.cs (2)
502var pendingDependencyCounts = waitAnnotationsToProcess 777var versionsSeen = new Dictionary<string, long>();
Ats\CollectionExports.cs (3)
123public static Dictionary<string, object?> DictToObject(this IDictionary dict) 125var result = new Dictionary<string, object?>(dict.Count); 191if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Dictionary<,>))
Ats\HealthCheckExports.cs (1)
59var data = Data?.ToDictionary(
Backchannel\AppHostRpcTarget.cs (1)
310var stepsByName = resolvedSteps.ToDictionary(s => s.Name, StringComparer.Ordinal);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (6)
226var arguments = new Dictionary<string, object?>(); 378var values = new Dictionary<string, string?>(StringComparers.InteractionInputName); 1143var properties = new Dictionary<string, JsonNode?>(); 1482private static Dictionary<string, string?>? CreateOptionsDictionary(IReadOnlyList<KeyValuePair<string, string>>? options) 1489var result = new Dictionary<string, string?>(); 1770Dictionary<string, object?> arguments,
Backchannel\BackchannelDataTypes.cs (3)
98public Dictionary<string, string> Baggage { get; init; } = []; 1168public Dictionary<string, JsonNode?> Properties { get; init; } = []; 1271public Dictionary<string, string?>? Options { get; init; }
Backchannel\BackchannelLoggerProvider.cs (1)
13private readonly Dictionary<int, Channel<BackchannelLogEntry>> _subscribers = [];
ConnectionPropertiesExtensions.cs (1)
25var dict = new Dictionary<string, ReferenceExpression>(StringComparer.OrdinalIgnoreCase);
Dashboard\DashboardEventHandlers.cs (1)
906var dashboardResourceTasks = new Dictionary<string, Task>();
Dashboard\DashboardService.cs (1)
456var values = new Dictionary<string, string?>(StringComparers.InteractionInputName);
Dashboard\DashboardServiceData.cs (1)
247var submittedInputsByName = new Dictionary<string, InputDto>(StringComparers.InteractionInputName);
Dashboard\InteractionFileUploadStore.cs (1)
298var filesById = (files ?? []).ToDictionary(file => file.Id, StringComparer.Ordinal);
Dashboard\ResourcePublisher.cs (1)
22private readonly Dictionary<string, SourceAndResourceSnapshot> _snapshot = [];
Dcp\DcpExecutor.cs (3)
399var objectsByName = new Dictionary<string, TDcpResource>(StringComparer.Ordinal); 560var latest = new Dictionary<string, TDcpResource>(StringComparer.Ordinal); 1340((ICallbackResourceAnnotation<EnvironmentCallbackContext, Dictionary<string, object>>)callback).ForgetCachedResult();
Dcp\DcpHost.cs (1)
466var loggerCache = new Dictionary<int, ILogger>();
Dcp\DcpNameGenerator.cs (1)
24private readonly Dictionary<string, string> _networkServices = new();
Dcp\DcpResourceWatcher.cs (5)
41private readonly Dictionary<string, PendingFollowLogDeduplication> _pendingFollowLogDeduplications = []; 150var resourceLogState = new Dictionary<string, (bool logsAvailable, bool hasSubscribers)>(); 720var counts = new Dictionary<LogEntryKey, int>(); 1090Dictionary<LogEntryKey, int> counts, 1096public Dictionary<LogEntryKey, int> Counts { get; } = counts;
Dcp\Model\Schema.cs (1)
8private readonly Dictionary<Type, (string Kind, string Resource)> _byType = new();
Dcp\ProxylessEndpointPortAllocator.cs (1)
37private readonly Dictionary<EndpointAnnotation, int> _reservedPorts = new(ReferenceEqualityComparer.Instance);
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
30Dictionary<UrlSnapshot, UrlSnapshot>? remappedUrls = null;
DistributedApplicationBuilder.cs (1)
769var switchMappings = new Dictionary<string, string>()
Health\ResourceHealthCheckService.cs (2)
16private readonly Dictionary<string, ResourceMonitorState> _resourceMonitoringStates = new(); 236var healthCheckNameToStatus = latestHealthReportSnapshots.ToDictionary(p => p.Name);
IInteractionService.cs (2)
609private readonly Dictionary<string, InteractionInput> _inputsByName; 617var inputsByName = new Dictionary<string, InteractionInput>(StringComparers.InteractionInputName);
LaunchProfile.cs (1)
59public Dictionary<string, string> EnvironmentVariables { get; set; } = [];
LaunchSettings.cs (1)
17public Dictionary<string, LaunchProfile> Profiles { get; set; } = [];
Orchestrator\ApplicationOrchestrator.cs (1)
87var connectionProperties = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Orchestrator\ParameterProcessor.cs (2)
113var referencedParameters = new Dictionary<string, ParameterResource>(); 134private async Task CollectDependentParameterResourcesAsync(DistributedApplicationModel model, Dictionary<string, ParameterResource> referencedParameters, CancellationToken cancellationToken)
Orchestrator\RelationshipEvaluator.cs (2)
61var childToParentLookup = relationships.ToDictionary(x => x.Child, x => x.Parent); 70static void ValidateNoCircularDependencies(Dictionary<IResource, IResource> childToParentLookup, IResource child, Stack<IResource> visited)
Pipelines\DistributedApplicationPipeline.cs (28)
605var allStepsByName = allSteps.ToDictionary(s => s.Name, StringComparer.Ordinal); 642var allStepsByName = allSteps.ToDictionary(s => s.Name, StringComparer.Ordinal); 657Dictionary<string, PipelineStep> stepsByName) 679private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution( 685var allStepsByName = allSteps.ToDictionary(s => s.Name, StringComparer.Ordinal); 704var filteredStepsByName = stepsToExecute.ToDictionary(s => s.Name, StringComparer.Ordinal); 710Dictionary<string, PipelineStep> stepsByName) 848Dictionary<string, PipelineStep> stepsByName, 855var stepCompletions = new Dictionary<string, TaskCompletionSource>(steps.Count, StringComparer.Ordinal); 856var stepHierarchyByName = GetStepHierarchyByStep(steps, stepsByName); 995var stepsByName = steps.ToDictionary(s => s.Name, StringComparer.Ordinal); 1000var stepHierarchyByName = GetStepHierarchyByStep(steps, stepsByName); 1075Dictionary<string, PipelineStep> stepsByName) 1080var visitStates = new Dictionary<string, VisitState>(steps.Count, StringComparer.Ordinal); 1179var allStepsByName = allSteps.ToDictionary(s => s.Name, StringComparer.Ordinal); 1318var executionLevels = GetExecutionLevelsByStep(stepsForTarget, allStepsByName); 1330var stepsByLevel = executionLevels.GroupBy(kvp => kvp.Value) 1361Dictionary<string, PipelineStep> stepsByName, 1390private static Dictionary<string, StepHierarchyInfo> GetStepHierarchyByStep( 1392Dictionary<string, PipelineStep> stepsByName) 1394var executionLevels = GetExecutionLevelsByStep(steps, stepsByName); 1395var result = new Dictionary<string, StepHierarchyInfo>(StringComparer.Ordinal); 1414private static int GetExecutionLevel(PipelineStep step, Dictionary<string, PipelineStep> stepsByName) 1423private static Dictionary<string, int> GetExecutionLevelsByStep( 1425Dictionary<string, PipelineStep> stepsByName) 1427var result = new Dictionary<string, int>(StringComparer.Ordinal); 1439Dictionary<string, PipelineStep> stepsByName, 1475var stepsByName = steps.ToDictionary(s => s.Name, StringComparer.Ordinal);
Pipelines\Internal\DeploymentStateManagerBase.cs (1)
38private readonly Dictionary<string, SectionMetadata> _sections = new();
ProjectResourceBuilderExtensions.cs (1)
722Dictionary<string, int> endpointCountByScheme = [];
Publishing\ContainerRuntimeBase.cs (6)
49public abstract Task BuildImageAsync(string contextPath, string dockerfilePath, ContainerImageBuildOptions? options, Dictionary<string, string?> buildArguments, Dictionary<string, BuildImageSecretValue> buildSecrets, string? stage, CancellationToken cancellationToken); 211Dictionary<string, string>? environmentVariables = null) 229protected static string BuildArgumentsString(Dictionary<string, string?> buildArguments) 247internal static string BuildSecretsString(Dictionary<string, BuildImageSecretValue> buildSecrets, bool requireValue = false) 287Dictionary<string, string>? environmentVariables = null,
Publishing\DockerContainerRuntime.cs (5)
22private async Task RunDockerBuildAsync(string contextPath, string dockerfilePath, ContainerImageBuildOptions? options, Dictionary<string, string?> buildArguments, Dictionary<string, BuildImageSecretValue> buildSecrets, string? stage, CancellationToken cancellationToken) 92var environmentVariables = new Dictionary<string, string>(); 129public override async Task BuildImageAsync(string contextPath, string dockerfilePath, ContainerImageBuildOptions? options, Dictionary<string, string?> buildArguments, Dictionary<string, BuildImageSecretValue> buildSecrets, string? stage, CancellationToken cancellationToken)
Publishing\IContainerRuntime.cs (2)
37Task BuildImageAsync(string contextPath, string dockerfilePath, ContainerImageBuildOptions? options, Dictionary<string, string?> buildArguments, Dictionary<string, BuildImageSecretValue> buildSecrets, string? stage, CancellationToken cancellationToken);
Publishing\ManifestPublishingContext.cs (6)
43private readonly Dictionary<string, IResource> _referencedResources = []; 47private readonly Dictionary<ParameterResource, Dictionary<string, string>> _formattedParameters = []; 49private readonly Dictionary<string, ReferenceExpression> _conditionalExpressions = new(StringComparers.ResourceName); 776if (!_formattedParameters.TryGetValue(parameter, out var formats)) 837if (!_formattedParameters.TryGetValue(parameter, out var formats))
Publishing\PodmanContainerRuntime.cs (7)
110var grouped = new Dictionary<string, List<ComposeServicePort>>(StringComparer.OrdinalIgnoreCase); 145private async Task RunPodmanBuildAsync(string contextPath, string dockerfilePath, ContainerImageBuildOptions? options, Dictionary<string, string?> buildArguments, Dictionary<string, BuildImageSecretValue> buildSecrets, string? stage, CancellationToken cancellationToken) 200var environmentVariables = new Dictionary<string, string>(); 284public override async Task BuildImageAsync(string contextPath, string dockerfilePath, ContainerImageBuildOptions? options, Dictionary<string, string?> buildArguments, Dictionary<string, BuildImageSecretValue> buildSecrets, string? stage, CancellationToken cancellationToken) 321public Dictionary<string, string>? Labels { get; set; }
Publishing\ResourceContainerImageManager.cs (2)
463var resolvedBuildArguments = new Dictionary<string, string?>(); 470var resolvedBuildSecrets = new Dictionary<string, BuildImageSecretValue>();
ResourceBuilderExtensions.cs (3)
815var schemeIndexTracker = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 3394private static Dictionary<string, string> CreateEnvironmentVariables(IReadOnlyDictionary<string, string>? environmentVariables) 3396var result = new Dictionary<string, string>(StringComparer.Ordinal);
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
52var profiles = projectResource.GetLaunchSettings()?.Profiles;
UserSecrets\UserSecretsManagerFactory.cs (5)
27private readonly Dictionary<string, IUserSecretsManager> _managerCache = new(); 181var secrets = Load(); 188var secrets = Load(); 196private Dictionary<string, string?> Load() 206private void Save(Dictionary<string, string?> secrets)
Utils\DotnetSdkUtils.cs (1)
10private static readonly Dictionary<string, string> s_dotnetCliEnvVars = new()
Aspire.Hosting.Azure (22)
AcrLoginService.cs (1)
158var formData = new Dictionary<string, string>
AzureBicepResource.cs (3)
110public Dictionary<string, object?> Parameters { get; } = []; 122public Dictionary<string, object?> Outputs { get; } = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 127public Dictionary<string, string?> SecretOutputs { get; } = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
AzureProvisioningResource.cs (1)
278var distinctInfrastructureParametersLookup = distinctInfrastructureParameters.ToDictionary(p => p.BicepIdentifier);
AzurePublishingContext.cs (5)
56public Dictionary<ParameterResource, ProvisioningParameter> ParameterLookup { get; } = []; 65public Dictionary<BicepOutputReference, ProvisioningOutput> OutputLookup { get; } = []; 74internal Dictionary<string, BicepOutputReference> ReverseOutputLookup { get; } = []; 150var moduleMap = new Dictionary<AzureBicepResource, ModuleImport>(); 354var outputs = new Dictionary<string, BicepOutputReference>();
AzureResourcePreparer.cs (8)
183var globalRoleAssignments = new Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>>(); 306var roleAssignments = GetAllRoleAssignments(resource); 361private static Dictionary<AzureProvisioningResource, IEnumerable<RoleDefinition>> GetAllRoleAssignments(IResource resource) 363var result = new Dictionary<AzureProvisioningResource, IEnumerable<RoleDefinition>>(); 381Dictionary<AzureProvisioningResource, IEnumerable<RoleDefinition>> roleAssignments) 411Dictionary<AzureProvisioningResource, IEnumerable<RoleDefinition>> roleAssignments, 477private static void AppendGlobalRoleAssignments(Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>> globalRoleAssignments, AzureProvisioningResource azureResource, IEnumerable<RoleDefinition> newRoles) 488private void CreateGlobalRoleAssignments(DistributedApplicationModel appModel, Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>> globalRoleAssignments)
Provisioning\Internal\DefaultArmClientProvider.cs (4)
173var locationNameByProviderValue = CreateLocationNameLookup(GetAvailableLocations(subscription.Value, cancellationToken)); 472private static Dictionary<string, string> CreateLocationNameLookup(IEnumerable<(string Name, string DisplayName)> availableLocations) 474var locationNameByProviderValue = new Dictionary<string, string>(StringComparers.AzureLocation); 508private static string? TryGetLocationName(Dictionary<string, string> locationNameByProviderValue, string providerValue)
Aspire.Hosting.Azure.AppContainers (9)
AzureContainerAppEnvironmentResource.cs (1)
290internal Dictionary<string, (IResource resource, ContainerMountAnnotation volume, int index, BicepOutputReference outputReference)> VolumeNames { get; } = [];
AzureContainerAppExtensions.cs (4)
141private readonly Dictionary<string, Dictionary<string, ManagedEnvironmentName>> _environmentsByManagedEnvironmentName = new(StringComparer.Ordinal); 153if (!_environmentsByManagedEnvironmentName.TryGetValue(effectiveNameKey, out var environmentNames)) 424var managedStorages = new Dictionary<string, ContainerAppManagedEnvironmentStorage>();
BaseContainerAppContext.cs (3)
29protected readonly Dictionary<string, EndpointMapping> _endpointMapping = []; 34public Dictionary<string, object> EnvironmentVariables { get; } = []; 36public Dictionary<string, (ContainerMountAnnotation, BicepOutputReference)> Volumes { get; } = [];
ContainerAppEnvironmentContext.cs (1)
24private readonly Dictionary<IResource, BaseContainerAppContext> _containerApps = new(new ResourceNameComparer());
Aspire.Hosting.Azure.AppService (4)
AzureAppServiceEnvironmentContext.cs (1)
24private readonly Dictionary<IResource, AzureAppServiceWebsiteContext> _appServices = new(new ResourceNameComparer());
AzureAppServiceWebsiteContext.cs (3)
25private readonly Dictionary<string, EndpointMapping> _endpointMapping = []; 26private readonly Dictionary<string, EndpointMapping> _slotEndpointMapping = []; 31public Dictionary<string, object> EnvironmentVariables { get; } = [];
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
52var profiles = projectResource.GetLaunchSettings()?.Profiles;
Aspire.Hosting.Azure.Kubernetes (4)
AzureKubernetesEnvironmentExtensions.cs (2)
547var poolSubnetParams = new Dictionary<string, ProvisioningParameter>(); 742var subnetExistingByKey = new Dictionary<string, SubnetResource>(StringComparer.Ordinal);
AzureKubernetesEnvironmentResource.cs (2)
145internal Dictionary<string, BicepOutputReference> NodePoolSubnets { get; } = []; 151internal Dictionary<string, IAppIdentityResource> WorkloadIdentities { get; } = [];
Aspire.Hosting.Azure.Kubernetes.Tests (2)
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Azure.Kusto.Tests (4)
AddAzureKustoTests.cs (2)
128var env = await builder.GetEnvironmentVariables(annotation); 433public static async Task<Dictionary<string, object>> GetEnvironmentVariables(this IDistributedApplicationTestingBuilder builder, EnvironmentCallbackAnnotation annotation)
AzureKustoConnectionPropertiesTests.cs (2)
53var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value); 77var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
Aspire.Hosting.Azure.Network (1)
AzurePrivateDnsZoneResource.cs (1)
45internal Dictionary<AzureVirtualNetworkResource, AzurePrivateDnsZoneVNetLinkResource> VNetLinks { get; } = [];
Aspire.Hosting.Azure.PostgreSQL (4)
AzurePostgresExtensions.cs (2)
230var azureDatabases = builder.ApplicationBuilder.Resources 267private static void RemoveAzureResources(IDistributedApplicationBuilder appBuilder, AzurePostgresFlexibleServerResource azureResource, Dictionary<string, AzurePostgresFlexibleServerDatabaseResource> azureDatabases)
AzurePostgresFlexibleServerResource.cs (2)
24private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName); 302var propertiesDictionary = properties.ToDictionary(kvp => kvp.Key, kvp => kvp.Value, StringComparers.ResourceName);
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusCorrelationFilter.cs (1)
22public Dictionary<string, object> Properties { get; set; } = [];
Aspire.Hosting.Azure.Sql (4)
AzureSqlExtensions.cs (2)
191var azureDatabases = builder.ApplicationBuilder.Resources 218private static void RemoveAzureResources(IDistributedApplicationBuilder appBuilder, AzureSqlServerResource azureResource, Dictionary<string, AzureSqlDatabaseResource> azureDatabases)
AzureSqlServerResource.cs (2)
32private readonly Dictionary<string, AzureSqlDatabaseResource> _databases = new Dictionary<string, AzureSqlDatabaseResource>(StringComparers.ResourceName); 515var result = new Dictionary<string, ReferenceExpression>(
Aspire.Hosting.Azure.Tests (120)
AzureApplicationInsightsExtensionsTests.cs (1)
95var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(serviceA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
AzureBlobStorageConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureBlobStorageContainerConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureCosmosDBContainerConnectionPropertiesTests.cs (2)
20var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value); 50var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureCosmosDBDatabaseConnectionPropertiesTests.cs (2)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value); 43var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureCosmosDBExtensionsTests.cs (13)
76var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 155var target = new Dictionary<string, object>(); 360var secrets = new Dictionary<string, string> 464var secrets = new Dictionary<string, string> 674var env = new Dictionary<string, object>(); 708var env = new Dictionary<string, object>(); 742var env = new Dictionary<string, object>(); 944var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 961var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 1001var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 1030var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 1043var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 1093var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
AzureDataLakeStorageFileSystemConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties()
AzureEnvironmentResourceExtensionsTests.cs (4)
5223private readonly Dictionary<string, IReadOnlyList<ContextSubscriptionResource>> _subscriptionsByTenant = new(StringComparer.OrdinalIgnoreCase) 5228private readonly Dictionary<string, IReadOnlyList<(string Name, string Location)>> _resourceGroupsBySubscription = new(StringComparer.OrdinalIgnoreCase) 5364private readonly Dictionary<string, JsonObject> _sections = new(StringComparer.Ordinal); 5429private readonly Dictionary<string, string?> _provisionedLocations = new(StringComparer.Ordinal);
AzureEventHubConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureEventHubConsumerGroupConnectionPropertiesTests.cs (1)
20var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureEventHubsExtensionsTests.cs (1)
594var target = new Dictionary<string, object>();
AzureInfrastructureExtensionsTests.cs (2)
56var infrastructureParametersLookup = infrastructureParameters.ToDictionary(p => p.BicepIdentifier); 95var infrastructureParametersLookup = infrastructureParameters.ToDictionary(p => p.BicepIdentifier);
AzureKeyVaultTests.cs (2)
71var runEnv = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 76var publishEnv = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
AzureOpenAIConnectionPropertiesTests.cs (1)
18var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureOpenAIDeploymentConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzurePostgresExtensionsTests.cs (1)
394var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(mcpContainer, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
AzurePostgresFlexibleServerConnectionPropertiesTests.cs (2)
18var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value); 51var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzurePostgresFlexibleServerDatabaseConnectionPropertiesTests.cs (2)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value); 58var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureQueueStorageConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureQueueStorageQueueConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureSearchConnectionPropertiesTests.cs (1)
18var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureServiceBusExtensionsTests.cs (1)
695var target = new Dictionary<string, object>();
AzureServiceBusQueueConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureServiceBusSubscriptionConnectionPropertiesTests.cs (1)
20var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureServiceBusTopicConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureSqlConnectionPropertiesTests.cs (1)
18var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureSqlDatabaseConnectionPropertiesTests.cs (4)
18var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value); 52var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value); 97var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value); 148var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureTableStorageConnectionPropertiesTests.cs (1)
19var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
AzureWebPubSubConnectionPropertiesTests.cs (1)
18var properties = ((IResourceWithConnectionString)resource).GetConnectionProperties().ToDictionary(x => x.Key, x => x.Value);
DefaultArmClientProviderTests.cs (1)
868private readonly Dictionary<string, List<string>> _headers = new(StringComparer.OrdinalIgnoreCase);
DefaultAzurePrincipalProviderTests.cs (1)
324var payload = new Dictionary<string, object?>
DurableTaskResourceExtensionsTests.cs (4)
193var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dts.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 208var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dts.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 224var env1 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dts1.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 225var env2 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dts2.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
FoundryExtensionsTests.cs (4)
333var environmentVariables = await AzureHostedAgentResource.GetResolvedEnvironmentVariablesAsync( 362var environmentVariables = await AzureHostedAgentResource.GetResolvedEnvironmentVariablesAsync( 403var environmentVariables = await AzureHostedAgentResource.GetResolvedEnvironmentVariablesAsync( 444var environmentVariables = await AzureHostedAgentResource.GetResolvedEnvironmentVariablesAsync(
ProvisioningTestHelpers.cs (34)
64public static IArmClientProvider CreateArmClientProvider(Dictionary<string, object> deploymentOutputs) => new TestArmClientProvider(deploymentOutputs); 65public static IArmClientProvider CreateArmClientProvider(Func<string, Dictionary<string, object>> deploymentOutputsProvider) => new TestArmClientProvider(deploymentOutputsProvider); 202private readonly Dictionary<string, object>? _deploymentOutputs; 203private readonly Func<string, Dictionary<string, object>>? _deploymentOutputsProvider; 227public TestArmClient(Dictionary<string, object> deploymentOutputs, TestResourceGroupResource? resourceGroup = null, bool resourceGroupLookupReturnsNotFound = false) 234public TestArmClient(Func<string, Dictionary<string, object>> deploymentOutputsProvider) 491Dictionary<string, object>? data; 515public TestSubscriptionResource(Dictionary<string, object> deploymentOutputs, TestResourceGroupResource? resourceGroup = null, string subscriptionId = DefaultSubscriptionId, bool resourceGroupLookupReturnsNotFound = false) 522public TestSubscriptionResource(Dictionary<string, object> deploymentOutputs, TestResourceGroupResource? resourceGroup, bool resourceGroupLookupReturnsNotFound) 527public TestSubscriptionResource(Func<string, Dictionary<string, object>> deploymentOutputsProvider, string subscriptionId = DefaultSubscriptionId) 560private readonly Dictionary<string, object>? _deploymentOutputs; 561private readonly Func<string, Dictionary<string, object>>? _deploymentOutputsProvider; 566public TestResourceGroupCollection(Dictionary<string, object> deploymentOutputs, TestResourceGroupResource? resourceGroup = null, bool resourceGroupLookupReturnsNotFound = false) 573public TestResourceGroupCollection(Func<string, Dictionary<string, object>> deploymentOutputsProvider) 632public TestResourceGroupResource(string name, Dictionary<string, object> deploymentOutputs, string subscriptionId = DefaultSubscriptionId) 639public TestResourceGroupResource(string name, Func<string, Dictionary<string, object>> deploymentOutputsProvider, string subscriptionId = DefaultSubscriptionId) 722private readonly Dictionary<string, object>? _deploymentOutputs; 723private readonly Func<string, Dictionary<string, object>>? _deploymentOutputsProvider; 726public TestArmDeploymentCollection(Dictionary<string, object> deploymentOutputs, Func<string, ResourceIdentifier>? deploymentIdFactory = null) 732public TestArmDeploymentCollection(Func<string, Dictionary<string, object>> deploymentOutputsProvider, Func<string, ResourceIdentifier>? deploymentIdFactory = null) 782public TestTenantResource(Dictionary<string, object> deploymentOutputs) 787public TestTenantResource(Func<string, Dictionary<string, object>> deploymentOutputsProvider) 844private readonly Dictionary<string, object>? _deploymentData; 845private readonly Func<string, Dictionary<string, object>>? _deploymentDataProvider; 849public TestArmDeploymentResource(string name, Dictionary<string, object> deploymentData, ResourceIdentifier? id = null, ResourcesProvisioningState? provisioningState = null) 857public TestArmDeploymentResource(string name, Dictionary<string, object> deploymentData, ResourcesProvisioningState provisioningState) 862public TestArmDeploymentResource(string name, Func<string, Dictionary<string, object>> deploymentDataProvider, ResourceIdentifier? id = null, ResourcesProvisioningState? provisioningState = null) 870public TestArmDeploymentResource(string name, Func<string, Dictionary<string, object>> deploymentDataProvider, ResourcesProvisioningState provisioningState) 881Dictionary<string, object> data; 924private readonly Dictionary<string, object>? _deploymentOutputs; 925private readonly Func<string, Dictionary<string, object>>? _deploymentOutputsProvider; 936public TestArmClientProvider(Dictionary<string, object> deploymentOutputs) 941public TestArmClientProvider(Func<string, Dictionary<string, object>> deploymentOutputsProvider) 1088public Dictionary<string, ProcessResult> CommandResults { get; set; } = [];
ResourceWithAzureFunctionsConfigTests.cs (21)
110var target = new Dictionary<string, object>(); 128var target = new Dictionary<string, object>(); 149var target = new Dictionary<string, object>(); 166var target = new Dictionary<string, object>(); 183var target = new Dictionary<string, object>(); 199var target = new Dictionary<string, object>(); 215var target = new Dictionary<string, object>(); 231var target = new Dictionary<string, object>(); 248var target = new Dictionary<string, object>(); 273var target = new Dictionary<string, object>(); 301var target = new Dictionary<string, object>(); 323var target = new Dictionary<string, object>(); 343var target = new Dictionary<string, object>(); 363var target = new Dictionary<string, object>(); 383var target = new Dictionary<string, object>(); 400var target = new Dictionary<string, object>(); 419var target = new Dictionary<string, object>(); 439var target = new Dictionary<string, object>(); 458var target = new Dictionary<string, object>(); 479var target = new Dictionary<string, object>(); 501var target = new Dictionary<string, object>();
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubResource.cs (1)
20internal Dictionary<string, AzureWebPubSubHubResource> Hubs { get; } = new(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Blazor (12)
ClientConfiguration.cs (1)
17public Dictionary<string, string>? Environment { get; set; }
Manifests\DevelopmentManifest.cs (5)
25public Dictionary<string, JsonElement>? ExtensionData { get; set; } 30public Dictionary<string, AssetNode>? Children { get; set; } 35public Dictionary<string, JsonElement>? ExtensionData { get; set; } 69public Dictionary<string, JsonElement>? ExtensionData { get; set; } 77public Dictionary<string, JsonElement>? ExtensionData { get; set; }
Manifests\EndpointsManifest.cs (4)
26public Dictionary<string, JsonElement>? ExtensionData { get; set; } 37public Dictionary<string, JsonElement>? ExtensionData { get; set; } 45public Dictionary<string, JsonElement>? ExtensionData { get; set; } 54public Dictionary<string, JsonElement>? ExtensionData { get; set; }
Manifests\EndpointsManifestTransformer.cs (1)
80var mergedChildren = new Dictionary<string, AssetNode>();
Manifests\MSBuildPropertiesOutput.cs (1)
23public Dictionary<string, System.Text.Json.JsonElement>? ExtensionData { get; set; }
Aspire.Hosting.Blazor.Tests (33)
BlazorHostedExtensionsTests.cs (12)
29var env = await GetEnvironmentVariables(blazorApp, builder); 50var env = await GetEnvironmentVariables(blazorApp, builder); 71var env = await GetEnvironmentVariables(blazorApp, builder); 89var env = await GetEnvironmentVariables(blazorApp, builder); 112var env = await GetEnvironmentVariables(blazorApp, builder); 141var env = await GetEnvironmentVariables(blazorApp, builder); 294var env = await GetEnvironmentVariables(blazorApp, builder); 314var env = await GetEnvironmentVariables(blazorApp, builder); 359var env = await GetEnvironmentVariables(blazorApp, builder); 497private static async Task<Dictionary<string, object>> GetEnvironmentVariables( 504private static async Task<(Dictionary<string, object> Env, TestSink Sink)> GetEnvironmentVariablesWithLogs( 507var env = new Dictionary<string, object>();
EndpointsManifestTransformerTests.cs (1)
264var adminChildren = merged.Root.Children!["admin"].Children!;
GatewayConfigurationBuilderTests.cs (19)
23var env = new Dictionary<string, object>(); 46var env = new Dictionary<string, object>(); 68var env = new Dictionary<string, object>(); 95var env = new Dictionary<string, object>(); 121var env = new Dictionary<string, object>(); 141var env = new Dictionary<string, object>(); 167var env = new Dictionary<string, object>(); 192var env = new Dictionary<string, object>(); 215var env = new Dictionary<string, object> 247var env = new Dictionary<string, object>(); 268var env = new Dictionary<string, object>(); 294var env = new Dictionary<string, object>(); 318var env = new Dictionary<string, object>(); 341var env = new Dictionary<string, object>(); 366var env = new Dictionary<string, object>(); 397var env = new Dictionary<string, object>(); 456var env = new Dictionary<string, object>(); 485var env = new Dictionary<string, object>(); 530var env = new Dictionary<string, object>();
WithBlazorAppTests.cs (1)
249var commands = wasmApp.Resource.Annotations.OfType<ResourceCommandAnnotation>().ToDictionary(annotation => annotation.Name);
Aspire.Hosting.Browsers (9)
BrowserHostRegistry.cs (1)
21private readonly Dictionary<BrowserHostIdentity, BrowserHostEntry> _hosts = new();
BrowserLogsCdpConnectionMultiplexer.cs (1)
15private readonly Dictionary<long, Subscription> _subscriptions = [];
BrowserLogsCdpProtocol.cs (1)
898var properties = new Dictionary<string, BrowserLogsCdpProtocolValue>(StringComparer.Ordinal);
BrowserLogsConfigurationManager.cs (1)
208var options = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
BrowserLogsConfigurationStore.cs (1)
12private readonly Dictionary<string, BrowserConfiguration> _resourceConfigurations = new(StringComparers.ResourceName);
BrowserLogsEventLogger.cs (1)
27private readonly Dictionary<string, BrowserNetworkRequestState> _networkRequests = new(StringComparer.Ordinal);
BrowserLogsSessionManager.cs (1)
575public Dictionary<string, ActiveBrowserSession> ActiveSessions { get; } = new(StringComparer.Ordinal);
ChromiumBrowserResolver.cs (2)
165var profiles = new Dictionary<string, ChromiumBrowserProfile>(StringComparer.OrdinalIgnoreCase); 279private static void AddProfilesFromLocalState(JsonElement localStateRoot, string userDataDirectory, Dictionary<string, ChromiumBrowserProfile> profiles)
Aspire.Hosting.Browsers.Tests (10)
BrowserLogsBuilderExtensionsTests.cs (1)
1937public Dictionary<string, string> Secrets { get; } = new(StringComparer.Ordinal);
src\Aspire.Hosting.Browsers\BrowserHostRegistry.cs (1)
21private readonly Dictionary<BrowserHostIdentity, BrowserHostEntry> _hosts = new();
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnectionMultiplexer.cs (1)
15private readonly Dictionary<long, Subscription> _subscriptions = [];
src\Aspire.Hosting.Browsers\BrowserLogsCdpProtocol.cs (1)
898var properties = new Dictionary<string, BrowserLogsCdpProtocolValue>(StringComparer.Ordinal);
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationManager.cs (1)
208var options = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
src\Aspire.Hosting.Browsers\BrowserLogsConfigurationStore.cs (1)
12private readonly Dictionary<string, BrowserConfiguration> _resourceConfigurations = new(StringComparers.ResourceName);
src\Aspire.Hosting.Browsers\BrowserLogsEventLogger.cs (1)
27private readonly Dictionary<string, BrowserNetworkRequestState> _networkRequests = new(StringComparer.Ordinal);
src\Aspire.Hosting.Browsers\BrowserLogsSessionManager.cs (1)
575public Dictionary<string, ActiveBrowserSession> ActiveSessions { get; } = new(StringComparer.Ordinal);
src\Aspire.Hosting.Browsers\ChromiumBrowserResolver.cs (2)
165var profiles = new Dictionary<string, ChromiumBrowserProfile>(StringComparer.OrdinalIgnoreCase); 279private static void AddProfilesFromLocalState(JsonElement localStateRoot, string userDataDirectory, Dictionary<string, ChromiumBrowserProfile> profiles)
Aspire.Hosting.CodeGeneration.Go (21)
AtsGoCodeGenerator.cs (19)
17public Dictionary<string, GoExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal); 49private readonly Dictionary<string, string> _interfaceNames = new(StringComparer.Ordinal); 52private readonly Dictionary<string, string> _implNames = new(StringComparer.Ordinal); 55private readonly Dictionary<string, bool> _isInterfaceType = new(StringComparer.Ordinal); 58private readonly Dictionary<string, bool> _isResourceBuilder = new(StringComparer.Ordinal); 60private readonly Dictionary<string, string> _dtoNames = new(StringComparer.Ordinal); 61private readonly Dictionary<string, string> _enumNames = new(StringComparer.Ordinal); 64private readonly Dictionary<string, string> _optionsTypeNames = new(StringComparer.Ordinal); 70public Dictionary<string, string> GenerateDistributedApplication(AtsContext context) 103var capabilitiesByDirectTarget = GroupCapabilitiesByDirectTarget(context.Capabilities); 104var capabilitiesByConcreteImpl = GroupCapabilitiesByConcreteImpl(context.Capabilities); 244var optionsNameFirstCapability = new Dictionary<string, AtsCapabilityInfo>(StringComparer.Ordinal); 387private static Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByDirectTarget( 390var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 412private Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByConcreteImpl( 415var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 772private void GenerateMarkerInterfaces(Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByDirectTarget) 806private void GenerateConcreteHandleTypes(Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByConcreteImpl) 1636var seenForCapability = new Dictionary<string, string>(StringComparer.Ordinal);
GoLanguageSupport.cs (2)
31public Dictionary<string, string> Scaffold(ScaffoldRequest request) 33var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.Go.Tests (20)
AtsGoCodeGeneratorTests.cs (13)
32var files = _generator.GenerateDistributedApplication(atsContext); 52var files = _generator.GenerateDistributedApplication(atsContext); 232var files = _generator.GenerateDistributedApplication(atsContext); 249var files = _generator.GenerateDistributedApplication(atsContext); 263var files = _generator.GenerateDistributedApplication(atsContext); 274var files = _generator.GenerateDistributedApplication(atsContext); 287var files = _generator.GenerateDistributedApplication(atsContext); 299var files = _generator.GenerateDistributedApplication(atsContext); 312var files = _generator.GenerateDistributedApplication(atsContext); 325var files = _generator.GenerateDistributedApplication(atsContext); 336var files = _generator.GenerateDistributedApplication(atsContext); 350var files = _generator.GenerateDistributedApplication(atsContext); 370var files = _generator.GenerateDistributedApplication(atsContext);
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (2)
282Dictionary<string, string> metadata) 483public static Dictionary<string, string> GetMetadata(this IResourceBuilder<TestRedisResource> builder)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (5)
128public Dictionary<string, string> Metadata { get; } = []; 136public Dictionary<string, int> Counts { get; set; } = []; 148public Dictionary<string, int> Counts { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = []; 191public Dictionary<string, string>[] MetadataArray { get; set; } = [];
Aspire.Hosting.CodeGeneration.Java (24)
AtsJavaCodeGenerator.cs (22)
15public Dictionary<string, JavaExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal); 38private readonly Dictionary<string, string> _classNames = new(StringComparer.Ordinal); 39private readonly Dictionary<string, string> _dtoNames = new(StringComparer.Ordinal); 40private readonly Dictionary<string, string> _enumNames = new(StringComparer.Ordinal); 41private readonly Dictionary<string, List<AtsParameterInfo>> _optionsClassesToGenerate = new(StringComparer.Ordinal); 42private readonly Dictionary<string, string> _capabilityOptionsClassMap = new(StringComparer.Ordinal); 51public Dictionary<string, string> GenerateDistributedApplication(AtsContext context) 53var files = new Dictionary<string, string>(StringComparer.Ordinal); 80private static void AddSplitJavaSourceFiles(Dictionary<string, string> files, string source) 115private static Dictionary<string, string> SplitJavaSourceFiles(string source) 119var declarations = new Dictionary<string, string>(StringComparer.Ordinal); 607var capabilitiesByTarget = GroupCapabilitiesByTarget(capabilities); 608var collectionTypes = CollectListAndDictTypeIds(capabilities); 1233Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByTarget) 2219Dictionary<string, bool> collectionTypes) 2373var handleTypeMap = context.HandleTypes 2379var handleTypeInfoMap = context.HandleTypes 2419private static Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByTarget( 2422var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 2456private static Dictionary<string, bool> CollectListAndDictTypeIds(IReadOnlyList<AtsCapabilityInfo> capabilities) 2459var typeIds = new Dictionary<string, bool>(StringComparer.Ordinal); 2625private static void AddListOrDictTypeIfNeeded(Dictionary<string, bool> typeIds, AtsTypeRef? typeRef)
JavaLanguageSupport.cs (2)
46public Dictionary<string, string> Scaffold(ScaffoldRequest request) 48var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.Java.Tests (24)
AtsJavaCodeGeneratorTests.cs (17)
34var files = _generator.GenerateDistributedApplication(atsContext); 52var files = _generator.GenerateDistributedApplication(atsContext); 83var files = _generator.GenerateDistributedApplication(atsContext); 220var files = _generator.GenerateDistributedApplication(atsContext); 283var files = _generator.GenerateDistributedApplication(atsContext); 297var files = _generator.GenerateDistributedApplication(atsContext); 314var files = _generator.GenerateDistributedApplication(atsContext); 329var files = _generator.GenerateDistributedApplication(atsContext); 341var files = _generator.GenerateDistributedApplication(atsContext); 352var files = _generator.GenerateDistributedApplication(atsContext); 365var files = _generator.GenerateDistributedApplication(atsContext); 379var files = _generator.GenerateDistributedApplication(atsContext); 402var files = _generator.GenerateDistributedApplication(atsContext); 421var files = _generator.GenerateDistributedApplication(atsContext); 450var files = _generator.GenerateDistributedApplication(atsContext); 465var files = _generator.GenerateDistributedApplication(atsContext); 499private static string JoinGeneratedFiles(Dictionary<string, string> files)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (2)
282Dictionary<string, string> metadata) 483public static Dictionary<string, string> GetMetadata(this IResourceBuilder<TestRedisResource> builder)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (5)
128public Dictionary<string, string> Metadata { get; } = []; 136public Dictionary<string, int> Counts { get; set; } = []; 148public Dictionary<string, int> Counts { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = []; 191public Dictionary<string, string>[] MetadataArray { get; set; } = [];
Aspire.Hosting.CodeGeneration.Python (23)
AtsPythonCodeGenerator.cs (13)
29public Dictionary<string, PythonExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal); 126private readonly Dictionary<string, MergedCapabilityDispatch> _mergedCapabilityDispatches = new(StringComparer.Ordinal); 136private readonly Dictionary<string, string> _wrapperClassNames = new(StringComparer.Ordinal); 139private readonly Dictionary<string, string> _enumTypeNames = new(StringComparer.Ordinal); 636public Dictionary<string, string> GenerateDistributedApplication(AtsContext context) 638var files = new Dictionary<string, string>(); 1828var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>(); 1831var typeRefsByTypeId = new Dictionary<string, AtsTypeRef>(); 1834var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>(); 1945var allReferencedTypeRefs = CollectAllReferencedTypes(capabilities); 2025var buildersByTypeId = builders.ToDictionary(b => b.TypeId, StringComparer.Ordinal); 2084private Dictionary<string, AtsTypeRef> CollectAllReferencedTypes(IReadOnlyList<AtsCapabilityInfo> capabilities) 2086var typeRefs = new Dictionary<string, AtsTypeRef>();
PythonLanguageSupport.cs (2)
64public Dictionary<string, string> Scaffold(ScaffoldRequest request) 66var files = new Dictionary<string, string>();
PythonModuleBuilder.cs (8)
33public Dictionary<string, StringBuilder> TypeClasses { get; } = new(); 38public Dictionary<string, StringBuilder> InterfaceClasses { get; } = new(); 43public Dictionary<string, StringBuilder> ResourceBuilders { get; } = new(); 48public Dictionary<string, StringBuilder> ResourceOptions { get; } = new(); 53public Dictionary<string, List<string>> ResourceOptionNames { get; } = new(); 58public Dictionary<string, StringBuilder> ResourceClasses { get; } = new(); 68public Dictionary<string, string> HandleRegistrations { get; } = new(); 73public Dictionary<string, StringBuilder> MethodParameters { get; } = new();
Aspire.Hosting.CodeGeneration.Python.Tests (17)
AtsPythonCodeGeneratorTests.cs (10)
32var files = _generator.GenerateDistributedApplication(atsContext); 50var files = _generator.GenerateDistributedApplication(atsContext); 230var files = _generator.GenerateDistributedApplication(atsContext); 247var files = _generator.GenerateDistributedApplication(atsContext); 263var files = _generator.GenerateDistributedApplication(atsContext); 274var files = _generator.GenerateDistributedApplication(atsContext); 288var files = _generator.GenerateDistributedApplication(atsContext); 299var files = _generator.GenerateDistributedApplication(CreateContextWithKeywordParameter()); 311var files = _generator.GenerateDistributedApplication(CreateContextWithAcronymIdentifiers()); 322var files = _generator.GenerateDistributedApplication(CreateContextWithGenericInheritance());
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (2)
282Dictionary<string, string> metadata) 483public static Dictionary<string, string> GetMetadata(this IResourceBuilder<TestRedisResource> builder)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (5)
128public Dictionary<string, string> Metadata { get; } = []; 136public Dictionary<string, int> Counts { get; set; } = []; 148public Dictionary<string, int> Counts { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = []; 191public Dictionary<string, string>[] MetadataArray { get; set; } = [];
Aspire.Hosting.CodeGeneration.Rust (13)
AtsRustCodeGenerator.cs (11)
30private readonly Dictionary<string, string> _structNames = new(StringComparer.Ordinal); 31private readonly Dictionary<string, string> _dtoNames = new(StringComparer.Ordinal); 32private readonly Dictionary<string, string> _enumNames = new(StringComparer.Ordinal); 38public Dictionary<string, string> GenerateDistributedApplication(AtsContext context) 100var capabilitiesByTarget = GroupCapabilitiesByTarget(capabilities); 197var dtoTypesById = dtoTypes.ToDictionary(dto => dto.TypeId, StringComparer.Ordinal); 400Dictionary<string, List<AtsCapabilityInfo>> capabilitiesByTarget) 817var handleTypeMap = context.HandleTypes 838private static Dictionary<string, List<AtsCapabilityInfo>> GroupCapabilitiesByTarget( 841var result = new Dictionary<string, List<AtsCapabilityInfo>>(StringComparer.Ordinal); 1208public Dictionary<string, RustExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal);
RustLanguageSupport.cs (2)
35public Dictionary<string, string> Scaffold(ScaffoldRequest request) 37var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.Rust.Tests (15)
AtsRustCodeGeneratorTests.cs (6)
32var files = _generator.GenerateDistributedApplication(atsContext); 52var files = _generator.GenerateDistributedApplication(atsContext); 231var files = _generator.GenerateDistributedApplication(atsContext); 248var files = _generator.GenerateDistributedApplication(atsContext); 264var files = _generator.GenerateDistributedApplication(atsContext); 276var files = _generator.GenerateDistributedApplication(atsContext);
RustLanguageSupportTests.cs (2)
17var files = _languageSupport.Scaffold(new ScaffoldRequest 96var files = _languageSupport.Scaffold(new ScaffoldRequest
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (2)
282Dictionary<string, string> metadata) 483public static Dictionary<string, string> GetMetadata(this IResourceBuilder<TestRedisResource> builder)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestTypes.cs (5)
128public Dictionary<string, string> Metadata { get; } = []; 136public Dictionary<string, int> Counts { get; set; } = []; 148public Dictionary<string, int> Counts { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = []; 191public Dictionary<string, string>[] MetadataArray { get; set; } = [];
Aspire.Hosting.CodeGeneration.TypeScript (30)
AtsTypeScriptCodeGenerator.cs (2)
423public Dictionary<string, string> GenerateDistributedApplication(AtsContext context) 425var files = new Dictionary<string, string>();
TypeScriptApiProjector.cs (26)
96internal Dictionary<string, string> WrapperClassNames => _wrapperClassNames; 99internal Dictionary<string, string> ConcreteTypeIds => _concreteTypeIds; 102internal Dictionary<string, AtsTypeRef> TypeRefsById => _typeRefsById; 111internal Dictionary<string, List<AtsParameterInfo>> OptionsInterfacesToGenerate => _optionsInterfacesToGenerate; 114internal Dictionary<string, string> CapabilityOptionsInterfaceMap => _capabilityOptionsInterfaceMap; 117internal Dictionary<string, string> EnumTypeNames => _enumTypeNames; 120internal Dictionary<string, AtsDocumentationInfo> HandleDocumentationById => _handleDocumentationById; 123internal Dictionary<string, AtsDtoTypeInfo> DtoTypesById => _dtoTypesById; 129var directlyReturnedResourceTypesByClassName = capabilities 459var declarations = new Dictionary<string, TypeScriptApiDeclaration>(StringComparer.Ordinal) 1563private readonly Dictionary<string, string> _wrapperClassNames = new(StringComparer.Ordinal); 1567private readonly Dictionary<string, string> _concreteTypeIds = new(StringComparer.Ordinal); 1569private readonly Dictionary<string, AtsTypeRef> _typeRefsById = new(StringComparer.Ordinal); 1582private readonly Dictionary<string, List<AtsParameterInfo>> _optionsInterfacesToGenerate = new(StringComparer.Ordinal); 1588private readonly Dictionary<string, string> _capabilityOptionsInterfaceMap = new(StringComparer.Ordinal); 1594private readonly Dictionary<string, string> _optionsInterfaceOwningAssemblies = new(StringComparer.Ordinal); 1598private readonly Dictionary<string, string> _enumTypeNames = new(StringComparer.Ordinal); 1602private readonly Dictionary<string, AtsDocumentationInfo> _handleDocumentationById = new(StringComparer.Ordinal); 1606private readonly Dictionary<string, AtsDtoTypeInfo> _dtoTypesById = new(StringComparer.Ordinal); 2571var capabilitiesByTypeId = new Dictionary<string, List<AtsCapabilityInfo>>(); 2574var typeRefsByTypeId = new Dictionary<string, AtsTypeRef>(); 2577var interfaceCapabilities = new Dictionary<string, List<AtsCapabilityInfo>>(); 2711var allReferencedTypeRefs = CollectAllReferencedTypes(capabilities); 2854internal static Dictionary<string, AtsTypeRef> CollectAllReferencedTypes(IReadOnlyList<AtsCapabilityInfo> capabilities) 2856var typeRefs = new Dictionary<string, AtsTypeRef>(); 3044public Dictionary<string, ExportedValueTreeNode> Children { get; } = new(StringComparer.Ordinal);
TypeScriptLanguageSupport.cs (2)
63public Dictionary<string, string> Scaffold(ScaffoldRequest request) 65var files = new Dictionary<string, string>();
Aspire.Hosting.CodeGeneration.TypeScript.Tests (45)
AtsTypeScriptCodeGeneratorTests.cs (30)
51var files = _generator.GenerateDistributedApplication(atsContext); 72var files = _generator.GenerateDistributedApplication(atsContext); 92var files = _generator.GenerateDistributedApplication(atsContext); 106var files = _generator.GenerateDistributedApplication(atsContext); 198var files = _generator.GenerateDistributedApplication(context); 223var files = _generator.GenerateDistributedApplication(context); 245var files = _generator.GenerateDistributedApplication(context); 266var files = _generator.GenerateDistributedApplication(context); 483var files = _generator.GenerateDistributedApplication(atsContext); 759var files = _generator.GenerateDistributedApplication(atsContext); 771var files = _generator.GenerateDistributedApplication(atsContext); 1017var files = _generator.GenerateDistributedApplication(atsContext); 1041var files = _generator.GenerateDistributedApplication(atsContext); 1059var files = _generator.GenerateDistributedApplication(atsContext); 1090var files = _generator.GenerateDistributedApplication(atsContext); 1181var files = _generator.GenerateDistributedApplication(atsContext); 1298var files = _generator.GenerateDistributedApplication(atsContext); 1312var constructorHandleTypes = new Dictionary<string, string>(StringComparer.Ordinal); 1369var files = _generator.GenerateDistributedApplication(atsContext); 1387var files = _generator.GenerateDistributedApplication(atsContext); 1405var files = _generator.GenerateDistributedApplication(atsContext); 1462var files = _generator.GenerateDistributedApplication(result.ToAtsContext()); 1727var files = _generator.GenerateDistributedApplication(atsContext); 1901var files = _generator.GenerateDistributedApplication(atsContext); 2106var files = _generator.GenerateDistributedApplication(atsContext); 2128var files = _generator.GenerateDistributedApplication(atsContext); 2150var files = _generator.GenerateDistributedApplication(atsContext); 2168var files = _generator.GenerateDistributedApplication(atsContext); 2199var files = _generator.GenerateDistributedApplication(atsContext); 2694var methodsByCapability = forwardModel.Modules
TestTypes\TestExtensions.cs (2)
282Dictionary<string, string> metadata) 483public static Dictionary<string, string> GetMetadata(this IResourceBuilder<TestRedisResource> builder)
TestTypes\TestTypes.cs (5)
128public Dictionary<string, string> Metadata { get; } = []; 136public Dictionary<string, int> Counts { get; set; } = []; 148public Dictionary<string, int> Counts { get; set; } = []; 186public Dictionary<string, List<TestConfigDto>> NestedData { get; set; } = []; 191public Dictionary<string, string>[] MetadataArray { get; set; } = [];
TypeScriptLanguageSupportTests.cs (8)
19var files = _languageSupport.Scaffold(new ScaffoldRequest 92var files = _languageSupport.Scaffold(new ScaffoldRequest 139var files = _languageSupport.Scaffold(new ScaffoldRequest 172var files = _languageSupport.Scaffold(new ScaffoldRequest 206var files = _languageSupport.Scaffold(new ScaffoldRequest 227var files = _languageSupport.Scaffold(new ScaffoldRequest 284var files = _languageSupport.Scaffold(new ScaffoldRequest 304var files = _languageSupport.Scaffold(new ScaffoldRequest
Aspire.Hosting.Containers.Tests (1)
TestcontainersPodmanConfigurationTests.cs (1)
265Dictionary<string, string> environment,
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
489var schemeIndexTracker = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
38var values = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(consumer.Resource, serviceProvider: builder.Services.BuildServiceProvider()).DefaultTimeout();
Aspire.Hosting.Docker (30)
DockerComposeEnvironmentContext.cs (1)
154private static void RemoveHttpsServiceDiscoveryVariables(Dictionary<string, object> environmentVariables)
DockerComposeEnvironmentResource.cs (2)
53internal Dictionary<string, CapturedEnvironmentVariable> CapturedEnvironmentVariables { get; } = []; 55internal Dictionary<IResource, DockerComposeServiceResource> ResourceMapping { get; } = new(new ResourceNameComparer());
DockerComposeServiceResource.cs (3)
92internal Dictionary<string, object> EnvironmentVariables { get; } = []; 107internal Dictionary<string, EndpointMapping> EndpointMappings { get; } = []; 219var env = new Dictionary<string, string>();
Resources\ComposeFile.cs (6)
55public Dictionary<string, Service> Services { get; set; } = []; 65public Dictionary<string, Network> Networks { get; set; } = []; 76public Dictionary<string, Volume> Volumes { get; set; } = []; 89public Dictionary<string, Secret> Secrets { get; set; } = []; 97public Dictionary<string, Config> Configs { get; set; } = []; 108public Dictionary<string, object> Extensions { get; set; } = [];
Resources\ComposeNodes\Config.cs (1)
52public Dictionary<string, string> Labels { get; set; } = [];
Resources\ComposeNodes\Network.cs (2)
35public Dictionary<string, string> DriverOpts { get; set; } = []; 51public Dictionary<string, string> Labels { get; set; } = [];
Resources\ComposeNodes\Secret.cs (1)
47public Dictionary<string, string> Labels { get; set; } = [];
Resources\ComposeNodes\Service.cs (6)
90public Dictionary<string, string> Environment { get; set; } = []; 144public Dictionary<string, ServiceDependency> DependsOn { get; set; } = []; 203public Dictionary<string, string> Labels { get; set; } = []; 326public Dictionary<string, string> ExtraHosts { get; set; } = []; 440public Dictionary<string, string> Sysctls { get; set; } = []; 470public Dictionary<string, Ulimit> Ulimits { get; set; } = [];
Resources\ServiceNodes\Build.cs (2)
39public Dictionary<string, string> Args { get; set; } = []; 63public Dictionary<string, string> Labels { get; set; } = [];
Resources\ServiceNodes\Ipam.cs (2)
33public List<Dictionary<string, string>> Config { get; set; } = []; 45public Dictionary<string, string> Options { get; set; } = [];
Resources\ServiceNodes\Logging.cs (1)
32public Dictionary<string, string> Options { get; set; } = [];
Resources\ServiceNodes\Swarm\Placement.cs (1)
31public List<Dictionary<string, string>>? Preferences { get; set; }
Resources\ServiceNodes\Volume.cs (2)
64public Dictionary<string, string> DriverOpts { get; set; } = []; 81public Dictionary<string, string> Labels { get; set; } = [];
Aspire.Hosting.Docker.Tests (3)
DockerComposePublisherTests.cs (1)
1164public Dictionary<string, LaunchProfile>? Profiles { get; set; } = [];
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Dotnet (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
52var profiles = projectResource.GetLaunchSettings()?.Profiles;
Aspire.Hosting.EntityFrameworkCore (4)
EFCoreOperationExecutor.cs (4)
197private async Task<EFOperationResult> ExecuteEfCommandAsync(string command, string subCommand, Dictionary<string, string?>? additionalArgs = null, bool noBuild = true) 568var args = new Dictionary<string, string?> 701var args = new Dictionary<string, string?>(); 732var args = new Dictionary<string, string?>();
Aspire.Hosting.EntityFrameworkCore.Tests (1)
AddEFMigrationsTests.cs (1)
255var env = await toolResource.GetEnvironmentVariableValuesAsync(DistributedApplicationOperation.Publish);
Aspire.Hosting.Foundry (3)
HostedAgent\AzureHostedAgentResource.cs (3)
302internal static async Task<Dictionary<string, string>> GetResolvedEnvironmentVariablesAsync( 309var collectedEnvVars = new Dictionary<string, object>(); 322var resolvedEnvVars = new Dictionary<string, string>();
Aspire.Hosting.Foundry.Tests (9)
AddProjectTests.cs (1)
37var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(pyapp.Resource, DistributedApplicationOperation.Publish, TestServiceProvider.Instance);
HostedAgentExtensionTests.cs (3)
373var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 423var envVars = await AzureHostedAgentResource.GetResolvedEnvironmentVariablesAsync( 571var envVars = await AzureHostedAgentResource.GetResolvedEnvironmentVariablesAsync(
ProjectWithReferenceTests.cs (4)
22var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 41var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 60var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 79var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
PromptAgentTests.cs (1)
516var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
Aspire.Hosting.Integration.Analyzers (1)
AspireExportAnalyzer.cs (1)
206var synchronousDelegateParameters = method.Parameters
Aspire.Hosting.Java (3)
JavaHostingExtensions.cs (3)
1597private static void AppendJavaToolOptions(Dictionary<string, object> environmentVariables, string[] values) 2130private static Dictionary<string, string>? TryReadJarManifest(string jarPath) 2149var attributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Java.Tests (30)
AddJavaAppPublishTests.cs (2)
119var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 470var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
AddJavaAppTests.cs (16)
609var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 623var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 638var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 676var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 694var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 711var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 726var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 908var envVars = new Dictionary<string, object>(); 943var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 960var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 976var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 998var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 1015var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 1224var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 1278var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 1296var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
AddJavaContainerTests.cs (2)
117var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 134var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
AddQuarkusAppTests.cs (6)
178var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 194var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 213var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 232var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 254var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 308var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
AddSpringBootAppTests.cs (4)
243var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 274var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 305var buildEnv = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 361var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
Aspire.Hosting.JavaScript.Tests (14)
AddBunAppTests.cs (2)
253var envVars = new Dictionary<string, object>(); 283var envVars = new Dictionary<string, object>();
AddNodeAppTests.cs (1)
575var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(consumer.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
AddViteAppTests.cs (11)
150var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(nodeApp.Resource, DistributedApplicationOperation.Publish); 178var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(nodeApp.Resource, DistributedApplicationOperation.Publish); 570var env = new Dictionary<string, object>(); 630var env = new Dictionary<string, object>(); 682var env = new Dictionary<string, object>(); 728var env = new Dictionary<string, object>(); 777var env = new Dictionary<string, object>(); 839var env = new Dictionary<string, object>(); 907var resources = appModel.Resources.OfType<ViteAppResource>().ToDictionary(resource => resource.Name); 908var configPaths = new Dictionary<string, string>(); 1017var env = new Dictionary<string, object>();
Aspire.Hosting.Kafka.Tests (6)
AddKafkaTests.cs (6)
122var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(kafka.Resource); 140var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(kafka.Resource); 191var config1 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(kafka.Resource); 192var config2 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(kafka.Resource); 222var config1 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(kafkaUiResource); 223var config2 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(kafkaUiResource);
Aspire.Hosting.Keycloak.Tests (1)
KeycloakResourceBuilderTests.cs (1)
92var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(keycloak.Resource, serviceProvider: app.Services);
Aspire.Hosting.Kubernetes (71)
Deployment\HelmDeploymentEngine.cs (10)
299var overrideValues = new Dictionary<string, Dictionary<string, Dictionary<string, object>>>(); 303var resolvedLookup = new Dictionary<string, string>(); 368Dictionary<string, Dictionary<string, Dictionary<string, object>>> overrideValues, 371if (!overrideValues.TryGetValue(section, out var sectionDict)) 377if (!sectionDict.TryGetValue(resourceKey, out var resourceValues)) 390internal static string ResolveHelmExpressions(string template, Dictionary<string, string> resolvedLookup)
Extensions\ResourceExtensions.cs (1)
217Dictionary<string, KubernetesPersistentVolumeBindingAnnotation>? bindingsByVolumeName = null;
KubernetesEnvironmentContext.cs (1)
11private readonly Dictionary<IResource, KubernetesResource> _kubernetesComponents = new(new ResourceNameComparer());
KubernetesEnvironmentResource.cs (8)
459var deploymentTargets = new Dictionary<IResource, KubernetesResource>(new ResourceNameComparer()); 715private async Task ProcessIngressResources(DistributedApplicationModel model, Dictionary<IResource, KubernetesResource> deploymentTargets, ILogger logger, CancellationToken cancellationToken) 755Dictionary<IResource, KubernetesResource> deploymentTargets, 781var pathsByHost = new Dictionary<string, List<IngressPathConfig>>(); 920Dictionary<IResource, KubernetesResource> deploymentTargets, 956private async Task ProcessGatewayResources(DistributedApplicationModel model, Dictionary<IResource, KubernetesResource> deploymentTargets, ILogger logger, CancellationToken cancellationToken) 1053Dictionary<IResource, KubernetesResource> deploymentTargets, 1229Dictionary<IResource, KubernetesResource> deploymentTargets,
KubernetesGatewayResource.cs (1)
73internal Dictionary<string, ReferenceExpression> GatewayAnnotations { get; } = [];
KubernetesHelmChartResource.cs (1)
101internal Dictionary<string, string> Values { get; } = [];
KubernetesIngressResource.cs (1)
76internal Dictionary<string, ReferenceExpression> IngressAnnotations { get; } = [];
KubernetesManifestResource.cs (7)
23internal Dictionary<string, object?> Fields { get; } = []; 114private static void SetField(Dictionary<string, object?> fields, ReadOnlySpan<string> segments, string path, object? value) 116var current = fields; 123if (child is not Dictionary<string, object?> childFields) 132var childFields = new Dictionary<string, object?>(StringComparer.Ordinal); 235private static Dictionary<string, object?> NormalizeDictionary(IDictionary dictionary) 237var result = new Dictionary<string, object?>(StringComparer.Ordinal);
KubernetesPersistentVolumeResource.cs (1)
100internal Dictionary<string, ReferenceExpression> VolumeAnnotations { get; } = [];
KubernetesPublishingContext.cs (13)
27private readonly Dictionary<string, Dictionary<string, object>> _helmValues = new() 170if (!_helmValues.TryGetValue(captured.Section, out var section)) 176resourceObj is not Dictionary<string, object> resourceSection) 188var parameterItems = MergeHelmValueMappings( 195var configItems = MergeHelmValueMappings( 200var secretItems = MergeHelmValueMappings( 211private static Dictionary<string, KubernetesResource.HelmValue> MergeHelmValueMappings( 217var result = new Dictionary<string, KubernetesResource.HelmValue>(StringComparer.Ordinal); 218var origins = new Dictionary<string, string>(StringComparer.Ordinal); 257Dictionary<string, KubernetesResource.HelmValue> contextItems, 260if (contextItems.Count <= 0 || _helmValues[helmKey] is not Dictionary<string, object> helmSection) 265var paramValues = new Dictionary<string, object>();
KubernetesResource.cs (10)
48internal Dictionary<string, EndpointMapping> EndpointMappings { get; } = []; 49internal Dictionary<string, HelmValue> EnvironmentVariables { get; } = []; 50internal Dictionary<string, HelmValue> Secrets { get; } = []; 51internal Dictionary<string, HelmValue> Parameters { get; } = []; 52internal Dictionary<string, HelmValue> AdditionalConfigValues { get; } = []; 53internal Dictionary<string, HelmValue> AdditionalSecretValues { get; } = []; 54internal Dictionary<string, string> Labels { get; private set; } = []; 489private static void RemoveHttpsServiceDiscoveryVariables(Dictionary<string, object> environmentVariables) 709var values = parameter.Secret ? AdditionalSecretValues : AdditionalConfigValues; 722Dictionary<string, HelmValue> mappings,
Resources\ConfigMapV1.cs (2)
30public Dictionary<string, string> BinaryData { get; } = []; 43public Dictionary<string, string> Data { get; } = [];
Resources\HelmChart.cs (1)
136public Dictionary<string, string> Annotations { get; set; } = [];
Resources\LabelSelectorV1.cs (2)
34public Dictionary<string, string> MatchLabels { get; set; } = []; 58public LabelSelectorV1(Dictionary<string, string> matchLabels)
Resources\ObjectMetaV1.cs (2)
131public Dictionary<string, string> Annotations { get; } = []; 169public Dictionary<string, string> Labels { get; set; } = [];
Resources\PersistentVolumeSpecV1.cs (1)
109public Dictionary<string, string> Capacity { get; set; } = [];
Resources\PodSpecV1.cs (2)
51public Dictionary<string, string> Overhead { get; } = []; 157public Dictionary<string, string> NodeSelector { get; } = [];
Resources\ResourceRequirementsV1.cs (2)
32public Dictionary<string, string> Limits { get; } = []; 43public Dictionary<string, string> Requests { get; } = [];
Resources\SecretV1.cs (2)
32public Dictionary<string, string> Data { get; } = []; 43public Dictionary<string, string> StringData { get; } = [];
Resources\ServiceSpecV1.cs (1)
93public Dictionary<string, string> Selector { get; set; } = [];
Resources\VolumeResourceRequirementsV1.cs (2)
25public Dictionary<string, string> Limits { get; } = []; 33public Dictionary<string, string> Requests { get; } = [];
Aspire.Hosting.Kubernetes.Tests (6)
KubernetesDeployTests.cs (3)
1072var lookup = new Dictionary<string, string> 1086var lookup = new Dictionary<string, string> 1100var lookup = new Dictionary<string, string>();
KubernetesPublisherTests.cs (1)
1910public Dictionary<string, LaunchProfile>? Profiles { get; set; } = [];
tests\Shared\InMemoryDeploymentStateManager.cs (2)
16private readonly Dictionary<string, JsonObject> _sections = new(); 17private readonly Dictionary<string, long> _versions = new();
Aspire.Hosting.Maui (11)
MauiAndroidExtensions.cs (2)
175var msBuildProperties = new Dictionary<string, string>(); 380var msBuildProperties = new Dictionary<string, string>();
MauiiOSExtensions.cs (2)
182var msBuildProperties = new Dictionary<string, string> 391var msBuildProperties = new Dictionary<string, string>();
MauiLaunchConfiguration.cs (1)
38public Dictionary<string, string>? MsBuildProperties { get; set; }
MauiPlatformHelper.cs (1)
29Dictionary<string, string>? msBuildProperties = null) where T : ProjectResource
Utilities\MauiEnvironmentHelper.cs (3)
40var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 84internal static string GenerateAndroidTargetsFileContent(Dictionary<string, string> environmentVariables) 260internal static string GenerateiOSTargetsFileContent(Dictionary<string, string> environmentVariables)
Utilities\ProjectFileReader.cs (2)
16private static readonly ConcurrentDictionary<string, Dictionary<string, string?>> s_projectCache = new(StringComparer.OrdinalIgnoreCase); 32var platformCache = s_projectCache.GetOrAdd(projectPath, _ => new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase));
Aspire.Hosting.Maui.Tests (20)
MauiEnvironmentHelperTests.cs (9)
18var envVars = new Dictionary<string, string> 35var envVars = new Dictionary<string, string> 55var envVars = new Dictionary<string, string> 72var envVars = new Dictionary<string, string> 88var envVars = new Dictionary<string, string> 112var envVars = new Dictionary<string, string> 128var envVars = new Dictionary<string, string> 148var envVars = new Dictionary<string, string> 165var envVars = new Dictionary<string, string>
MauiOtlpTemplateTests.cs (3)
32var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 59var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 82var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
MauiPlatformExtensionsTests.cs (8)
316var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 545var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 655var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 715var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 780var envVars = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 930public Dictionary<string, string>? ExpectedMsBuildProperties { get; } 944Dictionary<string, string>? expectedMsBuildProperties) 1002public Dictionary<string, string>? MsBuildProperties { get; set; }
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
72private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
109var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 120var containerConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container1.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
125private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MongoDB.Tests (3)
AddMongoDBTests.cs (3)
168var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(mongoExpress, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 320var config1 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(mongoExpressResource); 321var config2 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(mongoExpressResource);
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
15private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.MySql.Tests (5)
AddMySqlTests.cs (5)
63var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 102var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 246var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(myAdmin, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 389var config1 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(phpMyAdminResource); 390var config2 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(phpMyAdminResource);
Aspire.Hosting.OpenAI (1)
OpenAIHealthCheck.cs (1)
111var data = new Dictionary<string, object>
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
109private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.Oracle.Tests (3)
AddOracleTests.cs (3)
61var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 100var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 182var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Orleans (4)
OrleansService.cs (4)
68public Dictionary<string, IProviderConfiguration> GrainStorage { get; } = []; 73public Dictionary<string, IProviderConfiguration> GrainDirectory { get; } = []; 78public Dictionary<string, IProviderConfiguration> BroadcastChannel { get; } = []; 83public Dictionary<string, IProviderConfiguration> Streaming { get; } = [];
Aspire.Hosting.Orleans.Tests (5)
OrleansProviderTypeTests.cs (5)
27var config = await GetEnvironmentVariablesAsync(silo.Resource, builder); 49var config = await GetEnvironmentVariablesAsync(silo.Resource, builder); 73var config = await GetEnvironmentVariablesAsync(silo.Resource, builder); 118private static async Task<Dictionary<string, object>> GetEnvironmentVariablesAsync(IResource resource, IDistributedApplicationBuilder builder) 120var env = new Dictionary<string, object>();
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
91private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.PostgreSQL.Tests (7)
AddPostgresTests.cs (6)
72var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 126var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 205var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(consumer.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 242var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 721var config1 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(postgres.Resource); 722var config2 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(postgres.Resource);
PostgresMcpBuilderTests.cs (1)
92var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(mcpContainer, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Python.Tests (5)
AddPythonAppTests.cs (5)
137var environmentVariables = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(pyproj.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 519var environmentVariables = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 1718var environmentVariables = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 1740var environmentVariables = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 1758var environmentVariables = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
Aspire.Hosting.Qdrant.Tests (5)
AddQdrantTests.cs (5)
73var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 145var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 194var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 206var containerConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container1.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 237var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(consumer.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Radius (72)
Annotations\RadiusRecipeParametersAnnotation.cs (4)
22public Dictionary<string, object> EnvironmentWide { get; } = new(StringComparer.Ordinal); 29public Dictionary<string, Dictionary<string, object>> ByResourceType { get; } = new(StringComparer.Ordinal); 58Dictionary<string, object> target,
Publishing\BicepPostProcessor.cs (1)
300var seen = new Dictionary<string, string>(StringComparer.Ordinal);
Publishing\RadiusInfrastructureBuilder.cs (57)
47private readonly Dictionary<string, ProvisioningParameter> _envParametersByName = new(StringComparer.Ordinal); 51private readonly Dictionary<string, ParameterResource> _deployParametersByIdentifier = new(StringComparer.Ordinal); 56private readonly Dictionary<string, ProvisioningParameter> _recipeParameters = new(StringComparer.Ordinal); 61private readonly Dictionary<string, ParameterResource> _recipeParameterBindings = new(StringComparer.Ordinal); 65private readonly Dictionary<string, string> _recipeParameterIdentifiers = new(StringComparer.Ordinal); 74private static readonly Dictionary<string, string> s_defaultRecipeTemplates = new(StringComparer.Ordinal) 132var udtRecipeEntries = new Dictionary<string, RecipeEntry>(StringComparer.Ordinal); 133var legacyRecipeEntries = new Dictionary<string, Dictionary<string, RecipeEntry>>(StringComparer.Ordinal); 134var typeInstancesByResourceName = new Dictionary<string, RadiusResourceTypeConstruct>(StringComparer.Ordinal); 240var secretStoreConstructs = EmitSecretStores(options, secretStoresForScope, legacyEnvConstruct, legacyAppConstruct); 246var instanceParents = new Dictionary<RadiusResourceTypeConstruct, (ProvisionableResource? Env, ProvisionableResource App)>(); 268var containerConnectionTargets = new Dictionary<RadiusContainerConstruct, Dictionary<string, RadiusResourceTypeConstruct>>(); 276var containerPortSnapshots = new Dictionary<string, Dictionary<string, (int Port, string Protocol)>>(StringComparer.Ordinal); 281var connectionTargets = GetConnectionTargets(resource, radiusResources, typeInstancesByResourceName); 288var env = await ResolveEnvironmentAsync(resource).ConfigureAwait(false); 289var ports = ResolvePorts(resource); 385var deployParameters = new Dictionary<string, ParameterResource>(_deployParametersByIdentifier, StringComparer.Ordinal); 409Dictionary<RadiusRecipePackConstruct, string> RecipePackIds, 410Dictionary<RadiusResourceTypeConstruct, (string? EnvId, string AppId)> InstanceParentIds, 411Dictionary<RadiusContainerConstruct, Dictionary<string, string>> ContainerConnectionTargetIds, 412Dictionary<RadiusSecretStoreConstruct, string> SecretStoreIds); 435Dictionary<RadiusResourceTypeConstruct, (ProvisionableResource? Env, ProvisionableResource App)> instanceParents, 436Dictionary<RadiusContainerConstruct, Dictionary<string, RadiusResourceTypeConstruct>> containerConnectionTargets, 508if (!containerConnectionTargets.TryGetValue(container, out var targets)) 525!snapshot.ContainerConnectionTargetIds.TryGetValue(container, out var targetSnapIds)) 633private (List<IResource> radiusResources, List<IResource> computeResources, Dictionary<IResource, (string ResourceType, string ApiVersion)> resolvedTypes) ClassifyResources() 637var resolved = new Dictionary<IResource, (string ResourceType, string ApiVersion)>(); 821Dictionary<string, RecipeEntry> entries, 839string identifier, Dictionary<string, RecipeEntry> recipeEntries) 867Dictionary<string, Dictionary<string, RecipeEntry>> entries, 875if (!entries.TryGetValue(resourceType, out var byName)) 896Dictionary<string, Dictionary<string, RecipeEntry>> legacyRecipeEntries) 988private static Dictionary<string, RadiusResourceTypeConstruct> GetConnectionTargets( 991Dictionary<string, RadiusResourceTypeConstruct> typeInstancesByResourceName) 993var connections = new Dictionary<string, RadiusResourceTypeConstruct>(StringComparer.Ordinal); 1025Dictionary<string, RadiusResourceTypeConstruct> connectionTargets, 1063private static Dictionary<string, ContainerPortConstruct> ResolvePorts(IResource resource) 1065var ports = new Dictionary<string, ContainerPortConstruct>(StringComparer.Ordinal); 1114private async Task<Dictionary<string, ContainerEnvVarConstruct>> ResolveEnvironmentAsync(IResource resource) 1116var result = new Dictionary<string, ContainerEnvVarConstruct>(StringComparer.Ordinal); 1454IReadOnlyDictionary<string, Dictionary<string, (int Port, string Protocol)>> portSnapshots) 1459var containersByMapKey = new Dictionary<string, RadiusContainerConstruct>(StringComparer.Ordinal); 1668var effective = new Dictionary<string, object>(annotation.EnvironmentWide, StringComparer.Ordinal); 1670if (annotation.ByResourceType.TryGetValue(resourceType, out var scoped)) 1936private Dictionary<string, RadiusSecretStoreConstruct> EmitSecretStores( 1942var storeConstructs = new Dictionary<string, RadiusSecretStoreConstruct>(StringComparer.Ordinal); 1993var bicepAuth = new Dictionary<string, object>(StringComparer.Ordinal); 1994var gitPat = new Dictionary<string, object>(StringComparer.Ordinal); 1995var envSecrets = new Dictionary<string, object>(StringComparer.Ordinal); 2021var recipeConfig = new Dictionary<string, object>(StringComparer.Ordinal);
Publishing\RadiusInfrastructureOptions.cs (3)
88internal Dictionary<string, ValidatedManifest> SealedSecretManifests { get; } = new(StringComparer.Ordinal); 97internal Dictionary<string, ProvisioningParameter> RecipeParameters { get; } = new(StringComparer.Ordinal); 104internal Dictionary<string, ParameterResource> RecipeParameterBindings { get; } = new(StringComparer.Ordinal);
Recipes\RadiusRecipeParameterExtensions.cs (3)
72var staging = new Dictionary<string, object>(StringComparer.Ordinal); 106var staging = new Dictionary<string, object>(StringComparer.Ordinal); 110if (!annotation.ByResourceType.TryGetValue(resourceType, out var target))
ResourceMapping\ResourceTypeMapper.cs (1)
49private static readonly Dictionary<string, RadiusTypeMapping> s_typeMappings = new(StringComparer.Ordinal)
Secrets\RadiusSecretStorePopulation.cs (1)
27public Dictionary<string, RadiusSecretKeyBinding> Data { get; } = new(StringComparer.Ordinal);
Secrets\RadiusSecretStoreValidation.cs (2)
348var appScoped = new Dictionary<string, RadiusSecretStoreResource>(StringComparer.Ordinal); 349var envScoped = new Dictionary<(string? EnvironmentName, string Identifier), RadiusSecretStoreResource>();
Aspire.Hosting.Redis.Tests (6)
AddRedisTests.cs (6)
296var envs = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(redisInsight); 492var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 518var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(commander); 539var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 770var config1 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(redisInsightResource); 771var config2 = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(redisInsightResource);
Aspire.Hosting.RemoteHost (53)
Ats\AtsMarshaller.cs (2)
629if (genericDef == typeof(Dictionary<,>) || genericDef == typeof(IDictionary<,>) || genericDef == typeof(IReadOnlyDictionary<,>)) 635var dictType = typeof(Dictionary<,>).MakeGenericType(typeof(string), valueType);
Ats\CapabilityDispatcher.cs (1)
32private readonly Dictionary<string, HashSet<string>> _polyglotMethodNamesByClrName = new(StringComparer.Ordinal);
AtsCapabilityScanner.cs (25)
51public Dictionary<string, MethodInfo> Methods { get; init; } = new(); 57public Dictionary<string, PropertyInfo> Properties { get; init; } = new(); 93private readonly Dictionary<string, AtsEnumTypeInfo> _enums = new(StringComparer.Ordinal); 147var allMethods = new Dictionary<string, MethodInfo>(); 148var allProperties = new Dictionary<string, PropertyInfo>(); 149var seenCapabilities = new Dictionary<string, AtsCapabilityInfo>(); // Track capability ID -> first capability for duplicate detection 306var methods = new Dictionary<string, MethodInfo>(); 307var properties = new Dictionary<string, PropertyInfo>(); 311var discoveredResourceTypes = new Dictionary<string, Type>(); 533var enumTypes = new Dictionary<string, Type>(StringComparer.Ordinal); 602private static void CollectEnumClrTypes(AtsTypeRef? typeRef, Dictionary<string, Type> enumTypes) 832var typeToCompatibleTypes = BuildTypeCompatibilityMap(typeInfos); 870private static Dictionary<string, List<AtsTypeRef>> BuildTypeCompatibilityMap( 873var typeToCompatibleTypes = new Dictionary<string, List<AtsTypeRef>>(); 917Dictionary<string, List<AtsTypeRef>> map, 953var expandedTargetsToRemove = new Dictionary<string, HashSet<string>>(StringComparer.Ordinal); 1157genericTypeDefinition == typeof(Dictionary<,>) || 1527public Dictionary<string, MethodInfo> Methods { get; init; } = new(); 1532public Dictionary<string, PropertyInfo> Properties { get; init; } = new(); 1543var methods = new Dictionary<string, MethodInfo>(); 1544var properties = new Dictionary<string, PropertyInfo>(); 2411if (genericDef == typeof(Dictionary<,>) || genericDef == typeof(IDictionary<,>)) 2736if (genericDef == typeof(Dictionary<,>) || genericDef == typeof(IDictionary<,>)) 3071Dictionary<string, Type> discoveredTypes) 3109Dictionary<string, Type> discoveredTypes)
AtsContextFilter.cs (5)
111var supportingHandleTypes = filteredContext.HandleTypes 201var handleTypesById = context.HandleTypes.ToDictionary(type => type.AtsTypeId, StringComparer.Ordinal); 202var dtoTypesById = context.DtoTypes.ToDictionary(type => type.TypeId, StringComparer.Ordinal); 203var enumTypesById = context.EnumTypes.ToDictionary(type => type.TypeId, StringComparer.Ordinal); 360var referencedHandleTypes = new Dictionary<string, AtsTypeRef>(StringComparer.Ordinal);
CodeGeneration\CodeGenerationService.cs (2)
234public Dictionary<string, string> GenerateCode(string language, string? assemblyName = null) 258var files = generator.GenerateDistributedApplication(context);
CodeGeneration\CodeGeneratorResolver.cs (8)
16private readonly Lazy<Dictionary<string, ICodeGenerator>> _generators; 17private readonly Lazy<Dictionary<string, IApiReferenceExporter>> _exporters; 36_generators = new Lazy<Dictionary<string, ICodeGenerator>>( 38_exporters = new Lazy<Dictionary<string, IApiReferenceExporter>>( 101private Dictionary<string, ICodeGenerator> DiscoverGenerators( 105var generators = new Dictionary<string, ICodeGenerator>(StringComparer.OrdinalIgnoreCase); 151private Dictionary<string, IApiReferenceExporter> DiscoverExporters( 155var exporters = new Dictionary<string, IApiReferenceExporter>(StringComparer.OrdinalIgnoreCase);
Language\LanguageService.cs (2)
46public Dictionary<string, string> ScaffoldAppHost(string language, string targetPath, string? projectName = null) 67var files = languageSupport.Scaffold(request);
Language\LanguageSupportResolver.cs (4)
16private readonly Lazy<Dictionary<string, ILanguageSupport>> _languages; 35_languages = new Lazy<Dictionary<string, ILanguageSupport>>( 59private Dictionary<string, ILanguageSupport> DiscoverLanguages( 63var languages = new Dictionary<string, ILanguageSupport>(StringComparer.OrdinalIgnoreCase);
src\Shared\IntegrationPackageProbeManifest.cs (4)
46var managedLookup = new Dictionary<string, IntegrationPackageManagedAssembly>(StringComparer.OrdinalIgnoreCase); 63var nativeLookup = new Dictionary<string, IntegrationPackageNativeLibrary>(StringComparer.OrdinalIgnoreCase); 270var lookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 282var lookup = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.RemoteHost.Tests (11)
AtsCapabilityScannerTests.cs (3)
877public static Dictionary<string, string> MutableMetadata { get; } = []; 894public Dictionary<string, string> Metadata { get; } = []; 904public Dictionary<string, string> Metadata { get; init; } = [];
AtsMarshallerTests.cs (4)
423var result = marshaller.UnmarshalFromJson(json, typeof(Dictionary<string, int>), context); 426var dict = Assert.IsType<Dictionary<string, int>>(result); 553var dict = new Dictionary<string, int> { ["a"] = 1 };
CapabilityDispatcherTests.cs (3)
2534public static Dictionary<string, object> ReturnMutableDict() 2545public static Dictionary<string, int> ReturnTypedMutableDict() 2556public static Dictionary<int, string> ReturnIntKeyMutableDict()
CodeGeneration\ApiReferenceExportTests.cs (1)
220var configurationValues = new Dictionary<string, string?>
Aspire.Hosting.Rust.Tests (11)
CargoMetadataTests.cs (11)
100var environment = new Dictionary<string, string> 117var environment = new Dictionary<string, string> { ["REGISTRY_TOKEN"] = " secret " }; 129var environment = new Dictionary<string, string> { ["REGISTRY_TOKEN"] = Secret }; 142var resourceEnvironment = new Dictionary<string, string>(); 143var inheritedEnvironment = new Dictionary<string, string?> 160var inheritedEnvironment = new Dictionary<string, string?> 183var inheritedEnvironment = new Dictionary<string, string?> 201var inheritedEnvironment = new Dictionary<string, string?> 217var environment = new Dictionary<string, string> { ["API_TOKEN"] = "1" }; 227var environment = new Dictionary<string, string> 241var environment = new Dictionary<string, string> { ["API_TOKEN"] = "1" };
Aspire.Hosting.Sdk.Tests (42)
AppHostSdkTargetsTests.cs (42)
107var properties = await GetComputeRunArgumentsPropertiesAsync( 143var properties = await GetComputeRunArgumentsPropertiesAsync( 176var properties = await GetComputeRunArgumentsPropertiesAsync( 235var properties = await GetComputeRunArgumentsPropertiesAsync( 254var properties = await GetComputeRunArgumentsPropertiesAsync( 294var properties = await GetComputeRunArgumentsPropertiesAsync(project, [$"-p:AspireCliPath={aspireCliPath}"]); 309var properties = await GetComputeRunArgumentsPropertiesAsync( 334var properties = await GetComputeRunArgumentsPropertiesAsync( 375var properties = await GetComputeRunArgumentsPropertiesAsync( 391var properties = await GetComputeRunArgumentsPropertiesAsync(project); 406Dictionary<string, string>? environment = suppressionPropertyName == SuppressCliRunHookEnvironmentVariable 413var properties = await GetComputeRunArgumentsPropertiesAsync(project, extraArguments, environment); 429var environment = new Dictionary<string, string> 466var environment = new Dictionary<string, string> 506var environment = new Dictionary<string, string> 547var environment = new Dictionary<string, string> 584var properties = await GetComputeRunArgumentsPropertiesAsync( 599var environment = new Dictionary<string, string> 612var properties = await GetComputeRunArgumentsPropertiesAsync( 648var environment = new Dictionary<string, string> 656var properties = await GetResolveAspireCliBundlePathPropertiesAsync( 681var environment = new Dictionary<string, string> 687var properties = await GetResolveAspireCliBundlePathPropertiesAsync(project, environment, ["-warnaserror"]); 708var environment = new Dictionary<string, string> 714var properties = await GetResolveAspireCliBundlePathPropertiesAsync(project, environment, ["-warnaserror"]); 736var environment = new Dictionary<string, string> 743var properties = await GetResolveAspireCliBundlePathPropertiesAsync(project, environment, ["-warnaserror"]); 762var environment = new Dictionary<string, string> 927var environment = new Dictionary<string, string> 952var properties = await GetComputeRunArgumentsPropertiesAsync( 978var properties = await GetComputeRunArgumentsPropertiesAsync( 994var properties = await GetComputeRunArgumentsPropertiesAsync( 1010var properties = await GetComputeRunArgumentsPropertiesAsync( 1026var properties = await GetComputeRunArgumentsPropertiesAsync( 1042var properties = await GetComputeRunArgumentsPropertiesAsync( 1056var properties = await GetComputeRunArgumentsPropertiesAsync( 1156private static async Task<Dictionary<string, string>> GetComputeRunArgumentsPropertiesAsync( 1169private static async Task<Dictionary<string, string>> GetResolveAspireCliBundlePathPropertiesAsync( 1182private static async Task<Dictionary<string, string>> GetTargetPropertiesAsync( 1727Dictionary<string, string> properties, 1745private static void AssertUsesDotNetRun(Dictionary<string, string> properties, RunHookProject project, string expectedArguments = "") 1771private static Dictionary<string, string> CreatePathEnvironment(string directory, bool includeCurrentPath = true)
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
129private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.SqlServer.Tests (1)
AddSqlServerTests.cs (1)
62var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Testing (3)
DistributedApplicationFactory.cs (3)
200var additionalConfig = new Dictionary<string, string?>(); 271var additionalConfig = new Dictionary<string, string?>(); 281var launchProfiles = appHostLaunchSettings.Profiles;
Aspire.Hosting.Tests (233)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
1000var evaluated = await annotation.AsCallbackAnnotation()
Backchannel\BackchannelContractTests.cs (5)
198var expectedValues = new Dictionary<PropertyInfo, object?>(); 331return genericDef == typeof(Dictionary<,>) || 373if (property.PropertyType == typeof(Dictionary<string, string>)) 394if (expected is Dictionary<string, string> expectedDictionary && actual is Dictionary<string, string> actualDictionary)
Backchannel\JsonElementConversionTests.cs (10)
98var dict = Assert.IsType<Dictionary<string, object?>>(result); 109var dict = Assert.IsType<Dictionary<string, object?>>(result); 110var nested = Assert.IsType<Dictionary<string, object?>>(dict["outer"]); 147var dict = Assert.IsType<Dictionary<string, object?>>(result); 157var options = Assert.IsType<Dictionary<string, object?>>(dict["options"]);
ConnectionPropertiesExtensionsTests.cs (1)
26var dict = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Dashboard\DashboardEventHandlersTests.cs (4)
265var environmentVariables = dashboardEnvironment.EnvironmentVariables.ToDictionary(); 295var envVars = new Dictionary<string, object>(); 346var environmentVariables = new Dictionary<string, object>(); 387var environmentVariables = new Dictionary<string, object>();
Dashboard\DashboardResourceTests.cs (8)
269var config = new Dictionary<string, string?> 387var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 427var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 463var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 507var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 553var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 596var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout(); 807var config = new Dictionary<string, string?>
Dcp\ConfigureDefaultDcpOptionsTests.cs (1)
98private static DcpOptions ConfigureWithDcpPublisher(Dictionary<string, string?> dcpPublisherSettings)
Dcp\DcpExecutorTests.cs (75)
294var configDict = new Dictionary<string, string?> 833var configDict = new Dictionary<string, string?> 868var configDict = new Dictionary<string, string?> 906var configDict = new Dictionary<string, string?> 1185var configDict = new Dictionary<string, string?> 1223var configDict = new Dictionary<string, string?> 1261var configDict = new Dictionary<string, string?> 1382var configDict = new Dictionary<string, string?> 3493var configDict = new Dictionary<string, string?> 3530var configDict = new Dictionary<string, string?> 4667var configDict = new Dictionary<string, string?> 4718var configDict = new Dictionary<string, string?> 5102var configDict = new Dictionary<string, string?> 5255var configDict = new Dictionary<string, string?> 5308var configDict = new Dictionary<string, string?> 5359var configDict = new Dictionary<string, string?> 5582var configDict = new Dictionary<string, string?> 5621var configDict = new Dictionary<string, string?> 5660var configDict = new Dictionary<string, string?> 5696var configDict = new Dictionary<string, string?> 5738var configDict = new Dictionary<string, string?> 5780var configDict = new Dictionary<string, string?> 5822var configDict = new Dictionary<string, string?> 5859var configDict = new Dictionary<string, string?> 5896var configDict = new Dictionary<string, string?> 5938var configDict = new Dictionary<string, string?> 5972var configDict = new Dictionary<string, string?> 6011var configDict = new Dictionary<string, string?> 6053var configDict = new Dictionary<string, string?> 6090var configDict = new Dictionary<string, string?> 6136var configDict = new Dictionary<string, string?> 6193var configDict = new Dictionary<string, string?> 6247var configDict = new Dictionary<string, string?> 6360var configDict = new Dictionary<string, string?> 7000var configDict = new Dictionary<string, string?> 7086var configDict = new Dictionary<string, string?> 7127var configDict = new Dictionary<string, string?> 7183var configDict = new Dictionary<string, string?> 7225var configDict = new Dictionary<string, string?> 7305var configDict = new Dictionary<string, string?> 7337var configDict = new Dictionary<string, string?> 7383var configDict = new Dictionary<string, string?> 7424var configDict = new Dictionary<string, string?> 7463var configDict = new Dictionary<string, string?> 7506var configDict = new Dictionary<string, string?> 7706var configDict = new Dictionary<string, string?> 7778var configDict = new Dictionary<string, string?> 7817var configDict = new Dictionary<string, string?> 7851var configDict = new Dictionary<string, string?> 7915var configDict = new Dictionary<string, string?> 7946var configDict = new Dictionary<string, string?> 7978var configDict = new Dictionary<string, string?> 8040var configDict = new Dictionary<string, string?> 8095var configDict = new Dictionary<string, string?> 8146var configDict = new Dictionary<string, string?> 8199var configDict = new Dictionary<string, string?> 8276var configDict = new Dictionary<string, string?> 8311var configDict = new Dictionary<string, string?> 8366var configDict = new Dictionary<string, string?> 8408var configDict = new Dictionary<string, string?> 8445var configDict = new Dictionary<string, string?> 8480var configDict = new Dictionary<string, string?> 8556var configDict = new Dictionary<string, string?> 8639var configDict = new Dictionary<string, string?> 8701var configDict = new Dictionary<string, string?> 8752var configDict = new Dictionary<string, string?> 8795var configDict = new Dictionary<string, string?> 8845var configDict = new Dictionary<string, string?> 9230var configDict = new Dictionary<string, string?> 9283var configDict = new Dictionary<string, string?> 9653var configDict = new Dictionary<string, string?> 9700var configDict = new Dictionary<string, string?> 9744var configDict = new Dictionary<string, string?> 9793var configDict = new Dictionary<string, string?> 10350public Dictionary<string, string>? MsBuildProperties { get; set; }
Dcp\DcpHostNotificationTests.cs (1)
576var excludedVars = new Dictionary<string, string>
Dcp\ExecutableLaunchPlanTests.cs (3)
29var configurationValues = 76var configurationValues = 135var configurationValues =
DistributedApplicationTests.cs (1)
786Dictionary<int, bool> pids = [];
DotnetToolResourceTests.cs (1)
19var properties = resource.CreateSnapshotProperties().ToDictionary(p => p.Name);
ExpressionResolverTests.cs (7)
144var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(source.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 182var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.Run, testServiceProvider).DefaultTimeout(); 219var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.Run, testServiceProvider).DefaultTimeout(); 244var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.Run, testServiceProvider).DefaultTimeout(); 270var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dep.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 289var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dep.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 344Dictionary<string, ReferenceExpression> Expressions { get; }
ExternalServiceTests.cs (5)
116var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 133var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 152var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 172var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Publish, app.Services).DefaultTimeout(); 560var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
FileSystemServiceTests.cs (1)
16var configDict = new Dictionary<string, string?>();
KestrelConfigTests.cs (3)
41var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 79var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 144var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
Orchestrator\ApplicationOrchestratorTests.cs (1)
1238Dictionary<string, string> kvConnectionString,
Pipelines\DistributedApplicationPipelineTests.cs (3)
238var stepTimes = executionOrder.ToDictionary(x => x.step, x => x.time); 934var executionTimes = new Dictionary<string, DateTime>(); 2019var executionOrder = new Dictionary<string, int>();
ProjectResourceTests.cs (11)
137var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 240var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 264var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 395var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Publish).DefaultTimeout(); 438var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 481var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 503var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 528var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 555var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 748var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 1068protected Dictionary<string, LaunchProfile>? Profiles { get; set; } = new();
Publishing\ContainerRuntimeBaseTests.cs (2)
41public override Task BuildImageAsync(string contextPath, string dockerfilePath, ContainerImageBuildOptions? options, Dictionary<string, string?> buildArguments, Dictionary<string, BuildImageSecretValue> buildSecrets, string? stage, CancellationToken cancellationToken)
Publishing\ResourceContainerImageManagerTests.cs (4)
991var secrets = new Dictionary<string, BuildImageSecretValue> 1004var secrets = new Dictionary<string, BuildImageSecretValue> 1017var secrets = new Dictionary<string, BuildImageSecretValue> 1030var secrets = new Dictionary<string, BuildImageSecretValue>
ResourceCommandServiceTests.cs (3)
795var argumentValues = new Dictionary<string, string?> { ["selecter"] = "#submit" }; 827var argumentValues = new Dictionary<string, string?> { ["saveToUserSecrets"] = "true" }; 868var argumentValues = new Dictionary<string, string?> { ["item"] = "banana" };
ResourceExtensionsTests.cs (3)
223var env = await container.Resource.GetEnvironmentVariableValuesAsync().DefaultTimeout(); 258var env = await container.Resource.GetEnvironmentVariableValuesAsync().DefaultTimeout(); 293var env = await container.Resource.GetEnvironmentVariableValuesAsync(DistributedApplicationOperation.Publish).DefaultTimeout();
SecretsStoreTests.cs (3)
43var userSecrets = GetUserSecrets(userSecretsId); 69var userSecrets = GetUserSecrets(userSecretsId); 76private static Dictionary<string, string?> GetUserSecrets(string userSecretsId)
UserSecretsParameterDefaultTests.cs (12)
43var userSecrets = GetUserSecrets(userSecretsId); 106var secretsToWrite = new Dictionary<string, string> 131var userSecrets = GetUserSecrets(userSecretsId); 172var userSecrets = GetUserSecrets(userSecretsId); 196var userSecrets = GetUserSecrets(userSecretsId); 233var userSecrets = GetUserSecrets(userSecretsId); 259var userSecrets = GetUserSecrets(userSecretsId); 296var userSecrets1 = GetUserSecrets(userSecretsId1); 297var userSecrets2 = GetUserSecrets(userSecretsId2); 335var userSecrets = GetUserSecrets(userSecretsId); 384private static Dictionary<string, string?> GetUserSecrets(string userSecretsId) 390var secrets = new Dictionary<string, string?>();
WithEndpointTests.cs (2)
411var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 1022var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
WithEnvironmentTests.cs (19)
32var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 55var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 76var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 92var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 108var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 125var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 148var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, 191var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 215var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 244var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource).DefaultTimeout(); 245var manifestConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout(); 323var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource).DefaultTimeout(); 347var runConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.Run).DefaultTimeout(); 353var publishConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.Publish).DefaultTimeout(); 377var runtimeConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 385var manifestConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 411var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 458var runtimeConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 466var manifestConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
WithOtlpExporterTests.cs (6)
45var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 110var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 143var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 166var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 195var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 259var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
WithProcessCommandTests.cs (1)
983var environmentVariables = new Dictionary<string, string>
WithReferenceTests.cs (35)
29var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 52var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 72var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 102var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 151var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 179var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 205var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 234var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 264var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 286var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 322var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 361var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 377var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout(); 393var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout(); 412var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 442var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 494var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 516var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 540var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 557var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 580var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 605var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(executable.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 630var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(executable.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 657var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(executable.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 682var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 709var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 738var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 761var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 783var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 831var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 861var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 891var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 954var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 974var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout(); 994var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
WithTerminalTests.cs (1)
1184var environment = await host.GetEnvironmentVariableValuesAsync();
Aspire.Hosting.TestUtilities (10)
Publishing\FakeContainerRuntime.cs (6)
31public Dictionary<string, string?>? CapturedBuildArguments { get; private set; } 32public Dictionary<string, BuildImageSecretValue>? CapturedBuildSecrets { get; private set; } 34public Func<string, string, ContainerImageBuildOptions?, Dictionary<string, string?>, Dictionary<string, BuildImageSecretValue>, string?, CancellationToken, Task>? BuildImageAsyncCallback { get; set; } 76public async Task BuildImageAsync(string contextPath, string dockerfilePath, ContainerImageBuildOptions? options, Dictionary<string, string?> buildArguments, Dictionary<string, BuildImageSecretValue> buildSecrets, string? stage, CancellationToken cancellationToken)
Utils\EnvironmentVariableEvaluator.cs (1)
11public static async ValueTask<Dictionary<string, string>> GetEnvironmentVariablesAsync(
Utils\Grpc\TestServerCallContext.cs (1)
14private readonly Dictionary<object, object> _userState;
Utils\MockUserSecretsManager.cs (1)
22public Dictionary<string, string> Secrets { get; } = new(StringComparer.OrdinalIgnoreCase);
Utils\TestDcpExecutor.cs (1)
11private readonly Dictionary<string, IResourceReference> _resources = new(StringComparers.ResourceName);
Aspire.Hosting.Yarp (4)
ConfigurationBuilder\YarpRoute.cs (2)
204var transform = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 224var copiedTransform = new Dictionary<string, string>(transform, StringComparer.OrdinalIgnoreCase);
YarpEnvConfigGenerator.cs (2)
15public static void PopulateEnvVariables(Dictionary<string, object> environmentVariables, List<YarpRoute> routes, List<YarpCluster> clusters) 39private static void FlattenToEnvVars(Dictionary<string, object> environmentVariables, object obj, string prefix)
Aspire.Hosting.Yarp.Tests (10)
AddYarpTests.cs (8)
54var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(yarp.Resource, DistributedApplicationOperation.Run, testProvider); 77var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(yarp.Resource, DistributedApplicationOperation.Publish, TestServiceProvider.Instance); 102var env = new Dictionary<string, object>(); 126var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(yarp.Resource, DistributedApplicationOperation.Run, testProvider); 148var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(yarp.Resource, DistributedApplicationOperation.Publish, testProvider); 173var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(yarp.Resource, DistributedApplicationOperation.Run, testProvider); 188var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(yarp.Resource, DistributedApplicationOperation.Publish, TestServiceProvider.Instance); 283var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(yarp.Resource, DistributedApplicationOperation.Publish, TestServiceProvider.Instance);
YarpConfigGeneratorTests.cs (2)
229var variables = new Dictionary<string, object>(); 248var variables = new Dictionary<string, object>();
Aspire.Managed.Tests (2)
ParentProcessWatchdogTests.cs (2)
15var environment = new Dictionary<string, string?> 30var environment = new Dictionary<string, string?>
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration.Tests (2)
tests\Aspire.Azure.Security.KeyVault.Tests\MockTransport.cs (2)
78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Playground.Tests (4)
AppHostTests.cs (3)
36var resourceEndpoints = testEndpoints.ResourceEndpoints!; 313Dictionary<string, List<string>> resourceEndpoints, 327public Dictionary<string, List<string>>? ResourceEndpoints { get; set; }
Infrastructure\DistributedApplicationExtensions.cs (1)
59var renamedVolumes = new Dictionary<string, string>();
Aspire.Templates.Tests (5)
TemplateTestsBase.cs (1)
182var expectedRowsTable = expectedResources.ToDictionary(r => r.Name);
tests\Shared\TemplatesTesting\AspireProject.cs (1)
35public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
tests\Shared\TemplatesTesting\ProjectInfo.cs (2)
59public static Dictionary<string, ProjectInfo> Parse(string json) => 60JsonSerializer.Deserialize<Dictionary<string, ProjectInfo>>(json)!;
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.TerminalHost (1)
TerminalReplica.cs (1)
53private readonly Dictionary<string, TerminalHostPeerInfo> _peers = new(StringComparer.Ordinal);
Aspire.TestTools (1)
TrxReader.cs (1)
59var testDefinitions = testRun.TestDefinitions?.UnitTests?
Aspire.TypeSystem (8)
AtsConstants.cs (1)
539return genericDef == typeof(Dictionary<,>) ||
AtsContext.cs (3)
94public Dictionary<string, MethodInfo> Methods { get; } = new(); 99public Dictionary<string, PropertyInfo> Properties { get; } = new(); 142if (genericDef == typeof(Dictionary<,>) || genericDef == typeof(IDictionary<,>) ||
ICodeGenerator.cs (1)
21Dictionary<string, string> GenerateDistributedApplication(AtsContext context);
ILanguageSupport.cs (1)
38Dictionary<string, string> Scaffold(ScaffoldRequest request);
RuntimeSpec.cs (2)
90public Dictionary<string, string>? MigrationFiles { get; init; } 113public Dictionary<string, string>? EnvironmentVariables { get; init; }
Binding.Http.IntegrationTests (3)
BasicHttpBindingTests.4.0.0.cs (3)
218Dictionary<string, string> requestHeaders = serviceProxy.GetRequestHttpHeaders(); 258Dictionary<string, string> requestHeaders; 302Dictionary<string, string> requestHeaders;
blazor-devserver (1)
Server\Program.cs (1)
34var inMemoryConfiguration = new Dictionary<string, string?>
blazor-gateway (2)
BlazorGateway.cs (2)
45var appConfigs = builder.Configuration.GetSection("ClientApps") 46.Get<Dictionary<string, ClientAppConfiguration>>() ?? [];
cdac-build-tool (11)
ContractDescriptorSourceFileEmitter.cs (1)
80public Dictionary<string, string> Elements { get; } = new();
DataDescriptorModel.cs (10)
98private readonly Dictionary<string, TypeModelBuilder> _types = new(); 99private readonly Dictionary<string, GlobalBuilder> _globals = new(); 100private readonly Dictionary<string, GlobalBuilder> _subDescriptors = new(); 101private readonly Dictionary<string, ContractBuilder> _contracts = new(); 201var types = new Dictionary<string, TypeModel>(); 206var globals = new Dictionary<string, GlobalModel>(); 216var subDescriptors = new Dictionary<string, GlobalModel>(); 226var contracts = new Dictionary<string, string>(); 237private readonly Dictionary<string, FieldBuilder> _fields = new(); 267var fields = new Dictionary<string, FieldModel>();
Client.ClientBase.IntegrationTests (5)
ClientBaseTestHelpers.cs (1)
16public static string GetHeader(string customHeaderName, string customHeaderNamespace, Dictionary<string, string> messageHeaders)
ClientBaseTests.4.0.0.cs (2)
786Dictionary<string, string> incomingMessageHeaders = serviceProxy.GetIncomingMessageHeaders(); 795Dictionary<string, string> outofScopeIncomingMessageHeaders = serviceProxy.GetIncomingMessageHeaders();
MessageInspectorTestHelpers.cs (1)
35public Dictionary<string, string> ValidateHeaders()
MessageInspectorTests.4.4.0.cs (1)
90Dictionary<string, string> headers = mi_ClientBase_ClientAuth.ValidateHeaders();
ConfigurationSchemaGenerator (8)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (2)
26private readonly Dictionary<ITypeSymbol, TypeSpec> _createdTypeSpecs = new(SymbolEqualityComparer.Default); 661Dictionary<string, PropertySpec>? properties = null;
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (1)
80public static void RegisterCacheEntry<TKey, TValue, TEntry>(this Dictionary<TKey, TValue> cache, TKey key, TEntry entry)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
105Dictionary = compilation.GetBestTypeByMetadataName(typeof(Dictionary<,>));
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (2)
27private readonly Dictionary<TypeRef, bool> _seenTransitiveTypes = new(); 32private readonly Dictionary<MethodsToGen_CoreBindingHelper, HashSet<TypeSpec>> _typesForGen = new();
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
134private readonly Dictionary<ComplexTypeSpec, TypedInterceptorInvocationInfo.Builder> _invocationInfoBuilderCache = new();
RuntimeSource\Configuration.Binder\Specs\TypeIndex.cs (1)
14private readonly Dictionary<TypeRef, TypeSpec> _index = typeSpecs.ToDictionary(spec => spec.TypeRef);
crossgen2 (22)
Crossgen2RootCommand.cs (4)
19public Argument<Dictionary<string, string>> InputFilePaths { get; } = 21public Option<Dictionary<string, string>> UnrootedInputFilePaths { get; } = 23public Option<Dictionary<string, string>> ReferenceFilePaths { get; } = 51public Option<Dictionary<string, string>> InputBubbleReferenceFilePaths { get; } =
Program.cs (10)
32private Dictionary<string, string> _allInputFilePaths = new(); 113Dictionary<string, string> inputFilePathsArg = _command.Result.GetValue(_command.InputFilePaths); 114Dictionary<string, string> unrootedInputFilePathsArg = Get(_command.UnrootedInputFilePaths); 157Dictionary<string, string> inputFilePaths = new Dictionary<string, string>(); 158Dictionary<string, string> unrootedInputFilePaths = new Dictionary<string, string>(); 160Dictionary<string, string> referenceFilePaths = Get(_command.ReferenceFilePaths); 236Dictionary<string, string> inputBubbleReferenceFilePaths = Get(_command.InputBubbleReferenceFilePaths); 280var singleCompilationInputFilePaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 327private void RunSingleCompilation(Dictionary<string, string> inFilePaths, InstructionSetSupport instructionSetSupport, string compositeRootPath, Dictionary<string, string> unrootedInputFilePaths, HashSet<ModuleDesc> versionBubbleModulesHash, ReadyToRunCompilerContext typeSystemContext, Logger logger)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (8)
31public static Dictionary<string, string> BuildPathDictionary(IReadOnlyList<Token> tokens, bool strict) 33Dictionary<string, string> dictionary = new(StringComparer.OrdinalIgnoreCase); 46Dictionary<string, string> dictionary = new(StringComparer.OrdinalIgnoreCase); 232Dictionary<string, string> inputToReproPackageFileName = new(); 234Dictionary<string, string> outputToReproPackageFileName = new(); 255Dictionary<string, string> dictionary = new(); 328var originalToReproPackageFileName = input ? inputToReproPackageFileName : outputToReproPackageFileName; 369private static void AppendExpandedPaths(Dictionary<string, string> dictionary, string pattern, bool strict)
csc (5)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
470private static IntPtr CreateEnvironmentBlock(Dictionary<string, string> environmentVariables) 500internal static Dictionary<string, string>? GetServerEnvironmentVariables(System.Collections.IDictionary currentEnvironment, ICompilerServerLogger? logger = null) 510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 563var environmentVariables = GetServerEnvironmentVariables(Environment.GetEnvironmentVariables(), logger);
CSharpSyntaxGenerator (3)
Grammar\GrammarGenerator.cs (2)
24var rules = types.ToDictionary(n => n.Name, _ => new List<Production>()); 122private static void AddLexicalRules(Dictionary<string, List<Production>> rules)
SignatureWriter.cs (1)
18private readonly Dictionary<string, string> _typeMap;
dotnet (383)
_generated\103\WorkloadSearchVersionsJsonSerializerContext.DictionaryStringDictionaryStringString.g.cs (23)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>>? _DictionaryStringDictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> DictionaryStringDictionaryStringString 22get => _DictionaryStringDictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> Create_DictionaryStringDictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> 31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>(), 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>, string, global::System.Collections.Generic.Dictionary<string, string>>(options, info); 47private void DictionaryStringDictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>? value) 57foreach (global::System.Collections.Generic.KeyValuePair<string, global::System.Collections.Generic.Dictionary<string, string>> entry in value)
_generated\104\WorkloadSearchVersionsJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\105\WorkloadSearchVersionsJsonSerializerContext.IEnumerableDictionaryStringString.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>>? _IEnumerableDictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>> IEnumerableDictionaryStringString 22get => _IEnumerableDictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>> Create_IEnumerableDictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>, global::System.Collections.Generic.Dictionary<string, string>>(options, info); 47private void IEnumerableDictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>? value) 57foreach (global::System.Collections.Generic.Dictionary<string, string> element in value)
_generated\108\WorkloadSearchVersionsJsonSerializerContext.GetJsonTypeInfo.g.cs (4)
22if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>)) 26if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>)) 30if (type == typeof(global::System.Collections.Generic.IEnumerable<global::System.Collections.Generic.Dictionary<string, string>>))
_generated\111\WorkloadHistoryJsonSerializerContext.WorkloadHistoryRecord.g.cs (3)
113var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryRecord).GetProperty("RollbackFileContents", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 131properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info3);
_generated\112\WorkloadHistoryJsonSerializerContext.WorkloadHistoryState.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.WorkloadHistoryState).GetProperty("ManifestVersions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info0);
_generated\113\WorkloadHistoryJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\119\WorkloadHistoryJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\15\CliSchemaJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
46if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)) 50if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)) 54if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>))
_generated\159\TelemetryDiskLoggerJsonSerializerContext.ActivityModel.g.cs (7)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel((string)args[0], (string)args[1], (global::System.TimeSpan)args[2], (global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel)args[3], (global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel)args[4], (global::System.Collections.Generic.Dictionary<string, string>)args[5], (global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel[])args[6]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(global::System.TimeSpan), typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel), typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel), typeof(global::System.Collections.Generic.Dictionary<string, string>), typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel[])}, modifiers: null), 161var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 176AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 179properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info5); 291ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, string>), 320private static extern void __set_ActivityModel_tags(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel obj, global::System.Collections.Generic.Dictionary<string, string> value);
_generated\160\TelemetryDiskLoggerJsonSerializerContext.EventModel.g.cs (7)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel((string)args[0], (global::System.DateTimeOffset)args[1], (global::System.Collections.Generic.Dictionary<string, object>)args[2]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::System.DateTimeOffset), typeof(global::System.Collections.Generic.Dictionary<string, object>)}, modifiers: null), 95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, object>>(options, info2); 165ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, object>), 178private static extern void __set_EventModel_tags(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel obj, global::System.Collections.Generic.Dictionary<string, object> value);
_generated\163\TelemetryDiskLoggerJsonSerializerContext.SourceModel.g.cs (7)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel((string)args[0], (string)args[1], (global::System.Collections.Generic.Dictionary<string, object>)args[2]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(global::System.Collections.Generic.Dictionary<string, object>)}, modifiers: null), 95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, object>>(options, info2); 163ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, object>), 176private static extern void __set_SourceModel_tags(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel obj, global::System.Collections.Generic.Dictionary<string, object> value);
_generated\164\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringObject.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 22get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
_generated\165\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\171\TelemetryDiskLoggerJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
42if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>)) 46if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\3\CliSchemaJsonSerializerContext.CommandDetails.g.cs (21)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.CliSchema.CommandDetails((string)args[0], (bool)args[1], (string[])args[2], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)args[3], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>)args[4], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)args[5]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(string[]), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)}, modifiers: null), 113var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("arguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), global::System.Array.Empty<global::System.Type>(), null), 131properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>(options, info3); 133var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("options", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), global::System.Array.Empty<global::System.Type>(), null), 151properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>(options, info4); 153var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> 168AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("subcommands", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), global::System.Array.Empty<global::System.Type>(), null), 171properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>(options, info5); 237ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), 247ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), 257ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), 272private static extern void __set_CommandDetails_arguments(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails> value); 274private static extern void __set_CommandDetails_options(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails> value); 276private static extern void __set_CommandDetails_subcommands(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails> value);
_generated\40\RunFileBuildCacheJsonSerializerContext.RunFileBuildCacheEntry.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("GlobalProperties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info0);
_generated\42\RunFileBuildCacheJsonSerializerContext.DictionaryStringString.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info);
_generated\47\RunFileBuildCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\5\CliSchemaJsonSerializerContext.RootCommandDetails.g.cs (21)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.CliSchema.RootCommandDetails((string)args[0], (string)args[1], (string)args[2], (bool)args[3], (string[])args[4], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)args[5], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>)args[6], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)args[7]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.RootCommandDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(string), typeof(bool), typeof(string[]), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)}, modifiers: null), 157var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> 172AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("arguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), global::System.Array.Empty<global::System.Type>(), null), 175properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>(options, info5); 177var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> 192AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("options", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), global::System.Array.Empty<global::System.Type>(), null), 195properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>(options, info6); 197var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> 212AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("subcommands", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), global::System.Array.Empty<global::System.Type>(), null), 215properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>(options, info7); 303ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), 313ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), 323ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), 342private static extern void __set_RootCommandDetails_arguments(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails> value); 344private static extern void __set_RootCommandDetails_options(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails> value); 346private static extern void __set_RootCommandDetails_subcommands(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails> value);
_generated\6\CliSchemaJsonSerializerContext.DictionaryStringArgumentDetails.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>? _DictionaryStringArgumentDetails; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> DictionaryStringArgumentDetails 22get => _DictionaryStringArgumentDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> Create_DictionaryStringArgumentDetails(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>, string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>(options, info); 47private void DictionaryStringArgumentDetailsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>? value)
_generated\7\CliSchemaJsonSerializerContext.DictionaryStringCommandDetails.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>? _DictionaryStringCommandDetails; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> DictionaryStringCommandDetails 22get => _DictionaryStringCommandDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> Create_DictionaryStringCommandDetails(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>, string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>(options, info); 47private void DictionaryStringCommandDetailsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>? value)
_generated\72\GlobalJsonWorkloadSetsJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\75\GlobalJsonWorkloadSetsJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
22if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\8\CliSchemaJsonSerializerContext.DictionaryStringOptionDetails.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>? _DictionaryStringOptionDetails; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> DictionaryStringOptionDetails 22get => _DictionaryStringOptionDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> Create_DictionaryStringOptionDetails(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>, string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>(options, info); 47private void DictionaryStringOptionDetailsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>? value)
_generated\89\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info1); 134global::System.Collections.Generic.Dictionary<string, string> __value_Manifests = ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)value).Manifests;
_generated\90\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\93\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
CliSchema.cs (16)
65Dictionary<string, ArgumentDetails>? arguments, 66Dictionary<string, OptionDetails>? options, 67Dictionary<string, CommandDetails>? subcommands); 75Dictionary<string, ArgumentDetails>? arguments, 76Dictionary<string, OptionDetails>? options, 77Dictionary<string, CommandDetails>? subcommands 88var telemetryProperties = new Dictionary<string, string?> { { "command", commandString } }; 108var arguments = CreateArgumentsDictionary(command.Arguments); 109var options = CreateOptionsDictionary(command.Options); 110var subcommands = CreateSubcommandsDictionary(command.Subcommands); 124private static Dictionary<string, ArgumentDetails>? CreateArgumentsDictionary(IList<Argument> arguments) 130var dict = new Dictionary<string, ArgumentDetails>(); 138private static Dictionary<string, OptionDetails>? CreateOptionsDictionary(IList<Option> options) 144var dict = new Dictionary<string, OptionDetails>(); 152private static Dictionary<string, CommandDetails>? CreateSubcommandsDictionary(IList<Command> subcommands) 158var dict = new Dictionary<string, CommandDetails>();
CommandFactory\CommandResolution\ActivityContextFactory.cs (3)
15public static Dictionary<string, string>? MakeActivityContextEnvironment() 28var environment = new Dictionary<string, string>(capacity: 2); 43private static void WriteTraceStateIntoEnvironment(Dictionary<string, string> environment, string key, string value)
CommandFactory\CommandResolution\IProject.cs (1)
29Dictionary<string, string> EnvironmentVariables { get; }
CommandFactory\CommandResolution\LockFileTargetExtensions.cs (1)
47Dictionary<string, LockFileTargetLibrary> libraryLookup =
CommandFactory\CommandResolution\MSBuildProject.cs (2)
75public Dictionary<string, string> EnvironmentVariables 108var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
CommandFactory\CommandResolution\MuxerCommandResolver.cs (1)
18var environment = ActivityContextFactory.MakeActivityContextEnvironment();
Commands\MSBuild\MSBuildLogger.cs (11)
105private Dictionary<string, Dictionary<string, int>> _aggregatedEvents = new(); 245if (_aggregatedEvents.TryGetValue(TaskFactoryTelemetryAggregatedEventName, out var taskFactoryData)) 247Dictionary<string, string?> taskFactoryProperties = ConvertToStringDictionary(taskFactoryData); 253if (_aggregatedEvents.TryGetValue(TasksTelemetryAggregatedEventName, out var tasksData)) 255Dictionary<string, string?> tasksProperties = ConvertToStringDictionary(tasksData); 262private static Dictionary<string, string?> ConvertToStringDictionary(Dictionary<string, int> properties) 264Dictionary<string, string?> stringProperties = new(); 276if (!_aggregatedEvents.TryGetValue(args.EventName, out Dictionary<string, int>? eventData) || eventData is null) 359Dictionary<string, string?>? properties = null;
Commands\New\BuiltInTemplatePackageProvider.cs (1)
77var versionFileInfo = new Dictionary<string, SemanticVersion>();
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (3)
163Dictionary<string, MSBuildProject?> evaluatedTfmBasedProjects = []; 191Dictionary<string, string?> properties = new() 215var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\New\NewCommandParser.cs (1)
129var preferences = new Dictionary<string, string>
Commands\Package\VirtualProjectPackageReflector.cs (1)
24var packageReferences = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Commands\Run\CommonRunHelpers.cs (3)
41internal static Dictionary<string, string> CreateFileBasedRunGlobalProperties() 104public static Dictionary<string, string> GetGlobalPropertiesFromArgs(MSBuildArgs msbuildArgs) 106var globalProperties = msbuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\Run\EnvironmentVariablesToMSBuild.cs (1)
65var result = new Dictionary<string, string>(StringComparer.Ordinal);
Commands\Run\FileBasedAppRunPlan.cs (1)
140Dictionary<string, string> globalProperties,
Commands\Run\FileBasedAppRunPlanInputs.cs (1)
23Dictionary<string, string> GlobalProperties,
Commands\Run\RunCommand.cs (7)
254var globalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(MSBuildArgs); 260var properties = new Dictionary<string, string> { { "Device", Device } }; 288var properties = CommonRunHelpers.GetGlobalPropertiesFromArgs(MSBuildArgs); 310var properties = new Dictionary<string, string> { { "Device", selectedDevice } }; 344var globalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(MSBuildArgs); 581var globalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(msbuildArgs); 1096var globalProperties = MSBuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Commands\Run\RunCommandSelector.cs (3)
27private readonly Dictionary<string, string> _globalProperties; 156public void InvalidateGlobalProperties(Dictionary<string, string> updatedProperties) 271var restoreProperties = new Dictionary<string, string>(_globalProperties, StringComparer.OrdinalIgnoreCase);
Commands\Run\RunFileBuildCacheEntry.cs (2)
26public Dictionary<string, string> GlobalProperties { get; } 83public RunFileBuildCacheEntry(Dictionary<string, string> globalProperties)
Commands\Run\RunTelemetry.cs (1)
47var properties = new Dictionary<string, string?>
Commands\Run\VirtualProjectBuildingCommand.cs (1)
333var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Commands\Test\MTP\ArtifactPostProcessingManager.cs (1)
15private readonly Dictionary<TestModule, ApplicationState> _applications = [];
Commands\Test\MTP\ArtifactPostProcessingTelemetry.cs (1)
53internal static Dictionary<string, string?> CreateProperties(
Commands\Test\MTP\IPC\Models\HandshakeMessage.cs (1)
6internal sealed record HandshakeMessage(Dictionary<byte, string> Properties) : IRequest, IResponse;
Commands\Test\MTP\IPC\NamedPipeBase.cs (2)
11private readonly Dictionary<Type, INamedPipeSerializer> _typeSerializer = []; 12private readonly Dictionary<int, INamedPipeSerializer> _idSerializer = [];
Commands\Test\MTP\IPC\Serializers\HandshakeMessageSerializer.cs (1)
15Dictionary<byte, string> properties = [];
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
744var globalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(msbuildArgs);
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (6)
34Dictionary<bool, List<(string[], string[])>> moduleToMissingOptions = GetModulesToMissingOptions(_moduleNamesToCommandLineOptions, builtInOptions.Select(option => option.Name!), nonBuiltInOptions.Select(option => option.Name!)); 159private static Dictionary<bool, List<(string[], string[])>> GetModulesToMissingOptions( 164var modulesWithMissingOptions = new Dictionary<bool, List<(string[], string[])>>(); 170var missingOptionsToModules = new Dictionary<string, List<string>>(); 209Dictionary<bool, List<(string[], string[])>> moduleToMissingOptions) 245private static void WriteModulesToMissingOptionsToConsole(Dictionary<bool, List<(string[], string[])>> modulesWithMissingOptions)
Commands\Test\MTP\MSBuildUtility.cs (5)
48var globalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(msbuildArgs); 148Dictionary<string, string> globalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(msbuildArgs); 151var properties = new Dictionary<string, string>(globalProperties, StringComparer.OrdinalIgnoreCase); 231var perTfmGlobalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(msbuildArgs); 477var globalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(parsedMSBuildArgs);
Commands\Test\MTP\SolutionAndProjectUtility.cs (4)
180Dictionary<string, string>? globalProperties = null; 477var globalProperties = CommonRunHelpers.GetGlobalPropertiesFromArgs(msbuildArgs); 528var devicesByTfm = new Dictionary<string, (string? Device, string? RuntimeIdentifier)>(); 541Dictionary<string, (string? Device, string? RuntimeIdentifier)> DevicesByTfm,
Commands\Test\MTP\Terminal\TestProgressState.cs (4)
12private readonly Dictionary<string, TestNodeInfoEntry> _testUidToResults = new(); 13private readonly Dictionary<string, int> _instanceIdToAttemptNumber = new(); 22private readonly Dictionary<string, (string DisplayName, TimeSpan Duration)> _testUidToDuration = new(); 30private readonly Dictionary<string, string> _uidWithEarlierFailure = new();
Commands\Test\MTP\TestApplication.cs (2)
66private readonly Dictionary<NamedPipeServer, HandshakeMessage> _handshakes = new(); 856var properties = new Dictionary<byte, string>(capacity: 6)
Commands\Test\MTP\TestApplicationHandler.cs (1)
18private readonly Dictionary<string, (int TestSessionStartCount, int TestSessionEndCount)> _testSessionEventCountPerSessionUid = new();
Commands\Test\MTP\TestResultsDirectoryResolver.cs (1)
70Dictionary<string, HashSet<string>> identitiesByProjectName = new(StringComparer.OrdinalIgnoreCase);
Commands\Test\VSTest\TestCommand.cs (4)
89var properties = GetUserSpecifiedExplicitMSBuildProperties(parseResult); 268Dictionary<string, string> variables = VSTestForwardingApp.GetVSTestRootVariables(); 340private static Dictionary<string, string> GetUserSpecifiedExplicitMSBuildProperties(ParseResult parseResult) 342Dictionary<string, string> globalProperties = new(StringComparer.OrdinalIgnoreCase);
Commands\Test\VSTest\VSTestForwardingApp.cs (2)
17Dictionary<string, string> variables = GetVSTestRootVariables(); 41internal static Dictionary<string, string> GetVSTestRootVariables()
Commands\Tool\Restore\ToolRestoreCommand.cs (2)
117Dictionary<RestoredCommandIdentifier, ToolCommand> downloaded = 196private static void EnsureNoCommandNameCollision(Dictionary<RestoredCommandIdentifier, ToolCommand> dictionary)
Commands\Tool\ToolCommandSpecCreator.cs (1)
14var environment = ActivityContextFactory.MakeActivityContextEnvironment();
Commands\Workload\GlobalJsonWorkloadSetFile.cs (4)
23Dictionary<string, string> globalJsonWorkloadSetVersions; 38public Dictionary<string, string> GetGlobalJsonWorkloadSetVersions() 64var globalJsonWorkloadSetVersions = JsonSerializer.Deserialize(fileStream, GlobalJsonWorkloadSetsJsonSerializerContext.Default.DictionaryStringString); 108[JsonSerializable(typeof(Dictionary<string, string>))]
Commands\Workload\Install\FileBasedInstaller.cs (13)
399var globalJsonWorkloadSetVersions = GetGlobalJsonWorkloadSetVersions(_sdkFeatureBand); 419var installedWorkloadSets = _workloadResolver.GetWorkloadManifestProvider().GetAvailableWorkloadSets(); 420Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> workloadSetInstallRecords = GetAllWorkloadSetInstallRecords(); 468Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> manifestInstallRecords = GetAllManifestInstallRecords(); 505Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> packInstallRecords = GetAllPackInstallRecords(); 579public void SaveInstallStateManifestVersions(SdkFeatureBand sdkFeatureBand, Dictionary<string, string> manifestContents) 606public Dictionary<string, string> GetGlobalJsonWorkloadSetVersions(SdkFeatureBand sdkFeatureBand) 713private Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> GetAllWorkloadSetInstallRecords() 715Dictionary<(string workloadSetVersion, SdkFeatureBand workloadSetFeatureBand), List<SdkFeatureBand>> records = []; 764private Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> GetAllManifestInstallRecords() 766Dictionary<(ManifestId manifestId, ManifestVersion manifestVersion, SdkFeatureBand manifestFeatureBand), List<SdkFeatureBand>> records = []; 806private Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> GetAllPackInstallRecords() 808Dictionary<(WorkloadPackId packId, string packVersion), List<SdkFeatureBand>> records = [];
Commands\Workload\Install\IInstaller.cs (1)
59void SaveInstallStateManifestVersions(SdkFeatureBand sdkFeatureBand, Dictionary<string, string> manifestContents);
Commands\Workload\Install\ManifestUpdateWithWorkloads.cs (1)
8internal record ManifestUpdateWithWorkloads(ManifestVersionUpdate ManifestUpdate, WorkloadCollection Workloads);
Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
289private (ManifestVersionWithBand ManifestWithBand, WorkloadCollection Workloads)? GetAdvertisingManifestVersionAndWorkloads(ManifestId manifestId) 310var workloads = manifest.Workloads.Values.OfType<WorkloadDefinition>().ToDictionary(w => w.Id);
Commands\Workload\Install\WorkloadGarbageCollector.cs (5)
28Dictionary<string, string> globalJsonWorkloadSetVersions, IReporter verboseReporter) 34private readonly Dictionary<string, string> _globalJsonWorkloadSetVersions = globalJsonWorkloadSetVersions; 48private Dictionary<string, GCAction> _workloadSets = []; 49private readonly Dictionary<(ManifestId id, ManifestVersion version, SdkFeatureBand featureBand), GCAction> _manifests = []; 80var installedWorkloadSets = resolver.GetWorkloadManifestProvider().GetAvailableWorkloadSets();
Commands\Workload\Install\WorkloadManifestUpdater.Managed.cs (1)
204var versions = WorkloadSet.FromJson(fileContent, featureBand).ManifestVersions;
Commands\Workload\InstallingWorkloadCommand.cs (1)
182protected static Dictionary<string, string> GetInstallStateContents(IEnumerable<ManifestVersionUpdate> manifestVersionUpdates) =>
Commands\Workload\InstallStateContents.cs (1)
19public Dictionary<string, string>? Manifests { get; set; }
Commands\Workload\List\InstalledWorkloadsCollection.cs (1)
12private readonly Dictionary<string, string> _workloads;
Commands\Workload\List\WorkloadListCommand.cs (2)
108var manifestInfoDict = _workloadListHelper.WorkloadResolver.GetInstalledManifests().ToDictionary(info => info.Id, StringComparer.OrdinalIgnoreCase); 145foreach ((ManifestVersionUpdate manifestUpdate, WorkloadCollection workloads) in manifestsToUpdate)
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
75var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (5)
138Reporter.WriteLine(JsonSerializer.Serialize(new Dictionary<string, Dictionary<string, string>>() 200var manifestVersions = installer.GetWorkloadSetContents(version).ManifestVersions; 207[JsonSerializable(typeof(IEnumerable<Dictionary<string, string>>))] 208[JsonSerializable(typeof(Dictionary<string, Dictionary<string, string>>))]
Commands\Workload\WorkloadHistoryRecord.cs (2)
15public Dictionary<string, string> RollbackFileContents { get; set; } 32public Dictionary<string, string> ManifestVersions { get; set; }
Commands\Workload\WorkloadInfoHelper.cs (1)
203var manifestInfoDict = WorkloadResolver.GetInstalledManifests().ToDictionary(info => info.Id, StringComparer.OrdinalIgnoreCase);
ForwardingApp.cs (1)
17Dictionary<string, string> environmentVariables = null)
ReleasePropertyProjectLocator.cs (2)
78var newConfigurationArgs = new Dictionary<string, string>(2, StringComparer.OrdinalIgnoreCase); 300var newDictionary = new Dictionary<string, string>(globalProperties, StringComparer.OrdinalIgnoreCase);
ShellShim\ShellShimRepository.cs (1)
118var files = new Dictionary<string, string>();
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildServerConnection.cs (4)
470private static IntPtr CreateEnvironmentBlock(Dictionary<string, string> environmentVariables) 500internal static Dictionary<string, string>? GetServerEnvironmentVariables(System.Collections.IDictionary currentEnvironment, ICompilerServerLogger? logger = null) 510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 563var environmentVariables = GetServerEnvironmentVariables(Environment.GetEnvironmentVariables(), logger);
src\sdk\artifacts\obj\dotnet\Release\net11.0\dotnet.GlobalUsings.g.cs (1)
13global using WorkloadCollection = System.Collections.Generic.Dictionary<Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadId, Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadDefinition>;
Telemetry\TelemetryClient.cs (2)
233var carrierMap = new Dictionary<string, IEnumerable<string>?> { { "traceparent", [traceParent] } }; 253static IEnumerable<string>? GetValueFromCarrier(Dictionary<string, IEnumerable<string>?> carrier, string key) =>
Telemetry\TelemetryDiskLogger.cs (3)
20Dictionary<string, object?> tags); 25Dictionary<string, object?>? tags); 41Dictionary<string, string?> tags,
Telemetry\TelemetryFilter.cs (5)
26var reportProperties = new Dictionary<string, string?> 35var exceptionProperties = new Dictionary<string, string?> 60Dictionary<string, string?> properties = new() { ["verb"] = topLevelCommandName }; 79var verbosityProperties = new Dictionary<string, string?>() 92var vulnerableProperties = new Dictionary<string, string?>()
dotnet-aot (196)
_generated\16\CliSchemaJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
46if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)) 50if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)) 54if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>))
_generated\18\TelemetryDiskLoggerJsonSerializerContext.ActivityModel.g.cs (7)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel((string)args[0], (string)args[1], (global::System.TimeSpan)args[2], (global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel)args[3], (global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel)args[4], (global::System.Collections.Generic.Dictionary<string, string>)args[5], (global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel[])args[6]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(global::System.TimeSpan), typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.IdentifiersModel), typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel), typeof(global::System.Collections.Generic.Dictionary<string, string>), typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel[])}, modifiers: null), 161var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 176AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 179properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info5); 291ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, string>), 320private static extern void __set_ActivityModel_tags(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.ActivityModel obj, global::System.Collections.Generic.Dictionary<string, string> value);
_generated\19\TelemetryDiskLoggerJsonSerializerContext.EventModel.g.cs (7)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel((string)args[0], (global::System.DateTimeOffset)args[1], (global::System.Collections.Generic.Dictionary<string, object>)args[2]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::System.DateTimeOffset), typeof(global::System.Collections.Generic.Dictionary<string, object>)}, modifiers: null), 95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, object>>(options, info2); 165ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, object>), 178private static extern void __set_EventModel_tags(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.EventModel obj, global::System.Collections.Generic.Dictionary<string, object> value);
_generated\22\TelemetryDiskLoggerJsonSerializerContext.SourceModel.g.cs (7)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel((string)args[0], (string)args[1], (global::System.Collections.Generic.Dictionary<string, object>)args[2]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(global::System.Collections.Generic.Dictionary<string, object>)}, modifiers: null), 95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 110AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel).GetProperty("tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, object>>(options, info2); 163ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, object>), 176private static extern void __set_SourceModel_tags(global::Microsoft.DotNet.Cli.Telemetry.TelemetryDiskLogger.SourceModel obj, global::System.Collections.Generic.Dictionary<string, object> value);
_generated\23\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringObject.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 22get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
_generated\24\TelemetryDiskLoggerJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\30\TelemetryDiskLoggerJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
42if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>)) 46if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\4\CliSchemaJsonSerializerContext.CommandDetails.g.cs (21)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.CliSchema.CommandDetails((string)args[0], (bool)args[1], (string[])args[2], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)args[3], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>)args[4], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)args[5]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(bool), typeof(string[]), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)}, modifiers: null), 113var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> 128AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("arguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), global::System.Array.Empty<global::System.Type>(), null), 131properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>(options, info3); 133var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> 148AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("options", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), global::System.Array.Empty<global::System.Type>(), null), 151properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>(options, info4); 153var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> 168AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("subcommands", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), global::System.Array.Empty<global::System.Type>(), null), 171properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>(options, info5); 237ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), 247ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), 257ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), 272private static extern void __set_CommandDetails_arguments(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails> value); 274private static extern void __set_CommandDetails_options(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails> value); 276private static extern void __set_CommandDetails_subcommands(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails> value);
_generated\48\RunFileBuildCacheJsonSerializerContext.RunFileBuildCacheEntry.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Run.RunFileBuildCacheEntry).GetProperty("GlobalProperties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info0);
_generated\50\RunFileBuildCacheJsonSerializerContext.DictionaryStringString.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info);
_generated\55\RunFileBuildCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\59\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info1); 134global::System.Collections.Generic.Dictionary<string, string> __value_Manifests = ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)value).Manifests;
_generated\6\CliSchemaJsonSerializerContext.RootCommandDetails.g.cs (21)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.DotNet.Cli.CliSchema.RootCommandDetails((string)args[0], (string)args[1], (string)args[2], (bool)args[3], (string[])args[4], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)args[5], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>)args[6], (global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)args[7]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.RootCommandDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string), typeof(string), typeof(bool), typeof(string[]), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)}, modifiers: null), 157var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> 172AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("arguments", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), global::System.Array.Empty<global::System.Type>(), null), 175properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>(options, info5); 177var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> 192AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("options", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), global::System.Array.Empty<global::System.Type>(), null), 195properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>(options, info6); 197var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> 212AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails).GetProperty("subcommands", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), global::System.Array.Empty<global::System.Type>(), null), 215properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>(options, info7); 303ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>), 313ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>), 323ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>), 342private static extern void __set_RootCommandDetails_arguments(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails> value); 344private static extern void __set_RootCommandDetails_options(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails> value); 346private static extern void __set_RootCommandDetails_subcommands(global::Microsoft.DotNet.Cli.CliSchema.CommandDetails obj, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails> value);
_generated\60\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\63\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\7\CliSchemaJsonSerializerContext.DictionaryStringArgumentDetails.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>? _DictionaryStringArgumentDetails; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> DictionaryStringArgumentDetails 22get => _DictionaryStringArgumentDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> Create_DictionaryStringArgumentDetails(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>, string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>(options, info); 47private void DictionaryStringArgumentDetailsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.ArgumentDetails>? value)
_generated\8\CliSchemaJsonSerializerContext.DictionaryStringCommandDetails.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>? _DictionaryStringCommandDetails; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> DictionaryStringCommandDetails 22get => _DictionaryStringCommandDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> Create_DictionaryStringCommandDetails(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>, string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>(options, info); 47private void DictionaryStringCommandDetailsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.CommandDetails>? value)
_generated\9\CliSchemaJsonSerializerContext.DictionaryStringOptionDetails.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>? _DictionaryStringOptionDetails; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> DictionaryStringOptionDetails 22get => _DictionaryStringOptionDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> Create_DictionaryStringOptionDetails(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>, string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>(options, info); 47private void DictionaryStringOptionDetailsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Cli.CliSchema.OptionDetails>? value)
src\sdk\artifacts\obj\dotnet-aot\Release\net11.0\centos.10-x64\dotnet-aot.GlobalUsings.g.cs (1)
13global using WorkloadCollection = System.Collections.Generic.Dictionary<Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadId, Microsoft.NET.Sdk.WorkloadManifestReader.WorkloadDefinition>;
src\sdk\src\Cli\dotnet\CliSchema.cs (16)
65Dictionary<string, ArgumentDetails>? arguments, 66Dictionary<string, OptionDetails>? options, 67Dictionary<string, CommandDetails>? subcommands); 75Dictionary<string, ArgumentDetails>? arguments, 76Dictionary<string, OptionDetails>? options, 77Dictionary<string, CommandDetails>? subcommands 88var telemetryProperties = new Dictionary<string, string?> { { "command", commandString } }; 108var arguments = CreateArgumentsDictionary(command.Arguments); 109var options = CreateOptionsDictionary(command.Options); 110var subcommands = CreateSubcommandsDictionary(command.Subcommands); 124private static Dictionary<string, ArgumentDetails>? CreateArgumentsDictionary(IList<Argument> arguments) 130var dict = new Dictionary<string, ArgumentDetails>(); 138private static Dictionary<string, OptionDetails>? CreateOptionsDictionary(IList<Option> options) 144var dict = new Dictionary<string, OptionDetails>(); 152private static Dictionary<string, CommandDetails>? CreateSubcommandsDictionary(IList<Command> subcommands) 158var dict = new Dictionary<string, CommandDetails>();
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\ActivityContextFactory.cs (3)
15public static Dictionary<string, string>? MakeActivityContextEnvironment() 28var environment = new Dictionary<string, string>(capacity: 2); 43private static void WriteTraceStateIntoEnvironment(Dictionary<string, string> environment, string key, string value)
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\MuxerCommandResolver.cs (1)
18var environment = ActivityContextFactory.MakeActivityContextEnvironment();
src\sdk\src\Cli\dotnet\Commands\Run\AotRunCommand.cs (3)
153var launchEnvironment = new Dictionary<string, string?>(StringComparer.Ordinal); 247private static Dictionary<string, string> CreateGlobalProperties( 251Dictionary<string, string> globalProperties = CommonRunHelpers.CreateFileBasedRunGlobalProperties();
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (3)
41internal static Dictionary<string, string> CreateFileBasedRunGlobalProperties() 104public static Dictionary<string, string> GetGlobalPropertiesFromArgs(MSBuildArgs msbuildArgs) 106var globalProperties = msbuildArgs.GlobalProperties?.ToDictionary() ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Cli\dotnet\Commands\Run\FileBasedAppRunPlan.cs (1)
140Dictionary<string, string> globalProperties,
src\sdk\src\Cli\dotnet\Commands\Run\FileBasedAppRunPlanInputs.cs (1)
23Dictionary<string, string> GlobalProperties,
src\sdk\src\Cli\dotnet\Commands\Run\RunFileBuildCacheEntry.cs (2)
26public Dictionary<string, string> GlobalProperties { get; } 83public RunFileBuildCacheEntry(Dictionary<string, string> globalProperties)
src\sdk\src\Cli\dotnet\Commands\Test\VSTest\VSTestForwardingApp.cs (2)
17Dictionary<string, string> variables = GetVSTestRootVariables(); 41internal static Dictionary<string, string> GetVSTestRootVariables()
src\sdk\src\Cli\dotnet\Commands\Tool\ToolCommandSpecCreator.cs (1)
14var environment = ActivityContextFactory.MakeActivityContextEnvironment();
src\sdk\src\Cli\dotnet\Commands\Workload\Install\ManifestUpdateWithWorkloads.cs (1)
8internal record ManifestUpdateWithWorkloads(ManifestVersionUpdate ManifestUpdate, WorkloadCollection Workloads);
src\sdk\src\Cli\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
289private (ManifestVersionWithBand ManifestWithBand, WorkloadCollection Workloads)? GetAdvertisingManifestVersionAndWorkloads(ManifestId manifestId) 310var workloads = manifest.Workloads.Values.OfType<WorkloadDefinition>().ToDictionary(w => w.Id);
src\sdk\src\Cli\dotnet\Commands\Workload\InstallStateContents.cs (1)
19public Dictionary<string, string>? Manifests { get; set; }
src\sdk\src\Cli\dotnet\Commands\Workload\List\InstalledWorkloadsCollection.cs (1)
12private readonly Dictionary<string, string> _workloads;
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInfoHelper.cs (1)
203var manifestInfoDict = WorkloadResolver.GetInstalledManifests().ToDictionary(info => info.Id, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Cli\dotnet\ForwardingApp.cs (1)
17Dictionary<string, string> environmentVariables = null)
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (2)
233var carrierMap = new Dictionary<string, IEnumerable<string>?> { { "traceparent", [traceParent] } }; 253static IEnumerable<string>? GetValueFromCarrier(Dictionary<string, IEnumerable<string>?> carrier, string key) =>
src\sdk\src\Cli\dotnet\Telemetry\TelemetryDiskLogger.cs (3)
20Dictionary<string, object?> tags); 25Dictionary<string, object?>? tags); 41Dictionary<string, string?> tags,
src\sdk\src\Cli\dotnet\Telemetry\TelemetryFilter.cs (5)
26var reportProperties = new Dictionary<string, string?> 35var exceptionProperties = new Dictionary<string, string?> 60Dictionary<string, string?> properties = new() { ["verb"] = topLevelCommandName }; 79var verbosityProperties = new Dictionary<string, string?>() 92var vulnerableProperties = new Dictionary<string, string?>()
dotnet-format (7)
Analyzers\AnalyzerReferenceInformationProvider.cs (2)
14private static readonly Dictionary<string, Assembly> s_pathsToAssemblies = new(StringComparer.OrdinalIgnoreCase); 15private static readonly Dictionary<string, Assembly> s_namesToAssemblies = new(StringComparer.OrdinalIgnoreCase);
Analyzers\CodeAnalysisResult.cs (1)
10private readonly Dictionary<Project, List<Diagnostic>> _dictionary = new();
Analyzers\CodeStyleInformationProvider.cs (1)
36var analyzersByLanguage = new Dictionary<string, AnalyzersAndFixers>();
Utilities\ProcessRunner.cs (2)
58Dictionary<string, string>? environmentVariables = null, 173Dictionary<string, string>? environmentVariables = null)
Workspaces\MSBuildWorkspaceLoader.cs (1)
24var properties = new Dictionary<string, string>(StringComparer.Ordinal)
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
27private static readonly Dictionary<string, string> s_referencedic = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
dotnet-openapi (3)
Commands\BaseCommand.cs (3)
174var metadata = new Dictionary<string, string>(); 465var packageVersionsDictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 489var result = new Dictionary<string, string>();
dotnet-svcutil-lib (370)
AppInsightsTelemetryClient.cs (2)
196public void TrackEvent(string eventName, Dictionary<string, string> properties) 214var properties = new Dictionary<string, string>();
CmdCredentialsProvider.cs (2)
139private Dictionary<string, X509Certificate> _validatedClientCerts = new Dictionary<string, X509Certificate>(); 219private Dictionary<string, bool> _validatedServerCerts = new Dictionary<string, bool>();
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
67Dictionary<string, CodeTypeDeclaration> nameTable = new Dictionary<string, CodeTypeDeclaration>();
CodeDomFixup\CodeDomVisitors\CodeTypeNameScope.cs (1)
13private Dictionary<string, CodeTypeMember> _nameTable = new Dictionary<string, CodeTypeMember>();
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (5)
55Dictionary<string, string> methodNames = GenerateEventAsyncMethods(nameScope, _eventBasedDuplexClass, callbackInterface, _eventArgsList); 212private static Dictionary<string, string> GenerateEventAsyncMethods(CodeTypeNameScope nameScope, CodeTypeDeclaration parent, CodeTypeDeclaration callbackInterface, List<CodeTypeDeclaration> eventArgsList) 214Dictionary<string, string> methodNames = new Dictionary<string, string>(); 393private static CodeTypeDeclaration CreateCallbackImplClass(CodeTypeNameScope nameScope, CodeTypeDeclaration parent, CodeTypeDeclaration callbackInterface, Dictionary<string, string> methodNames) 448private static void AddMethods(CodeTypeDeclaration callbackImpl, CodeTypeDeclaration callbackInterface, Dictionary<string, string> methodNames)
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
14private Dictionary<string, string> _namespacesToMatch = new Dictionary<string, string>() { { "System.ServiceModel.XmlSerializerFormatAttribute", "System.Xml.Serialization" }, { "System.Xml.Linq", "System.Xml.Linq" }, { "System.ServiceModel.Duplex", "System.ServiceModel.Extensions" } };
CodeDomFixup\CodeDomVisitors\MakeOldAsyncMethodsPrivate.cs (1)
12private Dictionary<string, PrivateInterfaceMethod> _privateIfaceMethods;
CodeDomFixup\CodeDomVisitors\NamespaceFixer.cs (2)
18private Dictionary<string, Type> _xmlTypes = new Dictionary<string, Type>(); 19private Dictionary<string, Type> _codeDomTypes = new Dictionary<string, Type>();
CodeDomFixup\CodeDomVisitors\PropertyFieldNameScope.cs (1)
13private Dictionary<string, MemberInfo> _nameTable = new Dictionary<string, MemberInfo>();
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (1)
13private Dictionary<string, CodeTypeDeclaration> _specialIXmlSerializableTypes = new Dictionary<string, CodeTypeDeclaration>();
CodeDomFixup\CodeDomVisitors\TypeDeclCollection.cs (2)
14internal Dictionary<string, CodeTypeDeclaration> AllTypeDecls = new Dictionary<string, CodeTypeDeclaration>(); 15internal Dictionary<string, string> TypeNamespaceMappings = new Dictionary<string, string>();
CommandProcessorOptions.cs (10)
823var foundCollectionTypes = AddSpecifiedTypesToDictionary(this.CollectionTypes, Switches.CollectionType.Name); 824var excludedTypes = AddSpecifiedTypesToDictionary(this.ExcludeTypes, Switches.ExcludeType.Name); 876private static Dictionary<string, Type> AddSpecifiedTypesToDictionary(IList<string> typeArgs, string cmd) 878Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count); 890private void AddReferencedTypesFromAssembly(Assembly assembly, Dictionary<string, Type> foundCollectionTypes, Dictionary<string, Type> excludedTypes) 910private void AddStdLibraries(Dictionary<string, Type> foundCollectionTypes, Dictionary<string, Type> excludedTypes) 933private static bool IsTypeSpecified(Type type, Dictionary<string, Type> specifiedTypes, string cmd) 967private void AddReferencedCollectionTypes(IList<string> collectionTypesArgs, Dictionary<string, Type> foundCollectionTypes)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
324private Dictionary<String, NamespaceDecl> _namespaces; 1826Dictionary<String, String> nstable = new Dictionary<String, String>();
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriter.cs (1)
27private Dictionary<XmlQualifiedName, int> _lookupCDataElems;
FrameworkFork\Microsoft.Xml\Xml\Core\QueryOutputWriterV1.cs (1)
31private Dictionary<XmlQualifiedName, XmlQualifiedName> _lookupCDataElems;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
274private Dictionary<IDtdEntityInfo, IDtdEntityInfo> _currentEntities;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (1)
169private Dictionary<string, int> _nsHashtable;
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (2)
39private Dictionary<string, int> _nsHashtable; 49private Dictionary<string, int> _attrHashTable;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNodeReader.cs (1)
996Dictionary<string, string> dict = new Dictionary<string, string>();
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
129private Dictionary<Uri, PreloadedData> _mappings;
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (1)
204private Dictionary<string, UndeclaredNotation> _undeclaredNotations = null;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (4)
14private Dictionary<XmlQualifiedName, SchemaAttDef> _attdefs = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 23private Dictionary<XmlQualifiedName, XmlQualifiedName> _prohibitedAttributes = new Dictionary<XmlQualifiedName, XmlQualifiedName>(); 225internal Dictionary<XmlQualifiedName, SchemaAttDef> AttDefs 230internal Dictionary<XmlQualifiedName, XmlQualifiedName> ProhibitedAttributes
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (17)
32private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 33private Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 35private Dictionary<XmlQualifiedName, SchemaEntity> _generalEntities; 36private Dictionary<XmlQualifiedName, SchemaEntity> _parameterEntities; 43private Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>(); 44private Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 47private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 48private Dictionary<string, SchemaNotation> _notations; 68internal Dictionary<XmlQualifiedName, SchemaElementDecl> ElementDecls 73internal Dictionary<XmlQualifiedName, SchemaElementDecl> UndeclaredElementDecls 78internal Dictionary<XmlQualifiedName, SchemaEntity> GeneralEntities 90internal Dictionary<XmlQualifiedName, SchemaEntity> ParameterEntities 108internal Dictionary<string, bool> TargetNamespaces 113internal Dictionary<XmlQualifiedName, SchemaElementDecl> ElementDeclsByType 118internal Dictionary<XmlQualifiedName, SchemaAttDef> AttributeDecls 123internal Dictionary<string, SchemaNotation> Notations 391Dictionary<XmlQualifiedName, SchemaElementDecl> elements = _elementDecls;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (1)
70Dictionary<string, string> dict = new Dictionary<string, string>(1);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (1)
18private Dictionary<XmlQualifiedName, XmlSchemaObject> _table = new Dictionary<XmlQualifiedName, XmlSchemaObject>();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (1)
2131Dictionary<XmlQualifiedName, SchemaAttDef> attributeDefs = currentElementDecl.AttDefs;
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (5)
37private Dictionary<string, ArgBuilder> _argList; 41private Dictionary<Tuple<Type, string>, Queue<LocalBuilder>> _freeLocals; 155private Dictionary<Type, LocalBuilder> _tmpLocals = new Dictionary<Type, LocalBuilder>(); 2652private readonly Dictionary<string, LocalBuilder> _locals; 2706public void AddToFreeLocals(Dictionary<Tuple<Type, string>, Queue<LocalBuilder>> freeLocals)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (4)
1095internal static MemberMapping[] GetAllMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1148internal static MemberMapping[] GetSettableMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1155private static void PopulateMemberInfos(StructMapping structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1175Dictionary<string, MemberInfo> replaceList = null;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (4)
19private Dictionary<string, MethodBuilderInfo> _methodBuilders = new Dictionary<string, MethodBuilderInfo>(); 21internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>(); 23internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>(); 67private static Dictionary<string, Regex> s_regexs = new Dictionary<string, Regex>();
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (3)
46private Dictionary<string, int> _hashTable; 221Dictionary<string, string> prefixes = new Dictionary<string, string>(_lastDecl + 1); 257Dictionary<string, string> dict = new Dictionary<string, string>(_lastDecl - i + 1);
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathDocument.cs (2)
32private Dictionary<XPathNodeRef, XPathNodeRef> _mapNmsp; 33private Dictionary<string, XPathNodeRef> _idValueMap;
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (1)
536Dictionary<string, string> dict = new Dictionary<string, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (6)
16using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 216public override DataContractDictionary KnownDataContracts 365internal static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable) 752private DataContractDictionary _knownDataContracts; 930Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 1303internal override DataContractDictionary KnownDataContracts
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (17)
19using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 26private Dictionary<string, string> _namespaces; 27private Dictionary<string, string> _clrNamespaces; 217private Dictionary<string, string> Namespaces 222private Dictionary<string, string> ClrNamespaces 304private void ExportClassDataContractHierarchy(XmlQualifiedName typeName, ClassDataContract classContract, ContractCodeDomInfo contractCodeDomInfo, Dictionary<XmlQualifiedName, object> contractNamesInHierarchy) 909DataContractDictionary knownTypeDictionary = GetKnownTypeContracts(dataContract); 925private DataContractDictionary GetKnownTypeContracts(DataContract dataContract) 942private DataContractDictionary GetKnownTypeContracts(ClassDataContract dataContract, Dictionary<DataContract, object> handledContracts) 978private void AddKnownTypeContracts(ClassDataContract dataContract, DataContractDictionary knownContracts) 995DataContractDictionary knownContractDictionary = GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object>()); 1314Dictionary<string, object> baseMemberNames = baseContractCodeDomInfo.GetMemberNames(); 1315Dictionary<string, object> memberNames = contractCodeDomInfo.GetMemberNames(); 1427Dictionary<string, object> fragments = new Dictionary<string, object>(StringComparer.Ordinal); 1458private static void AddToNamespace(StringBuilder builder, string fragment, Dictionary<string, object> fragments) 1492int fragmentLength, Dictionary<string, object> fragments)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
164private Dictionary<LocalBuilder, string> _localNames = new Dictionary<LocalBuilder, string>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (4)
16using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 444public override DataContractDictionary KnownDataContracts 580private DataContractDictionary _knownDataContracts; 832internal override DataContractDictionary KnownDataContracts
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (2)
20private Dictionary<string, object> _memberNames; 34internal Dictionary<string, object> GetMemberNames()
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (17)
14using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 381public virtual DataContractDictionary KnownDataContracts 499internal virtual DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract> boundContracts) 526private static Dictionary<TypeHandleRef, IntRef> s_typeToIDCache; 529private static Dictionary<Type, DataContract> s_typeToBuiltInContract; 530private static Dictionary<XmlQualifiedName, DataContract> s_nameToBuiltInContract; 531private static Dictionary<string, string> s_namespaces; 532private static Dictionary<string, XmlDictionaryString> s_clrTypeStrings; 1181internal virtual DataContractDictionary KnownDataContracts 2060internal static DataContractDictionary ImportKnownTypeAttributes(Type type) 2062DataContractDictionary knownDataContracts = null; 2063Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 2068private static void ImportKnownTypeAttributes(Type type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary knownDataContracts) 2168internal static void CheckAndAdd(Type type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary nameToDataContractTable) 2196internal virtual bool Equals(object other, Dictionary<DataContractPairKey, object> checkedContracts)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (3)
18using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 32internal DataContractDictionary knownDataContracts; 163internal override DataContractDictionary KnownDataContracts
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (14)
13using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 17private Dictionary<XmlQualifiedName, DataContract> _contracts; 18private Dictionary<DataContract, object> _processedContracts; 21private DataContractDictionary _knownTypesForObject; 24private Dictionary<XmlQualifiedName, object> _referencedTypesDictionary; 25private Dictionary<XmlQualifiedName, object> _referencedCollectionTypesDictionary; 57private Dictionary<XmlQualifiedName, DataContract> Contracts 69private Dictionary<DataContract, object> ProcessedContracts 91internal DataContractDictionary KnownTypesForObject 208private void AddKnownDataContracts(DataContractDictionary knownDataContracts) 348private Dictionary<XmlQualifiedName, object> GetReferencedTypes() 370private Dictionary<XmlQualifiedName, object> GetReferencedCollectionTypes() 391private void AddReferencedType(Dictionary<XmlQualifiedName, object> referencedTypes, Type type) 451Dictionary<XmlQualifiedName, object> referencedTypes = useReferencedCollectionTypes ? GetReferencedCollectionTypes() : GetReferencedTypes();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (3)
147private static Dictionary<Type, XmlQualifiedName> s_typeToName; 148private static Dictionary<XmlQualifiedName, Type> s_nameToType; 275Dictionary<string, DataMember> memberValuesTable = new Dictionary<string, DataMember>();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (18)
71public static Dictionary<string, string> EssentialExceptionFields 77public override Dictionary<XmlQualifiedName, DataContract> KnownDataContracts //inherited as internal 113private Dictionary<XmlQualifiedName, DataContract> _knownDataContracts; 114private static readonly Dictionary<string, string> s_essentialExceptionFields; //Contains the essential fields to serialize an Exception. Not all fields are serialized in an Exception. Some private fields 201public static Dictionary<string, string> EssentialExceptionFields 206internal override Dictionary<XmlQualifiedName, DataContract> KnownDataContracts // inherited as internal 269Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 308Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 393Dictionary<string, object> exceptionFields = GetExceptionFieldValues((Exception)value); 448private static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable) 467private Dictionary<string, object> GetExceptionFieldValues(Exception value) 487Dictionary<string, object> fieldToValueDictionary = new Dictionary<string, object>(); 597private static Dictionary<string, string> ReverseDictionary(Dictionary<string, string> inDict) 599Dictionary<string, string> mapDict = new Dictionary<string, string>(); 623private Dictionary<string, string> _elementNamesToMap; 626private ExceptionXmlParser(Dictionary<string, string> dictMap, string exceptionNamespace) 647public static string ParseExceptionXmlForClassDataContract(Dictionary<string, string> dictMap, string exceptionNamespace, string stringToParse)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExtensionDataReader.cs (2)
49private static Dictionary<string, string> s_nsToPrefixTable; 52private static Dictionary<string, string> s_prefixToNsTable;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\GenericParameterDataContract.cs (1)
55internal override DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract> boundContracts)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
873s_typeOfDictionaryGeneric = typeof(Dictionary<,>);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\HybridObjectCache.cs (2)
14private Dictionary<string, object> _objectDictionary; 15private Dictionary<string, object> _referencedObjectDictionary;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectReferenceStack.cs (1)
20private Dictionary<object, object> _objectDictionary;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaHelper.cs (4)
12using SchemaObjectDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, SchemaObjectInfo>; 40internal static XmlSchemaType GetSchemaType(SchemaObjectDictionary schemaInfo, XmlQualifiedName typeName) 50internal static XmlSchema GetSchemaWithType(SchemaObjectDictionary schemaInfo, XmlSchemaSet schemas, XmlQualifiedName typeName) 70internal static XmlSchemaElement GetSchemaElement(SchemaObjectDictionary schemaInfo, XmlQualifiedName elementName)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (9)
17using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 18using SchemaObjectDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, SchemaObjectInfo>; 28private SchemaObjectDictionary _schemaObjects; 152private SchemaObjectDictionary SchemaObjects 188Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 224DataContractDictionary knownDataContracts = new DataContractDictionary(); 241internal SchemaObjectDictionary CreateSchemaObjects() 243SchemaObjectDictionary schemaObjects = new SchemaObjectDictionary(); 925DataContractDictionary knownDataContracts = ancestorDataContract.KnownDataContracts;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ScopedKnownTypes.cs (6)
9using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 13internal DataContractDictionary[] dataContractDictionaries; 15internal void Push(DataContractDictionary dataContractDictionary) 18dataContractDictionaries = new DataContractDictionary[4]; 20Array.Resize<DataContractDictionary>(ref dataContractDictionaries, dataContractDictionaries.Length * 2); 33DataContractDictionary dataContractDictionary = dataContractDictionaries[i];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (4)
12using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 54public override DataContractDictionary KnownDataContracts 218private DataContractDictionary _knownDataContracts; 275internal override DataContractDictionary KnownDataContracts
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (2)
15using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 84internal virtual DataContractDictionary KnownDataContracts
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (8)
13using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 24protected DataContractDictionary serializerKnownDataContracts; 177internal virtual DataContractDictionary SerializerKnownDataContracts 193DataContractDictionary serializerKnownDataContracts = this.SerializerKnownDataContracts; 200internal static DataContractDictionary GetDataContractsForKnownTypes(IList<Type> knownTypeList) 203DataContractDictionary dataContracts = new DataContractDictionary(); 204Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 216internal bool IsKnownType(DataContract dataContract, DataContractDictionary knownDataContracts, Type declaredType)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
15using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>; 190private bool ReplaceScopedKnownTypesTop(DataContractDictionary knownDataContracts, bool knownTypesAddedInCurrentScope)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReaderSession.cs (1)
19private Dictionary<int, XmlDictionaryString> _stringDict;
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriterSession.cs (1)
107private Dictionary<K, V> _dictionary;
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionary.cs (1)
20private Dictionary<string, XmlDictionaryString> _lookup;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
14private Dictionary<TKey, CacheEntry> _items;
FrameworkFork\System.ServiceModel\System\IdentityModel\CryptoHelper.cs (1)
16private static Dictionary<string, Func<object>> s_algorithmDelegateDictionary = new Dictionary<string, Func<object>>();
FrameworkFork\System.ServiceModel\System\IdentityModel\IdentityModelDictionary.cs (2)
17private Dictionary<string, int> _dictionary; 45Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
16private Dictionary<string, object> _properties;
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
406Dictionary<string, object> properties = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
29private Dictionary<string, object> _properties;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (3)
119Dictionary<string, int> myHeaders = new Dictionary<string, int>(); 122Dictionary<string, int> otherHeaders = new Dictionary<string, int>(); 145internal void PopulateHeaderDictionary(StringBuilder builder, Dictionary<string, int> headers)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
21private Dictionary<TKey, EndpointConnectionPool> _endpointPools;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
11private Dictionary<string, List<ConnectionPool>> _registry;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
113private Dictionary<TItem, IdlingConnectionSettings> _connectionMapping;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestReplyCorrelator.cs (1)
15private Dictionary<Key, object> _states;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (2)
40private Dictionary<string, SupportingTokenParameters> _operationSupportingTokenParameters; 41private Dictionary<string, SupportingTokenParameters> _optionalOperationSupportingTokenParameters;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
200Dictionary<Type, byte> supportedChannels = new Dictionary<Type, byte>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (4)
97private bool IsFlowEnabled(Dictionary<DirectionalAction, TransactionFlowOption> dictionary) 200private Dictionary<DirectionalAction, TransactionFlowOption> GetDictionary(BindingContext context) 202Dictionary<DirectionalAction, TransactionFlowOption> dictionary = 203context.BindingParameters.Find<Dictionary<DirectionalAction, TransactionFlowOption>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElementImporter.cs (2)
193private static Dictionary<XmlQualifiedName, XmlQualifiedName> GetGeneratedTransportBindingElements(MetadataImporter importer) 201return (Dictionary<XmlQualifiedName, XmlQualifiedName>)retValue;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (2)
324private static Dictionary<string, int> s_targetNameCounter = new Dictionary<string, int>(); 339private static Dictionary<HttpRequestMessage, string> s_serverCertMap = new Dictionary<HttpRequestMessage, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (7)
18private Dictionary<OperationDescription, DataContractFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, DataContractFormatAttribute>(); 20private Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> _knownTypes; 21private Dictionary<MessagePartDescription, bool> _isNonNillableReferenceTypes; 49internal Dictionary<OperationDescription, DataContractFormatAttribute> OperationAttributes 54internal Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> KnownTypes 86Dictionary<CodeTypeReference, object> operationKnownTypes = new Dictionary<CodeTypeReference, object>(new CodeTypeReferenceComparer()); 100private void AddKnownTypesForPart(OperationContractGenerationContext context, MessagePartDescription part, Dictionary<CodeTypeReference, object> operationKnownTypes)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (23)
32private readonly Dictionary<OperationDescription, PolicyAssertionCollection> _operationBindingAssertions = new Dictionary<OperationDescription, PolicyAssertionCollection>(); 33private readonly Dictionary<MessageDescription, PolicyAssertionCollection> _messageBindingAssertions = new Dictionary<MessageDescription, PolicyAssertionCollection>(); 34private readonly Dictionary<FaultDescription, PolicyAssertionCollection> _faultBindingAssertions = new Dictionary<FaultDescription, PolicyAssertionCollection>(); 37Dictionary<OperationDescription, IEnumerable<XmlElement>> operationBindingAssertions, 38Dictionary<MessageDescription, IEnumerable<XmlElement>> messageBindingAssertions, 39Dictionary<FaultDescription, IEnumerable<XmlElement>> faultBindingAssertions, 117IEnumerable<Dictionary<MessageDescription, IEnumerable<XmlElement>>> messageAssertionEnumerator; 118IEnumerable<Dictionary<FaultDescription, IEnumerable<XmlElement>>> faultAssertionEnumerator; 119IEnumerable<Dictionary<OperationDescription, IEnumerable<XmlElement>>> operationAssertionEnumerator; 124foreach (Dictionary<FaultDescription, IEnumerable<XmlElement>> faultAssertionsSelection in faultAssertionEnumerator) 126foreach (Dictionary<MessageDescription, IEnumerable<XmlElement>> messageAssertionsSelection in messageAssertionEnumerator) 128foreach (Dictionary<OperationDescription, IEnumerable<XmlElement>> operationAssertionsSelection in operationAssertionEnumerator) 240internal static IEnumerable<Dictionary<K, V>> GetCartesianProduct<K, V>(Dictionary<K, IEnumerable<V>> sets) 242Dictionary<K, V> counterValue = new Dictionary<K, V>(sets.Count); 249yield return (Dictionary<K, V>)counterValue; 253private static KeyValuePair<K, IEnumerator<V>>[] InitializeCounter<K, V>(Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue) 274private static bool IncrementCounter<K, V>(KeyValuePair<K, IEnumerator<V>>[] digits, Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue) 310public Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>> OperationBindingAlternatives; 311public Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>> MessageBindingAlternatives; 312public Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>> FaultBindingAlternatives;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (3)
38private Dictionary<WsdlNS.Message, IList<string>> _bodyPartsTable; 40private Dictionary<WsdlNS.Message, IList<string>> BodyPartsTable 850Dictionary<string, object> prefixesUsed = new Dictionary<string, object>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (1)
453private Dictionary<MetadataRetriever, MetadataRetriever> _usedRetrievers; // to prevent looping when chasing MetadataReferences
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (5)
17private readonly Dictionary<object, object> _state = new Dictionary<object, object>(); 42public Dictionary<object, object> State 81private Dictionary<OperationDescription, PolicyAssertionCollection> _operationBindingAssertions; 82private Dictionary<MessageDescription, PolicyAssertionCollection> _messageBindingAssertions; 83private Dictionary<FaultDescription, PolicyAssertionCollection> _faultBindingAssertions;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (4)
18private readonly Dictionary<XmlQualifiedName, ContractDescription> _knownContracts = new Dictionary<XmlQualifiedName, ContractDescription>(); 20private readonly Dictionary<object, object> _state = new Dictionary<object, object>(); 60public Dictionary<object, object> State 65public Dictionary<XmlQualifiedName, ContractDescription> KnownContracts
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (9)
28private Dictionary<MessagePartDescription, CodeTypeReference> _parameterTypes; 29private Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection> _parameterAttributes; 30private Dictionary<MessagePartDescription, string> _specialPartName; 36internal Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection> ParameterAttributes 46internal Dictionary<MessagePartDescription, CodeTypeReference> ParameterTypes 56internal Dictionary<MessagePartDescription, string> SpecialPartName 66internal void GenerateOperation(OperationContractGenerationContext context, ref OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes) 99private readonly Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> _knownTypes; 122internal MethodSignatureGenerator(OperationGenerator parent, OperationContractGenerationContext context, OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (9)
28private Dictionary<ContractDescription, Type> _referencedTypes; 29private Dictionary<ContractDescription, ServiceContractGenerationContext> _generatedTypes; 30private Dictionary<OperationDescription, OperationContractGenerationContext> _generatedOperations; 31private Dictionary<MessageDescription, CodeTypeReference> _generatedTypedMessages; 85public Dictionary<ContractDescription, Type> ReferencedTypes 95public Dictionary<string, string> NamespaceMappings 184internal Dictionary<MessageDescription, CodeTypeReference> GeneratedTypedMessages 695private Dictionary<string, string> _namespaceMappings; 702public Dictionary<string, string> NamespaceMappings
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SoapHelper.cs (3)
169((Dictionary<WsdlNS.Binding, EnvelopeVersion>)versions)[wsdlBinding] = version; 178if (versions != null && ((Dictionary<WsdlNS.Binding, EnvelopeVersion>)versions).ContainsKey(wsdlBinding)) 180return ((Dictionary<WsdlNS.Binding, EnvelopeVersion>)versions)[wsdlBinding];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TransactionFlowAttribute.cs (5)
37Dictionary<DirectionalAction, TransactionFlowOption> dictionary = EnsureDictionary(parameters); 50private static Dictionary<DirectionalAction, TransactionFlowOption> EnsureDictionary(BindingParameterCollection parameters) 52Dictionary<DirectionalAction, TransactionFlowOption> dictionary = 53parameters.Find<Dictionary<DirectionalAction, TransactionFlowOption>>(); 64Dictionary<DirectionalAction, TransactionFlowOption> dictionary = EnsureDictionary(parameters);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (2)
45private readonly Dictionary<Type, ContractDescription> _contracts; 46private readonly Dictionary<Type, MessageDescriptionItems> _messages;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlContractConversionContext.cs (7)
25private readonly Dictionary<OperationDescription, WsdlNS.Operation> _wsdlOperations; 26private readonly Dictionary<WsdlNS.Operation, OperationDescription> _operationDescriptions; 27private readonly Dictionary<MessageDescription, WsdlNS.OperationMessage> _wsdlOperationMessages; 28private readonly Dictionary<FaultDescription, WsdlNS.OperationFault> _wsdlOperationFaults; 29private readonly Dictionary<WsdlNS.OperationMessage, MessageDescription> _messageDescriptions; 30private readonly Dictionary<WsdlNS.OperationFault, FaultDescription> _faultDescriptions; 31private readonly Dictionary<WsdlNS.Operation, Collection<WsdlNS.OperationBinding>> _operationBindings;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlEndpointConversionContext.cs (6)
21private readonly Dictionary<OperationDescription, WsdlNS.OperationBinding> _wsdlOperationBindings; 22private readonly Dictionary<WsdlNS.OperationBinding, OperationDescription> _operationDescriptionBindings; 23private readonly Dictionary<MessageDescription, WsdlNS.MessageBinding> _wsdlMessageBindings; 24private readonly Dictionary<FaultDescription, WsdlNS.FaultBinding> _wsdlFaultBindings; 25private readonly Dictionary<WsdlNS.MessageBinding, MessageDescription> _messageDescriptionBindings; 26private readonly Dictionary<WsdlNS.FaultBinding, FaultDescription> _faultDescriptionBindings;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (4)
28private Dictionary<ContractDescription, WsdlContractConversionContext> _exportedContracts 30private Dictionary<BindingDictionaryKey, WsdlEndpointConversionContext> _exportedBindings = new Dictionary<BindingDictionaryKey, WsdlEndpointConversionContext>(); 31private Dictionary<EndpointDictionaryKey, ServiceEndpoint> _exportedEndpoints = new Dictionary<EndpointDictionaryKey, ServiceEndpoint>(); 952private readonly Dictionary<string, string> _lookup = new Dictionary<string, string>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (15)
23private readonly Dictionary<WsdlNS.NamedItem, WsdlImportException> _importErrors = new Dictionary<WsdlNS.NamedItem, WsdlImportException>(); 26private readonly Dictionary<XmlQualifiedName, WsdlContractConversionContext> _importedPortTypes = new Dictionary<XmlQualifiedName, WsdlContractConversionContext>(); 27private readonly Dictionary<XmlQualifiedName, WsdlEndpointConversionContext> _importedBindings = new Dictionary<XmlQualifiedName, WsdlEndpointConversionContext>(); 28private readonly Dictionary<WsdlNS.Port, ServiceEndpoint> _importedPorts = new Dictionary<WsdlNS.Port, ServiceEndpoint>(); 34private readonly Dictionary<string, XmlElement> _policyDocuments = new Dictionary<string, XmlElement>(); 35private readonly Dictionary<string, string> _warnings = new Dictionary<string, string>(); 1688Dictionary<XmlElement, XmlElement> unique = new Dictionary<XmlElement, XmlElement>(); 2287private readonly Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>> _embeddedPolicyDictionary = new Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>>(); 2288private readonly Dictionary<string, XmlElement> _externalPolicyDictionary = new Dictionary<string, XmlElement>(); 2289private readonly Dictionary<XmlElement, WsdlNS.ServiceDescription> _policySourceTable = new Dictionary<XmlElement, WsdlNS.ServiceDescription>(); 2291internal Dictionary<XmlElement, WsdlNS.ServiceDescription> PolicySourceTable 2331Dictionary<string, XmlElement> wsdlPolicyDictionary; 2410Dictionary<string, XmlElement> wsdlPolicyDictionary;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
542private Dictionary<string, XmlMembersMapping> _xmlMappings; 562private Dictionary<string, XmlMembersMapping> XmlMappings
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (5)
22private Dictionary<MessagePartDescription, PartInfo> _partInfoTable; 23private Dictionary<OperationDescription, XmlSerializerFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, XmlSerializerFormatAttribute>(); 97internal Dictionary<OperationDescription, XmlSerializerFormatAttribute> OperationAttributes 123Dictionary<XmlMembersMapping, XmlMembersMapping> alreadyExported = new Dictionary<XmlMembersMapping, XmlMembersMapping>(); 180private void GeneratePartType(Dictionary<XmlMembersMapping, XmlMembersMapping> alreadyExported, MessagePartDescription part, string partNamespace)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
20private Dictionary<string, ProxyOperationRuntime> _operations;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
35private Dictionary<object, string> _operationMap;
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderT.cs (1)
81private static Dictionary<Type, TypedHeaderManager> s_cache = new Dictionary<Type, TypedHeaderManager>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ScopedMessagePartSpecification.cs (2)
14private Dictionary<string, MessagePartSpecification> _actionParts; 15private Dictionary<string, MessagePartSpecification> _readOnlyNormalizedActionParts;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (3)
89private Dictionary<string, ICollection<SupportingTokenAuthenticatorSpecification>> _scopedSupportingTokenAuthenticatorSpecification; 90private Dictionary<string, MergedSupportingTokenAuthenticatorSpecification> _mergedSupportingTokenAuthenticatorsMap; 480public Dictionary<string, ICollection<SupportingTokenAuthenticatorSpecification>> ScopedSupportingTokenAuthenticatorSpecification
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (2)
20private Dictionary<Uri, X509Certificate2> _scopedCertificates; 59public Dictionary<Uri, X509Certificate2> ScopedCertificates
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceModelDictionary.cs (2)
17private Dictionary<string, int> _dictionary; 45Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
17private Dictionary<K, T> _dictionary;
ImportModule.cs (3)
376private readonly Dictionary<Binding, ContractDescription> _bindingContractMapping = new Dictionary<Binding, ContractDescription>(); 377private readonly Dictionary<Binding, XmlQualifiedName> _bindingWsdlMapping = new Dictionary<Binding, XmlQualifiedName>(); 378private readonly Dictionary<XmlQualifiedName, WsdlNS.Port> _bindingPortMapping = new Dictionary<XmlQualifiedName, WsdlNS.Port>();
Metadata\ServiceDescriptorFactory.cs (1)
23private Dictionary<int, ServiceDescriptor> _cache = new Dictionary<int, ServiceDescriptor>();
Shared\MSBuildProj.cs (1)
34public Dictionary<string, string> GlobalProperties { get; } = new Dictionary<string, string>();
Shared\ProjectPropertyResolver.cs (2)
23public async Task<Dictionary<string, string>> EvaluateProjectPropertiesAsync(string projectPath, string targetFramework, IEnumerable<string> propertyNames, IDictionary<string, string> globalProperties, ILogger logger, CancellationToken cancellationToken) 25var propertyTable = new Dictionary<string, string>();
Shared\Utilities\ProcessRunner.cs (1)
49var emptyVars = new Dictionary<string, string>();
Tool.cs (1)
177var properties = new Dictionary<string, string>()
dotnet-svcutil-lib.Tests (1)
ProjectUtils.cs (1)
89var envVars = new Dictionary<string, string> { { AppInsightsTelemetryClient.OptOutVariable, (!AppInsightsTelemetryClient.IsUserOptedIn).ToString() } };
dotnet-svcutil.xmlserializer (10)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (1)
88private Dictionary<string, IList<string>> _contents;
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (9)
34private Dictionary<string, Type> _excludedTypes; 36private Dictionary<string, string> _namespaceMappings; 47internal Dictionary<string, string> NamespaceMappings { get { return _namespaceMappings; } } 339Dictionary<string, Type> foundCollectionTypes = AddSpecifiedTypesToDictionary(collectionTypesArgs, Options.Cmd.CollectionType); 382private Dictionary<string, Type> AddSpecifiedTypesToDictionary(IList<string> typeArgs, string cmd) 384Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count); 394private void AddReferencedTypesFromAssembly(Assembly assembly, Dictionary<string, Type> foundCollectionTypes) 406private void AddMscorlib(Dictionary<string, Type> foundCollectionTypes) 477internal static bool IsTypeSpecified(Type type, Dictionary<string, Type> specifiedTypes, string cmd)
dotnet-user-jwts (3)
Commands\CreateCommand.cs (1)
210var claims = new Dictionary<string, string>();
Helpers\DevJwtCliHelpers.cs (1)
296public static bool TryParseClaims(List<string> input, out Dictionary<string, string> claims)
Helpers\JwtCreatorOptions.cs (1)
15Dictionary<string, string> Claims);
dotnet-user-secrets (1)
Internal\ListCommand.cs (1)
55var secrets = new Dictionary<string, string>();
dotnet-watch (6)
CommandLine\CommandLineOptions.cs (1)
338var knownCommandsByName = dotnetDefinition.Subcommands.ToDictionary(keySelector: c => c.Name, elementSelector: c => c);
Watch\DotNetWatcher.cs (1)
24var environmentBuilder = new Dictionary<string, string>();
Watch\MsBuildFileSetFactory.cs (1)
93var fileItems = new Dictionary<string, FileItem>();
Watch\MSBuildFileSetResult.cs (2)
12public required Dictionary<string, ProjectItems> Projects { get; init; } 19public Dictionary<string, string> StaticFileSetBuilder { get; init; } = [];
Watch\StaticFileHandler.cs (1)
17var refreshRequests = new Dictionary<BrowserRefreshServer, List<string>>();
DotNetWatchTasks (3)
FileSetSerializer.cs (1)
22var projectItems = new Dictionary<string, ProjectItems>();
src\sdk\src\Dotnet.Watch\dotnet-watch\Watch\MSBuildFileSetResult.cs (2)
12public required Dictionary<string, ProjectItems> Projects { get; init; } 19public Dictionary<string, string> StaticFileSetBuilder { get; init; } = [];
GenerateDocumentationAndConfigFiles (140)
src\60c94c676d650713\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
23Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\60c94c676d650713\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
18public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
28private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 223private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (4)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary, 79public static void AddPooled<K, V>(this Dictionary<K, ArrayBuilder<V>> dictionary, K key, V value)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new(); 124public Dictionary<K, ValueSet>.Enumerator GetEnumerator() 178public Dictionary<K, ValueSet>.KeyCollection Keys
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (4)
206private readonly Dictionary<K, ValueSet> _dictionary; 214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys; 216public Dictionary<K, ValueSet>.ValueCollection Values => _dictionary.Values; 279public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.Analyzers\Core\MetaAnalyzers\ReleaseTrackingHelper.cs (1)
51var releaseTrackingDataByRulesBuilder = new Dictionary<string, ReleaseTrackingDataForRuleBuilder>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (3)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 106static void ProcessComments(RuleSet ruleset, HashSet<string> processedRulesetPaths, Dictionary<string, string> ruleIdToComments) 122static void PopulateRuleIdToComments(string rulesetFilePath, Dictionary<string, string> ruleIdToComments)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
11Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 16public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (8)
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) : []; 403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
505public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
45protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap, 260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken) 296Dictionary<SyntaxToken, int> previousChangesMap, 324Dictionary<SyntaxToken, int> previousChangesMap, 380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken) 412Dictionary<SyntaxToken, int> previousChangesMap, 448Dictionary<SyntaxToken, int> previousChangesMap, 475Dictionary<SyntaxToken, int> previousChangesMap, 492Dictionary<SyntaxToken, int> previousChangesMap, 544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (3)
44protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken); 95using var pooledObject = SharedPools.Default<Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>>().GetPooledObject(); 97var map = pooledObject.Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
16private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
19var trimmedDictionary = TrimDictionary(allRawConventions); 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull 38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool); 74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary) 77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool); 141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) 144var map = pool.Allocate(); 283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 84return new PooledObject<Dictionary<TKey, TValue>>( 139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (2)
37public static ObjectPool<Dictionary<string, T>> StringIgnoreCaseDictionary<T>() 74public static readonly ObjectPool<Dictionary<string, T>> Instance =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (3)
160var spilledEdges = builderNode.SpilloverEdges; 243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
572private static int GetValue(Dictionary<char, int> da, char c)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue) 232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (4)
15public static Dictionary<K, V> ToDictionaryAndFree<K, V>(this PooledDictionary<K, V> builders) 18var dictionary = new Dictionary<K, V>(builders.Count); 29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
18private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
580Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 601Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 623Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (3)
149public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 164public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
22public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 65private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 73internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 76internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 112private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 140private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 152private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 281private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 301private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 330private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, 486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 617private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (2)
94using var collisionMapPool = (isCaseSensitive ? SharedPools.Default<Dictionary<string, bool>>() : SharedPools.StringIgnoreCaseDictionary<bool>()).GetPooledObject(); 95var collisionMap = collisionMapPool.Object;
GetDocument.Insider (1)
Commands\GetDocumentCommand.cs (1)
67var packagedAssemblies = Directory
HelixTestTasks (1)
ComputeBatchTimeout.cs (1)
76var counts = new Dictionary<string, int>();
ILAssembler (26)
DocumentCompiler.cs (1)
23Dictionary<string, SourceText> loadedDocuments = new()
EntityRegistry.cs (11)
17private readonly Dictionary<TableIndex, List<EntityBase>> _seenEntities = new(); 18private readonly Dictionary<(TypeDefinitionEntity? ContainingType, string Namespace, string Name), TypeDefinitionEntity> _seenTypeDefs = new(); 19private readonly Dictionary<(EntityBase ResolutionScope, string Namespace, string Name), TypeReferenceEntity> _seenTypeRefs = new(); 20private readonly Dictionary<string, AssemblyReferenceEntity> _seenAssemblyRefs = new(StringComparer.OrdinalIgnoreCase); 21private readonly Dictionary<string, ModuleReferenceEntity> _seenModuleRefs = new(); 22private readonly Dictionary<BlobBuilder, TypeSpecificationEntity> _seenTypeSpecs = new(new BlobBuilderContentEqualityComparer()); 23private readonly Dictionary<BlobBuilder, StandaloneSignatureEntity> _seenStandaloneSignatures = new(new BlobBuilderContentEqualityComparer()); 24private readonly Dictionary<string, FileEntity> _seenFiles = new(); 26private readonly Dictionary<(ExportedTypeEntity? ContainingType, string Namespace, string Name), ExportedTypeEntity> _seenExportedTypes = new(); 28private readonly Dictionary<(EntityBase, BlobBuilder), MethodSpecificationEntity> _seenMethodSpecs = new(new MethodSpecEqualityComparer()); 594private TEntity GetOrCreateEntity<TKey, TEntity>(TKey key, TableIndex table, Dictionary<TKey, TEntity> cache, Func<TKey, TEntity> constructor, Action<TEntity> onCreate)
GrammarVisitor.cs (9)
87private readonly Dictionary<string, int> _mappedFieldDataNames = new(); 88private readonly Dictionary<string, List<Blob>> _mappedFieldDataReferenceFixups = new(); 92private readonly Dictionary<string, TypedefEntry> _typedefs = new(); 99private readonly Dictionary<string, DocumentHandle> _documentHandles = new(); 996public Dictionary<string, LabelHandle> Labels { get; } = new(); 1000public Dictionary<string, ParserRuleContext> UndefinedLabelReferences { get; } = new(); 1002public Dictionary<string, int> ArgumentNames { get; } = new(); 1004public List<Dictionary<string, int>> LocalsScopes { get; } = new(); 3638var localsScope = currentMethod.LocalsScopes.Count != 0 ? currentMethod.LocalsScopes[currentMethod.LocalsScopes.Count - 1] : new();
NamedElementList.cs (1)
18private readonly Dictionary<string, T> _elementsByName = new();
PreprocessedTokenSource.cs (1)
21private readonly Dictionary<string, string?> _definedVars = new();
VTableExportPEBuilder.cs (3)
44private readonly Dictionary<string, int> _mappedFieldDataOffsets; 99Dictionary<string, int>? mappedFieldDataOffsets = null, 378var slotOffsets = new Dictionary<(int EntryIndex, int SlotIndex), int>();
ilc (13)
ConfigurablePInvokePolicy.cs (1)
17private readonly Dictionary<string, HashSet<string>> _directPInvokes;
ILCompilerRootCommand.cs (2)
17public Argument<Dictionary<string, string>> InputFilePaths { get; } = 19public Option<Dictionary<string, string>> ReferenceFiles { get; } =
Program.cs (2)
86Dictionary<int, bool> warningsAsErrors = new Dictionary<int, bool>(); 382var featureSwitches = new Dictionary<string, bool>();
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (8)
31public static Dictionary<string, string> BuildPathDictionary(IReadOnlyList<Token> tokens, bool strict) 33Dictionary<string, string> dictionary = new(StringComparer.OrdinalIgnoreCase); 46Dictionary<string, string> dictionary = new(StringComparer.OrdinalIgnoreCase); 232Dictionary<string, string> inputToReproPackageFileName = new(); 234Dictionary<string, string> outputToReproPackageFileName = new(); 255Dictionary<string, string> dictionary = new(); 328var originalToReproPackageFileName = input ? inputToReproPackageFileName : outputToReproPackageFileName; 369private static void AppendExpandedPaths(Dictionary<string, string> dictionary, string pattern, bool strict)
ILCompiler.Build.Tasks (1)
ComputeManagedAssembliesToCompileToNative.cs (1)
89var nativeAotFrameworkAssembliesToUse = new Dictionary<string, ITaskItem>();
ILCompiler.Compiler (185)
Compiler\AnalysisBasedMetadataManager.cs (5)
29private readonly Dictionary<TypeDesc, MetadataCategory> _reflectableTypes = new Dictionary<TypeDesc, MetadataCategory>(); 30private readonly Dictionary<MethodDesc, MetadataCategory> _reflectableMethods = new Dictionary<MethodDesc, MetadataCategory>(); 31private readonly Dictionary<FieldDesc, MetadataCategory> _reflectableFields = new Dictionary<FieldDesc, MetadataCategory>(); 147out Dictionary<MethodDesc, int> methodMetadataMappings, 149out Dictionary<FieldDesc, int> fieldMetadataMappings,
Compiler\BodySubstitutionParser.cs (6)
22private readonly Dictionary<MethodDesc, BodySubstitution> _methodSubstitutions; 23private readonly Dictionary<FieldDesc, object> _fieldSubstitutions; 228private Dictionary<MethodDesc, BodySubstitution> _bodySubstitutions; 229private Dictionary<FieldDesc, object> _fieldSubstitutions; 234public BodyAndFieldSubstitutions(Dictionary<MethodDesc, BodySubstitution> bodySubstitutions, Dictionary<FieldDesc, object> fieldSubstitutions)
Compiler\Dataflow\ArrayValue.cs (1)
47public Dictionary<int, ValueBasicBlockPair> IndexValues { get; }
Compiler\Dataflow\CompilerGeneratedCallGraph.cs (1)
15private readonly Dictionary<TypeSystemEntity, HashSet<TypeSystemEntity>> _callGraph;
Compiler\Dataflow\CompilerGeneratedState.cs (6)
89private Dictionary<MetadataType, MethodDesc>? _compilerGeneratedTypeToUserCodeMethod; 90private Dictionary<MetadataType, TypeArgumentInfo>? _generatedTypeToTypeArgumentInfo; 91private Dictionary<MethodDesc, MethodDesc>? _compilerGeneratedMethodToUserCodeMethod; 96private Dictionary<MethodDesc, List<TypeSystemEntity>>? _compilerGeneratedMembers; 126var generatedTypeToTypeArgs = new Dictionary<MetadataType, TypeArgumentInfo>(); 393Dictionary<MetadataType, TypeArgumentInfo> generatedTypeToTypeArgs)
Compiler\Dataflow\MethodBodyScanner.cs (4)
140private static void NewKnownStack(Dictionary<int, Stack<StackSlot>> knownStacks, int newOffset, Stack<StackSlot> newStack) 251Dictionary<KeyType, ValueBasicBlockPair> valueCollection, 350Dictionary<int, Stack<StackSlot>> knownStacks = new Dictionary<int, Stack<StackSlot>>(); 861private static void ScanExceptionInformation(Dictionary<int, Stack<StackSlot>> knownStacks, MethodIL methodIL)
Compiler\Dataflow\TrimAnalysisPatternStore.cs (5)
16private readonly Dictionary<(MessageOrigin, int?), TrimAnalysisAssignmentPattern> AssignmentPatterns; 17private readonly Dictionary<MessageOrigin, TrimAnalysisMethodCallPattern> MethodCallPatterns; 18private readonly Dictionary<(MessageOrigin, TypeSystemEntity), TrimAnalysisTokenAccessPattern> TokenAccessPatterns; 19private readonly Dictionary<(MessageOrigin, TypeSystemEntity), TrimAnalysisGenericInstantiationAccessPattern> GenericInstantiations; 20private readonly Dictionary<(MessageOrigin, FieldDesc), TrimAnalysisFieldAccessPattern> FieldAccessPatterns;
Compiler\DependencyAnalysis\DehydratedDataNode.cs (2)
65var relocOccurences = new Dictionary<ISymbolNode, int>(); 105var relocs = new Dictionary<ISymbolNode, int>(relocSort);
Compiler\DependencyAnalysis\ExternalReferencesTableNode.cs (1)
21private Dictionary<SymbolAndDelta, uint> _insertedSymbolsDictionary = new Dictionary<SymbolAndDelta, uint>();
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (3)
20private Dictionary<MethodDesc, Dictionary<TypeDesc, MethodDesc>> _gvmImplementations; 25_gvmImplementations = new Dictionary<MethodDesc, Dictionary<TypeDesc, MethodDesc>>();
Compiler\DependencyAnalysis\InterfaceGenericVirtualMethodTableNode.cs (5)
21private Dictionary<MethodDesc, HashSet<object>> _interfaceGvmSlots; 22private Dictionary<object, Dictionary<TypeDesc, HashSet<int>>> _interfaceImpls; 28_interfaceImpls = new Dictionary<object, Dictionary<TypeDesc, HashSet<int>>>(); 189var ifaceImpls = _interfaceImpls[impl];
Compiler\DependencyAnalysis\ModuleInitializerListNode.cs (1)
184private readonly Dictionary<ModuleDesc, ModuleGraphNode> _nodes = new Dictionary<ModuleDesc, ModuleGraphNode>();
Compiler\DependencyAnalysis\NodeFactory.cs (1)
1660public Dictionary<ISymbolNode, (Utf8String Name, bool Hidden)> NodeAliases = new Dictionary<ISymbolNode, (Utf8String, bool)>();
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
122Dictionary<int, HashSet<TypeDesc>> methodsEmitted = new Dictionary<int, HashSet<TypeDesc>>();
Compiler\DependencyAnalysis\StackTraceDocumentsNode.cs (1)
17private Dictionary<string, int> _documentToIndex = new Dictionary<string, int>(StringComparer.Ordinal);
Compiler\HardwareIntrinsicILProvider.cs (1)
20private readonly Dictionary<string, InstructionSet> _instructionSetMap;
Compiler\ILAssemblyGeneratingMethodDebugInfoProvider.cs (1)
23private readonly Dictionary<MethodDesc, MethodDebugInformation> _generatedInfos = new Dictionary<MethodDesc, MethodDebugInformation>();
Compiler\ILScanner.cs (8)
296private readonly Dictionary<TypeDesc, MethodDesc[]> _vtableSlices = new Dictionary<TypeDesc, MethodDesc[]>(); 339private Dictionary<TypeSystemEntity, (GenericLookupResult[] Slots, GenericLookupResult[] DiscardedSlots)> _layouts = new(); 462private Dictionary<TypeDesc, HashSet<TypeDesc>> _implementators = new(); 480var vtables = new Dictionary<TypeDesc, List<MethodDesc>>(); 857private readonly Dictionary<MethodDesc, TypeSystemException> _importationErrors = new Dictionary<MethodDesc, TypeSystemException>(); 878private readonly Dictionary<MetadataType, int> _offsets; 883internal override Dictionary<MetadataType, int> GetOffsets() => _offsets; 901Dictionary<MetadataType, int> offsets = new Dictionary<MetadataType, int>();
Compiler\InlinedThreadStatics.cs (1)
16internal virtual Dictionary<MetadataType, int> GetOffsets() => throw new InvalidOperationException();
Compiler\Logger.cs (1)
38private readonly Dictionary<int, bool> _warningsAsErrors;
Compiler\ManifestResourceBlockingPolicy.cs (6)
45var result = new Dictionary<ModuleDesc, HashSet<string>>(); 53static void AddAll(Dictionary<ModuleDesc, HashSet<string>> result, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> addend) 64private static Dictionary<ModuleDesc, IReadOnlySet<string>> AsReadOnlyDictionary(Dictionary<ModuleDesc, HashSet<string>> original) 67var copy = new Dictionary<ModuleDesc, IReadOnlySet<string>>(); 147private readonly Dictionary<ModuleDesc, HashSet<string>> _substitutions = new();
Compiler\MetadataManager.cs (6)
52private Dictionary<FieldDesc, int> _fieldHandleMap; 54private Dictionary<MethodDesc, int> _methodHandleMap; 729out Dictionary<MethodDesc, int> methodMetadataMappings, 731out Dictionary<FieldDesc, int> fieldMetadataMappings, 741out Dictionary<MethodDesc, int> methodMetadataMappings, 743out Dictionary<FieldDesc, int> fieldMetadataMappings,
Compiler\MethodBodyDeduplicator.cs (4)
35public void DeduplicatePass(NodeFactory factory, Dictionary<ISymbolNode, ISymbolNode> previousSymbolRemapping, Dictionary<ISymbolNode, ISymbolNode> symbolRemapping) 99private readonly Dictionary<ISymbolNode, ISymbolNode> _interner; 102public MethodInternComparer(NodeFactory factory, Dictionary<ISymbolNode, ISymbolNode> interner, bool genericsOnly)
Compiler\MstatObjectDumper.cs (3)
41private Dictionary<MethodDesc, int> _methodEhInfo = new(); 42private Dictionary<string, int> _blobs = new(); 43private Dictionary<MethodDesc, List<(MethodDesc Method, int MangledName)>> _deduplicatedBodies = new();
Compiler\ObjectWriter\CodeView\CodeViewFileTableBuilder.cs (1)
20private readonly Dictionary<string, uint> _fileNameToIndex = new();
Compiler\ObjectWriter\Dwarf\DwarfBuilder.cs (4)
32private readonly Dictionary<int, DwarfLineSequenceWriter> _lineSequences = new(); 33private readonly Dictionary<string, int> _fileNameMap = new(); // fileName -> _fileNames index (1-based) 40private readonly Dictionary<TypeFlags, uint> _primitiveDwarfTypes = new(); 41private readonly Dictionary<(uint, uint), uint> _simpleArrayDwarfTypes = new(); // (elementTypeIndex, size) -> arrayTypeIndex
Compiler\ObjectWriter\Dwarf\DwarfEhFrame.cs (1)
19private readonly Dictionary<DwarfCie, uint> _cieOffset = new();
Compiler\ObjectWriter\Dwarf\DwarfInfoWriter.cs (1)
28private readonly Dictionary<DwarfAbbrev, int> _usedAbbrevs = new();
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (2)
16private readonly Dictionary<string, uint> _directoryNameToIndex = new(); 17private readonly Dictionary<DwarfFileName, uint> _fileNameToIndex = new();
Compiler\ObjectWriter\ElfObjectWriter.Aot.cs (1)
38private Dictionary<int, (SectionWriter ExidxSectionWriter, SectionWriter ExtabSectionWriter)> _armUnwindSections;
Compiler\ObjectWriter\UnixObjectWriter.Aot.cs (1)
148private Dictionary<INodeWithCodeInfo, Utf8String[]> _lsdas = new Dictionary<INodeWithCodeInfo, Utf8String[]>(LsdaComparer.Instance);
Compiler\ReachabilityInstrumentationFilter.cs (1)
23private readonly Dictionary<Guid, bool[]> _reachabilityInfo = new Dictionary<Guid, bool[]>();
Compiler\RuntimeConfigurationRootProvider.cs (2)
68var settings = new Dictionary<string, ISymbolNode>(); 71var valueDict = new Dictionary<string, ISymbolNode>();
Compiler\SourceLinkWriter.cs (1)
23private readonly Dictionary<EcmaModule, SourceLinkMap> _sourceLinkMaps;
Compiler\SubstitutionProvider.cs (2)
140Dictionary<string, string> dict = _hashtable.GetOrCreateValue(method.Module).InlineableResourceStrings; 180public Dictionary<string, string> InlineableResourceStrings { get; }
Compiler\TypePreinit.cs (9)
42private readonly Dictionary<FieldDesc, Value> _fieldValues = new Dictionary<FieldDesc, Value>(); 43private readonly Dictionary<string, StringInstance> _internedStrings = new Dictionary<string, StringInstance>(); 44private readonly Dictionary<TypeDesc, RuntimeTypeValue> _internedTypes = new Dictionary<TypeDesc, RuntimeTypeValue>(); 45private readonly Dictionary<AllocationSite, ForeignTypeInstance> _foreignInstances = new Dictionary<AllocationSite, ForeignTypeInstance>(); 46private readonly Dictionary<MetadataType, NestedPreinitResult> _nestedPreinitResults = new Dictionary<MetadataType, NestedPreinitResult>(); 47private readonly Dictionary<EcmaField, byte[]> _rvaFieldDatas = new Dictionary<EcmaField, byte[]>(); 3754private readonly Dictionary<FieldDesc, Value> _fieldValues; 3757public NestedPreinitResult(Dictionary<FieldDesc, Value> fieldValues, int baseInstructionCounter) 3782private readonly Dictionary<FieldDesc, ISerializableValue> _fieldValues;
Compiler\UsageBasedMetadataManager.cs (3)
231out Dictionary<MethodDesc, int> methodMetadataMappings, 233out Dictionary<FieldDesc, int> fieldMetadataMappings, 974private Dictionary<T, MetadataCategory> _dictionary;
Compiler\UserDefinedTypeDescriptor.cs (11)
860private Dictionary<TypeDesc, uint> _knownTypes = new Dictionary<TypeDesc, uint>(); 861private Dictionary<TypeDesc, uint> _completeKnownTypes = new Dictionary<TypeDesc, uint>(); 862private Dictionary<TypeDesc, uint> _knownReferenceWrappedTypes = new Dictionary<TypeDesc, uint>(); 863private Dictionary<TypeDesc, uint> _knownStateMachineThisTypes = new Dictionary<TypeDesc, uint>(); 864private Dictionary<TypeDesc, uint> _pointerTypes = new Dictionary<TypeDesc, uint>(); 865private Dictionary<TypeDesc, uint> _enumTypes = new Dictionary<TypeDesc, uint>(); 866private Dictionary<TypeDesc, uint> _byRefTypes = new Dictionary<TypeDesc, uint>(); 867private Dictionary<TypeDesc, uint> _thisTypes = new Dictionary<TypeDesc, uint>(); 868private Dictionary<TypeDesc, uint> _primitiveTypes = new Dictionary<TypeDesc, uint>(); 869private Dictionary<MethodDesc, uint> _methodIndices = new Dictionary<MethodDesc, uint>(); 870private Dictionary<MethodDesc, uint> _methodIdIndices = new Dictionary<MethodDesc, uint>();
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Wasm.cs (3)
16private readonly Dictionary<int, TypeDesc> _structsBySize = new Dictionary<int, TypeDesc>(); 17private readonly Dictionary<int, TypeDesc> _alignedStructsBySize = new Dictionary<int, TypeDesc>(); 18private readonly Dictionary<int, TypeDesc> _returnStructsBySize = new Dictionary<int, TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
115private Dictionary<P, Vertex> _vertexMap = new Dictionary<P, Vertex>();
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (12)
176private static Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>> s_instructionSetSupport = ComputeInstructionSetSupport(); 177private static Dictionary<TargetArchitecture, InstructionSetFlags> s_nonSpecifiableInstructionSets = ComputeNonSpecifiableInstructionSetSupport(); 179private static Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>> ComputeInstructionSetSupport() 181var supportMatrix = new Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>>(); 190private static Dictionary<TargetArchitecture, InstructionSetFlags> ComputeNonSpecifiableInstructionSetSupport() 192var matrix = new Dictionary<TargetArchitecture, InstructionSetFlags>(); 201private static Dictionary<string, InstructionSet> ComputeInstructSetSupportForArch(TargetArchitecture architecture) 203var support = new Dictionary<string, InstructionSet>(); 323Dictionary<string, InstructionSet> instructionSetConversion = s_instructionSetSupport[_architecture];
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (6)
131private Dictionary<TypeDesc, Utf8String> _mangledTypeNames = new Dictionary<TypeDesc, Utf8String>(); 132private Dictionary<string, Utf8String> _mangledAssemblyNames = new Dictionary<string, Utf8String>(StringComparer.OrdinalIgnoreCase); 467private Dictionary<MethodDesc, Utf8String> _mangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 468private Dictionary<MethodDesc, Utf8String> _unqualifiedMangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 626private Dictionary<FieldDesc, Utf8String> _mangledFieldNames = new Dictionary<FieldDesc, Utf8String>(); 684private Dictionary<string, Utf8String> _mangledStringLiterals = new Dictionary<string, Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectDataInterner.cs (7)
21void DeduplicatePass(NodeFactory factory, Dictionary<ISymbolNode, ISymbolNode> previousSymbolRemapping, Dictionary<ISymbolNode, ISymbolNode> symbolRemapping); 27private Dictionary<ISymbolNode, ISymbolNode> _symbolRemapping; 43Dictionary<ISymbolNode, ISymbolNode> previousSymbolRemapping; 44Dictionary<ISymbolNode, ISymbolNode> symbolRemapping = null; 60private static bool MappingsEqual(Dictionary<ISymbolNode, ISymbolNode> a, Dictionary<ISymbolNode, ISymbolNode> b)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
57private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 58private readonly Dictionary<int, CoffSectionSymbol> _sectionNumberToComdatAuxRecord = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (2)
47private readonly Dictionary<Utf8String, ElfSectionDefinition> _comdatNameToElfSection = new(); 50private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
66private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 69private readonly Dictionary<Utf8String, (Utf8String StartNode, Utf8String EndNode, int Size)> _rangeSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
38private readonly Dictionary<ISymbolNode, Utf8String> _mangledNameMap = new(); 43private readonly Dictionary<string, int> _sectionNameToSectionIndex = new(StringComparer.Ordinal); 49private readonly Dictionary<Utf8String, SymbolDefinition> _definedSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (3)
129private readonly Dictionary<ISymbolDefinitionNode, OutputNode> _nodeSymbolMap = []; 130private readonly Dictionary<ISymbolDefinitionNode, IMethodNode> _methodSymbolMap = []; 132private readonly Dictionary<RelocType, int> _relocCounts = [];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (3)
73private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = []; 79private Dictionary<Utf8String, SymbolDefinition> _definedSymbols = []; 82private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
19private Dictionary<Utf8String, uint> _stringToOffset = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (1)
13private readonly Dictionary<string, int> _sectionNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (3)
24private readonly Dictionary<ObjectNodeSection, WasmSectionType> _sectionToType = new() 56private protected readonly Dictionary<string, WasmGlobal> _definedGlobals = new(); 63private protected Dictionary<Utf8String, SymbolDefinition> _definedSymbols;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmRelocatableObjectWriter.cs (1)
62private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
58private readonly Dictionary<Utf8String, Entry> _entries = new();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (4)
98private readonly Dictionary<TypeDesc, TypeDesc> _associatedTypeMap = []; 99private readonly Dictionary<string, (TypeDesc type, TypeDesc trimmingTarget)> _externalTypeMap = []; 260Dictionary<TypeDesc, Map> typeMapStates = []; 264Dictionary<(EcmaAssembly assembly, TypeDesc typeMapGroup), (TypeDesc scannedDuringGroup, Map map)> pendingMaps = [];
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoInstructionSet.cs (1)
1105private static Dictionary<(string, TargetArchitecture), string> AllInstructionSetGroups { get; } = new()
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (2)
545Dictionary<PgoSchemaElem, PgoSchemaElem> dataMerger = new Dictionary<PgoSchemaElem, PgoSchemaElem>(PgoSchemaMergeComparer.Singleton); 575static void MergeInSchemaElem(Dictionary<PgoSchemaElem, PgoSchemaElem> dataMerger, PgoSchemaElem schema)
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
23private Dictionary<string, AssemblyReferenceHandle> _assemblyRefNameHandles = new Dictionary<string, AssemblyReferenceHandle>(); 24private Dictionary<IAssemblyDesc, AssemblyReferenceHandle> _assemblyRefs = new Dictionary<IAssemblyDesc, AssemblyReferenceHandle>(); 25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>(); 26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>(); 27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>();
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (3)
24private Dictionary<TKey, TValue>? Dictionary; 29private DefaultValueDictionary(TValue defaultValue, Dictionary<TKey, TValue> dictionary) => (Dictionary, DefaultValue) = (dictionary, defaultValue); 101var dict = new Dictionary<TKey, TValue>();
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
33private readonly Dictionary<IControlFlowGraph<TBlock, TRegion>.ControlFlowBranch, TState> branchInput; 43private readonly Dictionary<TRegion, Box<TValue>> exceptionState; 51private readonly Dictionary<IControlFlowGraph<TBlock, TRegion>.ControlFlowBranch, TValue> exceptionFinallyState; 56private readonly Dictionary<TRegion, TValue> finallyInputState;
ILCompiler.DependencyAnalysisFramework (3)
DependencyAnalyzer.cs (2)
37private Dictionary<int, List<DependencyNodeCore<DependencyContextType>>> _deferredStaticDependencies = new Dictionary<int, List<DependencyNodeCore<DependencyContextType>>>(); 42private Dictionary<DependencyNodeCore<DependencyContextType>, HashSet<DependencyNodeCore<DependencyContextType>.CombinedDependencyListEntry>> _conditional_dependency_store = new Dictionary<DependencyNodeCore<DependencyContextType>, HashSet<DependencyNodeCore<DependencyContextType>.CombinedDependencyListEntry>>();
DgmlWriter.cs (1)
103private Dictionary<object, int> _nodeMappings = new Dictionary<object, int>();
ILCompiler.Diagnostics (2)
PdbWriter.cs (2)
89Dictionary<string,int> _stringTableToOffsetMapping; 90Dictionary<SymDocument,int> _documentToChecksumOffsetMapping;
ILCompiler.MetadataTransform (12)
ILCompiler\Metadata\EntityMap.cs (1)
11private Dictionary<TEntity, TRecord> _map;
ILCompiler\Metadata\Transform.Namespace.cs (2)
16private Dictionary<NamespaceKey, NamespaceDefinition> _namespaceDefs = new Dictionary<NamespaceKey, NamespaceDefinition>(); 70private Dictionary<NamespaceKey, NamespaceReference> _namespaceRefs = new Dictionary<NamespaceKey, NamespaceReference>();
ILCompiler\Metadata\Transform.String.cs (1)
13private Dictionary<string, ConstantStringValue> _strings = new Dictionary<string, ConstantStringValue>(StringComparer.Ordinal);
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (6)
67Dictionary<string, DstT> Visit<SrcT, DstT>(SrcT src, IEnumerable<KeyValuePair<string, DstT>> dst) 157private Dictionary<MetadataRecord, MetadataRecord> _recordPool = new Dictionary<MetadataRecord, MetadataRecord>(); 206public Dictionary<string, DstT> Visit<SrcT, DstT>(SrcT src, IEnumerable<KeyValuePair<string, DstT>> dst) 210var res = new Dictionary<string, DstT>(); 433public Dictionary<string, DstT> Visit<SrcT, DstT>(SrcT src, IEnumerable<KeyValuePair<string, DstT>> dst) where SrcT : MetadataRecord where DstT : MetadataRecord 437return dst as Dictionary<string, DstT>;
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (2)
53internal Dictionary<Vertex, Vertex> _placedMap = new Dictionary<Vertex, Vertex>(); 110private Dictionary<Vertex, Vertex> _unifier = new Dictionary<Vertex, Vertex>();
ILCompiler.ReadyToRun (170)
Compiler\CallChainProfile.cs (18)
43private readonly Dictionary<MethodDesc, Dictionary<MethodDesc, int>> _resolvedProfileData; 49private Dictionary<string, int> _resolveFails = new Dictionary<string, int>(); 57var analysisData = ReadCallChainAnalysisData(callChainProfileFile); 64private Dictionary<MethodDesc, Dictionary<MethodDesc, int>> ResolveMethods(Dictionary<string, Dictionary<string, int>> profileData, CompilerTypeSystemContext context) 66var resolvedProfileData = new Dictionary<MethodDesc, Dictionary<MethodDesc, int>>(); 67Dictionary<string, MethodDesc> nameToMethodDescMap = new Dictionary<string, MethodDesc>(); 100private MethodDesc CachedResolveMethodName(Dictionary<string, MethodDesc> nameToMethodDescMap, string methodName, CompilerTypeSystemContext context) 245private Dictionary<string, Dictionary<string, int>> ReadCallChainAnalysisData(string jsonProfileFile) 247Dictionary<string, Dictionary<string, int>> profileData = new Dictionary<string, Dictionary<string, int>>(); 325public IReadOnlyDictionary<MethodDesc, Dictionary<MethodDesc, int>> ResolvedProfileData => _resolvedProfileData;
Compiler\DependencyAnalysis\ReadyToRun\CopiedMethodILDeduplicator.cs (3)
14private Dictionary<ISymbolNode, ISymbolNode> _cachedMapping; 21public void DeduplicatePass(NodeFactory factory, Dictionary<ISymbolNode, ISymbolNode> previousSymbolRemapping, Dictionary<ISymbolNode, ISymbolNode> symbolRemapping)
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (1)
83Dictionary<byte[], BlobVertex> blobCache = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance);
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (1)
63Dictionary<MethodDesc, HashSet<MethodDesc>> inlineeToInliners = new Dictionary<MethodDesc, HashSet<MethodDesc>>();
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (2)
103Dictionary<byte[], BlobVertex> uniqueFixups = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance); 104Dictionary<byte[], BlobVertex> uniqueSignatures = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance);
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (3)
63Dictionary<TypeSystemEntityOrUnknown, int> _typeConversions = new Dictionary<TypeSystemEntityOrUnknown, int>(); 64Dictionary<TypeSystemEntityOrUnknown, int> _methodConversions = new Dictionary<TypeSystemEntityOrUnknown, int>(); 249Dictionary<byte[], BlobVertex> uniqueInstrumentationData = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance);
Compiler\DependencyAnalysis\ReadyToRun\ManifestMetadataTableNode.cs (2)
37private readonly Dictionary<string, int> _assemblyRefToModuleIdMap; 43private readonly Dictionary<int, AssemblyNameInfo> _moduleIdToAssemblyNameMap;
Compiler\DependencyAnalysis\ReadyToRun\MethodEntryPointTableNode.cs (1)
77Dictionary<byte[], BlobVertex> uniqueFixups = new Dictionary<byte[], BlobVertex>(ByteArrayComparer.Instance);
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (3)
18private Dictionary<MethodWithGCInfo, int> _insertedMethodNodes; 19private Dictionary<(MethodWithGCInfo method, int funcletIdx), uint> _methodToVirtualIP; 86Dictionary<(MethodWithGCInfo method, int funcletIdx), uint> methodToVirtualIP = new ();
Compiler\FileLayoutOptimizer.cs (5)
209var nameMap = new Dictionary<string, MethodWithGCInfo>(methods.Count); 210var order = new Dictionary<MethodWithGCInfo, int>(methods.Count); 283Dictionary<MethodDesc, MethodWithGCInfo> methodMap = new Dictionary<MethodDesc, MethodWithGCInfo>(); 290foreach (KeyValuePair<MethodDesc, Dictionary<MethodDesc, int>> methodProfile in _profileData.CallChainProfile.ResolvedProfileData.Where(kvp => methodMap.ContainsKey(kvp.Key))) 329var mdToIndex = new Dictionary<MethodDesc, int>();
Compiler\PettisHansenSort\CallGraphNode.cs (1)
16public Dictionary<CallGraphNode, long> OutgoingEdges { get; } = new Dictionary<CallGraphNode, long>();
Compiler\PettisHansenSort\PettisHansen.cs (2)
21var phEdges = new Dictionary<int, long>[graph.Count]; 27var dict = new Dictionary<int, long>(node.OutgoingEdges.Count);
Compiler\ProfileData.cs (4)
37public MethodProfileData(MethodDesc method, MethodProfilingDataFlags flags, double exclusiveWeight, Dictionary<MethodDesc, int> callWeights, uint scenarioMask, PgoSchemaElem[] schemaData) 53public readonly Dictionary<MethodDesc, int> CallWeights; 65public static void MergeProfileData(Dictionary<MethodDesc, MethodProfileData> mergedProfileData, ProfileData profileData) 74var mergedCallWeights = data.CallWeights;
Compiler\ProfileDataManager.cs (6)
322private readonly Dictionary<MethodDesc, MethodProfileData> _profileData = new(); 323private readonly Dictionary<ModuleDesc, HashSet<MethodDesc>> _placedProfileMethods = new(); 412private readonly Dictionary<MethodSignature, List<MethodDesc>> _delegateTargets; 413private readonly Dictionary<TypeDesc, List<TypeDesc>> _implementers; 417Dictionary<MethodSignature, HashSet<MethodDesc>> delegateTargets = new(); 418Dictionary<TypeDesc, HashSet<TypeDesc>> implementers = new();
Compiler\ReadyToRunCompilationModuleGroupBase.cs (3)
42private Dictionary<TypeDesc, ModuleToken> _typeRefsInCompilationModuleSet; 62private readonly Dictionary<ModuleDesc, CompilationUnitIndex> _moduleCompilationUnits = new Dictionary<ModuleDesc, CompilationUnitIndex>(); 728var typeRefsInCompilationModuleSet = new Dictionary<TypeDesc, ModuleToken>();
Compiler\ReadyToRunStandaloneMethodMetadata.cs (2)
68Dictionary<int, int> _alternateNonTokenStrings = new Dictionary<int, int>(); 217Dictionary<TypeDesc, EntityHandle> _alternateTypeRefTokens = new Dictionary<TypeDesc, EntityHandle>();
Compiler\ReadyToRunTableManager.cs (1)
53private Dictionary<EcmaModule, PerModuleMethodsGenerated> _methodsGenerated = new Dictionary<EcmaModule, PerModuleMethodsGenerated>();
IBC\IBCDataModel.cs (1)
295public Dictionary<SectionFormat, List<TokenData>> Tokens { get; private set; }
IBC\IBCDataReader.cs (5)
16private Dictionary<byte, uint> seenFlags = new Dictionary<byte, uint>(); 208Dictionary<SectionFormat, SectionInfo> ReadSectionTable(out long highestValidOffset) 211var result = new Dictionary<SectionFormat, SectionInfo>(); 639private void IfPresent(Dictionary<SectionFormat, SectionInfo> sectionTable, SectionFormat section, Action f) 659var sectionTable = ReadSectionTable(out highestValidOffset);
IBC\IBCProfileData.cs (2)
30public static MibcConfig FromKeyValueMap(Dictionary<string, string> kvMap) 60private readonly Dictionary<MethodDesc, MethodProfileData> _methodData = new Dictionary<MethodDesc, MethodProfileData>();
IBC\IBCProfileParser.cs (7)
48Dictionary<IBCBlobKey, BlobEntry> blobs = GetIBCBlobs(parsedData.BlobStream, out HashSet<uint> ignoredIbcMethodSpecTokens); 192private static Dictionary<IBCBlobKey, BlobEntry> GetIBCBlobs(List<BlobEntry> inputBlobs, out HashSet<uint> ignoredIbcMethodSpecTokens) 194Dictionary<IBCBlobKey, BlobEntry> blobs = new Dictionary<IBCBlobKey, BlobEntry>(); 297private uint LookupIbcTypeToken(ref EcmaModule externalModule, uint ibcToken, Dictionary<IBCBlobKey, BlobEntry> blobs) 396private uint LookupIbcMethodToken(MetadataType methodMetadataType, uint ibcToken, Dictionary<IBCBlobKey, BlobEntry> blobs) 447public IBCModule(EcmaModule ecmaModule, Dictionary<IBCBlobKey, BlobEntry> blobs) 454public readonly Dictionary<IBCBlobKey, BlobEntry> Blobs;
IBC\MIbcProfileParser.cs (2)
292Dictionary<string, string> keyValue = new(); 371Dictionary<MethodDesc, int> weights = null;
IL\ReadyToRunILProvider.cs (1)
141private Dictionary<MethodDesc, MethodIL> _manifestModuleWrappedMethods = new Dictionary<MethodDesc, MethodIL>();
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
489private Dictionary<TypeDesc, bool> _preInitedTypes = new Dictionary<TypeDesc, bool>();
ObjectWriter\MapFileBuilder.cs (1)
120Dictionary<Utf8String, int> statsNameIndex = new Dictionary<Utf8String, int>();
ObjectWriter\ProfileFileBuilder.cs (2)
60private Dictionary<MethodDesc, ISymbolDefinitionNode> _symbolMethodMap; 153foreach (KeyValuePair<MethodDesc, Dictionary<MethodDesc, int>> kvpCallerCalleeCount in _callChainProfile.ResolvedProfileData)
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\PEReaderExtensions.cs (2)
22private readonly Dictionary<string, int> _namedExportRva; 23private readonly Dictionary<int, int> _ordinalRva;
src\runtime\src\coreclr\tools\Common\Compiler\CompilerTypeSystemContext.Wasm.cs (3)
16private readonly Dictionary<int, TypeDesc> _structsBySize = new Dictionary<int, TypeDesc>(); 17private readonly Dictionary<int, TypeDesc> _alignedStructsBySize = new Dictionary<int, TypeDesc>(); 18private readonly Dictionary<int, TypeDesc> _returnStructsBySize = new Dictionary<int, TypeDesc>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\Graph.Vertex.cs (1)
115private Dictionary<P, Vertex> _vertexMap = new Dictionary<P, Vertex>();
src\runtime\src\coreclr\tools\Common\Compiler\InstructionSetSupport.cs (12)
176private static Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>> s_instructionSetSupport = ComputeInstructionSetSupport(); 177private static Dictionary<TargetArchitecture, InstructionSetFlags> s_nonSpecifiableInstructionSets = ComputeNonSpecifiableInstructionSetSupport(); 179private static Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>> ComputeInstructionSetSupport() 181var supportMatrix = new Dictionary<TargetArchitecture, Dictionary<string, InstructionSet>>(); 190private static Dictionary<TargetArchitecture, InstructionSetFlags> ComputeNonSpecifiableInstructionSetSupport() 192var matrix = new Dictionary<TargetArchitecture, InstructionSetFlags>(); 201private static Dictionary<string, InstructionSet> ComputeInstructSetSupportForArch(TargetArchitecture architecture) 203var support = new Dictionary<string, InstructionSet>(); 323Dictionary<string, InstructionSet> instructionSetConversion = s_instructionSetSupport[_architecture];
src\runtime\src\coreclr\tools\Common\Compiler\NativeAotNameMangler.cs (6)
131private Dictionary<TypeDesc, Utf8String> _mangledTypeNames = new Dictionary<TypeDesc, Utf8String>(); 132private Dictionary<string, Utf8String> _mangledAssemblyNames = new Dictionary<string, Utf8String>(StringComparer.OrdinalIgnoreCase); 467private Dictionary<MethodDesc, Utf8String> _mangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 468private Dictionary<MethodDesc, Utf8String> _unqualifiedMangledMethodNames = new Dictionary<MethodDesc, Utf8String>(); 626private Dictionary<FieldDesc, Utf8String> _mangledFieldNames = new Dictionary<FieldDesc, Utf8String>(); 684private Dictionary<string, Utf8String> _mangledStringLiterals = new Dictionary<string, Utf8String>();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectDataInterner.cs (7)
21void DeduplicatePass(NodeFactory factory, Dictionary<ISymbolNode, ISymbolNode> previousSymbolRemapping, Dictionary<ISymbolNode, ISymbolNode> symbolRemapping); 27private Dictionary<ISymbolNode, ISymbolNode> _symbolRemapping; 43Dictionary<ISymbolNode, ISymbolNode> previousSymbolRemapping; 44Dictionary<ISymbolNode, ISymbolNode> symbolRemapping = null; 60private static bool MappingsEqual(Dictionary<ISymbolNode, ISymbolNode> a, Dictionary<ISymbolNode, ISymbolNode> b)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\CoffObjectWriter.cs (2)
57private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 58private readonly Dictionary<int, CoffSectionSymbol> _sectionNumberToComdatAuxRecord = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ElfObjectWriter.cs (2)
47private readonly Dictionary<Utf8String, ElfSectionDefinition> _comdatNameToElfSection = new(); 50private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\MachObjectWriter.cs (2)
66private readonly Dictionary<Utf8String, uint> _symbolNameToIndex = new(); 69private readonly Dictionary<Utf8String, (Utf8String StartNode, Utf8String EndNode, int Size)> _rangeSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\ObjectWriter.cs (3)
38private readonly Dictionary<ISymbolNode, Utf8String> _mangledNameMap = new(); 43private readonly Dictionary<string, int> _sectionNameToSectionIndex = new(StringComparer.Ordinal); 49private readonly Dictionary<Utf8String, SymbolDefinition> _definedSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (3)
129private readonly Dictionary<ISymbolDefinitionNode, OutputNode> _nodeSymbolMap = []; 130private readonly Dictionary<ISymbolDefinitionNode, IMethodNode> _methodSymbolMap = []; 132private readonly Dictionary<RelocType, int> _relocCounts = [];
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (3)
73private Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = []; 79private Dictionary<Utf8String, SymbolDefinition> _definedSymbols = []; 82private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\StringTableBuilder.cs (1)
19private Dictionary<Utf8String, uint> _stringToOffset = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\Wasm\WasmSections.cs (1)
13private readonly Dictionary<string, int> _sectionNameToIndex = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (3)
24private readonly Dictionary<ObjectNodeSection, WasmSectionType> _sectionToType = new() 56private protected readonly Dictionary<string, WasmGlobal> _definedGlobals = new(); 63private protected Dictionary<Utf8String, SymbolDefinition> _definedSymbols;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmSymbolManager.cs (1)
58private readonly Dictionary<Utf8String, Entry> _entries = new();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (2)
58private Dictionary<SortableDependencyNode.ObjectNodeOrder, Utf8String> _wellKnownSymbols = new(); 457Dictionary<int, List<SymbolicRelocation>> _resolvableRelocations = new();
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (4)
98private readonly Dictionary<TypeDesc, TypeDesc> _associatedTypeMap = []; 99private readonly Dictionary<string, (TypeDesc type, TypeDesc trimmingTarget)> _externalTypeMap = []; 260Dictionary<TypeDesc, Map> typeMapStates = []; 264Dictionary<(EcmaAssembly assembly, TypeDesc typeMapGroup), (TypeDesc scannedDuringGroup, Map map)> pendingMaps = [];
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.cs (2)
53internal Dictionary<Vertex, Vertex> _placedMap = new Dictionary<Vertex, Vertex>(); 110private Dictionary<Vertex, Vertex> _unifier = new Dictionary<Vertex, Vertex>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (11)
78private Dictionary<MethodDesc, PgoInstrumentationResults> _pgoResults = new Dictionary<MethodDesc, PgoInstrumentationResults>(); 237Dictionary<object, IntPtr> objectToHandle = new Dictionary<object, IntPtr>(); 238Dictionary<IntPtr, object> handleToObject = new Dictionary<IntPtr, object>(); 277private static PgoSchemaElem? ComputeLikelyClassMethod(int index, Dictionary<IntPtr, object> handleToObject, PgoInstrumentationSchema[] nativeSchema, byte[] instrumentationData, CompilationModuleGroup compilationModuleGroup) 663private Dictionary<object, GCHandle> _pins = new Dictionary<object, GCHandle>(); 753private Dictionary<object, IntPtr> _objectToHandle = new Dictionary<object, IntPtr>(new JitObjectComparer()); 754private Dictionary<MethodDesc, IntPtr> _methodILScopeToHandle = new Dictionary<MethodDesc, IntPtr>(new JitObjectComparer()); 861private Dictionary<Instantiation, IntPtr[]> _instantiationToJitVisibleInstantiation; 2464private Dictionary<DefType, bool> _doubleAlignHeuristicCache = new Dictionary<DefType, bool>(); 2631private Dictionary<TypeDesc, uint> _classNumInstanceFields = new(); 4094private Dictionary<CorInfoHelpFunc, ISymbolNode> _helperCache = new Dictionary<CorInfoHelpFunc, ISymbolNode>();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoInstructionSet.cs (1)
1105private static Dictionary<(string, TargetArchitecture), string> AllInstructionSetGroups { get; } = new()
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
45private Dictionary<string, string> _config = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (2)
545Dictionary<PgoSchemaElem, PgoSchemaElem> dataMerger = new Dictionary<PgoSchemaElem, PgoSchemaElem>(PgoSchemaMergeComparer.Singleton); 575static void MergeInSchemaElem(Dictionary<PgoSchemaElem, PgoSchemaElem> dataMerger, PgoSchemaElem schema)
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (5)
23private Dictionary<string, AssemblyReferenceHandle> _assemblyRefNameHandles = new Dictionary<string, AssemblyReferenceHandle>(); 24private Dictionary<IAssemblyDesc, AssemblyReferenceHandle> _assemblyRefs = new Dictionary<IAssemblyDesc, AssemblyReferenceHandle>(); 25private Dictionary<TypeDesc, EntityHandle> _typeRefs = new Dictionary<TypeDesc, EntityHandle>(); 26private Dictionary<MethodDesc, EntityHandle> _methodRefs = new Dictionary<MethodDesc, EntityHandle>(); 27private Dictionary<FieldDesc, EntityHandle> _fieldRefs = new Dictionary<FieldDesc, EntityHandle>();
TypeSystem\Mutable\MutableModule.cs (9)
23Dictionary<ModuleDesc, EntityHandle> _moduleRefs = new Dictionary<ModuleDesc, EntityHandle>(); 92static ConditionalWeakTable<ModuleDesc, Dictionary<MetadataType, string>> s_assemblyNameFromTypeLookups = new ConditionalWeakTable<ModuleDesc, Dictionary<MetadataType, string>>(); 94static Dictionary<MetadataType, string> ComputeTypeLookupTable(ModuleDesc module) 96Dictionary<MetadataType, string> result = new Dictionary<MetadataType, string>(); 129if (!s_assemblyNameFromTypeLookups.TryGetValue(module, out var lookupTable)) 160public Dictionary<int, object> Entities = new Dictionary<int, object>(); 161public Dictionary<object, int> ExistingEntities = new Dictionary<object, int>(); 322private Dictionary<ModuleDesc, string> _moduleToModuleRefString = new Dictionary<ModuleDesc, string>();
ILCompiler.RyuJit (28)
Compiler\ProfileDataManager.cs (1)
14private readonly Dictionary<MethodDesc, MethodProfileData> _mergedProfileData = new Dictionary<MethodDesc, MethodProfileData>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (3)
209var nameMap = new Dictionary<string, MethodWithGCInfo>(methods.Count); 210var order = new Dictionary<MethodWithGCInfo, int>(methods.Count); 329var mdToIndex = new Dictionary<MethodDesc, int>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\CallGraphNode.cs (1)
16public Dictionary<CallGraphNode, long> OutgoingEdges { get; } = new Dictionary<CallGraphNode, long>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\PettisHansen.cs (2)
21var phEdges = new Dictionary<int, long>[graph.Count]; 27var dict = new Dictionary<int, long>(node.OutgoingEdges.Count);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ProfileData.cs (4)
37public MethodProfileData(MethodDesc method, MethodProfilingDataFlags flags, double exclusiveWeight, Dictionary<MethodDesc, int> callWeights, uint scenarioMask, PgoSchemaElem[] schemaData) 53public readonly Dictionary<MethodDesc, int> CallWeights; 65public static void MergeProfileData(Dictionary<MethodDesc, MethodProfileData> mergedProfileData, ProfileData profileData) 74var mergedCallWeights = data.CallWeights;
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCDataModel.cs (1)
295public Dictionary<SectionFormat, List<TokenData>> Tokens { get; private set; }
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCProfileData.cs (2)
30public static MibcConfig FromKeyValueMap(Dictionary<string, string> kvMap) 60private readonly Dictionary<MethodDesc, MethodProfileData> _methodData = new Dictionary<MethodDesc, MethodProfileData>();
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\MIbcProfileParser.cs (2)
292Dictionary<string, string> keyValue = new(); 371Dictionary<MethodDesc, int> weights = null;
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (11)
78private Dictionary<MethodDesc, PgoInstrumentationResults> _pgoResults = new Dictionary<MethodDesc, PgoInstrumentationResults>(); 237Dictionary<object, IntPtr> objectToHandle = new Dictionary<object, IntPtr>(); 238Dictionary<IntPtr, object> handleToObject = new Dictionary<IntPtr, object>(); 277private static PgoSchemaElem? ComputeLikelyClassMethod(int index, Dictionary<IntPtr, object> handleToObject, PgoInstrumentationSchema[] nativeSchema, byte[] instrumentationData, CompilationModuleGroup compilationModuleGroup) 663private Dictionary<object, GCHandle> _pins = new Dictionary<object, GCHandle>(); 753private Dictionary<object, IntPtr> _objectToHandle = new Dictionary<object, IntPtr>(new JitObjectComparer()); 754private Dictionary<MethodDesc, IntPtr> _methodILScopeToHandle = new Dictionary<MethodDesc, IntPtr>(new JitObjectComparer()); 861private Dictionary<Instantiation, IntPtr[]> _instantiationToJitVisibleInstantiation; 2464private Dictionary<DefType, bool> _doubleAlignHeuristicCache = new Dictionary<DefType, bool>(); 2631private Dictionary<TypeDesc, uint> _classNumInstanceFields = new(); 4094private Dictionary<CorInfoHelpFunc, ISymbolNode> _helperCache = new Dictionary<CorInfoHelpFunc, ISymbolNode>();
src\runtime\src\coreclr\tools\Common\JitInterface\JitConfigProvider.cs (1)
45private Dictionary<string, string> _config = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ILCompiler.TypeSystem (2)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\GCPointerMap.Algorithm.cs (1)
144Dictionary<MetadataType, int> offsets,
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\SymbolReader\PortablePdbSymbolReader.cs (1)
121private Dictionary<DocumentHandle, string> _urlCache;
illink (112)
ILLink.RoslynAnalyzer (23)
DataFlow\LocalDataFlowVisitor.cs (4)
634var savedTargetValues = new Dictionary<IOperation, TValue>(); 908Dictionary<IOperation, TValue> savedTargetValues, 963Dictionary<IOperation, TValue> savedTargetValues, 1134Dictionary<IOperation, TValue>? evaluatedTargetValues = null;
DataFlowAnalyzerContext.cs (3)
13private readonly Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> _enabledAnalyzers; 31Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> enabledAnalyzers, 42var enabledAnalyzers = new Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>>();
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (3)
24private Dictionary<TKey, TValue>? Dictionary; 29private DefaultValueDictionary(TValue defaultValue, Dictionary<TKey, TValue> dictionary) => (Dictionary, DefaultValue) = (dictionary, defaultValue); 101var dict = new Dictionary<TKey, TValue>();
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
33private readonly Dictionary<IControlFlowGraph<TBlock, TRegion>.ControlFlowBranch, TState> branchInput; 43private readonly Dictionary<TRegion, Box<TValue>> exceptionState; 51private readonly Dictionary<IControlFlowGraph<TBlock, TRegion>.ControlFlowBranch, TValue> exceptionFinallyState; 56private readonly Dictionary<TRegion, TValue> finallyInputState;
TrimAnalysis\ArrayValue.cs (1)
12public readonly Dictionary<int, MultiValue> IndexValues;
TrimAnalysis\DiagnosticContext.cs (1)
70Dictionary<string, string?>? DAMArgument = new Dictionary<string, string?>();
TrimAnalysis\TrimAnalysisPatternStore.cs (7)
15private readonly Dictionary<IOperation, TrimAnalysisAssignmentPattern> AssignmentPatterns; 16private readonly Dictionary<IOperation, TrimAnalysisFieldAccessPattern> FieldAccessPatterns; 17private readonly Dictionary<IOperation, TrimAnalysisBackingFieldAccessPattern> BackingFieldAccessPatterns; 18private readonly Dictionary<IOperation, TrimAnalysisGenericInstantiationPattern> GenericInstantiationPatterns; 19private readonly Dictionary<IOperation, TrimAnalysisMethodCallPattern> MethodCallPatterns; 20private readonly Dictionary<IOperation, TrimAnalysisReflectionAccessPattern> ReflectionAccessPatterns; 21private readonly Dictionary<IOperation, FeatureCheckReturnValuePattern> FeatureCheckReturnValuePatterns;
ILLink.Tasks (7)
CreateRuntimeRootDescriptorFile.cs (7)
94readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string>(); 95readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string>(); 96readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers>(); 97readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new(); 351foreach ((var fs, var members) in featureSwitchMembers.Select(kv => (kv.Key, kv.Value))) 465Dictionary<string, ClassMembers> currentFeatureSwitchMembers = featureSwitchMembers[featureSwitch.Value];
Infrastructure.Common (9)
artifacts\bin\Infrastructure.Common\Debug\_ServiceModel.TestProperties.Generated.cs (1)
40static partial void Initialize(Dictionary<string, string> properties)
ConditionalWcfTest.cs (1)
18private static Dictionary<string, bool> s_evaluatedConditions = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
JsonSerializer.cs (2)
30internal static Dictionary<string, string> DeserializeDictionary(string data) 32Dictionary<string, string> dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TestEventListener.cs (1)
15private Dictionary<string, bool> _targetSourceName = new Dictionary<string, bool>();
TestProperties.cs (4)
19private static Lazy<Dictionary<String, String>> s_properties = new Lazy<Dictionary<String, String>>(() => 21Dictionary<String, String> properties = new Dictionary<String, String>(StringComparer.OrdinalIgnoreCase); 27static partial void Initialize(Dictionary<string, string> properties);
Infrastructure.Tests (53)
Pipelines\NixCliPackageTests.cs (3)
12private static readonly Dictionary<string, string> s_expectedSystems = new(StringComparer.Ordinal) 140var hexByRid = new Dictionary<string, string>(StringComparer.Ordinal) 220private static async Task<CommandResult> RunBashAsync(string scriptPath, string[] arguments, Dictionary<string, string?> environment)
Pipelines\NpmCliPackageTests.cs (1)
719private static Dictionary<string, string> GetStringMap(JsonObject jsonObject)
PowerShellScripts\DownloadNativeArchivesTests.cs (4)
442private readonly Dictionary<string, byte[]> _artifactZips = new(); 444private readonly Dictionary<string, int> _flakyRemaining = new(StringComparer.Ordinal); 445private readonly Dictionary<string, int> _truncatedRemaining = new(StringComparer.Ordinal); 446private readonly Dictionary<string, int> _corruptRemaining = new(StringComparer.Ordinal);
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (3)
576var splitOutputs = ParseGitHubOutputFile(githubOutputFile); 644private static Dictionary<string, GitHubActionsMatrix> ParseGitHubOutputFile(string path) 646var results = new Dictionary<string, GitHubActionsMatrix>();
PowerShellScripts\PowerShellCommand.cs (1)
24public Dictionary<string, string> Environment { get; } = new();
PowerShellScripts\SplitTestMatrixByDepsTests.cs (14)
43var outputs = ParseGitHubOutputFile(); 61var outputs = ParseGitHubOutputFile(); 81var outputs = ParseGitHubOutputFile(); 102var outputs = ParseGitHubOutputFile(); 119var outputs = ParseGitHubOutputFile(); 137var outputs = ParseGitHubOutputFile(); 155var outputs = ParseGitHubOutputFile(); 170var outputs = ParseGitHubOutputFile(); 190var outputs = ParseGitHubOutputFile(); 213var outputs = ParseGitHubOutputFile(); 289var convertedEntries = new List<Dictionary<string, object>>(); 292var dict = new Dictionary<string, object>(); 305private Dictionary<string, GitHubActionsMatrix> ParseGitHubOutputFile() 307var results = new Dictionary<string, GitHubActionsMatrix>();
Shared\TestDataBuilder.cs (7)
35Dictionary<string, string>? runners = null) 81Dictionary<string, string>? runners = null) 197Dictionary<string, string>? runners = null) 244public Dictionary<string, bool> Properties { get; set; } = new(); 253public Dictionary<string, string>? Runners { get; set; } 308public Dictionary<string, bool> Properties { get; set; } = new(); 317public Dictionary<string, string>? Runners { get; set; }
TestTriggerMap\SelectTestsAcceptanceTests.cs (1)
504var paths = new Dictionary<string, AffectedPath>(StringComparer.Ordinal)
TestTriggerMap\SelectTestsCliTests.cs (2)
1074var map = new Dictionary<string, string>(StringComparer.Ordinal); 1093foreach (var (name, value) in JsonSerializer.Deserialize<Dictionary<string, bool>>(selectionJson)!)
TestTriggerMap\SelectTestsLayer1IntegrationTests.cs (1)
357var map = new Dictionary<string, string>(StringComparer.Ordinal);
TestTriggerMap\TestTriggerMapModel.cs (1)
20public Dictionary<string, List<string>> Groups { get; set; } = new();
TestTriggerMap\TestTriggerMapTests.cs (1)
276var expected = new Dictionary<string, Func<bool>>(StringComparer.Ordinal)
tools\GenerateCITimeline\GitHubApi.cs (1)
87var merged = new Dictionary<string, List<string>>();
tools\GenerateCITimeline\TimelineRenderer.cs (6)
57private static readonly Dictionary<string, string> s_statusIcon = new() 65private static readonly Dictionary<string, string> s_runnerEmoji = new() 222var groups = new Dictionary<string, JobGroup>(); 279var conclusions = allJobs.GroupBy(j => j.Conclusion).ToDictionary(g => g.Key, g => g.Count()); 280var runnerLabels = allJobs.SelectMany(j => j.Labels).GroupBy(l => l).ToDictionary(g => g.Key, g => g.Count()); 401var phaseJobs = new Dictionary<string, List<JobInfo>>();
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (6)
881Dictionary<string, string[]> expectations = new() 2192Dictionary<string, string>? jobLogTextByJobId = string.IsNullOrEmpty(jobLogText) 2204Dictionary<string, string> annotationTextByJobId, 2205Dictionary<string, string>? jobLogTextByJobId = null, 2272public Dictionary<string, string> AnnotationTextByJobId { get; init; } = []; 2273public Dictionary<string, string>? JobLogTextByJobId { get; init; }
WorkflowScripts\NodeCommand.cs (1)
29public Dictionary<string, string> Environment { get; } = [];
installer.tasks (1)
GenerateFileVersionProps.cs (1)
44var fileVersions = new Dictionary<string, FileVersionData>(StringComparer.OrdinalIgnoreCase);
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
TestCommand.cs (1)
24public Dictionary<string, string> EnvironmentVariables = [];
Microsoft.Analyzers.Extra (12)
Arrays.cs (1)
31private static readonly Dictionary<string, string[]> _collectionFactories = new()
CallAnalyzer.Registrar.cs (4)
52var dict = new Dictionary<string, string[]> 66public void RegisterMethods(Dictionary<string, string[]> methods, Action<OperationAnalysisContext, IInvocationOperation> action) 144public void RegisterProperties(Dictionary<string, string[]> props, Action<OperationAnalysisContext, IPropertyReferenceOperation> action) 200public void RegisterInterfaceMethods(Dictionary<string, string[]> methods, Action<OperationAnalysisContext, IInvocationOperation> action)
CallAnalyzer.State.cs (5)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default);
StaticTime.cs (2)
16private static readonly Dictionary<string, string[]> _timeMethods = new() 29private static readonly Dictionary<string, string[]> _timeProperties = new()
Microsoft.Analyzers.Local (11)
AssemblyAnalysis.cs (2)
17public Dictionary<ISymbol, List<string>> MissingConstraints { get; } = new(SymbolEqualityComparer.Default); 18public Dictionary<ISymbol, List<string>> MissingBaseTypes { get; } = new(SymbolEqualityComparer.Default);
CallAnalyzer.Registrar.cs (4)
52var dict = new Dictionary<string, string[]> 66public void RegisterMethods(Dictionary<string, string[]> methods, Action<OperationAnalysisContext, IInvocationOperation> action) 144public void RegisterProperties(Dictionary<string, string[]> props, Action<OperationAnalysisContext, IPropertyReferenceOperation> action) 200public void RegisterInterfaceMethods(Dictionary<string, string[]> methods, Action<OperationAnalysisContext, IInvocationOperation> action)
CallAnalyzer.State.cs (5)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default);
Microsoft.AspNetCore.Analyzers (1)
StartupAnalysisBuilder.cs (1)
12private readonly Dictionary<INamedTypeSymbol, List<object>> _analysesByType;
Microsoft.AspNetCore.App.Analyzers (2)
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
77internal static readonly Dictionary<string, string> PropertyMapping = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentOptions.cs (1)
24private static readonly Dictionary<string, TOptions> s_nameToOption =
Microsoft.AspNetCore.App.CodeFixes (3)
Dependencies\AddPackageFixer.cs (1)
44var wellKnownExtensionMethodCache = ExtensionMethodsCache.ConstructFromWellKnownTypes(wellKnownTypes);
Dependencies\ExtensionMethodsCache.cs (1)
10public static Dictionary<ThisAndExtensionMethod, PackageSourceAndNamespace> ConstructFromWellKnownTypes(WellKnownTypes wellKnownTypes)
Dependencies\ExtensionMethodsCompletionProvider.cs (1)
54var wellKnownExtensionMethodCache = ExtensionMethodsCache.ConstructFromWellKnownTypes(wellKnownTypes);
Microsoft.AspNetCore.Authentication (1)
PropertiesSerializer.cs (1)
71var extra = new Dictionary<string, string?>(count);
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationHandlerProvider.cs (1)
29private readonly Dictionary<string, IAuthenticationHandler> _handlerMap = new Dictionary<string, IAuthenticationHandler>(StringComparer.Ordinal);
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
72var queryStrings = QueryHelpers.ParseQuery(new Uri(base.BuildChallengeUrl(properties, redirectUri)).Query);
Microsoft.AspNetCore.Authentication.MicrosoftAccount (3)
MicrosoftAccountHandler.cs (3)
64var queryStrings = new Dictionary<string, string> 102Dictionary<string, string> queryStrings, 129Dictionary<string, string> queryStrings,
Microsoft.AspNetCore.Authentication.OAuth (2)
OAuthHandler.cs (2)
200var tokenRequestParameters = new Dictionary<string, string>() 305var parameters = new Dictionary<string, string>
Microsoft.AspNetCore.Authentication.Twitter (4)
TwitterHandler.cs (4)
184private async Task<HttpResponseMessage> ExecuteRequestAsync(string url, HttpMethod httpMethod, RequestToken? accessToken = null, Dictionary<string, string>? extraOAuthPairs = null, Dictionary<string, string>? queryParameters = null, Dictionary<string, string>? formData = null) 299var formPost = new Dictionary<string, string> { { "oauth_verifier", verifier } };
Microsoft.AspNetCore.Authorization (1)
AuthorizationOptions.cs (1)
18private Dictionary<string, Task<AuthorizationPolicy?>> PolicyMap { get; } = new Dictionary<string, Task<AuthorizationPolicy?>>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components (48)
CascadingParameterValueProvider.cs (1)
12private readonly Dictionary<ComponentSubscriptionKey, CascadingParameterSubscription> _subscriptions = new();
NavigationManagerExtensions.cs (4)
26private static readonly Dictionary<Type, QueryParameterFormatter<object>> _queryParameterFormatters = new() 575var parameterSources = CreateParameterSourceDictionary(parameters); 703private static Dictionary<ReadOnlyMemory<char>, QueryParameterSource> CreateParameterSourceDictionary( 706var parameterSources = new Dictionary<ReadOnlyMemory<char>, QueryParameterSource>(QueryParameterNameComparer.Instance);
ParameterAttribute.cs (1)
29/// such as <see cref="Dictionary{String, Object}"/>.
ParameterView.cs (1)
108var result = new Dictionary<string, object?>();
PersistentState\ComponentStatePersistenceManager.cs (1)
21private readonly Dictionary<string, byte[]> _currentState = new(StringComparer.Ordinal);
PersistentState\PersistentServicesRegistry.cs (1)
180private readonly Dictionary<string, (PropertySetter, PropertyGetter, RestoreOptions)> _underlyingAccessors;
PersistentState\PersistentStateValueProvider.cs (2)
12private readonly Dictionary<ComponentSubscriptionKey, PersistentValueProviderComponentSubscription> _subscriptions = []; 16internal Dictionary<ComponentSubscriptionKey, PersistentValueProviderComponentSubscription> Subscriptions => _subscriptions;
Reflection\ComponentProperties.cs (4)
102Dictionary<string, object>? unmatched = null; 248private static void ThrowForCaptureUnmatchedValuesConflict(Type targetType, string parameterName, Dictionary<string, object> unmatched) 289private readonly Dictionary<string, PropertySetter> _underlyingWriters; 361if (!propertyInfo.PropertyType.IsAssignableFrom(typeof(Dictionary<string, object>)))
Reflection\MemberAssignment.cs (1)
17var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
Rendering\RenderBatchBuilder.cs (3)
36public Dictionary<string, int> AttributeDiffSet { get; } = new Dictionary<string, int>(); 40internal StackObjectPool<Dictionary<object, KeyedItemInfo>> KeyedItemInfoDictionaryPool { get; } 41= new StackObjectPool<Dictionary<object, KeyedItemInfo>>(maxPreservedItems: 10, () => new Dictionary<object, KeyedItemInfo>());
Rendering\RenderTreeBuilder.cs (3)
33private Dictionary<string, int>? _seenAttributeNames; 842var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance)); 914var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance));
RenderTree\Renderer.cs (5)
35private readonly Dictionary<int, ComponentState> _componentStateById = new Dictionary<int, ComponentState>(); 36private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>(); 38private readonly Dictionary<ulong, (int RenderedByComponentId, EventCallback Callback, string? attributeName)> _eventBindings = new(); 39private readonly Dictionary<ulong, ulong> _eventHandlerIdReplacements = new Dictionary<ulong, ulong>(); 49private Dictionary<int, ParameterView>? _rootComponentsLatestParameters;
RenderTree\RenderTreeDiffBuilder.cs (5)
66Dictionary<object, KeyedItemInfo> keyedItemInfos = null; 325private static Dictionary<object, KeyedItemInfo> BuildKeyToInfoLookup(DiffContext diffContext, int oldStartIndex, int oldEndIndexExcl, int newStartIndex, int newEndIndexExcl) 327var result = diffContext.KeyedItemInfoDictionaryPool.Get(); 1091public readonly Dictionary<string, int> AttributeDiffSet; 1092public readonly StackObjectPool<Dictionary<object, KeyedItemInfo>> KeyedItemInfoDictionaryPool;
ResourceAssetCollection.cs (1)
29var mappings = new Dictionary<string, ResourceAsset>(StringComparer.OrdinalIgnoreCase);
Routing\RouteTableFactory.cs (2)
88var templatesByHandler = new Dictionary<Type, string[]>(); 116internal static RouteTable Create(Dictionary<Type, string[]> templatesByHandler, IServiceProvider serviceProvider)
Sections\SectionRegistry.cs (2)
10private readonly Dictionary<object, SectionOutlet> _subscribersByIdentifier = new(); 11private readonly Dictionary<object, List<SectionContent>> _providersByIdentifier = new();
src\aspnetcore\src\Components\Shared\src\QueryParameterValueSupplier.cs (1)
12private readonly Dictionary<ReadOnlyMemory<char>, StringSegmentAccumulator> _queryParameterValuesByName = new(QueryParameterNameComparer.Instance);
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
443Dictionary<string, List<RoutePatternParameterPolicyReference>>? parameterPolicyReferences, 458Dictionary<string, object?>? updatedDefaults = null;
src\aspnetcore\src\Http\Routing\src\RouteConstraintBuilder.cs (2)
27private readonly Dictionary<string, List<IRouteConstraint>> _constraints; 54var constraints = new Dictionary<string, IRouteConstraint>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Http\Routing\src\RouteOptions.cs (2)
104var defaults = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase); 173private static void AddConstraint<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConstraint>(Dictionary<string, Type> constraintMap, string text) where TConstraint : IRouteConstraint
src\aspnetcore\src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
src\aspnetcore\src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
55public Dictionary<string, UrlMatchingNode> Literals { get; }
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (2)
29private readonly Dictionary<string, CategoryLink> _store; 35: (Dictionary<string, CategoryLink>)GetActivityLinksStore(instance);
Microsoft.AspNetCore.Components.AI (2)
Components\ChatPage.cs (1)
66public Dictionary<string, object>? AdditionalAttributes { get; set; }
Pipeline\UIAgentOptions.cs (1)
28internal Dictionary<string, AIFunction> UIActions { get; } =
Microsoft.AspNetCore.Components.AI.SourceGenerators (4)
DiagnosticDescriptors.cs (1)
91private static readonly Dictionary<string, DiagnosticDescriptor> s_byId = new()
ToolBlockEmitter.cs (1)
185var seen = new Dictionary<string, ToolBlockCandidate>();
ToolBlockParser.cs (2)
116var seenKeys = new Dictionary<string, string>(); 160var seenResultKeys = new Dictionary<string, string>();
Microsoft.AspNetCore.Components.Analyzers (7)
ForLoopIteratorInClosureAnalyzer.cs (4)
29var availableTypes = new Dictionary<string, INamedTypeSymbol?>() 71private static bool IsImplementationOfBuildRenderTree(IMethodSymbol methodSymbol, Dictionary<string, INamedTypeSymbol?> availableTypes) 89private static void AnalyzeOperationsTree(IOperation operation, Dictionary<string, INamedTypeSymbol?> availableTypes, ForLoopAnalyzerState analyzerState) 155private static void AnalyzeInvocation(IInvocationOperation invocation, Dictionary<string, INamedTypeSymbol?> availableTypes, ForLoopAnalyzerState analyzerState)
StateHasChangedAnalyzer.cs (3)
98var expressionBodyCallLocations = new Dictionary<int, Location>(); 117var callLocations = new Dictionary<int, Location>(); 204private static void AddCallLocation(Dictionary<int, Location> callLocations, InvocationExpressionSyntax stateCall)
Microsoft.AspNetCore.Components.Endpoints (67)
_generated\56\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>>? _DictionaryStringByteArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> DictionaryStringByteArray 22get => _DictionaryStringByteArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, byte[]>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> Create_DictionaryStringByteArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, byte[]>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, byte[]>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, byte[]>, string, byte[]>(options, info); 47private void DictionaryStringByteArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, byte[]>? value)
_generated\59\PrerenderComponentApplicationStoreSerializerContext.GetJsonTypeInfo.g.cs (1)
26if (type == typeof(global::System.Collections.Generic.Dictionary<string, byte[]>))
Assets\ImportMapDefinition.cs (4)
20private Dictionary<string, string>? _imports; 21private Dictionary<string, IReadOnlyDictionary<string, string>>? _scopes; 22private Dictionary<string, string>? _integrity; 141((Dictionary<string, string>)importMap._scopes[key])[scopeKey] = scopeValue;
Builder\ResourcePreloadCollection.cs (1)
10private readonly Dictionary<string, List<PreloadAsset>> _storage = new();
CacheView\CacheViewService.cs (3)
94var resolutions = GetInFlightResolutions(httpContext); 360private static Dictionary<string, (CacheView Owner, Task<SerializedRenderFragment?> Task)> GetInFlightResolutions(HttpContext httpContext) 362if (httpContext.Items[_inFlightResolutionsItemKey] is not Dictionary<string, (CacheView Owner, Task<SerializedRenderFragment?> Task)> resolutions)
Discovery\ComponentCollectionBuilder.cs (1)
12private readonly Dictionary<string, IReadOnlyList<ComponentBuilder>> _components = new();
Discovery\PageCollectionBuilder.cs (1)
11private readonly Dictionary<string, IReadOnlyList<PageComponentBuilder>> _pages = new();
FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (8)
9: IDictionaryBufferAdapter<ReadOnlyDictionary<TKey, TValue>, Dictionary<TKey, TValue>, TKey, TValue> 12public static Dictionary<TKey, TValue> Add(ref Dictionary<TKey, TValue> buffer, TKey key, TValue value) 18public static Dictionary<TKey, TValue> CreateBuffer() => 21public static ReadOnlyDictionary<TKey, TValue> ToResult(Dictionary<TKey, TValue> buffer) => 31Dictionary<TKey, TValue>, 34Dictionary<TKey, TValue>, 43Dictionary<TKey, TValue>,
FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (7)
55var _ when type == (typeof(Dictionary<TKey, TValue>)) => true, 96Dictionary<TKey, TValue>, 97DictionaryBufferAdapter<Dictionary<TKey, TValue>, TKey, TValue>, 98Dictionary<TKey, TValue>, 101Dictionary<TKey, TValue>, TKey, TValue>(valueTypeConverter), 138var _ when type == (typeof(Dictionary<TKey, TValue>)) => 139ConcreteTypeDictionaryConverterFactory<Dictionary<TKey, TValue>, TKey, TValue>.Instance.CreateConverter(type, options),
FormMapping\HttpContextFormValueMapper.cs (1)
125var dictionary = new Dictionary<FormKey, StringValues>();
FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
Rendering\EndpointHtmlRenderer.EventDispatch.cs (3)
22private readonly Dictionary<(int ComponentId, int FrameIndex), string> _namedSubmitEventsByLocation = new(); 23private readonly Dictionary<string, HashSet<(int ComponentId, int FrameIndex)>> _namedSubmitEventsByScopeQualifiedName = new(StringComparer.Ordinal); 203private static TVal GetOrAddNewToDictionary<TKey, TVal>(Dictionary<TKey, TVal> dictionary, TKey key) where TKey: notnull where TVal: new()
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (1)
265public Dictionary<string, byte[]> Saved { get; private set; } = new();
Rendering\SSRRenderModeBoundary.cs (4)
33private Dictionary<string, RenderFragmentCapture>? _topLevelCaptures; 124var parametersDict = (Dictionary<string, object?>)_latestParameters; 246var dict = new Dictionary<string, object?>(latestParameters.Count);
Serialization\JsonStoredDataSerializer.cs (2)
45if (definition == typeof(Dictionary<,>)) 73var result = new Dictionary<string, object?>(data.Count);
SessionCascadingValueSupplier.cs (1)
20private readonly Dictionary<string, Func<object?>> _valueCallbacks = new(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (2)
29private readonly Dictionary<string, CategoryLink> _store; 35: (Dictionary<string, CategoryLink>)GetActivityLinksStore(instance);
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (5)
33var state = JsonSerializer.Deserialize( 44public Dictionary<string, byte[]> ExistingState { get; protected set; } 53var dictionary = state as Dictionary<string, byte[]> ?? new Dictionary<string, byte[]>(state); 80[JsonSerializable(typeof(Dictionary<string, byte[]>))]
TempData\CookieTempDataProvider.cs (3)
74Dictionary<string, JsonElement>? dataFromCookie; 80dataFromCookie = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(unprotectBuffer.WrittenSpan); 85dataFromCookie = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(unprotectedBytes);
TempData\SessionStorageTempDataProvider.cs (2)
34var dataFromSession = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(value);
TempData\TempData.cs (3)
12private readonly Dictionary<string, object?> _data = new(StringComparer.OrdinalIgnoreCase); 22private Dictionary<string, object?> Data 89var dataToSave = new Dictionary<string, object?>();
TempData\TempDataCascadingValueSupplier.cs (1)
18private readonly Dictionary<string, Func<object?>> _valueCallbacks = new(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.Forms (3)
EditContext.cs (1)
20private readonly Dictionary<FieldIdentifier, FieldState> _fieldStates = new Dictionary<FieldIdentifier, FieldState>();
EditContextProperties.cs (1)
16private Dictionary<object, object>? _contents;
ValidationMessageStore.cs (1)
14private readonly Dictionary<FieldIdentifier, List<string>> _messages = new Dictionary<FieldIdentifier, List<string>>();
Microsoft.AspNetCore.Components.Media (2)
FileDownload.cs (1)
79var copy = new Dictionary<string, object>(AdditionalAttributes.Count);
MediaComponentBase.cs (1)
95[Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object>? AdditionalAttributes { get; set; }
Microsoft.AspNetCore.Components.QuickGrid (4)
Infrastructure\EventCallbackSubscribable.cs (1)
14private readonly Dictionary<EventCallbackSubscriber<T>, EventCallback<T>> _callbacks = new();
QuickGrid.razor.cs (2)
182private Dictionary<string, object>? _virtualizeAttributes; 304var attributes = new Dictionary<string, object>
src\aspnetcore\src\Components\Shared\src\QueryParameterValueSupplier.cs (1)
12private readonly Dictionary<ReadOnlyMemory<char>, StringSegmentAccumulator> _queryParameterValuesByName = new(QueryParameterNameComparer.Instance);
Microsoft.AspNetCore.Components.Server (48)
_generated\14\CircuitPersistenceManagerSerializerContext.GetJsonTypeInfo.g.cs (1)
36if (type == typeof(global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>))
_generated\42\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>>? _DictionaryStringByteArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> DictionaryStringByteArray 22get => _DictionaryStringByteArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, byte[]>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> Create_DictionaryStringByteArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, byte[]>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, byte[]>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, byte[]>, string, byte[]>(options, info); 47private void DictionaryStringByteArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, byte[]>? value)
_generated\45\PrerenderComponentApplicationStoreSerializerContext.GetJsonTypeInfo.g.cs (1)
26if (type == typeof(global::System.Collections.Generic.Dictionary<string, byte[]>))
_generated\9\CircuitPersistenceManagerSerializerContext.DictionaryInt32ComponentMarker.g.cs (9)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>>? _DictionaryInt32ComponentMarker; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>> DictionaryInt32ComponentMarker 24get => _DictionaryInt32ComponentMarker ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>> Create_DictionaryInt32ComponentMarker(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<int, global::Microsoft.AspNetCore.Components.ComponentMarker>, int, global::Microsoft.AspNetCore.Components.ComponentMarker>(options, info);
Circuits\CircuitPersistenceManager.cs (7)
95internal ProtectedPrerenderComponentApplicationStore ToComponentApplicationStore(Dictionary<string, byte[]> applicationState) 154[NotNullWhen(true)] out Dictionary<int, WebRootComponentDescriptor> rootComponentDescriptors) 156var persistedMarkers = TryDeserializeMarkers(rootComponents); 181static Dictionary<int, ComponentMarker> TryDeserializeMarkers(byte[] rootComponents) 190return JsonSerializer.Deserialize<Dictionary<int, ComponentMarker>>( 211var persistedComponents = new Dictionary<int, ComponentMarker>(); 250[JsonSerializable(typeof(Dictionary<int, ComponentMarker>))]
Circuits\ComponentParameterDeserializer.cs (1)
26var parametersDictionary = new Dictionary<string, object>();
Circuits\RemoteJSRuntime.cs (1)
27internal readonly Dictionary<long, RemoteJSDataStream> RemoteJSDataStreamInstances = new();
ComponentHub.cs (1)
386out var rootComponentDescriptors))
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
40private readonly Dictionary<string, int> _deduplicatedStringIndices;
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (2)
29private readonly Dictionary<string, CategoryLink> _store; 35: (Dictionary<string, CategoryLink>)GetActivityLinksStore(instance);
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (5)
33var state = JsonSerializer.Deserialize( 44public Dictionary<string, byte[]> ExistingState { get; protected set; } 53var dictionary = state as Dictionary<string, byte[]> ?? new Dictionary<string, byte[]>(state); 80[JsonSerializable(typeof(Dictionary<string, byte[]>))]
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (7)
75var headers = ReadHeaders(ref reader); 111var headers = ReadHeaders(ref reader); 141var headers = ReadHeaders(ref reader); 161var headers = ReadHeaders(ref reader); 215var headers = ReadHeaders(ref reader); 241private static Dictionary<string, string>? ReadHeaders(ref MessagePackReader reader) 246var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.Components.Testing (33)
_generated\3\E2EManifestJsonContext.E2EAppEntry.g.cs (3)
137var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 152AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 155properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info4);
_generated\4\E2EManifestJsonContext.E2EManifest.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EManifest).GetProperty("Apps", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>>(options, info0);
_generated\5\E2EManifestJsonContext.DictionaryStringE2EAppEntry.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>>? _DictionaryStringE2EAppEntry; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>> DictionaryStringE2EAppEntry 22get => _DictionaryStringE2EAppEntry ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>> Create_DictionaryStringE2EAppEntry(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>, string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>(options, info); 47private void DictionaryStringE2EAppEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>? value)
_generated\6\E2EManifestJsonContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\9\E2EManifestJsonContext.GetJsonTypeInfo.g.cs (2)
30if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Testing.Infrastructure.E2EAppEntry>)) 34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
Infrastructure\E2EAppEntry.cs (1)
26public Dictionary<string, string> EnvironmentVariables { get; set; } = new();
Infrastructure\E2EManifest.cs (1)
12public Dictionary<string, E2EAppEntry> Apps { get; set; } = new();
Infrastructure\PlaywrightExtensions.cs (1)
38var headers = options.ExtraHTTPHeaders?.ToDictionary(h => h.Key, h => h.Value)
Infrastructure\ServerInstance.cs (1)
217var environment = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\ServerStartOptions.cs (1)
17public Dictionary<string, string> EnvironmentVariables { get; } = new();
Microsoft.AspNetCore.Components.Testing.Tasks (2)
E2EManifestModel.cs (2)
13public Dictionary<string, E2EAppEntryModel> Apps { get; set; } = new(); 32public Dictionary<string, string> EnvironmentVariables { get; set; } = new();
Microsoft.AspNetCore.Components.Web (45)
_generated\16\WebRendererSerializerContext.GetJsonTypeInfo.g.cs (2)
46if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>)) 50if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>))
_generated\6\WebRendererSerializerContext.DictionaryStringJSComponentParameterArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>>? _DictionaryStringJSComponentParameterArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>> DictionaryStringJSComponentParameterArray 22get => _DictionaryStringJSComponentParameterArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>> Create_DictionaryStringJSComponentParameterArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>, string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>(options, info); 47private void DictionaryStringJSComponentParameterArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.Components.Web.JSComponentConfigurationStore.JSComponentParameter[]>? value)
_generated\7\WebRendererSerializerContext.DictionaryStringListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>? _DictionaryStringListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> DictionaryStringListString 22get => _DictionaryStringListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> Create_DictionaryStringListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>, string, global::System.Collections.Generic.List<string>>(options, info); 47private void DictionaryStringListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.List<string>>? value)
Forms\ClientValidation\RenderedFieldRegistry.cs (1)
15private readonly Dictionary<FieldIdentifier, string> _fields = [];
Forms\InputBase.cs (4)
347if (ConvertToDictionary(AdditionalAttributes, out var additionalAttributes)) 368if (ConvertToDictionary(AdditionalAttributes, out var additionalAttributes)) 382private static bool ConvertToDictionary(IReadOnlyDictionary<string, object>? source, out Dictionary<string, object> result) 389else if (source is Dictionary<string, object> currentDictionary)
Forms\Mapping\FormMappingContext.cs (11)
13private Dictionary<string, FormMappingError>? _errors; 15private Dictionary<string, Dictionary<string, FormMappingError>>? _errorsByFormName; 43_errorsByFormName?.TryGetValue(formName, out var formErrors) == true && 55private static IEnumerable<FormMappingError> GetAllErrorsCore(Dictionary<string, FormMappingError>? errors) 72return _errorsByFormName?.TryGetValue(formName, out var formErrors) == true ? 92_errorsByFormName?.TryGetValue(formName, out var formErrors) == true && 101private static void AddErrorCore(Dictionary<string, FormMappingError> errors, string key, FormattableString error, string? attemptedValue, ref List<KeyValuePair<string, FormMappingError>>? pendingErrors) 118_errorsByFormName ??= new Dictionary<string, Dictionary<string, FormMappingError>>(); 119if (!_errorsByFormName.TryGetValue(formName, out var formErrors)) 150if (_errorsByFormName == null || !_errorsByFormName.TryGetValue(formName, out var formErrors))
JSComponents\JSComponentConfigurationStore.cs (4)
24private readonly Dictionary<string, Type> _jsComponentTypesByIdentifier = new(StringComparer.Ordinal); 25internal Dictionary<string, JSComponentParameter[]> JSComponentParametersByIdentifier { get; } = new(StringComparer.Ordinal); 26internal Dictionary<string, List<string>> JSComponentIdentifiersByInitializer { get; } = new(StringComparer.Ordinal); 30var parameterTypes = JSComponentInterop.GetComponentParameters(componentType).ParameterInfoByName;
JSComponents\JSComponentInterop.cs (1)
197public readonly Dictionary<string, ParameterInfo> ParameterInfoByName;
WebRenderer.cs (2)
199[JsonSerializable(typeof(Dictionary<string, JSComponentConfigurationStore.JSComponentParameter[]>))] 200[JsonSerializable(typeof(Dictionary<string, List<string>>))]
Microsoft.AspNetCore.Components.WebAssembly (20)
_generated\24\PrerenderComponentApplicationStoreSerializerContext.DictionaryStringByteArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>>? _DictionaryStringByteArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> DictionaryStringByteArray 22get => _DictionaryStringByteArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, byte[]>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> Create_DictionaryStringByteArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, byte[]>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, byte[]>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, byte[]>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, byte[]>, string, byte[]>(options, info); 47private void DictionaryStringByteArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, byte[]>? value)
_generated\27\PrerenderComponentApplicationStoreSerializerContext.GetJsonTypeInfo.g.cs (1)
26if (type == typeof(global::System.Collections.Generic.Dictionary<string, byte[]>))
Prerendering\WebAssemblyComponentParameterDeserializer.cs (1)
30var parametersDictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
40private readonly Dictionary<string, int> _deduplicatedStringIndices;
src\aspnetcore\src\Components\Shared\src\RenderFragmentCapture.cs (1)
15private readonly Dictionary<int, RenderFragmentCapture> _childCaptures = new();
src\aspnetcore\src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\aspnetcore\src\Shared\Components\PrerenderComponentApplicationStore.cs (5)
33var state = JsonSerializer.Deserialize( 44public Dictionary<string, byte[]> ExistingState { get; protected set; } 53var dictionary = state as Dictionary<string, byte[]> ?? new Dictionary<string, byte[]>(state); 80[JsonSerializable(typeof(Dictionary<string, byte[]>))]
Microsoft.AspNetCore.Components.WebAssembly.Authentication (17)
_generated\10\InteractiveRequestOptionsSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>))
_generated\3\InteractiveRequestOptionsSerializerContext.OptionsRecord.g.cs (4)
117var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 132AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord).GetProperty("AdditionalRequestParameters", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 135properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, object>>(options, info3); 164private static extern void __set_OptionsRecord_AdditionalRequestParameters(ref global::Microsoft.AspNetCore.Components.WebAssembly.Authentication.InteractiveRequestOptions.Converter.OptionsRecord obj, global::System.Collections.Generic.Dictionary<string, object> value);
_generated\4\InteractiveRequestOptionsSerializerContext.DictionaryStringObject.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 22get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
Models\InteractiveRequestOptions.cs (3)
32private Dictionary<string, object>? AdditionalRequestParameters { get; set; } 130public Dictionary<string, object>? AdditionalRequestParameters { get; init; } 136Dictionary<string, object>? additionalRequestParameters)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
18private static readonly Dictionary<StringSegment, string> _encodingExtensionMap = new Dictionary<StringSegment, string>(StringSegmentComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Components.WebView (23)
_generated\12\SourceGenerationContext.GetJsonTypeInfo.g.cs (1)
44if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>))
_generated\3\SourceGenerationContext.StaticWebAssetNode.g.cs (5)
75var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> 81Converter = (global::System.Text.Json.Serialization.JsonConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>)ExpandConverter(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>), new global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.OSBasedCaseConverter(), options), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode).GetProperty("Children", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>), global::System.Array.Empty<global::System.Type>(), null), 93properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>(options, info1);
_generated\6\SourceGenerationContext.DictionaryStringStaticWebAssetNode.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>? _DictionaryStringStaticWebAssetNode; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> DictionaryStringStaticWebAssetNode 24get => _DictionaryStringStaticWebAssetNode ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> Create_DictionaryStringStaticWebAssetNode(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>, string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(options, info); 49private void DictionaryStringStaticWebAssetNodeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>? value)
src\aspnetcore\src\Components\Shared\src\RenderBatchWriter.cs (1)
40private readonly Dictionary<string, int> _deduplicatedStringIndices;
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (5)
342public Dictionary<string, StaticWebAssetNode>? Children { get; set; } 372private sealed class OSBasedCaseConverter : JsonConverter<Dictionary<string, StaticWebAssetNode>> 374public override Dictionary<string, StaticWebAssetNode> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer); 433public override void Write(Utf8JsonWriter writer, Dictionary<string, StaticWebAssetNode> value, JsonSerializerOptions options)
WebViewManager.cs (1)
29private readonly Dictionary<string, RootComponent> _rootComponentsBySelector = new();
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
39 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.DataProtection (5)
KeyManagement\KeyRing.cs (1)
18private readonly Dictionary<Guid, KeyHolder> _keyIdToKeyHolderMap;
KeyManagement\XmlKeyManager.cs (1)
184Dictionary<Guid, Key> keyIdToKeyMap = [];
XmlEncryption\XmlEncryptionExtensions.cs (2)
35var placeholderReplacements = new Dictionary<XElement, XElement>(); 117var placeholderReplacements = new Dictionary<XElement, EncryptedXmlInfo>();
XmlEncryption\XmlKeyDecryptionOptions.cs (1)
16private readonly Dictionary<string, List<X509Certificate2>> _certs = new Dictionary<string, List<X509Certificate2>>(StringComparer.Ordinal);
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (1)
src\aspnetcore\src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
58public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Diagnostics (1)
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\IncomingHttpRouteUtility.cs (1)
36var parametersToRedact = new Dictionary<string, DataClassification>();
Microsoft.AspNetCore.Diagnostics.Middleware.PerformanceTests (8)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
RedactionBenchmark.cs (3)
22private readonly Dictionary<string, DataClassification> _routeParameterDataClasses = []; 24private readonly Dictionary<string, object?> _routeValues = new() 131var newDict = new Dictionary<string, string>(_routeValues.Count);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Logging\AcceptanceTests.Routing.cs (1)
57Action<Dictionary<string, string?>> validateRequestState)
Logging\HeaderReaderTests.cs (2)
42var headersToLog = new Dictionary<string, DataClassification> 50var headers = new Dictionary<string, StringValues>
Logging\IncomingHttpRouteUtilityTests.cs (7)
177var d = new Dictionary<string, DataClassification> 220var d = new Dictionary<string, DataClassification> 306var d = new Dictionary<string, DataClassification> 354var d = new Dictionary<string, DataClassification> 399var d = new Dictionary<string, DataClassification>(); 438var d = new Dictionary<string, DataClassification> 460var d = new Dictionary<string, DataClassification>
Logging\TestLogEnrichmentTagCollector.cs (1)
11private readonly Dictionary<string, object> _tags = [];
Microsoft.AspNetCore.Grpc.JsonTranscoding (24)
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (1)
242var routeParameterDescriptors = ServiceDescriptorHelpers.ResolveRouteParameterDescriptors(routeAdapter.HttpRoutePattern.Variables, methodDescriptor.InputType);
Internal\CallHandlers\CallHandlerDescriptorInfo.cs (2)
18Dictionary<string, RouteParameter> routeParameterDescriptors, 42public Dictionary<string, RouteParameter> RouteParameterDescriptors { get; }
Internal\Json\EnumNameHelpers.cs (4)
76var writeMapping = nameMappings.ToDictionary(m => m.Value, m => m); 80var removeEnumPrefixMapping = nameMappings.ToDictionary(m => m.OriginalName, m => m.OriginalName); 154public required Dictionary<object, NameMapping> WriteMapping { get; init; } 155public required Dictionary<string, string> RemoveEnumPrefixMapping { get; init; }
Internal\Json\JsonConverterHelper.cs (2)
23internal static readonly Dictionary<string, Type> WellKnownTypeNames = new Dictionary<string, Type> 139var repeatedFieldType = typeof(Dictionary<,>).MakeGenericType(keyType, valueType);
Internal\Json\MessageTypeInfoResolver.cs (3)
40var mappings = CreateJsonFieldMap(fields); 190private static Dictionary<string, FieldDescriptor> CreateJsonFieldMap(IList<FieldDescriptor> fields) 192var map = new Dictionary<string, FieldDescriptor>();
Internal\JsonRequestHelpers.cs (1)
224type = typeof(Dictionary<,>).MakeGenericType(args[0], args[1]);
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (2)
32var properties = new Dictionary<string, List<AuthProperty>>(StringComparer.Ordinal); 59static void AddProperty(Dictionary<string, List<AuthProperty>> properties, string name, string value)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (3)
77Dictionary<string, ICompressionProvider> compressionProviders, 116var resolvedCompressionProviders = new Dictionary<string, ICompressionProvider>(StringComparer.Ordinal); 155private static void AddCompressionProviders(Dictionary<string, ICompressionProvider> resolvedProviders, IList<ICompressionProvider>? compressionProviders)
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (6)
387public static Dictionary<string, RouteParameter> ResolveRouteParameterDescriptors( 391var routeParameterDescriptors = new Dictionary<string, RouteParameter>(StringComparer.Ordinal); 474public static Dictionary<string, FieldDescriptor> ResolveQueryParameterDescriptors( 475Dictionary<string, RouteParameter> routeParameters, 504var queryParameters = new Dictionary<string, FieldDescriptor>(); 508static void RecursiveVisitMessages(Dictionary<string, FieldDescriptor> queryParameters, List<FieldDescriptor> existingParameters, MessageDescriptor messageDescriptor, List<FieldDescriptor> path)
Microsoft.AspNetCore.HeaderParsing.Tests (2)
HeaderParsingOptionsTests.cs (2)
15var defValue = new Dictionary<string, StringValues>(); 16var maxCachedValues = new Dictionary<string, int>();
Microsoft.AspNetCore.Hosting (22)
_generated\12\SourceGenerationContext.GetJsonTypeInfo.g.cs (1)
44if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>))
_generated\3\SourceGenerationContext.StaticWebAssetNode.g.cs (5)
75var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> 81Converter = (global::System.Text.Json.Serialization.JsonConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>)ExpandConverter(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>), new global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.OSBasedCaseConverter(), options), 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode).GetProperty("Children", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>), global::System.Array.Empty<global::System.Type>(), null), 93properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>(options, info1);
_generated\6\SourceGenerationContext.DictionaryStringStaticWebAssetNode.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>? _DictionaryStringStaticWebAssetNode; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> DictionaryStringStaticWebAssetNode 24get => _DictionaryStringStaticWebAssetNode ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> Create_DictionaryStringStaticWebAssetNode(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>, string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(options, info); 49private void DictionaryStringStaticWebAssetNodeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.ManifestStaticWebAssetFileProvider.StaticWebAssetNode>? value)
src\aspnetcore\src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (5)
342public Dictionary<string, StaticWebAssetNode>? Children { get; set; } 372private sealed class OSBasedCaseConverter : JsonConverter<Dictionary<string, StaticWebAssetNode>> 374public override Dictionary<string, StaticWebAssetNode> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer); 433public override void Write(Utf8JsonWriter writer, Dictionary<string, StaticWebAssetNode> value, JsonSerializerOptions options)
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Http (24)
FormCollection.cs (4)
42public FormCollection(Dictionary<string, StringValues>? fields, IFormFileCollection? files = null) 58private Dictionary<string, StringValues>? Store { get; set; } 178private Dictionary<string, StringValues>.Enumerator _dictionaryEnumerator; 181internal Enumerator(Dictionary<string, StringValues>.Enumerator dictionaryEnumerator)
HeaderDictionary.cs (4)
37public HeaderDictionary(Dictionary<string, StringValues>? store) 51private Dictionary<string, StringValues>? Store { get; set; } 399private Dictionary<string, StringValues>.Enumerator _dictionaryEnumerator; 402internal Enumerator(Dictionary<string, StringValues>.Enumerator dictionaryEnumerator)
Internal\RequestCookieCollection.cs (1)
39public RequestCookieCollection(Dictionary<string, string> store)
QueryCollection.cs (4)
27private Dictionary<string, StringValues>? Store { get; } 40public QueryCollection(Dictionary<string, StringValues> store) 194private Dictionary<string, StringValues>.Enumerator _dictionaryEnumerator; 197internal Enumerator(Dictionary<string, StringValues>.Enumerator dictionaryEnumerator)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (8)
14private readonly Dictionary<TKey, TValue> _source; 15private Dictionary<TKey, TValue>? _copy; 17public CopyOnWriteDictionaryHolder(Dictionary<TKey, TValue> source) 33public Dictionary<TKey, TValue> ReadDictionary 54public Dictionary<TKey, TValue> WriteDictionary 72public Dictionary<TKey, TValue>.KeyCollection Keys 80public Dictionary<TKey, TValue>.ValueCollection Values 161public Dictionary<TKey, TValue>.Enumerator GetEnumerator()
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (3)
26internal Dictionary<TKey, TValue>? _dictionaryStorage; 90internal AdaptiveCapacityDictionary(Dictionary<TKey, TValue> dict) 603private Dictionary<TKey, TValue>.Enumerator? _dictionaryEnumerator;
Microsoft.AspNetCore.Http.Abstractions (2)
ProblemDetails\HttpValidationProblemDetails.cs (1)
40private HttpValidationProblemDetails(Dictionary<string, string[]> errors)
Routing\RouteValueDictionary.cs (1)
900var names = new Dictionary<string, PropertyHelper>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
1020var requestHeaders = new Dictionary<string, StringValues>(existingRequestFeature.Headers.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Extensions (22)
RequestDelegateFactory.cs (1)
2306var dictionary = new Dictionary<FormKey, StringValues>();
RequestDelegateFactoryContext.cs (1)
43public Dictionary<string, string> TrackedParameters { get; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (8)
9: IDictionaryBufferAdapter<ReadOnlyDictionary<TKey, TValue>, Dictionary<TKey, TValue>, TKey, TValue> 12public static Dictionary<TKey, TValue> Add(ref Dictionary<TKey, TValue> buffer, TKey key, TValue value) 18public static Dictionary<TKey, TValue> CreateBuffer() => 21public static ReadOnlyDictionary<TKey, TValue> ToResult(Dictionary<TKey, TValue> buffer) => 31Dictionary<TKey, TValue>, 34Dictionary<TKey, TValue>, 43Dictionary<TKey, TValue>,
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (7)
55var _ when type == (typeof(Dictionary<TKey, TValue>)) => true, 96Dictionary<TKey, TValue>, 97DictionaryBufferAdapter<Dictionary<TKey, TValue>, TKey, TValue>, 98Dictionary<TKey, TValue>, 101Dictionary<TKey, TValue>, TKey, TValue>(valueTypeConverter), 138var _ when type == (typeof(Dictionary<TKey, TValue>)) => 139ConcreteTypeDictionaryConverterFactory<Dictionary<TKey, TValue>, TKey, TValue>.Instance.CreateConverter(type, options),
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
src\aspnetcore\src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\aspnetcore\src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
18Dictionary<TSource, ImmutableArray<TElement>.Builder> map = new(comparer);
StaticRouteHandlerModel\EndpointParameter.cs (1)
486var lookupTable = new Dictionary<ParameterLookupKey, IPropertySymbol>();
Microsoft.AspNetCore.Http.Results (1)
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
434var errorDictionary = new Dictionary<string, string[]>(1);
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (1)
61var personalData = new Dictionary<string, string?>();
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (1)
61var personalData = new Dictionary<string, string?>();
Microsoft.AspNetCore.InternalTesting (5)
AssemblyTestLog.cs (1)
30private static readonly Dictionary<Assembly, AssemblyTestLog> _logs = new();
Tracing\CollectingEventListener.cs (1)
17private readonly Dictionary<string, EventSource> _existingSources = new Dictionary<string, EventSource>(StringComparer.OrdinalIgnoreCase);
Tracing\EventSourceValidator.cs (1)
54var seenIds = new Dictionary<int, string>();
xunit\AspNetTestAssemblyRunner.cs (1)
18private readonly Dictionary<Type, object> _assemblyFixtureMappings = new();
xunit\AspNetTestCollectionRunner.cs (1)
19Dictionary<Type, object> assemblyFixtureMappings,
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Adapters\AdapterFactory.cs (1)
26if (typeToConvert.IsGenericType && typeToConvert.GetGenericTypeDefinition() == typeof(Dictionary<,>))
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\ModelMetadata.cs (2)
667var parameterMapping = new Dictionary<ModelMetadata, ModelMetadata>(); 668var propertyMapping = new Dictionary<ModelMetadata, ModelMetadata>();
ModelBinding\Validation\ValidationStateDictionary.cs (1)
20private readonly Dictionary<object, ValidationStateEntry> _inner;
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Mvc.ApiExplorer (12)
ApiResponseTypeProvider.cs (9)
101var endpointResponseTypes = ReadEndpointResponseMetadata( 109var filterAttributeResponseTypes = ReadFilterAttributeResponseMetadata( 120var responseTypes = endpointResponseTypes 159internal static Dictionary<ResponseKey, ApiResponseType> ReadAttributeResponseMetadata( 183internal static Dictionary<ResponseKey, ApiResponseType> ReadFilterAttributeResponseMetadata( 193var results = new Dictionary<ResponseKey, ApiResponseType>(); 194var statusCodeScopes = new Dictionary<int, int>(); 303internal static Dictionary<ResponseKey, ApiResponseType> ReadEndpointResponseMetadata( 309var results = new Dictionary<ResponseKey, ApiResponseType>();
DefaultApiDescriptionProvider.cs (1)
245var routeParameters = new Dictionary<string, ApiParameterRouteInfo>(StringComparer.OrdinalIgnoreCase);
EndpointMetadataApiDescriptionProvider.cs (2)
343var responseProviderMetadataTypes = ApiResponseTypeProvider.ReadAttributeResponseMetadata( 345var producesResponseMetadataTypes = ApiResponseTypeProvider.ReadEndpointResponseMetadata(producesResponseMetadata, responseType);
Microsoft.AspNetCore.Mvc.Core (42)
ApplicationModels\ApplicationModelFactory.cs (7)
60var actionsByMethod = new Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>>(); 61var actionsByRouteName = new Dictionary<string, List<(ActionModel, SelectorModel)>>(StringComparer.OrdinalIgnoreCase); 86var attributeRoutingConfigurationErrors = new Dictionary<MethodInfo, string>(); 131var routeValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase) 174Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>> actionsByMethod, 188Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName, 219Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName)
Builder\ControllerActionEndpointConventionBuilder.cs (1)
26internal Dictionary<string, object> Items { get; set; } = [];
Controllers\ControllerBinderDelegate.cs (1)
9Dictionary<string, object?> arguments);
Controllers\ControllerBinderDelegateProvider.cs (1)
52async Task Bind(ControllerContext controllerContext, object controller, Dictionary<string, object?> arguments)
Formatters\FormatterMappings.cs (1)
15private readonly Dictionary<string, string> _map =
Formatters\TextOutputFormatter.cs (1)
42var cache = new Dictionary<string, string>();
Infrastructure\ActionSelectionTable.cs (6)
42Dictionary<string[], List<TItem>> ordinalEntries, 43Dictionary<string[], List<TItem>> ordinalIgnoreCaseEntries) 55private Dictionary<string[], List<TItem>> OrdinalEntries { get; } 57private Dictionary<string[], List<TItem>> OrdinalIgnoreCaseEntries { get; } 107var ordinalEntries = new Dictionary<string[], List<T>>(StringArrayComparer.Ordinal); 108var ordinalIgnoreCaseEntries = new Dictionary<string[], List<T>>(StringArrayComparer.OrdinalIgnoreCase);
Infrastructure\ControllerActionInvoker.cs (2)
25private Dictionary<string, object?>? _arguments; 414var arguments = invoker._arguments;
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
28var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
ModelBinding\Binders\ComplexTypeModelBinderProvider.cs (1)
24var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
ModelBinding\Binders\DictionaryModelBinder.cs (4)
161var keyMappings = new Dictionary<string, TKey>(StringComparer.Ordinal); 230if (targetType.IsAssignableFrom(typeof(Dictionary<TKey, TValue?>))) 242if (targetType.IsAssignableFrom(typeof(Dictionary<TKey, TValue>))) 254if (targetType.IsAssignableFrom(typeof(Dictionary<TKey, TValue>)))
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
20var dictionary = new Dictionary<string, StringValues>(
ModelBinding\ModelBinderFactory.cs (2)
125var visited = providerContext.Visited; 246public Dictionary<Key, IModelBinder?> Visited { get; }
ModelBinding\PrefixContainer.cs (1)
77var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Routing\AttributeRoute.cs (2)
145var templateCache = new Dictionary<string, RouteTemplate>(StringComparer.OrdinalIgnoreCase); 179Dictionary<string, RouteTemplate> templateCache,
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (8)
14private readonly Dictionary<TKey, TValue> _source; 15private Dictionary<TKey, TValue>? _copy; 17public CopyOnWriteDictionaryHolder(Dictionary<TKey, TValue> source) 33public Dictionary<TKey, TValue> ReadDictionary 54public Dictionary<TKey, TValue> WriteDictionary 72public Dictionary<TKey, TValue>.KeyCollection Keys 80public Dictionary<TKey, TValue>.ValueCollection Values 161public Dictionary<TKey, TValue>.Enumerator GetEnumerator()
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
ValidationProblemDetails.cs (1)
37var errorDictionary = new Dictionary<string, string[]>(StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
176var namesAndValues = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (5)
BsonTempDataSerializer.cs (5)
31private static readonly Dictionary<JTokenType, Type> _tokenTypeLookup = new Dictionary<JTokenType, Type>(8) 45Dictionary<string, object?>? tempDataDictionary; 50tempDataDictionary = _jsonSerializer.Deserialize<Dictionary<string, object?>>(reader); 57var convertedDictionary = new Dictionary<string, object?>( 229var convertedDictionary = new Dictionary<string, TVal?>(StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.Razor (6)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
14private Dictionary<string, Type>? _hotReloadedViews;
Compilation\DefaultViewCompiler.cs (3)
23private Dictionary<string, Task<CompiledViewDescriptor>>? _compiledViews; 52var compiledViews = new Dictionary<string, Task<CompiledViewDescriptor>>( 79internal Dictionary<string, Task<CompiledViewDescriptor>>? CompiledViews => _compiledViews;
RazorViewEngine.cs (1)
237Dictionary<string, string?>? expanderValues = null;
TagHelpers\UrlResolutionTagHelper.cs (1)
57private static readonly Dictionary<string, string[]> ElementAttributeLookups =
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
27private readonly Dictionary<string, CompiledViewDescriptor> _precompiledViews;
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\CompiledPageActionDescriptorProvider.cs (1)
57var lookup = new Dictionary<string, CompiledViewDescriptor>(feature.ViewDescriptors.Count, StringComparer.Ordinal);
Infrastructure\PageActionInvoker.cs (2)
24private Dictionary<string, object?>? _arguments; 221Dictionary<string, object?> argumentsInDictionary,
Microsoft.AspNetCore.Mvc.TagHelpers (2)
InputTagHelper.cs (2)
22private static readonly Dictionary<string, string> _defaultInputTypes = 56private static readonly Dictionary<string, string> _rfc3339Formats =
Microsoft.AspNetCore.Mvc.Testing (2)
WebApplicationFactory.cs (2)
309var arbitraryActions = new Dictionary<string, Action<object?>>(capacity: 1) 533var runtimeProjectLibraries = context.RuntimeLibraries
Microsoft.AspNetCore.Mvc.Testing.Tasks (2)
GenerateMvcTestManifestTask.cs (2)
35var output = new Dictionary<string, string>(); 43var serializer = new DataContractJsonSerializer(typeof(Dictionary<string, string>), new DataContractJsonSerializerSettings
Microsoft.AspNetCore.Mvc.ViewFeatures (20)
DefaultEditorTemplates.cs (1)
180var htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
FormContext.cs (5)
20private Dictionary<string, bool> _renderedFields; 21private Dictionary<string, bool> _invariantFields; 22private Dictionary<string, object> _formData; 101private Dictionary<string, bool> RenderedFields 118private Dictionary<string, bool> InvariantFields
HtmlHelper.cs (1)
1382var groupList = new Dictionary<string, SelectListGroup>();
Infrastructure\DefaultTempDataSerializer.cs (2)
27var deserialized = new Dictionary<string, object>(StringComparer.Ordinal); 119var dictionary = new Dictionary<string, string>(StringComparer.Ordinal);
Rendering\ViewContext.cs (2)
21private Dictionary<object, object?> _items = default!; 207internal Dictionary<object, object?> Items => _items ??= new Dictionary<object, object?>();
TempDataDictionary.cs (2)
22private Dictionary<string, object?>? _data; 277private Dictionary<string, object?>.Enumerator _enumerator;
TemplateRenderer.cs (4)
22private static readonly Dictionary<string, Func<IHtmlHelper, IHtmlContent>> _defaultDisplayActions = 37private static readonly Dictionary<string, Func<IHtmlHelper, IHtmlContent>> _defaultEditorActions = 101var defaultActions = GetDefaultActions(); 140private Dictionary<string, Func<IHtmlHelper, IHtmlContent>> GetDefaultActions()
TryGetValueProvider.cs (1)
15private static readonly Dictionary<Type, TryGetValueDelegate> _tryGetValueDelegateCache =
ValidationHtmlAttributeProvider.cs (2)
20/// The <see cref="Dictionary{TKey, TValue}"/> to receive the validation attributes. Maps the validation 41/// The <see cref="Dictionary{TKey, TValue}"/> to receive the validation attributes. Maps the validation
Microsoft.AspNetCore.OpenApi (16)
Extensions\JsonNodeSchemaExtensions.cs (1)
27private static readonly Dictionary<Type, string> _simpleTypeToFormat = new()
Extensions\JsonTypeInfoExtensions.cs (1)
14private static readonly Dictionary<Type, string> _simpleTypeToName = new()
Schemas\OpenApiJsonSchema.Helpers.cs (4)
60private static Dictionary<string, T>? ReadDictionary<T>(ref Utf8JsonReader reader, OpenApiJsonSchemaContext context) 72var values = new Dictionary<string, T>(); 295var props = ReadDictionary<OpenApiJsonSchema>(ref reader, context); 328var mappings = ReadDictionary<string>(ref reader, context);
Services\OpenApiDocumentService.cs (4)
262var operations = await GetOperationsAsync(descriptions, document, scopedServiceProvider, operationTransformers, schemaTransformers, cancellationToken); 272private async Task<Dictionary<HttpMethod, OpenApiOperation>> GetOperationsAsync( 280var operations = new Dictionary<HttpMethod, OpenApiOperation>(); 434var schemasByContentType = new Dictionary<string, OpenApiResponseContentSchemas>();
Services\OpenApiGenerator.cs (4)
119var eligibileAnnotations = new Dictionary<int, (Type?, MediaTypeCollection)>(); 202var responseContent = new Dictionary<string, IOpenApiMediaType>(); 240private static void GenerateDefaultResponses(Dictionary<int, (Type?, MediaTypeCollection)> eligibleAnnotations, Type responseType) 274var requestBodyContent = new Dictionary<string, IOpenApiMediaType>();
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
src\aspnetcore\src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
18Dictionary<TSource, ImmutableArray<TElement>.Builder> map = new(comparer);
Microsoft.AspNetCore.OutputCaching (4)
CacheVaryByRules.cs (1)
14private Dictionary<string, string>? _varyByValues;
Memory\MemoryOutputCacheStore.cs (2)
13private readonly Dictionary<string, HashSet<TaggedEntry>> _taggedEntries = []; 24internal Dictionary<string, HashSet<string>> TaggedEntries => _taggedEntries.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Select(t => t.Key).ToHashSet());
OutputCacheOptions.cs (1)
39internal Dictionary<string, IOutputCachePolicy>? NamedPolicies { get; set; }
Microsoft.AspNetCore.RateLimiting (3)
RateLimiterOptions.cs (2)
16internal Dictionary<string, DefaultRateLimiterPolicy> PolicyMap { get; } 19internal Dictionary<string, Func<IServiceProvider, DefaultRateLimiterPolicy>> UnactivatedPolicyMap { get; }
RateLimitingMiddleware.cs (1)
24private readonly Dictionary<string, DefaultRateLimiterPolicy> _policyMap;
Microsoft.AspNetCore.Razor.Runtime (9)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
20private Dictionary<HtmlEncoder, TagHelperContent> _perEncoderChildContent;
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (8)
14private readonly Dictionary<TKey, TValue> _source; 15private Dictionary<TKey, TValue>? _copy; 17public CopyOnWriteDictionaryHolder(Dictionary<TKey, TValue> source) 33public Dictionary<TKey, TValue> ReadDictionary 54public Dictionary<TKey, TValue> WriteDictionary 72public Dictionary<TKey, TValue>.KeyCollection Keys 80public Dictionary<TKey, TValue>.ValueCollection Values 161public Dictionary<TKey, TValue>.Enumerator GetEnumerator()
Microsoft.AspNetCore.Razor.Utilities.Shared (32)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\DictionaryExtensions.cs (2)
11this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary,
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\DictionaryPool`2.cs (5)
9/// A pool of <see cref="Dictionary{TKey, TValue}"/> instances. 16internal sealed partial class DictionaryPool<TKey, TValue> : CustomObjectPool<Dictionary<TKey, TValue>> 35public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject() 38public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject(out Dictionary<TKey, TValue> map)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\DictionaryPool`2.Policy.cs (2)
41public override Dictionary<TKey, TValue> Create() => new(_comparer); 43public override bool Return(Dictionary<TKey, TValue> map)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\Extensions.cs (5)
38public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) 42public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>( 43this ObjectPool<Dictionary<TKey, TValue>> pool, 44out Dictionary<TKey, TValue> map)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\SpecializedPools.cs (6)
30public static PooledObject<Dictionary<string, TValue>> GetPooledStringDictionary<TValue>() 33public static PooledObject<Dictionary<string, TValue>> GetPooledStringDictionary<TValue>( 34out Dictionary<string, TValue> map) 37public static PooledObject<Dictionary<string, TValue>> GetPooledStringDictionary<TValue>(bool ignoreCase) 40public static PooledObject<Dictionary<string, TValue>> GetPooledStringDictionary<TValue>( 41bool ignoreCase, out Dictionary<string, TValue> map)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\SpecializedPools.StringDictionary`1.cs (7)
12/// Pooled <see cref="Dictionary{TKey, TValue}"/> instances when the key is of type <see cref="string"/>. 24public static PooledObject<Dictionary<string, TValue>> GetPooledObject() 27public static PooledObject<Dictionary<string, TValue>> GetPooledObject(out Dictionary<string, TValue> map) 30public static PooledObject<Dictionary<string, TValue>> GetPooledObject(bool ignoreCase) 35public static PooledObject<Dictionary<string, TValue>> GetPooledObject(bool ignoreCase, out Dictionary<string, TValue> map)
Utilities\CleanableWeakCache`2.cs (1)
28private readonly Dictionary<TKey, WeakReference<TValue>> _cacheMap = [];
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\IISRewriteMap.cs (1)
8private readonly Dictionary<string, string> _map = new Dictionary<string, string>();
IISUrlRewrite\IISRewriteMapCollection.cs (1)
10private readonly Dictionary<string, IISRewriteMap> _rewriteMaps = new Dictionary<string, IISRewriteMap>();
Microsoft.AspNetCore.Routing (35)
DecisionTree\DecisionCriterion.cs (1)
12public Dictionary<object, DecisionTreeNode<TItem>> Branches { get; set; }
DecisionTree\DecisionTreeBuilder.cs (2)
103var criteria = new Dictionary<string, Criterion>(StringComparer.OrdinalIgnoreCase); 153var reducedBranches = new Dictionary<object, DecisionTreeNode<TItem>>(comparer.InnerComparer);
DefaultLinkParser.cs (4)
89var constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 155public readonly Dictionary<string, List<IRouteConstraint>> Constraints; 157public MatcherState(RoutePatternMatcher matcher, Dictionary<string, List<IRouteConstraint>> constraints) 163public void Deconstruct(out RoutePatternMatcher matcher, out Dictionary<string, List<IRouteConstraint>> constraints)
EndpointNameAddressScheme.cs (1)
38var entries = new Dictionary<string, Endpoint[]>(StringComparer.Ordinal);
Internal\DfaGraphWriter.cs (1)
54var visited = new Dictionary<DfaNode, int>();
Matching\AcceptsMatcherPolicy.cs (1)
150var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase);
Matching\ContentEncodingNegotiationMatcherPolicy.cs (1)
48private readonly Dictionary<string, (int destination, double quality)>? _extraDestinations;
Matching\DataSourceDependentMatcher.cs (1)
41var seenEndpointNames = new Dictionary<string, string?>();
Matching\DfaMatcherBuilder.cs (2)
28private readonly Dictionary<string, int> _assignments; 119private readonly Dictionary<string, IParameterPolicy> _cachedParameters;
Matching\DfaNode.cs (2)
28public Dictionary<string, DfaNode> Literals { get; private set; } 36public Dictionary<object, DfaNode> PolicyEdges { get; private set; }
Matching\HostMatcherPolicy.cs (1)
207var edges = new Dictionary<EdgeKey, List<Endpoint>>();
Matching\HttpMethodDestinationsLookup.cs (1)
21private readonly Dictionary<string, int>? _extraDestinations;
Matching\HttpMethodMatcherPolicy.cs (1)
175var edges = new Dictionary<EdgeKey, List<Endpoint>>();
Matching\NegotiationMatcherPolicy.cs (1)
262var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase);
Patterns\RoutePatternFactory.cs (5)
443Dictionary<string, List<RoutePatternParameterPolicyReference>>? parameterPolicyReferences, 458Dictionary<string, object?>? updatedDefaults = null; 648private static Dictionary<string, List<RoutePatternParameterPolicyReference>>? CreateRoutePatternPolicyReferences(RouteValueDictionary? parameterPolicies) 650Dictionary<string, List<RoutePatternParameterPolicyReference>>? updatedParameterPolicies = null; 1050var combinedDictionary = new Dictionary<string, TValue>(leftDictionary.Count + rightDictionary.Count, StringComparer.OrdinalIgnoreCase);
RouteCollection.cs (1)
21private readonly Dictionary<string, INamedRouter> _namedRoutes =
RouteConstraintBuilder.cs (2)
27private readonly Dictionary<string, List<IRouteConstraint>> _constraints; 54var constraints = new Dictionary<string, IRouteConstraint>(StringComparer.OrdinalIgnoreCase);
RouteOptions.cs (2)
104var defaults = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase); 173private static void AddConstraint<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConstraint>(Dictionary<string, Type> constraintMap, string text) where TConstraint : IRouteConstraint
RouteValuesAddressScheme.cs (1)
73var namedOutboundMatchResults = new Dictionary<string, List<OutboundMatchResult>>(StringComparer.OrdinalIgnoreCase);
Tree\LinkGenerationDecisionTree.cs (1)
176var results = new Dictionary<string, DecisionCriterionValue>(StringComparer.OrdinalIgnoreCase);
Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
Tree\UrlMatchingNode.cs (1)
55public Dictionary<string, UrlMatchingNode> Literals { get; }
ValidationEndpointFilterFactory.cs (1)
83var validationErrors = validateContext.ValidationErrors.ToDictionary(
Microsoft.AspNetCore.Server.HttpSys (3)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
762var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
StandardFeatureCollection.cs (1)
14private static readonly Dictionary<Type, Func<RequestContext, object?>> _featureFuncLookup = new()
Microsoft.AspNetCore.Server.IIS (3)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
762var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Server.IntegrationTesting (1)
CachingApplicationPublisher.cs (1)
10private readonly Dictionary<DotnetPublishParameters, PublishedApplication> _publishCache = new Dictionary<DotnetPublishParameters, PublishedApplication>();
Microsoft.AspNetCore.Server.Kestrel.Core (24)
Internal\CertificatePathWatcher.cs (2)
23private readonly Dictionary<string, DirectoryWatchMetadata> _metadataForDirectory = new(); 25private readonly Dictionary<string, FileWatchMetadata> _metadataForFile = new();
Internal\ConfigSectionClone.cs (1)
24public Dictionary<string, ConfigSectionClone> Children { get; }
Internal\ConfigurationReader.cs (7)
41var certificates = new Dictionary<string, CertificateConfig>(0, StringComparer.OrdinalIgnoreCase); 121private static Dictionary<string, SniConfig> ReadSni(IConfigurationSection sniConfig, string endpointName) 123var sniDictionary = new Dictionary<string, SniConfig>(0, StringComparer.OrdinalIgnoreCase); 275Dictionary<string, SniConfig> sni, 293public Dictionary<string, SniConfig> Sni { get; } 319private static bool CompareSniDictionaries(Dictionary<string, SniConfig> lhs, Dictionary<string, SniConfig> rhs)
Internal\Http\HttpHeaders.cs (2)
25protected Dictionary<string, StringValues>? MaybeUnknown; 26protected Dictionary<string, StringValues> Unknown => MaybeUnknown ??= new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Internal\Http\HttpRequestHeaders.cs (1)
249private Dictionary<string, StringValues>.Enumerator _unknownEnumerator;
Internal\Http\HttpResponseHeaders.cs (4)
42var extraHeaders = MaybeUnknown; 57static void CopyExtraHeaders(ref BufferWriter<PipeWriter> buffer, Dictionary<string, StringValues> headers) 74static void CopyExtraHeadersCustomEncoding(ref BufferWriter<PipeWriter> buffer, Dictionary<string, StringValues> headers, 148private Dictionary<string, StringValues>.Enumerator _unknownEnumerator;
Internal\Http\HttpResponseTrailers.cs (1)
57private Dictionary<string, StringValues>.Enumerator _unknownEnumerator;
Internal\Http2\Http2Connection.cs (1)
152internal readonly Dictionary<int, Http2Stream> _streams = new Dictionary<int, Http2Stream>();
Internal\Http3\Http3Connection.cs (3)
25internal readonly Dictionary<long, IHttp3Stream> _streams = new(); 26internal readonly Dictionary<long, Http3PendingStream> _unidentifiedStreams = new(); 43private readonly Dictionary<long, WebTransportSession>? _webtransportSessions;
Internal\SniOptionsSelector.cs (2)
28private readonly Dictionary<string, SniOptions> _exactNameOptions = new Dictionary<string, SniOptions>(StringComparer.OrdinalIgnoreCase); 34Dictionary<string, SniConfig> sniDictionary,
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
TlsEventPump.cs (2)
53private readonly Dictionary<int, HandshakingConnection> _handshaking = new(); 324internal Dictionary<int, HandshakingConnection> Handshakes => _handshaking;
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
11private readonly Dictionary<EncodedKey, byte[]> _store = new Dictionary<EncodedKey, byte[]>();
Microsoft.AspNetCore.SignalR.Client.Core (10)
HubConnection.cs (10)
989var readers = default(Dictionary<string, object>); 1027private Dictionary<string, object>? PackageStreamingParams(ConnectionState connectionState, ref object?[] args, out List<string>? streamIds) 1029Dictionary<string, object>? readers = null; 1084private Task[]? LaunchStreams(ConnectionState connectionState, Dictionary<string, object>? readers, CancellationToken cancellationToken) 1342var readers = default(Dictionary<string, object>); 1539var readers = default(Dictionary<string, object>); 2419private readonly Dictionary<string, InvocationRequest> _pendingCalls = new Dictionary<string, InvocationRequest>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.Parser.cs (1)
240var providerSymbols = new Dictionary<string, (ITypeSymbol, MemberAccessExpressionSyntax)>();
HubServerProxyGenerator.Parser.cs (1)
228var hubSymbols = new Dictionary<string, (ITypeSymbol, MemberAccessExpressionSyntax)>();
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (1)
25private readonly Dictionary<string, HubMethodDescriptor> _methods = new(StringComparer.OrdinalIgnoreCase);
Internal\DefaultHubProtocolResolver.cs (1)
15private readonly Dictionary<string, IHubProtocol> _availableProtocols;
Microsoft.AspNetCore.SignalR.Protocols.Json (4)
Protocol\JsonHubProtocol.cs (4)
141Dictionary<string, string>? headers = null; 481private static Dictionary<string, string> ReadHeaders(ref Utf8JsonReader reader) 483var headers = new Dictionary<string, string>(StringComparer.Ordinal); 904private static HubMessage ApplyHeaders(HubMessage message, Dictionary<string, string>? headers)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (7)
Protocol\MessagePackHubProtocolWorker.cs (7)
75var headers = ReadHeaders(ref reader); 111var headers = ReadHeaders(ref reader); 141var headers = ReadHeaders(ref reader); 161var headers = ReadHeaders(ref reader); 215var headers = ReadHeaders(ref reader); 241private static Dictionary<string, string>? ReadHeaders(ref MessagePackReader reader) 246var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Protocol\NewtonsoftJsonHubProtocol.cs (4)
137Dictionary<string, string>? headers = null; 478private static Dictionary<string, string> ReadHeaders(JsonTextReader reader) 480var headers = new Dictionary<string, string>(StringComparer.Ordinal); 927private static HubMessage ApplyHeaders(HubMessage message, Dictionary<string, string>? headers)
Microsoft.AspNetCore.SpaServices.Extensions (1)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
73var envVars = new Dictionary<string, string>
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
30private readonly Dictionary<(string Route, string ETag), StaticAssetDescriptor> _descriptorsMap = [];
Microsoft.AspNetCore.WebUtilities (13)
FormPipeReader.cs (1)
91public async Task<Dictionary<string, StringValues>> ReadFormAsync(CancellationToken cancellationToken = default)
FormReader.cs (2)
283public Dictionary<string, StringValues> ReadForm() 299public async Task<Dictionary<string, StringValues>> ReadFormAsync(CancellationToken cancellationToken = new CancellationToken())
KeyValueAccumulator.cs (3)
14private Dictionary<string, StringValues> _accumulator; 15private Dictionary<string, List<string>> _expandingAccumulator; 94public Dictionary<string, StringValues> GetResults()
MultipartReader.cs (2)
99var headers = await ReadHeadersAsync(cancellationToken); 106private async Task<Dictionary<string, StringValues>> ReadHeadersAsync(CancellationToken cancellationToken)
MultipartSection.cs (1)
47public Dictionary<string, StringValues>? Headers { get; set; }
QueryHelpers.cs (4)
121/// A collection of parsed keys and values. The returned <see cref="Dictionary{TKey, TValue}"/> always uses a 125public static Dictionary<string, StringValues> ParseQuery(string? queryString) 127var result = ParseNullableQuery(queryString); 142public static Dictionary<string, StringValues>? ParseNullableQuery(string? queryString)
Microsoft.Build (459)
BackEnd\BuildManager\BuildManager.cs (9)
134private readonly Dictionary<int, HashSet<int>> _nodeIdToKnownConfigurations; 167private readonly Dictionary<int, BuildSubmissionBase> _buildSubmissions; 192private readonly Dictionary<ProjectInstance, string> _unnamedProjectInstanceToNames; 207private readonly Dictionary<int, BuildEventArgs> _projectStartedEvents; 1242Dictionary<string, string>? tasksDetailsProperties = _telemetryConsumingLogger?.WorkerNodeTelemetryData.GetTasksDetailsProperties(); 2310Dictionary<ProjectGraphNode, BuildResult>? resultsPerNode = null; 2357private Dictionary<ProjectGraphNode, BuildResult> BuildGraph( 2372var buildingNodes = new Dictionary<BuildSubmissionBase, ProjectGraphNode>(); 2373var resultsPerNode = new Dictionary<ProjectGraphNode, BuildResult>(projectGraph.ProjectNodes.Count);
BackEnd\BuildManager\BuildParameters.cs (1)
375Dictionary<string, string> environment = new(BuildProcessEnvironmentInternal, CommunicationsUtilities.EnvironmentVariableComparer);
BackEnd\BuildManager\CacheAggregator.cs (1)
68var configIdMapping = new Dictionary<int, int>();
BackEnd\Client\MSBuildClient.cs (2)
44private readonly Dictionary<string, string> _serverEnvironmentVariables; 633Dictionary<string, string> envVars = new();
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
25private readonly Dictionary<BuildComponentType, BuildComponentEntry> _componentEntriesByType;
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
82private readonly Dictionary<int, BuildRequestEntry> _requestsByGlobalRequestId; 111private Dictionary<int, BuildRequestConfiguration> _unresolvedConfigurationsById; 116private Dictionary<ConfigurationMetadata, BuildRequestConfiguration> _unresolvedConfigurationsByMetadata; 422var environmentVariables = new Dictionary<string, string>(_componentHost.BuildParameters.BuildProcessEnvironmentInternal);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (3)
80private Dictionary<int, List<BuildRequest>> _unresolvedConfigurations; 96private Dictionary<int, BuildRequest> _outstandingRequests; 101private Dictionary<int, BuildResult> _outstandingResults;
BackEnd\Components\Communications\NodeManager.cs (1)
36private readonly Dictionary<int, INodeProvider> _nodeIdToProvider;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
1027private Dictionary<string, string> _forwardEnvironmentBaseline; 1038private Dictionary<string, string> _forwardGlobalParametersBaseline; 1209Dictionary<string, string> environment = configuration.BuildProcessEnvironment; 1231Dictionary<string, string> globalParameters = configuration.GlobalProperties;
BackEnd\Components\Logging\LoggingService.cs (1)
131private Dictionary<int, IBuildEventSink> _eventSinkDictionary;
BackEnd\Components\Logging\ProjectTelemetry.cs (11)
42private readonly Dictionary<string, int> _msbuildTaskSubclassUsage = new(); 132Dictionary<string, string> taskFactoryProperties = GetTaskFactoryProperties(); 138Dictionary<string, string> taskTotalProperties = GetTaskProperties(); 144Dictionary<string, string> msbuildTaskSubclassProperties = GetMSBuildTaskSubclassProperties(); 177private static void AddCountIfNonZero(Dictionary<string, string> properties, string propertyName, int count) 185private Dictionary<string, string> GetTaskFactoryProperties() 187Dictionary<string, string> properties = new(); 199private Dictionary<string, string> GetTaskProperties() 201Dictionary<string, string> properties = new(); 216private Dictionary<string, string> GetMSBuildTaskSubclassProperties() 218Dictionary<string, string> properties = new();
BackEnd\Components\ProjectCache\Experimental\ProxyTargets.cs (1)
23private Dictionary<string, string> _proxyTargetToRealTargetMap = null!;
BackEnd\Components\ProjectCache\ProjectCacheService.cs (5)
189var pluginSettings = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 396Dictionary<string, string> globalProperties = new(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 728var globalProperties = new Dictionary<string, string>(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 762Dictionary<string, string> templateGlobalProperties) 795var globalProperties = new Dictionary<string, string>(templateGlobalProperties, StringComparer.OrdinalIgnoreCase)
BackEnd\Components\ProjectCache\ProxyTargets.cs (1)
22private Dictionary<string, string> _proxyTargetToRealTargetMap = null!;
BackEnd\Components\RequestBuilder\BatchingEngine.cs (11)
125Dictionary<string, MetadataReference> consumedMetadataReferences = pair.Metadata; 144Dictionary<string, ICollection<ProjectItemInstance>> itemListsToBeBatched = GetItemListsToBeBatched(consumedMetadataReferences, consumedItemReferences, lookup, elementLocation); 203private static Dictionary<string, ICollection<ProjectItemInstance>> GetItemListsToBeBatched( 204Dictionary<string, MetadataReference> consumedMetadataReferences, // Key is [string] potentially qualified metadata name 212var itemListsToBeBatched = new Dictionary<string, ICollection<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default); 299Dictionary<string, ICollection<ProjectItemInstance>> itemListsToBeBatched, 300Dictionary<string, MetadataReference> consumedMetadataReferences, 325Dictionary<string, string> itemMetadataValues = GetItemMetadataValues(item, consumedMetadataReferences, elementLocation); 394private static Dictionary<string, string> GetItemMetadataValues( 396Dictionary<string, MetadataReference> consumedMetadataReferences, 399var itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (2)
683private Dictionary<string, string> _addTable; 719internal Dictionary<string, string> AddedMetadata
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (7)
239if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable)) 401private async Task<bool> BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects) 515Dictionary<string, string> propertiesTable, 535var projectProperties = new Dictionary<string, string>[projects.Length]; 560out Dictionary<string, string> preProjectPropertiesTable)) 604out Dictionary<string, string> additionalProjectPropertiesTable)) 609var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\ItemBucket.cs (4)
35private readonly Dictionary<string, string> _metadata; 63private ItemBucket(Dictionary<string, string> metadata) 78Dictionary<string, string> metadata, 137internal static ItemBucket GetDummyBucketForComparisons(Dictionary<string, string> metadata)
BackEnd\Components\RequestBuilder\Lookup.cs (22)
20using ItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>; 21using ItemTypeToItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>>; 93private Dictionary<ProjectItemInstance, ProjectItemInstance> _cloneTable; 150private ItemTypeToItemsMetadataUpdateDictionary PrimaryModifyTable 174private ItemTypeToItemsMetadataUpdateDictionary SecondaryModifyTable 202internal List<string> GetPropertyOverrideMessages(Dictionary<string, string> lookupHash) 337foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable) 339Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType; 396foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable) 471Dictionary<ProjectItemInstance, MetadataModifications> allModifies = null; 505Dictionary<ProjectItemInstance, MetadataModifications> modifies; 866Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType; 895private void ApplyModifies(List<ProjectItemInstance> result, Dictionary<ProjectItemInstance, MetadataModifications> allModifies) 984private void ApplyModificationsToTable(IItemDictionary<ProjectItemInstance> table, string itemType, ItemsMetadataUpdateDictionary modify) 1004private void MergeModificationsIntoModificationTable(Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType, 1057private void MustNotBeInTable(ItemTypeToItemsMetadataUpdateDictionary table, ProjectItemInstance item) 1059ItemsMetadataUpdateDictionary tableOfItemsOfSameType = null; 1125private Dictionary<string, MetadataModification> _modifications; 1235public Dictionary<string, MetadataModification> ExplicitModifications 1421private ItemTypeToItemsMetadataUpdateDictionary _modifies; 1517internal ItemTypeToItemsMetadataUpdateDictionary Modifies
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (34)
24using ItemVectorPartition = System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Build.Execution.ProjectItemInstance>>; 32using ItemVectorPartitionCollection = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Build.Execution.ProjectItemInstance>>>; 159out ItemVectorPartitionCollection itemVectorsInTargetInputs, 160out ItemVectorPartitionCollection itemVectorTransformsInTargetInputs, 161out Dictionary<string, string> discreteItemsInTargetInputs, 162out ItemVectorPartitionCollection itemVectorsInTargetOutputs, 163out Dictionary<string, string> discreteItemsInTargetOutputs, 404out ItemVectorPartitionCollection itemVectorsInTargetInputs, 405out ItemVectorPartitionCollection itemVectorTransformsInTargetInputs, 406out Dictionary<string, string> discreteItemsInTargetInputs, 407out ItemVectorPartitionCollection itemVectorsInTargetOutputs, 408out Dictionary<string, string> discreteItemsInTargetOutputs, 517ItemVectorPartitionCollection itemVectorsInTargetInputs, 518ItemVectorPartitionCollection itemVectorTransformsInTargetInputs, 519Dictionary<string, string> discreteItemsInTargetInputs, 590ItemVectorPartitionCollection itemVectorsInTargetInputs, 591ItemVectorPartitionCollection itemVectorsInTargetOutputs, 606ItemVectorPartition inputItemVectors = itemVectorsInTargetInputs[itemVectorType]; 607ItemVectorPartition outputItemVectors = itemVectorsInTargetOutputs[itemVectorType]; 736ItemVectorPartitionCollection itemVectorsInTargetInputs, 737ItemVectorPartitionCollection itemVectorTransformsInTargetInputs, 738Dictionary<string, string> discreteItemsInTargetInputs, 794out ItemVectorPartitionCollection itemVectors, 795ItemVectorPartitionCollection itemVectorTransforms, 796out Dictionary<string, string> discreteItems, 827ItemVectorPartitionCollection itemVectorCollection; 839if (!itemVectorCollection.TryGetValue(itemVectorType, out ItemVectorPartition itemVectorPartition)) 860private static bool IsItemVectorEmpty(ItemVectorPartitionCollection itemVectors) 862foreach (KeyValuePair<string, ItemVectorPartition> item in itemVectors) 878private static List<string> GetItemSpecsFromItemVectors(ItemVectorPartitionCollection itemVectors) 882foreach (KeyValuePair<string, ItemVectorPartition> item in itemVectors) 897private static IEnumerable<string> GetItemSpecsFromItemVectors(ItemVectorPartitionCollection itemVectors, string itemType, ItemVectorPartition itemVectorPartition)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
340Dictionary<string, string> lookupHash = null; 391private async ValueTask<WorkUnitResult> ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary<string, string> lookupHash)
BackEnd\Components\Scheduler\SchedulableRequest.cs (2)
96private Dictionary<BlockingRequestKey, SchedulableRequest> _requestsWeAreBlockedBy; 121private Dictionary<SchedulableRequestState, ScheduleTimeRecord> _timeRecords;
BackEnd\Components\Scheduler\Scheduler.cs (3)
102private Dictionary<int, NodeInfo> _availableNodes; 1358Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 2418Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count);
BackEnd\Components\Scheduler\SchedulingData.cs (11)
24private readonly Dictionary<int, SchedulableRequest> _executingRequests = new Dictionary<int, SchedulableRequest>(32); 29private readonly Dictionary<int, SchedulableRequest> _blockedRequests = new Dictionary<int, SchedulableRequest>(32); 34private readonly Dictionary<int, SchedulableRequest> _yieldingRequests = new Dictionary<int, SchedulableRequest>(32); 39private readonly Dictionary<int, SchedulableRequest> _readyRequests = new Dictionary<int, SchedulableRequest>(32); 50private readonly Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>> _unscheduledRequestNodesByRequest = new Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>>(32); 59private readonly Dictionary<int, HashSet<SchedulableRequest>> _scheduledRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32); 74private readonly Dictionary<int, HashSet<SchedulableRequest>> _readyRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32); 79private readonly Dictionary<int, HashSet<int>> _configurationsByNode = new Dictionary<int, HashSet<int>>(32); 87private readonly Dictionary<int, int> _configurationToNode = new Dictionary<int, int>(32); 92private readonly Dictionary<int, HashSet<SchedulableRequest>> _configurationToRequests = new Dictionary<int, HashSet<SchedulableRequest>>(32); 110private readonly Dictionary<SchedulableRequest, List<SchedulableRequest>> _buildHierarchy = new Dictionary<SchedulableRequest, List<SchedulableRequest>>(32);
BackEnd\Components\Scheduler\SchedulingPlan.cs (5)
37private Dictionary<string, PlanConfigData> _configPathToData = new Dictionary<string, PlanConfigData>(); 42private Dictionary<int, PlanConfigData> _configIdToData = new Dictionary<int, PlanConfigData>(); 47private Dictionary<int, List<Stack<PlanConfigData>>> _configIdToPaths = new Dictionary<int, List<Stack<PlanConfigData>>>(); 110Dictionary<int, double> accumulatedTimeByConfiguration = new Dictionary<int, double>(); 459private void RecursiveAccumulateConfigurationTimes(SchedulableRequest request, Dictionary<int, double> accumulatedTimeByConfiguration)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
45private Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>> _manifestToResolvers;
BackEnd\Components\SdkResolution\TranslationHelpers.cs (1)
40Dictionary<string, string> metadata = null;
BackEnd\Node\ServerNodeBuildCommand.cs (3)
18private Dictionary<string, string> _buildProcessEnvironment = default!; 43public Dictionary<string, string> BuildProcessEnvironment => _buildProcessEnvironment; 81Dictionary<string, string> buildProcessEnvironment,
BackEnd\Shared\BuildRequestConfiguration.cs (3)
126private Dictionary<string, int> _activelyBuildingTargets; 496Dictionary<string, string> globalProperties = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 644public Dictionary<string, int> ActivelyBuildingTargets => _activelyBuildingTargets ?? (_activelyBuildingTargets =
BackEnd\Shared\BuildResult.cs (1)
674Dictionary<string, string> additionalEntries = new();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
176private readonly Dictionary<string, TaskFactoryWrapper> _intrinsicTasks = new Dictionary<string, TaskFactoryWrapper>(StringComparer.OrdinalIgnoreCase); 576var setParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1846else if (customMetadata is Dictionary<string, string> dictionary)
BuildCheck\API\CheckConfiguration.cs (4)
70internal static CheckConfiguration Create(Dictionary<string, string>? configDictionary) => new() 76private static EvaluationCheckScope? TryExtractEvaluationCheckScope(Dictionary<string, string>? config) 101private static CheckResultSeverity? TryExtractSeverity(Dictionary<string, string>? config) 128private static bool TryExtractValue(string key, Dictionary<string, string>? config, out string? stringValue)
BuildCheck\Checks\DoubleWritesCheck.cs (1)
47private readonly Dictionary<string, (string projectFilePath, string taskName)> _filesWritten = new(StringComparer.CurrentCultureIgnoreCase);
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
37private readonly Dictionary<string, (string, string)> _projectsPerReferencePath = new(MSBuildNameIgnoreCaseComparer.Default); 38private readonly Dictionary<string, string> _projectsPerOutputPath = new(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
121private Dictionary<string, IMSBuildElementLocation?> _writenProperties = new(MSBuildNameIgnoreCaseComparer.Default); 126private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsInScope = new(MSBuildNameIgnoreCaseComparer.Default); 127private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsOutOfScope = new(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
36private readonly Dictionary<string, string> _projectsPerOutputPath = new(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (6)
18private Dictionary<Type, Action<BuildEventArgs>> _eventHandlers; 19private readonly Dictionary<Type, Action<BuildEventArgs>> _eventHandlersFull; 20private readonly Dictionary<Type, Action<BuildEventArgs>> _eventHandlersRestore; 190Dictionary<string, TimeSpan> infraStats = _tracingData.InfrastructureTracingData; 193Dictionary<string, TimeSpan> checkStats = _tracingData.ExtractCheckStats(); 208private string BuildCsvString(string title, Dictionary<string, TimeSpan> rowData)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (3)
431Dictionary<string, string>? propertiesLookup = null; 548private readonly Dictionary<int, HashSet<string>> _deferredProjectEvalIdToImportedProjects = new(); 662private readonly Dictionary<int, List<BuildEventArgs>> _deferredEvalDiagnostics = new();
BuildCheck\Infrastructure\BuildEventsProcessor.cs (8)
26public Dictionary<string, TaskInvocationCheckData.TaskParameter> TaskParameters; 45private readonly Dictionary<TaskKey, ExecutingTaskData> _tasksBeingExecuted = []; 47internal static Dictionary<string, string> ExtractEvaluatedPropertiesLookup( 51private static Dictionary<string, string> ExtractPropertiesLookup(System.Collections.IEnumerable? propertiesFromEventArgs) 53Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(); 67Dictionary<string, string>? propertiesLookup) 72var globalPropertiesLookup = ExtractPropertiesLookup(evaluationFinishedEventArgs.GlobalProperties); 152Dictionary<string, TaskInvocationCheckData.TaskParameter> taskParameters = new();
BuildCheck\Infrastructure\ConfigurationProvider.cs (13)
28private readonly ConcurrentDictionary<string, Dictionary<string, string>> _editorConfigData = new ConcurrentDictionary<string, Dictionary<string, string>>(StringComparer.InvariantCultureIgnoreCase); 52var configuration = GetConfiguration(projectFullPath, ruleId); 162private Dictionary<string, string> FilterDictionaryByKeys(string keyFilter, Dictionary<string, string> originalConfiguration, bool updateKey = false) 164var filteredConfig = new Dictionary<string, string>(); 190private Dictionary<string, string> FetchEditorConfigRules(string projectFullPath) 192var editorConfigRules = _editorConfigData.GetOrAdd(projectFullPath, (key) => 194Dictionary<string, string> config; 206Dictionary<string, string> filteredData = FilterDictionaryByKeys($"{BuildCheck_ConfigurationKey}.", config); 213internal Dictionary<string, string> GetConfiguration(string projectFullPath, string ruleId) 215var config = FetchEditorConfigRules(projectFullPath); 237var config = GetConfiguration(projectFullPath, ruleId);
BuildCheck\Infrastructure\CustomConfigurationData.cs (1)
25public CustomConfigurationData(string ruleId, Dictionary<string, string> properties)
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (3)
27internal Dictionary<string, string> Parse(string filePath) 79internal Dictionary<string, string> MergeEditorConfigFiles(List<EditorConfigFile> editorConfigFiles, string filePath) 81var resultingDictionary = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
BuildCheck\Infrastructure\TracingReporter.cs (1)
31public Dictionary<string, TimeSpan> GetInfrastructureTracingStats()
Collections\HashTableUtility.cs (2)
24internal static int Compare(Dictionary<string, string> h1, Dictionary<string, string> h2)
Collections\ItemDictionary.cs (1)
40private readonly Dictionary<string, List<T>> _itemLists;
Collections\ItemDictionarySlim.cs (2)
16private readonly Dictionary<string, List<ProjectItemInstance>> _itemLists; 107public Dictionary<string, List<ProjectItemInstance>>.Enumerator GetEnumerator() => _itemLists.GetEnumerator();
Collections\LookasideStringInterner.cs (1)
37private readonly Dictionary<string, int> _stringToIdsMap;
Collections\MultiDictionary.cs (1)
55private Dictionary<K, SmallList<V>> _backing;
Collections\PropertyDictionary.cs (2)
562internal Dictionary<string, string> ToDictionary() 566var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default);
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (1)
44/// This uses an array-based implementation similar to <see cref="Dictionary{TKey, TValue}" />, using a buckets array
Collections\WeakValueDictionary.cs (1)
25private readonly Dictionary<K, WeakReference<V>> _dictionary;
Construction\ProjectTaskElement.cs (1)
149var parametersClone = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Construction\Solution\ProjectInSolution.cs (1)
121private readonly Dictionary<string, ProjectConfigurationInSolution> _projectConfigurations;
Construction\Solution\SolutionFile.cs (8)
108private Dictionary<string, ProjectInSolution> _projectsByGuid; 111private Dictionary<string, ProjectInSolution> _solutionFoldersByGuid; 117private Dictionary<string, SolutionConfigurationInSolution> _solutionConfigurationsByFullName; 776Dictionary<string, string> rawProjectConfigurationsEntries = null; 826var projectsByUniqueName = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 1707internal Dictionary<string, string> ParseProjectConfigurations() 1709var rawProjectConfigurationsEntries = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1743internal void ProcessProjectConfigurationSection(Dictionary<string, string> rawProjectConfigurationsEntries)
Construction\Solution\SolutionProjectGenerator.cs (1)
2138var properties = new Dictionary<string, string>(_metaprojectGlobalProperties.Length, StringComparer.OrdinalIgnoreCase);
Definition\Project.cs (2)
2175var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 4037public Dictionary<string, List<string>> ConditionedProperties { get; private set; }
Definition\ProjectCollection.cs (4)
151private Dictionary<string, Toolset> _toolsets; 670Dictionary<string, string> dictionary; 1322var mergedProperties = new Dictionary<string, string>(globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default); 2006private Dictionary<string, List<Project>> _loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase);
Definition\Toolset.cs (7)
139private Dictionary<string, SubToolset> _subToolsets; 151private Dictionary<string, ProjectImportPathMatch> _propertySearchPathsTable; 255Dictionary<string, ProjectImportPathMatch> importSearchPathsTable = null) 267Dictionary<string, SubToolset> subToolsetsAsDictionary = subToolsets as Dictionary<string, SubToolset>; 488internal Dictionary<string, ProjectImportPathMatch> ImportPropertySearchPathsTable => _propertySearchPathsTable; 493internal Dictionary<MSBuildExtensionsPathReferenceKind, IList<string>> MSBuildExtensionsPathSearchPathsTable
Definition\ToolsetConfigurationReader.cs (7)
55private readonly Dictionary<string, Dictionary<string, ProjectImportPathMatch>> _projectImportSearchPathsCache; 73_projectImportSearchPathsCache = new Dictionary<string, Dictionary<string, ProjectImportPathMatch>>(StringComparer.OrdinalIgnoreCase); 206protected override Dictionary<string, ProjectImportPathMatch> GetProjectImportSearchPathsTable(string toolsVersion, string os) 208Dictionary<string, ProjectImportPathMatch> kindToPathsCache; 232private Dictionary<string, ProjectImportPathMatch> ComputeDistinctListOfSearchPaths(ToolsetElement.PropertyElementCollection propertyCollection) 234var pathsTable = new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetLocalReader.cs (1)
49protected override Dictionary<string, ProjectImportPathMatch> GetProjectImportSearchPathsTable(string toolsVersion, string os)
Definition\ToolsetReader.cs (7)
81internal static string ReadAllToolsets(Dictionary<string, Toolset> toolsets, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties, ToolsetDefinitionLocations locations) 96Dictionary<string, Toolset> toolsets, 351Dictionary<string, Toolset> toolsets, 403protected abstract Dictionary<string, ProjectImportPathMatch> GetProjectImportSearchPathsTable(string toolsVersion, string os); 409Dictionary<string, Toolset> toolsets, 465Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase); 505var importSearchPathsTable = GetProjectImportSearchPathsTable(toolsVersion.Name, NativeMethodsShared.GetOSNameForExtensionsPath());
Evaluation\ConditionEvaluator.cs (5)
35Dictionary<string, List<string>> conditionedPropertiesTable, 218Dictionary<string, List<string>>? conditionedPropertiesTable, 362Dictionary<string, List<string>>? ConditionedPropertiesInProject { get; } 419public Dictionary<string, List<string>>? ConditionedPropertiesInProject { get; } 430Dictionary<string, List<string>>? conditionedPropertiesInProject,
Evaluation\Evaluator.cs (11)
119private readonly Dictionary<string, ProjectImportElement> _importsSeen; 138private readonly Dictionary<ProjectRootElement, bool> _projectSupportsReturnsAttribute; 844Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 845Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 847Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets = new Dictionary<string, LinkedListNode<ProjectTargetElement>>(StringComparer.OrdinalIgnoreCase); 938var pluginSettings = item.Metadata.ToDictionary(m => m.Key, m => m.EscapedValue); 1119private void ReadTargetElement(ProjectTargetElement targetElement, LinkedList<ProjectTargetElement> activeTargetsByEvaluationOrder, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets) 1143private void AddBeforeAndAfterTargetMappings(ProjectTargetElement targetElement, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets, Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget, Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget) 2067Dictionary<string, string> escapedMetadata = null;
Evaluation\EvaluatorMetadataTable.cs (1)
21private Dictionary<string, string>? _metadata;
Evaluation\Expander.ItemExpander.Transforms.cs (1)
325Dictionary<string, string> directoryNameTable = new Dictionary<string, string>(input.Count, StringComparer.OrdinalIgnoreCase);
Evaluation\GlobResultBuilder.cs (2)
80var removeElementCache = new Dictionary<string, CumulativeRemoveElementData>(projectItemElements.Count); 172private static void CacheInformationFromRemoveItem<P, I>(ProjectItemElement itemElement, Dictionary<string, CumulativeRemoveElementData> removeElementCache, Expander<P, I> expander)
Evaluation\IEvaluatorData.cs (1)
143Dictionary<string, List<string>> ConditionedProperties
Evaluation\ItemsAndMetadataPair.cs (3)
25private Dictionary<string, MetadataReference> _metadata; 32internal ItemsAndMetadataPair(HashSet<string> items, Dictionary<string, MetadataReference> metadata) 59internal Dictionary<string, MetadataReference> Metadata
Evaluation\ItemSpec.cs (1)
576private readonly Dictionary<string, MetadataTrie<P, I>> _children;
Evaluation\LazyItemEvaluator.cs (4)
42private Dictionary<string, LazyItemList> _itemLists = Traits.Instance.EscapeHatches.UseCaseSensitiveItemNames ? 168private Dictionary<ISet<string>, OrderedItemDataCollection> _cache; 364Dictionary<string, UpdateOperation> itemsWithNoWildcards = new Dictionary<string, UpdateOperation>(StringComparer.OrdinalIgnoreCase); 437private static void ProcessNonWildCardItemUpdates(Dictionary<string, UpdateOperation> itemsWithNoWildcards, OrderedItemDataCollection.Builder items)
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
70public Dictionary<string, List<string>> ConditionedProperties => _wrappedData.ConditionedProperties;
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (4)
91private Dictionary<string, I> CapturedItems { get; } 93public ItemBatchingContext(I operationItem, Dictionary<string, I> capturedItems = null) 122private readonly Dictionary<string, I> _capturedItems; 124public ItemOperationMetadataTable(I operationItem, Dictionary<string, I> capturedItems)
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (3)
35private Dictionary<string, ItemDataCollectionValue<I>> _dictionaryBuilder; 100public Dictionary<string, ItemDataCollectionValue<I>> Dictionary 148var dictionary = Dictionary;
Evaluation\LazyItemEvaluator.UpdateOperation.cs (4)
33public Dictionary<string, I> CapturedItemsFromReferencedItemTypes { get; } 35public MatchResult(bool isMatch, Dictionary<string, I> capturedItemsFromReferencedItemTypes) 93private ItemData UpdateItem(ItemData item, Dictionary<string, I> capturedItemsFromReferencedItemTypes) 124Dictionary<string, I> capturedItemsFromReferencedItemTypes = null;
Evaluation\ParserIgnoreConfiguration.cs (6)
51private Dictionary<string, HashSet<string>> _allowedAttributes; 52private Dictionary<string, HashSet<string>> _allowedChildren; 242private static void UnionEntries(Dictionary<string, HashSet<string>> destination, Dictionary<string, HashSet<string>> source) 316Dictionary<string, HashSet<string>>? target = null; 356private static void AddAllowedName(Dictionary<string, HashSet<string>> destination, string elementName, string unknownName)
Evaluation\Preprocessor.cs (2)
40private readonly Dictionary<XmlElement, IList<ProjectRootElement>> _importTable; 56private readonly Dictionary<XmlDocument, List<ResolvedImport>> _implicitImportsByProject = new Dictionary<XmlDocument, List<ResolvedImport>>();
Evaluation\Profiler\EvaluationProfiler.cs (1)
23private readonly Dictionary<EvaluationLocation, ProfiledLocation> _timeSpent = new Dictionary<EvaluationLocation, ProfiledLocation>();
Evaluation\PropertiesUseTracker.cs (1)
38private Dictionary<string, IElementLocation>? _properties;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
150public Dictionary<string, List<string>> ConditionedProperties => _wrapped.ConditionedProperties;
Evaluation\StringMetadataTable.cs (2)
23private Dictionary<string, string> _metadata; 31internal StringMetadataTable(Dictionary<string, string> metadata)
Evaluation\ToolsetElement.cs (3)
172private Dictionary<string, string> _previouslySeenOS = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 347private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 526private Dictionary<string, string> _previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\ToolsetProvider.cs (1)
23private Dictionary<string, Toolset> _toolsets;
Graph\GraphBuilder.cs (12)
100var allParsedProjects = FindGraphNodes(); 132private void AddEdges(Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects) 146private void AddEdgesFromProjectReferenceItems(Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects, GraphEdges edges) 148Dictionary<ProjectGraphNode, HashSet<ProjectGraphNode>> transitiveReferenceCache = new(allParsedProjects.Count); 214var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>(); 320Dictionary<string, ImmutableDictionary<string, string>> globalPropertiesForProjectConfiguration = new(StringComparer.OrdinalIgnoreCase); 324Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new(); 454Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects) 456var nodeStates = new Dictionary<ProjectGraphNode, NodeVisitationState>(); 538var globalProperties = configurationMetadata.GlobalProperties.ToDictionary(); 596private Dictionary<ConfigurationMetadata, ParsedProject> FindGraphNodes() 645Dictionary<string, string> globalProperties,
Graph\ParallelWorkSet.cs (2)
45internal Dictionary<TKey, TResult> CompletedWork 49var completedWork = new Dictionary<TKey, TResult>(_inProgressOrCompletedWork.Count);
Graph\ProjectGraph.cs (5)
57Dictionary<string, string> globalProperties, 594var inDegree = graphNodes.ToDictionary(n => n, n => n.ReferencingProjects.Count); 643var targetLists = ProjectNodes.ToDictionary(node => node, node => ImmutableList<string>.Empty); 970Dictionary<string, string> globalProperties, 984Dictionary<string, string> globalProperties,
Graph\ProjectInterpretation.cs (2)
286public void AddInnerBuildEdges(Dictionary<ConfigurationMetadata, ParsedProject> allNodes, GraphBuilder graphBuilder) 472out var propertiesTable))
Instance\HostServices.cs (4)
52private Dictionary<string, HostObjects> _hostObjectMap; 58private Dictionary<string, NodeAffinity> _projectAffinities; 312var hostObjectMap = new Dictionary<string, HostObjects>(); 411internal Dictionary<TargetTaskKey, MonikerNameOrITaskHost> _hostObjects;
Instance\ProjectInstance.cs (10)
401var projectItemToInstanceMap = this.CreateItemsSnapshot(project.Items, project.ItemTypes.Count, keepEvaluationCache); 702var projectItemToInstanceMap = this.CreateItemsSnapshot(new ReadOnlyCollection<ProjectItem>(data.Items), data.ItemTypes.Count, keepEvaluationCache); 1605Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties 1606=> Assumed.Unreachable<Dictionary<string, List<string>>>(); 2706Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase); 2756Dictionary<string, string> globalProperties, 3187Dictionary<string, TValue> clone; 3467private void CreateEvaluatedIncludeSnapshotIfRequested(bool keepEvaluationCache, ICollection<ProjectItem> items, Dictionary<ProjectItem, ProjectItemInstance> projectItemToInstanceMap) 3486private Dictionary<ProjectItem, ProjectItemInstance> CreateItemsSnapshot(ICollection<ProjectItem> items, int itemTypeCount, bool keepEvaluationCache) 3490var projectItemToInstanceMap = keepEvaluationCache ? new Dictionary<ProjectItem, ProjectItemInstance>(items.Count) : null;
Instance\ProjectItemInstance.cs (3)
620internal static void SetMetadata(Dictionary<string, string> metadataList, List<ProjectItemInstance> items) 1633Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(metadata.Count, MSBuildNameIgnoreCaseComparer.Default); 1650Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectTaskInstance.cs (1)
237Dictionary<string, string> filteredParameters = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Instance\TaskFactories\TaskHostTask.cs (2)
447private Dictionary<string, string> GetGlobalPropertiesForTaskHost() 452var result = new Dictionary<string, string>(requestProperties.Count);
Instance\TaskFactoryWrapper.cs (4)
254Dictionary<string, TaskPropertyInfo>? propertyInfoCache = null; 255Dictionary<string, string>? namesOfPropertiesWithRequiredAttribute = null; 256Dictionary<string, string>? namesOfPropertiesWithOutputAttribute = null; 257Dictionary<string, string>? namesOfPropertiesWithAmbiguousMatches = null;
Instance\TaskRegistry.cs (6)
147private Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> _taskRegistrations; 154private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>(); 738private static Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> CreateRegisteredTaskDictionary(int? capacity = null) 1068private Dictionary<RegisteredTaskIdentity, object> _taskNamesCreatableByFactory; 1508var taskFactoryParams = new Dictionary<string, string>(3) 1932_taskRegistrations = (Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>)copy;
Logging\BaseConsoleLogger.cs (6)
673internal static PerformanceCounter GetPerformanceCounter(string scopeName, ref Dictionary<string, PerformanceCounter> table) 696internal void DisplayCounters(Dictionary<string, PerformanceCounter> counters) 1183internal Dictionary<string, PerformanceCounter> projectPerformanceCounters; 1188internal Dictionary<string, PerformanceCounter> targetPerformanceCounters; 1193internal Dictionary<string, PerformanceCounter> taskPerformanceCounters; 1198internal Dictionary<string, PerformanceCounter> projectEvaluationPerformanceCounters;
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
720var d = new Dictionary<EvaluationLocation, ProfiledLocation>(count); 1575var result = new Dictionary<string, string>(count);
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
75private readonly Dictionary<HashKey, int> stringHashes = new Dictionary<HashKey, int>(); 80private readonly Dictionary<HashKey, int> nameValueListHashes = new Dictionary<HashKey, int>(); 355Dictionary<string, TimeSpan> stats = e.TracingData.ExtractCheckStats();
Logging\BinaryLogger\ExtendedDataFields.cs (2)
24public Dictionary<string, string?>? ExtendedMetadataAsDictionary => 27ExtendedMetadata is Dictionary<string, string?> asDictionary ?
Logging\ParallelLogger\ParallelConsoleLogger.cs (6)
30internal Dictionary<(int nodeId, int contextId), string> propertyOutputMap = new Dictionary<(int nodeId, int contextId), string>(); 442var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 1668internal static new MPPerformanceCounter GetPerformanceCounter(string scopeName, ref Dictionary<string, PerformanceCounter> table) 1695private Dictionary<string, PerformanceCounter> _internalPerformanceCounters; 1700private Dictionary<BuildEventContext, object> _startedEvent; 1805private Dictionary<BuildEventContext, List<BuildMessageEventArgs>> _deferredMessages;
Logging\ParallelLogger\ParallelLoggerHelpers.cs (4)
20private Dictionary<BuildEventContext, ProjectStartedEventMinimumFields> _projectStartedEvents; 21private Dictionary<BuildEventContext, TargetStartedEventMinimumFields> _targetStartedEvents; 22private Dictionary<string, int> _projectTargetKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 23private Dictionary<string, int> _projectKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Logging\ProfilerLogger.cs (6)
34private Dictionary<EvaluationLocation, ProfiledLocation> _aggregatedLocations = null; 132var mergeMap = new Dictionary<long, long>(); 135var originalLocations = new Dictionary<EvaluationLocation, EvaluationLocation>(EvaluationLocationIdAgnosticComparer.Singleton); 215private static Dictionary<EvaluationLocation, ProfiledLocation> PruneSmallItems( 218var result = new Dictionary<EvaluationLocation, ProfiledLocation>(); 221var idTable = aggregatedLocations.ToDictionary(pair => pair.Key.Id,
Logging\TerminalLogger\TerminalLogger.cs (2)
105private readonly Dictionary<ProjectContext, TerminalProjectInfo> _projects = []; 107private readonly Dictionary<EvalContext, EvalProjectInfo> _projectEvaluations = [];
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\9f0d3f3da306d8cf\ICollectionExtensions.cs (1)
68public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\9f0d3f3da306d8cf\IEnumerableExtensions.cs (2)
802internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 805var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (7)
859this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 1148internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 1176(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1210internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1211(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1222var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (4)
546internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 551var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 564var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 578var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\msbuild\src\Shared\NodePacketFactory.cs (1)
18private Dictionary<NodePacketType, PacketFactoryRecord> _packetFactories;
src\msbuild\src\Shared\PlatformNegotiation.cs (4)
24Dictionary<string, string>? currentProjectLookupTable = ExtractLookupTable(platformLookupTable, log); 34Dictionary<string, string>? projectReferenceLookupTable = ExtractLookupTable(projectReferenceLookupTableMetadata, log); 99internal static Dictionary<string, string>? ExtractLookupTable(string stringTable, TaskLoggingHelper? log = null) 106Dictionary<string, string> table = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\PropertyParser.cs (2)
27internal static bool GetTable(TaskLoggingHelper log, string parameterName, string[] propertyList, out Dictionary<string, string> propertiesTable) 83internal static bool GetTableWithEscaping(TaskLoggingHelper log, string parameterName, string syntaxName, string[] propertyNameValueStrings, out Dictionary<string, string> finalPropertiesTable)
src\msbuild\src\Shared\TaskHostBuildRequest.cs (7)
20private Dictionary<string, string>?[]? _globalProperties; 32Dictionary<string, string>?[]? globalProperties, 60public Dictionary<string, string>?[]? GlobalProperties => _globalProperties; 75internal static Dictionary<string, string>?[]? ConvertGlobalProperties(IDictionary[]? globalProperties) 82var result = new Dictionary<string, string>?[globalProperties.Length]; 170_globalProperties = new Dictionary<string, string>?[length]; 175Dictionary<string, string>? dict = _globalProperties![i];
src\msbuild\src\Shared\TaskHostBuildResponse.cs (11)
23private List<Dictionary<string, TaskParameter>>? _targetOutputsPerProject; 29public TaskHostBuildResponse(int requestId, bool success, List<Dictionary<string, TaskParameter>>? targetOutputsPerProject) 48public List<Dictionary<string, TaskParameter>>? TargetOutputsPerProject => _targetOutputsPerProject; 62foreach (Dictionary<string, TaskParameter> projectOutputs in _targetOutputsPerProject) 64var dict = new Dictionary<string, ITaskItem[]>(projectOutputs.Count, StringComparer.OrdinalIgnoreCase); 87List<Dictionary<string, TaskParameter>>? outputs = null; 91outputs = new List<Dictionary<string, TaskParameter>>(engineResult.TargetOutputsPerProject.Count); 95var dict = new Dictionary<string, TaskParameter>(projectOutputs?.Count ?? 0, StringComparer.OrdinalIgnoreCase); 135_targetOutputsPerProject = new List<Dictionary<string, TaskParameter>>(count); 138Dictionary<string, TaskParameter>? dict = null; 147Dictionary<string, TaskParameter>? dict = _targetOutputsPerProject![i];
src\msbuild\src\Shared\TaskHostConfiguration.cs (10)
33private Dictionary<string, string> _buildProcessEnvironment; 112private Dictionary<string, TaskParameter> _taskParameters; 114private Dictionary<string, string> _globalParameters; 191Dictionary<string, string> globalParameters, 204_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 274public Dictionary<string, string> BuildProcessEnvironment 297internal void SetResolvedBuildProcessEnvironment(Dictionary<string, string> environment) 318internal void SetResolvedGlobalParameters(Dictionary<string, string> globalParameters) 459public Dictionary<string, TaskParameter> TaskParameters 469public Dictionary<string, string> GlobalProperties
src\msbuild\src\Shared\TaskHostTaskComplete.cs (5)
85private Dictionary<string, TaskParameter> _taskOutputParameters = null; 90private Dictionary<string, string> _buildProcessEnvironment = null; 135_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 197public Dictionary<string, TaskParameter> TaskOutputParameters 214public Dictionary<string, string> BuildProcessEnvironment
src\msbuild\src\Shared\TaskParameter.cs (2)
571private Dictionary<string, string> _customEscapedMetadata = null; 589_customEscapedMetadata = nonGenericEscapedMetadata as Dictionary<string, string>;
src\msbuild\src\Shared\Tracing.cs (1)
27private static readonly Dictionary<string, int> s_counts;
src\msbuild\src\Shared\TypeLoader.cs (3)
280Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length); 304private static void AddAssembliesToDictionary(Dictionary<string, string> assembliesDictionary, params string[][] assemblyPathArrays) 406private Dictionary<string, Type> _publicTypeNameToType;
TelemetryInfra\TasksDetailsTelemetry.cs (1)
36internal static Dictionary<string, string>? GetTasksDetailsProperties(this IWorkerNodeTelemetryData? telemetryData)
Microsoft.Build.Framework (96)
BackEnd\CommunicationsUtilities.cs (1)
294Dictionary<string, string> table = new(vars.Count, EnvironmentVariableComparer);
BackEnd\TranslatorHelpers.cs (9)
87ref Dictionary<string, T> dictionary, 96ref Dictionary<string, string> dictionary, 105dictionary = (Dictionary<string, string>)localDict; 110ref Dictionary<string, T> dictionary, 122dictionary = (Dictionary<string, T>)localDict; 127ref Dictionary<string, string> dictionary, 138dictionary = (Dictionary<string, string>)localDict; 143ref Dictionary<string, T> dictionary, 155dictionary = (Dictionary<string, T>)localDict;
BinaryReaderExtensions.cs (2)
125public static Dictionary<string, TimeSpan> ReadDurationDictionary(this BinaryReader reader) 128var durations = new Dictionary<string, TimeSpan>(count);
BinaryTranslator.cs (9)
595public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer) 603dictionary = (Dictionary<string, string>)copy; 617public void TranslateDictionary(ref IDictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys) 724public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory) 791public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer) 1436public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer) 1453public void TranslateDictionary(ref IDictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys) 1576public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory) 1645public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer)
BinaryWriterExtensions.cs (1)
134public static void WriteDurationsDictionary(this BinaryWriter writer, Dictionary<string, TimeSpan> durations)
BuildCheck\BuildCheckEventArgs.cs (2)
28internal BuildCheckTracingEventArgs(Dictionary<string, TimeSpan> executionData) 79var infrastructureTracingData = reader.ReadDurationDictionary();
BuildCheck\BuildCheckTracingData.cs (7)
16Dictionary<string, BuildCheckRuleTelemetryData> telemetryData, 17Dictionary<string, TimeSpan> infrastructureTracingData) 19public BuildCheckTracingData(IReadOnlyList<BuildCheckRuleTelemetryData> telemetryData, Dictionary<string, TimeSpan> infrastructureTracingData) 27internal BuildCheckTracingData(Dictionary<string, TimeSpan> executionData) 31public Dictionary<string, BuildCheckRuleTelemetryData> TelemetryData { get; private set; } = telemetryData; 32public Dictionary<string, TimeSpan> InfrastructureTracingData { get; private set; } = infrastructureTracingData; 37public Dictionary<string, TimeSpan> ExtractCheckStats() =>
BuildException\BuildExceptionSerializationHelper.cs (2)
24private static Dictionary<string, Func<string, Exception?, BuildExceptionBase>>? s_exceptionFactories; 49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
BuildSubmissionStartedEventArgs.cs (1)
83Dictionary<string, string?> globalProperties = new Dictionary<string, string?>(numberOfProperties);
Collections\ReadOnlyEmptyDictionary.cs (1)
23private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>();
Coordinator\Messages\Message.FactoryBase.Group.cs (1)
20var map = new Dictionary<TMessageType, TFactory>(factories.Length);
DotnetHostEnvironmentHelper.cs (1)
94var overrides = new Dictionary<string, string?>
EscapingUtilities.cs (1)
32private static readonly Dictionary<string, string> s_escapedStringCache = new(StringComparer.Ordinal);
ExtendedBuildErrorEventArgs.cs (1)
21public Dictionary<string, string?>? ExtendedMetadata { get; set; }
ExtendedBuildMessageEventArgs.cs (1)
20public Dictionary<string, string?>? ExtendedMetadata { get; set; }
ExtendedBuildWarningEventArgs.cs (1)
21public Dictionary<string, string?>? ExtendedMetadata { get; set; }
ExtendedCriticalBuildMessageEventArgs.cs (1)
20public Dictionary<string, string?>? ExtendedMetadata { get; set; }
ExtendedCustomBuildEventArgs.cs (1)
20public Dictionary<string, string?>? ExtendedMetadata { get; set; }
Features.cs (1)
39private static readonly Dictionary<string, FeatureStatus> _featureStatusMap = new Dictionary<string, FeatureStatus>
IExtendedBuildEventArgs.cs (1)
25Dictionary<string, string?>? ExtendedMetadata { get; set; }
InterningReadTranslator.cs (1)
23private Dictionary<InternPathIds, string> _pathIdsToString = [];
InterningWriteTranslator.cs (2)
40private Dictionary<string, int> _stringToIds = []; 42private Dictionary<string, InternPathIds> _stringToPathIds = [];
ITranslator.cs (4)
345void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer); 364void TranslateDictionary(ref IDictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys); 368void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer); 382void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslatorWithValueFactory<T> objectTranslator, NodePacketValueFactory<T> valueFactory)
Loader\CoreCLRAssemblyLoader.cs (2)
26private readonly Dictionary<string, Assembly> _pathsToAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase); 27private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
MultiThreadedTaskEnvironmentDriver.cs (1)
22private readonly Dictionary<string, string> _environmentVariables;
MutableTaskItem.cs (1)
16private readonly Dictionary<string, string> _metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Profiler\EvaluationLocation.cs (1)
62private static readonly Dictionary<EvaluationPass, string> PassDefaultDescription =
Sdk\SdkResultItem.cs (2)
19public Dictionary<string, string>? Metadata { get; } 32public SdkResultItem(string itemSpec, Dictionary<string, string>? metadata)
SolutionConfiguration.cs (5)
24private readonly Dictionary<string, XmlElement> _cachedProjectElements; 27private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath; 30private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid; 33private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath; 36private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid;
TaskHostParameters.cs (1)
161internal Dictionary<string, string> ToDictionary() => new(3, StringComparer.OrdinalIgnoreCase)
TaskItemData.cs (2)
19private static readonly Dictionary<string, string> _emptyMetadata = new Dictionary<string, string>(); 41var dictionary = new Dictionary<string, string>();
Telemetry\BuildCheckTelemetry.cs (2)
25var properties = new Dictionary<string, string>(); 55var properties = new Dictionary<string, string>();
Telemetry\BuildTelemetry.cs (3)
173public Dictionary<string, object> GetActivityProperties() 175Dictionary<string, object> telemetryItems = new(8); 212var properties = new Dictionary<string, string>();
Telemetry\CrashTelemetry.cs (3)
494public Dictionary<string, object> GetActivityProperties() 496Dictionary<string, object> telemetryItems = new(10); 566var properties = new Dictionary<string, string>();
Telemetry\DiagnosticActivity.cs (1)
26Dictionary<string, object>? tags = dataHolder?.GetActivityProperties();
Telemetry\IActivityTelemetryDataHolder.cs (1)
13Dictionary<string, object> GetActivityProperties();
Telemetry\IWorkerNodeTelemetryData.cs (2)
10Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> TasksExecutionData { get; } 12Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> TargetsExecutionData { get; }
Telemetry\LoggingConfigurationTelemetry.cs (1)
86var properties = new Dictionary<string, string>();
Telemetry\TelemetryDataUtils.cs (7)
62private static List<TargetDetailInfo> GetTargetsDetails(Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> targetsDetails) 90Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> tasksDetails) 245public void Process(Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> targetsExecutionData) 301public void Process(Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> tasksExecutionData) 333Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> targetsExecutionData) 383Dictionary<string, object> IActivityTelemetryDataHolder.GetActivityProperties() 385Dictionary<string, object> properties = new(5)
Telemetry\WorkerNodeTelemetryData.cs (4)
11public WorkerNodeTelemetryData(Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> tasksExecutionData, Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> targetsExecutionData) 84public Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> TasksExecutionData { get; } 86public Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> TargetsExecutionData { get; }
Telemetry\WorkerNodeTelemetryEventArgs.cs (2)
43Dictionary<TaskOrTargetTelemetryKey, TaskExecutionStats> tasksExecutionData = new(); 64Dictionary<TaskOrTargetTelemetryKey, TargetExecutionStats> targetsExecutionData = new();
Utilities\CollectionHelpers.cs (1)
41internal static bool ContainsValueAndIsEqual(this Dictionary<string, string> dictionary, string key, string value, StringComparison comparer)
Utilities\FileMatcher.cs (2)
945Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs, 3781Dictionary<string, List<RecursionState>>? searchesToExcludeInSubdirs = null;
Microsoft.Build.NuGetSdkResolver (15)
GlobalJsonReader.cs (12)
36private static readonly ConcurrentDictionary<FileInfo, (DateTime LastWriteTime, Lazy<Dictionary<string, string>> Lazy)> FileCache = new ConcurrentDictionary<FileInfo, (DateTime, Lazy<Dictionary<string, string>>)>(FileSystemInfoFullNameEqualityComparer.Instance); 51public Dictionary<string, string> GetMSBuildSdkVersions(SdkResolverContext context, string fileName = GlobalJsonFileName) 82(DateTime _, Lazy<Dictionary<string, string>> Lazy) cacheEntry = FileCache.AddOrUpdate( 84key => (key.LastWriteTime, new Lazy<Dictionary<string, string>>(() => ParseMSBuildSdkVersions(key.FullName, context))), 91return (lastWriteTime, new Lazy<Dictionary<string, string>>(() => ParseMSBuildSdkVersions(key.FullName, context))); 97Dictionary<string, string> sdkVersions = cacheEntry.Lazy.Value; 165/// <returns>A <see cref="Dictionary{TKey, TValue}" /> containing MSBuild project SDK versions if any were found, otherwise <see langword="null" />.</returns> 167private static Dictionary<string, string> ParseMSBuildSdkVersionsFromJson(string json) 188Dictionary<string, string> versionsByName = null; 236/// <returns>A <see cref="Dictionary{TKey, TValue}" /> containing MSBuild project SDK versions if any were found, otherwise <see langword="null" />.</returns> 238private Dictionary<string, string> ParseMSBuildSdkVersions(string globalJsonPath, SdkResolverContext sdkResolverContext)
IGlobalJsonReader.cs (2)
19/// <returns>A <see cref="Dictionary{String,String}" /> of MSBuild SDK versions from a global.json if found, otherwise <c>null</c>.</returns> 20Dictionary<string, string> GetMSBuildSdkVersions(SdkResolverContext context, string fileName = GlobalJsonReader.GlobalJsonFileName);
NuGetSdkResolver.cs (1)
136Dictionary<string, string> msbuildSdkVersions = _globalJsonReader.GetMSBuildSdkVersions(context);
Microsoft.Build.Tasks.CodeAnalysis (7)
src\roslyn\src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (2)
99var rootByItemSpec = new Dictionary<string, ITaskItem>(); 133var topLevelMappedPaths = new Dictionary<string, string>();
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
470private static IntPtr CreateEnvironmentBlock(Dictionary<string, string> environmentVariables) 500internal static Dictionary<string, string>? GetServerEnvironmentVariables(System.Collections.IDictionary currentEnvironment, ICompilerServerLogger? logger = null) 510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 563var environmentVariables = GetServerEnvironmentVariables(Environment.GetEnvironmentVariables(), logger);
Microsoft.Build.Tasks.Core (136)
AssemblyDependency\GenerateBindingRedirects.cs (1)
376var map = new Dictionary<AssemblyName, string>();
AssemblyDependency\Node\RarNodeExecuteRequest.cs (1)
17private Dictionary<string, TaskParameter> _taskInputs = new(StringComparer.Ordinal);
AssemblyDependency\Node\RarNodeExecuteResponse.cs (1)
18private Dictionary<string, TaskParameter> _taskOutputs = new(StringComparer.Ordinal);
AssemblyDependency\Node\RarTaskParameters.cs (3)
52internal static Dictionary<string, TaskParameter> Get(ParameterType parameterType, ResolveAssemblyReference rar) 59Dictionary<string, TaskParameter> taskParameters = new(properties.Length, StringComparer.Ordinal); 103internal static void Set(ParameterType parameterType, ResolveAssemblyReference rar, Dictionary<string, TaskParameter> parameters)
AssemblyDependency\Reference.cs (3)
27private Dictionary<string, ITaskItem> _sourceItems = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 76private Dictionary<string, UnificationVersion> _preUnificationVersions = new Dictionary<string, UnificationVersion>(StringComparer.OrdinalIgnoreCase); 189internal Dictionary<string, ITaskItem>.ValueCollection GetSourceItems()
AssemblyDependency\ReferenceTable.cs (17)
36private static readonly Dictionary<string, Tuple<RedistList, string>> s_monikerToHighestRedistList = new Dictionary<string, Tuple<RedistList, string>>(StringComparer.OrdinalIgnoreCase); 46private readonly Dictionary<string, AssemblyNameExtension> _externallyResolvedImmutableFiles = new Dictionary<string, AssemblyNameExtension>(StringComparer.OrdinalIgnoreCase); 89private readonly Dictionary<string, ITaskItem> _resolvedSDKReferences; 402internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1407var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1413var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 1501private static void AddToDependencyGraph(Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName, Reference assemblyReference) 1521private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension, Reference> goodReferences, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference) 1605private static void RemoveDependencies(Reference removedReference, Dictionary<AssemblyNameExtension, Reference> referenceList, Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyList) 1838private void ResolveConflictsBetweenReferences(Dictionary<string, List<AssemblyNameReference>> baseNameToReferences) 1883Dictionary<string, List<AssemblyNameReference>> baseNameToReferences = BuildSimpleNameTable(); 1899var fullNameToReference = new Dictionary<string, AssemblyNameReference>(References.Count, StringComparer.OrdinalIgnoreCase); 2212private Dictionary<string, List<AssemblyNameReference>> BuildSimpleNameTable() 2216var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase); 2242Dictionary<string, List<AssemblyNameReference>> baseNameToReferences) 3102internal bool MarkReferencesForExclusion(Dictionary<string, string> exclusionList)
AssemblyDependency\ResolveAssemblyReference.cs (4)
234private Dictionary<string, MessageImportance> _showAssemblyFoldersExLocations = new Dictionary<string, MessageImportance>(StringComparer.OrdinalIgnoreCase); 2393Dictionary<string, string> exclusionList = null; 2952private void HandleProfile(AssemblyTableInfo[] installedAssemblyTableInfo, out AssemblyTableInfo[] fullRedistAssemblyTableInfo, out Dictionary<string, string> exclusionList, out RedistList fullFrameworkRedistList) 3222Dictionary<string, AssemblyTableInfo> tableMap = new Dictionary<string, AssemblyTableInfo>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\BootstrapperBuilder.cs (20)
43private readonly Dictionary<string, XmlNode> _cultures = new Dictionary<string, XmlNode>(StringComparer.OrdinalIgnoreCase); 44private readonly Dictionary<string, ProductValidationResults> _validationResults = new Dictionary<string, ProductValidationResults>(StringComparer.Ordinal); 209var eulas = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.Ordinal); 256private static void Merge(Dictionary<string, Product> output, Dictionary<string, Product> input) 264private static void AddProduct(Dictionary<string, Product> output, Product product) 274var builtProducts = new Dictionary<string, ProductBuilder>(); 275var productsAndIncludes = new Dictionary<string, Product>(); 294Dictionary<string, Product> includes = GetIncludedProducts(builder.Product); 620var availableProducts = new Dictionary<string, Product>(StringComparer.Ordinal); 622var buildQueue = new Dictionary<string, Product>(StringComparer.Ordinal); 652private void AddDependencies(Product p, Dictionary<string, Product> availableProducts) 699private void AddIncludes(Product p, Dictionary<string, Product> availableProducts) 736private void OrderProducts(Dictionary<string, Product> availableProducts, Dictionary<string, Product> buildQueue) 787private static void RemoveDependency(Dictionary<string, Product> availableProducts, Product product) 1363private bool BuildPackages(BuildSettings settings, XmlElement configElement, ResourceUpdater resourceUpdater, List<string> filesCopied, Dictionary<string, KeyValuePair<string, string>> eulas) 2215private static Dictionary<string, Product> GetIncludedProducts(Product product) 2217var includedProducts = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase) 2234private static void AddIncludedProducts(Product product, Dictionary<string, Product> includedProducts)
BootstrapperUtil\PackageCollection.cs (1)
16private readonly Dictionary<string, Package> _cultures = new Dictionary<string, Package>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\Product.cs (1)
30private readonly Dictionary<string, Package> _cultures = new Dictionary<string, Package>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\ProductCollection.cs (1)
22private readonly Dictionary<string, Product> _table = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\productvalidationresults.cs (1)
16private readonly Dictionary<string, XmlValidationResults> _packageValidationResults =
Copy.cs (2)
506var filesActuallyCopied = new Dictionary<string, string>( 617var partitionsByDestination = new Dictionary<string, List<int>>(
CreateItem.cs (6)
81if (!PropertyParser.GetTable(Log, "AdditionalMetadata", AdditionalMetadata, out Dictionary<string, string> metadataTable)) 87Dictionary<string, string> excludeItems = GetUniqueItems(Exclude); 101private List<ITaskItem> CreateOutputItems(Dictionary<string, string> metadataTable, Dictionary<string, string> excludeItems) 217private static Dictionary<string, string> GetUniqueItems(ITaskItem[] items) 219var uniqueItems = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
CreateManifestResourceName.cs (1)
36protected Dictionary<string, ITaskItem> itemSpecToTaskitem = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
FileIO\GetFileHash.cs (1)
27internal static readonly Dictionary<string, Func<HashAlgorithm>> SupportedAlgorithms
GenerateResource.cs (1)
3953public Dictionary<string, IResource> resourcesHashTable;
InstalledSDKResolver.cs (2)
22private readonly Dictionary<string, ITaskItem> _resolvedSDKs; 27public InstalledSDKResolver(Dictionary<string, ITaskItem> resolvedSDKs, string searchPathElement, GetAssemblyName getAssemblyName, FileExists fileExists, GetAssemblyRuntimeVersion getRuntimeVersion, Version targetedRuntimeVesion, TaskEnvironment taskEnvironment)
ManifestUtil\ApplicationManifest.cs (4)
433var clsidList = new Dictionary<string, ComInfo>(); 434var tlbidList = new Dictionary<string, ComInfo>(); 565var usedExtensions = new Dictionary<string, FileAssociation>(StringComparer.OrdinalIgnoreCase); 642var targetPathList = new Dictionary<string, bool>();
ManifestUtil\AssemblyIdentity.cs (1)
402var redistDictionary = new Dictionary<string, RedistList>();
ManifestUtil\Manifest.cs (1)
629var identityList = new Dictionary<string, bool>();
ManifestUtil\Util.cs (1)
412var list = new Dictionary<string, ITaskItem>();
MSBuild.cs (7)
198if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable)) 358private bool BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects) 466Dictionary<string, string> propertiesTable, 485var projectProperties = new Dictionary<string, string>[projects.Count]; 507out Dictionary<string, string> preProjectPropertiesTable)) 547out Dictionary<string, string> additionalProjectPropertiesTable)) 551var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
RedistList.cs (12)
39private static readonly Dictionary<string, RedistList> s_cachedRedistList = new Dictionary<string, RedistList>(StringComparer.OrdinalIgnoreCase); 43private static Dictionary<string, string[]> s_redistListPathCache; 71private readonly ConcurrentDictionary<string, Dictionary<string, string>> _cachedDenyList = new ConcurrentDictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase); 117var simpleNameMap = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 564internal Dictionary<string, string> GenerateDenyList(AssemblyTableInfo[] allowListAssemblyTableInfo, List<Exception> allowListErrors, List<string> allowListErrorFileNames) 586if (!_cachedDenyList.TryGetValue(key, out Dictionary<string, string> returnTable)) 666var denyListOfAssemblyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 699var assemblyEntries = new Dictionary<string, AssemblyEntry>(StringComparer.OrdinalIgnoreCase); 825private static void ParseFileListSection(AssemblyTableInfo assemblyTableInfo, string path, string redistName, XmlReader reader, Dictionary<string, AssemblyEntry> assemblyEntries, List<AssemblyRemapping> remapEntries) 871var attributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1029private static Dictionary<string, string[]> s_subsetListPathCache;
ResolveManifestFiles.cs (6)
58private Dictionary<string, ITaskItem> _runtimePackAssets; 526var outputAssembliesMap = outputAssemblies.ToDictionary(p => (string)TaskEnvironment.GetAbsolutePath(p.ItemSpec).GetCanonicalForm(), StringComparer.OrdinalIgnoreCase); 853private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(); 854private readonly Dictionary<string, MapEntry> _simpleNameDictionary = new Dictionary<string, MapEntry>(); 918private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(StringComparer.InvariantCultureIgnoreCase); 976private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
ResolveSDKReference.cs (9)
30private static readonly Dictionary<string, string> PlatformAliases = new(StringComparer.OrdinalIgnoreCase) 111private Dictionary<string, string> _runtimeReferenceOnlyDependenciesByName; 300var sdkItems = new Dictionary<string, ITaskItem>(InstalledSDKs.Length, StringComparer.OrdinalIgnoreCase); 332var productFamilyNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 335var sdkNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 479internal static void AddMetadataToReferences(TaskLoggingHelper log, HashSet<SDKReference> sdkReferenceItems, Dictionary<string, string> referencesToAddMetadata, string metadataName, string metadataValue) 883private Dictionary<string, string> FrameworkIdentitiesFromManifest { get; } 898private Dictionary<string, string> AppxLocationsFromManifest { get; } 912public void Resolve(Dictionary<string, ITaskItem> sdks, string targetConfiguration, string targetArchitecture, HashSet<string> sdkNamesOnReferenceItems, bool treatErrorsAsWarnings, bool prefer32Bit, string identifierTargetPlatform, Version versionTargetPlatform, string projectName, bool enableMaxPlatformVersionEmptyWarning)
ResourceHandling\MSBuildResXReader.cs (4)
25var aliases = new Dictionary<string, string>(); 58private static void ParseAssemblyAlias(Dictionary<string, string> aliases, XElement elem) 84private static string GetFullTypeNameFromAlias(string aliasedTypeName, Dictionary<string, string> aliases) 115Dictionary<string, string> aliases,
src\msbuild\src\Shared\NodePacketFactory.cs (1)
18private Dictionary<NodePacketType, PacketFactoryRecord> _packetFactories;
src\msbuild\src\Shared\PlatformNegotiation.cs (4)
24Dictionary<string, string>? currentProjectLookupTable = ExtractLookupTable(platformLookupTable, log); 34Dictionary<string, string>? projectReferenceLookupTable = ExtractLookupTable(projectReferenceLookupTableMetadata, log); 99internal static Dictionary<string, string>? ExtractLookupTable(string stringTable, TaskLoggingHelper? log = null) 106Dictionary<string, string> table = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\PropertyParser.cs (2)
27internal static bool GetTable(TaskLoggingHelper log, string parameterName, string[] propertyList, out Dictionary<string, string> propertiesTable) 83internal static bool GetTableWithEscaping(TaskLoggingHelper log, string parameterName, string syntaxName, string[] propertyNameValueStrings, out Dictionary<string, string> finalPropertiesTable)
src\msbuild\src\Shared\TaskParameter.cs (2)
571private Dictionary<string, string> _customEscapedMetadata = null; 589_customEscapedMetadata = nonGenericEscapedMetadata as Dictionary<string, string>;
src\msbuild\src\Shared\Tracing.cs (1)
27private static readonly Dictionary<string, int> s_counts;
system.design\stronglytypedresourcebuilder.cs (6)
143internal static CodeCompileUnit Create(Dictionary<string, IResource> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out SkippedResource[] unmatchable) 150var resourceTypes = new Dictionary<String, ResourceData>(StringComparer.InvariantCultureIgnoreCase); 165private static CodeCompileUnit InternalCreate(Dictionary<String, ResourceData> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out SkippedResource[] unmatchable) 185SortedList<string, ResourceData> cleanedResourceList = VerifyResourceNames(resourceList, codeProvider, skippedResources, out Dictionary<string, string> reverseFixupTable); 744Dictionary<String, ResourceData> resourceList, 747out Dictionary<string, string> reverseFixupTable)
SystemState.cs (7)
31private Dictionary<string, FileState> upToDateLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 42internal Dictionary<string, FileState> instanceLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 47internal Dictionary<string, FileState> instanceLocalOutgoingFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 54private Dictionary<string, DateTime> instanceLocalLastModifiedCache = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase); 61private Dictionary<string, bool> instanceLocalDirectoryExists = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase); 68private Dictionary<string, string[]> instanceLocalDirectories = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 646Dictionary<string, FileState> oldFileStateCache = instanceLocalOutgoingFileStateCache;
WriteCodeFragment.cs (1)
322Dictionary<string, ParameterType> parameterTypes = null;
Microsoft.Build.Tasks.Git (5)
GitDataReader\GitConfig.Reader.cs (3)
78var variables = new Dictionary<GitVariableName, List<string>>(); 93var variables = new Dictionary<GitVariableName, List<string>>(); 192internal void LoadVariablesFrom(string path, Dictionary<GitVariableName, List<string>> variables, int includeDepth)
GitDataReader\GitIgnore.Matcher.cs (2)
21private readonly Dictionary<string, PatternGroup?> _patternGroups; 26private readonly Dictionary<string, bool> _directoryIgnoreStateCache;
Microsoft.Build.Utilities.Core (24)
MuxLogger.cs (2)
58private readonly Dictionary<int, SubmissionRecord> _submissionRecords = new Dictionary<int, SubmissionRecord>(); 93private readonly Dictionary<int, int> _submissionProjectsInProgress = new Dictionary<int, int>();
src\msbuild\src\Shared\Tracing.cs (1)
27private static readonly Dictionary<string, int> s_counts;
TargetPlatformSDK.cs (2)
118internal Dictionary<string, string> ExtensionSDKs { get; } 123internal Dictionary<string, string> Platforms { get; }
ToolLocationHelper.cs (16)
217private static Dictionary<string, string> s_chainedReferenceAssemblyPath; 227private static Dictionary<string, IList<string>> s_cachedReferenceAssemblyPaths; 233private static Dictionary<string, FrameworkNameVersioning> s_cachedHighestFrameworkNameForTargetFrameworkIdentifier; 238private static Dictionary<string, IEnumerable<TargetPlatformSDK>> s_cachedTargetPlatforms; 243private static Dictionary<string, TargetPlatformSDK> s_cachedExtensionSdks; 250private static Dictionary<string, string> s_cachedTargetFrameworkDisplayNames; 258private static Dictionary<string, string[]> s_cachedTargetPlatformReferences; 263private static Dictionary<string, string[]> s_cachedExtensionSdkReferences; 273private static Dictionary<string, string[]> s_vsInstallFolders; 404var extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 450var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase); 624var filteredExtensionSdks = new Dictionary<string, string>(); 2466var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 2579internal static void GatherSDKListFromDirectory(List<string> diskroots, Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformSDKs) 2673internal static void GatherSDKsFromRegistryImpl(Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformMonikers, string registryKeyRoot, RegistryView registryView, RegistryHive registryHive, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, OpenBaseKey openBaseKey, FileExists fileExists) 2864private static void GatherSDKListFromRegistry(string registryRoot, Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformMonikers)
ToolTask.cs (3)
286protected virtual Dictionary<string, string> EnvironmentOverride => null; 690Dictionary<string, string> envOverrides = EnvironmentOverride; 1620Dictionary<string, string> envOverrides = EnvironmentOverride;
Microsoft.CodeAnalysis (237)
Binding\AbstractLookupSymbolsInfo.cs (1)
231private readonly Dictionary<string, UniqueSymbolOrArities> _nameMap;
CodeGen\CompilationTestData.cs (1)
68var map = new Dictionary<string, MethodData>();
CodeGen\LocalSlotManager.cs (3)
64private Dictionary<ILocalSymbolInternal, LocalDefinition>? _localMap; 96private Dictionary<ILocalSymbolInternal, LocalDefinition> LocalMap 100var map = _localMap;
CodeGen\SwitchStringJumpTableEmitter.cs (7)
115Dictionary<uint, HashBucket> stringHashMap = ComputeStringHashMap( 121Dictionary<uint, object> hashBucketLabelsMap = EmitHashBucketJumpTable(stringHashMap); 137private Dictionary<uint, object> EmitHashBucketJumpTable(Dictionary<uint, HashBucket> stringHashMap) 140var hashBucketLabelsMap = new Dictionary<uint, object>(count); 191private static Dictionary<uint, HashBucket> ComputeStringHashMap( 196var stringHashMap = new Dictionary<uint, HashBucket>(caseLabels.Length);
Collections\DictionaryExtensions.cs (4)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary, 79public static void AddPooled<K, V>(this Dictionary<K, ArrayBuilder<V>> dictionary, K key, V value)
Collections\IdentifierCollection.cs (1)
27private readonly Dictionary<string, object> _map = new Dictionary<string, object>(
Collections\KeyedStack.cs (1)
18private readonly Dictionary<T, Stack<R>> _dict = new Dictionary<T, Stack<R>>();
Collections\OrderPreservingMultiDictionary.cs (3)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new(); 124public Dictionary<K, ValueSet>.Enumerator GetEnumerator() 178public Dictionary<K, ValueSet>.KeyCollection Keys
CommandLine\CommandLineParser.cs (1)
1314internal ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(string? fullPath, out Dictionary<string, ReportDiagnostic> diagnosticOptions, IList<Diagnostic> diagnostics)
CommandLine\CommonCompiler.cs (1)
429var embeddedTreeMap = new Dictionary<string, SyntaxTree>(Arguments.EmbeddedFiles.Length);
CommandLine\SarifV1ErrorLogger.cs (2)
235private readonly Dictionary<string, int> _counters = new Dictionary<string, int>(); 238private readonly Dictionary<DiagnosticDescriptor, string> _keys = new Dictionary<DiagnosticDescriptor, string>(SarifDiagnosticComparer.Instance);
CommandLine\SarifV2ErrorLogger.cs (1)
459private readonly Dictionary<DiagnosticDescriptor, DescriptorInfoWithIndex> _distinctDescriptors = new(SarifDiagnosticComparer.Instance);
Compilation\CommonModuleCompilationState.cs (1)
40private Dictionary<TMethodSymbol, TNamedTypeSymbol>? _lazyStateMachineTypes;
DiagnosticAnalyzer\AnalysisResultBuilder.cs (34)
29private readonly Dictionary<DiagnosticAnalyzer, TimeSpan>? _analyzerExecutionTimeOpt; 31private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByTree; 32private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSemanticAnalyzersByTree; 33private readonly Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByAdditionalFile; 34private readonly Dictionary<DiagnosticAnalyzer, AnalyzerActionCounts> _analyzerActionCounts; 37private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSemanticDiagnosticsOpt = null; 38private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSyntaxDiagnosticsOpt = null; 39private Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localAdditionalFileDiagnosticsOpt = null; 40private Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? _nonLocalDiagnosticsOpt = null; 53private static Dictionary<DiagnosticAnalyzer, TimeSpan> CreateAnalyzerExecutionTimeMap(ImmutableArray<DiagnosticAnalyzer> analyzers) 55var map = new Dictionary<DiagnosticAnalyzer, TimeSpan>(analyzers.Length); 109var completedAnalyzersByTree = syntax ? _completedSyntaxAnalyzersByTree : _completedSemanticAnalyzersByTree; 135var completedAnalyzersByTree = syntax ? _completedSyntaxAnalyzersByTree : _completedSemanticAnalyzersByTree; 332ref Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics) 340lazyLocalDiagnostics = lazyLocalDiagnostics ?? new Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>(); 350Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? allDiagnostics; 443Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics, 450foreach (var localDiagsByTree in lazyLocalDiagnostics.Values) 458Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 464Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 470Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 476Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? diagnosticsForTree; 484Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder> diagnostics, 536Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnosticsOpt) 578Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? nonLocalDiagnosticsOpt)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
29private readonly Dictionary<string, DirectoryLoadContext> _loadContextByDirectory = new Dictionary<string, DirectoryLoadContext>(GeneratedPathComparer);
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (3)
77private readonly Dictionary<string, (IAnalyzerPathResolver? Resolver, string ResolvedPath, AssemblyName? AssemblyName)> _originalPathInfoMap = new(OriginalPathComparer); 87private readonly Dictionary<string, HashSet<string>> _assemblySimpleNameToOriginalPathListMap = new(SimpleNameComparer.Comparer); 98private readonly Dictionary<string, string> _resolvedToOriginalPathMap = new(GeneratedPathComparer);
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
250private Dictionary<SyntaxTree, ImmutableHashSet<ISymbol>>? _lazyGeneratedCodeSymbolsForTreeMap; 255private Dictionary<SyntaxTree, ImmutableHashSet<ISymbol>> GeneratedCodeSymbolsForTreeMap
DiagnosticAnalyzer\AnalyzerExecutor.cs (3)
63private readonly Dictionary<DiagnosticAnalyzer, AnalyzerOptions>? _analyzerToCachedOptions; 194var map = new Dictionary<DiagnosticAnalyzer, AnalyzerOptions>( 201var optionsProviderToOptions = new Dictionary<AnalyzerConfigOptionsProvider, AnalyzerOptions>(ReferenceEqualityComparer.Instance);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
230Dictionary<string, ImmutableHashSet<string>.Builder> typeNameMap = new Dictionary<string, ImmutableHashSet<string>.Builder>(StringComparer.OrdinalIgnoreCase);
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (3)
33private Dictionary<ISymbol, HashSet<ISymbol>?>? _lazyPendingMemberSymbolsMap; 38private Dictionary<ISymbol, (ImmutableArray<SymbolEndAnalyzerAction>, SymbolDeclaredCompilationEvent)>? _lazyPendingSymbolEndActionsMap; 54private Dictionary<ISymbol, Task<HostSymbolStartAnalysisScope>>? _lazySymbolScopeTasks;
DiagnosticAnalyzer\AnalyzerManager.cs (3)
31private readonly Dictionary<DiagnosticAnalyzer, AnalyzerExecutionContext> _analyzerExecutionContextMap; 43private Dictionary<DiagnosticAnalyzer, AnalyzerExecutionContext> CreateAnalyzerExecutionContextMap(IEnumerable<DiagnosticAnalyzer> analyzers) 45var analyzerExecutionContextMap = new Dictionary<DiagnosticAnalyzer, AnalyzerExecutionContext>();
DiagnosticAnalyzer\CompilationAnalysisValueProvider.cs (1)
20private readonly Dictionary<TKey, TValue> _valueMap;
DiagnosticAnalyzer\CompilationAnalysisValueProviderFactory.cs (1)
14private Dictionary<object, object> _lazySharedStateProviderMap;
DiagnosticAnalyzer\DiagnosticQueue.cs (8)
100private Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? _lazyLocalSemanticDiagnostics; 101private Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? _lazyLocalSyntaxDiagnostics; 102private Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? _lazyNonLocalDiagnostics; 128[NotNull] ref Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? lazyDiagnosticsMap, 139private static void EnqueueCore_NoLock(Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue> diagnosticsMap, Diagnostic diagnostic, DiagnosticAnalyzer analyzer) 171private static bool TryDequeue_NoLock(Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? lazyDiagnosticsMap, [NotNullWhen(returnValue: true)] out Diagnostic? d) 200private ImmutableArray<Diagnostic> DequeueDiagnosticsCore(DiagnosticAnalyzer analyzer, Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? lazyDiagnosticsMap) 218Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? diagnosticsMap,
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (3)
45private readonly Dictionary<string, SuppressMessageInfo> _compilationWideSuppressions = new Dictionary<string, SuppressMessageInfo>(); 48private readonly Dictionary<string, List<SuppressMessageInfo>> _unresolvedSuppressionsById = new Dictionary<string, List<SuppressMessageInfo>>(StringComparer.Ordinal); 111var resolvedSuppressions = new Dictionary<ISymbol, SuppressMessageInfo>();
Emit\EditAndContinue\DefinitionMap.cs (4)
67var mappedMethods = new Dictionary<IMethodSymbolInternal, EncMappedMethod>(); 248var declaratorToIndex = new Dictionary<SyntaxNode, int>(); 557var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>(); 558var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.Instance);
Emit\EditAndContinue\DeletedSourceDefinition.cs (2)
18private readonly Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> _typesUsedByDeletedMembers; 29protected DeletedSourceDefinition(T oldDefinition, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers, ICustomAttribute? deletedAttribute)
Emit\EditAndContinue\DeletedSourceEventDefinition.cs (1)
17public DeletedSourceEventDefinition(IEventDefinition oldEvent, EventDefinitionHandle handle, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers, ICustomAttribute? deletedAttribute)
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
17public DeletedSourceGenericParameter(IGenericMethodParameter oldParameter, DeletedSourceMethodDefinition method, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (1)
20public DeletedSourceMethodDefinition(IMethodDefinition oldMethod, MethodDefinitionHandle handle, ImmutableArray<byte> bodyIL, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers, ICustomAttribute? deletedAttribute)
Emit\EditAndContinue\DeletedSourceParameterDefinition.cs (1)
16public DeletedSourceParameterDefinition(IParameterDefinition oldParameter, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeletedSourcePropertyDefinition.cs (1)
19public DeletedSourcePropertyDefinition(IPropertyDefinition oldProperty, PropertyDefinitionHandle handle, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers, ICustomAttribute? deletedAttribute)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
19public DeletedSourceTypeDefinition(ITypeDefinition oldDefinition, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeltaMetadataWriter.cs (15)
35private readonly Dictionary<ITypeDefinition, ImmutableArray<ITypeDefinitionMember>> _deletedTypeMembers; 44private readonly Dictionary<IParameterDefinition, IMethodDefinition> _parameterDefList; 52private readonly Dictionary<EntityHandle, ImmutableArray<int>> _customAttributesAdded; 58private readonly Dictionary<IParameterDefinition, int> _existingParameterDefs; 59private readonly Dictionary<MethodDefinitionHandle, int> _firstParamRowMap; 68private readonly Dictionary<IMethodDefinition, AddedOrChangedMethodInfo> _addedOrChangedMethods; 192var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>(); 218var generationOrdinals = CreateDictionary(_previousGeneration.GenerationOrdinals, SymbolEquivalentEqualityComparer.Instance); 260private static Dictionary<K, V> CreateDictionary<K, V>(IReadOnlyDictionary<K, V> dictionary, IEqualityComparer<K>? comparer) 263var result = new Dictionary<K, V>(comparer); 285var result = CreateDictionary(previous, comparer); 518var result = new Dictionary<ITypeDefinition, ArrayBuilder<ITypeDefinitionMember>>(ReferenceEqualityComparer.Instance); 519var typesUsedByDeletedMembers = new Dictionary<ITypeDefinition, DeletedSourceTypeDefinition>(ReferenceEqualityComparer.Instance); 1508protected readonly Dictionary<T, int> added; // Definitions added in this generation. 1602private readonly Dictionary<int, T> _map;
Emit\EditAndContinue\EmitBaseline.cs (6)
501private static Dictionary<int, int> CalculateTypePropertyMap(MetadataReader reader) 503var result = new Dictionary<int, int>(); 516private static Dictionary<int, int> CalculateTypeEventMap(MetadataReader reader) 518var result = new Dictionary<int, int>(); 531private static Dictionary<MethodImplKey, int> CalculateMethodImpls(MetadataReader reader) 533var result = new Dictionary<MethodImplKey, int>();
Emit\EditAndContinue\EncVariableSlotAllocator.cs (1)
83var previousLocalInfoToSlot = new Dictionary<EncLocalInfo, int>();
Emit\EditAndContinue\SymbolChanges.cs (5)
357var changesBuilder = new Dictionary<ISymbolInternal, SymbolChange>(); 358var updatedMethodsBuilder = new Dictionary<INamedTypeSymbolInternal, ArrayBuilder<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>>(); 360var lazyDeletedMembersBuilder = (Dictionary<ISymbolInternal, ArrayBuilder<ISymbolInternal>>?)null; 478private static void AddContainingSymbolChanges(Dictionary<ISymbolInternal, SymbolChange> changes, ISymbolInternal symbol)
Emit\EditAndContinue\SymbolMatcher.cs (2)
78var result = new Dictionary<K, V>(Cci.SymbolEquivalentEqualityComparer.Instance); 97var result = new Dictionary<int, AddedOrChangedMethodInfo>();
InternalUtilities\ConcurrentLruCache.cs (1)
28private readonly Dictionary<K, CacheValue> _cache;
InternalUtilities\MultiDictionary.cs (4)
206private readonly Dictionary<K, ValueSet> _dictionary; 214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys; 216public Dictionary<K, ValueSet>.ValueCollection Values => _dictionary.Values; 279public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
MetadataReader\MetadataHelpers.cs (1)
909var names = new Dictionary<string, int>(nestedNamespaces.Count, nameComparer);
MetadataReader\PEAssembly.cs (3)
57private Dictionary<string, List<ImmutableArray<byte>>> _lazyInternalsVisibleToMap; 134private Dictionary<string, List<ImmutableArray<byte>>> BuildInternalsVisibleToMap() 136var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase);
MetadataReader\PEModule.cs (10)
50private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>(); 51private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(); 59private Dictionary<string, (int FirstIndex, int SecondIndex)> _lazyForwardedTypesToAssemblyIndexMap; 66private Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> _lazyCaseInsensitiveForwardedTypesToAssemblyIndexMap; 676Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?>(); 754private void GetTypeNamespaceNamesOrThrow(Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces) 757var namespaceHandles = new Dictionary<NamespaceDefinitionHandle, ArrayBuilder<TypeDefinitionHandle>>(NamespaceHandleEqualityComparer.Singleton); 834private void GetForwardedTypeNamespaceNamesOrThrow(Dictionary<string, ArrayBuilder<TypeDefinitionHandle>?> namespaces) 3835var caseInsensitiveMap = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(StringComparer.OrdinalIgnoreCase); 3858Dictionary<string, (int FirstIndex, int SecondIndex)>? typesToAssemblyIndexMap = null;
MetadataReference\AssemblyIdentityMap.cs (1)
21private readonly Dictionary<string, OneOrMany<KeyValuePair<AssemblyIdentity, TValue>>> _map;
NativePdbWriter\PdbWriter.cs (2)
32private readonly Dictionary<DebugSourceDocument, int> _documentIndex; 38private readonly Dictionary<object, string> _qualifiedNameCache;
Operations\ControlFlowGraphBuilder.cs (1)
8017var explicitProperties = new Dictionary<IPropertySymbol, IOperation>(SymbolEqualityComparer.IgnoreAll);
Operations\OperationMapBuilder.cs (8)
19internal static void AddToMap(IOperation root, Dictionary<SyntaxNode, IOperation> dictionary) 25private sealed class Walker : OperationWalker<Dictionary<SyntaxNode, IOperation>> 29public override object? DefaultVisit(IOperation operation, Dictionary<SyntaxNode, IOperation> argument) 35public override object? VisitBinaryOperator([DisallowNull] IBinaryOperation? operation, Dictionary<SyntaxNode, IOperation> argument) 57public override object? VisitConditional(IConditionalOperation operation, Dictionary<SyntaxNode, IOperation> argument) 78public override object? VisitBinaryPattern(IBinaryPatternOperation operation, Dictionary<SyntaxNode, IOperation> argument) 100internal override object? VisitNoneOperation(IOperation operation, Dictionary<SyntaxNode, IOperation> argument) 107private static void RecordOperation(IOperation operation, Dictionary<SyntaxNode, IOperation> argument)
PEWriter\FullMetadataWriter.cs (2)
27private readonly Dictionary<ITypeDefinition, int> _fieldDefIndex; 28private readonly Dictionary<ITypeDefinition, int> _methodDefIndex;
PEWriter\MetadataWriter.cs (13)
83private readonly Dictionary<(ImmutableArray<byte>, bool), int> _smallMethodBodies; 438private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 439private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance); 440private readonly Dictionary<string, int> _fileRefIndex = new Dictionary<string, int>(32); // more than enough in most cases, value is a RowId 442private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(ReferenceEqualityComparer.Instance); 447private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>(); 449private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(ReferenceEqualityComparer.Instance); 4295private readonly Dictionary<T, int> _index; 4302private HeapOrReferenceIndex(MetadataWriter writer, Dictionary<T, int> index, int lastRowId) 4322private readonly Dictionary<ITypeReference, int> _index; 4329private TypeReferenceIndex(MetadataWriter writer, Dictionary<ITypeReference, int> index, int lastRowId) 4349private readonly Dictionary<T, int> _instanceIndex; 4350private readonly Dictionary<T, int> _structuralIndex;
PEWriter\MetadataWriter.DynamicAnalysis.cs (5)
33private readonly Dictionary<ImmutableArray<byte>, BlobHandle> _blobs; 37private readonly Dictionary<Guid, GuidHandle> _guids; 44private readonly Dictionary<DebugSourceDocument, int> _documentIndex; 126Dictionary<DebugSourceDocument, int> documentIndex) 205private int GetOrAddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, int> index)
PEWriter\MetadataWriter.PortablePdb.cs (6)
54private readonly Dictionary<DebugSourceDocument, DocumentHandle> _documentIndex = new Dictionary<DebugSourceDocument, DocumentHandle>(); 55private readonly Dictionary<IImportScope, ImportScopeHandle> _scopeIndex; 436private ImportScopeHandle GetImportScopeIndex(IImportScope scope, Dictionary<IImportScope, ImportScopeHandle> scopeIndex) 629Dictionary<DebugSourceDocument, DocumentHandle> documentIndex, 743private DocumentHandle GetOrAddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index) 753private DocumentHandle AddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index)
ReferenceManager\CommonReferenceManager.Binding.cs (4)
101[In, Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 218[In, Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 239Dictionary<MetadataReference, MergedAliases>? lazyAliasMap = null; 462Dictionary<MetadataReference, MergedAliases>? propertyMapOpt,
ReferenceManager\CommonReferenceManager.Resolution.cs (6)
213[Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 233Dictionary<MetadataReference, MergedAliases>? lazyAliasMap = null; 236var boundReferences = new Dictionary<MetadataReference, MetadataReference>(MetadataReferenceEqualityComparer.Instance); 440private static ResolvedReference GetResolvedReferenceAndFreePropertyMapEntry(MetadataReference reference, int index, MetadataImageKind kind, Dictionary<MetadataReference, MergedAliases>? propertyMapOpt) 611private void MergeReferenceProperties(MetadataReference primaryReference, MetadataReference newReference, DiagnosticBag diagnostics, ref Dictionary<MetadataReference, MergedAliases>? lazyAliasMap) 670Dictionary<string, List<ReferencedAssemblyIdentity>> referencesBySimpleName,
ReferenceManager\CommonReferenceManager.State.cs (12)
72internal readonly Dictionary<MetadataReference, MetadataOrDiagnostic> ObservedMetadata; 91private Dictionary<MetadataReference, int>? _lazyReferencedAssembliesMap; 101private Dictionary<MetadataReference, int>? _lazyReferencedModuleIndexMap; 195public CommonReferenceManager(string simpleAssemblyName, AssemblyIdentityComparer identityComparer, Dictionary<MetadataReference, MetadataOrDiagnostic>? observedMetadata) 223internal Dictionary<MetadataReference, int> ReferencedAssembliesMap 232internal Dictionary<MetadataReference, int> ReferencedModuleIndexMap 409Dictionary<MetadataReference, int> referencedAssembliesMap, 410Dictionary<MetadataReference, int> referencedModulesMap, 423Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt) 467out Dictionary<MetadataReference, int> referencedAssembliesMap, 468out Dictionary<MetadataReference, int> referencedModulesMap, 470out Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt)
RuleSet\RuleSet.cs (4)
108var effectiveSpecificOptions = new Dictionary<string, ReportDiagnostic>(); 283public static ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(string? rulesetFileFullPath, out Dictionary<string, ReportDiagnostic> specificDiagnosticOptions) 288internal static ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(string? rulesetFileFullPath, out Dictionary<string, ReportDiagnostic> diagnosticOptions, IList<Diagnostic>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 299private static ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(Dictionary<string, ReportDiagnostic> diagnosticOptions, string resolvedPath, IList<Diagnostic>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt)
SourceGeneration\Nodes\GeneratorRunStateTable.cs (4)
27private readonly Dictionary<string, HashSet<IncrementalGeneratorRunStep>>? _namedSteps; 28private readonly Dictionary<string, HashSet<IncrementalGeneratorRunStep>>? _outputSteps; 57private static ImmutableDictionary<string, ImmutableArray<IncrementalGeneratorRunStep>> StepCollectionToImmutable(Dictionary<string, HashSet<IncrementalGeneratorRunStep>>? builder) 93static void addToNamedStepCollection(Dictionary<string, HashSet<IncrementalGeneratorRunStep>> stepCollectionBuilder, IncrementalGeneratorRunStep step)
SpecialTypes.cs (1)
88private static readonly Dictionary<string, ExtendedSpecialType> s_nameToTypeIdMap;
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
WellKnownTypes.cs (1)
761private static readonly Dictionary<string, WellKnownType> s_nameToTypeIdMap = new Dictionary<string, WellKnownType>((int)Count);
Microsoft.CodeAnalysis.Analyzers (155)
FixAnalyzers\FixerWithFixAllAnalyzer.cs (3)
155private readonly Dictionary<INamedTypeSymbol, HashSet<IInvocationOperation>> _codeActionCreateInvocations = []; 160private readonly Dictionary<INamedTypeSymbol, HashSet<IObjectCreationOperation>> _codeActionObjectCreations = []; 202private static void AddOperation<T>(INamedTypeSymbol namedType, T operation, Dictionary<INamedTypeSymbol, HashSet<T>> map)
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.cs (3)
201Dictionary<string, string> entriesToUpdate, 208Dictionary<string, string>? entriesToUpdate, 253Dictionary<string, string>? entriesToUpdate,
MetaAnalyzers\Fixers\AnalyzerReleaseTrackingFix.FixAllProvider.cs (1)
146var entriesToUpdate = new Dictionary<string, string>();
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.CustomFixAllProvider.cs (1)
100var fixInfoMap = new Dictionary<TextDocument, List<FixInfo>>();
MetaAnalyzers\PreferIsKindAnalyzer.cs (2)
50Dictionary<INamedTypeSymbol, INamedTypeSymbol> containingTypeMap = []; 70private static void HandleBinaryOperation(OperationAnalysisContext context, Dictionary<INamedTypeSymbol, INamedTypeSymbol> containingTypeMap)
MetaAnalyzers\RegisterActionAnalyzer.cs (1)
199private Dictionary<IParameterSymbol, List<NodeAndSymbol>>? _nestedActionsMap;
MetaAnalyzers\ReleaseTrackingHelper.cs (1)
51var releaseTrackingDataByRulesBuilder = new Dictionary<string, ReleaseTrackingDataForRuleBuilder>();
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (2)
84protected sealed override Dictionary<(string ContainerName, string SymbolName), ImmutableArray<BanFileEntry>>? ReadBannedApis(CompilationStartAnalysisContext compilationContext) 95var result = new Dictionary<(string ContainerName, string SymbolName), List<BanFileEntry>>();
src\60c94c676d650713\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
23Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\60c94c676d650713\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
18public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
28private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 223private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (4)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary, 79public static void AddPooled<K, V>(this Dictionary<K, ArrayBuilder<V>> dictionary, K key, V value)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new(); 124public Dictionary<K, ValueSet>.Enumerator GetEnumerator() 178public Dictionary<K, ValueSet>.KeyCollection Keys
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (4)
206private readonly Dictionary<K, ValueSet> _dictionary; 214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys; 216public Dictionary<K, ValueSet>.ValueCollection Values => _dictionary.Values; 279public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (2)
26protected abstract Dictionary<(string ContainerName, string SymbolName), ImmutableArray<BanFileEntry>>? ReadBannedApis(CompilationStartAnalysisContext compilationContext); 54var bannedApis = ReadBannedApis(compilationContext);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (3)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 106static void ProcessComments(RuleSet ruleset, HashSet<string> processedRulesetPaths, Dictionary<string, string> ruleIdToComments) 122static void PopulateRuleIdToComments(string rulesetFilePath, Dictionary<string, string> ruleIdToComments)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
11Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 16public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (8)
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) : []; 403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
505public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
45protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap, 260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken) 296Dictionary<SyntaxToken, int> previousChangesMap, 324Dictionary<SyntaxToken, int> previousChangesMap, 380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken) 412Dictionary<SyntaxToken, int> previousChangesMap, 448Dictionary<SyntaxToken, int> previousChangesMap, 475Dictionary<SyntaxToken, int> previousChangesMap, 492Dictionary<SyntaxToken, int> previousChangesMap, 544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (3)
44protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken); 95using var pooledObject = SharedPools.Default<Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>>().GetPooledObject(); 97var map = pooledObject.Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
16private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
19var trimmedDictionary = TrimDictionary(allRawConventions); 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull 38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool); 74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary) 77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool); 141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) 144var map = pool.Allocate(); 283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 84return new PooledObject<Dictionary<TKey, TValue>>( 139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (2)
37public static ObjectPool<Dictionary<string, T>> StringIgnoreCaseDictionary<T>() 74public static readonly ObjectPool<Dictionary<string, T>> Instance =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (3)
160var spilledEdges = builderNode.SpilloverEdges; 243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
572private static int GetValue(Dictionary<char, int> da, char c)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue) 232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (4)
15public static Dictionary<K, V> ToDictionaryAndFree<K, V>(this PooledDictionary<K, V> builders) 18var dictionary = new Dictionary<K, V>(builders.Count); 29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
18private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
580Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 601Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 623Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (3)
149public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 164public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
22public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 65private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 73internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 76internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 112private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 140private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 152private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 281private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 301private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 330private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, 486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 617private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (2)
94using var collisionMapPool = (isCaseSensitive ? SharedPools.Default<Dictionary<string, bool>>() : SharedPools.StringIgnoreCaseDictionary<bool>()).GetPooledObject(); 95var collisionMap = collisionMapPool.Object;
Microsoft.CodeAnalysis.AnalyzerUtilities (155)
src\2e2796bccd1466f6\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
35private Dictionary<SymbolAccess, (ImmutableHashSet<SinkKind>.Builder SinkKinds, ImmutableHashSet<SymbolAccess>.Builder SourceOrigins)> TaintedSourcesBySink { get; }
src\60c94c676d650713\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
23Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\60c94c676d650713\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
18public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\a172c07bebba4cd8\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (1)
28private readonly Dictionary<IFieldSymbol, PointsToAbstractValue>? _trackedInstanceFieldLocations;
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
28private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 223private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (4)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary, 79public static void AddPooled<K, V>(this Dictionary<K, ArrayBuilder<V>> dictionary, K key, V value)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new(); 124public Dictionary<K, ValueSet>.Enumerator GetEnumerator() 178public Dictionary<K, ValueSet>.KeyCollection Keys
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (4)
206private readonly Dictionary<K, ValueSet> _dictionary; 214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys; 216public Dictionary<K, ValueSet>.ValueCollection Values => _dictionary.Values; 279public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (3)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 106static void ProcessComments(RuleSet ruleset, HashSet<string> processedRulesetPaths, Dictionary<string, string> ruleIdToComments) 122static void PopulateRuleIdToComments(string rulesetFilePath, Dictionary<string, string> ruleIdToComments)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
124var originalCoreAnalysisData = new Dictionary<AnalysisEntity, CopyAbstractValue>(coreAnalysisData);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (5)
30private readonly Dictionary<IOperation, AnalysisEntity?> _analysisEntityMap; 31private readonly Dictionary<ITupleOperation, ImmutableArray<AnalysisEntity>> _tupleElementEntitiesMap; 32private readonly Dictionary<CaptureId, AnalysisEntity> _captureIdEntityMap; 33private readonly Dictionary<CaptureId, CopyAbstractValue> _captureIdCopyValueMap; 34private readonly Dictionary<ISymbol, PointsToAbstractValue> _instanceLocationsForSymbols;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResult.cs (2)
46Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>? taskWrappedValuesMap, 223internal Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>? TaskWrappedValuesMap { get; }
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (2)
56Dictionary<ThrownExceptionInfo, TAnalysisData>? analysisDataForUnhandledThrowOperations, 57Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>? taskWrappedValuesMap,
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (7)
128private readonly Dictionary<IMethodSymbol, ControlFlowGraph?>? _interproceduralMethodToCfgMap; 151internal Dictionary<ThrownExceptionInfo, TAnalysisData>? AnalysisDataForUnhandledThrowOperations { get; private set; } 161internal Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>? TaskWrappedValuesMap { get; private set; } 229private Dictionary<BasicBlock, ThrownExceptionInfo>? _exceptionPathsThrownExceptionInfoMap; 2146private void ApplyInterproceduralAnalysisDataForUnhandledThrowOperations(Dictionary<ThrownExceptionInfo, TAnalysisData> interproceduralUnhandledThrowOperationsData) 2316if (analysisResult.AnalysisDataForUnhandledThrowOperations is Dictionary<ThrownExceptionInfo, TAnalysisData> interproceduralUnhandledThrowOperationsDataOpt) 2321if (analysisResult.TaskWrappedValuesMap is Dictionary<PointsToAbstractValue, TAbstractAnalysisValue> taskWrappedValuesMap)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
32var rvalueFlowCaptureIds = new Dictionary<CaptureId, HashSet<IFlowCaptureReferenceOperation>>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
11Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 16public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (8)
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) : []; 403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
505public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
45protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap, 260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken) 296Dictionary<SyntaxToken, int> previousChangesMap, 324Dictionary<SyntaxToken, int> previousChangesMap, 380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken) 412Dictionary<SyntaxToken, int> previousChangesMap, 448Dictionary<SyntaxToken, int> previousChangesMap, 475Dictionary<SyntaxToken, int> previousChangesMap, 492Dictionary<SyntaxToken, int> previousChangesMap, 544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (3)
44protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken); 95using var pooledObject = SharedPools.Default<Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>>().GetPooledObject(); 97var map = pooledObject.Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
16private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
19var trimmedDictionary = TrimDictionary(allRawConventions); 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull 38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool); 74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary) 77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool); 141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) 144var map = pool.Allocate(); 283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 84return new PooledObject<Dictionary<TKey, TValue>>( 139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (2)
37public static ObjectPool<Dictionary<string, T>> StringIgnoreCaseDictionary<T>() 74public static readonly ObjectPool<Dictionary<string, T>> Instance =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (3)
160var spilledEdges = builderNode.SpilloverEdges; 243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
572private static int GetValue(Dictionary<char, int> da, char c)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue) 232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (4)
15public static Dictionary<K, V> ToDictionaryAndFree<K, V>(this PooledDictionary<K, V> builders) 18var dictionary = new Dictionary<K, V>(builders.Count); 29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
18private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
580Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 601Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 623Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (3)
149public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 164public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
22public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 65private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 73internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 76internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 112private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 140private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 152private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 281private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 301private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 330private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, 486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 617private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Microsoft.CodeAnalysis.CodeStyle (150)
src\60c94c676d650713\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
23Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\60c94c676d650713\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
18public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
28private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 223private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\roslyn\src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
25private static readonly Dictionary<(bool includeInFixAll, string equivalenceKey), ImmutableDictionary<string, string?>> s_cachedProperties = [];
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\AbstractOrderModifiersDiagnosticAnalyzer.cs (3)
46|| !_helpers.TryGetOrComputePreferredOrder(option.Value, out var preferredOrder)) 62Dictionary<int, int> preferredOrder, 68Dictionary<int, int> preferredOrder,
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (6)
19private Tuple<string, Dictionary<int, int>>? _lastParsed; 23public static bool IsOrdered(Dictionary<int, int> preferredOrder, SyntaxTokenList modifiers) 43public bool TryGetOrComputePreferredOrder(string value, [NotNullWhen(true)] out Dictionary<int, int>? preferredOrder) 54if (!TryParse(value, out var parsed)) 68protected virtual bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed) 70var result = new Dictionary<int, int>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (4)
29var enumMembers = new Dictionary<long, ISymbol>(); 52ISwitchExpressionOperation operation, Dictionary<long, ISymbol> enumMembers) 64internal static void HandleBinaryPattern(IBinaryPatternOperation? binaryPattern, Dictionary<long, ISymbol> enumMembers) 76private static void RemoveIfConstantPatternHasValue(IOperation operation, Dictionary<long, ISymbol> enumMembers)
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (3)
60var enumMembers = new Dictionary<long, ISymbol>(); 97private static bool TryRemoveExistingEnumMembers(ISwitchOperation switchStatement, Dictionary<long, ISymbol> enumValues) 153Dictionary<long, ISymbol> enumValues)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
124private readonly Dictionary<ISymbol, ValueUsageInfo> _symbolValueUsageStateMap_doNotAccessDirectly = new(OriginalDefinitionSymbolEqualityComparer.Instance);
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (4)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary, 79public static void AddPooled<K, V>(this Dictionary<K, ArrayBuilder<V>> dictionary, K key, V value)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new(); 124public Dictionary<K, ValueSet>.Enumerator GetEnumerator() 178public Dictionary<K, ValueSet>.KeyCollection Keys
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (4)
206private readonly Dictionary<K, ValueSet> _dictionary; 214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys; 216public Dictionary<K, ValueSet>.ValueCollection Values => _dictionary.Values; 279public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
11Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 16public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (8)
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) : []; 403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
505public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
45protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap, 260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken) 296Dictionary<SyntaxToken, int> previousChangesMap, 324Dictionary<SyntaxToken, int> previousChangesMap, 380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken) 412Dictionary<SyntaxToken, int> previousChangesMap, 448Dictionary<SyntaxToken, int> previousChangesMap, 475Dictionary<SyntaxToken, int> previousChangesMap, 492Dictionary<SyntaxToken, int> previousChangesMap, 544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (3)
44protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken); 95using var pooledObject = SharedPools.Default<Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>>().GetPooledObject(); 97var map = pooledObject.Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
16private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
19var trimmedDictionary = TrimDictionary(allRawConventions); 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull 38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool); 74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary) 77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool); 141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) 144var map = pool.Allocate(); 283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 84return new PooledObject<Dictionary<TKey, TValue>>( 139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (2)
37public static ObjectPool<Dictionary<string, T>> StringIgnoreCaseDictionary<T>() 74public static readonly ObjectPool<Dictionary<string, T>> Instance =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (3)
160var spilledEdges = builderNode.SpilloverEdges; 243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
572private static int GetValue(Dictionary<char, int> da, char c)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue) 232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (4)
15public static Dictionary<K, V> ToDictionaryAndFree<K, V>(this PooledDictionary<K, V> builders) 18var dictionary = new Dictionary<K, V>(builders.Count); 29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
18private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
580Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 601Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 623Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (3)
149public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 164public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
22public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 65private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 73internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 76internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 112private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 140private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 152private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 281private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 301private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 330private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, 486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 617private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
80var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
174var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
36public readonly Dictionary<ITypeSymbol, ITypeSymbol> Substitutions = [];
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
474var mapping = capturedMethodTypeParameters.ToDictionary(tp => tp,
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
109var cache = new Dictionary<DocumentId, SemanticDocument>();
src\roslyn\src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
48if (!_helpers.TryGetOrComputePreferredOrder(option.Value, out var preferredOrder))
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
320var canEditMap = new Dictionary<DocumentId, bool>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (2)
94using var collisionMapPool = (isCaseSensitive ? SharedPools.Default<Dictionary<string, bool>>() : SharedPools.StringIgnoreCaseDictionary<bool>()).GetPooledObject(); 95var collisionMap = collisionMapPool.Object;
Microsoft.CodeAnalysis.CSharp (216)
Binder\Binder_Constraints.cs (1)
44var names = new Dictionary<string, int>(n, StringOrdinalComparer.Instance);
Binder\Binder.CapturedParametersFinder.cs (1)
76var result = new Dictionary<ParameterSymbol, FieldSymbol>(ReferenceEqualityComparer.Instance);
Binder\Binder.QueryTranslationState.cs (1)
50public readonly Dictionary<RangeVariableSymbol, ArrayBuilder<string>> allRangeVariables = new Dictionary<RangeVariableSymbol, ArrayBuilder<string>>();
Binder\DecisionDagBuilder.cs (1)
1293Dictionary<DagState, DagState> uniqueState)
Binder\NameofBinder.cs (1)
29private readonly Dictionary<GenericNameSyntax, bool>? _allowedMap;
Binder\OpenTypeVisitor.cs (2)
25private Dictionary<GenericNameSyntax, bool>? _allowedMap; 33public static void Visit(ExpressionSyntax typeSyntax, out Dictionary<GenericNameSyntax, bool>? allowedMap)
Binder\PatternExplainer.cs (10)
263gatherConstraintsAndEvaluations(binder, targetNode, shortestPathToNode, out var constraints, out var evaluations); 286gatherConstraintsAndEvaluations(binder, targetNode, currentPathToNode, out var constraints, out var evaluations); 311out Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>> constraints, 312out Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>> evaluations) 360Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest test, bool sense)>> constraintMap, 361Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>> evaluationMap, 379static ImmutableArray<T> getArray<T>(Dictionary<BoundDagTemp, ArrayBuilder<T>> map, BoundDagTemp temp) 674var properties = new Dictionary<Symbol, string>();
Binder\RefSafetyAnalysis.cs (2)
71private Dictionary<LocalSymbol, (SafeContext RefEscapeScope, SafeContext ValEscapeScope)>? _localEscapeScopes; 72private Dictionary<BoundValuePlaceholderBase, SafeContextAndLocation>? _placeholderScopes;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
225Dictionary<TypeSymbol, bool> lookedInInterfaces, ArrayBuilder<BinaryOperatorAnalysisResult> candidates)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (9)
145private readonly Dictionary<TypeParameterSymbol, int> _ordinals; 283Dictionary<TypeParameterSymbol, int> ordinals = null) 333Dictionary<TypeParameterSymbol, int>? ordinals) 2881var candidates = new Dictionary<TypeWithAnnotations, TypeWithAnnotations>(EqualsIgnoringDynamicTupleNamesAndNullabilityComparer.Instance); 3359private static void GetAllCandidates(Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, ArrayBuilder<TypeWithAnnotations> builder) 3372Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, 3401Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, 3416Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, 3483Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
370Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMapOpt = null; 902private static Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> PartitionMembersByContainingType<TMember>(ArrayBuilder<TMember> members) where TMember : Symbol 904Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMap = new Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>>(); 920private static void ClearContainingTypeMap<TMember>(ref Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMapOpt) where TMember : Symbol 1065Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMapOpt, 4432Dictionary<TypeParameterSymbol, int> ordinals = member.MakeAdjustedTypeParameterOrdinalsIfNeeded(originalTypeParameters);
Binder\SwitchBinder_Patterns.cs (1)
200Dictionary<SyntaxNode, LabelSymbol> labelsByNode = LabelsByNode;
Binder\SwitchBinder.cs (8)
80private Dictionary<object, SourceLabelSymbol> _lazySwitchLabelsMap; 83private Dictionary<object, SourceLabelSymbol> LabelsByValue 96private static Dictionary<object, SourceLabelSymbol> BuildLabelsByValue(ImmutableArray<LabelSymbol> labels) 100var map = new Dictionary<object, SourceLabelSymbol>(labels.Length, new SwitchConstantValueHelper.SwitchLabelsComparer()); 336var labelsMap = LabelsByValue; 471private Dictionary<SyntaxNode, LabelSymbol> _labelsByNode; 472protected Dictionary<SyntaxNode, LabelSymbol> LabelsByNode 478var result = new Dictionary<SyntaxNode, LabelSymbol>();
Binder\TypeofBinder.cs (1)
25private readonly Dictionary<GenericNameSyntax, bool> _allowedMap;
BoundTree\BoundNode_Source.cs (1)
25void appendSourceCore(BoundNode node, int indent, Dictionary<SynthesizedLocal, int> tempIdentifiers)
CodeGen\EmitStatement.cs (2)
1967private Dictionary<LabelSymbol, GeneratedLabelSymbol> _labelClones; 2038var labelClones = _labelClones;
CodeGen\Optimizer.cs (8)
92private static void FilterValidStackLocals(Dictionary<LocalSymbol, LocalDefUseInfo> info) 125private static void RemoveIntersectingLocals(Dictionary<LocalSymbol, LocalDefUseInfo> info, ArrayBuilder<LocalDefUseInfo> dummies) 403private readonly Dictionary<LocalSymbol, LocalDefUseInfo> _locals; 417private StackOptimizerPass1(Dictionary<LocalSymbol, LocalDefUseInfo> locals, 432Dictionary<LocalSymbol, LocalDefUseInfo> locals, 2092private readonly Dictionary<LocalSymbol, LocalDefUseInfo> _info; 2094private StackOptimizerPass2(Dictionary<LocalSymbol, LocalDefUseInfo> info) 2099public static BoundStatement Rewrite(BoundStatement src, Dictionary<LocalSymbol, LocalDefUseInfo> info)
CommandLine\CSharpCommandLineParser.cs (5)
121var diagnosticOptions = new Dictionary<string, ReportDiagnostic>(); 122var noWarns = new Dictionary<string, ReportDiagnostic>(); 123var warnAsErrors = new Dictionary<string, ReportDiagnostic>(); 2139private static void AddWarnings(Dictionary<string, ReportDiagnostic> d, ReportDiagnostic kind, ReadOnlyMemory<char> warningArgument) 2184private static void AddDiagnostic(IList<Diagnostic> diagnostics, Dictionary<string, ReportDiagnostic> warningOptions, ErrorCode errorCode, params object[] arguments)
Compilation\MemberSemanticModel.cs (3)
33private readonly Dictionary<SyntaxNode, OneOrMany<BoundNode>> _guardedBoundNodeMap = new Dictionary<SyntaxNode, OneOrMany<BoundNode>>(); 34private readonly Dictionary<SyntaxNode, IOperation> _guardedIOperationNodeMap = new Dictionary<SyntaxNode, IOperation>(); 35private Dictionary<SyntaxNode, BoundStatement> _lazyGuardedSynthesizedStatementsMap;
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
39public static void AddToMap(BoundNode root, Dictionary<SyntaxNode, OneOrMany<BoundNode>> map, SyntaxTree tree, SyntaxNode node = null)
Compiler\ClsComplianceChecker.cs (1)
1068Dictionary<NamedTypeSymbol, NamedTypeSymbol> containingTypes = null; // maps definition to constructed
Compiler\TypeCompilationState.cs (1)
52private Dictionary<MethodSymbol, MethodSymbol>? _wrappers;
Declarations\MergedTypeDeclaration.cs (1)
227var typesGrouped = nestedTypes.ToDictionary(t => t.Identity);
Emitter\EditAndContinue\CSharpDefinitionMap.cs (3)
64var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>(); 65var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.Instance); 155var map = new Dictionary<EncLocalInfo, int>();
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (1)
819var result = members.ToDictionary(s => s.MetadataName, StringOrdinalComparer.Instance);
Emitter\Model\PEModuleBuilder.cs (2)
50private Dictionary<FieldSymbol, NamedTypeSymbol> _fixedImplementationTypes; 720var exportedNamesMap = new Dictionary<string, NamedTypeSymbol>(StringOrdinalComparer.Instance);
Errors\ErrorFacts.cs (1)
98var map = new Dictionary<ErrorCode, string>()
FlowAnalysis\AbstractFlowPass.cs (1)
178private readonly Dictionary<BoundLoopStatement, TLocalState> _loopHeadState;
FlowAnalysis\NullableWalker.cs (1)
8736Dictionary<TypeParameterSymbol, int>? ordinals = definition.MakeAdjustedTypeParameterOrdinalsIfNeeded(typeParameters);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (6)
292var proxyLabels = frame.proxyLabels; 846private Dictionary<BoundTryStatement, HashSet<LabelSymbol>> _labelsInInterestingTry; 906var labelsInInterestingTry = _labelsInInterestingTry; 1012public Dictionary<LabelSymbol, LabelSymbol> proxyLabels; 1051var proxyLabels = this.proxyLabels; 1126private readonly Dictionary<LocalSymbol, LocalSymbol> _hoistedLocals;
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
61private readonly Dictionary<TypeSymbol, FieldSymbol> _awaiterFields; 64private readonly Dictionary<BoundValuePlaceholderBase, BoundExpression> _placeholderMap;
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (2)
89private readonly Dictionary<BoundAwaitableValuePlaceholder, BoundExpression> _placeholderMap; 93private readonly Dictionary<Symbol, CapturedSymbolReplacement> _proxies = [];
Lowering\BoundTreeToDifferentEnclosingContextRewriter.cs (2)
24private readonly Dictionary<LocalSymbol, LocalSymbol> localMap = new Dictionary<LocalSymbol, LocalSymbol>(); 27private readonly Dictionary<BoundValuePlaceholderBase, BoundValuePlaceholderBase> _placeholderMap = new Dictionary<BoundValuePlaceholderBase, BoundValuePlaceholderBase>();
Lowering\ClosureConversion\ClosureConversion.cs (3)
85private readonly Dictionary<ParameterSymbol, ParameterSymbol> _parameterMap = new Dictionary<ParameterSymbol, ParameterSymbol>(); 88private readonly Dictionary<BoundNode, Analysis.ClosureEnvironment> _frames = new Dictionary<BoundNode, Analysis.ClosureEnvironment>(); 92private readonly Dictionary<NamedTypeSymbol, Symbol> _framePointers = new Dictionary<NamedTypeSymbol, Symbol>();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
21private readonly Dictionary<ParameterSymbol, BoundExpression> _parameterMap = new Dictionary<ParameterSymbol, BoundExpression>(); 22private Dictionary<BoundValuePlaceholder, BoundExpression> _placeholderReplacementMap;
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.IteratorFinallyFrame.cs (4)
31public Dictionary<StateMachineState, IteratorFinallyFrame> knownStates; 41public Dictionary<LabelSymbol, LabelSymbol> proxyLabels; 81var knownStates = this.knownStates; 106var proxyLabels = this.proxyLabels;
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.YieldsInTryAnalysis.cs (2)
23private Dictionary<BoundTryStatement, HashSet<LabelSymbol>> _labelsInYieldingTrys; 74var yieldingTryLabels = _labelsInYieldingTrys;
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
19private readonly Dictionary<(TypeSymbol?, TypeSymbol, MethodSymbol), FieldSymbol> _delegateFields = new(CLRSignatureComparer.Instance);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (2)
24private Dictionary<Symbol, DelegateCacheContainer>? _genericCacheContainers; 107var containers = _genericCacheContainers ??= new Dictionary<Symbol, DelegateCacheContainer>(ReferenceEqualityComparer.Instance);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
167private Dictionary<BoundNode, HashSet<LabelSymbol>>? _lazyUnmatchedLabelCache;
Lowering\LocalRewriter\LocalRewriter_PatternSwitchStatement.cs (1)
26private readonly Dictionary<SyntaxNode, LabelSymbol> _sectionLabels = PooledDictionary<SyntaxNode, LabelSymbol>.GetInstance();
Lowering\LocalRewriter\LocalRewriter.cs (1)
54private Dictionary<BoundValuePlaceholderBase, BoundExpression>? _placeholderReplacementMapDoNotUseDirectly;
Lowering\LocalRewriter\LocalRewriter.PlaceholderReplacer.cs (3)
14private readonly Dictionary<BoundEarlyValuePlaceholderBase, BoundExpression> _placeholders; 16private PlaceholderReplacer(Dictionary<BoundEarlyValuePlaceholderBase, BoundExpression> placeholders) 21public static BoundExpression Replace(Dictionary<BoundEarlyValuePlaceholderBase, BoundExpression> placeholders, BoundExpression expr)
Lowering\MethodToClassRewriter.cs (1)
24protected Dictionary<Symbol, CapturedSymbolReplacement> proxies = new Dictionary<Symbol, CapturedSymbolReplacement>();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
44private readonly Dictionary<LocalSymbol, BoundExpression> _boundRefLocalInitializers = new Dictionary<LocalSymbol, BoundExpression>();
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
64private Dictionary<LabelSymbol, List<StateMachineState>> _dispatches = new Dictionary<LabelSymbol, List<StateMachineState>>(); 70private Dictionary<TypeSymbol, ArrayBuilder<StateMachineFieldSymbol>>? _lazyAvailableReusableHoistedFields; 731var oldDispatches = _dispatches;
Lowering\StateMachineRewriter\RefInitializationHoister.cs (1)
61Dictionary<Symbol, CapturedSymbolReplacement> proxies,
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
34protected Dictionary<Symbol, CapturedSymbolReplacement>? initialParameters; 146var proxiesBuilder = new Dictionary<Symbol, CapturedSymbolReplacement>(); 468var copySrc = initialParameters;
Lowering\SynthesizedSubmissionFields.cs (1)
29private Dictionary<ImplicitNamedTypeSymbol, FieldSymbol> _previousSubmissionFieldMap;
Lowering\UnmatchedGotoFinder.cs (3)
22private readonly Dictionary<BoundNode, HashSet<LabelSymbol>> _unmatchedLabelsCache; // NB: never modified. 27private UnmatchedGotoFinder(Dictionary<BoundNode, HashSet<LabelSymbol>> unmatchedLabelsCache, int recursionDepth) 34public static HashSet<LabelSymbol> Find(BoundNode node, Dictionary<BoundNode, HashSet<LabelSymbol>> unmatchedLabelsCache, int recursionDepth)
Symbols\MemberSymbolExtensions.cs (2)
151internal static Dictionary<TypeParameterSymbol, int>? MakeAdjustedTypeParameterOrdinalsIfNeeded<TMember>(this TMember member, ImmutableArray<TypeParameterSymbol> originalTypeParameters) 156Dictionary<TypeParameterSymbol, int>? ordinals = null;
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
364Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> typesDict)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (13)
33private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> s_emptyNestedTypes = 61private Dictionary<string, ImmutableArray<Symbol>> _lazyMembersByName; 67private Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> _lazyNestedTypes; 1908Dictionary<string, ImmutableArray<Symbol>> membersDict = GroupByName(members); 1910var exchangeResult = Interlocked.CompareExchange(ref _lazyMembersByName, membersDict, null); 2026var typesDict = GroupByName(types); 2028var exchangeResult = Interlocked.CompareExchange(ref _lazyNestedTypes, typesDict, null); 2042var exchangeResult = Interlocked.CompareExchange(ref _lazyNestedTypes, GroupByName(groupingNestedTypes), null); 2603private void CreateProperties(Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol, ArrayBuilder<Symbol> members) 2642Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol, 2681private PEMethodSymbol GetAccessorMethod(PEModule module, Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol, TypeDefinitionHandle typeDef, MethodDefinitionHandle methodDef) 2694private static Dictionary<string, ImmutableArray<Symbol>> GroupByName(ArrayBuilder<Symbol> symbols) 2699private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> GroupByName(ArrayBuilder<PENamedTypeSymbol> symbols)
Symbols\Metadata\PE\PENamespaceSymbol.cs (7)
29protected Dictionary<ReadOnlyMemory<char>, PENestedNamespaceSymbol>? lazyNamespaces; 35protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>>? lazyTypes; 42private Dictionary<string, TypeDefinitionHandle>? _lazyNoPiaLocalTypes; 262var namespaces = new Dictionary<ReadOnlyMemory<char>, PENestedNamespaceSymbol>(ReadOnlyMemoryOfCharComparer.Instance); 286Dictionary<string, TypeDefinitionHandle>? noPiaLocalTypes = null; 315var typesDict = children.ToDictionary(c => c.Name.AsMemory(), ReadOnlyMemoryOfCharComparer.Instance); 323var original = Interlocked.CompareExchange(ref this.lazyTypes, typesDict, null);
Symbols\ReferenceManager.cs (9)
57public ReferenceManager(string simpleAssemblyName, AssemblyIdentityComparer identityComparer, Dictionary<MetadataReference, MetadataOrDiagnostic>? observedMetadata) 403Dictionary<MetadataReference, int> referencedAssembliesMap, referencedModulesMap; 405Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt; 457Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies = null; 541Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies) 642ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies, 719ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies, 764ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies, 843ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies)
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
49private readonly Dictionary<AssemblySymbol, DestinationData> _retargetingAssemblyMap =
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
154private Dictionary<AssemblySymbol, DestinationData> RetargetingAssemblyMap
Symbols\Source\ConstantEvaluationHelpers.cs (5)
101Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph, 156Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph, 266Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph, 292Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph, 328private static void CheckGraph(Dictionary<SourceFieldSymbolWithSyntaxReference, Node<SourceFieldSymbolWithSyntaxReference>> graph)
Symbols\Source\ExtensionGroupingInfo.cs (2)
31var groupingMap = new Dictionary<string, MultiDictionary<string, SourceNamedTypeSymbol>>(EqualityComparer<string>.Default); 330var counts = new Dictionary<CSharpAttributeData, int>(comparer);
Symbols\Source\QuickAttributeChecker.cs (1)
26private readonly Dictionary<string, QuickAttributes> _nameToAttributeMap;
Symbols\Source\SourceMemberContainerSymbol.cs (43)
205private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyMembersDictionary; 206private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyEarlyAttributeDecodingMembersDictionary; 208private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> s_emptyTypeMembers = 211private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? _lazyTypeMembers; 1415private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> GetTypeMembersDictionary() 1433private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> MakeTypeMembers(BindingDiagnosticBag diagnostics) 1436var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>(); 1711private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetEarlyAttributeDecodingMembersDictionary() 1715if (Volatile.Read(ref _lazyMembersDictionary) is Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> result) 1725Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName; 1748private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> ToNameKeyedDictionary(ImmutableArray<Symbol> symbols) 1773var dictionary = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(accumulator.Count, ReadOnlyMemoryOfCharComparer.Instance); 1899protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByName() 1909private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByNameSlow() 1913var membersDictionary = MakeAllMembers(); 2173Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? typesByName, 2174Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2182var methodsBySignature = new Dictionary<MethodSymbol, MethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2183var conversionsAsMethods = new Dictionary<MethodSymbol, MethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2431BindingDiagnosticBag diagnostics, Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName) 2436var indexersBySignature = new Dictionary<PropertySymbol, PropertySymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2500Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2501Dictionary<PropertySymbol, PropertySymbol> indexersBySignature, 2570Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2571Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? typesByName, 2587Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? membersByName; 2599static (Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? membersByName, ImmutableArray<Symbol> membersUnordered) mergeMembersInGroup(IGrouping<string, NamedTypeSymbol> grouping) 2601Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? membersByName = null; 2609Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByNameToMerge = ((SourceMemberContainerTypeSymbol)extension).GetMembersByName(); 2728Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2880Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2922Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2961Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 3138var instanceMap = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>(ReferenceEqualityComparer.Instance); 3170private static bool InfiniteFlatteningGraph(SourceMemberContainerTypeSymbol top, NamedTypeSymbol t, Dictionary<NamedTypeSymbol, NamedTypeSymbol> instanceMap) 3288private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> MakeAllMembers() 3290Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName; 3312Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 3313Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> typesByName) 4160Dictionary<ReadOnlyMemory<char>, object> membersByName, 4165var membersBySignature = new Dictionary<Symbol, Symbol>(MemberSignatureComparer.PartialMethodsComparer); 4548Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 4599Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName,
Symbols\Source\SourceNamespaceSymbol_Completion.cs (1)
28var tmp = GetNameToMembersMap();
Symbols\Source\SourceNamespaceSymbol.cs (7)
31private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> _nameToMembersMap; 32private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> _nameToTypeMembersMap; 224private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> GetNameToMembersMap() 248private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> GetNameToTypeMembersMap() 264private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> MakeNameToMembersMap(BindingDiagnosticBag diagnostics) 282var result = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>>(builder.Count, ReadOnlyMemoryOfCharComparer.Instance); 291private static void CheckMembers(NamespaceSymbol @namespace, Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> result, BindingDiagnosticBag diagnostics)
Utilities\FirstAmongEqualsSet.cs (1)
42private readonly Dictionary<T, T> _dictionary;
Microsoft.CodeAnalysis.CSharp.CodeStyle (21)
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
133Dictionary<IMethodSymbol, Diagnostic> methodToDiagnostic)
src\roslyn\src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
30Dictionary<int, int> preferredOrder,
src\roslyn\src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersHelper.cs (1)
25protected override bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (3)
387Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove) 409Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove) 466Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
170private static bool DeclaredLocalCausesCollision(Dictionary<string, ArrayBuilder<ISymbol>> symbolNameToExistingSymbol, ImmutableArray<ILocalSymbol> locals)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
42var directiveSyntaxMap = GetDirectiveInfo(directive, cancellationToken).DirectiveMap; 54var directiveConditionalMap = GetDirectiveInfo(directive, cancellationToken).ConditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
17private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new(); 22var dictionary = DeclarationFinder.GetAllDeclarations(member);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (2)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.LocalDeclarationMap.cs (2)
16private readonly Dictionary<string, ImmutableArray<SyntaxToken>> _dictionary; 18internal LocalDeclarationMap(Dictionary<string, ImmutableArray<SyntaxToken>> dictionary)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\AggregatedFormattingResult.cs (1)
20protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\FormattingResult.cs (1)
24protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (4)
24private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _trailingTriviaMap = []; 25private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _leadingTriviaMap = []; 30Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, 47Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (17)
src\roslyn\src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (2)
26var modifierOrder = await GetModifierOrderAsync(document, cancellationToken).ConfigureAwait(false); 31private static SyntaxNode GetNewNode(SyntaxNode node, Dictionary<int, int>? preferredOrder)
src\roslyn\src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (3)
61var modifierOrder = await GetModifierOrderAsync(document, cancellationToken).ConfigureAwait(false); 75private static async Task<Dictionary<int, int>?> GetModifierOrderAsync(Document document, CancellationToken cancellationToken) 79CSharpOrderModifiersHelper.Instance.TryGetOrComputePreferredOrder(modifierOrder, out var preferredOrder);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (3)
174var expandUsingDirectiveTasks = allUsingDirectives.ToDictionary( 222var namespaceDeclarationMap = namespaceDeclarations.ToDictionary( 258var namespaceDeclarationMap = namespaceDeclarations.ToDictionary(
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
62Dictionary<SyntaxToken, SyntaxToken> tokenToToken,
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
88Dictionary<SyntaxToken, SyntaxToken> replacementMap, SyntaxToken colonToken, SyntaxToken thisBaseKeyword)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
257var renameMap = parameterList.Parameters
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.EqualityComparer) 36private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.EqualityComparer)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (4)
649var map = DetermineTypeParameterMapping(type, method.ReturnType); 666private static Dictionary<ITypeParameterSymbol, ITypeSymbol> DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType) 668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>(); 673private static void DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType, Dictionary<ITypeParameterSymbol, ITypeSymbol> result)
Microsoft.CodeAnalysis.CSharp.Features (29)
ChangeSignature\CSharpChangeSignatureService.cs (1)
825var dictionary = new Dictionary<string, XmlElementSyntax>();
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (1)
71private static readonly Dictionary<string, (int sortOrder, OperatorPosition position)> s_operatorNameToInfo = [];
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
31private static readonly Dictionary<(bool importDirective, bool preselect, bool tupleLiteral), CompletionItemRules> s_cachedRules = [];
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
22private static readonly Dictionary<BinaryOperatorKind, SyntaxKind> s_operatorMap = new()
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2489Dictionary<SyntaxNode, EditKind> editMap)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
697var replacements = new Dictionary<SyntaxNode, SyntaxNode>();
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (3)
96var map = new Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>>(); 118Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>> map) 129Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>> map)
ExtractMethod\CSharpMethodExtractor.TriviaResult.cs (1)
76Dictionary<SyntaxToken, LeadingTrailingTriviaPair> triviaMap,
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
63if (CSharpOrderModifiersHelper.Instance.TryGetOrComputePreferredOrder(preferredModifierOrderString, out var preferredOrder) &&
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
133Dictionary<IMethodSymbol, Diagnostic> methodToDiagnostic)
src\roslyn\src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
30Dictionary<int, int> preferredOrder,
src\roslyn\src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersHelper.cs (1)
25protected override bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed)
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (3)
387Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove) 409Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove) 466Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove,
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
170private static bool DeclaredLocalCausesCollision(Dictionary<string, ArrayBuilder<ISymbol>> symbolNameToExistingSymbol, ImmutableArray<ILocalSymbol> locals)
src\roslyn\src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (2)
26var modifierOrder = await GetModifierOrderAsync(document, cancellationToken).ConfigureAwait(false); 31private static SyntaxNode GetNewNode(SyntaxNode node, Dictionary<int, int>? preferredOrder)
src\roslyn\src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (3)
61var modifierOrder = await GetModifierOrderAsync(document, cancellationToken).ConfigureAwait(false); 75private static async Task<Dictionary<int, int>?> GetModifierOrderAsync(Document document, CancellationToken cancellationToken) 79CSharpOrderModifiersHelper.Instance.TryGetOrComputePreferredOrder(modifierOrder, out var preferredOrder);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (3)
174var expandUsingDirectiveTasks = allUsingDirectives.ToDictionary( 222var namespaceDeclarationMap = namespaceDeclarations.ToDictionary( 258var namespaceDeclarationMap = namespaceDeclarations.ToDictionary(
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
62Dictionary<SyntaxToken, SyntaxToken> tokenToToken,
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
88Dictionary<SyntaxToken, SyntaxToken> replacementMap, SyntaxToken colonToken, SyntaxToken thisBaseKeyword)
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
257var renameMap = parameterList.Parameters
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.FixAllProvider.cs (1)
37Dictionary<IBlockOperation, IdentifierGenerator> scopeMap = new();
Microsoft.CodeAnalysis.CSharp.Workspaces (27)
FileBasedPrograms\FileBasedProgramService.cs (1)
28var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (5)
88private static void AddAliasMaps(SyntaxNode node, List<Dictionary<string, string>> aliasMaps) 103private static void ProcessUsings(List<Dictionary<string, string>> aliasMaps, SyntaxList<UsingDirectiveSyntax> usings) 105Dictionary<string, string>? aliasMap = null; 132List<Dictionary<string, string>> aliasMaps) 142foreach (var aliasMap in aliasMaps)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
42var directiveSyntaxMap = GetDirectiveInfo(directive, cancellationToken).DirectiveMap; 54var directiveConditionalMap = GetDirectiveInfo(directive, cancellationToken).ConditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
17private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new(); 22var dictionary = DeclarationFinder.GetAllDeclarations(member);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (2)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.LocalDeclarationMap.cs (2)
16private readonly Dictionary<string, ImmutableArray<SyntaxToken>> _dictionary; 18internal LocalDeclarationMap(Dictionary<string, ImmutableArray<SyntaxToken>> dictionary)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\AggregatedFormattingResult.cs (1)
20protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\FormattingResult.cs (1)
24protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (4)
24private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _trailingTriviaMap = []; 25private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _leadingTriviaMap = []; 30Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, 47Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.EqualityComparer) 36private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.EqualityComparer)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (4)
649var map = DetermineTypeParameterMapping(type, method.ReturnType); 666private static Dictionary<ITypeParameterSymbol, ITypeSymbol> DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType) 668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>(); 673private static void DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType, Dictionary<ITypeParameterSymbol, ITypeSymbol> result)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
885private Dictionary<CSharpDirective.Named, CSharpDirective.Named>? _seen;
Microsoft.CodeAnalysis.Extensions.Package (47)
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Symbols\INamedTypeSymbolExtensions.cs (3)
580Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 601Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 623Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
Symbols\SymbolEquivalenceComparer.cs (3)
149public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 164public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
22public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 65private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 73internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 76internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 112private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 140private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 152private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 281private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 301private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 330private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, 486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 617private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Symbols\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
23Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
Symbols\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
18public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (2)
Api\HotReloadMSBuildWorkspace.cs (2)
76var oldProjectIdsByPath = oldSolution.Projects.ToDictionary(keySelector: static p => (p.FilePath!, p.Name), elementSelector: static p => p.Id); 80var projectIdMap = projectInfos.ToDictionary(
Microsoft.CodeAnalysis.Features (270)
BracePairs\IBracePairsService.cs (1)
27private readonly Dictionary<int, int> _bracePairKinds = [];
ChangeSignature\AbstractChangeSignatureService.cs (7)
254var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>(); 255var definitionToUse = new Dictionary<SyntaxNode, ISymbol>(); 376var updatedRoots = new Dictionary<DocumentId, SyntaxNode>(); 445private static void AddUpdatableNodeToDictionaries(Dictionary<DocumentId, List<SyntaxNode>> nodesToUpdate, DocumentId documentId, SyntaxNode nodeToUpdate, Dictionary<SyntaxNode, ISymbol> definitionToUse, ISymbol symbolWithSemanticParameters) 482var argumentToParameterMap = new Dictionary<IUnifiedArgumentSyntax, IParameterSymbol>(); 483var parameterToIndexMap = new Dictionary<IParameterSymbol, int>();
ChangeSignature\SignatureChange.cs (1)
19private readonly Dictionary<int, int?> _originalIndexToUpdatedIndexMap = [];
CodeFixes\Service\CodeFixService.cs (8)
359private bool TryPopulateWorkspaceFixersMap(TextDocument document, Dictionary<DiagnosticId, ImmutableArray<CodeFixProvider>> fixerMap) 505var uniqueDiagnosticToEquivalenceKeysMap = new Dictionary<Diagnostic, PooledHashSet<string?>>(); 510var diagnosticAndEquivalenceKeyToFixersMap = new Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider>(); 659Dictionary<Diagnostic, PooledHashSet<string?>> uniqueDiagosticToEquivalenceKeysMap, 660Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider> diagnosticAndEquivalenceKeyToFixersMap, 698Dictionary<Diagnostic, PooledHashSet<string?>> uniqueDiagosticToEquivalenceKeysMap, 699Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider> diagnosticAndEquivalenceKeyToFixersMap) 1031private readonly Dictionary<CodeFixProvider, int> _fixerToIndex;
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (2)
280var codeActionToDiagnosticLocation = diagnosticsAndCodeActions.ToDictionary( 297Dictionary<CodeAction, int> codeActionToDiagnosticLocation,
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (2)
50var currentDiagnosticSpans = new Dictionary<Diagnostic, TextSpan>(); 130private static void UpdateDiagnosticSpans(ImmutableArray<Diagnostic> diagnostics, Dictionary<Diagnostic, TextSpan> currentDiagnosticSpans, IEnumerable<TextChange> textChanges)
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
126private readonly Dictionary<string, FolderInfo> _childFolders;
Completion\CompletionService_GetCompletions.cs (5)
132var completionProviderToIndex = GetCompletionProviderToIndex(providers); 326private static Dictionary<CompletionProvider, int> GetCompletionProviderToIndex(ConcatImmutableArray<CompletionProvider> completionProviders) 328var result = new Dictionary<CompletionProvider, int>(completionProviders.Length); 368private static readonly ObjectPool<Dictionary<string, object>> s_uniqueSourcesPool = new(factory: () => [], size: 5); 371private readonly Dictionary<string, object> _displayNameToItemsMap = s_uniqueSourcesPool.Allocate();
Completion\CompletionService.ProviderManager.cs (1)
30private readonly Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>> _rolesToProviders;
Completion\PatternMatchHelper.cs (1)
38private readonly Dictionary<(CultureInfo, bool includeMatchedSpans), PatternMatcher> _patternMatcherMap = [];
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
32private static readonly Dictionary<string, (string tagOpen, string textBeforeCaret, string textAfterCaret, string? tagClose)> s_tagMap =
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
230var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default);
Completion\Providers\AbstractSymbolCompletionProvider.cs (13)
52Dictionary<ITypeSymbol, bool> typeConvertibilityCache) 91private static bool ShouldIncludeInTargetTypedCompletionListForNamedType(INamedTypeSymbol symbol, TSyntaxContext syntaxContext, Dictionary<ITypeSymbol, bool> typeConvertibilityCache) 151Dictionary<ISymbol, ArrayBuilder<ProjectId>>? invalidProjectMap, 176var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default); 262Dictionary<ITypeSymbol, bool> typeConvertibilityCache, 279Dictionary<ISymbol, ArrayBuilder<ProjectId>>? invalidProjectMap, 395var symbolToContextMap = UnionSymbols(contextAndSymbolLists); 396var missingSymbolsMap = FindSymbolsMissingInLinkedContexts(symbolToContextMap, contextAndSymbolLists); 414private static Dictionary<SymbolAndSelectionInfo, TSyntaxContext> UnionSymbols( 421var result = new Dictionary<SymbolAndSelectionInfo, TSyntaxContext>(); 482private static Dictionary<ISymbol, ArrayBuilder<ProjectId>> FindSymbolsMissingInLinkedContexts( 483Dictionary<SymbolAndSelectionInfo, TSyntaxContext> symbolToContext, 486var missingSymbols = new Dictionary<ISymbol, ArrayBuilder<ProjectId>>(LinkedFilesSymbolEquivalenceComparer.Instance);
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.cs (3)
131Dictionary<ITypeSymbol, bool> typeConvertibilityCache = []; 201Dictionary<ITypeSymbol, bool> typeConvertibilityCache) 216private static string GetFullyQualifiedNamespaceName(INamespaceSymbol symbol, Dictionary<INamespaceSymbol, string> stringCache)
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
382var parameterToPropMap = new Dictionary<string, ISymbol>();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (4)
302var documentToEditorMap = new Dictionary<Document, SyntaxEditor>(); 325Dictionary<Document, SyntaxEditor> documentToEditorMap, 554Dictionary<Document, SyntaxEditor> documentToEditorMap, 584Document startingDocument, Dictionary<Document, SyntaxEditor> documentToEditorMap, CancellationToken cancellationToken)
Copilot\CopilotChangeAnalysis.cs (10)
39[property: DataMember(Order = 2)] Dictionary<string, int> IdToCount, 40[property: DataMember(Order = 3)] Dictionary<string, int> CategoryToCount, 41[property: DataMember(Order = 4)] Dictionary<DiagnosticSeverity, int> SeverityToCount); 54[property: DataMember(Order = 2)] Dictionary<string, int> DiagnosticIdToCount, 55[property: DataMember(Order = 3)] Dictionary<string, TimeSpan> DiagnosticIdToApplicationTime, 56[property: DataMember(Order = 4)] Dictionary<string, HashSet<string>> DiagnosticIdToProviderName, 57[property: DataMember(Order = 5)] Dictionary<string, TimeSpan> ProviderNameToApplicationTime, 58[property: DataMember(Order = 6)] Dictionary<string, bool> ProviderNameToHasConflict, 59[property: DataMember(Order = 7)] Dictionary<string, int> ProviderNameToTotalCount, 60[property: DataMember(Order = 8)] Dictionary<string, int> ProviderNameToSuccessCount);
Copilot\CopilotChangeAnalysisUtilities.cs (1)
111private static string StringifyDictionary<TKey, TValue>(Dictionary<TKey, TValue> dictionary) where TKey : notnull where TValue : notnull
Copilot\ICopilotChangeAnalysisService.cs (12)
150private static void IncrementCount<TKey>(Dictionary<TKey, int> map, TKey key) where TKey : notnull 156private static void IncrementElapsedTime<TKey>(Dictionary<TKey, TimeSpan> map, TKey key, TimeSpan elapsed) where TKey : notnull 181var idToCount = new Dictionary<string, int>(); 182var categoryToCount = new Dictionary<string, int>(); 183var severityToCount = new Dictionary<DiagnosticSeverity, int>(); 243var diagnosticIdToCount = new Dictionary<string, int>(); 244var diagnosticIdToApplicationTime = new Dictionary<string, TimeSpan>(); 245var diagnosticIdToProviderName = new Dictionary<string, HashSet<string>>(); 246var providerNameToApplicationTime = new Dictionary<string, TimeSpan>(); 247var providerNameToHasConflict = new Dictionary<string, bool>(); 248var providerNameToTotalCount = new Dictionary<string, int>(); 249var providerNameToSuccessCount = new Dictionary<string, int>();
Copilot\ICopilotCodeAnalysisService.cs (1)
89Task<(Dictionary<string, string>? responseDictionary, bool isQuotaExceeded)> GetDocumentationCommentAsync(DocumentationCommentProposal proposal, CancellationToken cancellationToken);
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
33public static void AppendAnalyzerMap(this Dictionary<string, DiagnosticAnalyzer> analyzerMap, ImmutableArray<DiagnosticAnalyzer> analyzers)
Diagnostics\Service\DiagnosticAnalyzerService.IncrementalMemberEditAnalyzer.cs (4)
135Dictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 150Dictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 162Dictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder) 175Dictionary<DiagnosticAnalyzer, ImmutableArray<DiagnosticData>> builder)
DocumentationComments\CopilotDocumentationCommentGenerator.cs (1)
170static string? GetCopilotStatement(Dictionary<string, string> documentationCommentDictionary, DocumentationCommentProposedEdit edit, string? symbolKey)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (16)
402internal abstract void ReportTopLevelSyntacticRudeEdits(RudeEditDiagnosticsBuilder diagnostics, Match<SyntaxNode> match, Edit<SyntaxNode> edit, Dictionary<SyntaxNode, EditKind> editMap); 618var editMap = BuildEditMap(syntacticEdits); 792private void ReportTopLevelSyntacticRudeEdits(RudeEditDiagnosticsBuilder diagnostics, EditScript<SyntaxNode> syntacticEdits, Dictionary<SyntaxNode, EditKind> editMap) 800internal Dictionary<SyntaxNode, EditKind> BuildEditMap(EditScript<SyntaxNode> editScript) 802var map = new Dictionary<SyntaxNode, EditKind>(editScript.Edits.Length); 1146Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas = null; 1581ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas) 1634var map = new Dictionary<SyntaxNode, SyntaxNode>(); 1666[Out] Dictionary<LambdaBody, LambdaInfo> activeOrMatchedLambdas) 1801Dictionary<LambdaBody, LambdaInfo> lambdaInfos) 2682public readonly Dictionary<SyntaxNode, SyntaxMaps> ChangedDeclarations = []; 3668Dictionary<INamedTypeSymbol, MemberInitializationUpdates> constructorEdits; 6395private static void BuildIndex(Dictionary<VariableCaptureKey, int> index, ImmutableArray<VariableCapture> array) 6524[Out] Dictionary<SyntaxNode, RudeEditDiagnostic> closureRudeEdits, 7186internal void ReportTopLevelSyntacticRudeEdits(RudeEditDiagnosticsBuilder diagnostics, EditScript<SyntaxNode> syntacticEdits, Dictionary<SyntaxNode, EditKind> editMap) 7192ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas)
EditAndContinue\CommittedSolution.cs (1)
107private readonly Dictionary<DocumentId, DocumentState> _documentState = [];
EditAndContinue\DebuggingSession.cs (2)
78private readonly Dictionary<ProjectId, ImmutableList<ProjectBaseline>> _projectBaselines = []; 79private readonly Dictionary<Guid, (IDisposable metadata, IDisposable pdb)> _initialBaselineModuleReaders = [];
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
34private static Dictionary<ManagedHotReloadAvailabilityStatus, DiagnosticDescriptor>? s_lazyModuleDiagnosticDescriptors;
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
27private readonly Dictionary<DocumentId, (AsyncLazy<DocumentAnalysisResults> results, Project oldProject, Document? newDocument, ImmutableArray<ActiveStatementLineSpan> activeStatementSpans)> _analyses = [];
EditAndContinue\EditSession.cs (2)
939var mergedUpdateEditSyntaxMaps = new Dictionary<SymbolKey, (Func<SyntaxNode, SyntaxNode?>? matchingNodes, Func<SyntaxNode, RuntimeRudeEdit?>? runtimeRudeEdits)>(symbolKeyComparer); 1143var changedDocumentsStaleness = new Dictionary<string, DocumentStalenessReason?>(SolutionState.FilePathComparer);
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
27private readonly Dictionary<string, (DocumentState state, int solutionVersion)> _documentsWithChangedLoaderByPath = [];
EditAndContinue\SolutionSnapshotRegistry.cs (1)
27private readonly Dictionary<SolutionSnapshotId, Solution> _pendingSolutionSnapshots = [];
EditAndContinue\Utilities\BidirectionalMap.cs (4)
28var forward = new Dictionary<T, T>(Forward.Count + 1); 29var reverse = new Dictionary<T, T>(Reverse.Count + 1); 50var forward = new Dictionary<T, T>(count); 51var reverse = new Dictionary<T, T>(count);
EmbeddedLanguages\EmbeddedLanguageCommentOptions.cs (1)
23private static readonly Dictionary<string, TOptions> s_nameToOption =
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
24public static readonly Dictionary<string, (string shortDescription, string longDescription)> EscapeCategories =
Extensions\ExtensionMessageHandlerService.cs (4)
18using CachedHandlers = Dictionary<string, AsyncLazy<ImmutableArray<IExtensionMessageHandlerWrapper>>>; 51private readonly (CachedHandlers workspace, CachedHandlers document) _cachedHandlers_useOnlyUnderLock = ([], []); 186CachedHandlers cachedHandlers,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
195var statMap = new Dictionary<string, List<int>>();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerRegistrationService.cs (1)
30private readonly Dictionary<(string workspaceKind, SolutionServices services), UnitTestingWorkCoordinator> _documentWorkCoordinatorMap = [];
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (2)
312var oldProjectSourceGeneratedDocumentsById = oldProjectSourceGeneratedDocuments.ToDictionary(static document => document.Id); 314var newProjectSourceGeneratedDocumentsById = newProjectSourceGeneratedDocuments.ToDictionary(static document => document.Id);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncDocumentWorkItemQueue.cs (9)
18private readonly Dictionary<ProjectId, Dictionary<DocumentId, UnitTestingWorkItem>> _documentWorkQueue = []; 25if (_documentWorkQueue.TryGetValue(key.ProjectId, out var documentMap) && 33SharedPools.BigDefault<Dictionary<DocumentId, UnitTestingWorkItem>>().ClearAndFree(documentMap); 69var documentMap = _documentWorkQueue[projectId]; 101if (_documentWorkQueue.TryGetValue(key.ProjectId, out var documentMap) && 115documentMap = SharedPools.BigDefault<Dictionary<DocumentId, UnitTestingWorkItem>>().AllocateAndClear(); 133foreach (var map in _documentWorkQueue.Values) 140SharedPools.BigDefault<Dictionary<DocumentId, UnitTestingWorkItem>>().ClearAndFree(map);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncProjectWorkItemQueue.cs (1)
18private readonly Dictionary<ProjectId, UnitTestingWorkItem> _projectWorkQueue = [];
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingAsyncWorkItemQueue.cs (2)
29private readonly Dictionary<object, CancellationTokenSource> _cancellationMap = []; 241Dictionary<ProjectId, T> workQueue,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
287private readonly Dictionary<(string workspaceKind, SolutionServices services), ImmutableArray<IUnitTestingIncrementalAnalyzer>> _analyzerMap = [];
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (4)
39private readonly Dictionary<DocumentId, UnitTestingData> _pendingWork = []; 266private static TValue DequeueWorker<TKey, TValue>(SemaphoreSlim gate, Dictionary<TKey, TValue> map, CancellationToken cancellationToken) 286private static void ClearQueueWorker<TKey, TValue>(SemaphoreSlim gate, Dictionary<TKey, TValue> map, Func<TValue, IDisposable> disposerSelector) 331private readonly Dictionary<ProjectId, UnitTestingData> _pendingWork = [];
ExtractMethod\AbstractSyntaxTriviaService.cs (15)
32var tokens = GetTokensAtEdges(root, textSpan); 37var triviaList = GetTriviaAtEdges(tokens, textSpan); 39var annotations = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount) 43var map = CreateOldToNewTokensMap(tokens, annotations); 63Dictionary<TriviaLocation, SyntaxAnnotation> annotations, 64Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> triviaList) 69private static Dictionary<SyntaxToken, SyntaxToken> CreateOldToNewTokensMap( 70Dictionary<TriviaLocation, SyntaxToken> tokens, 71Dictionary<TriviaLocation, SyntaxAnnotation> annotations) 74var map = new Dictionary<SyntaxToken, SyntaxToken>(); 92private static Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> GetTriviaAtEdges(Dictionary<TriviaLocation, SyntaxToken> tokens, TextSpan textSpan) 97var triviaList = new Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> 108private static Dictionary<TriviaLocation, SyntaxToken> GetTokensAtEdges(SyntaxNode root, TextSpan textSpan) 110var tokens = new Dictionary<TriviaLocation, SyntaxToken>
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (26)
22private readonly Dictionary<TriviaLocation, SyntaxAnnotation> _annotations; 23private readonly Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> _triviaList; 28Dictionary<TriviaLocation, SyntaxAnnotation> annotations, 29Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> triviaList) 49var tokens = RecoverTokensAtEdges(root, annotationResolver); 50var map = CreateOldToNewTokensMap(tokens, triviaResolver); 55private static Dictionary<SyntaxToken, SyntaxToken> CreateOldToNewTokensMap( 56Dictionary<TriviaLocation, PreviousNextTokenPair> tokenPairs, 57Dictionary<TriviaLocation, LeadingTrailingTriviaPair> triviaPairs) 59var map = new Dictionary<SyntaxToken, SyntaxToken>(); 100private Dictionary<TriviaLocation, SyntaxToken> RecoverTokensAtEdges( 106var tokens = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount) 122private Dictionary<SyntaxToken, SyntaxToken> CreateOldToNewTokensMap( 123Dictionary<TriviaLocation, SyntaxToken> tokens, 126var tokenPairs = CreatePreviousNextTokenPairs(tokens); 127var tokenToLeadingTrailingTriviaMap = CreateTokenLeadingTrailingTriviaMap(tokens); 131var triviaPairs = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount) 154Dictionary<TriviaLocation, PreviousNextTokenPair> tokenPairs, 155Dictionary<TriviaLocation, LeadingTrailingTriviaPair> triviaPairs) 173private Dictionary<SyntaxToken, LeadingTrailingTriviaPair> CreateTokenLeadingTrailingTriviaMap( 174Dictionary<TriviaLocation, SyntaxToken> tokens) 177var map = new Dictionary<SyntaxToken, LeadingTrailingTriviaPair>(); 210private static Dictionary<TriviaLocation, PreviousNextTokenPair> CreatePreviousNextTokenPairs( 211Dictionary<TriviaLocation, SyntaxToken> tokens) 213var tokenPairs = new Dictionary<TriviaLocation, PreviousNextTokenPair> 270Dictionary<SyntaxToken, LeadingTrailingTriviaPair> triviaMap)
ExtractMethod\ExtractMethodFlowControlInformation.cs (3)
33private readonly Dictionary<FlowControlKind, object?> _flowValues = []; 43Dictionary<FlowControlKind, object?> flowValues) 62var flowValues = new Dictionary<FlowControlKind, object?>();
ExtractMethod\ExtractMethodMatrix.cs (1)
15private static readonly Dictionary<Key, VariableStyle> s_matrix;
ExtractMethod\ISyntaxTriviaService.cs (1)
34internal delegate IEnumerable<SyntaxTrivia> TriviaResolver(TriviaLocation location, PreviousNextTokenPair tokenPair, Dictionary<SyntaxToken, LeadingTrailingTriviaPair> triviaMap);
ExtractMethod\MethodExtractor.Analyzer.cs (3)
81bestEffort: false, dataFlowAnalysisData, symbolMap, isInPrimaryConstructorBaseType, out var variableInfoMap, out var failedVariables); 147GetSignatureInformation(Dictionary<ISymbol, VariableInfo> symbolMap, ExtractMethodFlowControlInformation flowControlInformation) 406out Dictionary<ISymbol, VariableInfo> variableInfoMap,
ExtractMethod\SelectionResult.cs (2)
245var tokenMap = pairs.GroupBy(p => p.Item1, p => p.Item2).ToDictionary(g => g.Key, g => g.ToArray()); 258var tokenMap = pairs.GroupBy(p => p.Item1, p => p.Item2).ToDictionary(g => g.Key, g => g.ToArray());
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
69private readonly Dictionary<SymbolGroup, DefinitionItem> _definitionToItem = [];
FindUsages\IRemoteFindUsagesService.cs (1)
91private readonly Dictionary<int, DefinitionItem> _idToDefinition = [];
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
359var renameTable = new Dictionary<ISymbol, string>();
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (4)
244var methodCallSites = selectedCodeAction == IntroduceParameterCodeActionKind.Overload 300IMethodSymbol methodSymbol, SyntaxNode containingMethod, Dictionary<Document, List<TExpressionSyntax>> methodCallSites, bool allOccurrences, IntroduceParameterCodeActionKind selectedCodeAction, 332protected static async Task<Dictionary<Document, List<TExpressionSyntax>>> FindCallSitesAsync( 335var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (10)
62private async Task<Dictionary<TIdentifierNameSyntax, IParameterSymbol>> MapExpressionToParametersAsync(CancellationToken cancellationToken) 64var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>(); 234var expressionParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false); 243var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); 313Dictionary<IParameterSymbol, int> parameterToArgumentMap, SyntaxNode currentArgumentListSyntax, 495var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); 496var expressionToParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false); 550Dictionary<TIdentifierNameSyntax, IParameterSymbol> mappingDictionary, 551Dictionary<IParameterSymbol, int> parameterToArgumentMap, 624Dictionary<IParameterSymbol, int> mapping, SeparatedSyntaxList<SyntaxNode> arguments,
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (4)
114var structuralTypeToName = GenerateStructuralTypeNames(transitiveStructuralTypeReferences); 121private static Dictionary<INamedTypeSymbol, string> GenerateStructuralTypeNames( 125var anonymousTypeToName = new Dictionary<INamedTypeSymbol, string>(); 189var transitiveReferences = new Dictionary<INamedTypeSymbol, (int order, int count)>();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (2)
13private sealed class StructuralTypeCollectorVisitor(Dictionary<INamedTypeSymbol, (int order, int count)> namedTypes) : SymbolVisitor 16private readonly Dictionary<INamedTypeSymbol, (int order, int count)> _namedTypes = namedTypes;
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (4)
83private readonly Dictionary<SymbolDescriptionGroups, IList<SymbolDisplayPart>> _groupMap = []; 84private readonly Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> _documentationMap = []; 517private Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> BuildDescriptionSections() 522var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
42private readonly Dictionary<UniqueDocumentKey, MetadataAsSourceGeneratedFileInfo> _keyToInformation = [];
MetadataAsSource\TelemetryMessage.cs (1)
53private void SetLogProperties(Dictionary<string, object?> properties)
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
416var nodesToUpdate = new Dictionary<SyntaxNode, SyntaxNode>();
PdbSourceDocument\ImplementationAssemblyLookupService.cs (7)
33private readonly Dictionary<string, Dictionary<(string @namespace, string typeName), string>?> _typeForwardCache = new(StringComparer.OrdinalIgnoreCase); 72if (TryGetCachedTypeForwards(dllPath, out var typeForwards)) 91var cachedTypeForwards = GetAllTypeForwards(md); 105bool TryGetCachedTypeForwards(string dllPath, [NotNullWhen(true)] out Dictionary<(string @namespace, string typeName), string>? typeForwards) 192private static Dictionary<(string, string), string>? GetAllTypeForwards(MetadataReader md) 197Dictionary<(string, string), string>? result = null;
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
53private readonly Dictionary<string, ProjectId> _assemblyToProjectMap = [];
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
23var result = new Dictionary<Glyph, QuickInfoGlyphElement>(capacity: glyphs.Length);
Snippets\AbstractSnippetService.cs (1)
20private readonly Dictionary<string, ISnippetProvider> _identifierToProviderMap = [];
Snippets\RoslynLSPSnippetConverter.cs (1)
84private static void PopulateMapOfSpanStartsToLSPStringItem(Dictionary<int, (string identifier, int priority)> dictionary, ImmutableArray<SnippetPlaceholder> placeholders, int textChangeStart)
src\roslyn\src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
25private static readonly Dictionary<(bool includeInFixAll, string equivalenceKey), ImmutableDictionary<string, string?>> s_cachedProperties = [];
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\AbstractOrderModifiersDiagnosticAnalyzer.cs (3)
46|| !_helpers.TryGetOrComputePreferredOrder(option.Value, out var preferredOrder)) 62Dictionary<int, int> preferredOrder, 68Dictionary<int, int> preferredOrder,
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (6)
19private Tuple<string, Dictionary<int, int>>? _lastParsed; 23public static bool IsOrdered(Dictionary<int, int> preferredOrder, SyntaxTokenList modifiers) 43public bool TryGetOrComputePreferredOrder(string value, [NotNullWhen(true)] out Dictionary<int, int>? preferredOrder) 54if (!TryParse(value, out var parsed)) 68protected virtual bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed) 70var result = new Dictionary<int, int>();
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (4)
29var enumMembers = new Dictionary<long, ISymbol>(); 52ISwitchExpressionOperation operation, Dictionary<long, ISymbol> enumMembers) 64internal static void HandleBinaryPattern(IBinaryPatternOperation? binaryPattern, Dictionary<long, ISymbol> enumMembers) 76private static void RemoveIfConstantPatternHasValue(IOperation operation, Dictionary<long, ISymbol> enumMembers)
src\roslyn\src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (3)
60var enumMembers = new Dictionary<long, ISymbol>(); 97private static bool TryRemoveExistingEnumMembers(ISwitchOperation switchStatement, Dictionary<long, ISymbol> enumValues) 153Dictionary<long, ISymbol> enumValues)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
124private readonly Dictionary<ISymbol, ValueUsageInfo> _symbolValueUsageStateMap_doNotAccessDirectly = new(OriginalDefinitionSymbolEqualityComparer.Instance);
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
80var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
174var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
36public readonly Dictionary<ITypeSymbol, ITypeSymbol> Substitutions = [];
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
474var mapping = capturedMethodTypeParameters.ToDictionary(tp => tp,
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
109var cache = new Dictionary<DocumentId, SemanticDocument>();
src\roslyn\src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
48if (!_helpers.TryGetOrComputePreferredOrder(option.Value, out var preferredOrder))
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
320var canEditMap = new Dictionary<DocumentId, bool>();
UnusedReferences\ProjectAssets\ProjectAssetsModel.cs (8)
16public Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>>? Targets { get; set; } 17public Dictionary<string, ProjectAssetsLibrary>? Libraries { get; set; } 18public Dictionary<string, List<string>>? ProjectFileDependencyGroups { get; set; } 25public Dictionary<string, string>? Dependencies { get; set; } 26public Dictionary<string, ProjectAssetsTargetLibraryCompile>? Compile { get; set; } 42public Dictionary<string, ProjectAssetsProjectFramework>? Frameworks { get; set; } 54public Dictionary<string, ProjectAssetsProjectFrameworkDependency>? Dependencies { get; set; }
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (4)
60var builtReferences = new Dictionary<string, ReferenceInfo?>(); 75Dictionary<string, ReferenceInfo?> builtReferences) 100Dictionary<string, ReferenceInfo?> builtReferences) 120var target = projectAssets.Targets[targetName];
UnusedReferences\UnusedReferencesRemover.cs (1)
70var referencesByType = references.GroupBy(reference => reference.ReferenceType)
Wrapping\AbstractCodeActionComputer.cs (2)
222Dictionary<SyntaxToken, SyntaxTriviaList> leftTokenToTrailingTrivia, 223Dictionary<SyntaxToken, SyntaxTriviaList> rightTokenToLeadingTrivia,
Microsoft.CodeAnalysis.Features.ExternalAccess (7)
Copilot\CodeMapper\ICSharpCopilotMapCodeService.cs (1)
19Dictionary<string, object> options,
Copilot\GenerateDocumentation\IExternalCSharpCopilotGenerateDocumentationService.cs (1)
13Task<(Dictionary<string, string>? responseDictionary, bool isQuotaExceeded)> GetDocumentationCommentAsync(CopilotDocumentationCommentProposalWrapper proposal, CancellationToken cancellationToken);
Copilot\Internal\Analyzer\AbstractCopilotCodeAnalysisService.cs (2)
48protected abstract Task<(Dictionary<string, string>? responseDictionary, bool isQuotaExceeded)> GetDocumentationCommentCoreAsync(DocumentationCommentProposal proposal, CancellationToken cancellationToken); 203public async Task<(Dictionary<string, string>? responseDictionary, bool isQuotaExceeded)> GetDocumentationCommentAsync(DocumentationCommentProposal proposal, CancellationToken cancellationToken)
Copilot\Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (2)
146protected override Task<(Dictionary<string, string>? responseDictionary, bool isQuotaExceeded)> GetDocumentationCommentCoreAsync(DocumentationCommentProposal proposal, CancellationToken cancellationToken) 151return Task.FromResult<(Dictionary<string, string>?, bool)>((null, false));
Copilot\Internal\CodeMapper\CopilotCSharpMapCodeService.cs (1)
32var options = new Dictionary<string, object>();
Microsoft.CodeAnalysis.NetAnalyzers (55)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (1)
125var propertiesMap = new Dictionary<string, IPropertySymbol>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypeNamesShouldNotMatchNamespaces.cs (4)
104var namespaceComponentToNamespaceNameDictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 286var wellKnownSystemNamespaceTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 294private static void UpdateNamespaceTable(Dictionary<string, string> namespaceTable, IList<string> namespaces) 307private static void UpdateNamespaceTable(Dictionary<string, string> namespaceTable, string namespaceName)
Microsoft.CodeQuality.Analyzers\Maintainability\UseCrossPlatformIntrinsicsAnalyzer.cs (5)
140Dictionary<IMethodSymbol, RuleKind> methodSymbols = new Dictionary<IMethodSymbol, RuleKind>(SymbolEqualityComparer.Default); 303static void AddBinaryOperatorMethods(Dictionary<IMethodSymbol, RuleKind> methodSymbols, string name, INamedTypeSymbol typeSymbol, RuleKind ruleKind, params SpecialType[] supportedTypes) 321static void AddShiftOperatorMethods(Dictionary<IMethodSymbol, RuleKind> methodSymbols, string name, INamedTypeSymbol typeSymbol, RuleKind ruleKind, params SpecialType[] supportedTypes) 340static void AddUnaryOperatorMethods(Dictionary<IMethodSymbol, RuleKind> methodSymbols, string name, INamedTypeSymbol typeSymbol, RuleKind ruleKind, params SpecialType[] supportedTypes) 358private void AnalyzeInvocation(OperationAnalysisContext context, Dictionary<IMethodSymbol, RuleKind> methodSymbols)
Microsoft.NetCore.Analyzers\Performance\AvoidPotentiallyExpensiveCallWhenLogging.cs (4)
42private static readonly Dictionary<string, int> s_logLevelsByName = new(StringComparer.OrdinalIgnoreCase) 262Dictionary<IMethodSymbol, int> logExtensionsMethodsAndLevel, 267private readonly Dictionary<IMethodSymbol, int> _logExtensionsMethodsAndLevel = logExtensionsMethodsAndLevel; 279Dictionary<IMethodSymbol, int> logExtensionsMethods = new(SymbolEqualityComparer.Default);
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (2)
196var results = new Dictionary<ISymbol, HashSet<ISymbol>>(); 247Dictionary<ISymbol, HashSet<ISymbol>> results)
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (2)
334var results = new Dictionary<ISymbol, HashSet<ISymbol>>(); 379void FindAllTheSpecifiedCalleeMethods(ISymbol methodSymbol, HashSet<ISymbol> visited, Dictionary<ISymbol, HashSet<ISymbol>> results)
Microsoft.NetCore.Analyzers\Security\UseContainerLevelAccessPolicy.cs (1)
72var namespaceTypeSymbolAndPolicyIdentifierNamePairs = new Dictionary<INamespaceSymbol, string>();
Microsoft.NetCore.Analyzers\Tasks\UseValueTasksCorrectly.cs (1)
242var seen = new Dictionary<BasicBlock, FlowState>();
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessing.cs (3)
189private readonly Dictionary<ISymbol, XmlDocumentEnvironment> _xmlDocumentEnvironments = new(); 190private readonly Dictionary<ISymbol, XmlTextReaderEnvironment> _xmlTextReaderEnvironments = new(); 191private readonly Dictionary<ISymbol, XmlReaderSettingsEnvironment> _xmlReaderSettingsEnvironments = new();
src\40daf5e1cab76dff\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (1)
33private Dictionary<SymbolAccess, (ImmutableHashSet<SinkKind>.Builder SinkKinds, ImmutableHashSet<SymbolAccess>.Builder SourceOrigins)> TaintedSourcesBySink { get; }
src\afc74d572e54ec72\DisposeAnalysis.DisposeDataFlowOperationVisitor.cs (1)
25private readonly Dictionary<IFieldSymbol, PointsToAbstractValue>? _trackedInstanceFieldLocations;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (4)
387internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 392var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 405var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 419var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\TemporaryDictionary`2.cs (5)
22private static readonly Dictionary<TKey, TValue> EmptyDictionary = new(); 63private readonly Dictionary<TKey, TValue> _dictionary; 65public Enumerable(Dictionary<TKey, TValue> dictionary) 76private Dictionary<TKey, TValue>.Enumerator _enumerator; 78public Enumerator(Dictionary<TKey, TValue>.Enumerator enumerator)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\RulesetToEditorconfigConverter.cs (3)
66var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 105static void ProcessComments(RuleSet ruleset, HashSet<string> processedRulesetPaths, Dictionary<string, string> ruleIdToComments) 121static void PopulateRuleIdToComments(string rulesetFilePath, Dictionary<string, string> ruleIdToComments)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
123var originalCoreAnalysisData = new Dictionary<AnalysisEntity, CopyAbstractValue>(coreAnalysisData);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (5)
28private readonly Dictionary<IOperation, AnalysisEntity?> _analysisEntityMap; 29private readonly Dictionary<ITupleOperation, ImmutableArray<AnalysisEntity>> _tupleElementEntitiesMap; 30private readonly Dictionary<CaptureId, AnalysisEntity> _captureIdEntityMap; 31private readonly Dictionary<CaptureId, CopyAbstractValue> _captureIdCopyValueMap; 32private readonly Dictionary<ISymbol, PointsToAbstractValue> _instanceLocationsForSymbols;
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResult.cs (2)
45Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>? taskWrappedValuesMap, 222internal Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>? TaskWrappedValuesMap { get; }
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowAnalysisResultBuilder.cs (2)
55Dictionary<ThrownExceptionInfo, TAnalysisData>? analysisDataForUnhandledThrowOperations, 56Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>? taskWrappedValuesMap,
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (7)
125private readonly Dictionary<IMethodSymbol, ControlFlowGraph?>? _interproceduralMethodToCfgMap; 148internal Dictionary<ThrownExceptionInfo, TAnalysisData>? AnalysisDataForUnhandledThrowOperations { get; private set; } 158internal Dictionary<PointsToAbstractValue, TAbstractAnalysisValue>? TaskWrappedValuesMap { get; private set; } 226private Dictionary<BasicBlock, ThrownExceptionInfo>? _exceptionPathsThrownExceptionInfoMap; 2143private void ApplyInterproceduralAnalysisDataForUnhandledThrowOperations(Dictionary<ThrownExceptionInfo, TAnalysisData> interproceduralUnhandledThrowOperationsData) 2313if (analysisResult.AnalysisDataForUnhandledThrowOperations is Dictionary<ThrownExceptionInfo, TAnalysisData> interproceduralUnhandledThrowOperationsDataOpt) 2318if (analysisResult.TaskWrappedValuesMap is Dictionary<PointsToAbstractValue, TAbstractAnalysisValue> taskWrappedValuesMap)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
32var rvalueFlowCaptureIds = new Dictionary<CaptureId, HashSet<IFlowCaptureReferenceOperation>>();
Microsoft.CodeAnalysis.Razor.Compiler (44)
CSharp\GenericTypeNameRewriter.cs (4)
19private readonly Dictionary<string, ComponentTypeArgumentIntermediateNode> _bindings; 21public GenericTypeNameRewriter(Dictionary<string, ComponentTypeArgumentIntermediateNode> bindings) 46private readonly Dictionary<string, ComponentTypeArgumentIntermediateNode> _bindings; 49public Visitor(Dictionary<string, ComponentTypeArgumentIntermediateNode> bindings, ImmutableArray<ComponentTypeArgumentIntermediateNode>.Builder usedBindings)
Language\BoundAttributeDescriptorBuilder.cs (1)
16private static readonly Dictionary<string, string> s_primitiveDisplayTypeNameLookups = new(StringComparer.Ordinal)
Language\CodeGeneration\TagHelperRenderingContext.cs (2)
13private Dictionary<string, string> _renderedBoundAttributes; 16public Dictionary<string, string> RenderedBoundAttributes
Language\Components\ComponentBindLoweringPass.cs (2)
73using var _ = DictionaryPool<BindEntryKey, BindEntry>.GetPooledObject(out var bindEntries); 332using var _ = SpecializedPools.GetPooledStringDictionary<ImmutableArray<AttributeInfo>.Builder>(out var duplicates);
Language\Components\ComponentGenericTypePass.cs (4)
64var bindings = new Dictionary<string, Binding>(); 104var mappings = bindings.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Node); 251var mappings = bindings.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Node); 297private static bool ValidateTypeArguments(ComponentIntermediateNode node, Dictionary<string, Binding> bindings)
Language\Components\ComponentMarkupDiagnosticPass.cs (1)
28private readonly Dictionary<string, (string name, IntermediateNode node)> _attributes = new(StringComparer.OrdinalIgnoreCase);
Language\Components\ComponentTildePathPass.cs (5)
34private Dictionary<string, HashSet<string>>? _allowedElementAttributes; 57private Dictionary<string, HashSet<string>> GetAllowedElementAttributes(CancellationToken cancellationToken) 69private Dictionary<string, HashSet<string>> BuildAllowedElementAttributes(CancellationToken cancellationToken) 76var result = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase); 102private sealed class Rewriter(Dictionary<string, HashSet<string>> allowedElementAttributes) : IntermediateNodeWalker
Language\ConfigureDirectivesFeature.cs (1)
12private readonly Dictionary<RazorFileKind, ImmutableArray<DirectiveDescriptor>.Builder> _fileKindToDirectivesMap = [];
Language\DefaultRazorTagHelperContextDiscoveryPhase.cs (3)
211private readonly Dictionary<string, List<TagHelperDescriptor>> _tagHelperMap = new(StringComparer.Ordinal); 219private Dictionary<string, List<TagHelperDescriptor>> TagHelperMap 418private readonly Dictionary<ReadOnlyMemory<char>, List<TagHelperDescriptor>> _namespaceToComponentsMap = new(ReadOnlyMemoryOfCharComparer.Instance);
Language\Extensions\DefaultTagHelperOptimizationPass.cs (1)
222private readonly Dictionary<TagHelperDescriptor, string> _tagHelpers;
Language\FeatureCache`1.cs (1)
24private Dictionary<Type, object[]>? _typeToFeaturesMap;
Language\Intermediate\ComponentIntermediateNode.cs (1)
48public Dictionary<string, CascadingGenericTypeParameter> ProvidesCascadingGenericTypes { get; set; }
Language\Intermediate\IntermediateNodeFormatter.cs (2)
31private static readonly Dictionary<Type, string> s_nodeTypeToShortNameMap = []; 39private readonly Dictionary<string, string> _properties = new(StringComparer.Ordinal);
Language\Legacy\CSharpCodeParser.cs (5)
115private readonly Dictionary<CSharpSyntaxKind, Action<SyntaxListBuilder<RazorSyntaxNode>, CSharpTransitionSyntax?>> _keywordParserMap; 116private readonly Dictionary<string, Action<SyntaxListBuilder<RazorSyntaxNode>, CSharpTransitionSyntax>> _directiveParserMap; 154var keywordParserMap = new Dictionary<CSharpSyntaxKind, Action<SyntaxListBuilder<RazorSyntaxNode>, CSharpTransitionSyntax?>>(capacity: s_initialKeywordCount + 1); 158var directiveParserMap = new Dictionary<string, Action<SyntaxListBuilder<RazorSyntaxNode>, CSharpTransitionSyntax>>(capacity: directives.Length + 5, StringComparer.Ordinal); 226Dictionary<string, Action<SyntaxListBuilder<RazorSyntaxNode>, CSharpTransitionSyntax>> directiveParserMap,
Language\Legacy\NativeCSharpLanguageCharacteristics.cs (1)
15private static readonly Dictionary<SyntaxKind, string> _tokenSamples = new Dictionary<SyntaxKind, string>()
Language\Legacy\NativeCSharpTokenizer.cs (1)
24private readonly Dictionary<char, Func<SyntaxKind>> _operatorHandlers;
Language\Legacy\RoslynCSharpLanguageCharacteristics.cs (1)
15private static readonly Dictionary<SyntaxKind, string> _tokenSamples = new Dictionary<SyntaxKind, string>()
Language\RazorLanguageVersion.cs (1)
47var map = new Dictionary<string, RazorLanguageVersion>(StringComparer.OrdinalIgnoreCase)
Language\TagHelperBinder.cs (2)
59using var _1 = SpecializedPools.GetPooledStringDictionary<int>(ignoreCase: true, out var tagNameToBuilderIndexMap); 102var map = new Dictionary<string, TagHelperSet>(capacity: tagNameToBuilderIndexMap.Count, StringComparer.OrdinalIgnoreCase);
Language\TagHelperCollection.SegmentCollectionBase.cs (3)
26private LazyValue<TagHelperCollection, Dictionary<Checksum, int>> _lazyLookupTable = new(collection => 28var lookupTable = new Dictionary<Checksum, int>(collection.Count); 59private Dictionary<Checksum, int> LookupTable
Language\TypeNameObject.cs (1)
34var typeNameToIndex = new Dictionary<string, byte>(StringComparer.Ordinal);
Mvc\ViewComponentTagHelperPass.cs (1)
151private readonly Dictionary<TagHelperDescriptor, (string className, string fullyQualifiedName, string fieldName)> _tagHelpers = [];
Microsoft.CodeAnalysis.ResxSourceGenerator (135)
src\60c94c676d650713\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
23Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\60c94c676d650713\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
18public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
28private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 223private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (4)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary, 79public static void AddPooled<K, V>(this Dictionary<K, ArrayBuilder<V>> dictionary, K key, V value)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new(); 124public Dictionary<K, ValueSet>.Enumerator GetEnumerator() 178public Dictionary<K, ValueSet>.KeyCollection Keys
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (4)
206private readonly Dictionary<K, ValueSet> _dictionary; 214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys; 216public Dictionary<K, ValueSet>.ValueCollection Values => _dictionary.Values; 279public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (3)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 106static void ProcessComments(RuleSet ruleset, HashSet<string> processedRulesetPaths, Dictionary<string, string> ruleIdToComments) 122static void PopulateRuleIdToComments(string rulesetFilePath, Dictionary<string, string> ruleIdToComments)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
11Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 16public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (8)
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) : []; 403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
505public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
45protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap, 260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken) 296Dictionary<SyntaxToken, int> previousChangesMap, 324Dictionary<SyntaxToken, int> previousChangesMap, 380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken) 412Dictionary<SyntaxToken, int> previousChangesMap, 448Dictionary<SyntaxToken, int> previousChangesMap, 475Dictionary<SyntaxToken, int> previousChangesMap, 492Dictionary<SyntaxToken, int> previousChangesMap, 544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (3)
44protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken); 95using var pooledObject = SharedPools.Default<Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>>().GetPooledObject(); 97var map = pooledObject.Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
16private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
19var trimmedDictionary = TrimDictionary(allRawConventions); 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull 38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool); 74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary) 77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool); 141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) 144var map = pool.Allocate(); 283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 84return new PooledObject<Dictionary<TKey, TValue>>( 139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (2)
37public static ObjectPool<Dictionary<string, T>> StringIgnoreCaseDictionary<T>() 74public static readonly ObjectPool<Dictionary<string, T>> Instance =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (3)
160var spilledEdges = builderNode.SpilloverEdges; 243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
572private static int GetValue(Dictionary<char, int> da, char c)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue) 232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (4)
15public static Dictionary<K, V> ToDictionaryAndFree<K, V>(this PooledDictionary<K, V> builders) 18var dictionary = new Dictionary<K, V>(builders.Count); 29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
18private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
580Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 601Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 623Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (3)
149public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 164public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
22public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 65private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 73internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 76internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 112private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 140private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 152private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 281private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 301private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 330private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, 486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 617private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Microsoft.CodeAnalysis.Scripting (7)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (4)
45private readonly Dictionary<Assembly, LoadedAssembly> _assembliesLoadedFromLocation; 49private readonly Dictionary<string, AssemblyAndLocation> _assembliesLoadedFromLocationByFullPath; 52private readonly Dictionary<string, List<LoadedAssemblyInfo>> _loadedAssembliesBySimpleName; 55private readonly Dictionary<string, List<AssemblyIdentityAndLocation>> _dependenciesWithLocationBySimpleName;
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (2)
52private readonly Dictionary<FileKey, CacheEntry<MetadataShadowCopy>> _shadowCopies = new Dictionary<FileKey, CacheEntry<MetadataShadowCopy>>(); 56private readonly Dictionary<FileKey, CacheEntry<Metadata>> _noShadowCopyCache = new Dictionary<FileKey, CacheEntry<Metadata>>();
ScriptState.cs (1)
123var map = new Dictionary<string, int>(Script.Compiler.IdentifierComparer);
Microsoft.CodeAnalysis.VisualBasic (63)
Analysis\FlowAnalysis\AbstractFlowPass.Regions.vb (1)
43Private ReadOnly _loopHeadState As Dictionary(Of BoundLoopStatement, LocalState)
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (3)
25Private ReadOnly _byRefLocalsInitializers As Dictionary(Of LocalSymbol, BoundExpression) 33Public ReadOnly ByRefLocalsInitializers As Dictionary(Of LocalSymbol, BoundExpression) 35Friend Sub New(cl As OrderedSet(Of Symbol), initializers As Dictionary(Of LocalSymbol, BoundExpression))
Binding\Binder_Imports.vb (4)
22aliases As Dictionary(Of String, AliasAndImportsClausePosition), 23xmlNamespaces As Dictionary(Of String, XmlNamespaceAndImportsClausePosition)) 30Public ReadOnly Aliases As Dictionary(Of String, AliasAndImportsClausePosition) 31Public ReadOnly XmlNamespaces As Dictionary(Of String, XmlNamespaceAndImportsClausePosition)
Binding\Binder_XmlLiterals.vb (9)
125Dim allAttributes As Dictionary(Of XmlName, BoundXmlAttribute) = Nothing 144<Out()> ByRef allAttributes As Dictionary(Of XmlName, BoundXmlAttribute), 549<Out()> ByRef allAttributes As Dictionary(Of XmlName, BoundXmlAttribute), 1075<Out()> ByRef allAttributes As Dictionary(Of XmlName, BoundXmlAttribute), 1079diagnostics As BindingDiagnosticBag) As Dictionary(Of String, String) 1083Dim namespaces As Dictionary(Of String, String) = Nothing 1143<Out()> ByRef allAttributes As Dictionary(Of XmlName, BoundXmlAttribute), 1477Private ReadOnly _namespaces As Dictionary(Of String, String) 1479Public Sub New(containingBinder As Binder, namespaces As Dictionary(Of String, String))
Binding\BlockBaseBinder.vb (3)
34Private _lazyLocalsMap As Dictionary(Of String, T) 36Private ReadOnly Property LocalsMap As Dictionary(Of String, T) 45Private Function BuildMap(locals As ImmutableArray(Of T)) As Dictionary(Of String, T)
Binding\GetTypeBinder.vb (3)
23Private ReadOnly _allowedMap As Dictionary(Of GenericNameSyntax, Boolean) 46Private _allowedMap As Dictionary(Of GenericNameSyntax, Boolean) = Nothing 54Public Overloads Shared Sub Visit(typeSyntax As ExpressionSyntax, <Out()> ByRef allowedMap As Dictionary(Of GenericNameSyntax, Boolean))
Binding\ImplicitVariableBinder.vb (1)
51Private _implicitLocals As Dictionary(Of String, LocalSymbol)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (3)
33Private ReadOnly _wellKnownElementNodes As Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax)) 40wellKnownElementNodes As Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax)), 111wellKnownElementNodes As Dictionary(Of WellKnownTag, ArrayBuilder(Of XmlNodeSyntax)),
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
393initializers As Dictionary(Of LocalSymbol, BoundExpression)) As CapturedSymbolOrExpression 401initializers As Dictionary(Of LocalSymbol, BoundExpression)) As CapturedSymbolOrExpression
Lowering\Diagnostics\DiagnosticsPass.vb (1)
25Private _withExpressionPlaceholderMap As Dictionary(Of BoundValuePlaceholderBase, BoundWithStatement)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
38Private ReadOnly _parameterMap As Dictionary(Of ParameterSymbol, BoundExpression) = New Dictionary(Of ParameterSymbol, BoundExpression)()
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (6)
50Friend blockParent As Dictionary(Of BoundNode, BoundNode) = New Dictionary(Of BoundNode, BoundNode)() 51Friend lambdaParent As Dictionary(Of LambdaSymbol, MethodSymbol) = New Dictionary(Of LambdaSymbol, MethodSymbol)(ReferenceEqualityComparer.Instance) 58Friend variableScope As Dictionary(Of Symbol, BoundNode) = New Dictionary(Of Symbol, BoundNode)(ReferenceEqualityComparer.Instance) 63Friend labelBlock As Dictionary(Of LabelSymbol, BoundNode) = New Dictionary(Of LabelSymbol, BoundNode)(ReferenceEqualityComparer.Instance) 68Friend gotoBlock As Dictionary(Of BoundGotoStatement, BoundNode) = New Dictionary(Of BoundGotoStatement, BoundNode)() 99Friend lambdaScopes As Dictionary(Of LambdaSymbol, BoundNode)
Lowering\SynthesizedSubmissionFields.vb (1)
27Private _previousSubmissionFieldMap As Dictionary(Of ImplicitNamedTypeSymbol, FieldSymbol)
Symbols\MergedNamespaceSymbol.vb (3)
435Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol))) 567Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol))) 646Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)))
Symbols\Metadata\PE\PENamespaceSymbol.vb (5)
27Protected m_lazyMembers As Dictionary(Of String, ImmutableArray(Of Symbol)) 33Protected m_lazyTypes As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) 39Private _lazyNoPiaLocalTypes As Dictionary(Of String, TypeDefinitionHandle) 236Dim noPiaLocalTypes As Dictionary(Of String, TypeDefinitionHandle) = Nothing 268Dim typesDict As Dictionary(Of String, ImmutableArray(Of PENamedTypeSymbol)) =
Symbols\NamedTypeSymbol.vb (1)
327map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)),
Symbols\NamespaceSymbol.vb (2)
462Friend Overridable Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol))) 489map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)),
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
210map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)),
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
245Friend Overrides Sub BuildExtensionMethodsMap(map As Dictionary(Of String, ArrayBuilder(Of MethodSymbol)))
Symbols\Source\QuickAttributeChecker.vb (1)
22Private ReadOnly _nameToAttributeMap As Dictionary(Of String, QuickAttributes)
Symbols\Source\SourceFieldSymbol.vb (5)
308Private Sub CreateGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo)) 395Private Shared Sub CheckGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo)) 430Private Shared Sub OrderGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo), order As ArrayBuilder(Of FieldInfo)) 524graph As Dictionary(Of SourceFieldSymbol, DependencyInfo), 546Private Shared Function IsPartOfCycle(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo), field As SourceFieldSymbol) As Boolean
Symbols\Source\SourceModuleSymbol.BoundImports.vb (4)
20Public ReadOnly AliasImportsMap As Dictionary(Of String, AliasAndImportsClausePosition) 25Public ReadOnly XmlNamespaces As Dictionary(Of String, XmlNamespaceAndImportsClausePosition) 31aliasImportsMap As Dictionary(Of String, AliasAndImportsClausePosition), 34xmlNamespaces As Dictionary(Of String, XmlNamespaceAndImportsClausePosition),
Symbols\Source\SynthesizedFieldSymbol.vb (1)
181Friend Overrides ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol
Symbols\SubstitutedNamedType.vb (1)
410Private Shared Function GetMethodSubstitute(methodSubstitutions As Dictionary(Of MethodSymbol, SubstitutedMethodSymbol), method As MethodSymbol) As SubstitutedMethodSymbol
Microsoft.CodeAnalysis.Workspaces (290)
CodeActions\CodeAction.cs (3)
35private static readonly Dictionary<Type, bool> s_isNonProgressGetChangedSolutionAsyncOverridden = []; 36private static readonly Dictionary<Type, bool> s_isNonProgressComputeOperationsAsyncOverridden = []; 109private bool IsNonProgressApiOverridden(Dictionary<Type, bool> dictionary, Func<CodeAction, bool> computeResult)
CodeCleanup\AbstractCodeCleanerService.cs (3)
276var tokenAnnotationMap = new Dictionary<SyntaxToken, List<SyntaxAnnotation>>(); 593private static SyntaxNode InjectAnnotations(SyntaxNode node, Dictionary<SyntaxToken, List<SyntaxAnnotation>> map) 595var tokenMap = map.ToDictionary(p => p.Key, p => p.Value);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (4)
50var docIdToTextMerger = new Dictionary<DocumentId, TextChangeMerger>(); 77FixAllContext fixAllContext, IProgress<CodeAnalysisProgress> progressTracker, Dictionary<DocumentId, TextChangeMerger> docIdToTextMerger) 109Dictionary<DocumentId, TextChangeMerger> docIdToTextMerger, 199Dictionary<DocumentId, TextChangeMerger> docIdToTextMerger)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (9)
23private Dictionary<DocumentId, List<DiagnosticData>>? _lazySyntaxLocals = null; 24private Dictionary<DocumentId, List<DiagnosticData>>? _lazySemanticLocals = null; 25private Dictionary<DocumentId, List<DiagnosticData>>? _lazyNonLocals = null; 48ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, DocumentId documentId, ImmutableArray<Diagnostic> diagnostics) 93private static void AddDocumentDiagnostic(ref Dictionary<DocumentId, List<DiagnosticData>>? map, TextDocument document, Diagnostic diagnostic) 119Dictionary<DocumentId, List<DiagnosticData>>? dummy = null; 127ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, Diagnostic diagnostic) 180ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, ImmutableArray<Diagnostic> diagnostics) 186private static ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> Convert(Dictionary<DocumentId, List<DiagnosticData>>? map)
Differencing\EditScript.cs (2)
211var s = lcs.GetMatchingNodes(s1, s2); 241private static bool ContainsPair(Dictionary<TNode, TNode> dict, TNode a, TNode b)
Differencing\Match.cs (2)
23private readonly Dictionary<TNode, TNode> _oneToTwo = []; 24private readonly Dictionary<TNode, TNode> _twoToOne = [];
Differencing\Match.LongestCommonSubsequence.cs (2)
27internal Dictionary<TNode, TNode> GetMatchingNodes(IReadOnlyList<TNode> oldNodes, IReadOnlyList<TNode> newNodes) 29var result = new Dictionary<TNode, TNode>();
Editing\SolutionEditor.cs (1)
18private readonly Dictionary<DocumentId, DocumentEditor> _documentEditors = [];
ExtensionManager\IExtensionManagerExtensions.cs (2)
93var map = new Dictionary<Type, ImmutableArray<TExtension>>(); 117var map = new Dictionary<int, ImmutableArray<TExtension>>();
FindSymbols\FindReferences\DependentProjectsFinder.cs (6)
30private static readonly Dictionary<MetadataId, string?> s_metadataIdToAssemblyName = []; 35Dictionary< 78var symbolOriginations = GetSymbolOriginations(solution, symbols, cancellationToken); 114private static Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility maxVisibility)> GetSymbolOriginations( 117var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>(); 150var dictionary = s_solutionToDependentProjectMap.GetValue(solution, static _ => []);
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
465var order = new Dictionary<ProjectId, int>(capacity: solution.ProjectIds.Count);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (2)
35using var _ = s_symbolToGroupPool.GetPooledObject(out var symbolToGroup); 47var hasInheritanceRelationshipCache = new Dictionary<(ISymbol searchSymbol, ISymbol candidateSymbol), bool>();
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (10)
36private static readonly ObjectPool<Dictionary<ISymbol, SymbolGroup>> s_symbolToGroupPool = new(() => new(MetadataUnifyingEquivalenceComparer.Instance)); 91using var _1 = s_symbolToGroupPool.GetPooledObject(out var symbolToGroup); 129Dictionary<ISymbol, SymbolGroup> symbolToGroup, 165ImmutableArray<ISymbol> symbols, Dictionary<ISymbol, SymbolGroup> symbolToGroup, CancellationToken cancellationToken) 177ISymbol symbol, Dictionary<ISymbol, SymbolGroup> symbolToGroup, CancellationToken cancellationToken) 220using var _2 = PooledDictionary<Document, Dictionary<ISymbol, SymbolGroup>>.GetInstance(out var documentToSymbolsWithin); 242var symbolsWithin = documentToSymbolsWithin.GetOrAdd(document, static _ => s_symbolToGroupPool.AllocateAndClear()); 270private static PooledHashSet<U>? TryGet<T, U>(Dictionary<T, PooledHashSet<U>> dictionary, T key) where T : notnull 275Dictionary<ISymbol, SymbolGroup> symbolsToSearchFor, 276Dictionary<ISymbol, PooledHashSet<string>> symbolToGlobalAliases,
FindSymbols\ReferenceLocationExtensions.cs (3)
16public static async Task<Dictionary<ISymbol, List<Location>>> FindReferencingSymbolsAsync( 22var result = new Dictionary<ISymbol, List<Location>>(); 51Dictionary<ISymbol, List<Location>> result)
FindSymbols\StreamingProgressCollector.cs (1)
27private readonly Dictionary<ISymbol, List<ReferenceLocation>> _symbolToLocations = [];
FindSymbols\SymbolFinder_Callers.cs (1)
67var result = await reference.Locations.FindReferencingSymbolsAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_Helpers.cs (1)
122Dictionary<INamedTypeSymbol, INamedTypeSymbol> equivalentTypesWithDifferingAssemblies)
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (2)
25private readonly Dictionary<SerializableSymbolGroup, SymbolGroup> _groupMap = []; 26private readonly Dictionary<SerializableSymbolAndProjectId, ISymbol> _definitionMap = [];
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (2)
53Dictionary<InterceptsLocationData, TextSpan>? interceptsLocationInfo = null; 266ref Dictionary<InterceptsLocationData, TextSpan>? interceptsLocationInfo,
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
84Dictionary<InterceptsLocationData, TextSpan>? interceptsLocationInfo = null;
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (2)
20private readonly Dictionary<InterceptsLocationData, TextSpan>? _interceptsLocationInfo; 28Dictionary<InterceptsLocationData, TextSpan>? interceptsLocationInfo)
FindSymbols\TopLevelSyntaxTree\IDeclaredSymbolInfoFactoryService.cs (1)
16void AddDeclaredSymbolInfos(ProjectState project, SyntaxNode root, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, Dictionary<string, ArrayBuilder<int>> extensionMemberInfo, CancellationToken cancellationToken);
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (12)
38private static readonly ObjectPool<List<Dictionary<string, string>>> s_aliasMapListPool 39= SharedPools.Default<List<Dictionary<string, string>>>(); 46private static readonly ObjectPool<Dictionary<string, string>> s_aliasMapPool 97protected static List<Dictionary<string, string>> AllocateAliasMapList() 129protected static void FreeAliasMapList(List<Dictionary<string, string>> list) 133foreach (var aliasMap in list) 142protected static void FreeAliasMap(Dictionary<string, string> aliasMap) 150protected static Dictionary<string, string> AllocateAliasMap() 165Dictionary<string, ArrayBuilder<int>> extensionMemberInfo, 190Dictionary<string, string?> aliases, 191Dictionary<string, ArrayBuilder<int>> extensionMemberInfo, 376private static void AddAliases(Dictionary<string, string?> allAliases, ImmutableArray<(string aliasName, string name)> aliases)
LinkedFileDiffMerging\LinkedFileMergeSessionResult.cs (1)
16public readonly Dictionary<DocumentId, ImmutableArray<TextSpan>> MergeConflictCommentSpans = [];
Log\HistogramLogAggregator.cs (1)
112public void WriteTelemetryPropertiesTo(Dictionary<string, object?> properties, string prefix)
Log\KeyValueLogMessage.cs (16)
24private Action<Dictionary<string, object?>>? _propertySetter; 37_lazyMap = SharedPools.Default<Dictionary<string, object?>>().AllocateAndClear(); 42private void Initialize(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel) 49public static new SimpleKeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information) 60public static new SimpleKeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information) 73private Action<Dictionary<string, object?>, TArgs> _propertySetter = null!; 88_lazyMap = SharedPools.Default<Dictionary<string, object?>>().AllocateAndClear(); 94LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel) 103Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel) 112LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel) 127public static KeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information) 133public static KeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information) 136public static KeyValueLogMessage Create<TArgs>(Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel = LogLevel.Information) 139public static KeyValueLogMessage Create<TArgs>(LogType kind, Action<Dictionary<string, object?>, TArgs> propertySetter, TArgs args, LogLevel logLevel = LogLevel.Information) 142private Dictionary<string, object?>? _lazyMap; 235SharedPools.Default<Dictionary<string, object?>>().ClearAndFree(_lazyMap);
Rename\ConflictEngine\ConflictingIdentifierTracker.cs (1)
17private readonly Dictionary<string, List<SyntaxToken>> _currentIdentifiersInScope = new(identifierComparer);
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
264var documentIdErrorStateLookup = new Dictionary<DocumentId, bool>(); 345var reverseMappedLocations = new Dictionary<Location, Location>();
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
44var signatureToConflictingMember = new Dictionary<ImmutableArray<ParameterSignature>, ISymbol>(ConflictingSignatureComparer.Instance);
Rename\ConflictEngine\RenamedSpansTracker.cs (2)
25private readonly Dictionary<DocumentId, List<(TextSpan oldSpan, TextSpan newSpan)>> _documentToModifiedSpansMap = []; 26private readonly Dictionary<DocumentId, List<MutableComplexifiedSpan>> _documentToComplexifiedSpansMap = [];
Shared\Utilities\DocumentationComment.cs (4)
122private Dictionary<string, ImmutableArray<string>.Builder>? _exceptionTextBuilders; 316private readonly Dictionary<string, string> _parameterTexts = []; 317private readonly Dictionary<string, string> _typeParameterTexts = []; 318private readonly Dictionary<string, ImmutableArray<string>> _exceptionTexts = [];
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
18public readonly Dictionary<Lazy<TExtension, TMetadata>, Node<TExtension, TMetadata>> Nodes = [];
Shared\Utilities\SemanticMap.cs (2)
15private readonly Dictionary<SyntaxNode, SymbolInfo> _expressionToInfoMap = []; 17private readonly Dictionary<SyntaxToken, SymbolInfo> _tokenToInfoMap = [];
src\60c94c676d650713\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
23Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\60c94c676d650713\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
18public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
28private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 223private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (4)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary, 79public static void AddPooled<K, V>(this Dictionary<K, ArrayBuilder<V>> dictionary, K key, V value)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new(); 124public Dictionary<K, ValueSet>.Enumerator GetEnumerator() 178public Dictionary<K, ValueSet>.KeyCollection Keys
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
29private readonly Dictionary<string, DirectoryLoadContext> _loadContextByDirectory = new Dictionary<string, DirectoryLoadContext>(GeneratedPathComparer);
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (3)
77private readonly Dictionary<string, (IAnalyzerPathResolver? Resolver, string ResolvedPath, AssemblyName? AssemblyName)> _originalPathInfoMap = new(OriginalPathComparer); 87private readonly Dictionary<string, HashSet<string>> _assemblySimpleNameToOriginalPathListMap = new(SimpleNameComparer.Comparer); 98private readonly Dictionary<string, string> _resolvedToOriginalPathMap = new(GeneratedPathComparer);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (4)
206private readonly Dictionary<K, ValueSet> _dictionary; 214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys; 216public Dictionary<K, ValueSet>.ValueCollection Values => _dictionary.Values; 279public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
11Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 16public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (8)
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) : []; 403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
505public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
45protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap, 260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken) 296Dictionary<SyntaxToken, int> previousChangesMap, 324Dictionary<SyntaxToken, int> previousChangesMap, 380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken) 412Dictionary<SyntaxToken, int> previousChangesMap, 448Dictionary<SyntaxToken, int> previousChangesMap, 475Dictionary<SyntaxToken, int> previousChangesMap, 492Dictionary<SyntaxToken, int> previousChangesMap, 544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (3)
44protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken); 95using var pooledObject = SharedPools.Default<Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>>().GetPooledObject(); 97var map = pooledObject.Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
16private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
19var trimmedDictionary = TrimDictionary(allRawConventions); 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull 38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool); 74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary) 77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool); 141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) 144var map = pool.Allocate(); 283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 84return new PooledObject<Dictionary<TKey, TValue>>( 139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (2)
37public static ObjectPool<Dictionary<string, T>> StringIgnoreCaseDictionary<T>() 74public static readonly ObjectPool<Dictionary<string, T>> Instance =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (3)
160var spilledEdges = builderNode.SpilloverEdges; 243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
572private static int GetValue(Dictionary<char, int> da, char c)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue) 232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (4)
15public static Dictionary<K, V> ToDictionaryAndFree<K, V>(this PooledDictionary<K, V> builders) 18var dictionary = new Dictionary<K, V>(builders.Count); 29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
18private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
580Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 601Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 623Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (3)
149public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 164public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
22public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 65private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 73internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 76internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 112private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 140private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 152private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 281private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 301private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 330private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, 486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 617private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (2)
94using var collisionMapPool = (isCaseSensitive ? SharedPools.Default<Dictionary<string, bool>>() : SharedPools.StringIgnoreCaseDictionary<bool>()).GetPooledObject(); 95var collisionMap = collisionMapPool.Object;
Utilities\Documentation\XmlDocumentationProvider.cs (2)
24private Dictionary<string, string> _docComments; 68var comments = new Dictionary<string, string>();
Workspace\Host\Metadata\MetadataReferenceCache.cs (1)
46private readonly Dictionary<MetadataReferenceProperties, WeakReference<PortableExecutableReference>> _references = [];
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (8)
29private static readonly ObjectPool<Dictionary<string, Guid>> s_pathToMvidMapPool = new(() => new(SolutionState.FilePathComparer)); 45private static readonly Dictionary<Checksum, WeakReference<IsolatedAnalyzerReferenceSet>> s_checksumToReferenceSet = []; 78private readonly Dictionary<string, Guid> _analyzerFileReferencePathToMvid = []; 91private readonly Dictionary<Checksum, ImmutableArray<AnalyzerReference>> _analyzerReferences = []; 150Dictionary<string, Guid> filePathToMvid) 183private bool HasConflicts(Dictionary<string, Guid> filePathToMvid) 273using var _ = s_pathToMvidMapPool.GetPooledObject(out var pathToMvidMap); 295Dictionary<string, Guid> pathToMvidMap)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
38private readonly Dictionary<string, DocumentId> _documentPathsToDocumentIds = new(StringComparer.OrdinalIgnoreCase);
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
99private readonly Dictionary<string, ImmutableArray<MetadataReferenceProperties>> _allMetadataReferences = []; 105private readonly Dictionary<DocumentId, IWatchedFile> _documentWatchedFiles = [];
Workspace\ProjectSystem\ReferenceFileChangeTracker.cs (1)
36private readonly Dictionary<string, (IWatchedFile Token, int RefCount)> _referenceFileWatchingTokens = [];
Workspace\Solution\Project.cs (6)
31private Dictionary<DocumentId, Document?>? _idToDocumentMap; 32private Dictionary<DocumentId, SourceGeneratedDocument>? _idToSourceGeneratedDocumentMap; 33private Dictionary<DocumentId, AdditionalDocument?>? _idToAdditionalDocumentMap; 34private Dictionary<DocumentId, AnalyzerConfigDocument?>? _idToAnalyzerConfigDocumentMap; 258private static TDocument GetOrAddDocumentUnderLock<TDocument, TArg>(DocumentId documentId, ref Dictionary<DocumentId, TDocument>? idMap, Func<DocumentId, TArg, TDocument> tryCreate, TArg arg) 273private static bool TryGetDocumentValueUnderLock<TDocument>(DocumentId documentId, ref Dictionary<DocumentId, TDocument>? idMap, out TDocument? document)
Workspace\Solution\ProjectState.cs (4)
126private async Task<Dictionary<ImmutableArray<byte>, DocumentId>> ComputeContentHashToDocumentIdAsync(CancellationToken cancellationToken) 128var result = new Dictionary<ImmutableArray<byte>, DocumentId>(ImmutableArrayComparer<byte>.Instance); 160private AsyncLazy<Dictionary<ImmutableArray<byte>, DocumentId>> LazyContentHashToDocumentId 186var map = await LazyContentHashToDocumentId.GetValueAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Solution.cs (2)
32private readonly Dictionary<ProjectId, Project> _projectIdToProjectMap = []; 43private readonly Dictionary<DocumentId, AsyncLazy<Solution>> _documentIdToFrozenSolution = [];
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
31private readonly Dictionary<ProjectId, AsyncLazy<(SolutionCompilationStateChecksums checksums, ProjectCone projectCone)>> _lazyProjectChecksums = [];
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
48private static readonly Dictionary<string, AnalyzerReferenceMap> s_languageToAnalyzerReferenceMap = new()
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (2)
220Dictionary<MetadataReference, ProjectId>? metadataReferenceToProjectId) 250private static void RecordAssemblySymbols(ProjectId projectId, Compilation compilation, Dictionary<MetadataReference, ProjectId>? metadataReferenceToProjectId)
Workspace\Solution\SolutionCompilationState.cs (1)
1469var documentStatesByProjectId = documentStates.Values.ToMultiDictionary(static state => state.Id.ProjectId);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
494var metadataReferenceToProjectId = new Dictionary<MetadataReference, ProjectId>();
Workspace\Solution\SolutionCompilationState.SkeletonReferenceSet.cs (1)
32private readonly Dictionary<MetadataReferenceProperties, PortableExecutableReference> _referenceMap = [];
Workspace\Solution\SolutionState_Checksum.cs (1)
32private readonly Dictionary<ProjectId, AsyncLazy<SolutionStateChecksums>> _lazyProjectChecksums = [];
Workspace\Solution\TextDocumentStates.cs (2)
40private static readonly ObjectPool<Dictionary<string, OneOrMany<DocumentId>>> s_filePathPool = new(() => new(SolutionState.FilePathComparer)); 355var result = pooledDictionary.Object;
Workspace\Workspace_Editor.cs (6)
24private readonly Dictionary<ProjectId, HashSet<DocumentId>> _projectToOpenDocumentsMap = []; 31private readonly Dictionary<SourceTextContainer, DocumentId> _bufferToDocumentInCurrentContextMap = []; 36private readonly Dictionary<SourceTextContainer, OneOrMany<DocumentId>> _bufferToAssociatedDocumentsMap = []; 38private readonly Dictionary<DocumentId, TextTracker> _textTrackers = []; 39private readonly Dictionary<DocumentId, SourceTextContainer> _documentToAssociatedBufferMap = []; 40private readonly Dictionary<DocumentId, (SourceGeneratedDocumentIdentity identity, DateTime generationDateTime)> _openSourceGeneratedDocumentIdentities = [];
Workspace\Workspace_EventsLegacy.cs (1)
17private readonly Dictionary<(object eventHandler, WorkspaceEventType eventType), (int adviseCount, IDisposable disposer)> _disposableEventHandlers = new();
Workspace\Workspace.cs (1)
1443var outputAssemblyToProjectIdMap = new Dictionary<string, ProjectId>();
Workspace\WorkspaceEventMap.cs (1)
19private readonly Dictionary<WorkspaceEventType, EventHandlerSet> _eventTypeToHandlerSet = [];
Microsoft.CodeAnalysis.Workspaces.MSBuild (9)
MSBuild\BuildHostProcessManager.cs (1)
34private readonly Dictionary<BuildHostProcessKind, BuildHostProcess> _processes = [];
MSBuild\MSBuildProjectLoader.Worker.cs (3)
63private readonly Dictionary<ProjectId, ProjectFileInfo> _projectIdToFileInfoMap; 64private readonly Dictionary<ProjectId, List<ProjectReference>> _projectIdToProjectReferencesMap; 65private readonly Dictionary<string, ImmutableArray<ProjectInfo>> _pathToDiscoveredProjectInfosMap;
MSBuild\ProjectFileExtensionRegistry.cs (1)
19private readonly Dictionary<string, string> _extensionToLanguageMap;
MSBuild\ProjectMap.cs (4)
24private readonly Dictionary<string, HashSet<ProjectId>> _projectPathToProjectIdsMap; 30private readonly Dictionary<string, ImmutableArray<ProjectInfo>> _projectPathToProjectInfosMap; 35private readonly Dictionary<ProjectId, string> _projectIdToOutputFilePathMap; 40private readonly Dictionary<ProjectId, string> _projectIdToOutputRefFilePathMap;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
AbstractBuildHost.cs (2)
31private Dictionary<string, string>? _globalMSBuildProperties; 120public void ConfigureGlobalState(string[] knownCommandLineParserLanguages, Dictionary<string, string> globalProperties, string? binlogPath, int? maxNodeCount)
Build\ProjectBuildManager.cs (4)
28private static readonly Dictionary<string, string> s_defaultGlobalProperties = new() 81public ProjectBuildManager(string[] knownCommandLineParserLanguages, Dictionary<string, string> globalProperties, ILogger? msbuildLogger = null, int? maxNodeCount = null) 85var allProperties = new Dictionary<string, string>(s_defaultGlobalProperties); 216var mergedGlobalProperties = new Dictionary<string, string>(_projectCollection.GlobalProperties, StringComparer.OrdinalIgnoreCase);
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
144private static readonly Dictionary<string, string> s_debugTypeValues = new(StringComparer.OrdinalIgnoreCase)
MSBuild\ProjectFile\ProjectFile.cs (3)
67Dictionary<string, string>? metadata = null; 106var metadata = new Dictionary<string, string>(); 180var metadata = new Dictionary<string, string>
Rpc\RpcServer.cs (2)
40private readonly Dictionary<int, object> _rpcTargets = []; 41private readonly Dictionary<object, int> _rpcTargetToIndex = [];
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
IBuildHost.cs (1)
38void ConfigureGlobalState(string[] knownCommandLineParserLanguages, Dictionary<string, string> globalProperties, string? binlogPath, int? maxNodeCount);
Microsoft.CSharp (26)
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeDesc.cs (3)
60internal static Dictionary<string, ComEventDesc> EmptyEvents { get; } = new Dictionary<string, ComEventDesc>(); 68internal Dictionary<string, ComEventDesc> Events { get; set; } 140var names = new Dictionary<string, object>();
Microsoft\CSharp\RuntimeBinder\ComInterop\ComTypeLibDesc.cs (2)
25private readonly Dictionary<string, ComTypeEnumDesc> _enums; 28private static readonly Dictionary<Guid, ComTypeLibDesc> s_cachedTypeLibDesc = new Dictionary<Guid, ComTypeLibDesc>();
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (3)
82private static readonly Dictionary<Guid, ComTypeDesc> s_cacheComTypeDesc = new Dictionary<Guid, ComTypeDesc>(); 370Dictionary<string, ComEventDesc> events; 423private static void ScanSourceInterface(ComTypes.ITypeInfo sourceTypeInfo, ref Dictionary<string, ComEventDesc> events)
Microsoft\CSharp\RuntimeBinder\ComInterop\VarEnumSelector.cs (3)
31private static readonly Dictionary<VarEnum, Type> s_comToManagedPrimitiveTypes = CreateComToManagedPrimitiveTypes(); 90private static Dictionary<VarEnum, Type> CreateComToManagedPrimitiveTypes() 92Dictionary<VarEnum, Type> dict = new Dictionary<VarEnum, Type>()
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
30private readonly Dictionary<ExprCall, Expression> _DictionaryOfParameters;
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (3)
96private static Dictionary<Name, string> s_operatorsByName; 98private static Dictionary<Name, string> GetOperatorByName() 100Dictionary<Name, string> dict = new Dictionary<Name, string>(28)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolStore.cs (1)
18private static readonly Dictionary<Key, Symbol> s_dictionary = new Dictionary<Key, Symbol>();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (3)
181private static readonly Dictionary<string, PredefinedType> s_typesByName = CreatePredefinedTypeFacts(); 183private static Dictionary<string, PredefinedType> CreatePredefinedTypeFacts() 185var typesByName = new Dictionary<string, PredefinedType>((int)PredefinedType.PT_COUNT);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (1)
81private static readonly Dictionary<TypeArrayKey, TypeArray> s_tableTypeArrays =
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
18private static readonly Dictionary<(Assembly, Assembly), bool> s_internalsVisibleToCache =
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
51private static readonly Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType> s_aggregateTable = 54private static readonly Dictionary<KeyPair<CType, int>, ArrayType> s_arrayTable = 57private static readonly Dictionary<KeyPair<CType, bool>, ParameterModifierType> s_parameterModifierTable = 61private static readonly Dictionary<CType, PointerType> s_pointerTable = new Dictionary<CType, PointerType>(); 62private static readonly Dictionary<CType, NullableType> s_nullableTable = new Dictionary<CType, NullableType>();
Microsoft.Data.Analysis (38)
DataFrame.IO.cs (1)
394var names = new Dictionary<string, int>();
DataFrame.Join.cs (11)
185Dictionary<long, ICollection<long>> occurrences = GetOccurences(retainedDataFrame, supplementaryDataFrame, 192private static Dictionary<long, ICollection<long>> GetOccurences(DataFrame retainedDataFrame, DataFrame supplementaryDataFrame, 199Dictionary<long, ICollection<long>> occurrences = null; 200Dictionary<long, long> retainedIndicesReverseMapping = null; 213var newRetainedIndicesReverseMapping = new Dictionary<long, long>(shrinkedRetainedIndices.Length); 231var newOccurrences = shrinkedRetainedColumn.GetGroupedOccurrences(supplementaryColumn, out HashSet<long> supplementaryColumnNullIndices); 252private static Dictionary<long, ICollection<long>> GetShrinkedOccurences(Dictionary<long, ICollection<long>> occurrences, 253Dictionary<long, ICollection<long>> newOccurrences) 255var shrinkedOccurences = new Dictionary<long, ICollection<long>>(); 276Dictionary<long, ICollection<long>> occurrences, HashSet<long> supplementaryJoinColumnsNullIndices,
DataFrameColumn.cs (5)
255public virtual Dictionary<TKey, ICollection<long>> GroupColumnValues<TKey>(out HashSet<long> nullIndices) => throw new NotImplementedException(); 263public abstract Dictionary<long, ICollection<long>> GetGroupedOccurrences(DataFrameColumn other, out HashSet<long> otherColumnNullIndices); 272protected Dictionary<long, ICollection<long>> GetGroupedOccurrences<TKey>(DataFrameColumn other, out HashSet<long> otherColumnNullIndices) 278Dictionary<TKey, ICollection<long>> multimap = other.GroupColumnValues<TKey>(out otherColumnNullIndices); 280var ret = new Dictionary<long, ICollection<long>>();
DataFrameColumnCollection.cs (1)
17private readonly Dictionary<string, int> _columnNameToIndexDictionary = new Dictionary<string, int>(StringComparer.Ordinal);
DataFrameColumns\ArrowStringDataFrameColumn.cs (6)
477Dictionary<string, ICollection<long>> groupedValues = GroupColumnValues<string>(out HashSet<long> _); 484Dictionary<string, ICollection<long>> dictionary = GroupColumnValues<string>(out HashSet<long> _); 489public override Dictionary<TKey, ICollection<long>> GroupColumnValues<TKey>(out HashSet<long> nullIndices) 494Dictionary<string, ICollection<long>> multimap = new Dictionary<string, ICollection<long>>(EqualityComparer<string>.Default); 515return multimap as Dictionary<TKey, ICollection<long>>; 697public override Dictionary<long, ICollection<long>> GetGroupedOccurrences(DataFrameColumn other, out HashSet<long> otherColumnNullIndices)
DataFrameColumns\StringDataFrameColumn.cs (7)
384internal static DataFrame ValueCountsImplementation(Dictionary<string, ICollection<long>> groupedValues) 398Dictionary<string, ICollection<long>> groupedValues = GroupColumnValues<string>(out HashSet<long> _); 404Dictionary<string, ICollection<long>> dictionary = GroupColumnValues<string>(out HashSet<long> _); 408public override Dictionary<TKey, ICollection<long>> GroupColumnValues<TKey>(out HashSet<long> nullIndices) 412Dictionary<string, ICollection<long>> multimap = new Dictionary<string, ICollection<long>>(EqualityComparer<string>.Default); 434return multimap as Dictionary<TKey, ICollection<long>>; 534public override Dictionary<long, ICollection<long>> GetGroupedOccurrences(DataFrameColumn other, out HashSet<long> otherColumnNullIndices)
DataFrameColumns\VBufferDataFrameColumn.cs (1)
180public override Dictionary<long, ICollection<long>> GetGroupedOccurrences(DataFrameColumn other, out HashSet<long> otherColumnNullIndices)
PrimitiveDataFrameColumn.cs (6)
383Dictionary<T, ICollection<long>> groupedValues = GroupColumnValues<T>(out HashSet<long> _); 609Dictionary<T, ICollection<long>> dictionary = GroupColumnValues<T>(out HashSet<long> _); 613public override Dictionary<TKey, ICollection<long>> GroupColumnValues<TKey>(out HashSet<long> nullIndices) 617Dictionary<T, ICollection<long>> multimap = new Dictionary<T, ICollection<long>>(EqualityComparer<T>.Default); 646return multimap as Dictionary<TKey, ICollection<long>>; 923public override Dictionary<long, ICollection<long>> GetGroupedOccurrences(DataFrameColumn other, out HashSet<long> otherColumnNullIndices)
Microsoft.Data.Analysis.Tests (1)
DataFrameGroupByTests.cs (1)
71var groupings = df.GroupBy<int>("Tens").Groupings.ToDictionary(g => g.Key, g => g.ToList());
Microsoft.Diagnostics.DataContractReader (89)
_generated\0\ContractDescriptorContext.ContractDescriptor.g.cs (15)
95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 110AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Contracts", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info2); 115var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>> 130AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Types", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 133properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>>(options, info3); 135var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>> 150AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Globals", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 153properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>>(options, info4); 155var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>> 170AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("SubDescriptors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>), global::System.Array.Empty<global::System.Type>(), null), 173properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>>(options, info5); 175var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> 190AttributeProviderFactory = static () => typeof(global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.ContractDescriptor).GetProperty("Extras", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>), global::System.Array.Empty<global::System.Type>(), null), 193properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>(options, info6);
_generated\14\ContractDescriptorContext.GetJsonTypeInfo.g.cs (5)
40if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>)) 44if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>)) 48if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>)) 52if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>)) 56if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\4\ContractDescriptorContext.DictionaryStringFieldDescriptor.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>>? _DictionaryStringFieldDescriptor; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>> DictionaryStringFieldDescriptor 24get => _DictionaryStringFieldDescriptor ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>> Create_DictionaryStringFieldDescriptor(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>, string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>(options, info); 49private void DictionaryStringFieldDescriptorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.FieldDescriptor>? value)
_generated\5\ContractDescriptorContext.DictionaryStringGlobalDescriptor.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>>? _DictionaryStringGlobalDescriptor; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>> DictionaryStringGlobalDescriptor 24get => _DictionaryStringGlobalDescriptor ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>> Create_DictionaryStringGlobalDescriptor(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>, string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>(options, info); 49private void DictionaryStringGlobalDescriptorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.GlobalDescriptor>? value)
_generated\6\ContractDescriptorContext.DictionaryStringTypeDescriptor.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>>? _DictionaryStringTypeDescriptor; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>> DictionaryStringTypeDescriptor 24get => _DictionaryStringTypeDescriptor ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>> Create_DictionaryStringTypeDescriptor(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>, string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>(options, info); 49private void DictionaryStringTypeDescriptorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.Diagnostics.DataContractReader.ContractDescriptorParser.TypeDescriptor>? value)
_generated\7\ContractDescriptorContext.DictionaryStringJsonElement.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>? _DictionaryStringJsonElement; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> DictionaryStringJsonElement 24get => _DictionaryStringJsonElement ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> Create_DictionaryStringJsonElement(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>, string, global::System.Text.Json.JsonElement>(options, info); 49private void DictionaryStringJsonElementSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>? value)
_generated\8\ContractDescriptorContext.DictionaryStringString.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 24get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 49private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
CachingContractRegistry.cs (2)
20private readonly Dictionary<Type, IContract> _contracts = []; 21private readonly Dictionary<(Type, string), Func<Target, IContract>> _creators = [];
ContractDescriptorParser.cs (12)
38[JsonSerializable(typeof(Dictionary<string, string>))] 39[JsonSerializable(typeof(Dictionary<string, TypeDescriptor>))] 40[JsonSerializable(typeof(Dictionary<string, FieldDescriptor>))] 41[JsonSerializable(typeof(Dictionary<string, GlobalDescriptor>))] 45[JsonSerializable(typeof(Dictionary<string, JsonElement>))] 64public Dictionary<string, string>? Contracts { get; set; } 66public Dictionary<string, TypeDescriptor>? Types { get; set; } 68public Dictionary<string, GlobalDescriptor>? Globals { get; set; } 70public Dictionary<string, GlobalDescriptor>? SubDescriptors { get; set; } 73public Dictionary<string, JsonElement>? Extras { get; set; } 86public Dictionary<string, FieldDescriptor>? Fields { get; set; } 118Dictionary<string, FieldDescriptor>? fields = new();
ContractDescriptorTarget.cs (5)
212Dictionary<string, string> contracts = []; 213Dictionary<string, GlobalValue> globals = []; 214Dictionary<string, TypeInfo> types = []; 245Dictionary<string, Target.FieldInfo> fieldInfos = []; 950private readonly Dictionary<(ulong, Type), object?> _readDataByAddress = [];
Microsoft.Diagnostics.DataContractReader.Contracts (33)
Contracts\CallingConvention\CallingConvention_1.cs (1)
23private readonly Dictionary<ModuleHandle, SignatureTypeInfoProvider> _signatureTypeInfoProviders = [];
Contracts\DacStreams_1.cs (4)
37var dictionary = _target.ProcessedData.GetOrAdd<DacStreams_1_Data>(0).EEObjectToString; 56public readonly Dictionary<TargetPointer, string> EEObjectToString; 58internal static Dictionary<TargetPointer, string> GetEEAddressToStringMap(Target target) 64Dictionary<TargetPointer, string> stringToAddress = new();
Contracts\Debugger\Debugger_1.cs (5)
24private Dictionary<TargetPointer, byte>? _patches; 170Dictionary<TargetPointer, byte> patches = GetPatches(); 184private Dictionary<TargetPointer, byte> GetPatches() => _patches ??= ReadPatches(); 186private Dictionary<TargetPointer, byte> ReadPatches() 199Dictionary<TargetPointer, byte> patches = [];
Contracts\EcmaMetadata_1.cs (3)
20private readonly Dictionary<ModuleHandle, (uint Generation, MetadataReaderProvider? Provider)> _metadata = []; 21private readonly Dictionary<ModuleHandle, (uint Generation, byte[] Blob)> _readWriteMetadataBlob = []; 22private readonly Dictionary<ModuleHandle, TargetSpan> _readOnlyMetadataAddress = [];
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
19private readonly Dictionary<TargetPointer, CodeBlock> _codeInfos = new();
Contracts\GCInfo\GCInfoDecoder.cs (1)
783Dictionary<uint, uint> activeSlots = [];
Contracts\GCInfo\X86\GCArgTable.cs (1)
16public Dictionary<int, List<BaseGcTransition>> Transitions { get; private set; } = [];
Contracts\GCInfo\X86\GCInfo.cs (1)
1077Dictionary<RegMask, uint> activeRegs = [];
Contracts\Loader_1.cs (1)
787Dictionary<LoaderAllocatorHeapType, TargetPointer> heaps = new()
Contracts\ManagedTypeSource_1.cs (4)
16private readonly Dictionary<string, Target.TypeInfo?> _typeInfoCache = new(); 17private readonly Dictionary<string, ITypeHandle?> _typeHandleCache = new(); 18private readonly Dictionary<(string Fqn, string FieldName), TargetPointer> _fieldDescCache = new(); 224Dictionary<string, Target.FieldInfo> instanceFields = new();
Contracts\RuntimeTypeSystem_1.cs (4)
33private readonly Dictionary<TargetPointer, MethodTable> _methodTables = new(); 34private readonly Dictionary<TargetPointer, MethodDesc> _methodDescs = new(); 35private readonly Dictionary<TypeKey, ITypeHandle> _typeHandles = new(); 39private readonly Dictionary<TargetPointer, TargetTypeHandle> _targetTypeHandles = new();
Contracts\Signature\Signature_1.cs (1)
21private readonly Dictionary<ModuleHandle, SignatureTypeProvider<ITypeHandle?>> _thProviders = [];
Data\Frames\ArgumentRegisters.cs (1)
16Dictionary<string, TargetNUInt> registers = new(type.Fields.Count);
Data\Frames\CalleeSavedRegisters.cs (1)
16Dictionary<string, TargetNUInt> registers = new(type.Fields.Count);
Data\Frames\HijackArgs.cs (1)
16Dictionary<string, TargetNUInt> registers = new(type.Fields.Count);
PrintfStressMessageFormatter.cs (3)
29private readonly Dictionary<string, Action<TargetPointer, PaddingFormat, StringBuilder>> _formatActions; 30private readonly Dictionary<string, Action<TargetPointer, PaddingFormat, StringBuilder>> _alternateActions; 238var formatActions = _formatActions;
Microsoft.Diagnostics.DataContractReader.Legacy (12)
MetaDataImportImpl.cs (6)
25private Dictionary<int, uint>? _interfaceImplToTypeDef; 26private Dictionary<int, uint>? _paramToMethod; 2322private Dictionary<int, uint> BuildInterfaceImplLookup() 2324Dictionary<int, uint> lookup = new(); 2336private Dictionary<int, uint> BuildParamToMethodLookup() 2338Dictionary<int, uint> lookup = new();
SOSDacImpl.cs (6)
4928var expectedElementsDict = (Dictionary<ulong, uint>)GCHandle.FromIntPtr((nint)expectedElements).Target!; 4976Dictionary<ulong, uint> expectedElements = elements.ToDictionary(tuple => tuple.Address.ToClrDataAddress(_target).Value, tuple => EcmaMetadataUtils.GetRowId(tuple.Index)); 4993var expectedElementsDict = (Dictionary<ulong, ulong>)GCHandle.FromIntPtr((nint)expectedElements).Target!; 5036Dictionary<ulong, ulong> expectedElements = cleanupInfos.ToDictionary(info => info.RCW.ToClrDataAddress(_target).Value, info => info.Context.ToClrDataAddress(_target).Value);
Microsoft.Diagnostics.NETCore.Client (6)
DiagnosticsClient\DiagnosticsClient.cs (2)
315public Dictionary<string, string> GetProcessEnvironment() 325internal async Task<Dictionary<string, string>> GetProcessEnvironmentAsync(CancellationToken token)
DiagnosticsIpc\ProcessEnvironment.cs (4)
28public Dictionary<string, string> ReadEnvironment(Stream continuation) 35public async Task<Dictionary<string, string>> ReadEnvironmentAsync(Stream continuation, CancellationToken token = default(CancellationToken)) 42private Dictionary<string, string> ReadEnvironmentCore(MemoryStream stream) 52Dictionary<string, string> env = new();
Microsoft.DotNet.ApiCompat.Task (2)
ValidatePackageTask.cs (2)
171private static Dictionary<NuGetFramework, IEnumerable<string>>? ParsePackageAssemblyReferences(ITaskItem[]? packageAssemblyReferences) 176Dictionary<NuGetFramework, IEnumerable<string>> packageAssemblyReferencesDict = new(packageAssemblyReferences.Length);
Microsoft.DotNet.ApiCompatibility (10)
Mapping\AssemblyMapper.cs (4)
23private Dictionary<INamespaceSymbol, INamespaceMapper>? _namespaces; 49Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> typeForwards = ResolveTypeForwards(assemblyContainer, side, Settings.SymbolEqualityComparer, setIndex); 102Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> ResolveTypeForwards(ElementContainer<IAssemblySymbol> assembly, 107Dictionary<INamespaceSymbol, List<INamedTypeSymbol>> typeForwards = new(comparer);
Mapping\AssemblySetMapper.cs (1)
19private Dictionary<IAssemblySymbol, IAssemblyMapper>? _assemblies;
Mapping\NamespaceMapper.cs (1)
16private readonly Dictionary<ITypeSymbol, ITypeMapper> _types;
Mapping\TypeMapper.cs (2)
27private Dictionary<ITypeSymbol, ITypeMapper>? _nestedTypes; 28private Dictionary<ISymbol, IMemberMapper>? _members;
Rules\EnumsMustMatch.cs (2)
56Dictionary<string, IFieldSymbol> leftMembers = left.GetMembers() 60Dictionary<string, IFieldSymbol> rightMembers = right.GetMembers()
Microsoft.DotNet.ApiSymbolExtensions (4)
AssemblySymbolLoader.cs (4)
38private readonly Dictionary<string, string> _referencePathFiles = new(StringComparer.OrdinalIgnoreCase); 40private readonly Dictionary<string, MetadataReference> _loadedAssemblies; 64public static (AssemblySymbolLoader, Dictionary<string, IAssemblySymbol>) CreateFromFiles( 94Dictionary<string, IAssemblySymbol> dictionary = [];
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
68var runtimeItems = new Dictionary<string, IEnumerable<KeyValuePair<string, string>>>();
Microsoft.DotNet.Build.Manifest (3)
MSBuildListSplitter.cs (1)
23var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
VersionIdentifier.cs (1)
103Dictionary<int,string> majorMinorPatchDictionary = new Dictionary<int, string>();
XElementParsingExtensions.cs (1)
24public static Dictionary<string, string> CreateAttributeDictionary(this XElement element)
Microsoft.DotNet.Build.Tasks.Installers (10)
src\CreateRpmPackage.cs (2)
161Dictionary<string, ITaskItem> ghostFiles = []; 177Dictionary<string, string> filePathToKind = RawPayloadFileKinds.Select(k => k.ItemSpec.Split(':')).ToDictionary(k => k[0], k => k[1].Trim());
src\CreateWixBuildWixpack.cs (7)
81private Dictionary<string, string> _defineConstantsDictionary; 82private Dictionary<string, string> _defineVariablesDictionary; 83private Dictionary<string, string> _systemVariablesDictionary; 452private Dictionary<string, string> GetDefineConstantsDictionary() 454var dict = new Dictionary<string, string>(System.StringComparer.OrdinalIgnoreCase); 483private Dictionary<string, string> GetSystemVariablesDictionary() 485var dict = new Dictionary<string, string>(System.StringComparer.OrdinalIgnoreCase);
src\RpmBuilder.cs (1)
208private readonly Dictionary<string, string> _scripts = [];
Microsoft.DotNet.Build.Tasks.Packaging (45)
ApplyBaseLine.cs (1)
61Dictionary<string, SortedSet<Version>> baseLineVersions = new Dictionary<string, SortedSet<Version>>();
ApplyMetaPackages.cs (3)
58var suppressMetaPackages = new Dictionary<string, HashSet<string>>(); 95Dictionary<string, HashSet<NuGetFramework>> metaPackagesToAdd = new Dictionary<string, HashSet<NuGetFramework>>(); 129private bool ShouldSuppressMetapackage(Dictionary<string, HashSet<string>> suppressedMetaPackages, string metaPackage, NuGetFramework tfm) =>
ApplyPreReleaseSuffix.cs (1)
18private Dictionary<string, Version> _stablePackageVersions;
GeneratePackageReport.cs (3)
16private Dictionary<string, PackageItem> _targetPathToPackageItem; 18private Dictionary<NuGetFramework, string[]> _frameworks; 285var packageItems = new Dictionary<string, List<PackageItem>>();
GenerateRuntimeDependencies.cs (1)
75Dictionary<string, string> packageAliases = new Dictionary<string, string>();
GetApplicableAssetsFromPackages.cs (2)
18private Dictionary<string, List<PackageItem>> _packageToPackageItems; 19private Dictionary<string, PackageItem> _targetPathToPackageItem;
GetLastStablePackage.cs (3)
74Dictionary<string, ITaskItem> originalItems = new Dictionary<string, ITaskItem>(); 75Dictionary<string, Version> latestPackages = new Dictionary<string, Version>(); 76Dictionary<string, Version> lastStablePackages = new Dictionary<string, Version>();
GetLayoutFiles.cs (1)
45var frameworks = Frameworks.NullAsEmpty().ToDictionary(
GetPackageDescription.cs (6)
16private static Dictionary<string, Dictionary<string, string>> s_descriptionCache = new Dictionary<string, Dictionary<string, string>>(); 61Dictionary<string, string> descriptionTable = null; 88private Dictionary<string, string> LoadDescriptions(string descriptionPath) 92Dictionary<string, string> descriptions = new Dictionary<string, string>();
HarvestPackage.cs (3)
116private Dictionary<string, string> _packageFolders = new Dictionary<string, string>(); 274var livePackageFiles = new Dictionary<string, PackageItem>(StringComparer.OrdinalIgnoreCase); 516private Dictionary<string, ITaskItem> _pathsToInclude = null;
NuGetAssetResolver.cs (5)
158private Dictionary<string, ContentItemCollection> _packages; 192Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 243Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 261Dictionary<string, ContentItemGroup> resolvedAssets = new Dictionary<string, ContentItemGroup>(); 276Dictionary<string, IEnumerable<ContentItemGroup>> resolvedAssets = new Dictionary<string, IEnumerable<ContentItemGroup>>();
NuGetPack.cs (1)
286Dictionary<string, bool> pathHasMatches = EffectiveLibPackageExcludes.ToDictionary(
NugetPropertyStringProvider.cs (3)
12public static Dictionary<string, string> GetNuspecPropertyDictionary(string[] nuspecProperties) 19var propertyDictionary = new Dictionary<string, string>(); 31var propertyDictionary = GetNuspecPropertyDictionary(nuspecPropertyStrings);
PackageIndex.cs (1)
746private Dictionary<string, string> packageToMetaPackage = new Dictionary<string, string>();
PackageReport.cs (2)
28public Dictionary<string, string> SupportedFrameworks { get; set; } 29public Dictionary<string,Target> Targets { get; set; }
PromoteDependencies.cs (2)
44var refSets = dependencies.Where(d => d.Id != "_._").Where(d => d.IsReference).GroupBy(d => NuGetFramework.Parse(d.TargetFramework)).ToDictionary(g => g.Key, g => g.ToArray()); 49var libSets = dependencies.Where(d => !d.IsReference).GroupBy(d => NuGetFramework.Parse(d.TargetFramework)).ToDictionary(g => g.Key, g => g.ToArray());
SplitReferences.cs (3)
57Dictionary<string, ITaskItem> packageReferences = new Dictionary<string, ITaskItem>(); 58Dictionary<string, ITaskItem> assemblyReferences = new Dictionary<string, ITaskItem>(); 99private static void AddReference(Dictionary<string, ITaskItem> collection, ITaskItem item)
ValidateFrameworkPackage.cs (1)
41var testAssetsByName = testAssets.Where(a => Path.GetExtension(a.PackagePath) == ".dll")
ValidatePackage.cs (2)
115private Dictionary<NuGetFramework, ValidationFramework> _frameworks; 302Dictionary<string, PackageAsset> implementationFiles = new Dictionary<string, PackageAsset>();
ValidationTask.cs (1)
46private Dictionary<Suppression, HashSet<string>> _suppressions;
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
19private static readonly Dictionary<string, TargetFrameworkResolver> s_targetFrameworkResolverCache = new();
Microsoft.DotNet.Build.Tasks.Templating (1)
MSBuildListSplitter.cs (1)
14Dictionary<string, string> values = new(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.Build.Tasks.Workloads (5)
EmbeddedTemplates.cs (1)
12private static readonly Dictionary<string, string> s_templateResources = new();
Utils.cs (2)
66internal static void StringReplace(string fileName, Dictionary<string, string> tokenReplacements, Encoding encoding) 82internal static void StringReplace(string fileName, Dictionary<string, string> tokenReplacements) =>
Wix\HarvesterToolTask.cs (1)
15private static readonly Dictionary<HeatSuppressions, string> s_SuppressionArguments = new()
WorkloadTemplateBase.cs (1)
31protected Dictionary<string, string> ReplacementTokens
Microsoft.DotNet.Cli.CommandLine (2)
ForwardedOptionExtensions.cs (1)
16private static readonly Dictionary<Symbol, Func<ParseResult, IEnumerable<string>>> s_forwardingFunctions = [];
SymbolDocumentationExtensions.cs (1)
13private static readonly Dictionary<Symbol, string> s_documentationLinks = new();
Microsoft.DotNet.Cli.Definitions (3)
Common\CommonOptions.cs (2)
55var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 311var result = new Dictionary<string, string>(
Help\HelpBuilder.cs (1)
15private Dictionary<Symbol, Customization>? _customizationsBySymbol;
Microsoft.DotNet.Cli.Telemetry (60)
_generated\1\TelemetryJsonContext.ExceptionData.g.cs (3)
115var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 130AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionData).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 133properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info3);
_generated\10\TelemetryJsonContext.ExceptionEnvelope.g.cs (3)
119var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 134AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryEnvelope<global::Microsoft.DotNet.Cli.Telemetry.Implementation.ExceptionData>).GetProperty("Tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 137properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info3);
_generated\11\TelemetryJsonContext.MessageEnvelope.g.cs (3)
119var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 134AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryEnvelope<global::Microsoft.DotNet.Cli.Telemetry.Implementation.MessageData>).GetProperty("Tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 137properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info3);
_generated\12\TelemetryJsonContext.DependencyEnvelope.g.cs (3)
119var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 134AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryEnvelope<global::Microsoft.DotNet.Cli.Telemetry.Implementation.RemoteDependencyData>).GetProperty("Tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 137properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info3);
_generated\13\TelemetryJsonContext.RequestEnvelope.g.cs (3)
119var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 134AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.TelemetryEnvelope<global::Microsoft.DotNet.Cli.Telemetry.Implementation.RequestData>).GetProperty("Tags", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 137properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info3);
_generated\16\TelemetryJsonContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\22\TelemetryJsonContext.GetJsonTypeInfo.g.cs (1)
86if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\3\TelemetryJsonContext.MessageData.g.cs (4)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.MessageData).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info2); 154global::System.Collections.Generic.Dictionary<string, string> __value_Properties = ((global::Microsoft.DotNet.Cli.Telemetry.Implementation.MessageData)value).Properties;
_generated\4\TelemetryJsonContext.RemoteDependencyData.g.cs (4)
157var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 172AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.RemoteDependencyData).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 175properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info5); 221global::System.Collections.Generic.Dictionary<string, string> __value_Properties = ((global::Microsoft.DotNet.Cli.Telemetry.Implementation.RemoteDependencyData)value).Properties;
_generated\5\TelemetryJsonContext.RequestData.g.cs (4)
159var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 174AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Telemetry.Implementation.RequestData).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 177properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info5); 219global::System.Collections.Generic.Dictionary<string, string> __value_Properties = ((global::Microsoft.DotNet.Cli.Telemetry.Implementation.RequestData)value).Properties;
Implementation\AzureMonitorLogSerializer.cs (7)
52private static readonly Action<LogRecordScope, (Dictionary<string, string> Properties, HashSet<string> Seen)> AddScopeProperties = 72var properties = new Dictionary<string, string>(StringComparer.Ordinal); 124var tags = BuildTags(logRecord, resource); 126var propertyBag = properties.Count > 0 ? properties : null; 168private static ExceptionData BuildExceptionData(Exception exception, string severity, Dictionary<string, string>? properties) 190private static Dictionary<string, string> BuildTags(LogRecord logRecord, TelemetryResourceContext resource) 192var tags = new Dictionary<string, string>(StringComparer.Ordinal);
Implementation\AzureMonitorTelemetrySerializer.cs (9)
62var spanTags = BuildSpanTags(activity, traceId, isRequest, resource); 124var tags = BuildEventTags(traceId, spanId, resource); 171Dictionary<string, string>? properties = null; 213private static Dictionary<string, string> BuildSpanTags(Activity activity, string traceId, bool isRequest, TelemetryResourceContext resource) 215var tags = new Dictionary<string, string>(StringComparer.Ordinal); 229private static Dictionary<string, string> BuildEventTags(string traceId, string spanId, TelemetryResourceContext resource) 231var tags = new Dictionary<string, string>(StringComparer.Ordinal) 240private static Dictionary<string, string>? BuildProperties(Activity.Enumerator<KeyValuePair<string, object?>> tags) 242Dictionary<string, string>? properties = null;
Implementation\BreezeEnvelope.cs (5)
31public Dictionary<string, string> Tags { get; set; } = []; 67public Dictionary<string, string>? Properties { get; set; } 94public Dictionary<string, string>? Properties { get; set; } 120public Dictionary<string, string>? Properties { get; set; } 154public Dictionary<string, string> Properties { get; set; } = [];
Implementation\BreezeWriter.cs (1)
37public static void AddResourceTags(Dictionary<string, string> tags, TelemetryResourceContext resource)
Microsoft.DotNet.Cli.Utils (13)
Command.cs (1)
12private readonly Dictionary<string, string?>? _customEnvironmentVariables =
ForwardingAppImplementation.cs (2)
22private Dictionary<string, string?> _environmentVariables; 32Dictionary<string, string?>? environmentVariables = null)
FrameworkDependencyFile.cs (1)
87var candidateMap = candidateRuntimeIdentifiers
MSBuildArgs.cs (3)
244var newRestoreProperties = new Dictionary<string, string>(RestoreGlobalProperties, StringComparer.OrdinalIgnoreCase); 294var newProperties = new Dictionary<string, string>(GlobalProperties, StringComparer.OrdinalIgnoreCase); 377var newdict = new Dictionary<string, string>(GlobalProperties, StringComparer.OrdinalIgnoreCase);
MSBuildForwardingAppWithoutLogging.cs (5)
80private readonly Dictionary<string, string?> _msbuildRequiredEnvironmentVariables = GetMSBuildRequiredEnvironmentVariables(); 237Dictionary<string, string?> savedEnvironmentVariables = []; 255private sealed class EnvironmentVariableRestorer(Dictionary<string, string?> savedEnvironmentVariables) : IDisposable 262internal static void Restore(Dictionary<string, string?> savedEnvironmentVariables) 319internal static Dictionary<string, string?> GetMSBuildRequiredEnvironmentVariables()
TelemetryEventEntry.cs (1)
75var appliedProperties = Properties?.ToDictionary(p => p.Key, p => (string?)func(p.Value ?? string.Empty));
Microsoft.DotNet.CodeAnalysis (6)
Analyzers\PinvokeAnalyzer.cs (6)
35private Dictionary<string, string> _allowedPinvokes; 36private Dictionary<string, string> _exceptionPinvokes; 38private Dictionary<string, string> AllowedPinvokes 51private Dictionary<string, string> ExceptionPinvokes 70private Dictionary<string, string> ParseAdditionalFile(AdditionalText additionalFile) 72Dictionary<string, string> parsedPinvokes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.GenFacades (5)
GenPartialFacadeSourceGenerator.cs (5)
32Dictionary<string, string> seedTypePreferences = ParseSeedTypePreferences(seedTypePreferencesList, logger); 64private static Dictionary<string, string> ParseSeedTypePreferences(ITaskItem[] preferences, ILog logger) 66var dictionary = new Dictionary<string, string>(StringComparer.Ordinal); 145var typeTable = new Dictionary<string, IList<string>>(); 157private static void AddTypeToTable(Dictionary<string, IList<string>> typeTable, string type, string assemblyName)
Microsoft.DotNet.HotReload.Utils.Generator (1)
BaselineProject.cs (1)
31var props = new Dictionary<string,string> (config.Properties);
Microsoft.DotNet.HotReload.Utils.Generator.Data (2)
OutputSummary\OutputSummary.cs (2)
14public System.Collections.Generic.Dictionary<string, object>? Extra {get; init;} 41public System.Collections.Generic.Dictionary<string, object>? Extra {get; set;}
Microsoft.DotNet.HotReload.Watch (22)
Aspire\AspireServiceFactory.cs (1)
44private readonly Dictionary<string, Session> _sessions = [];
Browser\BrowserRefreshServerFactory.cs (1)
24private readonly Dictionary<ProjectInstanceId, BrowserRefreshServer?> _servers = [];
Build\EvaluationResult.cs (3)
98var restoredProjectInstances = projectGraph.Graph.ProjectNodes.ToDictionary( 162var fileItemsBuilder = new Dictionary<string, FileItem>(); 163var staticWebAssetManifestsBuilder = new Dictionary<ProjectInstanceId, StaticWebAssetsManifest>();
Build\FilePathExclusions.cs (1)
19var globs = new Dictionary<(string fixedDirectoryPart, string wildcardDirectoryPart, string filenamePart), (MSBuildGlob glob, string value, string projectDir)>();
Build\ProjectGraphFactory.cs (1)
115private ProjectInstance CreateProjectInstance(string projectPath, Dictionary<string, string> globalProperties, ProjectCollection projectCollection, string virtualProjectTargetFramework, ILogger logger)
FileWatcher\FileWatcher.cs (3)
14protected readonly Dictionary<string, DirectoryWatcher> _directoryTreeWatchers = new(PathUtilities.OSSpecificPathComparer); 18protected readonly Dictionary<string, DirectoryWatcher> _directoryWatchers = new(PathUtilities.OSSpecificPathComparer); 127void RemoveRedundantWatchers(Dictionary<string, DirectoryWatcher> watchers)
FileWatcher\PollingDirectoryWatcher.cs (4)
16private Dictionary<string, DateTime> _currentSnapshot = new(PathUtilities.OSSpecificPathComparer); 19private Dictionary<string, DateTime> _snapshotBuilder = new(PathUtilities.OSSpecificPathComparer); 20private readonly Dictionary<string, ChangeKind> _changesBuilder = new(PathUtilities.OSSpecificPathComparer); 176private void NotifyChanges(Dictionary<string, ChangeKind> changes)
HotReload\ProjectUpdatesBuilder.cs (1)
27private readonly Dictionary<RunningProject, List<StaticWebAsset>> _staticAssetUpdates = [];
Process\ProcessSpec.cs (1)
10public Dictionary<string, string> EnvironmentVariables { get; } = [];
Process\ProjectLauncher.cs (1)
63var environmentBuilder = new Dictionary<string, string>();
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (1)
32public Dictionary<string, ChildAssetJson>? Children { get; init; }
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetUpdateBuilder.cs (4)
22private readonly Dictionary<ProjectInstanceId, Dictionary<string, StaticWebAsset>> _assets = []; 25public IReadOnlyDictionary<ProjectInstanceId, Dictionary<string, StaticWebAsset>> Assets => _assets; 116if (!_assets.TryGetValue(applicationProjectInstanceInfo.Id, out var applicationAssets))
Microsoft.DotNet.NuGetRepack.Tasks (7)
src\NuGetVersionUpdater.cs (4)
74var packages = new Dictionary<string, PackageInfo>(); 100private static void LoadPackages(IEnumerable<string> packagePaths, Dictionary<string, PackageInfo> packages, string tempDirectoryOpt, VersionTranslation translation) 283private static void UpdateDependencies(Dictionary<string, PackageInfo> packages, VersionTranslation translation, bool exactVersions, Func<string, string, string, bool> allowPreReleaseDependencyOpt) 358private static void SavePackages(Dictionary<string, PackageInfo> packages, string outDirectory)
src\ReplacePackageParts.cs (3)
73private Dictionary<string, string> GetPartReplacementMap() 83var map = new Dictionary<string, string>(partCount); 102var replacementMap = GetPartReplacementMap();
Microsoft.DotNet.PackageTesting (7)
GetCompatiblePackageTargetFrameworks.cs (1)
17private static Dictionary<NuGetFramework, HashSet<NuGetFramework>> packageTfmMapping = new();
VerifyClosure.cs (4)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 43private Dictionary<string, Version> ignoredReferences = new Dictionary<string, Version>(StringComparer.OrdinalIgnoreCase); 261var suspectCycles = new Dictionary<AssemblyInfo, AssemblyInfo[]>(); 275void DumpCycles(Stack<AssemblyInfo> depStack, AssemblyInfo root, Dictionary<AssemblyInfo, AssemblyInfo[]> suspectCycles)
VerifyTypes.cs (2)
33private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 47var types = new Dictionary<string, AssemblyInfo>();
Microsoft.DotNet.PackageValidation (3)
Validators\CompatibleTFMValidator.cs (3)
18private static readonly Dictionary<NuGetFramework, HashSet<NuGetFramework>> s_packageTfmMapping = InitializeTfmMappings(); 99private static Dictionary<NuGetFramework, HashSet<NuGetFramework>> InitializeTfmMappings() 101Dictionary<NuGetFramework, HashSet<NuGetFramework>> packageTfmMapping = [];
Microsoft.DotNet.ProjectTools (2)
BuildService.cs (1)
95var mergedGlobalProperties = new Dictionary<string, string>(projectCollection.Inner.GlobalProperties, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
885private Dictionary<CSharpDirective.Named, CSharpDirective.Named>? _seen;
Microsoft.DotNet.SharedFramework.Sdk (9)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (4)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 43private Dictionary<string, Version> ignoredReferences = new Dictionary<string, Version>(StringComparer.OrdinalIgnoreCase); 261var suspectCycles = new Dictionary<AssemblyInfo, AssemblyInfo[]>(); 275void DumpCycles(Stack<AssemblyInfo> depStack, AssemblyInfo root, Dictionary<AssemblyInfo, AssemblyInfo[]> suspectCycles)
src\arcade\src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (2)
33private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 47var types = new Dictionary<string, AssemblyInfo>();
src\CreateFrameworkListFile.cs (1)
69Dictionary<string, ITaskItem> fileClassLookup = FileClassifications
src\GeneratePlatformManifestEntriesFromTemplate.cs (1)
32var files = Files.ToLookup(file => Path.GetFileName(file.ItemSpec)).ToDictionary(l => l.Key, l=> l.First());
src\ValidateFileVersions.cs (1)
22var fileVersions = new Dictionary<string, FileVersionData>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\WriteUsageReports.cs (2)
68var prodConPackageOrigin = new Dictionary<string, string>( 225Dictionary<string, string> packageOrigin,
Microsoft.DotNet.TemplateLocator (75)
_generated\0\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\12\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\4\WorkloadSetJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
22if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\8\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info1); 134global::System.Collections.Generic.Dictionary<string, string> __value_Manifests = ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)value).Manifests;
_generated\9\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
src\sdk\src\Cli\dotnet\Commands\Workload\InstallStateContents.cs (1)
19public Dictionary<string, string>? Manifests { get; set; }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\IWorkloadManifestProvider.cs (1)
43Dictionary<string, WorkloadSet> GetAvailableWorkloadSets();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (11)
24private readonly Dictionary<string, int>? _knownManifestIdsAndOrder; 149var availableWorkloadSets = GetAvailableWorkloadSets(_sdkVersionBand); 150var workloadSets80100 = GetAvailableWorkloadSets(new SdkFeatureBand("8.0.100")); 164var featureBandWorkloadSets = GetAvailableWorkloadSets(workloadSetFeatureBand); 340var manifestIdsToManifests = new Dictionary<string, ReadableWorkloadManifest>(StringComparer.OrdinalIgnoreCase); 384Dictionary<string, string> directoriesWithManifests = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 587public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() 592public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets(SdkFeatureBand workloadSetFeatureBand) 597Dictionary<string, WorkloadSet> GetAvailableWorkloadSetsInternal(SdkFeatureBand? workloadSetFeatureBand) 600Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>(); 622static void AddWorkloadSetsForFeatureBand(Dictionary<string, WorkloadSet> availableWorkloadSets, string featureBandDirectory)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifest.cs (6)
13internal WorkloadManifest(string id, FXVersion version, string? description, string manifestPath, Dictionary<WorkloadId, BaseWorkloadDefinition> workloads, Dictionary<WorkloadPackId, WorkloadPack> packs, Dictionary<string, FXVersion>? dependsOnManifests) 42internal Dictionary<string, FXVersion>? DependsOnManifests { get; } 48public Dictionary<WorkloadId, BaseWorkloadDefinition> Workloads { get; } 49public Dictionary<WorkloadPackId, WorkloadPack> Packs { get; }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (14)
88Dictionary<WorkloadId, BaseWorkloadDefinition>? workloads = null; 89Dictionary<WorkloadPackId, WorkloadPack>? packs = null; 90Dictionary<string, FXVersion>? dependsOn = null; 216private static Dictionary<string, FXVersion> ReadDependsOn(ref Utf8JsonStreamReader reader) 220var dependsOn = new Dictionary<string, FXVersion>(StringComparer.OrdinalIgnoreCase); 248private static Dictionary<WorkloadId, BaseWorkloadDefinition> ReadWorkloadDefinitions(ref Utf8JsonStreamReader reader, LocalizationCatalog? localizationCatalog) 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 274private static Dictionary<WorkloadPackId, WorkloadPack> ReadWorkloadPacks(ref Utf8JsonStreamReader reader) 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 346private static Dictionary<string, string> ReadStringDictionary(ref Utf8JsonStreamReader reader) 350var dictionary = new Dictionary<string, string>(); 372private static Dictionary<string, TValue> ReadStringDictionary<TValue>(ref Utf8JsonStreamReader reader, Func<string, TValue> mapValue) 376var dictionary = new Dictionary<string, TValue>(); 506Dictionary<string, WorkloadPackId>? aliasTo = null;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.Localization.cs (2)
78readonly Dictionary<string, string> _catalog; 80public LocalizationCatalog(Dictionary<string, string> catalog)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPack.cs (2)
8public WorkloadPack(WorkloadPackId id, string version, WorkloadPackKind kind, Dictionary<string, WorkloadPackId>? aliasTo) 20public Dictionary<string, WorkloadPackId>? AliasTo { get; }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (6)
17private readonly Dictionary<string, (WorkloadManifest manifest, WorkloadManifestInfo info)> _manifests = new(StringComparer.OrdinalIgnoreCase); 18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 140Dictionary<WorkloadId, (WorkloadRedirect redirect, WorkloadManifest manifest)>? redirects = null; 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new(); 806public static TValue? TryGetValue<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (4)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new(); 31var manifestVersions = dictionary 110public Dictionary<string, string> ToDictionaryForJson() 112var dictionary = ManifestVersions.ToDictionary(kvp => kvp.Key.ToString(), kvp => kvp.Value.Version + "/" + kvp.Value.FeatureBand, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSetJsonSerializerContext.cs (1)
14[JsonSerializable(typeof(Dictionary<string, string>))]
Microsoft.DotNet.XliffTasks (8)
Model\JsonDocument.cs (4)
21private Dictionary<string, string> _json; 26_json = JsonSerializer.Deserialize<Dictionary<string, string>>(text); 31writer.Write(JsonSerializer.Serialize(_json, typeof(Dictionary<string, string>), s_serializerOptions)); 37private sealed class Node(Dictionary<string, string> json, string id, string source) : TranslatableNode(id, source, note: null)
Model\XlfDocument.cs (2)
78Dictionary<string, TranslatableNode> nodesById = new(); 262Dictionary<string, string> dictionary = new();
Tasks\TransformTemplates.cs (2)
35Dictionary<string, ITaskItem> resourceMap = UnstructuredResources.ToDictionary(item => item.GetMetadata("FullPath")); 99Dictionary<string, string> defaultTranslation = document.Nodes.ToDictionary(node => node.Id, node => node.Source);
Microsoft.Extensions.AI (6)
ChatCompletion\FunctionInvokingChatClient.cs (2)
1428Dictionary<string, (ChatMessage Message, ToolApprovalRequestContent RequestContent)>? allApprovalRequestsMessages = null; 1582Dictionary<string, ChatMessage>? messagesById = null;
ChatCompletion\ImageGeneratingChatClient.cs (2)
147private readonly Dictionary<string, List<AIContent>> _imageContentByCallId = []; 148private readonly Dictionary<string, AIContent> _imageContentById = new(StringComparer.OrdinalIgnoreCase);
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string> s_extensionToMediaType = new(StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string> s_mediaTypeToExtension = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Extensions.AI.Abstractions (24)
AdditionalPropertiesDictionary{TValue}.cs (3)
25private readonly Dictionary<string, TValue> _dictionary; 217private Dictionary<string, TValue>.Enumerator _dictionaryEnumerator; 221internal Enumerator(Dictionary<string, TValue>.Enumerator dictionaryEnumerator)
ChatCompletion\ChatResponseExtensions.cs (2)
194Dictionary<string, int>? imageResultIndexById = null; 235Dictionary<string, int>? webSearchCallIndexById = null;
Functions\AIFunctionArguments.cs (4)
30private readonly Dictionary<string, object?> _arguments; 46/// already a <see cref="Dictionary{TKey, TValue}"/>, in which case all dictionary 73/// <see cref="Dictionary{TKey, TValue}"/> with the same <see cref="IEqualityComparer{T}"/> or if 82arguments is Dictionary<string, object?> dc && (comparer is null || ReferenceEquals(dc.Comparer, comparer)) ? dc :
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.DictionaryStringObject.g.cs (9)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 24get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
380if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>))
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string> s_extensionToMediaType = new(StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string> s_mediaTypeToExtension = new(StringComparer.OrdinalIgnoreCase)
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\NullabilityInfoContext\NullabilityInfoContext.cs (2)
27private readonly Dictionary<Module, NotAnnotatedStatus> _publicOnlyModules = new(); 28private readonly Dictionary<MemberInfo, NullabilityState> _context = new();
Utilities\AIJsonUtilities.Defaults.cs (1)
106[JsonSerializable(typeof(Dictionary<string, object>))]
Microsoft.Extensions.AI.Abstractions.Tests (115)
Contents\FunctionCallContentTests.cs (14)
37Dictionary<string, object?> args = []; 194AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 216AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 236var arguments = JsonSerializer.Deserialize<Dictionary<string, JsonDocument>>(""" 249AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 257var arguments = JsonSerializer.Deserialize<Dictionary<string, JsonNode>>(""" 270AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 278AIFunctionArguments arguments = new(JsonSerializer.Deserialize<Dictionary<string, JsonDocument>>(""" 296AIFunctionArguments arguments = new(JsonSerializer.Deserialize<Dictionary<string, object?>>(""" 314AIFunctionArguments arguments = new(JsonSerializer.Deserialize<Dictionary<string, JsonNode>>(""" 348argumentParser: static json => JsonSerializer.Deserialize<Dictionary<string, object?>>(json, AIJsonUtilities.DefaultOptions)); 397static Dictionary<string, object?> ThrowingParser(Exception ex) => throw ex;
Functions\AIFunctionArgumentsTests.cs (4)
208var originalArgs = new Dictionary<string, object?> 240var originalDict = new Dictionary<string, object?>(comparer) 264var originalDict = new Dictionary<string, object?>(comparer) 291var originalDict = new Dictionary<string, object?>(StringComparer.Ordinal)
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonDocument.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>>? _DictionaryStringJsonDocument; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>> DictionaryStringJsonDocument 22get => _DictionaryStringJsonDocument ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>> Create_DictionaryStringJsonDocument(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>, string, global::System.Text.Json.JsonDocument>(options, info); 45private void DictionaryStringJsonDocumentSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>? value)
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonNode.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>>? _DictionaryStringJsonNode; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>> DictionaryStringJsonNode 22get => _DictionaryStringJsonNode ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>> Create_DictionaryStringJsonNode(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>, string, global::System.Text.Json.Nodes.JsonNode>(options, info); 45private void DictionaryStringJsonNodeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>? value)
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringObject.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 22get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 45private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (4)
394if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>)) 398if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>)) 402if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>)) 406if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringInt32.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>>? _DictionaryStringInt32; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>> DictionaryStringInt32 24get => _DictionaryStringInt32 ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, int>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>> Create_DictionaryStringInt32(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, int>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, int>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, int>, string, int>(options, info); 47private void DictionaryStringInt32SerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, int>? value)
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringObject.g.cs (9)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 24get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringSimplePoco.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>>? _DictionaryStringSimplePoco; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>> DictionaryStringSimplePoco 24get => _DictionaryStringSimplePoco ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>> Create_DictionaryStringSimplePoco(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>, string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>(options, info); 47private void DictionaryStringSimplePocoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>? value)
Generated\361d1da7f942c932\TestTypesContext.PocoWithExtensionDataProperty.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithExtensionDataProperty).GetProperty("ExtensionData", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, object>>(options, info1);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (3)
248if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>)) 252if (type == typeof(global::System.Collections.Generic.Dictionary<string, int>)) 256if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>))
parent\parent\Shared\JsonSchemaExporter\TestTypes.cs (7)
826yield return new TestData<Dictionary<string, int>>( 838yield return new TestData<Dictionary<string, SimplePoco>>( 861yield return new TestData<Dictionary<string, object>>( 1030public Dictionary<string, object>? ExtensionData { get; set; } 1307[JsonSerializable(typeof(Dictionary<string, int>))] 1309[JsonSerializable(typeof(Dictionary<string, SimplePoco>))] 1310[JsonSerializable(typeof(Dictionary<string, object>))]
TestJsonSerializerContext.cs (4)
31[JsonSerializable(typeof(Dictionary<string, object?>))] 35[JsonSerializable(typeof(Dictionary<string, JsonDocument>))] // Used in Content tests 36[JsonSerializable(typeof(Dictionary<string, JsonNode>))] // Used in Content tests 37[JsonSerializable(typeof(Dictionary<string, string>))] // Used in Content tests
Tools\HostedCodeInterpreterToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedFileSearchToolTests.cs (1)
26var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedImageGenerationToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedMcpServerToolTests.cs (2)
32var props = new Dictionary<string, object?> { ["key"] = "value" }; 43var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedToolSearchToolTests.cs (1)
27var props = new Dictionary<string, object?> { ["key"] = "value" };
Tools\HostedWebSearchToolTests.cs (1)
24var props = new Dictionary<string, object?> { ["key"] = "value" };
Utilities\AIJsonUtilitiesTests.cs (1)
1501Dictionary<string, object> dict = new() { ["key1"] = 1, ["key2"] = 2 };
Microsoft.Extensions.AI.Evaluation (1)
EvaluationResult.cs (1)
53var metricsDictionary = new Dictionary<string, EvaluationMetric>();
Microsoft.Extensions.AI.Evaluation.Console (12)
Commands\CleanCacheCommand.cs (1)
27var telemetryProperties = new Dictionary<string, string>();
Commands\CleanResultsCommand.cs (1)
28var telemetryProperties =
Commands\ReportCommand.cs (7)
36var telemetryProperties = 79var usageDetailsByModel = 168Dictionary<(string? model, string? modelProvider), TurnAndTokenUsageDetails> usageDetailsByModel, 193var properties = 226var properties = 286Dictionary<(string? model, string? modelProvider), TurnAndTokenUsageDetails> usageDetailsByModel, 301var properties =
Telemetry\TelemetryHelper.cs (3)
21private readonly Dictionary<string, string>? _commonProperties; 161private Dictionary<string, string>? GetCombinedProperties(IDictionary<string, string>? properties) 168Dictionary<string, string> combinedProperties;
Microsoft.Extensions.AI.Evaluation.NLP (5)
Common\BLEUAlgorithm.cs (2)
73Dictionary<NGram<string>, int> maxCounts = []; 93Dictionary<NGram<string>, int> clippedCounts = [];
Common\MatchCounter.cs (3)
17private readonly Dictionary<T, int> _counts = []; 61(Dictionary<T, int> smaller, Dictionary<T, int> larger) =
Microsoft.Extensions.AI.Evaluation.NLP.Tests (1)
MatchCounterTests.cs (1)
74Dictionary<int, int> dict = intersection.ToDictionary(kv => kv.Key, kv => kv.Value);
Microsoft.Extensions.AI.Evaluation.Safety (8)
ContentSafetyServicePayloadUtilities.cs (8)
90List<Dictionary<string, ChatMessage>> turns; 182List<Dictionary<string, ChatMessage>> turns; 260List<Dictionary<string, ChatMessage>> turns; 274IEnumerable<JsonObject> GetMessages(Dictionary<string, ChatMessage> turn, int turnIndex) 384(List<Dictionary<string, ChatMessage>> turns, 395List<Dictionary<string, ChatMessage>> turns = []; 396Dictionary<string, ChatMessage> currentTurn = []; 474foreach (var turn in turns)
Microsoft.Extensions.AI.Integration.Tests (5)
ChatClientIntegrationTests.cs (1)
433Dictionary<string, object?> additionalProperties = new();
VerbatimMultiPartHttpHandler.cs (4)
60Dictionary<string, object> parameters = []; 221private static Dictionary<char, int>? GetCharacterFrequencies(string text) 227var expectedFrequencies = GetCharacterFrequencies(expected); 228var actualFrequencies = GetCharacterFrequencies(actual);
Microsoft.Extensions.AI.OpenAI (33)
Generated\361d1da7f942c932\OpenAIJsonContext.DictionaryStringJsonElement.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>? _DictionaryStringJsonElement; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> DictionaryStringJsonElement 22get => _DictionaryStringJsonElement ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> Create_DictionaryStringJsonElement(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>, string, global::System.Text.Json.JsonElement>(options, info); 45private void DictionaryStringJsonElementSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>? value)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OpenAIJsonContext.GetJsonTypeInfo.g.cs (1)
30if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OpenAIJsonContext.ToolJson.g.cs (6)
95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> 110AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.OpenAIClientExtensions.ToolJson).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>(options, info2); 137var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>> 152AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.OpenAIClientExtensions.ToolJson).GetProperty("ExtensionData", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>), global::System.Array.Empty<global::System.Type>(), null), 155properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonElement>>(options, info4);
OpenAIChatClient.cs (1)
350Dictionary<int, FunctionCallInfo>? functionCallInfos = null;
OpenAIClientExtensions.cs (2)
327public Dictionary<string, JsonElement> Properties { get; set; } = []; 333public Dictionary<string, JsonElement>? ExtensionData { get; set; }
OpenAIRealtimeClientSession.cs (2)
254var metadata = new Dictionary<string, BinaryData>(); 560var sdkHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
OpenAIResponsesChatClient.cs (9)
185Dictionary<string, ToolApprovalRequestContent>? mcpApprovalRequests = null; 378Dictionary<string, ToolApprovalRequestContent>? mcpApprovalRequests = null; 1017Dictionary<ToolSearchLookup.Namespace, List<ResponseTool>>? namespaceGroups = null; 1108private readonly Dictionary<string, Namespace> _namespacedToolNames; 1110private ToolSearchLookup(bool deferAll, HashSet<string> deferredToolNames, Dictionary<string, Namespace> namespacedToolNames) 1142Dictionary<string, Namespace> namespacedToolNames = new(StringComparer.Ordinal); 1143Dictionary<string, Namespace> namespacesByName = new(StringComparer.Ordinal); 1199private static Namespace GetOrCreateNamespace(Dictionary<string, Namespace> namespacesByName, string name, string? description) 1287Dictionary<string, McpServerToolCallContent>? idToContentMapping = null;
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string> s_extensionToMediaType = new(StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string> s_mediaTypeToExtension = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Extensions.AI.OpenAI.Tests (7)
OpenAIConversionTests.cs (7)
1575var complexArgs = new Dictionary<string, object?> 1608var deserializedArgs = JsonSerializer.Deserialize<Dictionary<string, object?>>(toolCall.FunctionArguments.ToMemory().Span); 1803var deserializedArgs = JsonSerializer.Deserialize<Dictionary<string, object?>>( 2327private readonly Dictionary<string, object?> _additionalProperties; 2331public HostedWebSearchToolWithProperties(Dictionary<string, object?> additionalProperties)
Microsoft.Extensions.AI.Stabilization.Tests (3)
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedCodeInterpreterToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedImageGenerationToolTests.cs (1)
25var props = new Dictionary<string, object?> { ["key"] = "value" };
parent\Microsoft.Extensions.AI.Abstractions.Tests\Tools\HostedWebSearchToolTests.cs (1)
24var props = new Dictionary<string, object?> { ["key"] = "value" };
Microsoft.Extensions.AI.Templates.Tests (1)
TestCommand.cs (1)
24public Dictionary<string, string> EnvironmentVariables = [];
Microsoft.Extensions.AI.Tests (59)
ChatCompletion\OpenTelemetryChatClientTests.cs (1)
208var tags = activity.Tags.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
ChatRouting\SemanticRoutingChatClientTests.cs (8)
21var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance) 76var vectors = new Dictionary<string, float[]> 107var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance) 133var vectors = new Dictionary<string, float[]> 156var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance) 178var vectors = new Dictionary<string, float[]> 199var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance) 223var profiles = new Dictionary<IChatClient, IReadOnlyList<string>>(ChatClientReferenceComparer.Instance)
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonDocument.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>>? _DictionaryStringJsonDocument; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>> DictionaryStringJsonDocument 22get => _DictionaryStringJsonDocument ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>> Create_DictionaryStringJsonDocument(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>, string, global::System.Text.Json.JsonDocument>(options, info); 45private void DictionaryStringJsonDocumentSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>? value)
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringJsonNode.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>>? _DictionaryStringJsonNode; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>> DictionaryStringJsonNode 22get => _DictionaryStringJsonNode ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>> Create_DictionaryStringJsonNode(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>, string, global::System.Text.Json.Nodes.JsonNode>(options, info); 45private void DictionaryStringJsonNodeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>? value)
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringObject.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 22get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
Generated\361d1da7f942c932\TestJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 45private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (4)
262if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.JsonDocument>)) 266if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Text.Json.Nodes.JsonNode>)) 270if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>)) 274if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
Image\OpenTelemetryImageGeneratorTests.cs (1)
117var tags = activity.Tags.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
Realtime\OpenTelemetryRealtimeClientTests.cs (1)
148var tags = activity.Tags.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
SpeechToText\OpenTelemetrySpeechToTextClientTests.cs (1)
128var tags = activity.Tags.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
TestJsonSerializerContext.cs (4)
22[JsonSerializable(typeof(Dictionary<string, JsonDocument>))] 23[JsonSerializable(typeof(Dictionary<string, JsonNode>))] 24[JsonSerializable(typeof(Dictionary<string, object>))] 25[JsonSerializable(typeof(Dictionary<string, string>))]
Microsoft.Extensions.AsyncState (5)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Caching.Hybrid (4)
Internal\DefaultJsonSerializerFactory.cs (4)
49Dictionary<Type, FieldOnlyResult>? state = null; // only needed for complex types 63Type type, ref Dictionary<Type, FieldOnlyResult>? state) 117static void PrepareStateForDepth(Type type, ref Dictionary<Type, FieldOnlyResult>? state) 126static FieldOnlyResult SetState(Type type, Dictionary<Type, FieldOnlyResult>? state, bool result)
Microsoft.Extensions.Caching.Hybrid.Tests (5)
SerializerTests.cs (2)
189Dictionary<string, (int id, string who, DateTime when)> source = new() 194var clone = RoundTrip(source,
StampedeTests.cs (1)
459Dictionary<object, int> counts = [];
TestEventListener.cs (2)
21private readonly Dictionary<string, (string? displayName, double value)> _counters = []; 49var args = new Dictionary<string, string?>
Microsoft.Extensions.Compliance.Abstractions (5)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Classification\DataClassificationTypeConverterTests.cs (1)
52var expected = new Dictionary<string, DataClassification>
Microsoft.Extensions.Compliance.Redaction (3)
RedactorProvider.cs (2)
38private static FrozenDictionary<DataClassificationSet, Redactor> GetClassRedactorMap(IEnumerable<Redactor> redactors, Dictionary<DataClassificationSet, Type> map) 46var dict = new Dictionary<DataClassificationSet, Redactor>(map.Count);
RedactorProviderOptions.cs (1)
23public Dictionary<DataClassificationSet, Type> Redactors { get; } = [];
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
265private readonly Dictionary<string, object> _properties = new();
Microsoft.Extensions.Configuration.Binder (2)
ConfigurationBinder.cs (2)
701dictionaryType = typeof(Dictionary<,>).MakeGenericType(keyType, valueType); 749(dictionaryType.GetGenericTypeDefinition() == typeof(IDictionary<,>) || dictionaryType.GetGenericTypeDefinition() == typeof(Dictionary<,>)));
Microsoft.Extensions.Configuration.Binder.SourceGeneration (8)
ConfigurationBindingGenerator.Parser.cs (2)
26private readonly Dictionary<ITypeSymbol, TypeSpec> _createdTypeSpecs = new(SymbolEqualityComparer.Default); 722Dictionary<string, PropertySpec>? properties = null;
Parser\Extensions.cs (1)
80public static void RegisterCacheEntry<TKey, TValue, TEntry>(this Dictionary<TKey, TValue> cache, TKey key, TEntry entry)
Parser\KnownTypeSymbols.cs (1)
108Dictionary = compilation.GetBestTypeByMetadataName(typeof(Dictionary<,>));
Specs\BindingHelperInfo.cs (2)
27private readonly Dictionary<TypeRef, bool> _seenTransitiveTypes = new(); 32private readonly Dictionary<MethodsToGen_CoreBindingHelper, HashSet<TypeSpec>> _typesForGen = new();
Specs\InterceptorInfo.cs (1)
136private readonly Dictionary<ComplexTypeSpec, TypedInterceptorInvocationInfo.Builder> _invocationInfoBuilderCache = new();
Specs\TypeIndex.cs (1)
14private readonly Dictionary<TypeRef, TypeSpec> _index = typeSpecs.ToDictionary(spec => spec.TypeRef);
Microsoft.Extensions.Configuration.CommandLine (4)
CommandLineConfigurationProvider.cs (4)
14private readonly Dictionary<string, string>? _switchMappings; 43var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 135private static Dictionary<string, string> GetValidatedSwitchMappingsCopy(IDictionary<string, string> switchMappings) 140var switchMappingsCopy = new Dictionary<string, string>(switchMappings.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.EnvironmentVariables (3)
EnvironmentVariablesConfigurationProvider.cs (3)
86var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 154private void HandleMatchedConnectionStringPrefix(Dictionary<string, string?> data, string connectionStringPrefix, string? provider, string fullKey, string? value) 166private void AddIfNormalizedKeyMatchesPrefix(Dictionary<string, string?> data, string normalizedKey, string? value)
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
28var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationFileParser.cs (2)
16private readonly Dictionary<string, string?> _data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 22private Dictionary<string, string?> ParseStream(Stream input)
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
60var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Xml (3)
XmlStreamConfigurationProvider.cs (3)
94var children = new Dictionary<string, List<XmlConfigurationElement>>(StringComparer.OrdinalIgnoreCase); 255private static Dictionary<string, string?> ProvideConfiguration(XmlConfigurationElement? root) 257Dictionary<string, string?> configuration = new(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.DataIngestion (4)
Writers\VectorStoreWriter.cs (4)
30private VectorStoreCollection<object, Dictionary<string, object?>>? _vectorStoreCollection; 55public VectorStoreCollection<object, Dictionary<string, object?>> VectorStoreCollection 79Dictionary<string, object?> record = new() 186await foreach (var record in _vectorStoreCollection!.GetAsync(
Microsoft.Extensions.DataIngestion.Abstractions (4)
IngestionChunk.cs (1)
18private Dictionary<string, object>? _metadata;
IngestionDocumentElement.cs (1)
39private Dictionary<string, object?>? _metadata;
parent\parent\parent\eng\MSBuild\parent\parent\src\LegacySupport\MediaTypeMap\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string> s_extensionToMediaType = new(StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string> s_mediaTypeToExtension = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
MarkItDownMcpReader.cs (1)
84Dictionary<string, object?> parameters = new()
Microsoft.Extensions.DataIngestion.Tests (3)
Writers\VectorStoreWriterTests.cs (3)
44Dictionary<string, object?> record = await writer.VectorStoreCollection 110Dictionary<string, object?> record = await writer.VectorStoreCollection 161List<Dictionary<string, object?>> records = await writer.VectorStoreCollection
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteChain.cs (1)
13private readonly Dictionary<ServiceIdentifier, ChainItemInfo> _callSiteChain;
ServiceLookup\CallSiteFactory.cs (2)
19private readonly Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem> _descriptorLookup = new Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem>(); 317Dictionary<ServiceIdentifier, int>? keyedSlotAssignment = null;
ServiceLookup\CallSiteRuntimeResolver.cs (1)
139Dictionary<ServiceCacheKey, object?> resolvedServices = serviceProviderEngine.ResolvedServices;
ServiceLookup\ServiceProviderEngineScope.cs (1)
36internal Dictionary<ServiceCacheKey, object?> ResolvedServices { get; }
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.DependencyModel (10)
CollectionExtensions.netcoreapp.cs (1)
11internal static Dictionary<string, T> LibraryCollectionToDictionary<T>(this IReadOnlyList<T> collection) where T : Library
DependencyContextJsonReader.cs (7)
20private readonly Dictionary<string, string> _stringPool = new Dictionary<string, string>(); 140Dictionary<string, LibraryStub>? libraryStubs = null; 646private Dictionary<string, LibraryStub> ReadLibraries(ref Utf8JsonReader reader) 648var libraries = new Dictionary<string, LibraryStub>(); 750private IEnumerable<Library> CreateLibraries(IEnumerable<TargetLibrary>? libraries, bool runtime, Dictionary<string, LibraryStub>? libraryStubs) 759IEnumerable<Library> CreateLibrariesNotNull(IEnumerable<TargetLibrary> libraries, bool runtime, Dictionary<string, LibraryStub>? libraryStubs) 770private Library? CreateLibrary(TargetLibrary targetLibrary, bool runtime, Dictionary<string, LibraryStub>? libraryStubs)
DependencyContextWriter.cs (2)
146Dictionary<string, RuntimeLibrary> runtimeLookup = runtimeLibraries.LibraryCollectionToDictionary(); 147Dictionary<string, CompilationLibrary> compileLookup = compilationLibraries.LibraryCollectionToDictionary();
Microsoft.Extensions.Diagnostics (7)
Metrics\DefaultMeterFactory.cs (1)
14private readonly Dictionary<string, List<FactoryMeter>> _cachedMeters = new();
Metrics\ListenerSubscription.cs (1)
16private readonly Dictionary<Instrument, object?> _instruments = new();
Tracing\DefaultActivitySourceFactory.cs (5)
16private readonly Dictionary<string, FactoryActivitySource[]> _cachedSources = []; 398var newDict = new Dictionary<(string Name, bool IsLocalScope), SourceFilterState>(state.SourceFilterStates) 574public ListenerState(List<TracingRule> rules, bool hasOperationNameRules, Dictionary<(string Name, bool IsLocalScope), SourceFilterState> sourceFilterStates) 588public Dictionary<(string Name, bool IsLocalScope), SourceFilterState> SourceFilterStates { get; } 593public ListenerState WithSourceFilterStates(Dictionary<(string Name, bool IsLocalScope), SourceFilterState> sourceFilterStates)
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
ExceptionSummarizer.cs (1)
19var exceptionTypesToProvidersBuilder = new Dictionary<Type, IExceptionSummaryProvider>();
HttpExceptionSummaryProvider.cs (2)
37var socketErrors = new Dictionary<SocketError, int>(); 52var webStatuses = new Dictionary<WebExceptionStatus, int>();
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
62var entries = new Dictionary<string, HealthReportEntry>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (5)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
TelemetryHealthChecksPublisherExtensionsTests.cs (1)
73var configurationDict = new Dictionary<string, string?>
TelemetryHealthChecksPublisherTests.cs (1)
154var healthStatusRecords = new Dictionary<string, HealthReportEntry>();
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (1)
ResourceHealthCheckExtensionsTests.cs (1)
572var configurationDict = new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
MockHealthCheckService.cs (1)
26var healthStatusRecords = new Dictionary<string, HealthReportEntry> { { "id", entry } };
Microsoft.Extensions.Diagnostics.ResourceMonitoring (6)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Windows\Disk\WindowsDiskMetrics.cs (1)
26private readonly Dictionary<string, WindowsDiskIoRatePerfCounter> _diskIoRateCounters = new();
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\CollectedMeasurement.cs (1)
28var d = new Dictionary<string, object?>();
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerTests.cs (1)
86var ss = logger.LatestRecord.StructuredState!.ToDictionary(x => x.Key, x => x.Value);
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
98var dict = new Dictionary<string, List<string>>();
Microsoft.Extensions.Http (3)
DependencyInjection\HttpClientMappingRegistry.cs (2)
16public Dictionary<string, Type> NamedClientRegistrations { get; } = new(); 18public Dictionary<string, HttpClientKeyedLifetime> KeyedLifetimeMap { get; } = new();
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Http.Diagnostics (15)
Http\HttpDependencyMetadataResolver.cs (6)
48Dictionary<string, RequestMetadataTrieNode> dependencyTrieMap = []; 93private static void AddRouteToTrie(RequestMetadata routeMetadata, Dictionary<string, RequestMetadataTrieNode> dependencyTrieMap) 181private static Dictionary<string, ProcessedMetadata> ProcessDependencyMetadata(Dictionary<string, RequestMetadataTrieNode> dependencyTrieMap) 183Dictionary<string, ProcessedMetadata> finalArrayDict = []; 286private void AddDependency(IDownstreamDependencyMetadata dependencyMetadata, Dictionary<string, RequestMetadataTrieNode> dependencyTrieMap)
Latency\Internal\HttpRequestLatencyListener.cs (8)
114private static readonly Dictionary<string, string> _socketMap = new() 120private static readonly Dictionary<string, string> _nameResolutionMap = new() 126private static readonly Dictionary<string, string> _httpMap = new() 140private static readonly Dictionary<string, string> _httpMeasureMap = new() 150Dictionary<string, CheckpointToken> socket = new(); 156Dictionary<string, CheckpointToken> nameResolution = new(); 162Dictionary<string, CheckpointToken> http = new(); 168Dictionary<string, MeasureToken> httpMeasures = new();
Logging\LoggingOptions.cs (1)
43/// The default value is <see cref="System.Collections.Generic.Dictionary{TKey, TValue}"/>.
Microsoft.Extensions.Http.Diagnostics.Tests (12)
Logging\HttpClientLoggerTest.cs (7)
242var logRecordState = logRecord.GetStructuredState(); 340var logRecordRequest = logRecords[0].GetStructuredState(); 350var logRecordFull = logRecords[1].GetStructuredState(); 447var logRecordState = logRecord.GetStructuredState(); 563var logRecordState = logRecord.GetStructuredState(); 654var logRecordState = logRecord.GetStructuredState(); 928var logRecordState = logRecord.GetStructuredState();
Logging\HttpRequestReaderTest.cs (1)
816var state = logRecord.GetStructuredState();
Logging\Internal\LogRecordExtensions.cs (1)
15public static Dictionary<string, string?> GetStructuredState(this FakeLogRecord logRecord)
Logging\LoggingOptionsTest.cs (3)
73var testHeaders = new Dictionary<string, DataClassification> 87var testHeaders = new Dictionary<string, DataClassification> 122var paramsToRedacts = new Dictionary<string, DataClassification>
Microsoft.Extensions.Http.Resilience (5)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Http.Resilience.Tests (8)
Helpers\ConfigurationStubFactory.cs (4)
12public static IConfiguration Create(Dictionary<string, string?> collection) => Create(collection, out _); 14public static IConfiguration Create(Dictionary<string, string?> collection, out Action<Dictionary<string, string?>> reload) 38public void Reload(Dictionary<string, string?> data)
Resilience\HttpClientBuilderExtensionsTests.Resilience.cs (1)
365public Dictionary<string, object?> Tags { get; } = [];
Routing\RoutingStrategyTest.cs (3)
113Dictionary<string, string?> config1, 114Dictionary<string, string?> config2, 190public void Reload(Dictionary<string, string?> data)
Microsoft.Extensions.Identity.Core (2)
TokenOptions.cs (1)
36public Dictionary<string, TokenProviderDescriptor> ProviderMap { get; set; } = new Dictionary<string, TokenProviderDescriptor>();
UserManager.cs (1)
45private readonly Dictionary<string, IUserTwoFactorTokenProvider<TUser>> _tokenProviders =
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Logging.Generators (4)
LoggerMessageGenerator.Parser.cs (3)
619var methods = new Dictionary<string, int>(lc.Methods.Count); 836private static bool ExtractTemplates(string? message, Dictionary<string, string> templateMap, List<string> templateList) 1016public readonly Dictionary<string, string> TemplateMap = new(StringComparer.OrdinalIgnoreCase);
LoggerMessageGenerator.Roslyn4.0.cs (1)
169var allLogClasses = new Dictionary<string, LoggerClass>(); // Deduplicate by class key
Microsoft.Extensions.Logging.MSBuild (1)
MSBuildLoggerProvider.cs (1)
15private readonly Dictionary<string, MSBuildLogger> _loggers = [];
Microsoft.Extensions.Options (2)
StartupValidatorOptions.cs (2)
14public Dictionary<(Type, string), Action> _validators { get; } = new Dictionary<(Type, string), Action>(); 18public Dictionary<(Type, string), Func<CancellationToken, Task>> _asyncValidators { get; } = new Dictionary<(Type, string), Func<CancellationToken, Task>>();
Microsoft.Extensions.Options.SourceGeneration (22)
Emitter.cs (18)
61var staticValidationAttributesDict = new Dictionary<string, StaticFieldInfo>(); 62var staticValidatorsDict = new Dictionary<string, StaticFieldInfo>(); 102private void GenValidatorType(ValidatorType vt, ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 683ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, 684ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 771ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, 772ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 901ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, 902ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 985ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, 1021private void GenAsyncTransitiveValidation(ValidatedMember vm, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict, string builderVar = "builder") 1063private void GenAsyncEnumerationValidation(ValidatedMember vm, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict, string builderVar = "builder") 1156private void GenMemberValidation(ValidatedMember vm, ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, bool cleanListsBeforeUse) 1179private StaticFieldInfo GetOrAddStaticValidationAttribute(ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, ValidationAttributeInfo attr) 1239private void GenTransitiveValidation(ValidatedMember vm, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 1271private void GenEnumerationValidation(ValidatedMember vm, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 1338private StaticFieldInfo GetOrAddStaticValidator(ref Dictionary<string, StaticFieldInfo> staticValidatorsDict, string validatorTypeFQN)
Model\ValidationAttributeInfo.cs (1)
11public Dictionary<string, string> Properties { get; } = new();
OptionsSourceGenContext.cs (1)
26internal Dictionary<string, HashSet<object>?> AttributesToGenerate { get; set; } = new Dictionary<string, HashSet<object>?>();
Parser.cs (2)
34private readonly Dictionary<ITypeSymbol, (ValidatorType? Sync, ValidatorType? Async)> _synthesizedValidators = new(SymbolEqualityComparer.Default); 41private readonly Dictionary<string, HashSet<string>> _usedSynthesizedValidatorNames = new(StringComparer.Ordinal);
Microsoft.Extensions.ServiceDiscovery.Dns (3)
FallbackDnsResolver.cs (1)
54var lookupMapping = new Dictionary<string, List<AddressResult>>();
Resolver\DnsResolver.cs (2)
220Dictionary<EncodedDomainName, EncodedDomainName> aliasMap = new(); 221Dictionary<EncodedDomainName, List<AddressResult>> aRecordMap = new();
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ConfigurationServiceEndpointResolverTests.cs (1)
232var data = new Dictionary<string, string?>();
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
ServiceDiscoveryDestinationResolver.cs (1)
26Dictionary<string, DestinationConfig> results = new();
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (7)
YarpServiceDiscoveryTests.cs (7)
39var destinationConfigs = new Dictionary<string, DestinationConfig> 70var destinationConfigs = new Dictionary<string, DestinationConfig> 100var destinationConfigs = new Dictionary<string, DestinationConfig> 134var destinationConfigs = new Dictionary<string, DestinationConfig> 218var destinationConfigs = new Dictionary<string, DestinationConfig> 244var destinationConfigs = new Dictionary<string, DestinationConfig> 293var destinationConfigs = new Dictionary<string, DestinationConfig>
Microsoft.Extensions.Telemetry (7)
Latency\Internal\Registry.cs (1)
33var keyOrderBuilder = new Dictionary<string, int>(c);
Logging\ExtendedLoggerFactory.cs (1)
22private readonly Dictionary<string, ExtendedLogger> _loggers = new(StringComparer.Ordinal);
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Telemetry.Abstractions (5)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
parent\parent\parent\eng\MSBuild\parent\parent\src\Shared\Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Logging\LoggerMessageHelperTests.cs (4)
28var d0 = new Dictionary<string, string> 34var d1 = new Dictionary<string, string> 48var d3 = new Dictionary<string, int> 56var d4 = new Dictionary<int, string>
Microsoft.Extensions.Telemetry.Tests (27)
Enrichment\Internals\TestLogEnrichmentTagCollector.cs (1)
10private readonly Dictionary<string, object> _tags = [];
Enrichment\Internals\TestMetricEnrichmentTagCollector.cs (1)
10private readonly Dictionary<string, string> _tags = [];
Http\HttpParserTests.cs (11)
21Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 38Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 57Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 77Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 123Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 155Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 226Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 280Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } }; 347Dictionary<string, DataClassification> parametersToRedact = new() 391Dictionary<string, DataClassification> parametersToRedact = new() 437Dictionary<string, DataClassification> parametersToRedact = new()
Http\HttpRouteFormatterTests.cs (13)
20var parametersToRedact = new Dictionary<string, DataClassification>(); 93Dictionary<string, DataClassification> parametersToRedact = new() 136Dictionary<string, DataClassification> parametersToRedact = new() 157Dictionary<string, DataClassification> parametersToRedact = new() 218Dictionary<string, DataClassification> parametersToRedact = new() 239Dictionary<string, DataClassification> parametersToRedact = new() 257Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 324Dictionary<string, DataClassification> parametersToRedact = new() { { "chatId", FakeTaxonomy.PrivateData } }; 353Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 373Dictionary<string, DataClassification> parametersToRedact = new() { { "filter", FakeTaxonomy.PrivateData } }; 415Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 435Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } }; 451Dictionary<string, DataClassification> parametersToRedact = new() { { "routeId", FakeTaxonomy.PrivateData } };
Latency\Internal\TagCollectionTests.cs (1)
30Dictionary<string, int> namesNumTimes = new Dictionary<string, int>
Microsoft.Extensions.Validation (1)
ValidateContext.cs (1)
13private Dictionary<string, List<ValidationError>>? _validationErrors;
Microsoft.Extensions.VectorData.Abstractions (14)
ProviderServices\CollectionModelBuilder.cs (5)
54protected Dictionary<string, PropertyModel> PropertyMap { get; } = []; 91if (recordType == typeof(Dictionary<string, object?>)) 99Dictionary<string, VectorStoreProperty>? definitionByName = null; 174return new(typeof(Dictionary<string, object?>), static () => new Dictionary<string, object?>(), KeyProperties, DataProperties, VectorProperties, PropertyMap); 496var storageNameMap = new Dictionary<string, PropertyModel>();
ProviderServices\Filter\FilterTranslatorBase.cs (1)
200} methodCall when methodCall.Object == RecordParameter && declaringType == typeof(Dictionary<string, object?>)
ProviderServices\PropertyModel.cs (5)
63public Dictionary<string, object?>? ProviderAnnotations { get; set; } 118/// Configures the property accessors for dynamic mapping using <see cref="Dictionary{TKey, TValue}"/>. 126var dictionary = (Dictionary<string, object?>)record; 137_setter = (record, value) => ((Dictionary<string, object?>)record)[ModelName] = value;
RecordDefinition\VectorStoreProperty.cs (1)
72public Dictionary<string, object?>? ProviderAnnotations { get; set; }
VectorStore.cs (2)
43/// Gets a collection from the vector store, using dynamic mapping; the record type is represented as a <see cref="Dictionary{TKey, TValue}"/>. 48public abstract VectorStoreCollection<object, Dictionary<string, object?>> GetDynamicCollection(string name, VectorStoreCollectionDefinition definition);
Microsoft.Extensions.VectorData.ConformanceTests (54)
DependencyInjectionTests.cs (1)
273public override VectorStoreCollection<object, Dictionary<string, object?>> GetDynamicCollection(string name, VectorStoreCollectionDefinition? definition)
EmbeddingGenerationTests.cs (5)
212var record = new Dictionary<string, object?> 272Dictionary<string, object?>[] records = 402private VectorStoreCollection<object, Dictionary<string, object?>> GetDynamicCollection( 493public virtual VectorStoreCollection<object, Dictionary<string, object?>> GetDynamicCollection( 564public virtual VectorStoreCollection<object, Dictionary<string, object?>> GetDynamicCollection(
FilterTests.cs (3)
486Expression<Func<Dictionary<string, object?>, bool>> dynamicFilter, 570public virtual VectorStoreCollection<object, Dictionary<string, object?>> DynamicCollection { get; protected set; } = null!; 695public virtual void AssertEqualDynamic(FilterRecord x, Dictionary<string, object?> y)
ModelTests\DynamicModelTests.cs (18)
21var expectedRecord = fixture.TestData[0]; 23var received = await fixture.Collection.GetAsync( 39foreach (var record in expectedRecords) 87var expectedRecord = fixture.TestData[0]; 95var receivedRecord = Assert.Single(results); 214var inserted = new Dictionary<string, object?> 225var received = await Collection.GetAsync(expectedKey, new() { IncludeVectors = true }); 232var existingRecord = fixture.TestData[1]; 233var updated = new Dictionary<string, object?> 244var received = await Collection.GetAsync((TKey)existingRecord[KeyPropertyName]!, new() { IncludeVectors = true }); 251Dictionary<string, object?>[] newRecords = 289var recordToRemove = fixture.TestData[2]; 314var expectedRecord = fixture.TestData[0]; 354protected static void AssertEquivalent(Dictionary<string, object?> expected, Dictionary<string, object?>? actual, bool includeVectors, bool compareVectors) 386protected VectorStoreCollection<object, Dictionary<string, object?>> Collection => fixture.Collection; 394protected override VectorStoreCollection<object, Dictionary<string, object?>> GetCollection() 413protected override List<Dictionary<string, object?>> BuildTestData() =>
Support\DynamicVectorStoreCollectionFixture.cs (2)
6public abstract class DynamicVectorStoreCollectionFixture<TKey> : VectorStoreCollectionFixtureBase<object, Dictionary<string, object?>> 21await foreach (var record in Collection.GetAsync(r => true, top: BatchSize))
Support\TestStore.cs (1)
115public virtual VectorStoreCollection<object, Dictionary<string, object?>> CreateDynamicCollection(
Support\VectorStoreFixture.cs (1)
48public virtual VectorStoreCollection<object, Dictionary<string, object?>> CreateDynamicCollection(string name, VectorStoreCollectionDefinition definition)
TypeTests\DataTypeTests.cs (15)
211var dynamicResult = await dynamicCollection.GetAsync(fixture.MainRecordKey) ?? throw new InvalidOperationException($"Record with key '{fixture.MainRecordKey}' was not found."); 238private static readonly MethodInfo _dynamicDictionaryIndexer = typeof(Dictionary<string, object?>).GetMethod("get_Item")!; 283VectorStoreCollection<object, Dictionary<string, object?>> dynamicCollection, 289var mainRecord = GenerateEmptyRecord(); 294var otherRecord = GenerateEmptyRecord(); 299List<Dictionary<string, object?>> testData = [mainRecord, otherRecord]; 304var nullRecord = GenerateEmptyRecord(); 314Dictionary<string, object?> GenerateEmptyRecord() 316var record = new Dictionary<string, object?>(); 383VectorStoreCollection<object, Dictionary<string, object?>> dynamicCollection, 390var lambdaParameter = Expression.Parameter(typeof(Dictionary<string, object>), "r"); 391var filter = Expression.Lambda<Func<Dictionary<string, object?>, bool>>( 402var result = (await dynamicCollection.SearchAsync(fixture.Vector, top: 100, new() { Filter = filter }).SingleAsync()).Record; 410lambdaParameter = Expression.Parameter(typeof(Dictionary<string, object?>), "r"); 411filter = Expression.Lambda<Func<Dictionary<string, object?>, bool>>(
TypeTests\EmbeddingTypeTests.cs (2)
104var dynamicRecord = new Dictionary<string, object?> 115var dynamicResult1 = await dynamicCollection.GetAsync(key, new() { IncludeVectors = true });
TypeTests\KeyTypeTests.cs (6)
105var dynamicRecord = new Dictionary<string, object?> 111var nextDynamicRecord = new Dictionary<string, object?> 125var dynamicResult = await dynamicCollection.GetAsync(key1); 136var firstDynamicRecord = Assert.Single(dynamicResults, r => r[nameof(Record<>.Key)]!.Equals(key1)); 139var secondDynamicRecord = Assert.Single(dynamicResults, r => r[nameof(Record<>.Key)]!.Equals(key2)); 227public virtual VectorStoreCollection<object, Dictionary<string, object?>> CreateDynamicCollection<TKey>(bool withAutoGeneration)
Microsoft.Gen.BuildMetadata.Unit.Tests (3)
GeneratorTests.cs (3)
131public TestAnalyzerConfigOptionsProvider(Dictionary<string, string?> globalOptions) 145private readonly Dictionary<string, string?> _options; 147public TestAnalyzerConfigOptions(Dictionary<string, string?> options)
Microsoft.Gen.ComplianceReports (7)
Parser.cs (7)
48Dictionary<string, ClassifiedItem>? classifiedMembers = null; 103private Dictionary<string, ClassifiedItem>? GetClassifiedMembers(RecordDeclarationSyntax recordSyntax, 104Dictionary<string, ClassifiedItem>? classifiedMembers, 140private Dictionary<string, ClassifiedItem>? GetClassifiedMembers(ITypeSymbol typeSymbol, Dictionary<string, ClassifiedItem>? classifiedMembers) 157Dictionary<string, ClassifiedItem>? ClassifyMember(Dictionary<string, ClassifiedItem>? classifiedMembers, ISymbol member, ITypeSymbol memberType)
Microsoft.Gen.ComplianceReports.Unit.Tests (7)
GeneratorTests.cs (7)
55Dictionary<string, string>? options = useExplicitReportPath 120var options = new Dictionary<string, string> 147var options = new Dictionary<string, string> 163private static async Task<IReadOnlyList<Diagnostic>> RunGenerator(string code, string? outputFile = null, Dictionary<string, string>? options = null) 185private readonly Dictionary<string, string> _options; 187public Options(Dictionary<string, string>? analyzerOptions) 198private sealed class OptionsProvider(Dictionary<string, string>? analyzerOptions) : AnalyzerConfigOptionsProvider
Microsoft.Gen.ContextualOptions (3)
ContextReceiver.cs (1)
37public bool TryGetTypeDeclarations(Compilation compilation, out Dictionary<INamedTypeSymbol, List<TypeDeclarationSyntax>>? typeDeclarations)
ContextualOptionsGenerator.cs (1)
37var typeDeclarations = nodes.OfType<TypeDeclarationSyntax>()
Parser.cs (1)
16public static IEnumerable<OptionsContextType> GetContextualOptionTypes(Dictionary<INamedTypeSymbol, List<TypeDeclarationSyntax>> types) =>
Microsoft.Gen.ContextualOptions.Unit.Tests (3)
SyntaxContextReceiverTests.cs (3)
31Assert.True(sut.TryGetTypeDeclarations(comp, out var typeDeclarations)); 68Assert.True(sut.TryGetTypeDeclarations(comp, out var typeDeclarations)); 87Assert.True(sut.TryGetTypeDeclarations(comp, out var typeDeclarations));
Microsoft.Gen.Logging (4)
Emitter.cs (1)
22private readonly Dictionary<string, string> _classificationMap = [];
Parser.cs (2)
57var parameterSymbols = new Dictionary<LoggingMethodParameter, IParameterSymbol>(); 538private void CheckTagNamesAreUnique(LoggingMethod lm, Dictionary<LoggingMethodParameter, IParameterSymbol> parameterSymbols)
Parser.LogProperties.cs (1)
104var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>();
Microsoft.Gen.Logging.Generated.Tests (41)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Logging.g.cs (1)
3294public static partial void M10(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Collections.Generic.IEnumerable<int> p1, int[] p2, global::System.Collections.Generic.Dictionary<string, int> p3)
LogPropertiesRedactionTests.cs (6)
33var expectedState = new Dictionary<string, string?> 59var expectedState = new Dictionary<string, string?> 82var expectedState = new Dictionary<string, string?> 113var expectedState = new Dictionary<string, string?> 142var expectedState = new Dictionary<string, string?> 168var expectedState = new Dictionary<string, string?>
LogPropertiesTests.cs (16)
45var ss = _logger.LatestRecord.StructuredState!.ToDictionary(x => x.Key, x => x.Value); 176var ss = collector.LatestRecord.StructuredState!.ToDictionary(x => x.Key, x => x.Value); 231var expectedState = new Dictionary<string, string?> 305var expectedState = new Dictionary<string, string?> 325var expectedState = new Dictionary<string, string?> 345var expectedState = new Dictionary<string, string?> 368var expectedState = new Dictionary<string, string?> 392var expectedState = new Dictionary<string, string?> 422var expectedState = new Dictionary<string, string?> 451var expectedState = new Dictionary<string, string?> 477var expectedState = new Dictionary<string, string?> 504var expectedState = new Dictionary<string, string?> 528var expectedState = new Dictionary<string, string?> 553var expectedState = new Dictionary<string, string?> 579var expectedState = new Dictionary<string, string?> 603var state = _logger.Collector.LatestRecord.StructuredState!
parent\TestClasses\EnumerableTestExtensions.cs (1)
45public static partial void M10(ILogger logger, IEnumerable<int> p1, int[] p2, Dictionary<string, int> p3);
TagProviderTests.cs (15)
37var expectedState = new Dictionary<string, string?> 60var expectedState = new Dictionary<string, string?> 87var expectedState = new Dictionary<string, string?> 110var expectedState = new Dictionary<string, string?> 142var expectedState = new Dictionary<string, string?> 211var expectedState = new Dictionary<string, string?> 230var expectedState = new Dictionary<string, string?> 250var expectedState = new Dictionary<string, string?> 272var expectedState = new Dictionary<string, string?> 293var expectedState = new Dictionary<string, string?> 313var expectedState = new Dictionary<string, string?> 334var expectedState = new Dictionary<string, string?> 361var expectedState = new Dictionary<string, string?> 399var expectedState = new Dictionary<string, string?> 424var expectedState = new Dictionary<string, string?>
TransitiveTests.cs (2)
22var expectedState = new Dictionary<string, string?> 49var expectedState = new Dictionary<string, string?>
Microsoft.Gen.MetadataExtractor (16)
MetricMethod.cs (1)
12public Dictionary<string, string> TagDescriptionDictionary = [];
Parser_2.cs (6)
281private (string metricName, string metricUnit, HashSet<string> tagNames, Dictionary<string, string> dimensionDescriptions) ExtractAttributeParameters( 286var tagDescriptionMap = new Dictionary<string, string>(); 379Dictionary<string, string> tagDescriptionDictionary) 692Dictionary<string, string> tagDescriptionDictionary, 870Dictionary<string, string> tagDescriptionDictionary, 909Dictionary<string, string> tagDescriptionDictionary,
Parser.cs (7)
48Dictionary<string, ClassifiedItem>? classifiedMembers = null; 103private Dictionary<string, ClassifiedItem>? GetClassifiedMembers(RecordDeclarationSyntax recordSyntax, 104Dictionary<string, ClassifiedItem>? classifiedMembers, 140private Dictionary<string, ClassifiedItem>? GetClassifiedMembers(ITypeSymbol typeSymbol, Dictionary<string, ClassifiedItem>? classifiedMembers) 157Dictionary<string, ClassifiedItem>? ClassifyMember(Dictionary<string, ClassifiedItem>? classifiedMembers, ISymbol member, ITypeSymbol memberType)
ReportedMetricClass.cs (1)
11internal readonly record struct ReportedMetricMethod(string MetricName, string Summary, InstrumentKind Kind, HashSet<string> Dimensions, Dictionary<string, string> DimensionsDescriptions);
StrongTypeAttributeParameters.cs (1)
14public Dictionary<string, string> TagDescriptionDictionary = [];
Microsoft.Gen.MetadataExtractor.Unit.Tests (8)
GeneratorTests.cs (8)
72Dictionary<string, string>? options = useExplicitReportPath 124var options = new Dictionary<string, string> 145var options = new Dictionary<string, string> 175var options = new Dictionary<string, string> 200Dictionary<string, string>? analyzerOptions = null, 235private readonly Dictionary<string, string> _options; 237public Options(Dictionary<string, string>? analyzerOptions) 252private sealed class OptionsProvider(Dictionary<string, string>? analyzerOptions) : AnalyzerConfigOptionsProvider
Microsoft.Gen.Metrics (10)
Emitter.cs (1)
23Dictionary<string, List<MetricType>> metricClassesDict = [];
MetricFactoryEmitter.cs (1)
19Dictionary<string, List<MetricType>> metricClassesDict = [];
MetricMethod.cs (1)
12public Dictionary<string, string> TagDescriptionDictionary = [];
Parser.cs (6)
281private (string metricName, string metricUnit, HashSet<string> tagNames, Dictionary<string, string> dimensionDescriptions) ExtractAttributeParameters( 286var tagDescriptionMap = new Dictionary<string, string>(); 379Dictionary<string, string> tagDescriptionDictionary) 692Dictionary<string, string> tagDescriptionDictionary, 870Dictionary<string, string> tagDescriptionDictionary, 909Dictionary<string, string> tagDescriptionDictionary,
StrongTypeAttributeParameters.cs (1)
14public Dictionary<string, string> TagDescriptionDictionary = [];
Microsoft.Gen.MetricsReports (9)
MetricMethod.cs (1)
12public Dictionary<string, string> TagDescriptionDictionary = [];
Parser.cs (6)
281private (string metricName, string metricUnit, HashSet<string> tagNames, Dictionary<string, string> dimensionDescriptions) ExtractAttributeParameters( 286var tagDescriptionMap = new Dictionary<string, string>(); 379Dictionary<string, string> tagDescriptionDictionary) 692Dictionary<string, string> tagDescriptionDictionary, 870Dictionary<string, string> tagDescriptionDictionary, 909Dictionary<string, string> tagDescriptionDictionary,
ReportedMetricClass.cs (1)
11internal readonly record struct ReportedMetricMethod(string MetricName, string Summary, InstrumentKind Kind, HashSet<string> Dimensions, Dictionary<string, string> DimensionsDescriptions);
StrongTypeAttributeParameters.cs (1)
14public Dictionary<string, string> TagDescriptionDictionary = [];
Microsoft.Gen.MetricsReports.Unit.Tests (8)
GeneratorTests.cs (8)
37Dictionary<string, string>? options = useExplicitReportPath 85var options = new Dictionary<string, string> 101var options = new Dictionary<string, string> 128var options = new Dictionary<string, string> 146Dictionary<string, string>? analyzerOptions = null, 175private readonly Dictionary<string, string> _options; 177public Options(Dictionary<string, string>? analyzerOptions) 188private sealed class OptionsProvider(Dictionary<string, string>? analyzerOptions) : AnalyzerConfigOptionsProvider
Microsoft.Interop.ComInterfaceGenerator (6)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
53var methodsOfInterest = new Dictionary<ISymbol, ImmutableArray<Func<IInvocationOperation, (ITypeSymbol, Location)?>>>(SymbolEqualityComparer.Default);
ComInterfaceContext.cs (2)
32Dictionary<string, ComInterfaceInfo> nameToInterfaceInfoMap = new(); 38Dictionary<string, DiagnosticOr<ComInterfaceContext>> nameToContextCache = new();
ComInterfaceGenerator.cs (1)
73Dictionary<ComMethodInfo, IMethodSymbol> methodSymbols = new();
ComMethodContext.cs (2)
122var ifaceToDeclaredMethodsMap = ifaceAndDeclaredMethods.ToDictionary(static pair => pair.Item1, static pair => pair.Item2); 123var allMethodsCache = new Dictionary<ComInterfaceContext, ImmutableArray<Builder>>();
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
32Dictionary<(INamedTypeSymbol marshallerType, ITypeSymbol managedType, bool isLinearCollectionMarshaller), HashSet<string>> uniqueMarshallersToFix = new(); 55Dictionary<INamedTypeSymbol, INamedTypeSymbol> partiallyUpdatedSymbols = new(SymbolEqualityComparer.Default);
Microsoft.Interop.SourceGeneration (2)
ManualTypeMarshallingHelper.cs (1)
165Dictionary<MarshalMode, CustomTypeMarshallerData> modes = new();
Marshalling\MarshallerHelpers.cs (1)
124Dictionary<U, int> elementIndexToEdgeMapNodeId = new(elements.Count);
Microsoft.JSInterop (4)
Infrastructure\DotNetDispatcher.cs (4)
399static Dictionary<string, (MethodInfo, Type[])> ScanTypeForCallableMethods([DynamicallyAccessedMembers(JSInvokable)] Type type) 401var result = new Dictionary<string, (MethodInfo, Type[])>(StringComparer.Ordinal); 434private static Dictionary<string, (MethodInfo, Type[])> ScanAssemblyForCallableMethods(AssemblyKey assemblyKey) 438var result = new Dictionary<string, (MethodInfo, Type[])>(StringComparer.Ordinal);
Microsoft.Maui (25)
Animations\Lerp.cs (1)
9 public static readonly Dictionary<Type, Lerp> Lerps = new Dictionary<Type, Lerp>()
CommandMapper.cs (1)
9 readonly Dictionary<string, Command> _mapper = new(StringComparer.Ordinal);
Extensions\EnumerableExtensions.cs (1)
39 var result = new Dictionary<TKey, List<TSource>>();
Fonts\FontRegistrar.cs (3)
13 readonly Dictionary<string, (string Filename, string? Alias, Assembly Assembly)> _embeddedFonts = new(StringComparer.Ordinal); 14 readonly Dictionary<string, (string Filename, string? Alias)> _nativeFonts = new(StringComparer.Ordinal); 15 readonly Dictionary<string, string?> _fontLookupCache = new(StringComparer.Ordinal);
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (2)
30 public static Dictionary<string, string> GetKeyValuePairs(string? url) 32 var result = new Dictionary<string, string>();
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (3)
15 private readonly Dictionary<Type, Type> _concreteTypeMapping = new(); 16 private readonly Dictionary<Type, Type> _interfaceTypeMapping = new(); 47 private static Type? FindImageSourceServiceMapping(Type type, Dictionary<Type, Type> mapping)
Hosting\Internal\MauiServiceCollection.cs (1)
12 readonly Dictionary<Type, ServiceDescriptor> _descriptorDictionary = new Dictionary<Type, ServiceDescriptor>();
HotReload\HotReloadHelper.cs (3)
117 static Dictionary<string, Type> replacedViews = new(StringComparer.Ordinal); 118 static Dictionary<IHotReloadableView, object[]> currentViews = new Dictionary<IHotReloadableView, object[]>(); 119 static Dictionary<string, List<KeyValuePair<Type, Type>>> replacedHandlers = new(StringComparer.Ordinal);
Layouts\GridLayoutManager.cs (1)
83 readonly Dictionary<SpanKey, Span> _spans = new();
LifecycleEvents\LifecycleEventService.cs (1)
9 readonly Dictionary<string, List<Delegate>> _mapper = new(StringComparer.Ordinal);
PropertyMapper.cs (6)
20 protected readonly Dictionary<string, Action<IElementHandler, IElement>> _mapper = new(StringComparer.Ordinal); 25 Dictionary<string, Action<IElementHandler, IElement>?>? _cachedMappers; 29 Dictionary<string, Action<IElementHandler, IElement>?> CachedMappers => _cachedMappers ?? SnapshotMappers().CachedMappers; 59 var cachedMappers = CachedMappers; 177 private (List<string> UpdatePropertiesKeys, List<Action<IElementHandler, IElement>> UpdatePropertiesMappers, Dictionary<string, Action<IElementHandler, IElement>?> CachedMappers) SnapshotMappers() 186 var cachedMappers = new Dictionary<string, Action<IElementHandler, IElement>?>(cacheSize);
VisualDiagnostics\VisualDiagnosticsOverlay.Standard.cs (1)
7 readonly Dictionary<IScrollView, object> _scrollViews = new();
WeakEventManager.cs (1)
13 readonly Dictionary<string, List<Subscription>> _eventHandlers = new(StringComparer.Ordinal);
Microsoft.Maui.Controls (59)
AnimationExtensions.cs (2)
48 static readonly Dictionary<AnimatableKey, Info> s_animations; 49 static readonly Dictionary<AnimatableKey, int> s_kinetics;
Application\Application.cs (1)
418 readonly Dictionary<string, WeakReference<Window>> _requestedWindows = new(StringComparer.Ordinal);
AppLinkEntry.cs (1)
10 readonly Dictionary<string, string> keyValues;
BindableObject.cs (4)
41 internal Dictionary<TriggerBase, SetterSpecificity> _triggerSpecificity = new Dictionary<TriggerBase, SetterSpecificity>(); 42 readonly Dictionary<BindableProperty, BindablePropertyContext> _properties = new Dictionary<BindableProperty, BindablePropertyContext>(4); 179 Dictionary<BindableProperty, BindablePropertyContext>.Enumerator _propertiesEnumerator; 220 Dictionary<BindableProperty, BindablePropertyContext> properties = _properties;
BindableProperty.cs (3)
43 internal static readonly Dictionary<Type, TypeConverter> KnownTypeConverters = new Dictionary<Type, TypeConverter> 51 internal static readonly Dictionary<Type, IValueConverter> KnownIValueConverters = new Dictionary<Type, IValueConverter> 58 internal static readonly Dictionary<Type, Type[]> SimpleConvertTypes = new Dictionary<Type, Type[]>
DataTemplateSelector.cs (1)
10 Dictionary<Type, DataTemplate> _dataTemplates = new Dictionary<Type, DataTemplate>();
DependencyService.cs (1)
20 static readonly Dictionary<Type, DependencyData> DependencyImplementations = new Dictionary<Type, DependencyData>();
DragAndDrop\DataPackagePropertySet.cs (1)
11 Dictionary<string, object> _propertyBag;
Element\Element.cs (2)
63 Dictionary<BindableProperty, (string, SetterSpecificity)> _dynamicResources; 369 Dictionary<BindableProperty, (string, SetterSpecificity)> DynamicResources => _dynamicResources ?? (_dynamicResources = new Dictionary<BindableProperty, (string, SetterSpecificity)>());
Hosting\Effects\AppHostBuilderExtensions.cs (2)
72 internal Dictionary<Type, Func<PlatformEffect>> RegisteredEffects { get; } = new Dictionary<Type, Func<PlatformEffect>>(); 103 private readonly Dictionary<Type, Func<PlatformEffect>> _registeredEffects;
Internals\NameScope.cs (2)
17 readonly Dictionary<string, object> _names = new(StringComparer.Ordinal); 18 readonly Dictionary<object, string> _values = new Dictionary<object, string>();
Layout\AbsoluteLayout.cs (1)
21 readonly Dictionary<IView, AbsoluteLayoutInfo> _viewInfo = new();
Layout\FlexLayout.cs (1)
256 readonly Dictionary<IView, FlexInfo> _viewInfo = new();
Layout\Grid.cs (1)
12 readonly Dictionary<IView, GridInfo> _viewInfo = new();
LegacyLayouts\RelativeLayout.cs (2)
70 var solveTable = new Dictionary<View, bool>(); 242 bool CanSolveView(View view, Dictionary<View, bool> solveTable)
ListProxy.cs (1)
27 Dictionary<int, object> _items;
MessagingCenter.cs (1)
107 readonly Dictionary<Sender, List<Subscription>> _subscriptions =
OrderedDictionary.cs (1)
42 readonly Dictionary<TKey, TValue> _dict;
PlatformConfigurationRegistry.cs (1)
12 readonly Dictionary<Type, object> _platformSpecifics = new Dictionary<Type, object>();
Registrar.cs (13)
45 readonly Dictionary<Type, Dictionary<Type, HandlerType>> _handlers = new Dictionary<Type, Dictionary<Type, HandlerType>>(); 62 if (!_handlers.TryGetValue(tview, out Dictionary<Type, HandlerType> visualRenderers)) 176 if (_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers)) 212 if (_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers)) 239 if (!_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers) || 312 internal static Dictionary<string, EffectType> Effects { get; } = new(StringComparer.Ordinal); 314 internal static Dictionary<string, IList<StylePropertyAttribute>> StyleProperties => LazyStyleProperties.Value; 317 static readonly Lazy<Dictionary<string, IList<StylePropertyAttribute>>> LazyStyleProperties = new Lazy<Dictionary<string, IList<StylePropertyAttribute>>>(LoadStyleSheets); 357 static Dictionary<string, IList<StylePropertyAttribute>> LoadStyleSheets() 359 var properties = new Dictionary<string, IList<StylePropertyAttribute>>(StringComparer.Ordinal);
ResourceDictionary.cs (1)
23 readonly Dictionary<string, object> _innerDictionary = new(StringComparer.Ordinal);
ResourcesExtensions.cs (1)
11 Dictionary<string, object> resources = null;
Routing.cs (2)
13 static Dictionary<string, RouteFactory> s_routes = new(StringComparer.Ordinal); 14 static Dictionary<string, Page> s_implicitPageRoutes = new(StringComparer.Ordinal);
Shell\ShellNavigationQueryParameters.cs (1)
10 Dictionary<string, object> _internal = new Dictionary<string, object>();
Shell\ShellRouteParameters.cs (3)
90 var queryStringParameters = ParseQueryString(query); 101 static Dictionary<string, string> ParseQueryString(string query) 105 Dictionary<string, string> lookupDict = new(StringComparer.Ordinal);
StyleSheets\Style.cs (1)
18 Dictionary<KeyValuePair<string, string>, object> convertedValues = new Dictionary<KeyValuePair<string, string>, object>();
TemplatedItemsList.cs (1)
1231 readonly Dictionary<TemplatedItemsList<TView, TItem>, string> _oldNames = new Dictionary<TemplatedItemsList<TView, TItem>, string>();
VisualElement\VisualElement.cs (1)
503 readonly Dictionary<Size, SizeRequest> _measureCache = new Dictionary<Size, SizeRequest>();
Visuals\VisualTypeConverter.cs (6)
25 static Dictionary<string, IVisual> _visualTypeMappings; 28 var mappings = new Dictionary<string, IVisual>(StringComparer.OrdinalIgnoreCase); 51 void ScanAllAssemblies(Dictionary<string, IVisual> mappings) 73 static void RegisterAllIVisualTypesInAssembly(Assembly assembly, Dictionary<string, IVisual> mappings) 98 static void RegisterFromAttributes(Assembly assembly, Dictionary<string, IVisual> mappings) 116 Dictionary<string, IVisual> mappings)
Microsoft.Maui.Controls.Build.Tasks (21)
ILContext.cs (4)
28 public Dictionary<IValueNode, object> Values { get; private set; } 30 public Dictionary<IElementNode, VariableDefinition> Variables { get; private set; } 32 public Dictionary<INode, Tuple<VariableDefinition, IList<string>>> Scopes { get; private set; } 34 public Dictionary<INode, TypeReference> TypeExtensions { get; }
NodeILExtensions.cs (1)
153 var knownCompiledTypeConverters = context.Cache.GetKnownCompiledTypeConverters(module);
PerformanceProvider.cs (2)
21 readonly Dictionary<string, Statistic> _Statistics = new(StringComparer.Ordinal); 23 public Dictionary<string, Statistic> Statistics
SetPropertiesVisitor.cs (4)
764 static IEnumerable<Instruction> DigProperties(IEnumerable<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, Dictionary<TypeReference, VariableDefinition> locs, Func<Instruction> fallback, IXmlLineInfo lineInfo, ModuleDefinition module) 867 var locs = new Dictionary<TypeReference, VariableDefinition>(); 963 var locs = new Dictionary<TypeReference, VariableDefinition>(); 1096 var locs = new Dictionary<TypeReference, VariableDefinition>();
XamlCache.cs (10)
14 readonly Dictionary<ModuleDefinition, IList<XmlnsDefinitionAttribute>> _xmlnsDefinitions = new(); 15 readonly Dictionary<TypeReference, TypeDefinition> _resolvedTypes = new(); 16 readonly Dictionary<(ModuleDefinition module, string fieldRefKey), FieldReference> _fieldReferenceCache = new(); 17 readonly Dictionary<(ModuleDefinition module, string typeKey), TypeReference> _typeReferenceCache = new(); 18 readonly Dictionary<(ModuleDefinition module, string methodRefKey), MethodReference> _methodReferenceCache = new(); 19 readonly Dictionary<(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName)), TypeDefinition> _typeDefinitionCache = new(); 20 readonly Dictionary<VariableDefinition, ICollection<string>> _resourceNamesInUse = new(); 21 Dictionary<TypeReference, Type> _knownCompiledTypeConverters; 23 static TValue GetOrAdd<TKey, TValue>(Dictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TValue> valueFactory) 56 public Dictionary<TypeReference, Type> GetKnownCompiledTypeConverters(ModuleDefinition module) => _knownCompiledTypeConverters ??= new(TypeRefComparer.Default)
Microsoft.Maui.Controls.SourceGen (2)
src\Controls\src\Xaml\XamlNode.cs (2)
27 Dictionary<XmlName, INode> Properties { get; } 168 public Dictionary<XmlName, INode> Properties { get; }
Microsoft.Maui.Controls.Xaml (13)
ApplyPropertiesVisitor.cs (1)
39 Dictionary<INode, object> Values => Context.Values;
CreateValuesVisitor.cs (1)
24 Dictionary<INode, object> Values
ExpandMarkupsVisitor.cs (1)
26 Dictionary<INode, object> Values
FillResourceDictionariesVisitor.cs (1)
19 Dictionary<INode, object> Values => Context.Values;
HydrationContext.cs (2)
15 public Dictionary<INode, object> Values { get; } 16 public Dictionary<IElementNode, Type> Types { get; }
NamescopingVisitor.cs (1)
8 readonly Dictionary<INode, NameScopeRef> _scopes = new Dictionary<INode, NameScopeRef>();
RegisterXNamesVisitor.cs (1)
15 Dictionary<INode, object> Values { get; }
XamlLoader.cs (1)
259 static readonly Dictionary<Type, string> XamlResources = new Dictionary<Type, string>();
XamlNode.cs (2)
27 Dictionary<XmlName, INode> Properties { get; } 168 public Dictionary<XmlName, INode> Properties { get; }
XamlServiceProvider.cs (2)
14 readonly Dictionary<Type, object> services = new Dictionary<Type, object>(); 286 readonly Dictionary<string, string> namespaces = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.Maui.Essentials (4)
Types\Shared\WebUtils.shared.cs (2)
11 var parameters = new Dictionary<string, string>(StringComparer.Ordinal); 32 static void UnpackParameters(ReadOnlySpan<char> query, Dictionary<string, string> parameters)
VersionTracking\VersionTracking.shared.cs (1)
208 Dictionary<string, List<string>> versionTrail = null!;
WebAuthenticator\WebAuthenticatorResult.shared.cs (1)
76 public Dictionary<string, string> Properties { get; set; } = new(StringComparer.Ordinal);
Microsoft.Maui.Graphics (19)
Text\TextAttributeExtensions.cs (12)
16 this Dictionary<TextAttribute, string> attributes, 30 this Dictionary<TextAttribute, string> attributes, 42 this Dictionary<TextAttribute, string> attributes, 54 this Dictionary<TextAttribute, string> attributes, 66 this Dictionary<TextAttribute, string> attributes, 78 this Dictionary<TextAttribute, string> attributes, 90 this Dictionary<TextAttribute, string> attributes, 102 this Dictionary<TextAttribute, string> attributes, 111 public static void SetSuperscript(this Dictionary<TextAttribute, string> attributes, bool value) 117 public static void SetSubscript(this Dictionary<TextAttribute, string> attributes, bool value) 123 public static void SetForegroundColor(this Dictionary<TextAttribute, string> attributes, string value) 129 public static void SetBackgroundColor(this Dictionary<TextAttribute, string> attributes, string value)
Text\TextAttributesExtensions.cs (6)
24 this Dictionary<TextAttribute, string> attributes, 38 this Dictionary<TextAttribute, string> attributes, 60 this Dictionary<TextAttribute, string> attributes, 87 this Dictionary<TextAttribute, string> attributes, 116 this Dictionary<TextAttribute, string> attributes, 143 this Dictionary<TextAttribute, string> attributes,
Text\TextColors.cs (1)
9 public static Dictionary<string, string> StandardColors = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Maui.Graphics.Text.Markdig (3)
Renderer\HtmlInlineRenderer.cs (1)
44 var values = SimpleCssParser.Parse(span.Style);
Renderer\SimpleCssParser.cs (2)
8 public static Dictionary<string, string> Parse(string css) 13 var values = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.Maui.Resizetizer (10)
ColorTable.cs (6)
13 static readonly Lazy<Dictionary<string, SKColor>> ColorConstants = new Lazy<Dictionary<string, SKColor>>(GetColors); 15 static Dictionary<string, SKColor> GetColors() 17 var colors = new Dictionary<string, SKColor>(StringComparer.OrdinalIgnoreCase); 34 static void FillWithProperties(Dictionary<string, SKColor> dictionary, Type typeWithColors) 43 static Dictionary<string, SKColor> Colors => ColorConstants.Value;
DetectInvalidResourceOutputFilenamesTask.cs (1)
25 var tempInvalidItems = new Dictionary<ITaskItem, string>();
ResizetizeImages.cs (2)
107 var attr = new Dictionary<string, string>(StringComparer.Ordinal); 132 var imagesPairs = new Dictionary<string, ResizeImageInfo>();
TizenSplashUpdater.cs (1)
19 static public Dictionary<(string Resolution, string Orientation), string> splashDpiMap = new Dictionary<(string, string), string>();
Microsoft.ML.AutoML (49)
ColumnInference\ColumnInformationUtil.cs (1)
147var result = new Dictionary<ColumnPurpose, int>();
EstimatorExtensions\EstimatorExtensions.cs (2)
304var pipelineNodeProperty = new Dictionary<string, object>() 329var pipelineNodeProperty = new Dictionary<string, object>()
Experiment\SuggestedTrainer.cs (1)
80var spMap = SweepParams.ToDictionary(sp => sp.Name);
SweepableEstimator\Converter\MultiModelPipelineConverter.cs (2)
19var estimators = jValue["estimator"].GetValue<Dictionary<string, SweepableEstimator>>();
SweepableEstimator\Converter\SweepablePipelineConverter.cs (2)
20var estimators = jValue["estimator"].GetValue<Dictionary<string, SweepableEstimator>>();
SweepableEstimator\MultiModelPipeline.cs (7)
17private readonly Dictionary<string, SweepableEstimator> _estimators; 26internal MultiModelPipeline(Dictionary<string, SweepableEstimator> estimators, Entity schema) 32public Dictionary<string, SweepableEstimator> Estimators { get => _estimators; } 114var estimators = _estimators.ToDictionary(x => x.Key, x => x.Value); 134private Entity CreateSweepableEntityFromEntity(Entity entity, Dictionary<string, SweepableEstimator> lookupTable) 170private Entity VisitAndReplaceSweepableEntityWithStringEntity(Entity e, ref Dictionary<string, SweepableEstimator> estimators) 195private string GetNextId(Dictionary<string, SweepableEstimator> estimators)
SweepableEstimator\SweepablePipeline.cs (8)
21private readonly Dictionary<string, SweepableEstimator> _estimators = new Dictionary<string, SweepableEstimator>(); 72internal SweepablePipeline(Dictionary<string, SweepableEstimator> estimators, Entity schema, string currentSchema = null) 79public Dictionary<string, SweepableEstimator> Estimators { get => _estimators; } 110var pipelineNodes = entity.ValueEntities() 174var estimators = _estimators.ToDictionary(x => x.Key, x => x.Value); 194private Entity CreateSweepableEntityFromEntity(Entity entity, Dictionary<string, SweepableEstimator> lookupTable) 230private Entity VisitAndReplaceSweepableEntityWithStringEntity(Entity e, ref Dictionary<string, SweepableEstimator> estimators) 255private string GetNextId(Dictionary<string, SweepableEstimator> estimators)
Sweepers\ISweeper.cs (2)
80private readonly Dictionary<string, IParameterValue> _parameterValues; 100public ParameterSet(Dictionary<string, IParameterValue> paramValues, int hash)
TrainerExtensions\BinaryTrainerExtensions.cs (1)
49Dictionary<string, object> additionalProperties = null;
TrainerExtensions\RankingTrainerExtensions.cs (1)
54var property = new Dictionary<string, object>();
TrainerExtensions\RecommendationTrainerExtensions.cs (1)
27var property = new Dictionary<string, object>();
TrainerExtensions\TrainerExtensionUtil.cs (4)
144var props = new Dictionary<string, object>(); 163Dictionary<string, object> props = null; 173var boosterProps = boosterParams.ToDictionary(p => p.Name, p => (object)p.ProcessedValue()); 282var enumDict = fi.FieldType.GetEnumValues().Cast<int>()
Tuner\AutoZeroTuner.cs (2)
22private readonly Dictionary<string, string> _pipelineStrings; 24private readonly Dictionary<int, Config> _configLookBook = new Dictionary<int, Config>();
Tuner\CostFrugalTuner.cs (2)
17private readonly Dictionary<int, SearchThread> _searchThreadPool = new Dictionary<int, SearchThread>(); 19private readonly Dictionary<int, int> _trialProposedBy = new Dictionary<int, int>();
Tuner\EciCfoTuner.cs (1)
20private readonly Dictionary<string, ITuner> _tuners;
Tuner\PipelineProposer.cs (12)
22private readonly Dictionary<EstimatorType, double> _estimatorCost; 23private readonly Dictionary<string, double> _learnerInitialCost; 26private Dictionary<string, double> _k1; 29private Dictionary<string, double> _k2; 32private Dictionary<string, double> _e1; 35private Dictionary<string, double> _e2; 38private readonly Dictionary<string, double> _eci; 223public Dictionary<string, double> K1 { get; set; } 225public Dictionary<string, double> K2 { get; set; } 227public Dictionary<string, double> E1 { get; set; } 229public Dictionary<string, double> E2 { get; set; } 231public Dictionary<string, double> Eci { get; set; }
Microsoft.ML.AutoML.SourceGenerator (8)
EstimatorTypeGenerator.cs (2)
28var flags = JsonSerializer.Deserialize<Dictionary<string, bool>>(json);
SearchSpaceGenerator.cs (2)
25var flags = JsonSerializer.Deserialize<Dictionary<string, bool>>(json);
SweepableEstimatorFactoryGenerator.cs (2)
25var flags = JsonSerializer.Deserialize<Dictionary<string, bool>>(json);
SweepableEstimatorGenerator.cs (2)
24var flags = JsonSerializer.Deserialize<Dictionary<string, bool>>(json);
Microsoft.ML.AutoML.Tests (9)
TrainerExtensionsTests.cs (2)
312var props = new Dictionary<string, object>() 343var props = new Dictionary<string, object>()
TunerTests.cs (4)
37var tunerCandidates = new Dictionary<string, ITuner>() 243var tunerCandidates = new Dictionary<string, ITuner>() 298var tunerCandidates = new Dictionary<string, ITuner>() 347var tunerCandidates = new Dictionary<string, ITuner>()
Utils\TaskAgnosticAutoFit.cs (1)
127public Dictionary<string, double> Metrics;
Utils\TaskAgnosticIterationResult.cs (2)
16internal Dictionary<string, double> MetricValues = new Dictionary<string, double>(); 72public static Dictionary<string, double> MetricValuesToDictionary<T>(T metric)
Microsoft.ML.CodeGenerator (1)
CodeGenerator\CSharp\TrainerGeneratorBase.cs (1)
19private Dictionary<string, object> _arguments;
Microsoft.ML.CodeGenerator.Tests (60)
ApprovalTests\ConsoleCodeGeneratorTests.cs (4)
545var hyperParam = new Dictionary<string, object>() 723var hyperParam = new Dictionary<string, object>() 851var mapping = new Dictionary<string, CodeGeneratorSettings.ColumnMapping>() 1019var mapping = new Dictionary<string, CodeGeneratorSettings.ColumnMapping>()
CodeGenTests.cs (5)
28var elementProperties = new Dictionary<string, object>() 48var elementProperties = new Dictionary<string, object>() 68var elementProperties = new Dictionary<string, object>(); 82var elementProperties = new Dictionary<string, object>(); 123var elementProperties = new Dictionary<string, object>()
TrainerGeneratorTests.cs (40)
30var elementProperties = new Dictionary<string, object>() 58var elementProperties = new Dictionary<string, object>() 79var elementProperties = new Dictionary<string, object>() 102var elementProperties = new Dictionary<string, object>(); 119var elementProperties = new Dictionary<string, object>() 139var elementProperties = new Dictionary<string, object>(); 156var elementProperties = new Dictionary<string, object>() 176var elementProperties = new Dictionary<string, object>(); 193var elementProperties = new Dictionary<string, object>() 213var elementProperties = new Dictionary<string, object>(); 230var elementProperties = new Dictionary<string, object>() 250var elementProperties = new Dictionary<string, object>(); 267var elementProperties = new Dictionary<string, object>() 286var elementProperties = new Dictionary<string, object>(); 300var elementProperties = new Dictionary<string, object>() 327var elementProperties = new Dictionary<string, object>(); 344var elementProperties = new Dictionary<string, object>() 364var elementProperties = new Dictionary<string, object>(); 381var elementProperties = new Dictionary<string, object>() 401var elementProperties = new Dictionary<string, object>(); 418var elementProperties = new Dictionary<string, object>() 438var elementProperties = new Dictionary<string, object>(); 455var elementProperties = new Dictionary<string, object>() 475var elementProperties = new Dictionary<string, object>(); 492var elementProperties = new Dictionary<string, object>() 512var elementProperties = new Dictionary<string, object>(); 529var elementProperties = new Dictionary<string, object>() 550var elementProperties = new Dictionary<string, object>(); 567var elementProperties = new Dictionary<string, object>() 588var elementProperties = new Dictionary<string, object>(); 605var elementProperties = new Dictionary<string, object>() 626var elementProperties = new Dictionary<string, object>(); 643var elementProperties = new Dictionary<string, object>() 664var elementProperties = new Dictionary<string, object>(); 680var elementProperties = new Dictionary<string, object>() 701var elementProperties = new Dictionary<string, object>(); 718var elementProperties = new Dictionary<string, object>() 739var elementProperties = new Dictionary<string, object>(); 756var elementProperties = new Dictionary<string, object>() 774var elementProperties = new Dictionary<string, object>();
TransformGeneratorTests.cs (11)
25var elementProperties = new Dictionary<string, object>();//categorical 39var elementProperties = new Dictionary<string, object>();//categorical 53var elementProperties = new Dictionary<string, object>(); 67var elementProperties = new Dictionary<string, object>(); 81var elementProperties = new Dictionary<string, object>();//nume to num feature 2 95var elementProperties = new Dictionary<string, object>(); 109var elementProperties = new Dictionary<string, object>();//numeric feature 123var elementProperties = new Dictionary<string, object>(); 137var elementProperties = new Dictionary<string, object>(); 151var elementProperties = new Dictionary<string, object>(); 165var elementProperties = new Dictionary<string, object>();
Microsoft.ML.Core (30)
CommandLine\CmdParser.cs (3)
468var map = new Dictionary<string, Argument>(); 1336public readonly Dictionary<string, Argument> Map; 1340public ArgumentInfo(Type type, Argument argDef, Argument[] args, Dictionary<string, Argument> map)
ComponentModel\ComponentCatalog.cs (5)
444private readonly Dictionary<LoadableClassInfo.Key, LoadableClassInfo> _classesByKey; 448private readonly Dictionary<Type, bool> _signatures; 451private readonly Dictionary<string, EntryPointInfo> _entryPointMap; 454private readonly Dictionary<string, ComponentInfo> _componentMap; 456private readonly Dictionary<(Type AttributeType, string ContractName), Type> _extensionsMap;
Data\Repository.cs (1)
452private readonly Dictionary<string, ZipArchiveEntry> _entries;
Data\RoleMappedSchema.cs (9)
155private readonly Dictionary<string, IReadOnlyList<DataViewSchema.Column>> _map; 157private RoleMappedSchema(DataViewSchema schema, Dictionary<string, IReadOnlyList<DataViewSchema.Column>> map) 196private RoleMappedSchema(DataViewSchema schema, Dictionary<string, List<DataViewSchema.Column>> map) 201private static void Add(Dictionary<string, List<DataViewSchema.Column>> map, ColumnRole role, DataViewSchema.Column column) 214private static Dictionary<string, List<DataViewSchema.Column>> MapFromNames(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false) 219var map = new Dictionary<string, List<DataViewSchema.Column>>(); 311private static Dictionary<string, IReadOnlyList<DataViewSchema.Column>> Copy(Dictionary<string, List<DataViewSchema.Column>> map) 313var copy = new Dictionary<string, IReadOnlyList<DataViewSchema.Column>>(map.Count);
Data\ServerChannel.cs (1)
29private Dictionary<string, Delegate> _toPublish;
EntryPoints\ModuleArgs.cs (2)
589/// The underlying C# representation is <see cref="System.Collections.Generic.Dictionary{TKey, TValue}"/> 633if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Dictionary<,>)
Environment\HostEnvironmentBase.cs (1)
338protected Dictionary<string, object> Options { get; } = [];
Environment\TelemetryMessage.cs (1)
29public static TelemetryMessage CreateMetric(string metricName, double metricValue, Dictionary<string, string> properties = null)
Prediction\ITree.cs (1)
93Dictionary<string, object> KeyValues { get; }
Utilities\LruCache.cs (1)
18private readonly Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>> _cache;
Utilities\Tree.cs (1)
31private readonly Dictionary<TKey, Tree<TKey, TValue>> _children;
Utilities\Utils.cs (4)
108public static int Size<TKey, TValue>(Dictionary<TKey, TValue> x) 122public static bool TryGetValue<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key, out TValue value) 157public static void Add<TKey, TValue>(ref Dictionary<TKey, TValue> map, TKey key, TValue value) 165public static void Set<TKey, TValue>(ref Dictionary<TKey, TValue> map, TKey key, TValue value)
Microsoft.ML.Core.Tests (5)
UnitTests\ColumnTypes.cs (1)
23var dict = new Dictionary<DataViewType, string>();
UnitTests\TestEntryPoints.cs (4)
3350var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3351var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 3402var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3403var inputMap = new Dictionary<ParameterBinding, VariableBinding>();
Microsoft.ML.CpuMath.UnitTests (37)
UnitTests.cs (37)
31private static Dictionary<string, string> _disableAvxEnvironmentVariables; 32private static Dictionary<string, string> _disableAvxAndSseEnvironmentVariables; 138public static TheoryData<string, string, Dictionary<string, string>> AddData() 142return new TheoryData<string, string, Dictionary<string, string>>() 150return new TheoryData<string, string, Dictionary<string, string>>() 166public static TheoryData<string, string, string, Dictionary<string, string>> AddScaleData() 170return new TheoryData<string, string, string, Dictionary<string, string>>() 180return new TheoryData<string, string, string, Dictionary<string, string>>() 203public static TheoryData<string, string, string, string, Dictionary<string, string>> MatMulData() 207return new TheoryData<string, string, string, string, Dictionary<string, string>>() 216return new TheoryData<string, string, string, string, Dictionary<string, string>>() 236public void MatMulTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables) 271public void MatMulTranTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables) 304public void MatTimesSrcSparseTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables) 342public void AddScalarUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 368public void ScaleTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 394public void ScaleSrcUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 421public void ScaleAddUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 448public void AddScaleUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 475public void AddScaleSUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 504public void AddScaleCopyUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 532public void AddUTest(string mode, string test, Dictionary<string, string> environmentVariables) 565public void AddSUTest(string mode, string test, Dictionary<string, string> environmentVariables) 594public void MulElementWiseUTest(string mode, string test, Dictionary<string, string> environmentVariables) 628public void SumTest(string mode, string test, Dictionary<string, string> environmentVariables) 651public void SumSqUTest(string mode, string test, Dictionary<string, string> environmentVariables) 674public void SumSqDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 699public void SumAbsUTest(string mode, string test, Dictionary<string, string> environmentVariables) 722public void SumAbsDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 747public void MaxAbsUTest(string mode, string test, Dictionary<string, string> environmentVariables) 775public void MaxAbsDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 803public void DotUTest(string mode, string test, Dictionary<string, string> environmentVariables) 833public void DotSUTest(string mode, string test, Dictionary<string, string> environmentVariables) 867public void Dist2Test(string mode, string test, Dictionary<string, string> environmentVariables) 927public void SdcaL1UpdateUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 957public void SdcaL1UpdateSUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 987private void UpdateEnvVars(RemoteInvokeOptions options, Dictionary<string, string> environmentVariables)
Microsoft.ML.Data (176)
Commands\CrossValidationCommand.cs (7)
210var dict = tasks[i].Result.Metrics; 222Dictionary<string, IDataView>[] metricValues = tasks.Select(t => t.Result.Metrics).ToArray(); 312private bool TryGetOverallMetrics(Dictionary<string, IDataView>[] metrics, out List<IDataView> overallList) 319var dict = metrics[i]; 332public readonly Dictionary<string, IDataView> Metrics; 337public FoldResult(Dictionary<string, IDataView> metrics, DataViewSchema scoreSchema, RoleMappedData perInstance, RoleMappedSchema trainSchema) 557var dict = eval.Evaluate(dataEval);
Commands\DataCommand.cs (5)
139protected void SendTelemetryMetricCore(IChannelProvider prov, Dictionary<string, double> averageMetric) 153protected void SendTelemetryMetric(Dictionary<string, IDataView>[] metricValues) 155Dictionary<string, double> averageMetric = new Dictionary<string, double>(); 156foreach (Dictionary<string, IDataView> mValue in metricValues) 196Dictionary<string, double> newAverageMetric = new Dictionary<string, double>();
Commands\EvaluateCommand.cs (2)
101Dictionary<string, IDataView> Evaluate(RoleMappedData data); 245var metrics = evaluator.Evaluate(data);
Commands\TestCommand.cs (2)
122var metrics = evaluator.Evaluate(data); 130Dictionary<string, IDataView>[] metricValues = { metrics };
Commands\TrainTestCommand.cs (2)
212var metrics = evaluator.Evaluate(dataEval); 220Dictionary<string, IDataView>[] metricValues = { metrics };
Commands\TypeInfoCommand.cs (2)
84var dstToSrcMap = new Dictionary<HashSet<InternalDataKind>, HashSet<InternalDataKind>>(comp); 85var srcToDstMap = new Dictionary<InternalDataKind, HashSet<InternalDataKind>>();
Data\Conversion.cs (8)
78private readonly Dictionary<(Type src, Type dst), Delegate> _delegatesStd; 82private readonly Dictionary<(Type src, Type dst), Delegate> _delegatesAll; 85private readonly Dictionary<Type, Delegate> _isNADelegates; 88private readonly Dictionary<Type, Delegate> _hasNADelegates; 91private readonly Dictionary<Type, Delegate> _isDefaultDelegates; 95private readonly Dictionary<Type, Delegate> _hasZeroDelegates; 98private readonly Dictionary<Type, Delegate> _getNADelegates; 101private readonly Dictionary<Type, Delegate> _tryParseDelegates;
Data\DataViewTypeManager.cs (3)
39private static readonly Dictionary<TypeWithAttributes, DataViewType> _rawTypeToDataViewTypeMap = new Dictionary<TypeWithAttributes, DataViewType>(); 44private static readonly Dictionary<DataViewType, TypeWithAttributes> _dataViewTypeToRawTypeMap = new Dictionary<DataViewType, TypeWithAttributes>(); 228/// a key when using <see cref="TypeWithAttributes"/> as the key type in <see cref="Dictionary{TKey, TValue}"/>. Note that the
Data\SchemaDefinition.cs (1)
212internal Dictionary<string, AnnotationInfo> AnnotationInfos { get; }
DataLoadSave\Binary\BinaryLoader.cs (2)
129private volatile Dictionary<string, MetadataTableOfContentsEntry> _metadataMap; 330var map = new Dictionary<string, MetadataTableOfContentsEntry>();
DataLoadSave\Binary\CodecFactory.cs (2)
19private readonly Dictionary<string, GetCodecFromStreamDelegate> _loadNameToCodecCreator; 21private readonly Dictionary<Type, IValueCodec> _simpleCodecTypeMap;
DataLoadSave\Binary\UnsafeTypeOps.cs (1)
28private static readonly Dictionary<Type, object> _type2ops;
DataLoadSave\Database\DatabaseLoader.cs (1)
481var nameToInfoIndex = new Dictionary<string, int>(Infos.Length);
DataLoadSave\Text\TextLoader.cs (2)
757var nameToInfoIndex = new Dictionary<string, int>(Infos.Length); 927var nameToInfoIndex = new Dictionary<string, int>(Infos.Length);
DataLoadSave\Text\TextLoaderParser.cs (3)
693var mapOne = new Dictionary<InternalDataKind, Func<RowSet, ColumnPipe>>(); 694var mapVec = new Dictionary<InternalDataKind, Func<RowSet, ColumnPipe>>(); 714var map = vectorType != null ? mapVec : mapOne;
DataView\ArrayDataViewBuilder.cs (2)
23private readonly Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>> _getSlotNames; 24private readonly Dictionary<string, ValueGetter<VBuffer<ReadOnlyMemory<char>>>> _getKeyValues;
DataView\InternalSchemaDefinition.cs (4)
30public Dictionary<string, AnnotationInfo> Annotations { get; } 40Dictionary<string, AnnotationInfo> metadataInfos) : 49Dictionary<string, AnnotationInfo> metadataInfos) : 54Delegate generator = null, Dictionary<string, AnnotationInfo> metadataInfos = null)
DataView\Transposer.cs (2)
35private readonly Dictionary<string, int> _nameToICol; 753var nameToCol = new Dictionary<string, int>();
Deprecated\Instances\HeaderSchema.cs (7)
71private volatile Dictionary<string, int> _lookup; 102public static FeatureNameCollection Create(int count, Dictionary<int, string> map) 212var dict = new Dictionary<int, string>(); 280var lookup = new Dictionary<string, int>(); 286protected abstract void PopulateLookup(Dictionary<string, int> lookup); 330protected override void PopulateLookup(Dictionary<string, int> lookup) 462protected override void PopulateLookup(Dictionary<string, int> lookup)
EntryPoints\EntryPointNode.cs (19)
72if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Dictionary<,>) 205Contracts.Assert(variableType.IsGenericType && variableType.GetGenericTypeDefinition() == typeof(Dictionary<,>) 265private readonly Dictionary<string, EntryPointVariable> _vars; 298type = typeof(Dictionary<,>).MakeGenericType(typeof(string), type); 418private readonly Dictionary<string, List<ParameterBinding>> _inputBindingMap; 420private readonly Dictionary<ParameterBinding, VariableBinding> _inputMap; 424private readonly Dictionary<string, string> _outputMap; 558Dictionary<string, List<ParameterBinding>> inputBindingMap, 559Dictionary<ParameterBinding, VariableBinding> inputMap, 560Dictionary<string, string> outputMap, 593Dictionary<string, string> inputMap, 594Dictionary<string, string> outputMap, 603var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 604var inputParamBindingMap = new Dictionary<ParameterBinding, VariableBinding>(); 735public void RenameAllVariables(Dictionary<string, string> mapping) 748var toModify = new Dictionary<string, string>(); 844public Dictionary<string, List<ParameterBinding>> InputBindingMap => _inputBindingMap; 845public Dictionary<ParameterBinding, VariableBinding> InputMap => _inputMap; 846public Dictionary<string, string> OutputMap => _outputMap;
EntryPoints\InputBuilder.cs (5)
217public JObject GetJsonObject(object instance, Dictionary<string, List<ParameterBinding>> inputBindingMap, Dictionary<ParameterBinding, VariableBinding> inputMap) 338else if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Dictionary<,>) && 593var dict = new Dictionary<string, T>(); 729public JObject GetJsonObject(Dictionary<string, string> outputMap)
Evaluators\AnomalyDetectionEvaluator.cs (5)
129out Action<uint, ReadOnlyMemory<char>, Aggregator> addAgg, out Func<Dictionary<string, IDataView>> consolidate) 204var result = new Dictionary<string, IDataView>(); 601var resultDict = ((IEvaluator)this).Evaluate(roles); 664private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics) 827var metrics = evaluator.Evaluate(data);
Evaluators\BinaryClassifierEvaluator.cs (14)
218out Action<uint, ReadOnlyMemory<char>, Aggregator> addAgg, out Func<Dictionary<string, IDataView>> consolidate) 369var result = new Dictionary<string, IDataView>(); 824var resultDict = ((IEvaluator)this).Evaluate(roles); 872var resultDict = ((IEvaluator)this).Evaluate(roles); 951var resultDict = ((IEvaluator)this).Evaluate(roles); 997var resultDict = ((IEvaluator)this).Evaluate(roles); 1355private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics) 1413private protected override void PrintAdditionalMetricsCore(IChannel ch, Dictionary<string, IDataView>[] metrics) 1449private bool TryGetPrMetrics(Dictionary<string, IDataView>[] metrics, out IDataView pr) 1456var dict = metrics[i]; 1516var metrics = evaluator.Evaluate(data); 1546private static IDataView ExtractWarnings(IHost host, Dictionary<string, IDataView> metrics) 1559private static IDataView ExtractOverallMetrics(IHost host, Dictionary<string, IDataView> metrics, IMamlEvaluator evaluator) 1574private static IDataView ExtractConfusionMatrix(IHost host, Dictionary<string, IDataView> metrics)
Evaluators\ClusteringEvaluator.cs (4)
81var resultDict = ((IEvaluator)this).Evaluate(rolesMappedData); 160out Action<uint, ReadOnlyMemory<char>, Aggregator> addAgg, out Func<Dictionary<string, IDataView>> consolidate) 214var result = new Dictionary<string, IDataView> 872var metrics = evaluator.Evaluate(data);
Evaluators\EvaluatorBase.cs (7)
31Dictionary<string, IDataView> IEvaluator.Evaluate(RoleMappedData data) 38var dict = ProcessData(data.Data, data.Schema, activeCols, agg, dictionaries); 130private Dictionary<string, IDataView> ProcessData(IDataView data, RoleMappedSchema schema, 178Func<Dictionary<string, IDataView>> consolidate; 203out Action<uint, ReadOnlyMemory<char>, TAgg> addAgg, out Func<Dictionary<string, IDataView>> consolidate); 304public void GetWarnings(Dictionary<string, IDataView> dict, IHostEnvironment env) 398private readonly Dictionary<TStrat, TAgg> _dict;
Evaluators\EvaluatorUtils.cs (14)
30private static volatile Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> _knownEvaluatorFactories; 32public static Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> Instance 36Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> result = _knownEvaluatorFactories; 39var tmp = new Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> 68var map = DefaultEvaluatorTable.Instance; 92var map = DefaultEvaluatorTable.Instance; 466var slotNames = new Dictionary<string, int>(); 554int[] indices, Dictionary<ReadOnlyMemory<char>, int> reconciledKeyNames) 611var keyNames = new Dictionary<ReadOnlyMemory<char>, int>(); 679var keyNames = new Dictionary<ReadOnlyMemory<char>, int>(); 813var vectorSizes = new Dictionary<string, int>(); 814var firstDvSlotNames = new Dictionary<string, VBuffer<ReadOnlyMemory<char>>>(); 817var firstDvKeyNoNamesColumns = new Dictionary<string, ulong>(); 1731public static void PrintWarnings(IChannel ch, Dictionary<string, IDataView> metrics)
Evaluators\MamlEvaluator.cs (7)
27void PrintFoldResults(IChannel ch, Dictionary<string, IDataView> metrics); 41void PrintAdditionalMetrics(IChannel ch, params Dictionary<string, IDataView>[] metrics); 107Dictionary<string, IDataView> IEvaluator.Evaluate(RoleMappedData data) 155void IMamlEvaluator.PrintFoldResults(IChannel ch, Dictionary<string, IDataView> metrics) 167private protected virtual void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics) 202void IMamlEvaluator.PrintAdditionalMetrics(IChannel ch, params Dictionary<string, IDataView>[] metrics) 214private protected virtual void PrintAdditionalMetricsCore(IChannel ch, Dictionary<string, IDataView>[] metrics)
Evaluators\MulticlassClassificationEvaluator.cs (5)
141out Action<uint, ReadOnlyMemory<char>, Aggregator> addAgg, out Func<Dictionary<string, IDataView>> consolidate) 246var result = new Dictionary<string, IDataView> 562var resultDict = ((IEvaluator)this).Evaluate(roles); 919private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics) 1101var metrics = evaluator.Evaluate(data);
Evaluators\MultiOutputRegressionEvaluator.cs (4)
96out Action<uint, ReadOnlyMemory<char>, Aggregator> addAgg, out Func<Dictionary<string, IDataView>> consolidate) 160var result = new Dictionary<string, IDataView>(); 662private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics) 787var metrics = evaluator.Evaluate(data);
Evaluators\QuantileRegressionEvaluator.cs (2)
488private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics) 572var metrics = evaluator.Evaluate(data);
Evaluators\RankingEvaluator.cs (6)
159out Action<uint, ReadOnlyMemory<char>, Aggregator> addAgg, out Func<Dictionary<string, IDataView>> consolidate) 238var result = new Dictionary<string, IDataView>(); 264var resultDict = ((IEvaluator)this).Evaluate(roles); 900private protected override void PrintAdditionalMetricsCore(IChannel ch, Dictionary<string, IDataView>[] metrics) 918private bool TryGetGroupSummaryMetrics(Dictionary<string, IDataView>[] metrics, out IDataView gs) 1098var metrics = evaluator.Evaluate(data);
Evaluators\RegressionEvaluator.cs (2)
183var resultDict = ((IEvaluator)this).Evaluate(roles); 399var metrics = evaluator.Evaluate(data);
Evaluators\RegressionEvaluatorBase.cs (2)
51out Action<uint, ReadOnlyMemory<char>, TAgg> addAgg, out Func<Dictionary<string, IDataView>> consolidate) 108var result = new Dictionary<string, IDataView>();
Model\Pfa\BoundPfaContext.cs (1)
36private readonly Dictionary<string, string> _nameToVarName;
Prediction\CalibratorCatalog.cs (1)
124var outColumns = inputSchema.ToDictionary(x => x.Name);
Training\TrainerEstimatorBase.cs (1)
85var outColumns = inputSchema.ToDictionary(x => x.Name);
Transforms\ColumnBindingsBase.cs (1)
256private readonly Dictionary<string, int> _nameToInfoIndex;
Transforms\ColumnConcatenatingEstimator.cs (1)
148var result = inputSchema.ToDictionary(x => x.Name);
Transforms\ColumnCopying.cs (1)
76var resultDic = inputSchema.ToDictionary(x => x.Name);
Transforms\ColumnSelecting.cs (1)
566var columnDict = new Dictionary<string, List<int>>();
Transforms\FeatureContributionCalculationTransformer.cs (1)
349var result = inputSchema.ToDictionary(x => x.Name);
Transforms\Hashing.cs (1)
1956var result = inputSchema.ToDictionary(x => x.Name);
Transforms\InvertHashUtils.cs (1)
153private readonly Dictionary<int, HashSet<Pair>> _slotToValueSet;
Transforms\KeyToValue.cs (1)
637var result = inputSchema.ToDictionary(x => x.Name);
Transforms\KeyToVector.cs (1)
821var result = inputSchema.ToDictionary(x => x.Name);
Transforms\NAFilter.cs (1)
77private readonly Dictionary<int, int> _srcIndexToInfoIndex;
Transforms\Normalizer.cs (1)
347var result = inputSchema.ToDictionary(x => x.Name);
Transforms\OneToOneTransformerBase.cs (1)
93protected readonly Dictionary<int, int> ColMapNewToOld;
Transforms\TypeConverting.cs (1)
625var result = inputSchema.ToDictionary(x => x.Name);
Transforms\ValueMapping.cs (5)
93var resultDic = inputSchema.ToDictionary(x => x.Name); 319Dictionary<TValue, uint> keyTypeValueMapping = new Dictionary<TValue, uint>(); 837private readonly Dictionary<TKey, TValue> _mapping; 840private Dictionary<TKey, TValue> CreateDictionary() 843return new Dictionary<ReadOnlyMemory<char>, TValue>(new ReadOnlyMemoryUtils.ReadonlyMemoryCharComparer()) as Dictionary<TKey, TValue>;
Transforms\ValueToKeyMappingEstimator.cs (1)
181var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.DataView (2)
DataViewSchema.cs (2)
22private readonly Dictionary<string, int> _nameMap; 431var nameMap = new Dictionary<string, int>();
Microsoft.ML.Ensemble (1)
Selector\SubModelSelector\BaseSubModelSelector.cs (1)
93var metricsDict = evaluator.Evaluate(scoredTestData);
Microsoft.ML.EntryPoints (23)
CrossValidationMacro.cs (7)
179var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 180var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 185var outputMap = new Dictionary<string, string>(); 208var mapping = new Dictionary<string, string>(); 318var combineInputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 319var combineInputMap = new Dictionary<ParameterBinding, VariableBinding>(); 337var combineOutputMap = new Dictionary<string, string>();
MacroUtils.cs (6)
124var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 125var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 135var outputMap = new Dictionary<string, string>(); 147var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 148var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 158var outputMap = new Dictionary<string, string>();
OneVersusAllMacro.cs (7)
60var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 61var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 66var outputMap = new Dictionary<string, string>(); 78var mapping = new Dictionary<string, string>(); 172var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 173var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 182var outputMap = new Dictionary<string, string>();
TrainTestMacro.cs (3)
159Dictionary<string, List<ParameterBinding>> inputBindingMap; 160Dictionary<ParameterBinding, VariableBinding> inputMap; 162Dictionary<string, string> outputMap;
Microsoft.ML.Fairlearn (10)
Metrics\FairlearnMetricCatalog.cs (9)
85var res = GroupIds.Select((id, i) => 96var groupMetric = res.Select(kv => (kv.Key, _context.BinaryClassification.EvaluateNonCalibrated(kv.Value))) 113public Dictionary<string, double> Overall() 118Dictionary<string, double> metricsDict = new Dictionary<string, double> 187var groupMetric = new Dictionary<object, RegressionMetrics>(); 242public Dictionary<string, double> DifferenceBetweenGroups() 244Dictionary<string, double> diffDict = new Dictionary<string, double>(); 254public Dictionary<string, double> Overall() 259Dictionary<string, double> metricsDict = new Dictionary<string, double>
Metrics\GroupMetric.cs (1)
18Dictionary<string, double> Overall();
Microsoft.ML.Fairlearn.Tests (3)
MetricTest.cs (3)
46Dictionary<string, double> metricOverall = regressionMetric.Overall(); 49Dictionary<string, double> diff = regressionMetric.DifferenceBetweenGroups(); 75var metricOverall = metrics.Overall();
Microsoft.ML.FastTree (20)
Dataset\Dataset.cs (4)
337Dictionary<string, DatasetSkeletonQueryDocData> auxData = _datasetSkeleton.AuxiliaryData; 338Dictionary<string, DatasetSkeletonQueryDocData> newAuxData = new Dictionary<string, DatasetSkeletonQueryDocData>(); 430public Dictionary<string, DatasetSkeletonQueryDocData> AuxiliaryData { get; set; } 806Dictionary<string, bool> auxNames = new Dictionary<string, bool>();
Dataset\DatasetUtils.cs (1)
48Dictionary<uint, int> uvalToOrder = new Dictionary<uint, int>();
FastTree.cs (3)
3301var keyValues = new Dictionary<string, object>(); 3343public TreeNode(Dictionary<string, object> keyValues) 3348public Dictionary<string, object> KeyValues { get; }
GamModelParameters.cs (2)
51private readonly Dictionary<int, int> _inputFeatureToShapeFunctionMap; 721var metricDict = _eval.Evaluate(_dataForEvaluator);
Training\ScoreTracker.cs (3)
144private static readonly Dictionary<int, Dictionary<int, double>> _treeMultiplierMap = new Dictionary<int, Dictionary<int, double>>();
TreeEnsemble\InternalRegressionTree.cs (4)
1168ref int evaluatorCounter, Dictionary<int, int> featureToId) 1174Dictionary<int, int> categoricalSplitNodeToId = new Dictionary<int, int>(); 1242ref int evaluatorCounter, Dictionary<int, int> featureToId, Dictionary<int, int> categoricalSplitNodeToId)
TreeEnsemble\InternalTreeEnsemble.cs (2)
119Dictionary<int, int> featureToID = new Dictionary<int, int>(); //Mapping from feature to ini input id 311internal string ToGainSummary(FeaturesToContentMap fmap, Dictionary<int, int> featureToID, int prefix, bool includeZeroGainFeatures, bool normalize, int startingCommentNumber)
TreeEnsembleFeaturizationEstimator.cs (1)
134var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.GenAI.Core (15)
Extension\ModuleExtension.cs (15)
18var stateDict = model.state_dict(); 28public static Dictionary<string, long> GetSizeForEachDynamicLayerInBytes(this nn.Module model) 37var dict = new Dictionary<string, long>(); 47var subDict = value.GetSizeForEachDynamicLayerInBytes(); 119Dictionary<string, string> deviceMap, 152var childrenDeviceMap = deviceMap.Where(x => x.Key.StartsWith($"{key}.")).ToDictionary(x => x.Key.Substring($"{key}.".Length), x => x.Value); 169public static Dictionary<string, string> InferDeviceMapForEachLayer( 172Dictionary<string, long> deviceSizeMapInByte) 174var layerSizeMap = model.GetSizeForEachDynamicLayerInBytes(); 176var deviceMap = new Dictionary<string, string>(); 180var remainingLayerSizeMap = layerSizeMap.Where(x => !deviceMap.ContainsKey(x.Key)).ToDictionary(x => x.Key, x => x.Value); 211public static Dictionary<string, string> InferDeviceMapForEachLayer( 219var deviceMap = new Dictionary<string, string>(); 254var stateDict = model.state_dict(); 272var stateDict = model.state_dict();
Microsoft.ML.GenAI.LLaMA (3)
LlamaForCausalLM.cs (2)
53var embeddingWeight = model.Embedding.state_dict(); 149var deviceMap = model.InferDeviceMapForEachLayer(
LlamaTokenizerHelper.cs (1)
27private static readonly Dictionary<string, int> _specialTokens = new()
Microsoft.ML.GenAI.Mistral (5)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
171var propertiesSchemas = new Dictionary<string, JsonSchema>();
MistralForCausalLM.cs (1)
99var deviceMap = model.InferDeviceMapForEachLayer(
MistralTokenizerHelper.cs (3)
61Dictionary<string, int>? additionalSpecialTokens = null) 63var specialTokens = new Dictionary<string, int> 94Dictionary<string, int> specialTokens,
Microsoft.ML.GenAI.Phi (3)
Phi2\Phi2ForCausalLM.cs (1)
62var loadedParameters = new Dictionary<string, bool>();
Phi3\Config.cs (1)
129public Dictionary<string, object>? RopeScaling { get; set; }
Phi3\Phi3ForCausalLM.cs (1)
101var deviceMap = model.InferDeviceMapForEachLayer(
Microsoft.ML.GenAI.Phi.Tests (2)
Phi3Tests.cs (2)
105var size = model.GetSizeForEachDynamicLayerInBytes(); 107var sizeInMB = size.ToDictionary(x => x.Key, x => x.Value / 1024 / 1024);
Microsoft.ML.GenAI.Samples (1)
Llama\SFT_Llama_3_2_1B.cs (1)
77var stateDict = pipeline.TypedModel.state_dict();
Microsoft.ML.ImageAnalytics (6)
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);
MLImage.cs (1)
430private static readonly Dictionary<string, SKEncodedImageFormat> _extensionToEncodingFormat = new Dictionary<string, SKEncodedImageFormat>(StringComparer.OrdinalIgnoreCase)
VectorToImageTransform.cs (1)
746var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.IntegrationTests (2)
Common.cs (2)
29var types = new Dictionary<string, Type>(); 30var counts = new Dictionary<string, int>();
Microsoft.ML.InternalCodeAnalyzer (1)
BestFriendAnalyzer.cs (1)
63var assemblyHasAttrMap = new Dictionary<IAssemblySymbol, bool>(SymbolEqualityComparer.Default);
Microsoft.ML.LightGbm (26)
LightGbmArguments.cs (2)
37private protected static Dictionary<string, string> NameMapping = new Dictionary<string, string>() 177internal void UpdateParameters(Dictionary<string, object> res)
LightGbmBinaryTrainer.cs (2)
181internal override Dictionary<string, object> ToDictionary(IHost host) 183var res = base.ToDictionary(host);
LightGbmMulticlassTrainer.cs (2)
122internal override Dictionary<string, object> ToDictionary(IHost host) 124var res = base.ToDictionary(host);
LightGbmRankingTrainer.cs (2)
165internal override Dictionary<string, object> ToDictionary(IHost host) 167var res = base.ToDictionary(host);
LightGbmRegressionTrainer.cs (2)
150internal override Dictionary<string, object> ToDictionary(IHost host) 152var res = base.ToDictionary(host);
LightGbmTrainerBase.cs (8)
54private protected static Dictionary<string, string> NameMapping = new Dictionary<string, string>() 281internal virtual Dictionary<string, object> ToDictionary(IHost host) 284Dictionary<string, object> res = new Dictionary<string, object>(); 330private protected readonly Dictionary<string, object> GbmOptions; 415var modelParameters = Booster.GetParameters(modelText); 497var otherParams = ParallelTraining.AdditionalParams(); 549internal Dictionary<string, object> GetGbmParameters() => GbmOptions; 891Dictionary<int, float> ivPair = new Dictionary<int, float>();
Parallel\IParallel.cs (1)
68Dictionary<string, string> AdditionalParams();
Parallel\SingleTrainer.cs (1)
44Dictionary<string, string> IParallel.AdditionalParams()
WrappedLightGbmBooster.cs (4)
25public Booster(Dictionary<string, object> parameters, Dataset trainset, Dataset validset = null) 201public static Dictionary<string, string> GetParameters(string modelString) 203Dictionary<string, string> parameters = new Dictionary<string, string>(); 233Dictionary<string, string> kvPairs = new Dictionary<string, string>();
WrappedLightGbmInterface.cs (1)
250public static string JoinParameters(Dictionary<string, object> parameters)
WrappedLightGbmTraining.cs (1)
19Dictionary<string, object> parameters, Dataset dtrain, Dataset dvalid = null, int numIteration = 100,
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
893var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
27Dictionary<string, string> packageVersions = new Dictionary<string, string>();
Microsoft.ML.OnnxConverter (1)
OnnxContextImpl.cs (1)
25private readonly Dictionary<string, string> _columnNameMap;
Microsoft.ML.OnnxTransformer (11)
OnnxTransform.cs (4)
247var shapeDictionary = new Dictionary<string, int[]>(); 665public Dictionary<string, DisposableNamedOnnxValue> Outputs; 1052var result = inputSchema.ToDictionary(x => x.Name); 1053var resultDic = inputSchema.ToDictionary(x => x.Name);
OnnxUtils.cs (7)
262var inputTypePool = new Dictionary<string, DataViewType>(); 266var initializerTypePool = new Dictionary<string, DataViewType>(); 270var outputTypePool = new Dictionary<string, DataViewType>(); 272var casterPool = new Dictionary<string, Func<NamedOnnxValue, object>>(); 298Dictionary<string, DataViewType> typePool, 299Dictionary<string, Func<NamedOnnxValue, object>> casterPool) 510private static readonly Dictionary<Type, InternalDataKind> _typeToKindMap =
Microsoft.ML.OnnxTransformerTest (5)
OnnxTransformTests.cs (5)
843var inputDict0 = new Dictionary<int, float> { { 0, 94.17f }, { 1, 17.36f } }; 844var inputDict1 = new Dictionary<int, float> { { 0, 12.28f }, { 1, 75.12f } }; 898var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } }; 983var shapeDictionary = new Dictionary<string, int[]>() { 1068var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } };
Microsoft.ML.PCA (1)
PcaTransformer.cs (1)
818var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Predictor.Tests (1)
CompareBaselines.cs (1)
69var names2 = Directory.EnumerateFiles(dir2, "*.txt")
Microsoft.ML.Recommender (1)
MatrixFactorizationTrainer.cs (1)
579var outColumns = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.ResultProcessor (30)
ResultProcessor.cs (30)
55public Dictionary<string, string> DefaultSettings; 60public Dictionary<string, object> SameHeaderValues; 62public static Dictionary<string, Dictionary<string, string>> MapDefaultSettingToLearner = new Dictionary<string, Dictionary<string, string>>(); 136Dictionary<string, string> temp; 152private Dictionary<string, string> GetDefaultSettings(IHostEnvironment env, string predictorName, string[] extraAssemblies = null) 245public Dictionary<string, string> Settings; 250public Dictionary<string, ResultMetric> Results; 255public Dictionary<string, ResultMetric> PerFoldResults; 527Dictionary<string, string> predictorSettings; 581var runResults = ParseResultLines(fileResults, cmd, out metricValue, null); 583var foldResults = (cmd != null && cmd.IncludePerFoldResults ? GetPerFoldResults(lines) : null); 599var runResults = ParseResultLines(fileResults, cmd, out metricValue, null); 643var foldResults = (cmd != null && cmd.IncludePerFoldResults ? GetPerFoldResults(lines) : null); 788private static Dictionary<string, ResultMetric> ParseResultLines(List<string> fileResults, ResultProcessorArguments cmd, out Double metricValue, string metricName) 792Dictionary<string, ResultMetric> runResults = new Dictionary<string, ResultMetric>(); 888protected static Dictionary<string, ResultMetric> GetPerFoldResults(IList<string> lines) 890Dictionary<string, ResultMetric> perFoldMetrics = new Dictionary<string, ResultMetric>(); 892Dictionary<int, Dictionary<string, float>> foldResults = new Dictionary<int, Dictionary<string, float>>(); 927var metricToFoldValuesDict = new Dictionary<string, Dictionary<int, float>>(); 935Dictionary<int, float> metricDict = null; 961protected static KeyValuePair<int, Dictionary<string, float>> AddFoldResults(IList<string> lines) 968return new KeyValuePair<int, Dictionary<string, float>>(-1, null); 974return new KeyValuePair<int, Dictionary<string, float>>(-1, null); 985Dictionary<string, float> valuesDict = new Dictionary<string, float>(); 1000return new KeyValuePair<int, Dictionary<string, float>>(foldIdx, valuesDict);
Microsoft.ML.Samples (29)
Dynamic\Transforms\Conversion\MapValue.cs (3)
31var timeframeMap = new Dictionary<string, string>(); 40var timeframeKeyMap = new Dictionary<string, uint>(); 48var scoreMap = new Dictionary<int, string>();
Dynamic\Transforms\Conversion\MapValueToArray.cs (1)
35var timeframeMap = new Dictionary<string, int[]>();
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (11)
42Dictionary<string, Object> dic1 = new Dictionary<string, Object>(); 48Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 54Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 60Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 66Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 72Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 78Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 84Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 90Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 99private static Dictionary<string, Object> GetAnomalyDimension() 101Dictionary<string, Object> dim = new Dictionary<string, Object>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (14)
48Dictionary<string, Object> dic1 = new Dictionary<string, Object> 56Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 62Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 68Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 74Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 80Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 86Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 92Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 98Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 104Dictionary<string, Object> dic10 = new Dictionary<string, Object>(); 110Dictionary<string, Object> dic11 = new Dictionary<string, Object>(); 116Dictionary<string, Object> dic12 = new Dictionary<string, Object>(); 125private static Dictionary<string, Object> GetAnomalyDimension() 127Dictionary<string, Object> dim = new Dictionary<string, Object>();
Microsoft.ML.SearchSpace (20)
Converter\ParameterConverter.cs (1)
20var array = JsonSerializer.Deserialize<Dictionary<string, Parameter>>(ref reader, options).ToArray();
Converter\SearchSpaceConverter.cs (2)
18var optionKVPairs = JsonSerializer.Deserialize<Dictionary<string, OptionBase>>(ref reader, options);
Option\NestOption.cs (1)
18private readonly Dictionary<string, OptionBase> _options = new Dictionary<string, OptionBase>();
Parameter.cs (6)
233public int Count => ParameterType == ParameterType.Object ? (_value as Dictionary<string, Parameter>).Count : 1; 306(_value as Dictionary<string, Parameter>).Clear(); 313(_value as Dictionary<string, Parameter>).Add(key, value); 320return (_value as Dictionary<string, Parameter>).TryGetValue(key, out value); 327(_value as Dictionary<string, Parameter>).Add(item.Key, item.Value); 334return (_value as Dictionary<string, Parameter>).Contains(item);
SearchSpace.cs (10)
29private readonly Dictionary<string, OptionBase> _options; 172private Dictionary<string, OptionBase> GetOptionsFromType(Type typeInfo) 174var fieldOptions = GetOptionsFromField(typeInfo); 175var propertyOptions = GetOptionsFromProperty(typeInfo); 182var propertyOptions = GetOptionsFromProperty(typeInfo); 183var fieldOptions = GetOptionsFromField(typeInfo); 193private Dictionary<string, OptionBase> GetOptionsFromField(Type typeInfo) 196var res = new Dictionary<string, OptionBase>(); 240private Dictionary<string, OptionBase> GetOptionsFromProperty(Type typeInfo) 243var res = new Dictionary<string, OptionBase>();
Microsoft.ML.StandardTrainers (4)
FactorizationMachine\FactorizationMachineTrainer.cs (1)
647var outColumns = inputSchema.ToDictionary(x => x.Name);
Standard\LogisticRegression\LogisticRegression.cs (1)
277Dictionary<int, int> weightIndicesInvMap = null;
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.Sweeper (4)
Algorithms\KdoSweeper.cs (2)
356Dictionary<string, int> labelToIndex = new Dictionary<string, int>(); 399Dictionary<string, int> labelToIndex = new Dictionary<string, int>();
ISweeper.cs (2)
109private readonly Dictionary<string, IParameterValue> _parameterValues; 129public ParameterSet(Dictionary<string, IParameterValue> paramValues, int hash)
Microsoft.ML.TensorFlow (3)
TensorflowTransform.cs (3)
679public Dictionary<string, Tensor> Outputs; 1033var result = inputSchema.ToDictionary(x => x.Name); 1034var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Tests (3)
TextLoaderTests.cs (2)
735var irisFirstRow = new Dictionary<string, float>(); 844var irisFirstRow = new Dictionary<string, float>();
TrainerEstimators\TreeEstimators.cs (1)
519var gbmParams = gbmTrainer.GetGbmParameters();
Microsoft.ML.TimeSeries (65)
IidChangePointDetector.cs (1)
273var resultDic = inputSchema.ToDictionary(x => x.Name);
IidSpikeDetector.cs (1)
249var resultDic = inputSchema.ToDictionary(x => x.Name);
PolynomialUtils.cs (1)
285var hash = new Dictionary<Complex, FactorMultiplicity>();
RootCauseAnalyzer.cs (47)
48Tuple<PointTree, PointTree, Dictionary<Dictionary<string, object>, TimeSeriesPoint>> pointInfo = GetPointsInfo(src, dimensionInfo); 51Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping = pointInfo.Item3; 75private DimensionInfo SeparateDimension(Dictionary<string, Object> dimensions, Object aggSymbol) 94private Tuple<PointTree, PointTree, Dictionary<Dictionary<string, object>, TimeSeriesPoint>> GetPointsInfo(RootCauseLocalizationInput src, DimensionInfo dimensionInfo) 99Dictionary<Dictionary<string, object>, TimeSeriesPoint> dimPointMapping = new Dictionary<Dictionary<string, object>, TimeSeriesPoint>(dc); 102Dictionary<string, Object> subDim = GetSubDim(src.AnomalyDimension, dimensionInfo.DetailDims); 125return new Tuple<PointTree, PointTree, Dictionary<Dictionary<string, Object>, TimeSeriesPoint>>(pointTree, anomalyTree, dimPointMapping); 128protected Dictionary<string, Object> GetSubDim(Dictionary<string, Object> dimension, List<string> keyList) 133private void LocalizeRootCausesByDimension(PointTree anomalyTree, PointTree pointTree, Dictionary<string, Object> anomalyDimension, List<string> aggDims) 202Dictionary<string, int> pointDistribution = new Dictionary<string, int>(); 251Dictionary<BestDimension, double> entroyGainRatioMap = new Dictionary<BestDimension, double>(); 290private IEnumerable<BestDimension> SelectOrderedDimensions(Dictionary<string, List<TimeSeriesPoint>> pointChildren, Dictionary<string, List<TimeSeriesPoint>> anomalyChildren, List<string> aggDim) 293Dictionary<BestDimension, double> entropyRatioMap = new Dictionary<BestDimension, double>(); 350private void GetRootCauseDirectionAndScore(Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping, Dictionary<string, Object> anomalyRoot, RootCause dst, double beta, PointTree pointTree, AggregateType aggType, Object aggSymbol) 401private TimeSeriesPoint GetPointByDimension(Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping, Dictionary<string, Object> dimension, PointTree pointTree, AggregateType aggType, Object aggSymbol) 411Dictionary<string, Object> subDim = GetSubDim(dimension, dimensionInfo.DetailDims); 478private IEnumerable<BestDimension> OrderDimensions(SortedDictionary<BestDimension, double> valueMap, Dictionary<BestDimension, double> valueRatioMap, double meanGain, bool isLeavesLevel = true) 535private BestDimension GetBestDimension(BestDimension best, KeyValuePair<BestDimension, double> dimension, Dictionary<BestDimension, Double> valueRatioMap) 637private static Dictionary<string, Object> UpdateDimensionValue(Dictionary<string, Object> dimension, string key, Object value) 639Dictionary<string, Object> newDim = new Dictionary<string, Object>(dimension); 669private double GetDimensionEntropy(Dictionary<string, int> pointDis, Dictionary<string, int> anomalyDis) 683private double GetDimensionIntrinsicValue(Dictionary<string, int> pointDis) 696private int GetTotalNumber(Dictionary<string, int> distribution) 706private void UpdateDistribution(Dictionary<string, int> distribution, List<TimeSeriesPoint> points, string dimKey) 722private static bool ContainsAll(Dictionary<string, Object> bigDictionary, Dictionary<string, Object> smallDictionary) 756internal Dictionary<string, List<TimeSeriesPoint>> ChildrenNodes; 769internal Dictionary<string, int> AnomalyDis; 770internal Dictionary<string, int> PointDis; 804internal class DimensionComparer : EqualityComparer<Dictionary<string, object>> 806public override bool Equals(Dictionary<string, object> x, Dictionary<string, object> y) 838public override int GetHashCode(Dictionary<string, object> obj)
RootCauseLocalizationType.cs (9)
44public Dictionary<string, Object> AnomalyDimension { get; set; } 61public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, AggregateType aggregateType, Object aggregateSymbol) 70public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, Object aggregateSymbol) 135public Dictionary<string, Object> Dimension; 141public RootCauseItem(Dictionary<string, Object> rootCause) 147public RootCauseItem(Dictionary<string, Object> rootCause, List<string> path) 206public Dictionary<string, Object> Dimension { get; set; } 212public TimeSeriesPoint(Dictionary<string, Object> dimension) 218public TimeSeriesPoint(double value, double expectedValue, bool isAnomaly, Dictionary<string, Object> dimension)
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);
STL\InnerStl.cs (1)
281private static readonly Dictionary<int, List<double>> _xValuesPool;
STL\Loess.cs (1)
33private readonly Dictionary<int, LocalRegression> _neighbors;
Microsoft.ML.TimeSeries.Tests (31)
TimeSeriesDirectApi.cs (31)
970Dictionary<string, Object> expectedDim = new Dictionary<string, Object>(); 999Dictionary<string, Object> expectedDim = new Dictionary<string, Object>(); 1047Dictionary<string, object> expectedDim = new Dictionary<string, object> 1087Dictionary<string, Object> dic1 = new Dictionary<string, Object>(); 1093Dictionary<string, Object> dic2 = new Dictionary<string, Object>(); 1099Dictionary<string, Object> dic3 = new Dictionary<string, Object>(); 1105Dictionary<string, Object> dic4 = new Dictionary<string, Object>(); 1111Dictionary<string, Object> dic5 = new Dictionary<string, Object>(); 1117Dictionary<string, Object> dic6 = new Dictionary<string, Object>(); 1123Dictionary<string, Object> dic7 = new Dictionary<string, Object>(); 1129Dictionary<string, Object> dic8 = new Dictionary<string, Object>(); 1135Dictionary<string, Object> dic9 = new Dictionary<string, Object>(); 1141Dictionary<string, Object> dic10 = new Dictionary<string, Object>(); 1147Dictionary<string, Object> dic11 = new Dictionary<string, Object>(); 1153Dictionary<string, Object> dic12 = new Dictionary<string, Object>(); 1162private static Dictionary<string, Object> GetRootCauseAnomalyDimension(object val, object aggSymbol) 1164Dictionary<string, Object> dim = new Dictionary<string, Object>(); 1197Dictionary<string, int> expectedDim = new Dictionary<string, int> 1214Dictionary<string, object> expectedDim = GetRootCauseAnomalyDimension(10, _rootCauseAggSymbolForIntDimValue); 1231Dictionary<string, object> dic1 = new Dictionary<string, object>(); 1237Dictionary<string, object> dic2 = new Dictionary<string, object>(); 1243Dictionary<string, object> dic3 = new Dictionary<string, object>(); 1249Dictionary<string, object> dic4 = new Dictionary<string, object>(); 1255Dictionary<string, object> dic5 = new Dictionary<string, object>(); 1261Dictionary<string, object> dic6 = new Dictionary<string, object>(); 1267Dictionary<string, object> dic7 = new Dictionary<string, object>(); 1273Dictionary<string, object> dic8 = new Dictionary<string, object>(); 1279Dictionary<string, object> dic9 = new Dictionary<string, object>(); 1285Dictionary<string, object> dic10 = new Dictionary<string, object>(); 1291Dictionary<string, object> dic11 = new Dictionary<string, object>(); 1297Dictionary<string, object> dic12 = new Dictionary<string, object>();
Microsoft.ML.Tokenizers (121)
Model\BertTokenizer.cs (14)
28Dictionary<StringSpanOrdinalKey, int> vocab, 29Dictionary<int, string> vocabReverse, 702(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = await LoadVocabAsync(vocabStream, useAsync: true, cancellationToken).ConfigureAwait(false); 743(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = LoadVocabAsync(vocabStream, useAsync: false).GetAwaiter().GetResult(); 757Dictionary<StringSpanOrdinalKey, int> vocab, 758Dictionary<int, string> vocabReverse, 773Dictionary<string, int> tempSpecialTokens = []; 794Dictionary<string, int> tempSpecialTokens = []; 795Dictionary<string, int> notNormalizedSpecialTokens = []; 814private static void AddSpecialToken(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<string, int> specialTokens, string token, bool lowerCase, Dictionary<string, int>? notNormalizedSpecialTokens = null)
Model\BpeOptions.cs (2)
50Dictionary<string, int>? dictionary = JsonSerializer.Deserialize<Dictionary<string, int>>(vocabStream);
Model\BPETokenizer.cs (12)
32private readonly Dictionary<StringSpanOrdinalKey, (int, string)>? _specialTokens; 33private readonly Dictionary<int, string>? _specialTokensReverse; 130(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = ReadModelDataAsync(vocabStream, mergesStream, useAsync: false).GetAwaiter().GetResult(); 152Dictionary<StringSpanOrdinalKey, int> vocab = new Dictionary<StringSpanOrdinalKey, int>(1000); 242(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = ReadModelDataAsync(vocabStream, mergesStream, useAsync: false).GetAwaiter().GetResult(); 278(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = await ReadModelDataAsync(vocabStream, mergesStream, useAsync: true).ConfigureAwait(false); 299Dictionary<StringSpanOrdinalKey, int>? vocab, 1099internal static async ValueTask<(Dictionary<StringSpanOrdinalKey, int>?, Vec<(string, string)>)> ReadModelDataAsync(Stream vocab, Stream? merges, bool useAsync, CancellationToken cancellationToken = default) 1101Dictionary<StringSpanOrdinalKey, int>? dic = useAsync 1113private readonly Dictionary<StringSpanOrdinalKey, int> _vocab; 1118internal Dictionary<Pair<int>, (int, int)> Merges { get; } 1175private readonly Dictionary<char, string> _charToString = new Dictionary<char, string>();
Model\Cache.cs (1)
13private readonly Dictionary<TKey, TValue> _map;
Model\CodeGenTokenizer.cs (8)
28private readonly Dictionary<StringSpanOrdinalKey, (int Id, string Token)> _vocab; 31private readonly Dictionary<StringSpanOrdinalKey, (int, string)>? _specialTokens; 32private readonly Dictionary<int, string>? _specialTokensReverse; 33private readonly Dictionary<StringSpanOrdinalKeyPair, int> _mergeRanks; 1704internal static readonly Dictionary<string, int> CodeGenSpecialTokens = new() 1747private static Dictionary<StringSpanOrdinalKey, (int, string)> GetVocabulary(Stream vocabularyStream) 1767internal static Dictionary<StringSpanOrdinalKeyPair, int> GetMergeRanks(Stream mergeStream) 1769var mergeRanks = new Dictionary<StringSpanOrdinalKeyPair, int>();
Model\EnglishRobertaTokenizer.cs (9)
23private readonly Dictionary<StringSpanOrdinalKey, int> _vocab; 24private Dictionary<string, int>? _vocabOriginal; 179private static Dictionary<StringSpanOrdinalKey, int> GetVocabulary(Stream vocabularyStream) 181Dictionary<StringSpanOrdinalKey, int>? vocab; 234private Dictionary<string, int> GetVocab() 236Dictionary<string, int>? publicVocab = Volatile.Read(ref _vocabOriginal); 239var vocab = new Dictionary<string, int>(); 1107private readonly Dictionary<int, int> _idToIndex; 1108private readonly Dictionary<string, int> _stringSymbolToIndexMapping;
Model\ModelSourceGenerationContext.cs (1)
10[JsonSerializable(typeof(Dictionary<StringSpanOrdinalKey, int>))]
Model\SentencePieceBaseModel.cs (2)
108internal Dictionary<StringSpanOrdinalKey, int>? InternalSpecialTokens { get; } 110internal Dictionary<int, string>? SpecialTokensReverse { get; }
Model\SentencePieceBpeModel.cs (9)
22private readonly Dictionary<StringSpanOrdinalKey, (int Id, float Score, byte Type)> _vocab = new(); 23private readonly Dictionary<int, string> _vocabReverse = new(); 51var vocab = new Dictionary<string, int>(); 154Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols); 437Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols); 705Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols); 974Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols); 1129private Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? Encode(ReadOnlySpan<char> text, BpeSymbol[] symbols) 1153Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = null;
Model\SentencePieceTokenizer.cs (3)
719Dictionary<string, int> mergedSpecialTokens = ParseAddedTokens(root); 761private static Dictionary<string, int> ParseAddedTokens(JsonElement root) 763Dictionary<string, int> result = new Dictionary<string, int>();
Model\TiktokenTokenizer.cs (28)
27private readonly Dictionary<ReadOnlyMemory<byte>, int> _encoder; 28private readonly Dictionary<int, ReadOnlyMemory<byte>> _decoder; 30private readonly Dictionary<StringSpanOrdinalKey, (int Id, string Token)> _vocab; 77Dictionary<ReadOnlyMemory<byte>, int> encoder, 78Dictionary<int, ReadOnlyMemory<byte>> decoder, 79Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, 157internal static async ValueTask<(Dictionary<ReadOnlyMemory<byte>, int>, Dictionary<StringSpanOrdinalKey, (int Id, string Token)>, Dictionary<int, ReadOnlyMemory<byte>>)> LoadTiktokenBpeAsync( 160Dictionary<ReadOnlyMemory<byte>, int> encoder; 161Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab; 162Dictionary<int, ReadOnlyMemory<byte>> decoder; 1071private static readonly Dictionary<string, ModelEncoding> _modelToEncoding = 1175private static Dictionary<string, int> CreateHarmonyEncodingSpecialTokens() => 1201private static (Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) GetTiktokenConfigurations(string modelName) => GetTiktokenConfigurations(GetModelEncoding(modelName), modelName); 1203private static (Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) GetTiktokenConfigurations(ModelEncoding modelEncoding, string? modelName = null) 1291private static readonly ConcurrentDictionary<string, (Dictionary<ReadOnlyMemory<byte>, int> encoder, Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, Dictionary<int, ReadOnlyMemory<byte>> decoder)> _tiktokenCache = new(StringComparer.OrdinalIgnoreCase); 1303(Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) tiktokenConfiguration = GetTiktokenConfigurations(modelEncoding, modelName); 1315out (Dictionary<ReadOnlyMemory<byte>, int> encoder, Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, Dictionary<int, ReadOnlyMemory<byte>> decoder) cache)) 1406(Dictionary<ReadOnlyMemory<byte>, int> encoder, Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, Dictionary<int, ReadOnlyMemory<byte>> decoder) = 1463(Dictionary<string, int> SpecialTokens, Regex Regex, string _, Type? __, string ___) tiktokenConfiguration = GetTiktokenConfigurations(modelName); 1503(Dictionary<string, int> SpecialTokens, Regex Regex, string _, Type? __, string ___) tiktokenConfiguration = GetTiktokenConfigurations(modelName);
Model\Word.cs (1)
100public void MergeAll(Dictionary<Pair<int>, (int, int)> merges, float? dropout, ref PriorityQueue<Merge>? priorityQueue)
Model\WordPieceTokenizer.cs (12)
29private readonly Dictionary<StringSpanOrdinalKey, int> _vocab; 30private readonly Dictionary<int, string> _vocabReverse; 33Dictionary<StringSpanOrdinalKey, int> vocab, 34Dictionary<int, string> vocabReverse, 92internal static async ValueTask<(Dictionary<StringSpanOrdinalKey, int>, Dictionary<int, string>)> LoadVocabAsync(Stream vocabStream, bool useAsync, CancellationToken cancellationToken = default) 99Dictionary<StringSpanOrdinalKey, int> vocab = new Dictionary<StringSpanOrdinalKey, int>(); 100Dictionary<int, string> vocabReverse = new Dictionary<int, string>(); 163(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = LoadVocabAsync(vocabStream, useAsync: false).GetAwaiter().GetResult(); 227(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = await LoadVocabAsync(vocabStream, useAsync: true, cancellationToken);
ModelSourceGenerationContext.DictionaryStringSpanOrdinalKeyInt32.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>>? _DictionaryStringSpanOrdinalKeyInt32; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>> DictionaryStringSpanOrdinalKeyInt32 20get => _DictionaryStringSpanOrdinalKeyInt32 ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>> Create_DictionaryStringSpanOrdinalKeyInt32(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>> jsonTypeInfo)) 27var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>> 33jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>, global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>(options, info);
ModelSourceGenerationContext.GetJsonTypeInfo.g.cs (1)
30if (type == typeof(global::System.Collections.Generic.Dictionary<global::Microsoft.ML.Tokenizers.StringSpanOrdinalKey, int>))
Utils\ByteToUnicodeEncoding.cs (1)
19var byteToUnicodeMapping = Enumerable.Range('!', '~' - '!' + 1)
Utils\LruCache.cs (1)
17private readonly Dictionary<StringSpanOrdinalKey, LinkedListNode<KeyValuePair<string, TValue>>> _cache = new();
Utils\StringSpanOrdinalKey.cs (5)
77private readonly Dictionary<StringSpanOrdinalKey, TValue> _map; 177public static unsafe bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKey, TValue> map, ReadOnlySpan<char> key, out TValue value) 185public static bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKey, TValue> map, string key, out TValue value) => 188public static unsafe bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKeyPair, TValue> map, ReadOnlySpan<char> key1, ReadOnlySpan<char> key2, out TValue value) 197public static bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKeyPair, TValue> map, string key1, string key2, out TValue value) =>
Utils\TokenizerExtensions.cs (2)
24public static TValue GetOrAdd<TKey, TValue>(this Dictionary<TKey, TValue> dic, TKey key, TValue setValue) where TKey : notnull 37Dictionary<TValue, TKey> dictionary = new Dictionary<TValue, TKey>();
Microsoft.ML.Tokenizers.Tests (17)
BertTokenizerTests.cs (1)
26Dictionary<string, int> specialTokens = new() {
BpeTests.cs (9)
26private static readonly Dictionary<string, int> _vocabDataWithWordPrefixAndEndOfWordSuffix = 238Dictionary<string, int> vocab, 316var reverseVocabulary = bpe.Vocabulary.ToDictionary(kvp => kvp.Value, kvp => kvp.Key); 400Dictionary<string, int>? dictionary = JsonSerializer.Deserialize<Dictionary<string, int>>(jsonString); 589private static string WriteToVocabFile(Dictionary<string, int> dic) 592File.WriteAllText(fileName, JsonSerializer.Serialize<Dictionary<string, int>>(dic), Encoding.UTF8); 1073private static Dictionary<string, int>? GetSpecialTokens(JsonElement root) 1077Dictionary<string, int> specialTokens = new Dictionary<string, int>();
CodeGenTests.cs (2)
498var reverseVocab = codeGenTokenizer.Vocabulary.ToDictionary(kvp => kvp.Value, kvp => kvp.Key); 499var reverseSpecialTokens = codeGenTokenizer.SpecialTokens?.ToDictionary(kvp => kvp.Value, kvp => kvp.Key);
EnglishRobertaTests.cs (1)
287var reverseVocab = robertaModel.Vocabulary.ToDictionary(kvp => kvp.Value, kvp => kvp.Key);
LlamaTests.cs (1)
253var reverseVocabulary = bpe.Vocabulary.ToDictionary(kvp => kvp.Value, kvp => kvp.Key);
src\Microsoft.ML.Tokenizers\Utils\ByteToUnicodeEncoding.cs (1)
19var byteToUnicodeMapping = Enumerable.Range('!', '~' - '!' + 1)
TiktokenTests.cs (1)
26private static readonly Dictionary<string, int> _specialTokens = new Dictionary<string, int>
WordPieceTests.cs (1)
184Dictionary<string, int> specialTokens = new Dictionary<string, int>
Microsoft.ML.TorchSharp (63)
AutoFormerV2\Attention.cs (1)
73var attentionOffsets = new Dictionary<Tuple<int, int>, int>();
AutoFormerV2\ObjectDetectionMetrics.cs (10)
99Dictionary<string, List<Tuple<float, float>>> iouDic = new(); 100Dictionary<string, int> groundTruthBoxes = new(); 118private static float AP50(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes, float threshold = 0.5f) 136private static float AP50_95(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 179private static void ImageIoU(List<ObjectLabel> objectLabel, List<ObjectLabel> annotation, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 230private static void GenerateIOUDic(List<List<ObjectLabel>> annotations, List<List<ObjectLabel>> objectLabelList, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes)
AutoFormerV2\ObjectDetectionTrainer.cs (2)
444var outColumns = inputSchema.ToDictionary(x => x.Name); 545var outColumns = inputSchema.ToDictionary(x => x.Name);
NasBert\Modules\Embedding\LearnedPositionalEmbedding.cs (1)
40public override torch.Tensor forward(torch.Tensor input, Dictionary<string, object> param = null)
NasBert\Modules\Embedding\PositionalEmbedding.cs (2)
12internal class PositionalEmbedding : torch.nn.Module<torch.Tensor, Dictionary<string, object>, torch.Tensor> 30public override torch.Tensor forward(torch.Tensor input, Dictionary<string, object> param = null)
NasBert\Modules\Embedding\SinusoidalPositionalEmbedding.cs (1)
66public override torch.Tensor forward(torch.Tensor input, Dictionary<string, object> param = null)
NasBert\Modules\IncrementalState.cs (14)
21public Dictionary<string, torch.Tensor> GetIncrementalState( 23Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, 28Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, 30Dictionary<string, torch.Tensor> value); 51private static Dictionary<string, torch.Tensor> EmptyIncrementalState => new Dictionary<string, torch.Tensor>(); 64public Dictionary<string, torch.Tensor> GetIncrementalState( 66Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, 76Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, 78Dictionary<string, torch.Tensor> value) 83if (incrementalState.TryGetValue(fullKey, out var oldState))
NasBert\Modules\Layers\EncConvLayer.cs (1)
46public override torch.Tensor forward(torch.Tensor x, Dictionary<string, object> param = null)
NasBert\Modules\Layers\FeedForwardLayer.cs (1)
66public override torch.Tensor forward(torch.Tensor x, Dictionary<string, object> param)
NasBert\Modules\Layers\IdentityLayer.cs (1)
20public override torch.Tensor forward(torch.Tensor x, Dictionary<string, object> param = null)
NasBert\Modules\Layers\Layer.cs (2)
12internal class Layer : torch.nn.Module<torch.Tensor, Dictionary<string, object>, torch.Tensor> 22public override torch.Tensor forward(torch.Tensor x, Dictionary<string, object> param = null)
NasBert\Modules\Layers\SelfAttentionLayer.cs (1)
55public override torch.Tensor forward(torch.Tensor x, Dictionary<string, object> param)
NasBert\Modules\MultiHeadAttention.cs (15)
155Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState = null, 176Dictionary<string, torch.Tensor> savedState = null; 313private Dictionary<string, torch.Tensor> GetInputBuffer( 314Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState) 320Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, 321Dictionary<string, torch.Tensor> buffer) 372public Dictionary<string, torch.Tensor> GetIncrementalState(torch.nn.Module module, Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, string key) 377public void SetIncrementalState(torch.nn.Module module, Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, string key, Dictionary<string, torch.Tensor> value)
NasBert\NasBertTrainer.cs (2)
323var outColumns = inputSchema.ToDictionary(x => x.Name); 433var outColumns = inputSchema.ToDictionary(x => x.Name);
Roberta\QATrainer.cs (5)
408var mapping = AlignAnswerPosition(contextToken, contextString); 438private Dictionary<int, int> AlignAnswerPosition(IReadOnlyList<string> tokens, string text) 443var mapping = new Dictionary<int, int>(); 508var outColumns = inputSchema.ToDictionary(x => x.Name); 594var outColumns = inputSchema.ToDictionary(x => x.Name);
Utils\DefaultDictionary.cs (1)
22private readonly Dictionary<TKey, TValue> _dictionary;
Utils\TorchUtils.cs (3)
16public static void DisposeDictionaryWithTensor<TKey, TResult>(Dictionary<TKey, TResult> dictionary) 26else if (kvp.Value is Dictionary<dynamic, dynamic> subDictionary) 32else if (kvp.Key is Dictionary<dynamic, dynamic> subDictionary)
Microsoft.ML.Transforms (65)
CountFeatureSelection.cs (1)
167var result = inputSchema.ToDictionary(x => x.Name);
CustomMappingTransformer.cs (1)
258var result = inputSchema.ToDictionary(x => x.Name);
Dracula\CMCountTable.cs (13)
47public Dictionary<int, float>[][] Tables { get; } 49public CMCountTable(Dictionary<int, float>[][] tables, float[] priorCounts, int depth, int width) 93Tables = new Dictionary<int, float>[LabelCardinality][]; 96Tables[i] = new Dictionary<int, float>[Depth]; 134var dict = Tables[iLabel][iDepth]; 215private readonly Dictionary<int, double>[][] _tables; // for each label and 0<=i<depth we keep a dictionary. 227_tables = new Dictionary<int, double>[LabelCardinality][]; 230_tables[iLabel] = new Dictionary<int, double>[_depth]; 241_tables = new Dictionary<int, double>[LabelCardinality][]; 246_tables[iLabel] = new Dictionary<int, double>[_depth]; 252var oldDict = table.Tables[iLabel][iDepth]; 265var tables = new Dictionary<int, float>[LabelCardinality][]; 268tables[iLabel] = new Dictionary<int, float>[_depth];
Dracula\CountTableTransformer.cs (1)
323var result = inputSchema.ToDictionary(x => x.Name);
Dracula\DictCountTable.cs (12)
44public Dictionary<long, float>[] Tables { get; } 46public DictCountTable(Dictionary<long, float>[] counts, int labelCardinality, float[] priorCounts, 74Tables = new Dictionary<long, float>[LabelCardinality]; 104foreach (var table in Tables) 168private readonly Dictionary<long, double>[] _tables; 174_tables = new Dictionary<long, double>[LabelCardinality]; 184_tables = new Dictionary<long, double>[LabelCardinality]; 202var singleTables = new Dictionary<long, float>[LabelCardinality]; 213var dest = singleTables[iTable]; 214var src = _tables[iTable]; 230private void ProcessGarbage(Dictionary<long, float>[] outputTables, out float[] outputGarbageCounts) 234foreach (var table in _tables)
Expression\KeyWordTable.cs (2)
29private readonly Dictionary<NormStr, KeyWordKind> _mpnstrtidWord; 30private readonly Dictionary<NormStr, TokKind> _mpnstrtidPunc;
Expression\LambdaParser.cs (1)
88private Dictionary<TokKind, string> _mapTidStr;
Expression\MethodGenerator.cs (1)
139private Dictionary<LocalKey, List<LocalBuilder>> _locals;
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);
MissingValueReplacingUtils.cs (1)
376private readonly Dictionary<TType, int> _valueCounts;
MutualInformationFeatureSelection.cs (1)
231var result = inputSchema.ToDictionary(x => x.Name);
PermutationFeatureImportanceExtensions.cs (1)
708var output = new Dictionary<string, TResult>();
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 (7)
137private static volatile Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> _langsDictionary; 164private static Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> LangsDictionary 168Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> result = _langsDictionary; 171var langsDictionary = Enum.GetValues(typeof(StopWordsRemovingEstimator.Language)).Cast<StopWordsRemovingEstimator.Language>() 353private readonly Dictionary<int, int> _colMapNewToOld; 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 (5)
270private static volatile Dictionary<char, char> _combinedDiacriticsMap; 304private static Dictionary<char, char> CombinedDiacriticsMap 308Dictionary<char, char> result = _combinedDiacriticsMap; 311var combinedDiacriticsMap = new Dictionary<char, char>(); 581var result = inputSchema.ToDictionary(x => x.Name);
Text\TokenizingByCharacters.cs (1)
685var result = inputSchema.ToDictionary(x => x.Name);
Text\WordEmbeddingsExtractor.cs (4)
95private static readonly Dictionary<string, WeakReference<Model>> _vocab = new Dictionary<string, WeakReference<Model>>(); 605private static readonly Dictionary<WordEmbeddingEstimator.PretrainedModelKind, string> _modelsMetaData = new Dictionary<WordEmbeddingEstimator.PretrainedModelKind, string>() 619private static readonly Dictionary<WordEmbeddingEstimator.PretrainedModelKind, int> _linesToSkipInModels = new Dictionary<WordEmbeddingEstimator.PretrainedModelKind, int>() 933var result = inputSchema.ToDictionary(x => x.Name);
Text\WordTokenizing.cs (1)
533var result = inputSchema.ToDictionary(x => x.Name);
Microsoft.ML.Vision (4)
DnnRetrainTransform.cs (4)
58private readonly Dictionary<string, string> _idvToTfMapping; 847public Dictionary<string, Tensor> Outputs; 1255var result = inputSchema.ToDictionary(x => x.Name); 1256var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.NET.Build.Containers (21)
AuthHandshakeMessageHandler.cs (5)
98var keyValues = ParseBearerArgs(header.Parameter); 112static bool TryParseBearerAuthInfo(Dictionary<string, string> authValues, [NotNullWhen(true)] out AuthInfo? authInfo) 130static Dictionary<string, string>? ParseBearerArgs(string? bearerHeaderArgs) 136Dictionary<string, string> keyValues = new(); 460Dictionary<string, string?> parameters = new()
Descriptor.cs (1)
63public Dictionary<string, string?>? Annotations { get; init; } = null;
DigestUtils.cs (1)
26private static readonly Dictionary<string, Regex> s_registeredAlgorithms = new(StringComparer.Ordinal)
ImageConfig.cs (6)
16private readonly Dictionary<string, string> _labels; 18private readonly Dictionary<string, string> _environmentVariables; 262private Dictionary<string, string> GetLabels() 264Dictionary<string, string> labels = new(); 279private Dictionary<string, string> GetEnvironmentVariables() 281Dictionary<string, string> envVars = new();
Layer.cs (1)
93var entryAttributes = new Dictionary<string, string>();
ManifestListV2.cs (1)
15public record struct PlatformSpecificOciManifest(string mediaType, long size, string digest, PlatformInformation platform, Dictionary<string, string> annotations);
Registry\Registry.cs (2)
267var ridDict = new Dictionary<string, PlatformSpecificManifest>(); 281var ridDict = new Dictionary<string, PlatformSpecificOciManifest>();
src\sdk\src\Common\VSHostObject.cs (2)
132public Dictionary<string, string>? Metadata { get; } 135public TaskItemDto(string? itemSpec, Dictionary<string, string>? metadata)
Tasks\ComputeDotnetBaseImageAndTag.cs (1)
349var telemetryProperties = new Dictionary<string, string?>
VSHostObject.cs (1)
119private readonly record struct TaskItemDto(string? ItemSpec, Dictionary<string, string>? Metadata);
Microsoft.NET.Build.Extensions.Tasks (10)
AddFacadesToReferences.cs (1)
23Dictionary<string, ITaskItem> facadeDict = new(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (2)
14private Dictionary<string, TConflictItem> _winningItemsByKey = new(); 18private Dictionary<string, List<TConflictItem>> _unresolvedConflictItems = new(StringComparer.Ordinal);
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverride.cs (1)
26public Dictionary<string, OverrideVersion> OverriddenPackages { get; }
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverrideResolver.cs (5)
22private Lazy<Dictionary<string, PackageOverride>?> _packageOverrides; 27_packageOverrides = new Lazy<Dictionary<string, PackageOverride>?>(() => BuildPackageOverrides()); 30public Dictionary<string, PackageOverride>? PackageOverrides => _packageOverrides.Value; 32private Dictionary<string, PackageOverride>? BuildPackageOverrides() 34Dictionary<string, PackageOverride>? result;
src\sdk\src\Tasks\Common\ConflictResolution\PackageRank.cs (1)
8private Dictionary<string, int> packageRanks;
Microsoft.NET.Build.Tasks (160)
_generated\10\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\14\WorkloadSetJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
22if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\18\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info1); 134global::System.Collections.Generic.Dictionary<string, string> __value_Manifests = ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)value).Manifests;
_generated\19\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\22\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
ApplyImplicitVersions.cs (3)
36var implicitVersionTable = GetApplicableImplicitVersionTable(); 65private Dictionary<string, ImplicitPackageReferenceVersion> GetApplicableImplicitVersionTable() 67var result = new Dictionary<string, ImplicitPackageReferenceVersion>();
CreateComHost.cs (1)
30out Dictionary<int, string> typeLibIdMap,
CreateWindowsSdkKnownFrameworkReferences.cs (1)
72var knownFrameworkReferencesByWindowsSdkVersion = new Dictionary<Version, List<(Version minimumNetVersion, TaskItem[] knownFrameworkReferences)>>();
DependencyContextBuilder.cs (14)
24private Dictionary<string, List<ReferenceInfo>> _compileReferences; 25private Dictionary<string, List<ResolvedFile>> _resolvedNuGetFiles; 26private Dictionary<string, SingleProjectInfo> _referenceProjectInfos; 27private Dictionary<string, List<RuntimePackAssetInfo>> _runtimePackAssets; 30private Dictionary<PackageIdentity, string> _filteredPackages; 33private readonly Dictionary<string, DependencyLibrary> _dependencyLibraries; 34private readonly Dictionary<string, List<LibraryDependency>> _libraryDependencies; 45private Dictionary<ReferenceInfo, string> _referenceLibraryNames; 149private Dictionary<ReferenceInfo, string> ReferenceLibraryNames 204public DependencyContextBuilder WithReferenceProjectInfos(Dictionary<string, SingleProjectInfo> referenceProjectInfos) 260public DependencyContextBuilder WithPackagesThatWereFiltered(Dictionary<PackageIdentity, string> packagesThatWhereFiltered) 328var referenceNameToRealName = new Dictionary<string, string>(); 353var libraries = runtimeLibraries.ToDictionary(lib => lib.Library.Name, lib => lib); 873Dictionary<string, DependencyLibrary> libraries = _dependencyLibraries;
FrameworkPackages\FrameworkPackages.cs (1)
59public Dictionary<string, NuGetVersion> Packages { get; } = new Dictionary<string, NuGetVersion>(StringComparer.OrdinalIgnoreCase);
GenerateDepsFile.cs (3)
121private Dictionary<PackageIdentity, string> GetFilteredPackages() 123Dictionary<PackageIdentity, string> filteredPackages = null; 185Dictionary<string, SingleProjectInfo> referenceProjects =
GenerateRegFreeComManifest.cs (1)
33out Dictionary<int, string> typeLibIdMap,
GetPackageDirectory.cs (1)
52var originalByAbsolute = new Dictionary<string, string>(PackageFolders.Length, StringComparer.Ordinal);
GetPackagesToPrune.cs (10)
181Dictionary<string, NuGetVersion> packagesToPrune = new(); 204Dictionary<string, NuGetVersion> packagesForFrameworkReference = TryLoadPackagesToPruneForVersion(log, key.TargetFrameworkIdentifier, key.TargetFrameworkVersion, frameworkReference, targetingPackRoots, prunePackageDataRoot, key.LoadPrunePackageDataFromNearestFramework); 254static Dictionary<string, NuGetVersion> LoadPackagesToPruneFromFrameworkPackages(string targetFrameworkIdentifier, string targetFrameworkVersion, string frameworkReference, bool acceptNearestMatch = false) 258var frameworkPackages = FrameworkPackages.GetFrameworkPackages(nugetFramework, [frameworkReference], acceptNearestMatch) 265static Dictionary<string, NuGetVersion> LoadPackagesToPruneFromPrunePackageData(string targetFrameworkIdentifier, string targetFrameworkVersion, string frameworkReference, AbsolutePath prunePackageDataRoot) 278static Dictionary<string, NuGetVersion> LoadPackagesToPruneFromTargetingPack(Logger log, string targetFrameworkIdentifier, string targetFrameworkVersion, string frameworkReference, AbsolutePath[] targetingPackRoots) 284var frameworkPackages = FrameworkPackages.LoadFrameworkPackagesFromPack(log, nugetFramework, frameworkReference, targetingPackRoot) 296static Dictionary<string, NuGetVersion> TryLoadPackagesToPruneForVersion(Logger log, string targetFrameworkIdentifier, string targetFrameworkVersion, string frameworkReference, AbsolutePath[] targetingPackRoots, AbsolutePath prunePackageDataRoot, bool loadPrunePackageDataFromNearestFramework) 309Dictionary<string, NuGetVersion> packages = null; 373static void AddPackagesToPrune(Dictionary<string, NuGetVersion> packagesToPrune, IEnumerable<(string id, NuGetVersion version)> packagesToAdd, Logger log)
IContentAssetPreprocessor.cs (1)
17void ConfigurePreprocessor(string outputDirectoryBase, Dictionary<string, string> preprocessorValues);
LockFileLookup.cs (2)
14private readonly Dictionary<KeyValuePair<string, NuGetVersion>, LockFileLibrary> _packages; 15private readonly Dictionary<string, LockFileLibrary> _projects;
NugetContentAssetPreprocessor.cs (2)
13private Dictionary<string, string> _preprocessorValues = new(); 16public void ConfigurePreprocessor(string outputDirectoryBase, Dictionary<string, string> preprocessorValues)
ParseTargetManifests.cs (1)
28var runtimeStorePackages = new Dictionary<PackageIdentity, StringBuilder>();
ProcessFrameworkReferences.cs (1)
218var frameworkReferenceMap = FrameworkReferences.ToDictionary(fr => fr.ItemSpec, StringComparer.OrdinalIgnoreCase);
ProduceContentAssets.cs (1)
122var preprocessorValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ProjectContext.cs (5)
93Dictionary<string, LockFileTargetLibrary> libraryLookup = 126var filterLookup = new Dictionary<string, HashSet<PackageIdentity>>(StringComparer.OrdinalIgnoreCase); 156Dictionary<string, LockFileTargetLibrary> libraryLookup = 168Dictionary<string, LockFileTargetLibrary> libraryLookup = 189Dictionary<string, LockFileTargetLibrary> libraryLookup =
ReferenceInfo.cs (1)
130Dictionary<string, ReferenceInfo> directReferences = new();
ResolveAppHosts.cs (1)
107var packagesToDownload = new Dictionary<string, string>();
ResolveFrameworkReferences.cs (2)
30var resolvedTargetingPacks = ResolvedTargetingPacks.ToDictionary(tp => tp.ItemSpec, StringComparer.OrdinalIgnoreCase); 31var resolvedRuntimePacks = ResolvedRuntimePacks.ToDictionary(rp => rp.GetMetadata(MetadataKeys.FrameworkName), StringComparer.OrdinalIgnoreCase);
ResolvePackageAssets.cs (15)
699private Dictionary<string, int> _stringTable; 973private Dictionary<(string, NuGetVersion), LockFileTargetLibrary> _targetLibraries; 977private Dictionary<(string, NuGetVersion), LockFileTargetLibrary> TargetLibraries => 1455var diagnosticLevels = GetPackageDiagnosticLevels(); 1527Dictionary<string, LogLevel> GetPackageDiagnosticLevels() 1534var packageReverseDependencies = GetReverseDependencies(); 1535var result = new Dictionary<string, LogLevel>(); 1549Dictionary<string, HashSet<string>> GetReverseDependencies() 1551var packageReverseDependencies = new Dictionary<string, HashSet<string>>(_compileTimeTarget.Libraries.Count, StringComparer.OrdinalIgnoreCase); 1597void ApplyDiagnosticLevel(string package, LogLevel messageLevel, Dictionary<string, LogLevel> diagnosticLevels, Dictionary<string, HashSet<string>> reverseDependencies) 1741Dictionary<string, string> projectReferencePaths = null; 1896var libraryLookup = _runtimeTarget.Libraries 1995private static Dictionary<string, string> GetProjectReferencePaths(LockFile lockFile) 1997Dictionary<string, string> paths = new();
ResolvePackageDependencies.cs (4)
24private readonly Dictionary<string, string> _fileTypes = new(StringComparer.OrdinalIgnoreCase); 139private Dictionary<string, string> _targetNameToAliasMap; 299var resolvedPackageVersions = target.Libraries 334Dictionary<string, string> resolvedPackageVersions,
ResolveTargetingPackAssets.cs (1)
143var resolvedTargetingPacks = inputs.ResolvedTargetingPacks
SingleProjectInfo.cs (2)
71public static Dictionary<string, SingleProjectInfo> CreateProjectReferenceInfos( 76Dictionary<string, SingleProjectInfo> projectReferences = new(StringComparer.OrdinalIgnoreCase);
src\sdk\src\Cli\dotnet\Commands\Workload\InstallStateContents.cs (1)
19public Dictionary<string, string>? Manifests { get; set; }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\IWorkloadManifestProvider.cs (1)
43Dictionary<string, WorkloadSet> GetAvailableWorkloadSets();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (11)
24private readonly Dictionary<string, int>? _knownManifestIdsAndOrder; 149var availableWorkloadSets = GetAvailableWorkloadSets(_sdkVersionBand); 150var workloadSets80100 = GetAvailableWorkloadSets(new SdkFeatureBand("8.0.100")); 164var featureBandWorkloadSets = GetAvailableWorkloadSets(workloadSetFeatureBand); 340var manifestIdsToManifests = new Dictionary<string, ReadableWorkloadManifest>(StringComparer.OrdinalIgnoreCase); 384Dictionary<string, string> directoriesWithManifests = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 587public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() 592public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets(SdkFeatureBand workloadSetFeatureBand) 597Dictionary<string, WorkloadSet> GetAvailableWorkloadSetsInternal(SdkFeatureBand? workloadSetFeatureBand) 600Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>(); 622static void AddWorkloadSetsForFeatureBand(Dictionary<string, WorkloadSet> availableWorkloadSets, string featureBandDirectory)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifest.cs (6)
13internal WorkloadManifest(string id, FXVersion version, string? description, string manifestPath, Dictionary<WorkloadId, BaseWorkloadDefinition> workloads, Dictionary<WorkloadPackId, WorkloadPack> packs, Dictionary<string, FXVersion>? dependsOnManifests) 42internal Dictionary<string, FXVersion>? DependsOnManifests { get; } 48public Dictionary<WorkloadId, BaseWorkloadDefinition> Workloads { get; } 49public Dictionary<WorkloadPackId, WorkloadPack> Packs { get; }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.cs (14)
88Dictionary<WorkloadId, BaseWorkloadDefinition>? workloads = null; 89Dictionary<WorkloadPackId, WorkloadPack>? packs = null; 90Dictionary<string, FXVersion>? dependsOn = null; 216private static Dictionary<string, FXVersion> ReadDependsOn(ref Utf8JsonStreamReader reader) 220var dependsOn = new Dictionary<string, FXVersion>(StringComparer.OrdinalIgnoreCase); 248private static Dictionary<WorkloadId, BaseWorkloadDefinition> ReadWorkloadDefinitions(ref Utf8JsonStreamReader reader, LocalizationCatalog? localizationCatalog) 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 274private static Dictionary<WorkloadPackId, WorkloadPack> ReadWorkloadPacks(ref Utf8JsonStreamReader reader) 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 346private static Dictionary<string, string> ReadStringDictionary(ref Utf8JsonStreamReader reader) 350var dictionary = new Dictionary<string, string>(); 372private static Dictionary<string, TValue> ReadStringDictionary<TValue>(ref Utf8JsonStreamReader reader, Func<string, TValue> mapValue) 376var dictionary = new Dictionary<string, TValue>(); 506Dictionary<string, WorkloadPackId>? aliasTo = null;
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestReader.Localization.cs (2)
78readonly Dictionary<string, string> _catalog; 80public LocalizationCatalog(Dictionary<string, string> catalog)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadPack.cs (2)
8public WorkloadPack(WorkloadPackId id, string version, WorkloadPackKind kind, Dictionary<string, WorkloadPackId>? aliasTo) 20public Dictionary<string, WorkloadPackId>? AliasTo { get; }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (6)
17private readonly Dictionary<string, (WorkloadManifest manifest, WorkloadManifestInfo info)> _manifests = new(StringComparer.OrdinalIgnoreCase); 18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 140Dictionary<WorkloadId, (WorkloadRedirect redirect, WorkloadManifest manifest)>? redirects = null; 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new(); 806public static TValue? TryGetValue<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSet.cs (4)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new(); 31var manifestVersions = dictionary 110public Dictionary<string, string> ToDictionaryForJson() 112var dictionary = ManifestVersions.ToDictionary(kvp => kvp.Key.ToString(), kvp => kvp.Value.Version + "/" + kvp.Value.FeatureBand, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadSetJsonSerializerContext.cs (1)
14[JsonSerializable(typeof(Dictionary<string, string>))]
src\sdk\src\Tasks\Common\ConflictResolution\ConflictResolver.cs (2)
14private Dictionary<string, TConflictItem> _winningItemsByKey = new(); 18private Dictionary<string, List<TConflictItem>> _unresolvedConflictItems = new(StringComparer.Ordinal);
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverride.cs (1)
26public Dictionary<string, OverrideVersion> OverriddenPackages { get; }
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverrideResolver.cs (5)
22private Lazy<Dictionary<string, PackageOverride>?> _packageOverrides; 27_packageOverrides = new Lazy<Dictionary<string, PackageOverride>?>(() => BuildPackageOverrides()); 30public Dictionary<string, PackageOverride>? PackageOverrides => _packageOverrides.Value; 32private Dictionary<string, PackageOverride>? BuildPackageOverrides() 34Dictionary<string, PackageOverride>? result;
src\sdk\src\Tasks\Common\ConflictResolution\PackageRank.cs (1)
8private Dictionary<string, int> packageRanks;
TypeLibraryDictionaryBuilder.cs (1)
12public static bool TryCreateTypeLibraryIdDictionary(ITaskItem[] typeLibraries, out Dictionary<int, string> typeLibraryIdMap, out IEnumerable<string> errors)
ValidateExecutableReferences.cs (1)
46Dictionary<string, string> projectAdditionalProperties = new(StringComparer.OrdinalIgnoreCase);
Microsoft.NET.HostModel (3)
Bundle\Bundler.cs (1)
493var relativePathToSpec = new Dictionary<string, (FileSpec Spec, FileType Type)>(StringComparer.Ordinal);
ComHost\ClsidMap.cs (1)
35Dictionary<string, ClsidEntry> clsidMap = new Dictionary<string, ClsidEntry>();
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (1)
198Dictionary<ResLanguage, int> dataEntryTable = new Dictionary<ResLanguage, int>();
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (40)
BootJsonData.cs (12)
7using ResourceHashesByNameDictionary = System.Collections.Generic.Dictionary<string, string>; 27/// Within <see cref="ResourceHashesByNameDictionary"/>, dictionary keys are resource names, 65public ResourceHashesByNameDictionary runtime { get; set; } = new ResourceHashesByNameDictionary(); 70public ResourceHashesByNameDictionary assembly { get; set; } = new ResourceHashesByNameDictionary(); 76public ResourceHashesByNameDictionary pdb { get; set; } 82public Dictionary<string, ResourceHashesByNameDictionary> satelliteResources { get; set; } 88public ResourceHashesByNameDictionary lazyAssembly { get; set; } 94public ResourceHashesByNameDictionary libraryInitializers { get; set; } 101public Dictionary<string, ResourceHashesByNameDictionary> extensions { get; set; } 107public Dictionary<string, AdditionalAsset50> runtimeAssets { get; set; }
GenerateBlazorWebAssemblyBootJson50.cs (3)
9using ResourceHashesByNameDictionary = System.Collections.Generic.Dictionary<string, string>; 95ResourceHashesByNameDictionary resourceList; 110resourceData.satelliteResources ??= new Dictionary<string, ResourceHashesByNameDictionary>(StringComparer.OrdinalIgnoreCase);
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (19)
42private Dictionary<string, string> _assetGroupValues; 50private Dictionary<string, string> _additionalCustomMetadata; 254internal bool MatchesGroups(Dictionary<(string SourceId, string Name), StaticWebAssetGroup> groups, bool skipDeferred = false, string sourceId = null) 294Dictionary<(string SourceId, string Name), StaticWebAssetGroup> groups, 335var deferred = new Dictionary<string, int>(OSPath.PathComparer); 370private static int FindInDeferred(StaticWebAsset asset, Dictionary<string, int> deferred) => 377Dictionary<string, int> deferred, int floor, ref int tail) 467private static Dictionary<string, string> ParseAssetGroupValues(string assetGroups) 469var result = new Dictionary<string, string>(StringComparer.Ordinal); 1706internal static Dictionary<string, StaticWebAsset> ToAssetDictionary(ITaskItem[] candidateAssets, bool validate = false) 1709internal static Dictionary<string, StaticWebAsset> ToAssetDictionary(ITaskItem[] candidateAssets, TaskEnvironment env, bool validate = false) 1711var dictionary = new Dictionary<string, StaticWebAsset>(candidateAssets.Length); 1740internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind) 1743internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind, TaskEnvironment env) 1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>(); 1984var result = new Dictionary<string, string>(((ITaskItem)this).MetadataCount) 2061internal sealed class StaticWebAssetResolvedRoute(string pathLabel, string path, Dictionary<string, string> tokens) 2065public Dictionary<string, string> Tokens { get; set; } = tokens; 2067public void Deconstruct(out string pathLabel, out string path, out Dictionary<string, string> tokens)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetGroup.cs (2)
63public static Dictionary<(string SourceId, string Name), StaticWebAssetGroup> FromItemGroup(ITaskItem[] items) 70var result = new Dictionary<(string SourceId, string Name), StaticWebAssetGroup>(items.Length);
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (2)
241internal (string Path, Dictionary<string, string> PatternValues) ReplaceTokens(StaticWebAsset staticWebAsset, StaticWebAssetTokenResolver tokens, TokenResolveMode resolveMode = TokenResolveMode.None) 247var dictionary = new Dictionary<string, string>();
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetTokenResolver.cs (1)
12private static readonly Dictionary<string, string> _empty = [];
UpgradeLegacyWasmStaticWebAssets.cs (1)
24var assetsByFinalPath = legacyAssets
Microsoft.NET.Sdk.Publish.Tasks (16)
MsDeploy\CommonUtility.cs (7)
227static Dictionary<string, string?>? s_wellKnownNamesDict = null; 228static Dictionary<string, string?>? s_wellKnownNamesMsdeployDict = null; 1126Dictionary<string, string> nameValueDictionary = new(parameters.Count, StringComparer.OrdinalIgnoreCase); 1177Dictionary<string, string> nameValueDictionary = new(parameters.Count, StringComparer.OrdinalIgnoreCase); 1178Dictionary<string, string?> entryIdentityDictionary = new(parameters.Count); 1420Dictionary<string, bool> FoundDictionary = new(optimizedValueList.Count, StringComparer.OrdinalIgnoreCase); 1800Dictionary<string, string> versionsList = new();
MsDeploy\VsMSDeployObject.cs (1)
344private Dictionary<string, string?> m_NameValueDictionary = new(10, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Common\VSHostObject.cs (2)
132public Dictionary<string, string>? Metadata { get; } 135public TaskItemDto(string? itemSpec, Dictionary<string, string>? metadata)
Tasks\MsDeploy\CreateParameterFile.cs (2)
105Dictionary<string, Xml.XmlElement> dictionaryLookup 244Dictionary<string, Xml.XmlElement> dictionaryLookup
Tasks\MsDeploy\MSDeploy.cs (4)
626Dictionary<string, string> lookupDictionary) 678Dictionary<string, string> lookupDictionary = new(items.Count); 754Dictionary<string, string> lookupDictionary = new(items.Count); 755Dictionary<string, string> nameValueDictionary = new(items.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.NET.Sdk.Razor.Tasks (2)
ReferenceResolver.cs (2)
17private readonly Dictionary<AssemblyItem, Classification> _classifications; 32protected Dictionary<string, AssemblyItem> Lookup { get; }
Microsoft.NET.Sdk.StaticWebAssets.Tasks (247)
_generated\1\StaticWebAssetsJsonSerializerContext.StaticWebAssetNode.g.cs (3)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode).GetProperty("Children", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>>(options, info0);
_generated\16\StaticWebAssetsJsonSerializerContext.StaticWebAssetPackageManifest.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetPackageManifest).GetProperty("Assets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>>(options, info2);
_generated\22\StaticWebAssetsJsonSerializerContext.DictionaryStringStaticWebAssetNode.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>>? _DictionaryStringStaticWebAssetNode; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>> DictionaryStringStaticWebAssetNode 22get => _DictionaryStringStaticWebAssetNode ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>> Create_DictionaryStringStaticWebAssetNode(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>, string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>(options, info); 47private void DictionaryStringStaticWebAssetNodeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>? value)
_generated\23\StaticWebAssetsJsonSerializerContext.DictionaryStringStaticWebAsset.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>>? _DictionaryStringStaticWebAsset; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> DictionaryStringStaticWebAsset 22get => _DictionaryStringStaticWebAsset ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> Create_DictionaryStringStaticWebAsset(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>, string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>(options, info); 47private void DictionaryStringStaticWebAssetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>? value)
_generated\30\StaticWebAssetsJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
110if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsDevelopmentManifest.StaticWebAssetNode>)) 114if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>))
_generated\34\DefineStaticWebAssetsSerializerContext.DefineStaticWebAssetsCache.g.cs (6)
143var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> 158AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetProperty("CachedAssets", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>), global::System.Array.Empty<global::System.Type>(), null), 161properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>>(options, info4); 165var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>> 180AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.DefineStaticWebAssetsCache).GetProperty("CachedCopyCandidates", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>), global::System.Array.Empty<global::System.Type>(), null), 183properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>>(options, info5);
_generated\36\DefineStaticWebAssetsSerializerContext.DictionaryStringCopyCandidate.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>>? _DictionaryStringCopyCandidate; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>> DictionaryStringCopyCandidate 24get => _DictionaryStringCopyCandidate ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>> Create_DictionaryStringCopyCandidate(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>, string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>(options, info); 49private void DictionaryStringCopyCandidateSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>? value)
_generated\37\DefineStaticWebAssetsSerializerContext.DictionaryStringStaticWebAsset.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>>? _DictionaryStringStaticWebAsset; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> DictionaryStringStaticWebAsset 24get => _DictionaryStringStaticWebAsset ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> Create_DictionaryStringStaticWebAsset(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>, string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>(options, info); 49private void DictionaryStringStaticWebAssetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>? value)
_generated\43\DefineStaticWebAssetsSerializerContext.GetJsonTypeInfo.g.cs (2)
40if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.DefineStaticWebAssets.CopyCandidate>)) 44if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset>))
_generated\45\ImportMapSerializerContext.ImportMap.g.cs (24)
32ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.StaticWebAssets.Tasks.ImportMap((global::System.Collections.Generic.Dictionary<string, string>)args[0], (global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>)args[1], (global::System.Collections.Generic.Dictionary<string, string>)args[2]), 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.ImportMap).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::System.Collections.Generic.Dictionary<string, string>), typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>), typeof(global::System.Collections.Generic.Dictionary<string, string>)}, modifiers: null), 53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.ImportMap).GetProperty("Imports", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info0); 75var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.ImportMap).GetProperty("Scopes", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>), global::System.Array.Empty<global::System.Type>(), null), 93properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>>(options, info1); 97var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 112AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.ImportMap).GetProperty("Integrity", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 115properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info2); 149ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, string>), 159ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>), 169ParameterType = typeof(global::System.Collections.Generic.Dictionary<string, string>),
_generated\46\ImportMapSerializerContext.DictionaryStringDictionaryStringString.g.cs (23)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>>? _DictionaryStringDictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> DictionaryStringDictionaryStringString 22get => _DictionaryStringDictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> Create_DictionaryStringDictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>> 31ObjectCreator = () => new global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>(), 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>, string, global::System.Collections.Generic.Dictionary<string, string>>(options, info); 47private void DictionaryStringDictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>? value) 57foreach (global::System.Collections.Generic.KeyValuePair<string, global::System.Collections.Generic.Dictionary<string, string>> entry in value)
_generated\47\ImportMapSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\50\ImportMapSerializerContext.GetJsonTypeInfo.g.cs (3)
26if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.Dictionary<string, string>>)) 30if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
ApplyCompressionNegotiation.cs (6)
30var assetsById = StaticWebAsset.ToAssetDictionary(CandidateAssets, TaskEnvironment); 36var compressionHeadersByEncoding = new Dictionary<string, StaticWebAssetEndpointResponseHeader[]>(2); 132var endpointsByRoute = GetEndpointsByRoute(endpointsByAsset); 194private static Dictionary<string, List<StaticWebAssetEndpoint>> GetEndpointsByRoute( 197var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(endpointsByAsset.Count); 215private static StaticWebAssetEndpointResponseHeader[] GetOrCreateCompressionHeaders(Dictionary<string, StaticWebAssetEndpointResponseHeader[]> compressionHeadersByEncoding, StaticWebAsset compressedAsset)
Compression\DiscoverPrecompressedAssets.cs (1)
39var candidatesByIdentity = candidates.ToDictionary(asset => asset.Identity, OSPath.PathComparer);
Compression\ResolveCompressedAssets.cs (3)
63var existingCompressionFormatsByAssetItemSpec = CollectCompressedAssets(candidates); 199private Dictionary<string, HashSet<string>> CollectCompressedAssets(StaticWebAsset[] candidates) 202var existingCompressionFormatsByAssetItemSpec = new Dictionary<string, HashSet<string>>();
ComputeEndpointsForReferenceStaticWebAssets.cs (1)
27var assets = StaticWebAsset.ToAssetDictionary(Assets, TaskEnvironment);
ComputeReferenceStaticWebAssetItems.cs (1)
52var existingAssets = StaticWebAsset.AssetsByTargetPath(Assets, Source, AssetKind, TaskEnvironment);
ComputeStaticWebAssetsForCurrentProject.cs (1)
31var currentProjectAssets = StaticWebAsset.AssetsByTargetPath(Assets, Source, AssetKind);
Data\ContentTypeProvider.cs (2)
13private static readonly Dictionary<string, ContentTypeMapping> _builtInMappings = 405private readonly Dictionary<string, ContentTypeMapping> _customMappings;
Data\StaticWebAsset.cs (19)
42private Dictionary<string, string> _assetGroupValues; 50private Dictionary<string, string> _additionalCustomMetadata; 254internal bool MatchesGroups(Dictionary<(string SourceId, string Name), StaticWebAssetGroup> groups, bool skipDeferred = false, string sourceId = null) 294Dictionary<(string SourceId, string Name), StaticWebAssetGroup> groups, 335var deferred = new Dictionary<string, int>(OSPath.PathComparer); 370private static int FindInDeferred(StaticWebAsset asset, Dictionary<string, int> deferred) => 377Dictionary<string, int> deferred, int floor, ref int tail) 467private static Dictionary<string, string> ParseAssetGroupValues(string assetGroups) 469var result = new Dictionary<string, string>(StringComparer.Ordinal); 1706internal static Dictionary<string, StaticWebAsset> ToAssetDictionary(ITaskItem[] candidateAssets, bool validate = false) 1709internal static Dictionary<string, StaticWebAsset> ToAssetDictionary(ITaskItem[] candidateAssets, TaskEnvironment env, bool validate = false) 1711var dictionary = new Dictionary<string, StaticWebAsset>(candidateAssets.Length); 1740internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind) 1743internal static Dictionary<string, (StaticWebAsset, List<StaticWebAsset>)> AssetsByTargetPath(ITaskItem[] assets, string source, string assetKind, TaskEnvironment env) 1746var result = new Dictionary<string, (StaticWebAsset selected, List<StaticWebAsset> all)>(); 1984var result = new Dictionary<string, string>(((ITaskItem)this).MetadataCount) 2061internal sealed class StaticWebAssetResolvedRoute(string pathLabel, string path, Dictionary<string, string> tokens) 2065public Dictionary<string, string> Tokens { get; set; } = tokens; 2067public void Deconstruct(out string pathLabel, out string path, out Dictionary<string, string> tokens)
Data\StaticWebAssetEndpoint.cs (3)
33private Dictionary<string, string> _additionalCustomMetadata; 179var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(candidateEndpoints.Length / 2, OSPath.PathComparer); 529var result = new Dictionary<string, string>(((ITaskItem)this).MetadataCount)
Data\StaticWebAssetEndpointGroup.cs (3)
20internal static Dictionary<string, StaticWebAssetEndpointGroup> CreateEndpointGroups( 23var groups = new Dictionary<string, StaticWebAssetEndpointGroup>(StringComparer.Ordinal); 49Dictionary<string, StaticWebAssetEndpointGroup> groups,
Data\StaticWebAssetGroup.cs (2)
63public static Dictionary<(string SourceId, string Name), StaticWebAssetGroup> FromItemGroup(ITaskItem[] items) 70var result = new Dictionary<(string SourceId, string Name), StaticWebAssetGroup>(items.Length);
Data\StaticWebAssetPackageManifest.cs (1)
19public Dictionary<string, StaticWebAsset> Assets { get; set; } = [];
Data\StaticWebAssetPathPattern.cs (2)
243public (string Path, Dictionary<string, string> PatternValues) ReplaceTokens(StaticWebAsset staticWebAsset, StaticWebAssetTokenResolver tokens, TokenResolveMode resolveMode = TokenResolveMode.None) 247var dictionary = new Dictionary<string, string>();
Data\StaticWebAssetTokenResolver.cs (1)
12private static readonly Dictionary<string, string> _empty = [];
DefineStaticWebAssetEndpoints.cs (5)
32var existingEndpointsByAssetFile = CreateEndpointsByAssetFile(); 74private Dictionary<string, HashSet<string>> CreateEndpointsByAssetFile() 78Dictionary<string, HashSet<string>> existingEndpointsByAssetFile = new(ExistingEndpoints.Length, OSPath.PathComparer); 148Dictionary<string, HashSet<string>> existingEndpointsByAssetFile, 157public Dictionary<string, HashSet<string>> ExistingEndpointsByAssetFile { get; } = existingEndpointsByAssetFile;
DefineStaticWebAssets.Cache.cs (8)
69var inputHashes = ComputeInputHashes(memoryStream, candidateAssetMetadata); 76private Dictionary<string, ITaskItem> ComputeInputHashes( 86var inputHashes = new Dictionary<string, ITaskItem>(candidateAssets.Length); 130public Dictionary<string, StaticWebAsset> CachedAssets { get; set; } = []; 131public Dictionary<string, CopyCandidate> CachedCopyCandidates { get; set; } = []; 186Dictionary<string, ITaskItem> inputHashes) 212private void PartialUpdate(Dictionary<string, ITaskItem> inputHashes) 240var remainingCandidates = new Dictionary<string, ITaskItem>();
DefineStaticWebAssets.cs (7)
91Dictionary<string, List<GroupDefinition>> groupDefinitions = null; 122var assetsByRelativePath = new Dictionary<string, (ITaskItem First, ITaskItem Second)>(CandidateAssets.Length); 519Dictionary<string, (ITaskItem First, ITaskItem Second)> assetsByRelativePath, 636Dictionary<string, List<GroupDefinition>> definitionsBySourceId, 712private Dictionary<string, List<GroupDefinition>> ParseGroupDefinitions() 793var result = new Dictionary<string, List<GroupDefinition>>(StringComparer.Ordinal); 812var groupValues = new Dictionary<string, string>(StringComparer.Ordinal);
FilterStaticWebAssetEndpoints.cs (2)
39var assetFiles = Assets != null ? StaticWebAsset.ToAssetDictionary(Assets, TaskEnvironment) : []; 41var endpointFoundMatchingAsset = new Dictionary<string, StaticWebAsset>();
FilterStaticWebAssetGroups.cs (2)
48var groups = StaticWebAssetGroup.FromItemGroup(StaticWebAssetGroups); 92var endpointGroups = StaticWebAssetEndpointGroup.CreateEndpointGroups(parsedEndpoints);
FingerprintPatternMatcher.cs (2)
16private readonly Dictionary<string, string> _tokensByPattern; 23var tokensByPattern = fingerprintPatterns
GeneratePackageAssetsManifestFile.cs (7)
47var assets = BuildManifestAssets(parsedAssets, packagePaths, identityToPackagePath, frameworkMatcher, matchContext); 89private (Dictionary<string, string> IdentityToPackagePath, string[] PackagePaths) ComputePackagePaths( 92var identityToPackagePath = new Dictionary<string, string>(parsedAssets.Length, Utils.OSPath.PathComparer); 103private Dictionary<string, StaticWebAsset> BuildManifestAssets( 106Dictionary<string, string> identityToPackagePath, 111var assets = new Dictionary<string, StaticWebAsset>(OSPath.PathComparer); 164private StaticWebAssetEndpoint[] BuildManifestEndpoints(Dictionary<string, string> identityToPackagePath)
GenerateStaticWebAssetEndpointsManifest.cs (1)
75var manifestAssets = ComputeManifestAssets(assets, ManifestType)
GenerateStaticWebAssetEndpointsPropsFile.cs (3)
31var assets = StaticWebAsset.ToAssetDictionary(StaticWebAssets, TaskEnvironment); 40private bool ExecuteCore(StaticWebAssetEndpoint[] endpoints, Dictionary<string, StaticWebAsset> assets) 126private bool ValidateArguments(StaticWebAssetEndpoint[] endpoints, Dictionary<string, StaticWebAsset> asset)
GenerateStaticWebAssetsDevelopmentManifest.cs (2)
178var contentRootIndex = new Dictionary<string, int>(); 368public Dictionary<string, StaticWebAssetNode> Children { get; set; }
GenerateStaticWebAssetsManifest.cs (4)
63var assetsByTargetPath = GroupAssetsByTargetPath(assets); 107var assetsByIdentity = assets.ToDictionary(a => a.Identity, a => a, OSPath.PathComparer); 164private static Dictionary<string, (StaticWebAsset First, StaticWebAsset Second, List<StaticWebAsset> Other)> GroupAssetsByTargetPath(StaticWebAsset[] assets) 166var result = new Dictionary<string, (StaticWebAsset First, StaticWebAsset Second, List<StaticWebAsset> Other)>(StringComparer.OrdinalIgnoreCase);
JSModules\ApplyJsModules.cs (2)
32var jsModulesByRazorItem = new Dictionary<string, IList<ITaskItem>>(); 104Dictionary<string, IList<ITaskItem>> jsModuleByItem,
Legacy\ValidateStaticWebAssetsUniquePaths.cs (1)
24var assetsByWebRootPaths = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
MergeStaticWebAssets.cs (1)
33var assetsByTargetPath = assets
OverrideHtmlAssetPlaceholders.cs (16)
50var urlMappings = GroupResourcesByLabel(resources); 154private string GetFingerprintedAssetPath(Dictionary<string, ResourceAsset> urlMappings, string assetPath) 235Dictionary<string, string>? imports = new(); 236Dictionary<string, Dictionary<string, string>>? scopes = new(); 237Dictionary<string, string>? integrity = new(); 263private static Dictionary<string, ResourceAsset> GroupResourcesByLabel(List<ResourceAsset> resources) 265var mappings = new Dictionary<string, ResourceAsset>(StringComparer.OrdinalIgnoreCase); 296internal class ImportMap(Dictionary<string, string> imports, Dictionary<string, Dictionary<string, string>> scopes, Dictionary<string, string> integrity) 298public Dictionary<string, string> Imports { get; set; } = imports; 299public Dictionary<string, Dictionary<string, string>> Scopes { get; set; } = scopes; 300public Dictionary<string, string> Integrity { get; set; } = integrity;
ReadPackageAssetsManifest.cs (3)
42var groupLookup = StaticWebAssetGroup.FromItemGroup(StaticWebAssetGroups); 82var endpointGroups = StaticWebAssetEndpointGroup.CreateEndpointGroups(manifest.Endpoints ?? []); 110var frameworkPaths = new Dictionary<string, string>(OSPath.PathComparer);
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (1)
36var endpointsByAsset = candidateEndpoints.GroupBy(e => e.AssetFile, OSPath.PathComparer)
ResolveStaticWebAssetEndpointRoutes.cs (1)
21var assets = StaticWebAsset.ToAssetDictionary(Assets);
ScopedCss\ApplyCssScopes.cs (2)
35var scopedCssByRazorItem = new Dictionary<string, IList<ITaskItem>>(); 116Dictionary<string, IList<ITaskItem>> scopedCssByItem,
UpdateExternallyDefinedStaticWebAssets.cs (4)
54var groupLookup = StaticWebAssetGroup.FromItemGroup(StaticWebAssetGroups); 55var endpointByAsset = endpoints 71var assetMapping = new Dictionary<string, (string NewIdentity, string OldBasePath)>(OSPath.PathComparer); 124var endpointGroups = StaticWebAssetEndpointGroup.CreateEndpointGroups(endpoints);
UpdatePackageStaticWebAssets.cs (3)
46var assetMapping = new Dictionary<string, (string NewIdentity, string OldBasePath)>(OSPath.PathComparer); 88private void RemapEndpoints(Dictionary<string, (string NewIdentity, string OldBasePath)> assetMapping) 94var endpointsByRoute = new Dictionary<string, List<(StaticWebAssetEndpoint Parsed, int OriginalIndex)>>(StringComparer.Ordinal);
UpdateStaticWebAssetEndpoints.cs (2)
45var endpointsToUpdate = StaticWebAssetEndpoint.FromItemGroup(EndpointsToUpdate) 48var allEndpoints = StaticWebAssetEndpoint.FromItemGroup(AllEndpoints)
Utils\Globbing\GlobNode.cs (4)
16public Dictionary<string, GlobNode> LiteralsDictionary { get; set; } 17public Dictionary<string, GlobNode>.AlternateLookup<ReadOnlySpan<char>> Literals { get; set; } 23public Dictionary<string, GlobNode> ExtensionsDictionary { get; set; } 24public Dictionary<string, GlobNode>.AlternateLookup<ReadOnlySpan<char>> Extensions { get; set; }
Utils\HashingUtils.cs (2)
50internal static Dictionary<string, ITaskItem> ComputeHashLookup( 59var hashSet = new Dictionary<string, ITaskItem>(candidateAssets.Length);
Microsoft.NET.Sdk.WorkloadManifestReader (75)
_generated\0\WorkloadSetJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\12\InstallStateJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\4\WorkloadSetJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
22if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\8\InstallStateJsonSerializerContext.InstallStateContents.g.cs (4)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents).GetProperty("Manifests", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info1); 134global::System.Collections.Generic.Dictionary<string, string> __value_Manifests = ((global::Microsoft.DotNet.Cli.Commands.Workload.InstallStateContents)value).Manifests;
_generated\9\InstallStateJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
IWorkloadManifestProvider.cs (1)
43Dictionary<string, WorkloadSet> GetAvailableWorkloadSets();
SdkDirectoryWorkloadManifestProvider.cs (11)
24private readonly Dictionary<string, int>? _knownManifestIdsAndOrder; 149var availableWorkloadSets = GetAvailableWorkloadSets(_sdkVersionBand); 150var workloadSets80100 = GetAvailableWorkloadSets(new SdkFeatureBand("8.0.100")); 164var featureBandWorkloadSets = GetAvailableWorkloadSets(workloadSetFeatureBand); 340var manifestIdsToManifests = new Dictionary<string, ReadableWorkloadManifest>(StringComparer.OrdinalIgnoreCase); 384Dictionary<string, string> directoriesWithManifests = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 587public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() 592public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets(SdkFeatureBand workloadSetFeatureBand) 597Dictionary<string, WorkloadSet> GetAvailableWorkloadSetsInternal(SdkFeatureBand? workloadSetFeatureBand) 600Dictionary<string, WorkloadSet> availableWorkloadSets = new Dictionary<string, WorkloadSet>(); 622static void AddWorkloadSetsForFeatureBand(Dictionary<string, WorkloadSet> availableWorkloadSets, string featureBandDirectory)
src\sdk\src\Cli\dotnet\Commands\Workload\InstallStateContents.cs (1)
19public Dictionary<string, string>? Manifests { get; set; }
TempDirectoryWorkloadManifestProvider.cs (1)
57public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new();
WorkloadManifest.cs (6)
13internal WorkloadManifest(string id, FXVersion version, string? description, string manifestPath, Dictionary<WorkloadId, BaseWorkloadDefinition> workloads, Dictionary<WorkloadPackId, WorkloadPack> packs, Dictionary<string, FXVersion>? dependsOnManifests) 42internal Dictionary<string, FXVersion>? DependsOnManifests { get; } 48public Dictionary<WorkloadId, BaseWorkloadDefinition> Workloads { get; } 49public Dictionary<WorkloadPackId, WorkloadPack> Packs { get; }
WorkloadManifestReader.cs (14)
88Dictionary<WorkloadId, BaseWorkloadDefinition>? workloads = null; 89Dictionary<WorkloadPackId, WorkloadPack>? packs = null; 90Dictionary<string, FXVersion>? dependsOn = null; 216private static Dictionary<string, FXVersion> ReadDependsOn(ref Utf8JsonStreamReader reader) 220var dependsOn = new Dictionary<string, FXVersion>(StringComparer.OrdinalIgnoreCase); 248private static Dictionary<WorkloadId, BaseWorkloadDefinition> ReadWorkloadDefinitions(ref Utf8JsonStreamReader reader, LocalizationCatalog? localizationCatalog) 252var workloads = new Dictionary<WorkloadId, BaseWorkloadDefinition>(); 274private static Dictionary<WorkloadPackId, WorkloadPack> ReadWorkloadPacks(ref Utf8JsonStreamReader reader) 278var packs = new Dictionary<WorkloadPackId, WorkloadPack>(); 346private static Dictionary<string, string> ReadStringDictionary(ref Utf8JsonStreamReader reader) 350var dictionary = new Dictionary<string, string>(); 372private static Dictionary<string, TValue> ReadStringDictionary<TValue>(ref Utf8JsonStreamReader reader, Func<string, TValue> mapValue) 376var dictionary = new Dictionary<string, TValue>(); 506Dictionary<string, WorkloadPackId>? aliasTo = null;
WorkloadManifestReader.Localization.cs (2)
78readonly Dictionary<string, string> _catalog; 80public LocalizationCatalog(Dictionary<string, string> catalog)
WorkloadPack.cs (2)
8public WorkloadPack(WorkloadPackId id, string version, WorkloadPackKind kind, Dictionary<string, WorkloadPackId>? aliasTo) 20public Dictionary<string, WorkloadPackId>? AliasTo { get; }
WorkloadResolver.cs (6)
17private readonly Dictionary<string, (WorkloadManifest manifest, WorkloadManifestInfo info)> _manifests = new(StringComparer.OrdinalIgnoreCase); 18private readonly Dictionary<WorkloadId, (WorkloadDefinition workload, WorkloadManifest manifest)> _workloads = new(); 19private readonly Dictionary<WorkloadPackId, (WorkloadPack pack, WorkloadManifest manifest)> _packs = new(); 140Dictionary<WorkloadId, (WorkloadRedirect redirect, WorkloadManifest manifest)>? redirects = null; 779public Dictionary<string, WorkloadSet> GetAvailableWorkloadSets() => new(); 806public static TValue? TryGetValue<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key)
WorkloadSet.cs (4)
12public Dictionary<ManifestId, (ManifestVersion Version, SdkFeatureBand FeatureBand)> ManifestVersions = new(); 31var manifestVersions = dictionary 110public Dictionary<string, string> ToDictionaryForJson() 112var dictionary = ManifestVersions.ToDictionary(kvp => kvp.Key.ToString(), kvp => kvp.Value.Version + "/" + kvp.Value.FeatureBand, StringComparer.OrdinalIgnoreCase);
WorkloadSetJsonSerializerContext.cs (1)
14[JsonSerializable(typeof(Dictionary<string, string>))]
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (2)
CachingWorkloadResolver.cs (2)
157var itemsToAdd = new Dictionary<string, SdkResultItem>(); 165Dictionary<string, string> propertiesToAdd = new();
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
59private Dictionary<string, int>? _internCallCountsByString;
Microsoft.Private.Windows.Core (5)
System\Private\Windows\BinaryFormat\Support\StringRecordsCollection.cs (2)
14private readonly Dictionary<string, int> _strings = []; 15private readonly Dictionary<int, MemberReference> _memberReferences = [];
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (1)
17private static Dictionary<TypeName, Type>? s_knownTypes;
System\Private\Windows\Ole\DataStore.cs (1)
21private readonly Dictionary<string, DataStoreEntry> _mappedData = new(BackCompatibleStringComparer.Default);
System\Private\Windows\Ole\TypeBinder.cs (1)
46private Dictionary<FullyQualifiedTypeName, TypeName>? _cachedTypeNames;
Microsoft.TemplateEngine.Abstractions (2)
Installer\InstallRequest.cs (2)
11public InstallRequest(string identifier, string? version = null, string? installerName = null, Dictionary<string, string>? details = null, bool force = false) 55public Dictionary<string, string> Details { get; private set; }
Microsoft.TemplateEngine.Cli (32)
Alias\AliasModel.cs (1)
21internal Dictionary<string, IReadOnlyList<string>> CommandAliases { get; set; }
Alias\AliasRegistry.cs (2)
59Dictionary<string, IReadOnlyList<string>> aliasesWithCandidate = new(_aliases!.CommandAliases); 172Dictionary<string, IReadOnlyList<string>> result = new(comparer ?? StringComparer.Ordinal);
ChoiceTemplateParameter.cs (1)
19private Dictionary<string, ParameterChoice> _choices = new(StringComparer.OrdinalIgnoreCase);
CliEnvironment.cs (1)
15Dictionary<string, string> variables = new(StringComparer.OrdinalIgnoreCase)
CliTemplateEngineHost.cs (1)
18Dictionary<string, string> preferences,
CliTemplateInfo.cs (1)
95Dictionary<string, CliTemplateParameter> parameters = new();
Commands\BaseCommand.cs (1)
29protected static readonly Dictionary<string, Func<Func<ParseResult, ITemplateEngineHost>, Command, Command>> SubcommandFactories = new()
Commands\BaseFilterableArgs.cs (1)
49Dictionary<FilterOptionDefinition, OptionResult> filterValues = new();
Commands\create\CombinedChoiceTemplateParameter.cs (1)
15private Dictionary<string, ParameterChoice> _combinedParameters = new(StringComparer.OrdinalIgnoreCase);
Commands\create\InvalidTemplateOptionResult.cs (1)
131Dictionary<string, ParameterChoice> validChoices = new();
Commands\create\TemplateCommand.cs (1)
26private Dictionary<string, TemplateOption> _templateSpecificOptions = new();
Commands\create\TemplateCommandArgs.cs (1)
12private Dictionary<string, OptionResult> _templateOptions = new();
HostSpecificTemplateData.cs (6)
20var symbolsInfo = new Dictionary<string, IReadOnlyDictionary<string, string>>(); 46var symbolProperties = new Dictionary<string, string>(); 141public Dictionary<string, string> LongNameOverrides 145Dictionary<string, string> map = new(); 159public Dictionary<string, string> ShortNameOverrides 163Dictionary<string, string> map = new();
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\Tables\WideTable.cs (1)
13private static readonly Dictionary<Unicode, uint[,]> _lookup;
src\sdk\artifacts\obj\Microsoft.TemplateEngine.Cli\External\Wcwidth\Tables\ZeroTable.cs (1)
13private static readonly Dictionary<Unicode, uint[,]> _lookup;
TabularOutput\TabularOutput.cs (1)
78Dictionary<int, int> columnWidthLookup = new();
TemplatePackageCoordinator.cs (4)
192var details = new Dictionary<string, string>(); 369Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>> sourcesToUninstall; 655private async Task<(NewCommandStatus, Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>)> DetermineSourcesToUninstallAsync(UninstallCommandArgs commandArgs, CancellationToken cancellationToken) 664var packagesToUninstall = new Dictionary<IManagedTemplatePackageProvider, List<IManagedTemplatePackage>>();
TemplateResolution\TemplateGroupMatchInfo.cs (1)
266Dictionary<string, ParameterChoice> validChoices = new();
TemplateResolution\TemplateResolutionResult.cs (1)
263Dictionary<string, string?> parameterList = new();
TemplateSearch\CliHostSearchCacheData.cs (1)
35Dictionary<string, HostSpecificTemplateData> cliData = new();
TemplateSearch\CliSearchFiltersFactory.cs (2)
19Dictionary<string, string?> filterData = new(); 100Dictionary<string, HostSpecificTemplateData> hostSpecificData = new();
TemplateSearch\CliTemplateSearchCoordinatorFactory.cs (1)
14Dictionary<string, Func<object, object>> dataReaders = new()
Microsoft.TemplateEngine.Core (5)
Expressions\OperatorSetBuilder.cs (2)
11private readonly Dictionary<Operators, Func<IEvaluable, IEvaluable>> _operatorScopeLookupFactory = new Dictionary<Operators, Func<IEvaluable, IEvaluable>>(); 12private readonly Dictionary<TToken, Operators> _tokensToOperatorsMap = new Dictionary<TToken, Operators>();
Matching\Trie.cs (2)
14public Dictionary<byte, TrieNode<T>> NextNodes { get; } 26Dictionary<byte, TrieNode<T>>? current = NextNodes;
Operations\PhasedOperation.cs (1)
25Dictionary<ITokenConfig, int> tokenMap = new Dictionary<ITokenConfig, int>();
Microsoft.TemplateEngine.Edge (88)
_generated\10\SettingsStoreJsonSerializerContext.SettingsStore.g.cs (10)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore).GetProperty("ComponentGuidToAssemblyQualifiedName", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, string>>(options, info0); 95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>> 110AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore).GetProperty("ComponentTypeToGuidList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>), global::System.Array.Empty<global::System.Type>(), null), 113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>>(options, info2); 131global::System.Collections.Generic.Dictionary<string, string> __value_ComponentGuidToAssemblyQualifiedName = ((global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore)value).ComponentGuidToAssemblyQualifiedName; 143global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>> __value_ComponentTypeToGuidList = ((global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore)value).ComponentTypeToGuidList; 154private static extern void __set_SettingsStore_ComponentGuidToAssemblyQualifiedName(global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore obj, global::System.Collections.Generic.Dictionary<string, string> value); 158private static extern void __set_SettingsStore_ComponentTypeToGuidList(global::Microsoft.TemplateEngine.Edge.Settings.SettingsStore obj, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>> value);
_generated\11\SettingsStoreJsonSerializerContext.DictionaryStringHashSetGuid.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>>? _DictionaryStringHashSetGuid; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>> DictionaryStringHashSetGuid 22get => _DictionaryStringHashSetGuid ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>> Create_DictionaryStringHashSetGuid(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>, string, global::System.Collections.Generic.HashSet<global::System.Guid>>(options, info); 47private void DictionaryStringHashSetGuidSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>? value)
_generated\12\SettingsStoreJsonSerializerContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
_generated\18\SettingsStoreJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
26if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<global::System.Guid>>)) 30if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\29\TemplateCacheJsonSerializerContext.TemplateCache.g.cs (4)
115var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>> 130AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("MountPointsInfo", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.DateTime>), global::System.Array.Empty<global::System.Type>(), null), 133properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>>(options, info3); 167global::System.Collections.Generic.Dictionary<string, global::System.DateTime> __value_MountPointsInfo = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)value).MountPointsInfo;
_generated\31\TemplateCacheJsonSerializerContext.DictionaryStringDateTime.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>>? _DictionaryStringDateTime; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>> DictionaryStringDateTime 22get => _DictionaryStringDateTime ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.DateTime>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>> Create_DictionaryStringDateTime(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.DateTime>, string, global::System.DateTime>(options, info); 47private void DictionaryStringDateTimeSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.DateTime>? value)
_generated\44\TemplateCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
66if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.DateTime>))
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (2)
16private readonly Dictionary<Guid, IInstaller> _installersByGuid = new Dictionary<Guid, IInstaller>(); 17private readonly Dictionary<string, IInstaller> _installersByName = new Dictionary<string, IInstaller>();
Constraints\OSConstraint.cs (1)
12private static readonly Dictionary<string, OSPlatform> PlatformMap = new Dictionary<string, OSPlatform>(StringComparer.OrdinalIgnoreCase)
DefaultEnvironment.cs (1)
56Dictionary<string, string> variables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
DefaultTemplateEngineHost.cs (1)
21Dictionary<string, string>? defaults = null,
Installers\Folder\FolderManagedTemplatePackage.cs (1)
13private static readonly Dictionary<string, string> EmptyDictionary = new Dictionary<string, string>();
Installers\NuGet\NuGetInstaller.cs (1)
382Dictionary<string, string> installationDetails = new Dictionary<string, string>();
Installers\NuGet\NuGetManagedTemplatePackage.cs (2)
156internal Dictionary<string, string> Details { get; } 170var details = new Dictionary<string, string>();
Mount\Archive\ZipFileMountPoint.cs (1)
43Dictionary<string, IFileSystemInfo> universe = new Dictionary<string, IFileSystemInfo>
Settings\ComponentManager.cs (7)
18private readonly Dictionary<Guid, string> _componentIdToAssemblyQualifiedTypeName = new Dictionary<Guid, string>(); 19private readonly Dictionary<Type, HashSet<Guid>> _componentIdsByType; 65internal Dictionary<Type, Dictionary<Guid, object>> ComponentCache { get; } = new Dictionary<Type, Dictionary<Guid, object>>(); 140if (ComponentCache.TryGetValue(typeof(T), out Dictionary<Guid, object> typeCache) && typeCache != null 280if (!ComponentCache.TryGetValue(type, out Dictionary<Guid, object> typeCache))
Settings\SettingsStore.cs (2)
77internal Dictionary<string, string> ComponentGuidToAssemblyQualifiedName { get; } = new(); 83internal Dictionary<string, HashSet<Guid>> ComponentTypeToGuidList { get; } = new();
Settings\TemplateCache.cs (4)
21public TemplateCache(IReadOnlyList<ITemplatePackage> allTemplatePackages, ScanResult?[] scanResults, Dictionary<string, DateTime> mountPoints, IEngineEnvironmentSettings environmentSettings) 28var templateDeduplicationDictionary = new Dictionary<string, IList<(IScanTemplateInfo Template, ITemplatePackage TemplatePackage, ILocalizationLocator? Localization, IMountPoint MountPoint)>>(); 93var mountPointInfo = new Dictionary<string, DateTime>(); 134public Dictionary<string, DateTime> MountPointsInfo { get; }
Settings\TemplateInfo.cs (3)
170Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 194Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>(); 255Dictionary<string, ParameterChoice>? localizedChoices = null;
Settings\TemplateInfoReader.cs (3)
56Dictionary<string, IBaselineInfo> baselineInfo = new Dictionary<string, IBaselineInfo>(); 96Dictionary<string, string> tags = new Dictionary<string, string>(); 161Dictionary<string, ParameterChoice>? choices = null;
Settings\TemplatePackageManager.cs (2)
24private Dictionary<ITemplatePackageProvider, Task<IReadOnlyList<ITemplatePackage>>>? _cachedSources; 316var mountPoints = new Dictionary<string, DateTime>();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
264var propertyIndexes = new Dictionary<string, int>(StringComparer.Ordinal); 296Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal); 317Dictionary<string, JsonNode> result = new(comparer ?? StringComparer.Ordinal); 336Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal);
Template\ParameterSetBuilder.cs (4)
16private readonly Dictionary<ITemplateParameter, EvalData> _resolvedValues; 196Dictionary<string, EvalData> variables = 212Dictionary<string, EvalData> variables, 215Dictionary<EvalData, HashSet<EvalData>> parametersDependencies = new();
TemplateConstraintManager.cs (1)
17private readonly Dictionary<string, Task<ITemplateConstraint>> _templateConstrains = new Dictionary<string, Task<ITemplateConstraint>>();
VirtualEnvironment.cs (1)
27Dictionary<string, string> variables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (36)
ConfigModel\ExtendedFileSource.cs (1)
13internal static readonly Dictionary<string, string> RenameDefaults = new Dictionary<string, string>(StringComparer.Ordinal);
ConfigModel\ParameterSymbol.cs (1)
36var choicesAndDescriptions = new Dictionary<string, ParameterChoice>();
ConfigModel\PostActionModel.cs (1)
120Dictionary<string, string> args = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ConfigModel\TemplateConfigModel.cs (7)
21private readonly Dictionary<string, IValueForm> _forms = SetupValueFormMapForTemplate(); 29private Dictionary<string, BaseSymbol> _symbols = new(); 94Dictionary<string, BaseSymbol> symbols = new(StringComparer.Ordinal); 487Dictionary<string, Parameter> parameters = new(); 523private static Dictionary<string, IValueForm> SetupValueFormMapForTemplate(JsonObject? source = null) 525Dictionary<string, IValueForm> formMap = new(StringComparer.Ordinal); 556Dictionary<string, IBaselineInfo> allBaselines = new();
FileRenameGenerator.cs (2)
44Dictionary<string, string> fileRenames, 47Dictionary<string, string> allRenames = new(StringComparer.Ordinal);
GlobalRunSpec.cs (1)
27Dictionary<string, IOperationConfig> operationConfigLookup = new Dictionary<string, IOperationConfig>();
LocalizationModelDeserializer.cs (4)
51var results = new Dictionary<string, IParameterSymbolLocalizationModel>(); 100var results = new Dictionary<string, ParameterChoiceLocalizationModel>(); 124var results = new Dictionary<string, PostActionLocalizationModel>(); 167var results = new Dictionary<string, string>();
MacroProcessor.cs (1)
25Dictionary<string, IMacro> knownMacros = environmentSettings.Components.OfType<IMacro>().ToDictionary(m => m.Type, m => m);
ParameterBasedVariableCollection.cs (1)
39Dictionary<string, ParameterBasedVariableCollection> collections = new Dictionary<string, ParameterBasedVariableCollection>();
PostAction.cs (1)
83Dictionary<string, string> processedArgs = new();
RunnableProjectConfig.cs (5)
42private readonly Dictionary<Guid, string> _guidToGuidPrefixMap = new(); 481Dictionary<string, IGeneratedSymbolMacro> generatedSymbolMacros = EngineEnvironmentSettings.Components.OfType<IGeneratedSymbolMacro>() 543Dictionary<string, string> fileRenamesFromSource = source.Rename.ToDictionary(x => x.Key, x => x.Value); 590Dictionary<string, string> fileRenamesFromSource = new Dictionary<string, string>(StringComparer.Ordinal); 610Dictionary<string, string> fileRenames)
RunnableProjectConfig.ITemplate.cs (2)
91Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 110Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
RunnableProjectGenerator.cs (2)
507Dictionary<string, ICacheTag> tags = new Dictionary<string, ICacheTag>(); 526Dictionary<string, ICacheParameter> cacheParameters = new Dictionary<string, ICacheParameter>();
ScannedTemplateInfo.cs (2)
50Dictionary<string, IFile> allHostFilesForTemplate = new(); 63Dictionary<CultureInfo, TemplateLocalizationInfo> localizations = new();
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
264var propertyIndexes = new Dictionary<string, int>(StringComparer.Ordinal); 296Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal); 317Dictionary<string, JsonNode> result = new(comparer ?? StringComparer.Ordinal); 336Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal);
Validation\ValidationManager.cs (1)
13private Dictionary<Guid, ITemplateValidator>? _cachedValidators;
Microsoft.TemplateEngine.Utils (30)
DefaultTemplateEngineHost.cs (5)
17private readonly Dictionary<string, Action<string, string[]>> _diagnosticLoggers; 24public DefaultTemplateEngineHost(string hostIdentifier, string version, Dictionary<string, string>? defaults) 29public DefaultTemplateEngineHost(string hostIdentifier, string version, Dictionary<string, string>? defaults, IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)>? builtIns) 34public DefaultTemplateEngineHost(string hostIdentifier, string version, Dictionary<string, string> defaults, IReadOnlyList<string> fallbackHostTemplateConfigNames) 39public DefaultTemplateEngineHost(string hostIdentifier, string version, Dictionary<string, string>? defaults, IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)>? builtIns, IReadOnlyList<string>? fallbackHostTemplateConfigNames)
DictionaryExtensions.cs (2)
31if (((Dictionary<string, T>)source).Comparer == comparer) 37Dictionary<string, T> cloneDict = new(comparer);
DirectedGraph.cs (15)
10private readonly Dictionary<T, HashSet<T>> _dependenciesMap; 11private readonly Lazy<Dictionary<T, HashSet<T>>> _dependentsMap; 18public DirectedGraph(Dictionary<T, HashSet<T>> dependenciesMap) 22_dependentsMap = new Lazy<Dictionary<T, HashSet<T>>>(() => GetDependentsMap(_dependenciesMap, _vertices)); 29public static implicit operator DirectedGraph<T>(Dictionary<T, HashSet<T>> dependenciesMap) => new(dependenciesMap); 46var inDegreeLookup = _vertices.ToDictionary(v => v, v => 0); 53var dependentsMap = _dependentsMap.Value; 75var dependentsMap = _dependentsMap.Value; 99var dependentsMap = _dependentsMap.Value; 144private static IReadOnlyList<T> GetVertices(Dictionary<T, HashSet<T>> dependenciesMap) 147private static Dictionary<T, HashSet<T>> GetDependentsMap(Dictionary<T, HashSet<T>> dependenciesMap, IReadOnlyList<T> vertices) 149var dependentsMap = vertices.ToDictionary(v => v, v => new HashSet<T>()); 161private static Dictionary<T, HashSet<T>> DeepCopy(Dictionary<T, HashSet<T>> dependenciesMap)
FileSystemInfoExtensions.cs (1)
77Dictionary<string, int> sourceSegments = new Dictionary<string, int> { { relTo.FullPath, 0 } };
InMemoryFileSystem.cs (2)
767public Dictionary<string, FileSystemDirectory> Directories { get; } 769public Dictionary<string, FileSystemFile> Files { get; }
ListExtensions.cs (1)
14Dictionary<ValueWrapper<TKey?>, List<TElement>> groups = new Dictionary<ValueWrapper<TKey?>, List<TElement>>(new ValueWrapperComparer<TKey?>(comparer));
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
264var propertyIndexes = new Dictionary<string, int>(StringComparer.Ordinal); 296Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal); 317Dictionary<string, JsonNode> result = new(comparer ?? StringComparer.Ordinal); 336Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal);
Microsoft.TemplateSearch.Common (16)
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (4)
264var propertyIndexes = new Dictionary<string, int>(StringComparer.Ordinal); 296Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal); 317Dictionary<string, JsonNode> result = new(comparer ?? StringComparer.Ordinal); 336Dictionary<string, string> result = new(comparer ?? StringComparer.Ordinal);
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (7)
179Dictionary<string, IBaselineInfo> baselineInfo = new Dictionary<string, IBaselineInfo>(); 225Dictionary<string, string> tags = new Dictionary<string, string>(); 238Dictionary<string, ICacheTag> legacyTags = new Dictionary<string, ICacheTag>(); 258Dictionary<string, ParameterChoice> choicesAndDescriptions = new Dictionary<string, ParameterChoice>(StringComparer.OrdinalIgnoreCase); 259Dictionary<string, string> legacyChoices = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 284Dictionary<string, ICacheParameter> legacyParams = new Dictionary<string, ICacheParameter>(); 363Dictionary<string, ParameterChoice> choices = new Dictionary<string, ParameterChoice>(StringComparer.OrdinalIgnoreCase);
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (3)
31Dictionary<string, object> data = new Dictionary<string, object>(); 156Dictionary<string, PackToTemplateEntry> workingPackToTemplateMap = new(); 225Dictionary<string, object> workingAdditionalData = new(StringComparer.OrdinalIgnoreCase);
TemplateSearchCache\TemplateSearchCache.Json.cs (1)
78Dictionary<string, object> additionalData = new(StringComparer.OrdinalIgnoreCase);
TemplateSearchCoordinator.cs (1)
24Dictionary<string, ITemplateSearchProvider> configuredProviders = new Dictionary<string, ITemplateSearchProvider>();
Microsoft.TestPlatform.CommunicationUtilities (72)
_generated\104\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (4)
274if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>)) 278if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>)) 282if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>)) 286if (type == typeof(global::System.Collections.Generic.Dictionary<string, string>))
_generated\20\TestPlatformJsonContext.DiscoveryCompletePayload.g.cs (3)
213var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>> 228AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel.DiscoveryCompletePayload).GetProperty("DiscoveredExtensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>), global::System.Array.Empty<global::System.Type>(), null), 231properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>>(options, info8);
_generated\29\TestPlatformJsonContext.DiscoveryCriteria.g.cs (3)
94var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>> 109AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.DiscoveryCriteria).GetProperty("AdapterSourceMap", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>), global::System.Array.Empty<global::System.Type>(), null), 112properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>>(options, info2);
_generated\40\TestPlatformJsonContext.TestRunCompleteEventArgs.g.cs (3)
215var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>> 230AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCompleteEventArgs).GetProperty("DiscoveredExtensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>), global::System.Array.Empty<global::System.Type>(), null), 233properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>>(options, info8);
_generated\41\TestPlatformJsonContext.TestRunCriteria.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunCriteria).GetProperty("AdapterSourceMap", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>>(options, info1);
_generated\63\TestPlatformJsonContext.DictionaryStringHashSetString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>>? _DictionaryStringHashSetString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>> DictionaryStringHashSetString 22get => _DictionaryStringHashSetString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>> Create_DictionaryStringHashSetString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>, string, global::System.Collections.Generic.HashSet<string>>(options, info); 47private void DictionaryStringHashSetStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.HashSet<string>>? value)
_generated\64\TestPlatformJsonContext.DictionaryStringIEnumerableString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>>? _DictionaryStringIEnumerableString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>> DictionaryStringIEnumerableString 22get => _DictionaryStringIEnumerableString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>> Create_DictionaryStringIEnumerableString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>, string, global::System.Collections.Generic.IEnumerable<string>>(options, info); 47private void DictionaryStringIEnumerableStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::System.Collections.Generic.IEnumerable<string>>? value)
_generated\65\TestPlatformJsonContext.DictionaryStringObject.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 22get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
_generated\66\TestPlatformJsonContext.DictionaryStringString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>? _DictionaryStringString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> DictionaryStringString 22get => _DictionaryStringString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> Create_DictionaryStringString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, string>, string, string>(options, info); 47private void DictionaryStringStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, string>? value)
DataCollectionRequestHandler.cs (1)
321var properties = new Dictionary<string, object?>
Json\Jsonite\Jsonite.cs (1)
994private readonly Dictionary<Type, Action<object>> writers;
Messages\DiscoveryCompletePayload.cs (1)
58public Dictionary<string, HashSet<string>>? DiscoveredExtensions { get; set; } = new();
ObjectModel\TestRunCriteriaWithSources.cs (2)
31public TestRunCriteriaWithSources(Dictionary<string, IEnumerable<string>> adapterSourceMap, string? package, string? runSettings, TestExecutionContext testExecutionContext) 42public Dictionary<string, IEnumerable<string>> AdapterSourceMap { get; private set; }
Serialization\DiscoveryCriteriaConverter.cs (2)
34var adapterSourceMap = DeserializeProperty<Dictionary<string, IEnumerable<string>>>(root, "AdapterSourceMap", options)
Serialization\DiscoveryCriteriaFactory.cs (1)
15Dictionary<string, IEnumerable<string>> adapterSourceMap,
Serialization\ObjectConverter.cs (5)
51internal static Dictionary<string, object?> ReadObject(ref Utf8JsonReader reader, JsonSerializerOptions options) 53var dict = new Dictionary<string, object?>(); 83|| typeToConvert == typeof(Dictionary<string, object>) 85|| typeToConvert == typeof(Dictionary<string, object?>)) 108var dict = new Dictionary<string, object>();
Serialization\TestRunCompleteEventArgsConverter.cs (1)
44result.DiscoveredExtensions = DeserializeProperty<Dictionary<string, HashSet<string>>>(root, "DiscoveredExtensions", options);
TestPlatformJsonContext.cs (3)
84[JsonSerializable(typeof(Dictionary<string, object>))] 86[JsonSerializable(typeof(Dictionary<string, string>))] 87[JsonSerializable(typeof(Dictionary<string, HashSet<string>>))]
Microsoft.TestPlatform.CoreUtilities (1)
Helpers\CommandLineArgumentsHelper.cs (1)
21var argsDictionary = new Dictionary<string, string?>();
Microsoft.TestPlatform.CrossPlatEngine (51)
Client\DiscoveryCriteriaExtensions.cs (1)
35private static void UpdateTestSources(IEnumerable<string> sources, Dictionary<string, IEnumerable<string>> adapterSourceMap)
Client\LoggerNameValueConfigurationManager.cs (1)
29public Dictionary<string, string?> NameValuePairs { get; } = new();
Client\Parallel\DiscoveryDataAggregator.cs (1)
46public Dictionary<string, HashSet<string>> DiscoveredExtensions { get; private set; } = new();
Client\Parallel\ParallelProxyDiscoveryManager.cs (2)
28private readonly Dictionary<string, TestRuntimeProviderInfo> _sourceToTestHostProviderMap; 205private List<ProviderSpecificWorkload<DiscoveryCriteria>> SplitToWorkloads(DiscoveryCriteria discoveryCriteria, Dictionary<string, TestRuntimeProviderInfo> sourceToTestHostProviderMap)
Client\Parallel\ParallelProxyExecutionManager.cs (3)
33private readonly Dictionary<string, TestRuntimeProviderInfo> _sourceToTestHostProviderMap; 194private List<ProviderSpecificWorkload<TestRunCriteria>> SplitToWorkloads(TestRunCriteria testRunCriteria, Dictionary<string, TestRuntimeProviderInfo> sourceToTestHostProviderMap) 237Dictionary<string, TestCase[]> sourceToTestCasesMap = testRunCriteria.Tests.GroupBy(t => t.Source).ToDictionary(k => k.Key, v => v.ToArray());
Client\Parallel\ParallelRunDataAggregator.cs (3)
65public Dictionary<string, HashSet<string>> DiscoveredExtensions { get; private set; } 75var testOutcomeMap = new Dictionary<TestOutcome, long>(); 147Dictionary<string, HashSet<string>>? discoveredExtensions)
Client\ProxyOperationManager.cs (1)
227var envVars = InferRunSettingsHelper.GetEnvironmentVariables(runSettings);
Client\TestLoggerManager.cs (9)
151var parameters = GetParametersFromConfigurationElement(logger.Configuration); 353internal bool InitializeLoggerByUri(Uri uri, Dictionary<string, string?>? parameters) 532private static Dictionary<string, string?> GetParametersFromConfigurationElement(XmlElement? configuration) 545private bool InitializeLoggerByType(string assemblyQualifiedName, string codeBase, Dictionary<string, string?> parameters) 614private bool InitializeKnownLogger(ITestLogger logger, Uri uri, Dictionary<string, string?>? parameters) 633private bool InitializeLogger(object? logger, string? extensionUri, Dictionary<string, string?>? parameters) 683private Dictionary<string, string?> UpdateLoggerParameters(Dictionary<string, string?>? parameters) 685var loggerParams = parameters is not null
Client\TestRunCriteriaExtensions.cs (1)
76private static void UpdateTestSources(IEnumerable<string> sources, Dictionary<string, IEnumerable<string>> adapterSourceMap)
DataCollection\InProcDataCollectionExtensionManager.cs (1)
264var properties = new Dictionary<string, object?>
DataCollection\ProxyOutOfProcDataCollectionManager.cs (1)
22private readonly Dictionary<Guid, Collection<AttachmentSet>> _attachmentsCache;
Discovery\DiscovererEnumerator.cs (5)
129var discovererToSourcesMap = GetDiscovererToSourcesMap(extensionAssembly, sources, logger, _assemblyProperties); 196Dictionary<LazyExtension<ITestDiscoverer, ITestDiscovererCapabilities>, IEnumerable<string>> discovererToSourcesMap, 352internal static Dictionary<LazyExtension<ITestDiscoverer, ITestDiscovererCapabilities>, IEnumerable<string>>? GetDiscovererToSourcesMap( 372var result = new Dictionary<LazyExtension<ITestDiscoverer, ITestDiscovererCapabilities>, IEnumerable<string>>(); 457var assemblyTypeToSoucesMap = new Dictionary<AssemblyType, IList<string>>()
Discovery\DiscoveryManager.cs (1)
110var verifiedExtensionSourceMap = new Dictionary<string, IEnumerable<string>>();
Execution\BaseRunTests.cs (1)
367var executorCache = new Dictionary<string, LazyExtension<ITestExecutor, ITestExecutorCapabilities>>();
Execution\ExecutionManager.cs (1)
101Dictionary<string, IEnumerable<string>> adapterSourceMap,
Execution\RunTestsWithSources.cs (10)
29private readonly Dictionary<string, IEnumerable<string>> _adapterSourceMap; 31private Dictionary<Tuple<Uri, string>, IEnumerable<string>>? _executorUriVsSourceList; 35public RunTestsWithSources(IRequestData requestData, Dictionary<string, IEnumerable<string>> adapterSourceMap, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler) 51internal RunTestsWithSources(IRequestData requestData, Dictionary<string, IEnumerable<string>> adapterSourceMap, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, Dictionary<Tuple<Uri, string>, IEnumerable<string>>? executorUriVsSourceList) 134private Dictionary<Tuple<Uri, string>, IEnumerable<string>> GetExecutorVsSourcesList(IMessageLogger logger) 136var result = new Dictionary<Tuple<Uri, string>, IEnumerable<string>>(); 138var verifiedExtensionSourceMap = new Dictionary<string, IEnumerable<string>>(); 158var discovererToSourcesMap = DiscovererEnumerator.GetDiscovererToSourcesMap( 223var properties = new Dictionary<string, object?>
Execution\RunTestsWithTests.cs (5)
25private Dictionary<Tuple<Uri, string>, List<TestCase>>? _executorUriVsTestList; 43internal RunTestsWithTests(IRequestData requestData, IEnumerable<TestCase> testCases, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, Dictionary<Tuple<Uri, string>, List<TestCase>>? executorUriVsTestList) 106var properties = new Dictionary<string, object?> 117private static Dictionary<Tuple<Uri, string>, List<TestCase>> GetExecutorVsTestCaseList(IEnumerable<TestCase> tests) 119var result = new Dictionary<Tuple<Uri, string>, List<TestCase>>();
Execution\TestRunCache.cs (1)
27private readonly Dictionary<TestOutcome, long> _runStats;
TestEngine.cs (1)
387var runSettingsEnvVariables = InferRunSettingsHelper.GetEnvironmentVariables(runSettings);
Utilities\TestSourcesUtility.cs (2)
23internal static IEnumerable<string>? GetSources(Dictionary<string, IEnumerable<string>?>? adapterSourceMap) 45internal static string? GetDefaultCodebasePath(Dictionary<string, IEnumerable<string>?> adapterSourceMap)
Microsoft.TestPlatform.Extensions.BlameDataCollector (3)
BlameCollector.cs (1)
519Dictionary<Guid, BlameTestObject> testObjectDictionaryCopy;
Interfaces\IBlameReaderWriter.cs (1)
18string WriteTestSequence(List<Guid> testSequence, Dictionary<Guid, BlameTestObject> testObjectDictionary, string filePath);
XmlReaderWriter.cs (1)
59public string WriteTestSequence(List<Guid> testSequence, Dictionary<Guid, BlameTestObject> testObjectDictionary, string filePath)
Microsoft.TestPlatform.Filter.Source (3)
FastFilter.cs (3)
32internal FastFilter(Dictionary<string, ISet<string>> filterProperties, Operation filterOperation, Operator filterOperator) 55internal Dictionary<string, ISet<string>> FilterProperties { get; } 208private readonly Dictionary<string, ISet<string>> _filterDictionaryBuilder = new Dictionary<string, ISet<string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.TestPlatform.PlatformAbstractions (3)
common\Tracing\PlatformEqtTrace.cs (3)
39private static readonly Dictionary<TraceLevel, SourceLevels> TraceSourceLevelsMap = 53private static readonly Dictionary<SourceLevels, TraceLevel> SourceTraceLevelsMap = 68private static readonly Dictionary<TraceLevel, TraceEventType> TraceLevelEventTypeMap =
Microsoft.TestPlatform.TestHostRuntimeProvider (3)
Hosting\DefaultTestHostManager.cs (3)
430Dictionary<string, string> selectedExtensions = new(); 431Dictionary<string, Version?> highestFileVersions = new(); 432Dictionary<string, Version> conflictingExtensions = new();
Microsoft.TestPlatform.Utilities (3)
InferRunSettingsHelper.cs (3)
338public static bool TryGetLegacySettingElements(string runsettingsXml, out Dictionary<string, string> legacySettingsTelemetry) 422public static Dictionary<string, string?>? GetEnvironmentVariables(string? runSettings) 424Dictionary<string, string?>? environmentVariables = null;
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
ConsoleParameters.cs (1)
46public Dictionary<string, string?> EnvironmentVariables { get; set; } = new();
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\Collection.vb (1)
19Private m_KeyedNodesHash As Generic.Dictionary(Of String, Node) 'Hashtable mapping key (string) -> Node, contains only items added to the collection with a key
Microsoft\VisualBasic\CompilerServices\CacheDict.vb (1)
12Private ReadOnly _dict As Dictionary(Of TKey, KeyInfo)
Microsoft.VisualStudio.TestPlatform.Client (2)
TestPlatform.cs (2)
78Dictionary<string, SourceDetail> sourceToSourceDetailMap, 100Dictionary<string, SourceDetail> sourceToSourceDetailMap,
Microsoft.VisualStudio.TestPlatform.Common (93)
DataCollection\DataCollectionManager.cs (6)
121internal Dictionary<Type, DataCollectorInformation> RunDataCollectors { get; private set; } 181var executionEnvironmentVariables = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 206var dataCollectorEnvironmentVariables = GetEnvironmentVariables(out _); 651private Dictionary<string, DataCollectionEnvironmentVariable> GetEnvironmentVariables(out bool unloadedAnyCollector) 655var dataCollectorEnvironmentVariable = new Dictionary<string, DataCollectionEnvironmentVariable>(StringComparer.OrdinalIgnoreCase); 698Dictionary<string, DataCollectionEnvironmentVariable> dataCollectorEnvironmentVariables)
DataCollection\TestPlatformDataCollectionEvents.cs (1)
21private readonly Dictionary<Type, EventInvoker> _eventArgsToEventInvokerMap;
ExtensionFramework\DataCollectionExtensionManager.cs (1)
35IEnumerable<LazyExtension<ObjectModel.DataCollection.DataCollector, Dictionary<string, object>>> unfilteredTestExtensions,
ExtensionFramework\TestDiscoveryExtensionManager.cs (2)
28IEnumerable<LazyExtension<ITestDiscoverer, Dictionary<string, object>>> unfilteredDiscoverers) 40public IEnumerable<LazyExtension<ITestDiscoverer, Dictionary<string, object>>> UnfilteredDiscoverers { get; private set; }
ExtensionFramework\TestExecutorExtensionManager.cs (2)
36IEnumerable<LazyExtension<ITestExecutor, Dictionary<string, object>>> unfilteredTestExtensions, 65var cache = new Dictionary<string, LazyExtension<TExecutor1, TValue>>();
ExtensionFramework\TestExtensionManager.cs (3)
44IEnumerable<LazyExtension<TExtension, Dictionary<string, object>>> unfilteredTestExtensions, 65public IEnumerable<LazyExtension<TExtension, Dictionary<string, object>>> UnfilteredTestExtensions 88public Dictionary<Uri, LazyExtension<TExtension, TMetadata>> TestExtensionByUri
ExtensionFramework\TestLoggerExtensionManager.cs (2)
35IEnumerable<LazyExtension<ITestLogger, Dictionary<string, object>>> unfilteredTestExtensions, 56out IEnumerable<LazyExtension<ITestLogger, Dictionary<string, object>>> unfilteredTestExtensions,
ExtensionFramework\TestPluginCache.cs (9)
31private readonly Dictionary<string, Assembly?> _resolvedAssemblies = new(); 119/// The <see cref="Dictionary{TKey, TValue}"/>. of test plugin info. 121public Dictionary<string, TPluginInfo>? DiscoverTestExtensions<TPluginInfo, TExtension>( 132Dictionary<string, TPluginInfo>? pluginInfos; 310/// The <see cref="Dictionary{TKey, TValue>"/>. 312internal Dictionary<string, TPluginInfo> GetTestExtensions<TPluginInfo, TExtension>( 323var extensions = TestExtensions.GetExtensionsDiscoveredFromAssembly( 332var pluginInfos = GetTestExtensions<TPluginInfo, TExtension>(new List<string>() { extensionAssembly }); 456private Dictionary<string, TPluginInfo> GetTestExtensions<TPluginInfo, TExtension>(IEnumerable<string> extensionPaths) where TPluginInfo : TestPluginInformation
ExtensionFramework\TestPluginDiscoverer.cs (5)
37public static Dictionary<string, TPluginInfo> GetTestExtensionsInformation<TPluginInfo, TExtension>(IEnumerable<string> extensionPaths) where TPluginInfo : TestPluginInformation 41var pluginInfos = new Dictionary<string, TPluginInfo>(); 79Dictionary<string, TPluginInfo> pluginInfos) 127private static void GetTestExtensionsFromAssembly<TPluginInfo, TExtension>(Assembly assembly, Dictionary<string, TPluginInfo> pluginInfos, string filePath) 209Dictionary<string, TPluginInfo> extensionCollection,
ExtensionFramework\TestPluginManager.cs (9)
113out IEnumerable<LazyExtension<TExtension, Dictionary<string, object>>> unfiltered, 116var extensions = TestPluginCache.Instance.DiscoverTestExtensions<TPluginInfo, TExtension>(endsWithPattern); 149out IEnumerable<LazyExtension<TExtension, Dictionary<string, object>>> unfiltered, 153var extensions = TestPluginCache.Instance.GetTestExtensions<TPluginInfo, TExtension>(extensionAssembly, skipCache); 163private static IEnumerable<TestPluginInformation> GetValuesFromDictionary<T>(Dictionary<string, T> dictionary) 200Dictionary<string, TPluginInfo> testPluginInfo, 201out IEnumerable<LazyExtension<TExtension, Dictionary<string, object>>> unfiltered, 206var unfilteredExtensions = new List<LazyExtension<TExtension, Dictionary<string, object>>>(); 218unfilteredExtensions.Add(new LazyExtension<TExtension, Dictionary<string, object>>(plugin, new Dictionary<string, object>()));
ExtensionFramework\Utilities\TestExtensions.cs (39)
25internal Dictionary<string, TestDiscovererPluginInformation>? TestDiscoverers { get; set; } 35internal Dictionary<string, TestExecutorPluginInformation>? TestExecutors { get; set; } 45internal Dictionary<string, TestExecutorPluginInformation2>? TestExecutors2 { get; set; } 55internal Dictionary<string, TestSettingsProviderPluginInformation>? TestSettingsProviders { get; set; } 65internal Dictionary<string, TestLoggerPluginInformation>? TestLoggers { get; set; } 75internal Dictionary<string, TestRuntimePluginInformation>? TestHosts { get; set; } 85internal Dictionary<string, DataCollectorConfig>? DataCollectors { get; set; } 102internal static Dictionary<string, HashSet<string>> CreateMergedDictionary( 103Dictionary<string, HashSet<string>>? first, 104Dictionary<string, HashSet<string>>? second) 126var result = first!.Where(kvp => kvp.Value != null && kvp.Value.Count > 0) 162Dictionary<string, HashSet<string>> extensions) 179/// The <see cref="Dictionary{TKey, TValue}"/> of extensions discovered 181internal Dictionary<string, TPluginInfo>? AddExtension<TPluginInfo>(Dictionary<string, TPluginInfo>? newExtensions) 184var existingExtensions = GetTestExtensionCache<TPluginInfo>(); 252internal Dictionary<string, TPluginInfo>? GetTestExtensionCache<TPluginInfo>() where TPluginInfo : TestPluginInformation 258return (Dictionary<string, TPluginInfo>?)(object?)TestDiscoverers; 262return (Dictionary<string, TPluginInfo>?)(object?)TestExecutors; 266return (Dictionary<string, TPluginInfo>?)(object?)TestExecutors2; 270return (Dictionary<string, TPluginInfo>?)(object?)TestLoggers; 274return (Dictionary<string, TPluginInfo>?)(object?)TestSettingsProviders; 278return (Dictionary<string, TPluginInfo>?)(object?)TestHosts; 282return (Dictionary<string, TPluginInfo>?)(object?)DataCollectors; 376internal Dictionary<string, HashSet<string>> GetCachedExtensions() 378var extensions = new Dictionary<string, HashSet<string>>(); 418/// The <see cref="Dictionary{TKey, TValue}"/>. of extensions discovered in assembly 420internal static Dictionary<string, TPluginInfo> GetExtensionsDiscoveredFromAssembly<TPluginInfo>( 421Dictionary<string, TPluginInfo>? extensionCollection, 424var extensions = new Dictionary<string, TPluginInfo>(); 448private void SetTestExtensionCache<TPluginInfo>(Dictionary<string, TPluginInfo> testPluginInfos) where TPluginInfo : TestPluginInformation 454TestDiscoverers = (Dictionary<string, TestDiscovererPluginInformation>)(object)testPluginInfos; 458TestExecutors = (Dictionary<string, TestExecutorPluginInformation>)(object)testPluginInfos; 462TestExecutors2 = (Dictionary<string, TestExecutorPluginInformation2>)(object)testPluginInfos; 466TestLoggers = (Dictionary<string, TestLoggerPluginInformation>)(object)testPluginInfos; 470TestSettingsProviders = (Dictionary<string, TestSettingsProviderPluginInformation>)(object)testPluginInfos; 474TestHosts = (Dictionary<string, TestRuntimePluginInformation>)(object)testPluginInfos; 478DataCollectors = (Dictionary<string, DataCollectorConfig>)(object)testPluginInfos; 483Dictionary<string, HashSet<string>> extensionDict,
Hosting\TestRunTimeExtensionManager.cs (2)
37IEnumerable<LazyExtension<ITestRuntimeProvider, Dictionary<string, object>>> unfilteredTestExtensions, 57out IEnumerable<LazyExtension<ITestRuntimeProvider, Dictionary<string, object>>> unfilteredTestExtensions,
Interfaces\Engine\TesthostProtocol\IExecutionManager.cs (1)
34void StartTestRun(Dictionary<string, IEnumerable<string>> adapterSourceMap, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEvents, IInternalTestRunEventsHandler eventHandler);
RunSettings.cs (1)
32private readonly Dictionary<string, LazyExtension<ISettingsProvider, ISettingsProviderCapabilities>> _settings;
SettingsProvider\SettingsProviderExtensionManager.cs (3)
52IEnumerable<LazyExtension<ISettingsProvider, Dictionary<string, object>>> unfilteredSettingsProviders, 89public IEnumerable<LazyExtension<ISettingsProvider, Dictionary<string, object>>> UnfilteredSettingsProviders { get; } 94public Dictionary<string, LazyExtension<ISettingsProvider, ISettingsProviderCapabilities>> SettingsProvidersMap { get; }
Utilities\AssemblyResolver.cs (1)
28private readonly Dictionary<string, Assembly?> _resolvedAssemblies = new();
Utilities\FakesUtilities.cs (1)
145var dict = new Dictionary<string, FrameworkVersion>();
Utilities\SimpleJSON.cs (5)
81private Dictionary<string, JSONNode>.Enumerator _object; 92public Enumerator(Dictionary<string, JSONNode>.Enumerator aDictEnum) 122public ValueEnumerator(Dictionary<string, JSONNode>.Enumerator aDictEnum) : this(new Enumerator(aDictEnum)) { } 132public KeyEnumerator(Dictionary<string, JSONNode>.Enumerator aDictEnum) : this(new Enumerator(aDictEnum)) { } 840private readonly Dictionary<string, JSONNode> _dict = new();
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
HtmlLogger.cs (2)
38private Dictionary<string, string?>? _parametersDictionary; 140public void Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
ObjectModel\TestElementAggregation.cs (1)
25private readonly Dictionary<Guid, TestLink> _testLinks = new();
TrxLogger.cs (2)
94private Dictionary<string, string?>? _parametersDictionary; 140public void Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)
XML\XmlPersistence.cs (2)
88private static readonly Dictionary<Type, IEnumerable<FieldPersistenceInfo>> TypeToPersistenceInfoCache = 94private static readonly Dictionary<string, string> QueryCache = new();
Microsoft.VisualStudio.TestPlatform.ObjectModel (63)
Client\DiscoveryCriteria.cs (1)
152public Dictionary<string, IEnumerable<string>> AdapterSourceMap { get; private set; }
Client\Events\DiscoveryCompleteEventArgs.cs (1)
77public Dictionary<string, HashSet<string>>? DiscoveredExtensions { get; set; } = new();
Client\Events\TestRunCompleteEventArgs.cs (1)
136public Dictionary<string, HashSet<string>>? DiscoveredExtensions { get; set; }
Client\Interfaces\ITestPlatform.cs (2)
49Dictionary<string, SourceDetail> sourceToSourceDetailMap, 67Dictionary<string, SourceDetail> sourceToSourceDetailMap,
Client\TestRunCriteria.cs (2)
289Dictionary<string, IEnumerable<string>> adapterSourceMap, 513public Dictionary<string, IEnumerable<string>>? AdapterSourceMap { get; private set; }
DataCollector\Common\FileHelper.cs (1)
14private static readonly Dictionary<char, object?> InvalidFileNameChars;
Logger\ITestLoggerWithParams.cs (1)
20void Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters);
Navigation\FullSymbolReader.cs (8)
30private readonly Dictionary<string, IDiaSymbol> _typeSymbols = new(); 38private readonly Dictionary<string, Dictionary<string, IDiaSymbol>> _methodSymbols = new(); 268Dictionary<string, IDiaSymbol> methodSymbolsForType = new(); 382Dictionary<string, IDiaSymbol> methodSymbolsForType; 387if (_methodSymbols.TryGetValue(symbolName, out var existingMethodSymbols)) 453private static void UpdateMethodSymbolCache(string methodName, IDiaSymbol methodSymbol, Dictionary<string, IDiaSymbol> methodSymbolCache) 488foreach (Dictionary<string, IDiaSymbol> methodSymbolsForType in _methodSymbols.Values)
Navigation\PortableSymbolReader.cs (5)
25private readonly Dictionary<string, Dictionary<string, DiaNavigationData>> _methodsNavigationDataForType = new(); 46foreach (var methodsNavigationData in _methodsNavigationDataForType.Values) 68if (_methodsNavigationDataForType.TryGetValue(declaringTypeName, out var methodDict) 110var methodsNavigationData = new Dictionary<string, DiaNavigationData>();
Nuget.Frameworks\FrameworkNameProvider.cs (24)
43private readonly Dictionary<string, string> _identifierSynonyms; 45private readonly Dictionary<string, string> _identifierToShortName; 46private readonly Dictionary<string, string> _profilesToShortName; 47private readonly Dictionary<string, string> _identifierShortToLong; 48private readonly Dictionary<string, string> _profileShortToLong; 51private readonly Dictionary<int, HashSet<NuGetFramework>> _portableFrameworks; 52private readonly Dictionary<int, HashSet<NuGetFramework>> _portableOptionalFrameworks; 55private readonly Dictionary<int, HashSet<FrameworkRange>> _portableCompatibilityMappings; 58private readonly Dictionary<NuGetFramework, HashSet<NuGetFramework>> _equivalentFrameworks; 61private readonly Dictionary<string, Dictionary<string, HashSet<string>>> _equivalentProfiles; 64private readonly Dictionary<string, HashSet<OneWayCompatibilityMappingEntry>> _compatibilityMappings; 67private readonly Dictionary<string, HashSet<string>> _subSetFrameworks; 70private readonly Dictionary<string, int> _nonPackageBasedFrameworkPrecedence; 73private readonly Dictionary<string, int> _packageBasedFrameworkPrecedence; 76private readonly Dictionary<string, int> _equivalentFrameworkPrecedence; 79private readonly Dictionary<NuGetFramework, NuGetFramework> _shortNameRewrites; 80private readonly Dictionary<NuGetFramework, NuGetFramework> _fullNameRewrites; 96_equivalentProfiles = new Dictionary<string, Dictionary<string, HashSet<string>>>(StringComparer.OrdinalIgnoreCase); 575if (_equivalentProfiles.TryGetValue(fw.Framework, out Dictionary<string, HashSet<string>>? eqProfiles)) 767if (!_equivalentProfiles.TryGetValue(frameworkIdentifier, out Dictionary<string, HashSet<string>>? profileMappings)) 1007var precedence = xPackagesBased ? _packageBasedFrameworkPrecedence : _nonPackageBasedFrameworkPrecedence; 1017private static int CompareUsingPrecedence(NuGetFramework? x, NuGetFramework? y, Dictionary<string, int> precedence) 1125var superSetFrameworks = _subSetFrameworks
Nuget.Frameworks\FrameworkReducer.cs (5)
355var pclToFrameworks = ExplodePortableFrameworks(reduced); 382var pclToFrameworks = ExplodePortableFrameworks(reduced); 385var scores = new Dictionary<NuGetFramework, int>(); 424private Dictionary<NuGetFramework, IEnumerable<NuGetFramework>> ExplodePortableFrameworks(IEnumerable<NuGetFramework> pcls) 426var result = new Dictionary<NuGetFramework, IEnumerable<NuGetFramework>>();
Nuget.Frameworks\NoAllocEnumerateExtensions.cs (5)
277/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 281/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 282/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 344private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 353else if (dictionary is Dictionary<TKey, TValue> concrete)
RunSettings\TestRunParameters.cs (2)
24internal static Dictionary<string, object> FromXml(XmlReader reader) 26var testParameters = new Dictionary<string, object>();
TestProperty\TestProperty.cs (1)
255private static readonly Dictionary<string, KeyValuePair<TestProperty, HashSet<Type>>> Properties = new();
TestServiceLocator.cs (1)
16public static Dictionary<string, object> Instances { get; } = new Dictionary<string, object>();
Utilities\XmlRunSettingsUtilities.cs (3)
152public static Dictionary<string, object> GetTestRunParameters(string? settingsXml) 154var nodeValue = GetNodeValue(settingsXml, Constants.TestRunParametersName, TestRunParameters.FromXml); 155if (nodeValue == default(Dictionary<string, object>))
Microsoft.Web.XmlTransform (7)
XmlAttributePreservationDict.cs (2)
18private Dictionary<string, string> leadingSpaces = new Dictionary<string, string>(); 129Dictionary<string, bool> attributeExists = new Dictionary<string, bool>();
XmlTransforms.cs (5)
208public List<Dictionary<string, string>> DictionaryList { get; set; } 215DictionaryList = new List<Dictionary<string, string>>(capacity); 259List<Dictionary<string, string> > parameters = null; 500List<Dictionary<string, string>> parameters) 551Dictionary<string, string> paramDictionary = new Dictionary<string, string>(4, StringComparer.OrdinalIgnoreCase);
Microsoft.Win32.SystemEvents (1)
Microsoft\Win32\SystemEvents.cs (1)
62private static Dictionary<object, List<SystemEventInvokeInfo>>? s_handlers;
Mono.Cecil (65)
Mono.Cecil.Cil\CodeWriter.cs (8)
27 readonly Dictionary<uint, MetadataToken> standalone_signatures; 28 readonly Dictionary<ByteBuffer, RVA> tiny_method_bodies; 330 Dictionary<Instruction, int> stack_sizes = null; 347 void ComputeExceptionHandlerStackSize (ref Dictionary<Instruction, int> stack_sizes) 366 static void AddExceptionStackSize (Instruction handler_start, ref Dictionary<Instruction, int> stack_sizes) 377 static void ComputeStackSize (Instruction instruction, ref Dictionary<Instruction, int> stack_sizes, ref int stack_size, ref int max_stack) 391 static void CopyBranchStackSize (Instruction instruction, ref Dictionary<Instruction, int> stack_sizes, int stack_size) 409 static void CopyBranchStackSize (ref Dictionary<Instruction, int> stack_sizes, Instruction target, int stack_size)
Mono.Cecil.Cil\PortablePdb.cs (2)
608 static readonly Dictionary<Guid, DocumentLanguage> guid_language = new Dictionary<Guid, DocumentLanguage> (); 609 static readonly Dictionary<DocumentLanguage, Guid> language_guid = new Dictionary<DocumentLanguage, Guid> ();
Mono.Cecil.Cil\Symbols.cs (2)
780 var instruction_mapping = new Dictionary<Instruction, SequencePoint> (); 784 var offset_mapping = new Dictionary<int, SequencePoint> (sequence_points.Count);
Mono.Cecil.Metadata\Buffers.cs (4)
304 readonly Dictionary<Guid, uint> guids = new Dictionary<Guid, uint> (); 335 protected Dictionary<string, uint> strings = new Dictionary<string, uint> (StringComparer.Ordinal); 388 static List<KeyValuePair<string, uint>> SortStrings (Dictionary<string, uint> strings) 432 readonly Dictionary<ByteBuffer, uint> blobs = new Dictionary<ByteBuffer, uint> (new ByteBufferEqualityComparer ());
Mono.Cecil.Metadata\StringHeap.cs (1)
19 readonly Dictionary<uint, string> strings = new Dictionary<uint, string> ();
Mono.Cecil\AssemblyReader.cs (11)
933 static Collection<TValue> AddMapping<TKey, TValue> (Dictionary<TKey, Collection<TValue>> cache, TKey key, TValue value) 1029 var class_layouts = metadata.ClassLayouts = new Dictionary<uint, Row<ushort, uint>> (length); 1404 var field_rvas = metadata.FieldRVAs = new Dictionary<uint, uint> (length); 1434 var field_layouts = metadata.FieldLayouts = new Dictionary<uint, uint> (length); 1686 var semantics = metadata.Semantics = new Dictionary<uint, Row<MethodSemanticsAttributes, MetadataToken>> (0); 1873 var pinvokes = metadata.PInvokes = new Dictionary<uint, Row<PInvokeAttributes, uint, uint>> (length); 1948 Dictionary<MetadataToken, Range []> InitializeRanges (Table table, Func<MetadataToken> get_next) 1951 var ranges = new Dictionary<MetadataToken, Range []> (length); 1978 static void AddRange (Dictionary<MetadataToken, Range []> ranges, MetadataToken owner, Range range) 2400 var constants = metadata.Constants = new Dictionary<MetadataToken, Row<ElementType, uint>> (length); 2591 var marshals = metadata.FieldMarshals = new Dictionary<MetadataToken, uint> (length);
Mono.Cecil\AssemblyWriter.cs (6)
835 readonly Dictionary<TypeRefRow, MetadataToken> type_ref_map; 836 readonly Dictionary<uint, MetadataToken> type_spec_map; 837 readonly Dictionary<MemberRefRow, MetadataToken> member_ref_map; 838 readonly Dictionary<MethodSpecRow, MetadataToken> method_spec_map; 891 readonly Dictionary<ImportScopeRow, MetadataToken> import_scope_map; 892 readonly Dictionary<string, MetadataToken> document_map;
Mono.Cecil\BaseAssemblyResolver.cs (4)
78 internal static readonly Lazy<Dictionary<string, string>> TrustedPlatformAssemblies = new Lazy<Dictionary<string, string>> (CreateTrustedPlatformAssemblyMap); 187 static Dictionary<string, string> CreateTrustedPlatformAssemblyMap () 189 var result = new Dictionary<string, string> (StringComparer.OrdinalIgnoreCase);
Mono.Cecil\Import.cs (1)
141 static readonly Dictionary<Type, ElementType> type_etype_mapping = new Dictionary<Type, ElementType> (18) {
Mono.Cecil\MetadataSystem.cs (22)
44 internal Dictionary<uint, Collection<uint>> NestedTypes; 45 internal Dictionary<uint, uint> ReverseNestedTypes; 46 internal Dictionary<uint, Collection<Row<uint, MetadataToken>>> Interfaces; 47 internal Dictionary<uint, Row<ushort, uint>> ClassLayouts; 48 internal Dictionary<uint, uint> FieldLayouts; 49 internal Dictionary<uint, uint> FieldRVAs; 50 internal Dictionary<MetadataToken, uint> FieldMarshals; 51 internal Dictionary<MetadataToken, Row<ElementType, uint>> Constants; 52 internal Dictionary<uint, Collection<MetadataToken>> Overrides; 53 internal Dictionary<MetadataToken, Range []> CustomAttributes; 54 internal Dictionary<MetadataToken, Range []> SecurityDeclarations; 55 internal Dictionary<uint, Range> Events; 56 internal Dictionary<uint, Range> Properties; 57 internal Dictionary<uint, Row<MethodSemanticsAttributes, MetadataToken>> Semantics; 58 internal Dictionary<uint, Row<PInvokeAttributes, uint, uint>> PInvokes; 59 internal Dictionary<MetadataToken, Range []> GenericParameters; 60 internal Dictionary<uint, Collection<Row<uint, MetadataToken>>> GenericConstraints; 63 internal Dictionary<uint, Collection<Row<uint, Range, Range, uint, uint, uint>>> LocalScopes; 65 internal Dictionary<uint, uint> StateMachineMethods; 66 internal Dictionary<MetadataToken, Row<Guid, uint, uint> []> CustomDebugInformations; 68 static Dictionary<string, Row<ElementType, bool>> primitive_value_types; 72 var types = new Dictionary<string, Row<ElementType, bool>> (18, StringComparer.Ordinal) {
Mono.Cecil\TypeDefinitionCollection.cs (1)
25 readonly Dictionary<Slot, TypeDefinition> name_cache;
Mono.Cecil\WindowsRuntimeProjections.cs (3)
131 static Dictionary<string, ProjectionInfo> projections; 133 static Dictionary<string, ProjectionInfo> Projections 140 var new_projections = new Dictionary<string, ProjectionInfo> {
Mono.Cecil.Mdb (8)
Mono.Cecil.Mdb\MdbReader.cs (1)
44 readonly Dictionary<string, Document> documents;
Mono.Cecil.Mdb\MdbWriter.cs (1)
41 readonly Dictionary<string, SourceFile> source_files;
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (5)
121 Dictionary<int, AnonymousScopeEntry> anonymous_scopes; 324 Dictionary<int, SourceFileEntry> source_file_hash; 325 Dictionary<int, CompileUnitEntry> compile_unit_hash; 328 Dictionary<int, MethodEntry> method_token_hash; 329 Dictionary<string, int> source_name_hash;
Mono.CompilerServices.SymbolWriter\MonoSymbolTable.cs (1)
1171 var local_names = new Dictionary<string, LocalVariableEntry> ();
Mono.Cecil.Pdb (21)
Microsoft.Cci.Pdb\PdbFile.cs (13)
40static Dictionary<string, int> LoadNameIndex(BitAccess bits, out int age, out Guid guid) { 41Dictionary<string, int> result = new Dictionary<string, int>(); 158Dictionary<string, int> nameIndex, 161Dictionary<string, PdbSource> sourceCache) 278Dictionary<string, int> nameIndex, 280Dictionary<string, PdbSource> sourceCache) 371Dictionary<string, PdbSource> sourceCache = new Dictionary<string, PdbSource>(); 374Dictionary<string, int> nameIndex = LoadNameIndex(bits, out pdbInfo.Age, out pdbInfo.Guid); 440Dictionary<string, int> nameIndex, PdbReader reader, Dictionary<uint, PdbTokenLine> tokenToSourceMapping, Dictionary<string,PdbSource> sourceCache) { 523Dictionary<string, int> nameIndex, PdbReader reader, Dictionary<string, PdbSource> sourceCache)
Microsoft.Cci.Pdb\PdbInfo.cs (1)
21public Dictionary<uint, PdbTokenLine> TokenToSourceMapping;
Mono.Cecil.Pdb\ModuleMetadata.cs (2)
155 Dictionary<uint, TypeDefinition> types; 156 Dictionary<uint, MethodDefinition> methods;
Mono.Cecil.Pdb\NativePdbReader.cs (3)
26 readonly Dictionary<string, Document> documents = new Dictionary<string, Document> (); 27 readonly Dictionary<uint, PdbFunction> functions = new Dictionary<uint, PdbFunction> (); 28 readonly Dictionary<PdbScope, ImportDebugInformation> imports = new Dictionary<PdbScope, ImportDebugInformation> ();
Mono.Cecil.Pdb\NativePdbWriter.cs (2)
28 readonly Dictionary<string, SymDocumentWriter> documents; 29 readonly Dictionary<ImportDebugInformation, MetadataToken> import_info_to_parent;
MSBuild (52)
OutOfProcTaskHostNode.cs (2)
99private Dictionary<string, string> _forwardEnvironmentBaseline; 106private Dictionary<string, string> _forwardGlobalParametersBaseline;
src\msbuild\src\Shared\NodePacketFactory.cs (1)
18private Dictionary<NodePacketType, PacketFactoryRecord> _packetFactories;
src\msbuild\src\Shared\TaskHostBuildRequest.cs (7)
20private Dictionary<string, string>?[]? _globalProperties; 32Dictionary<string, string>?[]? globalProperties, 60public Dictionary<string, string>?[]? GlobalProperties => _globalProperties; 75internal static Dictionary<string, string>?[]? ConvertGlobalProperties(IDictionary[]? globalProperties) 82var result = new Dictionary<string, string>?[globalProperties.Length]; 170_globalProperties = new Dictionary<string, string>?[length]; 175Dictionary<string, string>? dict = _globalProperties![i];
src\msbuild\src\Shared\TaskHostBuildResponse.cs (11)
23private List<Dictionary<string, TaskParameter>>? _targetOutputsPerProject; 29public TaskHostBuildResponse(int requestId, bool success, List<Dictionary<string, TaskParameter>>? targetOutputsPerProject) 48public List<Dictionary<string, TaskParameter>>? TargetOutputsPerProject => _targetOutputsPerProject; 62foreach (Dictionary<string, TaskParameter> projectOutputs in _targetOutputsPerProject) 64var dict = new Dictionary<string, ITaskItem[]>(projectOutputs.Count, StringComparer.OrdinalIgnoreCase); 87List<Dictionary<string, TaskParameter>>? outputs = null; 91outputs = new List<Dictionary<string, TaskParameter>>(engineResult.TargetOutputsPerProject.Count); 95var dict = new Dictionary<string, TaskParameter>(projectOutputs?.Count ?? 0, StringComparer.OrdinalIgnoreCase); 135_targetOutputsPerProject = new List<Dictionary<string, TaskParameter>>(count); 138Dictionary<string, TaskParameter>? dict = null; 147Dictionary<string, TaskParameter>? dict = _targetOutputsPerProject![i];
src\msbuild\src\Shared\TaskHostConfiguration.cs (10)
33private Dictionary<string, string> _buildProcessEnvironment; 112private Dictionary<string, TaskParameter> _taskParameters; 114private Dictionary<string, string> _globalParameters; 191Dictionary<string, string> globalParameters, 204_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 274public Dictionary<string, string> BuildProcessEnvironment 297internal void SetResolvedBuildProcessEnvironment(Dictionary<string, string> environment) 318internal void SetResolvedGlobalParameters(Dictionary<string, string> globalParameters) 459public Dictionary<string, TaskParameter> TaskParameters 469public Dictionary<string, string> GlobalProperties
src\msbuild\src\Shared\TaskHostTaskComplete.cs (5)
85private Dictionary<string, TaskParameter> _taskOutputParameters = null; 90private Dictionary<string, string> _buildProcessEnvironment = null; 135_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 197public Dictionary<string, TaskParameter> TaskOutputParameters 214public Dictionary<string, string> BuildProcessEnvironment
src\msbuild\src\Shared\TaskParameter.cs (2)
571private Dictionary<string, string> _customEscapedMetadata = null; 589_customEscapedMetadata = nonGenericEscapedMetadata as Dictionary<string, string>;
src\msbuild\src\Shared\TypeLoader.cs (3)
280Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length); 304private static void AddAssembliesToDictionary(Dictionary<string, string> assembliesDictionary, params string[][] assemblyPathArrays) 406private Dictionary<string, Type> _publicTypeNameToType;
XMake.cs (11)
900Dictionary<string, string> globalProperties = null; 901Dictionary<string, string> restoreProperties = null; 1571Dictionary<string, string> globalProperties, 1572Dictionary<string, string> restoreProperties, 2026private static bool PrintTargets(string projectFile, string toolsVersion, Dictionary<string, string> globalProperties, TextWriter targetsWriter, ProjectCollection projectCollection) 2218private static BuildResult ExecuteRestore(string projectFile, string toolsVersion, BuildManager buildManager, Dictionary<string, string> globalProperties, bool saveProjectResult = false) 2221Dictionary<string, string> restoreGlobalProperties = new Dictionary<string, string>(globalProperties); 2413ref Dictionary<string, string> globalProperties, 2435ref Dictionary<string, string> restoreProperties, 3770internal static Dictionary<string, string> ProcessPropertySwitch(string[] parameters) 3772Dictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MSBuild.Coordinator (2)
CoordinatorServer.cs (2)
27private readonly Dictionary<Guid, ConnectedClient> _clientsById = []; 28private readonly Dictionary<Guid, BuildGrant> _activeRootGrantsById = [];
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
88[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.Dictionary<,>))]
netstandard (1)
netstandard.cs (1)
107[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.Dictionary<,>))]
NuGet.Build.Tasks (26)
GenerateRestoreGraphFileTask.cs (2)
36protected override Dictionary<string, string> GetOptions() 38Dictionary<string, string> options = base.GetOptions();
GetCentralPackageVersionsTask.cs (1)
55var properties = new Dictionary<string, string>();
GetGlobalPropertyValueTask.cs (1)
38var dictionaryWithOrdinal = globalProperties.ToDictionary(i => i.Key, i => i.Value, StringComparer.OrdinalIgnoreCase);
GetRestoreDotnetCliToolsTask.cs (3)
75var properties = new Dictionary<string, string>(); 94var packageProperties = new Dictionary<string, string>(); 104var restoreProperties = new Dictionary<string, string>();
GetRestoreFrameworkReferencesTask.cs (1)
52var properties = new Dictionary<string, string>();
GetRestoreNuGetAuditSuppressionsTask.cs (1)
54var properties = new Dictionary<string, string>();
GetRestorePackageDownloadsTask.cs (1)
46var properties = new Dictionary<string, string>();
GetRestorePackageReferencesTask.cs (1)
52var properties = new Dictionary<string, string>();
GetRestoreProjectReferencesTask.cs (1)
87var properties = new Dictionary<string, string>();
GetRestorePrunedPackageReferencesTask.cs (1)
55var properties = new Dictionary<string, string>();
RestoreTaskEx.cs (2)
96protected override Dictionary<string, string> GetOptions() 98Dictionary<string, string> options = base.GetOptions();
StaticGraphRestoreTaskBase.cs (11)
111Dictionary<string, string> globalProperties = GetGlobalProperties(); 237/// <param name="globalProperties">Receives a <see cref="Dictionary{TKey, TValue}" /> containing the global properties.</param> 238internal string GetCommandLineArguments(Dictionary<string, string> globalProperties) 243IEnumerable<string> EnumerateCommandLineArguments(Dictionary<string, string> globalProperties) 249var options = GetOptions(); 289/// <returns>A <see cref="Dictionary{TKey, TValue}" /> containing global properties.</returns> 290internal virtual Dictionary<string, string> GetGlobalProperties() 323Dictionary<string, string> newGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 368protected virtual Dictionary<string, string> GetOptions() 380/// <param name="globalProperties">A <see cref="Dictionary{TKey, TValue}" /> containing the global properties.</param> 381internal static void WriteGlobalProperties(BinaryWriter writer, Dictionary<string, string> globalProperties)
NuGet.Build.Tasks.Console (23)
MSBuildStaticGraphRestore.cs (7)
329internal static Dictionary<string, CentralPackageVersion> GetCentralPackageVersions(IMSBuildProject project) 331var result = new Dictionary<string, CentralPackageVersion>(StringComparer.OrdinalIgnoreCase); 405internal static Dictionary<string, PrunePackageReference> GetPrunePackageReferences(IMSBuildProject project) 407var result = new Dictionary<string, PrunePackageReference>(StringComparer.OrdinalIgnoreCase); 524var projectTargetFrameworks = new Dictionary<string, IMSBuildProject>(); 682/// <param name="options">A <see cref="Dictionary{String,String}" />containing options.</param> 786var prunedReferences = isPackagePruningEnabled ? GetPrunePackageReferences(msBuildProjectInstance) : [];
Program.cs (11)
76if (!TryParseArguments(args, () => System.Console.OpenStandardInput(), System.Console.Error, out (Dictionary<string, string> Options, FileInfo MSBuildExeFilePath, string EntryProjectFilePath, Dictionary<string, string> MSBuildGlobalProperties) arguments)) 144/// <returns>A <see cref="Dictionary{String,String}" /> containing the list of items as key value pairs.</returns> 145private static Dictionary<string, string> ParseSemicolonDelimitedListOfKeyValuePairs(string value) 147var properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 169internal static bool TryParseArguments(string[] args, Func<Stream> getStream, TextWriter errorWriter, out (Dictionary<string, string> Options, FileInfo MSBuildExeFilePath, string EntryProjectFilePath, Dictionary<string, string> MSBuildGlobalProperties) arguments) 188Dictionary<string, string> options = ParseSemicolonDelimitedListOfKeyValuePairs(args[0]); 192Dictionary<string, string> globalProperties = null; 254/// <param name="globalProperties">Receives a <see cref="Dictionary{TKey, TValue}" /> representing the global properties.</param> 256internal static bool TryDeserializeGlobalProperties(TextWriter errorWriter, BinaryReader reader, out Dictionary<string, string> globalProperties)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
NuGet.Build.Tasks.Pack (29)
PackTaskLogic.cs (29)
70(Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) = BuildAliasFrameworkMappings(assetsFile); 98var contentFiles = ProcessContentToIncludeInPackage(request, packArgs); 217var projectRefToVersionMap = new Dictionary<string, string>(PathUtility.GetStringComparerBasedOnOS()); 227(Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) = BuildAliasFrameworkMappings(assetsFile); 368private static (Dictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> duplicateAliases) 371var targetAliasToNuGetFramework = new Dictionary<string, string>(); 372var frameworkToAliases = new Dictionary<string, List<string>>(); 408var tfmSpecificRefs = new Dictionary<string, IList<string>>(StringComparer.OrdinalIgnoreCase); 435Dictionary<string, string> targetAliasToNuGetFramework, 436Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) 438var tfmSpecificRefs = new Dictionary<string, ISet<string>>(); 502private static IEnumerable<OutputLibFile> InitLibFiles(IMSBuildItem[] libFiles, IDictionary<string, string> targetAliasToNuGetFramework, Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) 509Dictionary<string, string> duplicateTargetPath = null; 651private Dictionary<string, IEnumerable<ContentMetadata>> ProcessContentToIncludeInPackage( 656var fileModel = new Dictionary<string, IEnumerable<ContentMetadata>>(); 850var sourceFiles = new Dictionary<string, string>(); 872Dictionary<string, List<string>> nuGetFrameworkToDuplicateAliases) 893var dependenciesByFramework = new Dictionary<NuGetFramework, HashSet<LibraryDependency>>(NuGetFrameworkFullComparer.Instance); 992Dictionary<NuGetFramework, HashSet<LibraryDependency>> dependenciesByFramework, 995var packageSpecificNoWarnProperties = new Dictionary<string, HashSet<(NuGetLogCode, NuGetFramework)>>(StringComparer.OrdinalIgnoreCase); 1044Dictionary<NuGetFramework, HashSet<LibraryDependency>> dependenciesByFramework, 1047Dictionary<string, HashSet<(NuGetLogCode, NuGetFramework)>> packageSpecificNoWarnProperties) 1066Dictionary<NuGetFramework, HashSet<LibraryDependency>> dependenciesByFramework, 1069Dictionary<string, HashSet<(NuGetLogCode, NuGetFramework)>> packageSpecificNoWarnProperties) 1094Dictionary<string, HashSet<(NuGetLogCode, NuGetFramework)>> packageSpecificNoWarnProperties, 1146var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
NuGet.CommandLine.XPlat (27)
Commands\Package\Update\PackageUpdateCommandRunner.cs (5)
315private static async Task<(int? exitCode, Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates, int totalPackagesScanned)> 324var projectPackageUpdates = new Dictionary<string, List<PackageUpdateResult>>(StringComparer.OrdinalIgnoreCase); 422Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates, 684var allPackages = new Dictionary<string, (VersionRange version, List<string> tfms, bool hasError)>(StringComparer.OrdinalIgnoreCase); 736private static DependencyGraphSpec GetUpdatedDependencyGraphSpec(DependencyGraphSpec currentDgSpec, Dictionary<string, List<PackageUpdateResult>> projectPackageUpdates)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (5)
36private readonly Dictionary<PackageSource, SourceRepository> _sourceRepositoryCache; 163var metadata = await GetPackageMetadataAsync(frameworks, listPackageArgs); 424internal async Task<Dictionary<string, List<IPackageSearchMetadata>>> GetPackageMetadataAsync( 429var packageMetadataById = new Dictionary<string, List<IPackageSearchMetadata>>(capacity: allPackages.Count); 563Dictionary<string, List<IPackageSearchMetadata>> packageMetadata,
Commands\PackageSearch\PackageSearchRunner.cs (1)
82Dictionary<Task<IEnumerable<IPackageSearchMetadata>>, PackageSource> searchRequests = new();
Commands\Why\DependencyGraphFinder.cs (3)
30public static Dictionary<string, List<DependencyNode>?>? GetAllDependencyGraphsForTarget( 35var result = new Dictionary<string, List<DependencyNode>?>(StringComparer.OrdinalIgnoreCase); 107var projectsByPath = assetsFile
Commands\Why\DependencyGraphPrinter.cs (3)
27public static void PrintAllDependencyGraphs(Dictionary<string, List<DependencyNode>?> dependencyGraphPerFramework, string targetPackage, IAnsiConsole logger, IDotnetVersionChecker dotnetVersionChecker) 142private static List<List<string>> GetDeduplicatedFrameworks(Dictionary<string, List<DependencyNode>?> dependencyGraphPerFramework) 145var dependencyGraphHashes = new Dictionary<int, List<string>>(dependencyGraphPerFramework.Count);
Commands\Why\WhyCommandRunner.cs (1)
67Dictionary<string, List<DependencyNode>?>? dependencyGraphPerFramework = DependencyGraphFinder.GetAllDependencyGraphsForTarget(
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
Utility\MSBuildAPIUtility.cs (3)
311var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 932var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 997var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Utility\TableParser.cs (1)
42var columnQueues = new Dictionary<int, Queue<FormattedCell>>();
NuGet.Commands (150)
CommandArgs\PackArgs.cs (2)
21private readonly Dictionary<string, string> _properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 54public Dictionary<string, string> Properties
IProjectFactory.cs (1)
17Dictionary<string, string> GetProjectProperties();
MSBuildPackTargetArgs.cs (1)
19public Dictionary<string, IEnumerable<ContentMetadata>> ContentFiles { get; set; }
MSBuildProjectFactory.cs (2)
39public Dictionary<string, string> GetProjectProperties() 43public Dictionary<string, string> ProjectProperties { get; private set; }
PackagesLockFileBuilder.cs (2)
23var libraryLookup = assetsFile.Libraries.Where(e => e.Type == LibraryType.Package) 89var projectFullPaths = assetsFile.Libraries
RestoreCommand\CompatibilityChecker.cs (2)
41Dictionary<string, LibraryIncludeFlags> includeFlags, 66var compileAssemblies = new Dictionary<string, LibraryIdentity>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\ContentFiles\ContentFileUtils.cs (4)
41var groupsByLanguage = new Dictionary<string, List<ContentItemGroup>>(StringComparer.OrdinalIgnoreCase); 90var entryMappings = new Dictionary<string, List<ContentFilesEntry>>(StringComparer.OrdinalIgnoreCase); 91var languageMappings = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 111Dictionary<string, List<ContentFilesEntry>> relativePathToEntries = new(entryMappings.Count, StringComparer.OrdinalIgnoreCase);
RestoreCommand\DependencyGraphResolver.cs (16)
135Dictionary<string, RestoreTargetGraph> graphsByTargetFramework = new(); 184Dictionary<LibraryDependencyIndex, VersionRange>? pinnedPackageVersions = IndexPinnedPackageVersions(isCentralPackageTransitivePinningEnabled, projectTargetFramework); 204Dictionary<LibraryDependencyIndex, ResolvedDependencyGraphItem> resolvedDependencyGraphItems = await ResolveDependencyGraphItemsAsync( 319Dictionary<LibraryDependencyIndex, ResolvedDependencyGraphItem> resolvedDependencyGraphItems, 334Dictionary<LibraryRangeIndex, GraphNode<RemoteResolveResult>> nodesById = new(); 342Dictionary<LibraryRangeIndex, GraphNode<RemoteResolveResult>> versionConflicts = new(); 345Dictionary<LibraryRangeIndex, (LibraryRangeIndex FromParentLibraryRangeIndex, LibraryDependency FromLibraryDependency, LibraryRangeIndex ToParentLibraryRangeIndex, LibraryDependencyIndex ToLibraryDependencyIndex, bool IsCentralTransitive)> downgrades = new(); 888/// <returns>A <see cref="Dictionary{TKey, TValue}" /> of indexed version ranges by their <see cref="LibraryDependencyIndex" /> if central transitive pinning is enabled, otherwise <see langword="null" />.</returns> 889private Dictionary<LibraryDependencyIndex, VersionRange>? IndexPinnedPackageVersions(bool isCentralPackageTransitivePinningEnabled, TargetFrameworkInformation? projectTargetFramework) 896Dictionary<LibraryDependencyIndex, VersionRange>? pinnedPackageVersions = new(capacity: projectTargetFramework.CentralPackageVersions.Count); 908private async Task<Dictionary<LibraryDependencyIndex, ResolvedDependencyGraphItem>> ResolveDependencyGraphItemsAsync( 913Dictionary<LibraryDependencyIndex, VersionRange>? pinnedPackageVersions, 924Dictionary<LibraryDependencyIndex, ResolvedDependencyGraphItem> resolvedDependencyGraphItems = new(ResolvedDependencyGraphItemDictionarySize); 933Dictionary<LibraryRangeIndex, (LibraryRangeIndex[], LibraryDependencyIndex, LibraryDependencyTarget)> evictions = new Dictionary<LibraryRangeIndex, (LibraryRangeIndex[], LibraryDependencyIndex, LibraryDependencyTarget)>(EvictionsDictionarySize); 1422/// <param name="graphsByTargetAlias">A <see cref="Dictionary{TKey, TValue}" /> containing the dependency graphs by target alias.</param> 1427private bool TryGetRuntimeGraph(List<NuGetv3LocalRepository> localRepositories, Dictionary<string, RestoreTargetGraph> graphsByTargetAlias, FrameworkRuntimeDefinition frameworkRuntimeDefinition, TargetFrameworkInformation? projectTargetFramework, [NotNullWhen(true)] out RuntimeGraph? runtimeGraph)
RestoreCommand\Diagnostics\IndexedRestoreTargetGraph.cs (1)
18private readonly Dictionary<string, GraphItem<RemoteResolveResult>> _lookup
RestoreCommand\LockFileBuilder.cs (12)
27private readonly Dictionary<RestoreTargetGraph, Dictionary<string, LibraryIncludeFlags>> _includeFlagGraphs; 31Dictionary<RestoreTargetGraph, 32Dictionary<string, LibraryIncludeFlags>> includeFlagGraphs) 51var previousLibraries = previousLockFile?.Libraries.ToDictionary(l => ValueTuple.Create(l.Name, l.Version)); 154Dictionary<ValueTuple<string, NuGetVersion>, LockFileLibrary> libraries = EnsureUniqueLockFileLibraries(lockFile); 187var flattenedFlags = IncludeFlagUtils.FlattenDependencyTypes(_includeFlagGraphs, project, targetGraph); 337private Dictionary<ValueTuple<string, NuGetVersion>, LockFileLibrary> EnsureUniqueLockFileLibraries(LockFile lockFile) 340var libraryReferences = new Dictionary<ValueTuple<string, NuGetVersion>, LockFileLibrary>(); 375var libraryReferences = new Dictionary<LockFileTargetLibrary, LockFileTargetLibrary>(comparer: LockFileTargetLibraryNameAndVersionEqualityComparer.Instance); 538Dictionary<string, LibraryDependency> dependencyDictionary = null; 558Dictionary<string, LibraryIncludeFlags> dependenciesIncludeFlags = _includeFlagGraphs[targetGraph];
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (38)
38var parentPackageSpecificNoWarn = ExtractPackageSpecificNoWarnPerFramework( 41var warningPropertiesCache = new Dictionary<string, Dictionary<string, WarningPropertiesCollection>>( 49!parentPackageSpecificNoWarn.TryGetValue(targetGraph.TargetAlias, out var parentPackageSpecificNoWarnForFramework)) 88Dictionary<string, HashSet<NuGetLogCode>> parentPackageSpecificNoWarn, 89Dictionary<string, Dictionary<string, WarningPropertiesCollection>> warningPropertiesCache) 91var dependencyMapping = new Dictionary<string, LookUpNode>(StringComparer.OrdinalIgnoreCase); 93var seen = new Dictionary<string, NodeWarningProperties>(StringComparer.OrdinalIgnoreCase); 95var packageNoWarn = new Dictionary<string, HashSet<NuGetLogCode>>(StringComparer.OrdinalIgnoreCase); 109Dictionary<string, HashSet<NuGetLogCode>> nodePackageSpecificNoWarn = null; 125var nodePackageSpecificWarningProperties = ExtractPackageSpecificNoWarnForFramework( 238Dictionary<string, Dictionary<string, WarningPropertiesCollection>> warningPropertiesCache) 242if (!warningPropertiesCache.TryGetValue(key, out var frameworkCollection)) 267private static bool AddToSeen(Dictionary<string, NodeWarningProperties> seen, DependencyNode node) 379public static Dictionary<string, HashSet<NuGetLogCode>> MergePackageSpecificNoWarn( 380Dictionary<string, HashSet<NuGetLogCode>> first, 381Dictionary<string, HashSet<NuGetLogCode>> second) 383if (TryMergeNullObjects(first, second, out var merged)) 536public static Dictionary<string, Dictionary<string, HashSet<NuGetLogCode>>> ExtractPackageSpecificNoWarnPerFramework( 539Dictionary<string, Dictionary<string, HashSet<NuGetLogCode>>> result = null; 543result = new Dictionary<string, Dictionary<string, HashSet<NuGetLogCode>>>(StringComparer.OrdinalIgnoreCase); 557if (!result.TryGetValue(framework, out var frameworkCollection)) 583public static Dictionary<string, HashSet<NuGetLogCode>> ExtractPackageSpecificNoWarnForFramework( 587Dictionary<string, HashSet<NuGetLogCode>> result = null; 634public DependencyNode(string id, bool isProject, HashSet<NuGetLogCode> projectWideNoWarn, Dictionary<string, HashSet<NuGetLogCode>> packageSpecificNoWarn) 713public Dictionary<string, HashSet<NuGetLogCode>> PackageSpecific { get; } 718Dictionary<string, HashSet<NuGetLogCode>> packageSpecific) 774Dictionary<string, HashSet<NuGetLogCode>> thisPackages = PackageSpecific; 775Dictionary<string, HashSet<NuGetLogCode>> otherPackages = other.PackageSpecific; 778Dictionary<string, HashSet<NuGetLogCode>> packages = null; 823Dictionary<string, HashSet<NuGetLogCode>> package = PackageSpecific; 824Dictionary<string, HashSet<NuGetLogCode>> otherPackage = other.PackageSpecific; 864Dictionary<string, HashSet<NuGetLogCode>> packageSpecific) 883Dictionary<string, HashSet<NuGetLogCode>> mergedPackageSpecificNoWarn = MergePackageSpecificNoWarn(PackageSpecific, other?.PackageSpecific);
RestoreCommand\RequestFactory\RestoreArgs.cs (1)
151var sourceObjects = new Dictionary<string, PackageSource>();
RestoreCommand\RestoreCommand.cs (16)
43private readonly Dictionary<RestoreTargetGraph, Dictionary<string, LibraryIncludeFlags>> _includeFlagGraphs 44= new Dictionary<RestoreTargetGraph, Dictionary<string, LibraryIncludeFlags>>(); 514Dictionary<string, LibraryIncludeFlags> flattenedFlags = IncludeFlagUtils.FlattenDependencyTypes(_includeFlagGraphs, project, graph); 1140Dictionary<string, List<string>> prunedDirectPackages = GetPrunableDirectPackages(project); 1146static Dictionary<string, List<string>> GetPrunableDirectPackages(PackageSpec project) 1148Dictionary<string, List<string>> prunedDirectPackages = null; 1178static void RaiseNU1510WarningsIfNeeded(PackageSpec project, ILogger logger, bool enablePruningWarnings, Dictionary<string, List<string>> prunedDirectPackages, TelemetryEvent telemetry) 1180Dictionary<string, string> aliasToTargetGraphName = null; 1235static Dictionary<string, string> InitializeAliasToTargetGraphName(PackageSpec project) 1237var aliasToTargetGraphName = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1532var librariesLookUp = lockFile.Targets 1971Dictionary<RestoreTargetGraph, Dictionary<string, LibraryIncludeFlags>> includeFlagGraphs, 1985var includeFlags = IncludeFlagUtils.FlattenDependencyTypes(includeFlagGraphs, project, graph); 2078Dictionary<NuGetFramework, string> targetFrameworkToAlias = new(NuGetFramework.Comparer);
RestoreCommand\RestoreSummary.cs (1)
105var installed = new Dictionary<string, int>(restoreSummaries.Count, PathUtility.GetStringComparerBasedOnOS());
RestoreCommand\RestoreTargetGraph.cs (1)
124var conflicts = new Dictionary<string, HashSet<ResolverRequest>>();
RestoreCommand\Utility\AuditUtility.cs (9)
33internal Dictionary<string, bool>? SuppressedAdvisories { get; } 103Dictionary<DownloadDependency, PackageDownloadAuditInfo>? packagesWithKnownVulnerabilities = FindPackageDownloadsWithKnownVulnerabilities(knownVulnerabilities); 128private Dictionary<DownloadDependency, PackageDownloadAuditInfo>? FindPackageDownloadsWithKnownVulnerabilities( 131Dictionary<DownloadDependency, PackageDownloadAuditInfo>? result = null; 260Dictionary<PackageIdentity, PackageAuditInfo>? packagesWithKnownVulnerabilities = FindPackagesWithKnownVulnerabilities(knownVulnerabilities); 372private Dictionary<PackageIdentity, PackageAuditInfo>? FindPackagesWithKnownVulnerabilities( 376Dictionary<PackageIdentity, PackageAuditInfo>? result = null; 574public Dictionary<PackageVulnerabilityInfo, List<string>> GraphsPerVulnerability { get; } 587public Dictionary<PackageVulnerabilityInfo, List<string>> GraphsPerVulnerability { get; }
RestoreCommand\Utility\IncludeFlagUtils.cs (8)
18internal static Dictionary<string, LibraryIncludeFlags> FlattenDependencyTypes( 19Dictionary<RestoreTargetGraph, Dictionary<string, LibraryIncludeFlags>> includeFlagGraphs, 23Dictionary<string, LibraryIncludeFlags> flattenedFlags; 33internal static Dictionary<string, LibraryIncludeFlags> FlattenDependencyTypes( 37var result = new Dictionary<string, LibraryIncludeFlags>(StringComparer.OrdinalIgnoreCase); 79Dictionary<string, LibraryIncludeFlags> result) 84var unifiedNodes = new Dictionary<string, GraphItem<RemoteResolveResult>>(StringComparer.OrdinalIgnoreCase);
RestoreCommand\Utility\LockFileUtils.cs (3)
586var fileLookup = new Dictionary<string, ProjectRestoreMetadataFile>(StringComparer.OrdinalIgnoreCase); 680Dictionary<string, ProjectRestoreMetadataFile> fileLookup, 1030var primaryGroups = new Dictionary<string, List<ContentItemGroup>>(StringComparer.Ordinal);
RestoreCommand\Utility\MSBuildRestoreUtility.cs (19)
73var itemsById = new Dictionary<string, List<IMSBuildItem>>(uniqueNameComparer); 76var projectPathLookup = new Dictionary<string, string>(uniqueNameComparer); 416public static void NormalizePathCasings(Dictionary<string, string> paths, DependencyGraphSpec graphSpec) 625var aliasGroups = new Dictionary<string, List<ProjectRestoreReference>>(); 727var dict = new Dictionary<string, TargetFrameworkInformation>(StringComparer.OrdinalIgnoreCase); 791var prunePackageReferences = new Dictionary<string, Dictionary<string, PrunePackageReference>>(StringComparer.OrdinalIgnoreCase); 792var isPruningEnabled = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase); 830var frameworkInfo = prunePackageReferences[targetAlias]; 852static void AddPackageToPrune(string id, string version, Dictionary<string, PrunePackageReference> frameworkInfo) 1259private static Dictionary<string, Dictionary<string, CentralPackageVersion>> CreateCentralVersionDependencies(IEnumerable<IMSBuildItem> items, 1264var result = new Dictionary<string, Dictionary<string, CentralPackageVersion>>(); 1285private static void AddCentralPackageVersion(Dictionary<string, Dictionary<string, CentralPackageVersion>> centralPackageVersions, 1291if (!centralPackageVersions.TryGetValue(framework, out Dictionary<string, CentralPackageVersion> versions)) 1337var centralVersionsDependencies = CreateCentralVersionDependencies(items, spec.TargetFrameworks, spec.RestoreMetadata.CrossTargeting); 1338foreach ((var targetAlias, var versions) in centralVersionsDependencies)
RestoreCommand\Utility\PackageSpecFactory.cs (5)
257var prunedReferences = isPackagePruningEnabled ? GetPrunePackageReferences(msBuildProjectInstance) : []; 693internal static Dictionary<string, PrunePackageReference> GetPrunePackageReferences(ITargetFramework project) 695var result = new Dictionary<string, PrunePackageReference>(StringComparer.OrdinalIgnoreCase); 822private static Dictionary<string, CentralPackageVersion> GetCentralPackageVersions(ITargetFramework project) 824var result = new Dictionary<string, CentralPackageVersion>(StringComparer.OrdinalIgnoreCase);
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
src\nuget-client\build\Shared\TaskResultCache.cs (1)
135/// <inheritdoc cref="Dictionary{TKey, TValue}.TryGetValue(TKey, out TValue)" />
NuGet.Common (2)
KeyedLock.cs (1)
18private readonly Dictionary<string, LockState> _locks;
Telemetry\TelemetryEvent.cs (1)
24public TelemetryEvent(string eventName, Dictionary<string, object?> properties)
NuGet.Configuration (32)
PackageSource\MinPublishAgeExceptions.cs (1)
34var itemsByPattern = new Dictionary<string, MinPublishAgeExceptionItem>(items.Count, StringComparer.OrdinalIgnoreCase);
PackageSource\PackageSourceProvider.cs (13)
98var packageSourceLookup = new Dictionary<string, IndexedPackageSource>(StringComparer.OrdinalIgnoreCase); 135var packageSourceLookup = new Dictionary<string, IndexedPackageSource>(StringComparer.OrdinalIgnoreCase); 434Dictionary<string, IndexedPackageSource> packageSourceLookup, 644var settingsLookup = GetExistingSettingsLookup(); 724var packageSources = GetExistingSettingsLookup(); 925var existingSettingsLookup = GetExistingSettingsLookup(); 929Dictionary<string, AddItem>? existingDisabledSourcesLookup = null; 949var existingCredentialsLookup = existingCredentials?.ToDictionary(setting => setting.ElementName, StringComparer.OrdinalIgnoreCase); 991var existingsourceCredentialsLookup = sourceCredentialsSettings?.ToDictionary(setting => setting.ElementName, StringComparer.OrdinalIgnoreCase); 1038var existingSettingsLookup = GetExistingSettingsLookup(ConfigurationConstants.AuditSources); 1082private Dictionary<string, SourceItem> GetExistingSettingsLookup() 1087private Dictionary<string, SourceItem> GetExistingSettingsLookup(string sectionName) 1094var existingSettingsLookup = new Dictionary<string, SourceItem>(StringComparer.OrdinalIgnoreCase);
PackageSourceMapping\PackageSourceMapping.cs (1)
74var patterns = new Dictionary<string, IReadOnlyList<string>>();
PackageSourceMapping\SearchNode.cs (1)
10public readonly Dictionary<char, SearchNode> Children;
Settings\Items\PackageSourceMappingSourceItem.cs (1)
158Dictionary<PackagePatternItem, PackagePatternItem> otherPatterns = packageSourceMappingSourceItem.Patterns.GroupBy(item => item).ToDictionary(c => c.Key, c => c.Key);
Settings\Items\TrustedSignerItem.cs (1)
121var otherCerts = trustedSigner.Certificates.ToDictionary(c => c, c => c);
Settings\Items\UnknownItem.cs (2)
21private Dictionary<SettingBase, SettingBase> _mutableChildren; 189var otherChildren = new Dictionary<SettingBase, SettingBase>(unknown._mutableChildren);
Settings\NuGetConfiguration.cs (1)
148internal void MergeSectionsInto(Dictionary<string, VirtualSettingSection> sectionsContainer)
Settings\SettingElement.cs (1)
48protected Dictionary<string, string> MutableAttributes { get; }
Settings\SettingItem.cs (2)
65var otherAttributes = setting.Attributes.ToDictionary(a => a.Key, a => a.Value); 66var attributesImmutable = new Dictionary<string, string>(MutableAttributes);
Settings\Settings.cs (2)
44private readonly Dictionary<string, VirtualSettingSection> _computedSections; 222var computedSections = new Dictionary<string, VirtualSettingSection>();
Settings\SettingsFile.cs (1)
203internal void MergeSectionsInto(Dictionary<string, VirtualSettingSection> sectionsContainer)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
NuGet.DependencyResolver.Core (27)
GraphModel\GraphOperations.cs (19)
77var workingDowngrades = RentDowngradesDictionary(); 124var workingDowngrades = context.Downgrades; 354var acceptedLibraries = Cache<TItem>.RentDictionary(); 413var acceptedLibraries = context.AcceptedLibraries; 500var acceptedLibraries = context.AcceptedLibraries; 663private static Dictionary<GraphNode<RemoteResolveResult>, GraphNode<RemoteResolveResult>> _tempDowngrades; 665public static Dictionary<GraphNode<RemoteResolveResult>, GraphNode<RemoteResolveResult>> RentDowngradesDictionary() 667var dictionary = _tempDowngrades; 677public static void ReleaseDowngradesDictionary(Dictionary<GraphNode<RemoteResolveResult>, GraphNode<RemoteResolveResult>> dictionary) 720private static Dictionary<string, GraphNode<TItem>> _dictionary; 766public static Dictionary<string, GraphNode<TItem>> RentDictionary() 768var dictionary = _dictionary; 778public static void ReleaseDictionary(Dictionary<string, GraphNode<TItem>> dictionary) 809public Dictionary<string, GraphNode<TItem>> AcceptedLibraries; 811private static ConflictsAndAccepted<TItem> CreateState<TItem>(List<VersionConflictResult<TItem>> versionConflicts, Dictionary<string, GraphNode<TItem>> acceptedLibraries) 823public Dictionary<string, GraphNode<TItem>> AcceptedLibraries; 826private static TrackerAndAccepted<TItem> CreateState<TItem>(Tracker<TItem> tracker, Dictionary<string, GraphNode<TItem>> acceptedLibraries) 838public Dictionary<GraphNode<RemoteResolveResult>, GraphNode<RemoteResolveResult>> Downgrades; 841private static CyclesAndDowngrades CreateState(List<GraphNode<RemoteResolveResult>> cycles, Dictionary<GraphNode<RemoteResolveResult>, GraphNode<RemoteResolveResult>> downgrades)
GraphModel\Tracker.cs (1)
13private readonly Dictionary<string, Entry> _entryByLibraryName = new(StringComparer.OrdinalIgnoreCase);
Remote\RemoteDependencyWalker.cs (1)
621private Dictionary<string, List<GraphNode<RemoteResolveResult>>> _transitiveCentralPackageVersions;
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
src\nuget-client\build\Shared\TaskResultCache.cs (1)
135/// <inheritdoc cref="Dictionary{TKey, TValue}.TryGetValue(TKey, out TValue)" />
NuGet.Frameworks (37)
CompatibilityTable.cs (3)
18private readonly Dictionary<NuGetFramework, HashSet<NuGetFramework>> _table; 76private static Dictionary<NuGetFramework, HashSet<NuGetFramework>> GetTable(IEnumerable<NuGetFramework> frameworks, IFrameworkCompatibilityProvider compat) 80var table = new Dictionary<NuGetFramework, HashSet<NuGetFramework>>();
FrameworkNameProvider.cs (24)
44private readonly Dictionary<string, string> _identifierSynonyms; 46private readonly Dictionary<string, string> _identifierToShortName; 47private readonly Dictionary<string, string> _profilesToShortName; 48private readonly Dictionary<string, string> _identifierShortToLong; 49private readonly Dictionary<string, string> _profileShortToLong; 52private readonly Dictionary<int, HashSet<NuGetFramework>> _portableFrameworks; 53private readonly Dictionary<int, HashSet<NuGetFramework>> _portableOptionalFrameworks; 56private readonly Dictionary<int, HashSet<FrameworkRange>> _portableCompatibilityMappings; 59private readonly Dictionary<NuGetFramework, HashSet<NuGetFramework>> _equivalentFrameworks; 62private readonly Dictionary<string, Dictionary<string, HashSet<string>>> _equivalentProfiles; 65private readonly Dictionary<string, HashSet<OneWayCompatibilityMappingEntry>> _compatibilityMappings; 68private readonly Dictionary<string, HashSet<string>> _subSetFrameworks; 71private readonly Dictionary<string, int> _nonPackageBasedFrameworkPrecedence; 74private readonly Dictionary<string, int> _packageBasedFrameworkPrecedence; 77private readonly Dictionary<string, int> _equivalentFrameworkPrecedence; 80private readonly Dictionary<NuGetFramework, NuGetFramework> _shortNameRewrites; 81private readonly Dictionary<NuGetFramework, NuGetFramework> _fullNameRewrites; 97_equivalentProfiles = new Dictionary<string, Dictionary<string, HashSet<string>>>(StringComparer.OrdinalIgnoreCase); 587if (_equivalentProfiles.TryGetValue(fw.Framework, out Dictionary<string, HashSet<string>>? eqProfiles)) 779if (!_equivalentProfiles.TryGetValue(frameworkIdentifier, out Dictionary<string, HashSet<string>>? profileMappings)) 1019var precedence = xPackagesBased ? _packageBasedFrameworkPrecedence : _nonPackageBasedFrameworkPrecedence; 1029private static int CompareUsingPrecedence(NuGetFramework? x, NuGetFramework? y, Dictionary<string, int> precedence) 1137var superSetFrameworks = _subSetFrameworks
FrameworkReducer.cs (5)
355var pclToFrameworks = ExplodePortableFrameworks(reduced); 382var pclToFrameworks = ExplodePortableFrameworks(reduced); 385var scores = new Dictionary<NuGetFramework, int>(); 424private Dictionary<NuGetFramework, IEnumerable<NuGetFramework>> ExplodePortableFrameworks(IEnumerable<NuGetFramework> pcls) 426var result = new Dictionary<NuGetFramework, IEnumerable<NuGetFramework>>();
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
NuGet.LibraryModel (5)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
NuGet.PackageManagement (52)
Audit\AuditChecker.cs (9)
41public async Task<AuditCheckResult> CheckPackageVulnerabilitiesAsync(IEnumerable<PackageRestoreData> packages, Dictionary<string, RestoreAuditProperties> restoreAuditProperties, CancellationToken cancellationToken) 54var auditSettings = new Dictionary<string, ProjectAuditSettings>(restoreAuditProperties.Count); 93Dictionary<PackageIdentity, PackageAuditInfo>? packagesWithKnownVulnerabilities = FindPackagesWithKnownVulnerabilities(allVulnerabilityData.KnownVulnerabilities!, packages); 239internal static List<LogMessage> CreateWarnings(Dictionary<PackageIdentity, PackageAuditInfo> packagesWithKnownVulnerabilities, 240Dictionary<string, ProjectAuditSettings> auditSettings, 315internal static Dictionary<PackageIdentity, PackageAuditInfo>? FindPackagesWithKnownVulnerabilities( 319Dictionary<PackageIdentity, PackageAuditInfo>? result = null; 388private static bool CheckIfAdvisoryHasBeenSuppressed(Dictionary<string, bool>? suppressedAdvisories, string advisoryUrl, ref int totalWarningsSuppressedCount, ref int distinctAdvisoriesSuppressedCount) 428public Dictionary<string, bool>? SuppressedAdvisories { get; }
DependencyGraphCacheContext.cs (3)
31public Dictionary<string, DependencyGraphSpec> DependencyGraphCache { get; set; } = 37public Dictionary<string, PackageSpec> PackageSpecCache { get; set; } = 43public Dictionary<string, IReadOnlyList<IDependencyGraphProject>> DirectReferenceCache { get; set; } = new Dictionary<string, IReadOnlyList<IDependencyGraphProject>>(StringComparer.Ordinal);
IDE\IPackageRestoreManager.cs (1)
57Dictionary<PackageReference, List<string>> packageReferencesDict);
IDE\PackageRestoreContext.cs (4)
27public Dictionary<string, RestoreAuditProperties> RestoreAuditProperties { get; } 29private static Dictionary<string, RestoreAuditProperties> EmptyDictionary = new Dictionary<string, RestoreAuditProperties>(); 49Dictionary<string, RestoreAuditProperties> restoreAuditProperties, 75Dictionary<string, RestoreAuditProperties> restoreAuditProperties,
IDE\PackageRestoreManager.cs (8)
107var packageReferencesDictionary = await GetPackagesReferencesDictionaryAsync(token); 119 public IEnumerable<PackageRestoreData> GetPackagesRestoreData(string solutionDirectory, Dictionary<PackageReference, List<string>> packageReferencesDict) 144private async Task<Dictionary<PackageReference, List<string>>> GetPackagesReferencesDictionaryAsync(CancellationToken token) 146var packageReferencesDict = new Dictionary<PackageReference, List<string>>(PackageReferenceComparer.Instance); 184private async Task<Dictionary<string, RestoreAuditProperties>> GetRestoreAuditProperties() 186var restoreAuditProperties = new Dictionary<string, RestoreAuditProperties>(PathUtility.GetStringComparerBasedOnOS()); 253var packageReferencesDictionary = await GetPackagesReferencesDictionaryAsync(token); 303var auditProperties = await GetRestoreAuditProperties();
NuGetPackageManager.cs (9)
1016var preferredVersions = new Dictionary<string, PackageIdentity>(StringComparer.OrdinalIgnoreCase); 2228var nugetProjectActionsLookup = new Dictionary<string, NuGetProjectAction[]>(PathUtility.GetStringComparerBasedOnOS()); 2429var projectUniqueNamesForBuildIntToUpdate 2551Dictionary<PackageIdentity, PackagePreFetcherResult> downloadTasks = null; 2876Dictionary<string, NuGetProjectAction[]> nugetProjectActionsLookup, 2916var lockFileLookup = new Dictionary<string, LockFile>(PathUtility.GetStringComparerBasedOnOS()); 2930var updatedNugetPackageSpecLookup = new Dictionary<string, PackageSpec>(PathUtility.GetStringComparerBasedOnOS()); 2931var originalNugetPackageSpecLookup = new Dictionary<string, PackageSpec>(PathUtility.GetStringComparerBasedOnOS()); 2932var nuGetProjectSourceLookup = new Dictionary<string, HashSet<SourceRepository>>(PathUtility.GetStringComparerBasedOnOS());
PackageDownloader.cs (1)
78var tasksLookup = new Dictionary<Task<DownloadResourceResult>, SourceRepository>();
PackagePreFetcher.cs (2)
25public static async Task<Dictionary<PackageIdentity, PackagePreFetcherResult>> GetPackagesAsync( 58var result = new Dictionary<PackageIdentity, PackagePreFetcherResult>();
Projects\NuGetProject.cs (2)
20protected NuGetProject(Dictionary<string, object> optionalMetadata) 25protected Dictionary<string, object> InternalMetadata { get; }
Projects\PackagesConfigNuGetProject.cs (1)
57public PackagesConfigNuGetProject(string folderPath, Dictionary<string, object> metadata)
Resolution\PrunePackageTree.cs (3)
69var packagesDict = packages.ToLookup(p => p.Id).ToDictionary(p => p.Key, p => p.ToArray()); 183var targets = new Dictionary<string, NuGetVersion>(StringComparer.OrdinalIgnoreCase); 218var installed = new Dictionary<string, NuGetVersion>(StringComparer.OrdinalIgnoreCase);
Resolution\ResolverGather.cs (1)
603var depResources = new Dictionary<SourceRepository, Task<DependencyInfoResource>>();
Resolution\UninstallResolver.cs (1)
19var dependentsDict = new Dictionary<PackageIdentity, HashSet<PackageIdentity>>(PackageIdentity.Comparer);
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
Utility\BuildIntegratedProjectUtility.cs (1)
93var typeMappings = new Dictionary<PackageDependencyInfo, LibraryIdentity>(PackageIdentity.Comparer);
Utility\XElementExtensions.cs (1)
235var sourceAttr = source.Attributes().ToDictionary(a => a.Name, a => a.Value);
NuGet.Packaging (45)
ContentModel\ContentItem.cs (4)
26internal Dictionary<string, object>? _properties; 28public Dictionary<string, object> Properties 151private Dictionary<string, object> CreateDictionary() 153var properties = new Dictionary<string, object>();
ContentModel\ContentItemCollection.cs (2)
20private static readonly SimplePool<Dictionary<ContentItem, List<Asset>>> GroupAssetsPool = new(() => new(GroupComparer.DefaultComparer)); 96Dictionary<ContentItem, List<Asset>>? groupAssets = null;
ContentModel\Infrastructure\Parser.cs (1)
15private readonly Dictionary<string, object> _defaults;
ContentModel\ManagedCodeConventions.cs (4)
43private static readonly Dictionary<string, object> NetTFMTable = new Dictionary<string, object> 49private static readonly Dictionary<string, object> DefaultTfmAny = new Dictionary<string, object> 75private Dictionary<ReadOnlyMemory<char>, NuGetFramework> _frameworkCache = new(ReadOnlyMemoryCharComparerOrdinal.Instance); 85var props = new Dictionary<string, ContentPropertyDefinition>();
ContentModel\PatternTable.cs (5)
18private readonly Dictionary<string, Dictionary<ReadOnlyMemory<char>, object>> _table 19= new Dictionary<string, Dictionary<ReadOnlyMemory<char>, object>>(StringComparer.Ordinal); 35Dictionary<ReadOnlyMemory<char>, object>? byProp; 60Dictionary<ReadOnlyMemory<char>, object>? byProp;
Core\NuspecCoreReaderBase.cs (3)
22private Dictionary<string, string>? _metadataValues; 158protected Dictionary<string, string> MetadataValues 164var metadataValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
NuspecReader.cs (1)
218var groups = new Dictionary<NuGetFramework, HashSet<string>>(NuGetFrameworkFullComparer.Instance);
PackageCreation\Authoring\PackageBuilder.cs (1)
281public Dictionary<string, string> Properties { get; private set; }
PackageCreation\Extensions\XElementExtensions.cs (1)
129var sourceAttr = source.Attributes().ToDictionary(a => a.Name, a => a.Value);
PackageReaderBase.cs (1)
427var groups = new Dictionary<NuGetFramework, List<string>>(NuGetFrameworkFullComparer.Instance);
Rules\ReferencesInNuspecMatchRefAssetsRule.cs (1)
33var nuspecReferences = new Dictionary<string, IEnumerable<string>>();
RuntimeModel\RuntimeDescription.cs (1)
101var newSets = new Dictionary<string, RuntimeDependencySet>(StringComparer.OrdinalIgnoreCase);
RuntimeModel\RuntimeGraph.cs (3)
98Dictionary<string, T> clone = new(source.Count); 125var runtimes = new Dictionary<string, RuntimeDescription>(capacity: left.Runtimes.Count + right.Runtimes.Count); 147var supports = new Dictionary<string, CompatibilityProfile>(capacity: right.Supports.Count + left.Supports.Count);
Signing\Content\KeyPairFileReader.cs (2)
39public Dictionary<string, string> ReadSection() 41var entries = new Dictionary<string, string>(StringComparer.Ordinal);
Signing\Content\KeyPairFileUtility.cs (1)
13public static string GetValueOrThrow(Dictionary<string, string> values, string key)
Signing\Content\SignatureContent.cs (3)
108var properties = reader.ReadSection(); 136private static void ThrowIfEmpty(Dictionary<string, string> properties) 167private static void ThrowIfSignatureFormatVersionIsUnsupported(Dictionary<string, string> properties, SigningSpecifications signingSpecifications)
Signing\TrustedSigners\TrustedSignersProvider.cs (1)
85var certificateLookup = new Dictionary<string, CertificateEntryLookupEntry>();
Signing\Verification\AllowListVerificationProvider.cs (2)
66var primarySignatureCertificateFingerprintLookUp = new Dictionary<HashAlgorithmName, string>(); 67var countersignatureCertificateFingerprintLookUp = new Dictionary<HashAlgorithmName, string>();
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
TopologicalSortUtility.cs (3)
49var lookup = new Dictionary<string, T>(comparer); 95var lookup = new Dictionary<string, ItemDependencyInfo>(comparer); 140private static void CalculateRelationships(ItemDependencyInfo[] packages, Dictionary<string, ItemDependencyInfo> lookup)
NuGet.ProjectModel (13)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (2)
1424Dictionary<string, CentralPackageVersion> centralPackageVersions = null; 1432Dictionary<string, PrunePackageReference> packagesToPrune = null;
LockFile\LockFileItem.cs (1)
25private Dictionary<string, string> _properties;
LockFile\LockFileTargetLibrary.cs (1)
34private readonly Dictionary<PropertyKey, object> _propertyValues = new();
PackageSpecOperations.cs (1)
177Dictionary<string, CentralPackageVersion> result = new(dictSize, StringComparer.OrdinalIgnoreCase);
PackageSpecReferenceDependencyProvider.cs (2)
24private readonly Dictionary<string, ExternalProjectReference> _externalProjectsByPath 27private readonly Dictionary<string, ExternalProjectReference> _externalProjectsByUniqueName
ProjectLockFile\PackagesLockFileUtilities.cs (1)
386var actualDependencies = new Dictionary<LockFileDependency, LockFileDependency>(
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
NuGet.Protocol (28)
Converters\FingerprintsConverter.cs (1)
21var dict = new Dictionary<string, string>();
Converters\FingerprintsStjConverter.cs (1)
21var dict = new Dictionary<string, string>();
HttpSource\HttpSourceAuthenticationHandler.cs (1)
29private Dictionary<string, AmbientAuthenticationState> _authStates = new Dictionary<string, AmbientAuthenticationState>();
LegacyFeed\V2FeedPackageInfo.cs (1)
250var results = new Dictionary<NuGetFramework, List<PackageDependency>>(NuGetFrameworkFullComparer.Instance);
LocalRepositories\FindLocalPackagesResourceUnzipped.cs (8)
22private readonly Lazy<Dictionary<PackageIdentity, LocalPackageInfo>> _index; 23private readonly Lazy<Dictionary<Uri, LocalPackageInfo>> _pathIndex; 29_index = new Lazy<Dictionary<PackageIdentity, LocalPackageInfo>>(() => GetIndex(_packages)); 30_pathIndex = new Lazy<Dictionary<Uri, LocalPackageInfo>>(() => GetPathIndex(_packages)); 63private static Dictionary<PackageIdentity, LocalPackageInfo> GetIndex(Lazy<IReadOnlyList<LocalPackageInfo>> packages) 65var index = new Dictionary<PackageIdentity, LocalPackageInfo>(); 81private static Dictionary<Uri, LocalPackageInfo> GetPathIndex(Lazy<IReadOnlyList<LocalPackageInfo>> packages) 83var index = new Dictionary<Uri, LocalPackageInfo>();
Plugins\MessageConverter.cs (2)
14private static readonly Dictionary<(MessageMethod, MessageType), Func<JsonElement, object?>> _read = new() 65private static readonly Dictionary<Type, Action<Utf8JsonWriter, object>> _write = new()
Plugins\PluginPackageReader.cs (1)
993var groups = new Dictionary<NuGetFramework, List<string>>(NuGetFrameworkFullComparer.Instance);
Resources\ServiceIndexResourceV3.cs (2)
172var result = new Dictionary<string, List<ServiceIndexEntry>>(StringComparer.Ordinal); 237var result = new Dictionary<string, List<ServiceIndexEntry>>(StringComparer.Ordinal);
SourceRepository.cs (3)
20private readonly Dictionary<Type, IReadOnlyList<INuGetResourceProvider>> _providerCache = new(ProviderCacheTypes); 175private static Dictionary<Type, IReadOnlyList<INuGetResourceProvider>> Init(IEnumerable<Lazy<INuGetResourceProvider>> providers) 177var cache = new Dictionary<Type, IReadOnlyList<INuGetResourceProvider>>(ProviderCacheTypes);
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
src\nuget-client\build\Shared\TaskResultCache.cs (1)
135/// <inheritdoc cref="Dictionary{TKey, TValue}.TryGetValue(TKey, out TValue)" />
Utility\MetadataReferenceCache.cs (2)
15private readonly Dictionary<string, string> _stringCache = new Dictionary<string, string>(StringComparer.Ordinal); 16private readonly Dictionary<string, NuGetVersion> _versionCache = new Dictionary<string, NuGetVersion>(StringComparer.Ordinal);
NuGet.Resolver (11)
PackageResolver.cs (2)
264var dependencyRangesByPackageId = new Dictionary<string, IList<VersionRange>>(StringComparer.OrdinalIgnoreCase); 289var dependencyByPackageId = new Dictionary<string, VersionRange>(StringComparer.OrdinalIgnoreCase);
ResolverComparer.cs (1)
22private readonly Dictionary<string, NuGetVersion> _installedVersions;
ResolverInputSort.cs (1)
45var parents = new Dictionary<string, SortedSet<string>>(StringComparer.OrdinalIgnoreCase);
ResolverUtility.cs (2)
399var packageLookUp = solution.ToDictionary(p => p.Id, StringComparer.OrdinalIgnoreCase); 414private static List<ResolverPackage> FindCircularDependency(ResolverPackage package, Dictionary<string, ResolverPackage> packageLookUp, HashSet<ResolverPackage> visitedPackages)
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
NuGet.Versioning (7)
NuGetVersionFactory.cs (1)
18private static Dictionary<string, NuGetVersion> ParsedNuGetVersionsMapping = new Dictionary<string, NuGetVersion>(ParsedNuGetVersionsMappingMaxEntries);
src\nuget-client\build\Shared\NoAllocEnumerateExtensions.cs (5)
288/// has a well known struct enumerator, such as for <see cref="Dictionary{TKey,TValue}"/>. 292/// Several collection types (e.g. <see cref="Dictionary{TKey,TValue}"/>) provide a struct-based enumerator type 293/// (e.g. <see cref="Dictionary{TKey,TValue}.Enumerator"/>) which the compiler can use in <see langword="foreach" /> statements. 355private Dictionary<TKey, TValue>.Enumerator _concreteEnumerator; 364else if (dictionary is Dictionary<TKey, TValue> concrete)
VersionRangeFactory.cs (1)
20private static Dictionary<(string, bool), VersionRange> ParsedVersionRangeMapping = new Dictionary<(string, bool), VersionRange>(ParsedVersionRangeMappingMaxEntries);
PresentationBuildTasks (29)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
177Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>(); 292Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (2)
926Dictionary<string, SpecialBracketCharacters> bracketCharacterCache = _parserContext.InitBracketCharacterCacheForType(extensionType); 1476private SpecialBracketCharacters GetBracketCharacterForProperty(string propertyName, Dictionary<string, SpecialBracketCharacters> bracketCharacterCache)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (9)
195internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(Type type) 199Dictionary<string, SpecialBracketCharacters> map = BuildBracketCharacterCacheForType(type); 696internal Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> MasterBracketCharacterCache 702_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 821private Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> _masterBracketCharacterCache; 840private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(Type extensionType) 842Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
4163private Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
406private Dictionary<string, string> _compatTable = null; 409private Dictionary<string, string> _compatTableReverse = null;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
51private static Dictionary<string, Assembly> _cachedMetadataLoadContextAssemblies = null; 52private static Dictionary<string, Assembly> _cachedMetadataLoadContextAssembliesByNameNoExtension = null;
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
1653private Dictionary<string, object> _ignorables; 1654private Dictionary<string, ProcessContentSet> _processContents; 1655private Dictionary<string, PreserveItemSet> _preserveElements; 1656private Dictionary<string, PreserveItemSet> _preserveAttributes; 2008private Dictionary<string, string> _names; 2063private Dictionary<string, object> _knownNamespaces; 2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2065private Dictionary<string, object> _subsumingNamespaces; 2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (74)
MS\Internal\Automation\EventMap.cs (1)
272private static Dictionary<int, EventInfo> _eventsTable; // key=event id, data=listener count
MS\Internal\DeferredElementTreeState.cs (2)
122private Dictionary<DependencyObject, DependencyObject> _oldCoreParents = new Dictionary<DependencyObject, DependencyObject>(); 123private Dictionary<DependencyObject, DependencyObject> _oldLogicalParents = new Dictionary<DependencyObject, DependencyObject>();
MS\Internal\FontCache\FamilyCollection.cs (2)
473Dictionary<string, Text.TextInterface.Font> faces = new Dictionary<string, Text.TextInterface.Font>(StringComparer.OrdinalIgnoreCase); 490Dictionary<string, Text.TextInterface.Font>.AlternateLookup<ReadOnlySpan<char>> alternateLookup = faces.GetAlternateLookup<ReadOnlySpan<char>>();
MS\Internal\FontCache\FontFaceLayoutInfo.cs (2)
577private Dictionary<int, ushort> _cmap; 585private Dictionary<int, ushort> CMap
MS\Internal\FontCache\FontResourceCache.cs (6)
24private static void ConstructFontResourceCache(Assembly entryAssembly, Dictionary<string, List<string>> folderResourceMap) 76Dictionary<string, List<string>> folderResourceMap; 108private static void AddResourceToFolderMap(Dictionary<string, List<string>> folderResourceMap, string resourceFullName) 145private static Dictionary<Assembly, Dictionary<string, List<string>>> _assemblyCaches 146= new Dictionary<Assembly, Dictionary<string, List<string>>>(1);
MS\Internal\FontFace\CompositeFontInfo.cs (2)
22private Dictionary<XmlLanguage, ushort[]> _familyMapRangesByLanguage; 146Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count);
MS\Internal\FontFace\FontDifferentiator.cs (1)
31Dictionary<XmlLanguage, string> faceNames = new Dictionary<XmlLanguage, string>(1);
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
41Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
2687private System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry> _strokeLookupTable = null;
MS\Internal\Ink\Renderer.cs (2)
691private Dictionary<Stroke, StrokeVisual> _visuals; 694private Dictionary<Color, HighlighterContainerVisual> _highlighters = null;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (3)
250Dictionary<Edge, EdgeInfo> adjInformation = new Dictionary<Edge, EdgeInfo>(); 427Dictionary<Edge, EdgeInfo> adjInformation, 820Dictionary<Edge, EdgeInfo> adjInformation)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
155private static readonly Dictionary<string, ContentType> _fileExtensionToMimeType = new Dictionary<string, ContentType>(4);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
89private static Dictionary<object, AssemblyName> _assemblies; // get key via GetKeyForAssembly
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
280private readonly Dictionary<K, Node> _nodeLookup;
System\Windows\Ink\StrokeCollection2.cs (1)
353Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>();
System\Windows\Input\ManipulationDevice.cs (1)
517private static Dictionary<UIElement, ManipulationDevice> _manipulationDevices;
System\Windows\Input\ManipulationLogic.cs (3)
511var temp = _removedManipulators; 693private Dictionary<int, Manipulator2D> _currentManipulators = new Dictionary<int, Manipulator2D>(2); 696private Dictionary<int, Manipulator2D> _removedManipulators = new Dictionary<int, Manipulator2D>(2);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
172private readonly Dictionary<DpiScale2, Matrix> _transformToDeviceMatrices = new Dictionary<DpiScale2, Matrix>();
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (4)
195private static Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>> _hidToGuidMap = new Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>>() 244Dictionary<HidUsage, Guid> pageMap = null;
System\Windows\Input\Stylus\Common\StylusPointPropertyUnit.cs (1)
63private static Dictionary<uint, StylusPointPropertyUnit> _pointerUnitMap = new Dictionary<uint, StylusPointPropertyUnit>()
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
108internal Dictionary<PresentationSource, PointerStylusPlugInManager> PlugInManagers
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
27private static Dictionary<byte, short> _hidExponentMap = new Dictionary<byte, short>()
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
29private Dictionary<uint, PointerStylusDevice> _stylusDeviceMap = new Dictionary<uint, PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (2)
21private Dictionary<IntPtr, PointerTabletDevice> _tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>(); 75Dictionary<IntPtr, PointerTabletDevice> oldTablets = _tabletDeviceMap;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
3707private Dictionary<object, PenContexts> __penContextsMap = new Dictionary<object, PenContexts>(2); 3710private Dictionary<int, StylusDevice> __stylusDeviceMap = new Dictionary<int, StylusDevice>(2); 3733private Dictionary<StylusDeviceBase, RawStylusInputReport> _lastMovesQueued = new Dictionary<StylusDeviceBase, RawStylusInputReport>(); 3737private Dictionary<StylusDeviceBase, RawStylusInputReport> _coalescedMoves = new Dictionary<StylusDeviceBase, RawStylusInputReport>();
System\Windows\Media\FontEmbeddingManager.cs (5)
24_collectedGlyphTypefaces = new Dictionary<Uri, Dictionary<ushort, bool>>(_uriComparer); 47Dictionary<ushort, bool> glyphSet; 84Dictionary<ushort, bool> glyphsUsed = _collectedGlyphTypefaces[glyphTypeface]; 125private Dictionary<Uri, Dictionary<ushort, bool>> _collectedGlyphTypefaces;
System\Windows\Media\HostVisual.cs (1)
557private Dictionary<DUCE.Channel, Dispatcher> _connectedChannels = new Dictionary<DUCE.Channel, Dispatcher>();
System\Windows\Media\Knowncolors.cs (1)
833private static Dictionary<uint, SolidColorBrush> s_solidColorBrushCache = new Dictionary<uint, SolidColorBrush>();
System\Windows\Media\SolidColorBrush.cs (3)
296public Dictionary<TKey, TValue>.Enumerator GetEnumerator() 304private Dictionary<TKey, TValue> fwdDictionary; 305private Dictionary<TValue, List<TKey>> revDictionary;
System\Windows\Media\textformatting\TextFormatterContext.cs (3)
27private static Dictionary<char,bool> _specialCharacters; // special characters 404Dictionary<char,bool> dict = new Dictionary<char,bool>(); 460System.Threading.Interlocked.CompareExchange<Dictionary<char,bool>>(ref _specialCharacters, dict, null);
System\Windows\Media\UniqueEventHelper.cs (3)
80protected Dictionary<TEventHandler, int> _delegates; 92if (_delegates is Dictionary<TEventHandler, int> delegates) 112if (_delegates is Dictionary<TEventHandler, int> delegates &&
System\Windows\Media\Visual.cs (10)
649Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap = 821Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap = 851Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap = 888Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap = 911Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap = 5213Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap = 5323private static readonly UncommonField<Dictionary<ICyclicBrush, int>> CyclicBrushToChannelsMapField 5324= new UncommonField<Dictionary<ICyclicBrush, int>>(); 5330private static readonly UncommonField<Dictionary<DUCE.Channel, int>> ChannelsToCyclicBrushMapField 5331= new UncommonField<Dictionary<DUCE.Channel, int>>();
System\Windows\Media3D\Visual3DCollection.cs (1)
540Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>();
PresentationFramework (154)
MS\Internal\Annotations\AnnotationMap.cs (1)
105private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>();
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
553private static readonly Dictionary<Type, int> s_ZLevel = new(); 558private static readonly Dictionary<int, ZRange> s_ZRanges = new();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
285private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\ObservableDictionary.cs (1)
367private Dictionary<string, string> _nameValues;
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (6)
104public Dictionary<Guid, Annotation> FindAnnotations(ContentLocator anchorLocator) 108Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 113Dictionary<Guid, CachedAnnotation>.ValueCollection.Enumerator annotationsEnumerator = _currentAnnotations.Values.GetEnumerator(); 167public Dictionary<Guid, Annotation> FindAnnotations() 169Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 282private Dictionary<Guid, CachedAnnotation> _currentAnnotations = new Dictionary<Guid, CachedAnnotation>();
MS\Internal\Annotations\XmlElementCollection.cs (1)
252private Dictionary<XmlDocument, int> _xmlDocsRefCounts;
MS\Internal\AppModel\MimeObjectFactory.cs (2)
74private static readonly Dictionary<ContentType, StreamToObjectFactoryDelegate> _objectConverters = new Dictionary<ContentType, StreamToObjectFactoryDelegate>(9, new ContentType.WeakComparer()); 75private static readonly Dictionary<ContentType, StreamToObjectFactoryDelegateCore> _objectConvertersCore = new Dictionary<ContentType, StreamToObjectFactoryDelegateCore>(9, new ContentType.WeakComparer());
MS\Internal\AppModel\ResourceContainer.cs (2)
322private static readonly Dictionary<string, ResourceManagerWrapper> s_registeredResourceManagers = new(StringComparer.Ordinal); 323private static readonly Dictionary<string, ResourceManagerWrapper>.AlternateLookup<ReadOnlySpan<char>> s_registeredResourceManagersLookup = s_registeredResourceManagers.GetAlternateLookup<ReadOnlySpan<char>>();
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
878private static Dictionary<XmlToken, string> s_xmlTokeFullNames; // A dictionary for the names of the xml elements 880private Dictionary<XmlToken, object> _cachedXmlElements; // A dictionary for caching the data object
MS\Internal\Data\AccessorTable.cs (1)
167private readonly Dictionary<AccessorTableKey, AccessorInfo> _table = new Dictionary<AccessorTableKey, AccessorInfo>();
MS\Internal\Data\CollectionViewGroupInternal.cs (1)
739private Dictionary<object, WeakReference> _nameToGroupMap; // To cache the mapping between name and subgroup
MS\Internal\Data\DataBindEngine.cs (1)
693private Dictionary<ValueConverterTableKey, IValueConverter> _valueConverterTable = new Dictionary<ValueConverterTableKey, IValueConverter>();
MS\Internal\Data\LiveShapingList.cs (1)
96internal Dictionary<string, DependencyProperty> ObservedProperties
MS\Internal\Globalization\BamlResourceDeserializer.cs (1)
389private readonly Dictionary<string, Stack<ILocalizabilityInheritable>> _propertyInheritanceTreeStack = new(8);
MS\Internal\Globalization\BamlTreeMap.cs (4)
264private Dictionary<BamlLocalizableResourceKey, int> _keyToBamlNodeIndexMap; 265private Dictionary<string, int> _uidToBamlNodeIndexMap; 286private Dictionary<string, ElementLocalizability> _classAttributeTable; 287private Dictionary<string, LocalizabilityAttribute> _propertyAttributeTable;
MS\Internal\Globalization\BamlTreeUpdater.cs (3)
680private readonly Dictionary<string, int> _uidToNewBamlNodeIndexMap; 683private readonly Dictionary<BamlLocalizableResourceKey, int> _keyToNewBamlNodeIndexMap; 686private Dictionary<string, string> _contentPropertyTable;
MS\Internal\Ink\ClipboardProcessor.cs (2)
263Dictionary<InkCanvasClipboardFormat, ClipboardData> preferredData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>(); 442private Dictionary<InkCanvasClipboardFormat, ClipboardData> _preferredClipboardData;
MS\Internal\Interop\InternalDispatchObject.cs (1)
53private Dictionary<int, MethodInfo> _dispId2MethodMap;
MS\Internal\IO\Packaging\XamlFilter.cs (1)
1023private Dictionary<string, uint> _lcidDictionary;
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
101private static Dictionary<string, DllModule> _cache = new System.Collections.Generic.Dictionary<string, DllModule>();
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (4)
12private static readonly Dictionary<Type, Type> CustomTypeToHelperTypeMappings = new Dictionary<Type, Type>(); 13private static readonly Dictionary<Type, Type> CustomAbiTypeToTypeMappings = new Dictionary<Type, Type>(); 14private static readonly Dictionary<string, Type> CustomAbiTypeNameToTypeMappings = new Dictionary<string, Type>(); 15private static readonly Dictionary<Type, string> CustomTypeToAbiTypeNameMappings = new Dictionary<Type, string>();
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static readonly Dictionary<string, bool> s_switchMap = new();
System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
645private IList<Annotation> MergeAndCacheAnnotations(Dictionary<Guid, Annotation> mapAnnotations, List<Guid> storeAnnotationsId) 689Dictionary<Guid, Annotation> annotations = null; 1044private static readonly Dictionary<Uri, IList<Uri>> _predefinedNamespaces;
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (5)
110Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> newChildren = new Dictionary<DateTimeCalendarModePair,DateTimeAutomationPeer>(); 641private Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> DateTimePeers 648private Dictionary<DateTimeCalendarModePair, WeakReference> WeakRefElementProxyStorage 654private Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> _dataChildren = new Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer>(); 655private Dictionary<DateTimeCalendarModePair, WeakReference> _weakRefElementProxyStorage = new Dictionary<DateTimeCalendarModePair, WeakReference>();
System\Windows\Controls\DataGrid.cs (2)
8223Dictionary<string, StringBuilder> dataGridStringBuilders = new Dictionary<string, StringBuilder>(formats.Count); 8617private Dictionary<DataGridColumn, CellAutomationValueHolder> _editingCellAutomationValueHolders
System\Windows\Controls\DataGridColumnCollection.cs (2)
471Dictionary<int, int> assignedDisplayIndexMap = new Dictionary<int, int>(); // <DisplayIndex, ColumnIndex> 2535private Dictionary<DataGridColumn, DataGridLength> _originalWidthsForResize; // Dictionary to hold the original widths of columns for resize operation
System\Windows\Controls\DataGridHelper.cs (6)
424var transferEnabledMap = GetPropertyTransferEnabledMapForObject(d); 430private static Dictionary<DependencyProperty, bool> GetPropertyTransferEnabledMapForObject(DependencyObject d) 432Dictionary<DependencyProperty, bool> propertyTransferEnabledForObject; 445Dictionary<DependencyProperty, bool> propertyTransferEnabledForObject; 463private static ConditionalWeakTable<DependencyObject, Dictionary<DependencyProperty, bool>> _propertyTransferEnabledMap = new ConditionalWeakTable<DependencyObject, Dictionary<DependencyProperty, bool>>();
System\Windows\Controls\DataGridItemAttachedStorage.cs (8)
13var map = EnsureItem(item); 20Dictionary<DependencyProperty, object> map; 33Dictionary<DependencyProperty, object> map; 57_itemStorageMap = new Dictionary<object, Dictionary<DependencyProperty, object>>(); 61private Dictionary<DependencyProperty, object> EnsureItem(object item) 63Dictionary<DependencyProperty, object> map; 78private Dictionary<object, Dictionary<DependencyProperty, object>> _itemStorageMap;
System\Windows\Controls\Primitives\Selector.cs (1)
2897private Dictionary<ItemInfo, ItemInfo> _set;
System\Windows\Data\BindingGroup.cs (1)
1532private Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (2)
268private static Dictionary<Uri, List<WeakReference<ResourceDictionary>>> _dictionariesFromUri; 534private static Dictionary<WeakReferenceKey<StaticResourceExtension>, WeakReference<ResourceDictionary>>
System\Windows\Documents\FixedDocument.cs (2)
791internal Dictionary<FixedPage, ArrayList> Highlights 1288private Dictionary<FixedPage, ArrayList> _highlights;
System\Windows\Documents\FixedDSBuilder.cs (1)
253private Dictionary<String, NameHashFixedNode> _nameHashTable;
System\Windows\Documents\FixedSchema.cs (1)
330private static readonly Dictionary<ContentType, XpsSchema> _schemas = new Dictionary<ContentType, XpsSchema>(new ContentType.StrongComparer());
System\Windows\Documents\FixedTextContainer.cs (1)
389internal void GetMultiHighlights(FixedTextPointer start, FixedTextPointer end, Dictionary<FixedPage, ArrayList> highlights, FixedHighlightType t,
System\Windows\Documents\FixedTextView.cs (1)
236Dictionary<FixedPage, ArrayList> highlights = new Dictionary<FixedPage,ArrayList>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
640private static readonly Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
37private static Dictionary<string, SpellCheckerCreationHelper> _instances =
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (1)
52private static Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\Speller.cs (2)
413private Dictionary<Uri, DictionaryInfo> UriMap 2033private Dictionary<Uri, DictionaryInfo> _uriMap;
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (3)
85private static readonly Dictionary<Actions, long> _timeLimits100Ns = new Dictionary<Actions, long> 99public Dictionary<Actions, long> CumulativeCallTime100Ns { get; set; } 100public Dictionary<Actions, long> NumCallsMeasured { get; set; }
System\Windows\Documents\WinRTSpellerInterop.cs (2)
821private Dictionary<CultureInfo, Tuple<WordsSegmenter, SpellChecker>> _spellCheckers; 831private Dictionary<string, List<string>> _customDictionaryFiles;
System\Windows\FrameworkTemplate.cs (2)
1477internal Dictionary<int, Type> ChildTypeFromChildIndex 1515private Dictionary<int, Type> _childTypeFromChildIndex = new Dictionary<int, Type>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
33private Dictionary<int, TypeConverter> _typeConverterMap = new Dictionary<int, TypeConverter>(); 34private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 35private Dictionary<string, Freezable> _freezeCache;
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (2)
11protected Dictionary<string, string> _namespaces; 49public void SetNamespaces(Dictionary<string, string> namespaces)
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
658private readonly Dictionary<string, short[]> _bamlXmlnsMappings = new Dictionary<string, short[]>();
System\Windows\Markup\Baml2006\WpfKnownType.cs (2)
313private Dictionary<int, Baml6ConstructorInfo> _constructors; 315public Dictionary<int, Baml6ConstructorInfo> Constructors
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
33private Dictionary<Type, XamlType> _masterTypeTable;
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
59private Dictionary<Type, XamlType> _masterTypeTable = new Dictionary<Type, XamlType>();
System\Windows\Markup\BamlReader.cs (1)
2864private Dictionary<String, List<String>> _reverseXmlnsTable;
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (3)
125public Dictionary<BamlLocalizableResourceKey, BamlLocalizableResource>.Enumerator GetEnumerator() => _dictionary.GetStructEnumerator(); 147internal Dictionary<BamlLocalizableResourceKey, BamlLocalizableResource>.Enumerator GetStructEnumerator() 409private readonly Dictionary<BamlLocalizableResourceKey, BamlLocalizableResource> _dictionary;
System\Windows\Markup\MarkupExtensionParser.cs (2)
926Dictionary<string, SpecialBracketCharacters> bracketCharacterCache = _parserContext.InitBracketCharacterCacheForType(extensionType); 1476private SpecialBracketCharacters GetBracketCharacterForProperty(string propertyName, Dictionary<string, SpecialBracketCharacters> bracketCharacterCache)
System\Windows\Markup\ParserContext.cs (10)
195internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(Type type) 199Dictionary<string, SpecialBracketCharacters> map = BuildBracketCharacterCacheForType(type); 696internal Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> MasterBracketCharacterCache 702_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 821private Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> _masterBracketCharacterCache; 840private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(Type extensionType) 842Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase); 946private Dictionary<string, Freezable> _freezeCache;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
69Dictionary<string, string> constructorArguments = null; 680private static Dictionary<Type, Type> _keyTypeMap;
System\Windows\Markup\Primitives\MarkupWriter.cs (12)
490Dictionary<string, string> writtenAttributes = new Dictionary<string, string>(); 927private bool IsDeferredProperty (MarkupProperty property, Dictionary<string, string> writtenAttributes, 1305private Dictionary<string, string> _uriToPrefix; 1306private Dictionary<string, string> _prefixToUri; 1550private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>(); 1551private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>(); 1554private static Dictionary<string, string> GetMappingsFor(Assembly assembly) 1556Dictionary<string, string> namespaceToUri; 1596Dictionary<string, string> assembliesNamespacetoUri = GetMappingsFor(referencedAssembly); 1617Dictionary<string, string> namespaceToUri = GetMappingsFor(type.Assembly);
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
38private static Dictionary<Type, Type> initializedTypes = new Dictionary<Type, Type>();
System\Windows\Markup\XamlTypeMapper.cs (4)
308private Dictionary<string, string> CloneStringDictionary(Dictionary<string, string> dict) 310Dictionary<string, string> newDict = new Dictionary<string, string>(); 4163private Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (3)
18private Dictionary<string, FrugalObjectList<string>> _nsDefinitions; 24private Dictionary<string, string> _piNamespaces; 26private Dictionary<Type, XamlType> _allowedInternalTypes;
System\Windows\Markup\XmlnsCache.cs (2)
406private Dictionary<string, string> _compatTable = null; 409private Dictionary<string, string> _compatTableReverse = null;
System\Windows\ResourceDictionary.cs (1)
2630private Dictionary<object, WeakReferenceList> _weakDeferredResourceReferencesMap = null;
System\Windows\Shell\JumpList.cs (1)
252private static readonly Dictionary<Application, JumpList> s_applicationMap = new Dictionary<Application, JumpList>();
System\Windows\Standard\MessageWindow.cs (1)
23private static readonly Dictionary<IntPtr, MessageWindow> s_windowLookup = new Dictionary<IntPtr, MessageWindow>();
System\Windows\SystemResources.cs (3)
1664[ThreadStatic] private static Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper> _hwndNotify; 1665[ThreadStatic] private static Dictionary<DpiUtil.HwndDpiInfo, HwndWrapperHook> _hwndNotifyHook; 1669private static Dictionary<Assembly, ResourceDictionaries> _dictionaries;
System\Windows\TemplateContent.cs (2)
1539internal Dictionary<string, XamlType> _namedTypes; 1540internal Dictionary<string, XamlType> NamedTypes
System\Windows\VisualStateManager.cs (8)
375Dictionary<TimelineDataToken, Timeline> currentAnimations = FlattenTimelines(group.CurrentStoryboards); 376Dictionary<TimelineDataToken, Timeline> transitionAnimations = FlattenTimelines(transition?.Storyboard); 377Dictionary<TimelineDataToken, Timeline> newStateAnimations = FlattenTimelines(newState.Storyboard); 665private static Dictionary<TimelineDataToken, Timeline> FlattenTimelines(Storyboard storyboard) 667Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>(); 674private static Dictionary<TimelineDataToken, Timeline> FlattenTimelines(Collection<Storyboard> storyboards) 676Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>(); 686private static void FlattenTimelines(Storyboard storyboard, Dictionary<TimelineDataToken, Timeline> result)
PresentationUI (3)
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
572private Dictionary<Uri, WriteableOnDemandPackagePart> _activeParts =
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
334Dictionary<X509Certificate2, CertificatePriorityStatus> certificateStatusTable =
MS\Internal\Documents\RightsManagementProvider.cs (1)
681Dictionary<RightsManagementUser, RightsManagementLicense> rights =
ReachFramework (49)
packaging\XpsDigitalSignature.cs (9)
65Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>(); 315Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>(); 364Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>(); 370Dictionary<string, int> relHash = null; 404Dictionary<string, int> relHash = uriHashTable[selector.SourceUri]; 416private Dictionary<string, string> OptionalSignedParts 444private static Dictionary<string, string> _optionalSignedTypes;
Packaging\XpsDocument.cs (2)
753Dictionary<Uri,Uri> dependentList, 870Dictionary<Uri,Uri> dependentList = new Dictionary<Uri,Uri> ();
Packaging\XpsFixedDocumentReaderWriter.cs (2)
704Dictionary<Uri,Uri> dependentList, 808Dictionary<Uri,Uri> dependents,
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (2)
436Dictionary<Uri,Uri> dependentList, 574Dictionary<Uri,Uri> dependents,
Packaging\XpsFixedPageReaderWriter.cs (8)
1352Dictionary<Uri,Uri> dependentList, 1403Dictionary<Uri,Uri> dependents 1517Dictionary<Uri,PackageRelationship> restictedFontRels = new Dictionary<Uri,PackageRelationship>(MS.Internal.UriComparer.Default); 1962private Dictionary<Uri,XpsImage> _imageCache; 1963private Dictionary<Uri,XpsFont> _fontCache; 1964private Dictionary<Uri,XpsColorContext> _colorContextCache; 1965private Dictionary<Uri,XpsResourceDictionary> _resourceDictionaryCache; 1966private Dictionary<Uri,XpsResource> _resourceCache;
Packaging\XpsManager.cs (4)
767Dictionary<Uri,Uri> dependents, 1320private Dictionary<string, int> _contentTypes; 1321private Dictionary<Uri, PackagePart> _cachedParts; 1325internal static Dictionary<Uri, int> _packageCache;
Packaging\XpsResourcePolicy.cs (15)
181Dictionary<UInt32, Uri> 195Dictionary<int, Uri> 212Dictionary<int, Uri> 226Dictionary<int, Uri> 240Dictionary<int, Uri> 254Dictionary<int, Uri> 268Dictionary<int, Uri> 286Dictionary<UInt32, Uri> _imageCrcTable; 289Dictionary<int,Uri> _imageUriHashTable; 292Dictionary<int, Uri> _currentPageImageTable; 295Dictionary<int, Uri> _colorContextTable; 298Dictionary<int, Uri> _currentPageColorContextTable; 301Dictionary<int, Uri> _resourceDictionaryTable; 304Dictionary<int, Uri> _currentPageResourceDictionaryTable; 310Dictionary<Type, object> _objDict = new Dictionary<Type, object>();
PrintConfig\PrtTicket_Public_Simple.cs (1)
1643private Dictionary<CapabilityName, object> _setterCache;
Serialization\ColorTypeConverter.cs (2)
282Dictionary<int, Uri> colorContextTable = manager.ResourcePolicy.ColorContextTable; 283Dictionary<int, Uri> currentPageColorContextTable = manager.ResourcePolicy.CurrentPageColorContextTable;
Serialization\ImageSourceTypeConverter.cs (3)
176Dictionary<int, Uri> currentPageImageTable = manager.ResourcePolicy.CurrentPageImageTable; 452Dictionary<int, Uri> imageUriHashTable = manager.ResourcePolicy.ImageUriHashTable; 472Dictionary<UInt32, Uri> imageCrcTable = manager.ResourcePolicy.ImageCrcTable;
Serialization\VisualTreeFlattener.cs (1)
300private Dictionary<String, int> _nameList;
RepoTasks (2)
BatchHelixWorkItems.cs (1)
49var eligibleGroups = new Dictionary<string, List<ITaskItem>>(StringComparer.OrdinalIgnoreCase);
ResolveDotnetToolPackagePaths.cs (1)
52var toolsByPackageId = new Dictionary<string, JsonElement>(StringComparer.OrdinalIgnoreCase);
Roslyn.Diagnostics.Analyzers (139)
src\60c94c676d650713\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
23Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\60c94c676d650713\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
18public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\b310f676f7308b7f\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
28private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 223private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\roslyn\src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (4)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary, 79public static void AddPooled<K, V>(this Dictionary<K, ArrayBuilder<V>> dictionary, K key, V value)
src\roslyn\src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (3)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new(); 124public Dictionary<K, ValueSet>.Enumerator GetEnumerator() 178public Dictionary<K, ValueSet>.KeyCollection Keys
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (4)
206private readonly Dictionary<K, ValueSet> _dictionary; 214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys; 216public Dictionary<K, ValueSet>.ValueCollection Values => _dictionary.Values; 279public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\roslyn\src\Dependencies\Collections\Extensions\ICollectionExtensions.cs (1)
67public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
764internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 767var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (7)
700this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 798internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 826(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 860internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 861(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
18/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
29/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
613internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\RulesetToEditorconfigConverter.cs (3)
67var ruleIdToComments = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 106static void ProcessComments(RuleSet ruleset, HashSet<string> processedRulesetPaths, Dictionary<string, string> ruleIdToComments) 122static void PopulateRuleIdToComments(string rulesetFilePath, Dictionary<string, string> ruleIdToComments)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
11Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 12Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 16public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 19public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (8)
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) : []; 403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 860var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 862var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
505public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
45protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 103var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap, 260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken) 296Dictionary<SyntaxToken, int> previousChangesMap, 324Dictionary<SyntaxToken, int> previousChangesMap, 380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken) 412Dictionary<SyntaxToken, int> previousChangesMap, 448Dictionary<SyntaxToken, int> previousChangesMap, 475Dictionary<SyntaxToken, int> previousChangesMap, 492Dictionary<SyntaxToken, int> previousChangesMap, 544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (3)
44protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken); 95using var pooledObject = SharedPools.Default<Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>>().GetPooledObject(); 97var map = pooledObject.Object;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
16private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (3)
19var trimmedDictionary = TrimDictionary(allRawConventions); 84internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 86var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull 38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool); 74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary) 77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool); 141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) 144var map = pool.Allocate(); 283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 84return new PooledObject<Dictionary<TKey, TValue>>( 139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool) 143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (2)
37public static ObjectPool<Dictionary<string, T>> StringIgnoreCaseDictionary<T>() 74public static readonly ObjectPool<Dictionary<string, T>> Instance =
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (3)
160var spilledEdges = builderNode.SpilloverEdges; 243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
572private static int GetValue(Dictionary<char, int> da, char c)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (2)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue) 232public static void RemoveAll<TKey, TValue, TArg>(this Dictionary<TKey, TValue> dictionary, Func<TKey, TValue, TArg, bool> predicate, TArg arg)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (4)
15public static Dictionary<K, V> ToDictionaryAndFree<K, V>(this PooledDictionary<K, V> builders) 18var dictionary = new Dictionary<K, V>(builders.Count); 29public static Dictionary<K, ImmutableArray<V>> ToMultiDictionaryAndFree<K, V>(this PooledDictionary<K, ArrayBuilder<V>> builders) 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
18private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (3)
580Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 601Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 623Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (3)
149public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 164public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
22public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 65private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 73internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 76internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 112private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 140private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 152private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 170private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 281private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 301private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 330private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, 486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 617private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
54var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 108var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (2)
94using var collisionMapPool = (isCaseSensitive ? SharedPools.Default<Dictionary<string, bool>>() : SharedPools.StringIgnoreCaseDictionary<bool>()).GetPooledObject(); 95var collisionMap = collisionMapPool.Object;
Roslyn.Diagnostics.CSharp.Analyzers (20)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
42var directiveSyntaxMap = GetDirectiveInfo(directive, cancellationToken).DirectiveMap; 54var directiveConditionalMap = GetDirectiveInfo(directive, cancellationToken).ConditionalMap;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
17private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new(); 22var dictionary = DeclarationFinder.GetAllDeclarations(member);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.DeclarationFinder.cs (2)
16private readonly Dictionary<string, List<SyntaxToken>> _map = []; 23public static Dictionary<string, List<SyntaxToken>> GetAllDeclarations(SyntaxNode syntax)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.LocalDeclarationMap.cs (2)
16private readonly Dictionary<string, ImmutableArray<SyntaxToken>> _dictionary; 18internal LocalDeclarationMap(Dictionary<string, ImmutableArray<SyntaxToken>> dictionary)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\AggregatedFormattingResult.cs (1)
20protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\FormattingResult.cs (1)
24protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (4)
24private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _trailingTriviaMap = []; 25private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _leadingTriviaMap = []; 30Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, 47Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.EqualityComparer) 36private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.EqualityComparer)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (4)
649var map = DetermineTypeParameterMapping(type, method.ReturnType); 666private static Dictionary<ITypeParameterSymbol, ITypeSymbol> DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType) 668var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>(); 673private static void DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType, Dictionary<ITypeParameterSymbol, ITypeSymbol> result)
rzc (15)
ConcurrentLruCache.cs (1)
19private readonly Dictionary<TKey, CacheValue> _cache;
DefaultExtensionAssemblyLoader.cs (4)
19private readonly Dictionary<string, (Assembly assembly, AssemblyIdentity identity)> _loadedByPath; 20private readonly Dictionary<AssemblyIdentity, Assembly> _loadedByIdentity; 21private readonly Dictionary<string, AssemblyIdentity> _identityCache; 22private readonly Dictionary<string, List<string>> _wellKnownAssemblies;
GenerateCommand.cs (2)
345var outputBySourcePath = new Dictionary<string, string>(StringComparer.Ordinal); 410var cssScopeAssociations = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
RazorSourceGeneratorHost.cs (8)
42var globalOptions = new Dictionary<string, string>(StringComparer.Ordinal) 55var fileOptions = new Dictionary<string, AnalyzerConfigOptions>(StringComparer.Ordinal); 58var metadata = new Dictionary<string, string>(StringComparer.Ordinal) 122private static void AddIfPresent(Dictionary<string, string> options, string key, string value) 181private readonly Dictionary<string, string> _options; 183public RazorAnalyzerConfigOptions(Dictionary<string, string> options) 197private readonly Dictionary<string, AnalyzerConfigOptions> _fileOptions; 199public RazorAnalyzerConfigOptionsProvider(AnalyzerConfigOptions globalOptions, Dictionary<string, AnalyzerConfigOptions> fileOptions)
ScenarioTests.Common.Tests (5)
ScenarioTestTypes.cs (2)
596private Dictionary<string, string> _headers; 625public Dictionary<string, string> Headers
ServiceInterfaces.cs (3)
70Dictionary<string, string> GetIncomingMessageHeaders(); 91Dictionary<string, string> GetRequestHttpHeaders(); 289Dictionary<string, string> ValidateMessagePropertyHeaders();
sdk-tasks (16)
_generated\1\SdkTasksJsonSerializerContext.DictionaryStringMetadataEntry.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>>? _DictionaryStringMetadataEntry; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>> DictionaryStringMetadataEntry 22get => _DictionaryStringMetadataEntry ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>> Create_DictionaryStringMetadataEntry(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>, string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>(options, info); 47private void DictionaryStringMetadataEntrySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>? value)
_generated\5\SdkTasksJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
26if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.DotNet.Build.Tasks.ProcessRuntimeAnalyzerVersions.MetadataEntry>))
CalculateTemplateVersions.cs (1)
47var groups = BundledTemplates.GroupBy(bt => bt.GetMetadata("TemplateFrameworkVersion"))
DeduplicateAssembliesWithLinks.cs (2)
62private (Dictionary<string, List<FileEntry>> filesByHash, bool success) HashAndGroupFiles(List<string> files) 64var filesByHash = new Dictionary<string, List<FileEntry>>();
ProcessRuntimeAnalyzerVersions.cs (2)
25var metadata = new Dictionary<string, MetadataEntry>(); 75[JsonSerializable(typeof(Dictionary<string, ProcessRuntimeAnalyzerVersions.MetadataEntry>))]
Security.TransportSecurity.IntegrationTests (2)
Http\ClientCredentialTypeTests.4.1.0.cs (1)
103Dictionary<string, string> requestHeaders = null;
Https\HttpsTests.4.1.0.cs (1)
433Dictionary<string, string> requestHeaders = serviceProxy.GetRequestHttpHeaders();
SelectTests (29)
GraphAffectedProjects.cs (14)
144var nodesByProjectPath = BuildNodesByProjectPath(graphNodes); 146var inputFileIndex = BuildInputFileIndex(graphNodes); 170var paths = BuildAffectedPaths(affectedProjects, parentByProjectPath, originatingFileByProject); 179private static Dictionary<string, AffectedPath> BuildAffectedPaths( 184var paths = new Dictionary<string, AffectedPath>(StringComparer.Ordinal); 221var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 234private static Dictionary<string, List<ProjectGraphNode>> BuildNodesByProjectPath(IEnumerable<ProjectGraphNode> graphNodes) 238var nodesByProjectPath = new Dictionary<string, List<ProjectGraphNode>>(s_pathComparer); 264private static Dictionary<string, HashSet<string>> BuildInputFileIndex(IEnumerable<ProjectGraphNode> graphNodes) 266var index = new Dictionary<string, HashSet<string>>(s_pathComparer); 323var originatingFile = new Dictionary<string, string>(s_pathComparer); 379var dependents = new Dictionary<string, List<string>>(s_pathComparer); 412var parent = new Dictionary<string, string>(s_pathComparer); 560private static void AddToIndex(Dictionary<string, HashSet<string>> index, string key, string project)
Program.cs (4)
284var map = new Dictionary<string, string>(StringComparer.Ordinal); 795var groups = new Dictionary<string, Dictionary<string, Cause>>(StringComparer.Ordinal); 806if (!groups.TryGetValue(key, out var members))
TestSelector.cs (10)
164var testCauses = new Dictionary<string, List<Cause>>(StringComparer.Ordinal); 165var jobCauses = new Dictionary<string, List<Cause>>(StringComparer.Ordinal); 330private static IReadOnlyDictionary<string, IReadOnlyList<Cause>> Freeze(Dictionary<string, List<Cause>> causes) => 345private static void AddCause(Dictionary<string, List<Cause>> causes, string key, Cause cause) 380Dictionary<string, List<Cause>> testCauses, 381Dictionary<string, List<Cause>> jobCauses, 417Dictionary<string, List<Cause>> testCauses, 418Dictionary<string, List<Cause>> jobCauses, 441Dictionary<string, List<Cause>> testCauses, 442Dictionary<string, List<Cause>> jobCauses,
TriggerMap.cs (1)
19public Dictionary<string, List<string>> Groups { get; set; } = new();
Shared (5)
Pools\PooledDictionaryPolicy.cs (3)
14internal sealed class PooledDictionaryPolicy<TKey, TValue> : PooledObjectPolicy<Dictionary<TKey, TValue>> 24public override Dictionary<TKey, TValue> Create() => new(_comparer); 26public override bool Return(Dictionary<TKey, TValue> obj)
Pools\PoolFactory.cs (2)
141/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 152public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Shared.Tests (45)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
49var dictionary = new Dictionary<T, T>();
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringInt32.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>>? _DictionaryStringInt32; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>> DictionaryStringInt32 24get => _DictionaryStringInt32 ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, int>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>> Create_DictionaryStringInt32(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, int>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, int>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, int>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, int>, string, int>(options, info); 47private void DictionaryStringInt32SerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, int>? value)
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringObject.g.cs (9)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>? _DictionaryStringObject; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> DictionaryStringObject 24get => _DictionaryStringObject ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, object>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> Create_DictionaryStringObject(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, object>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, object>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, object>, string, object>(options, info);
Generated\361d1da7f942c932\TestTypesContext.DictionaryStringSimplePoco.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>>? _DictionaryStringSimplePoco; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>> DictionaryStringSimplePoco 24get => _DictionaryStringSimplePoco ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>> Create_DictionaryStringSimplePoco(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>, string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>(options, info); 47private void DictionaryStringSimplePocoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>? value)
Generated\361d1da7f942c932\TestTypesContext.PocoWithExtensionDataProperty.g.cs (3)
73var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.Dictionary<string, object>> 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.PocoWithExtensionDataProperty).GetProperty("ExtensionData", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null), 91properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.Dictionary<string, object>>(options, info1);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.GetJsonTypeInfo.g.cs (3)
248if (type == typeof(global::System.Collections.Generic.Dictionary<string, global::Microsoft.Extensions.AI.JsonSchemaExporter.TestTypes.SimplePoco>)) 252if (type == typeof(global::System.Collections.Generic.Dictionary<string, int>)) 256if (type == typeof(global::System.Collections.Generic.Dictionary<string, object>))
JsonSchemaExporter\TestTypes.cs (7)
826yield return new TestData<Dictionary<string, int>>( 838yield return new TestData<Dictionary<string, SimplePoco>>( 861yield return new TestData<Dictionary<string, object>>( 1030public Dictionary<string, object>? ExtensionData { get; set; } 1307[JsonSerializable(typeof(Dictionary<string, int>))] 1309[JsonSerializable(typeof(Dictionary<string, SimplePoco>))] 1310[JsonSerializable(typeof(Dictionary<string, object>))]
Pools\PoolTests.cs (2)
166var d = pool.Get(); 170var d2 = pool.Get();
System.CodeDom (3)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
12private readonly Dictionary<string, CodeNamespaceImport> _keys = new Dictionary<string, CodeNamespaceImport>(StringComparer.OrdinalIgnoreCase);
System\CodeDom\Compiler\CodeDomProvider.cs (2)
16private static readonly Dictionary<string, CompilerInfo> s_compilerLanguages = new Dictionary<string, CompilerInfo>(StringComparer.OrdinalIgnoreCase); 17private static readonly Dictionary<string, CompilerInfo> s_compilerExtensions = new Dictionary<string, CompilerInfo>(StringComparer.OrdinalIgnoreCase);
System.Collections (3)
src\runtime\artifacts\obj\System.Collections\Release\net11.0\System.Collections.Forwards.cs (1)
6[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.Dictionary<,>))]
System\Collections\Generic\OrderedDictionary.cs (2)
24/// class, except with lookups by key similar in complexity to that of <see cref="Dictionary{TKey, TValue}"/>. 44/// Unlike <see cref="Dictionary{TKey, TValue}"/>, removed entries are actually removed rather than left as holes
System.Collections.Immutable (23)
System\Collections\Frozen\DefaultFrozenDictionary.cs (1)
15internal DefaultFrozenDictionary(Dictionary<TKey, TValue> source)
System\Collections\Frozen\FrozenDictionary.cs (7)
54Dictionary<TKey, TValue> d = new(source.Length, comparer); 75GetExistingFrozenOrNewDictionary(source, comparer, out Dictionary<TKey, TValue>? uniqueValues) ?? 105/// Extracts from the source either an existing <see cref="FrozenDictionary{TKey,TValue}"/> instance or a <see cref="Dictionary{TKey,TValue}"/> 116out Dictionary<TKey, TValue>? newDictionary) 131newDictionary = source as Dictionary<TKey, TValue>; 158private static FrozenDictionary<TKey, TValue> CreateFromDictionary<TKey, TValue>(Dictionary<TKey, TValue> source) 195return (FrozenDictionary<TKey, TValue>)(object)new Int32FrozenDictionary<TValue>((Dictionary<int, TValue>)(object)source);
System\Collections\Frozen\Int32\Int32FrozenDictionary.cs (1)
21internal Int32FrozenDictionary(Dictionary<int, TValue> source) : base(EqualityComparer<int>.Default)
System\Collections\Frozen\Integer\DenseIntegralFrozenDictionary.cs (3)
29public static FrozenDictionary<TKey, TValue>? CreateIfValid<TKey, TValue>(Dictionary<TKey, TValue> source) 44private static FrozenDictionary<TKey, TValue>? CreateIfValid<TKey, TKeyUnderlying, TValue>(Dictionary<TKey, TValue> source) 50Dictionary<TKey, TValue>.Enumerator e = source.GetEnumerator();
System\Collections\Frozen\KeysAndValuesFrozenDictionary.cs (1)
18protected KeysAndValuesFrozenDictionary(Dictionary<TKey, TValue> source, bool keysAreHashCodes = false) : base(source.Comparer)
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
24internal SmallFrozenDictionary(Dictionary<TKey, TValue> source) : base(source.Comparer)
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (1)
25internal SmallValueTypeComparableFrozenDictionary(Dictionary<TKey, TValue> source) : base(EqualityComparer<TKey>.Default)
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (1)
18internal SmallValueTypeDefaultComparerFrozenDictionary(Dictionary<TKey, TValue> source) : base(EqualityComparer<TKey>.Default)
System\Collections\Frozen\ValueTypeDefaultComparerFrozenDictionary.cs (1)
16internal ValueTypeDefaultComparerFrozenDictionary(Dictionary<TKey, TValue> source) : base(source, Constants.KeysAreHashCodes<TKey>())
System\Linq\ImmutableArrayExtensions.cs (6)
557public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector) where TKey : notnull 572public static Dictionary<TKey, TElement> ToDictionary<TKey, TElement, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, Func<T, TElement> elementSelector) where TKey : notnull 586public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 590var result = new Dictionary<TKey, T>(immutableArray.Length, comparer); 610public static Dictionary<TKey, TElement> ToDictionary<TKey, TElement, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, Func<T, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 615var result = new Dictionary<TKey, TElement>(immutableArray.Length, comparer);
System.CommandLine (9)
Binding\ArgumentConverter.StringConverters.cs (2)
13private static Dictionary<Type, TryConvertString>? _stringConverters; 15private static Dictionary<Type, TryConvertString> StringConverters
Help\HelpBuilder.cs (1)
18private Dictionary<Symbol, Customization>? _customizationsBySymbol;
Parsing\StringExtensions.cs (5)
46var knownTokens = rootCommand.ValidTokens(); 396private static Dictionary<string, Token> ValidTokens(this Command command) 398Dictionary<string, Token> tokens = new(StringComparer.Ordinal); 461static void AddCommandTokens(Dictionary<string, Token> tokens, Command cmd) 474static void AddOptionTokens(Dictionary<string, Token> tokens, Option option)
Parsing\SymbolResultTree.cs (1)
13private Dictionary<string, SymbolNode>? _symbolsByName;
System.CommandLine.StaticCompletions (3)
DynamicSymbolExtensions.cs (1)
17private static readonly Dictionary<Symbol, bool> s_dynamicSymbols = [];
shells\FishShellProvider.cs (2)
34var stateIdByCommand = states.ToDictionary(s => s.cmd, s => s.id); 90private static void WriteStateWalker(IndentedTextWriter writer, List<(int id, Command cmd)> states, Dictionary<Command, int> stateIdByCommand)
System.ComponentModel.Annotations (6)
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (2)
162private Dictionary<string, object?> BuildControlParametersDictionary() 164var controlParameters = new Dictionary<string, object?>();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (3)
171private Dictionary<string, PropertyStoreItem>? _propertyStoreItems; 211private Dictionary<string, PropertyStoreItem> CreatePropertyStoreItems() 213var propertyStoreItems = new Dictionary<string, PropertyStoreItem>();
System\ComponentModel\DataAnnotations\ValidationContext.cs (1)
34private readonly Dictionary<object, object?> _items;
System.ComponentModel.Composition (41)
System\ComponentModel\Composition\AttributedModelServices.cs (1)
120var metadata = new Dictionary<string, object?>();
System\ComponentModel\Composition\ContractNameServices.cs (1)
29private static Dictionary<Type, string> TypeIdentityCache => field ??= new();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
39private readonly Dictionary<ComposablePartDefinition, CatalogPart> _activatedParts = new Dictionary<ComposablePartDefinition, CatalogPart>();
System\ComponentModel\Composition\Hosting\CompositionServices.cs (2)
187var dictionary = new Dictionary<string, object?>(StringComparers.MetadataKeyNames); 497Dictionary<string, object?>? metadata = null;
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
34private Dictionary<string, AssemblyCatalog> _assemblyCatalogs;
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependenciesTraversal.cs (1)
18private Dictionary<string, List<ComposablePartDefinition>>? _exportersIndex;
System\ComponentModel\Composition\Hosting\FilteredCatalog.DependentsTraversal.cs (1)
24private Dictionary<string, List<ComposablePartDefinition>>? _importersIndex;
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (2)
20private Dictionary<ImportDefinition, List<IDisposable>>? _importedDisposableExports; 21private Dictionary<ImportDefinition, Export[]?>? _importCache;
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
22private readonly Dictionary<string, WeakReferenceCollection<PartManager>> _partManagerIndex = new Dictionary<string, WeakReferenceCollection<PartManager>>();
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (7)
32private readonly Lazy<Dictionary<string, List<ComposablePartDefinition>>> _contractPartIndex; 81_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 109_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 138_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 171_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true); 316private Dictionary<string, List<ComposablePartDefinition>> CreateIndex() 318Dictionary<string, List<ComposablePartDefinition>> index = new Dictionary<string, List<ComposablePartDefinition>>(StringComparers.ContractName);
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
69private static readonly Dictionary<Type, MetadataViewFactory> _metadataViewFactories = new Dictionary<Type, MetadataViewFactory>();
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (13)
27private Dictionary<LazyMemberInfo, MemberInfo[]>? _membersTable; 28private Dictionary<Lazy<ParameterInfo>, ParameterInfo>? _parametersTable; 100var originalMetadata = new Dictionary<string, object?>(_originalPartCreationInfo.GetMetadata()!, StringComparers.MetadataKeyNames); 153Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = BuildMembersTable(members!); 154Dictionary<Lazy<ParameterInfo>, ParameterInfo>? parametersTable = BuildParametersTable(parameters); 171private Dictionary<LazyMemberInfo, MemberInfo[]> BuildMembersTable(List<LazyMemberInfo> members) 175Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = new Dictionary<LazyMemberInfo, MemberInfo[]>(); 176Dictionary<int, MemberInfo> specializedPartMembers = new Dictionary<int, MemberInfo>(); 236private Dictionary<Lazy<ParameterInfo>, ParameterInfo>? BuildParametersTable(List<Lazy<ParameterInfo>>? parameters) 240Dictionary<Lazy<ParameterInfo>, ParameterInfo> parametersTable = new Dictionary<Lazy<ParameterInfo>, ParameterInfo>(); 437Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalImport.Metadata, StringComparers.MetadataKeyNames); 452private Dictionary<string, object?> TranslateExportMetadata(ReflectionMemberExportDefinition originalExport) 454Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalExport.Metadata, StringComparers.MetadataKeyNames);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
25private static Dictionary<Type, Func<Export, object>?> CastSingleValueCache => field ??= new();
System\ComponentModel\Composition\ReflectionModel\PartCreatorExportDefinition.cs (1)
35var metadata = new Dictionary<string, object?>(_productDefinition.Metadata);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (7)
19private Dictionary<ImportDefinition, object?>? _importValues; 20private Dictionary<ImportDefinition, ImportingItem>? _importsCache; 21private Dictionary<int, ExportingMember>? _exportsCache; 60private Dictionary<ImportDefinition, object?> ImportValues 64var value = _importValues; 81private Dictionary<ImportDefinition, ImportingItem> ImportsCache 85var value = _importsCache;
System.ComponentModel.Composition.Registration (3)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
73private Dictionary<ParameterInfo, Action<ImportBuilder>> _importBuilders;
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (2)
26private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 27private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>();
System.ComponentModel.TypeConverter (18)
src\runtime\src\libraries\Common\src\System\Drawing\ColorTable.cs (6)
12private static readonly Lazy<Dictionary<string, Color>> s_colorConstants = new Lazy<Dictionary<string, Color>>(GetColors); 14private static Dictionary<string, Color> GetColors() 16var colors = new Dictionary<string, Color>(StringComparer.OrdinalIgnoreCase); 23Dictionary<string, Color> dictionary, 33internal static Dictionary<string, Color> Colors => s_colorConstants.Value;
System\ComponentModel\AttributeCollection.cs (1)
23private static Dictionary<Type, Attribute?>? s_defaultAttributes;
System\ComponentModel\ComponentResourceManager.cs (1)
20private Dictionary<CultureInfo, SortedList<string, object?>?>? _resourceSets;
System\ComponentModel\CultureInfoConverter.cs (3)
268private static readonly Dictionary<string, string> s_cultureInfoNameMap = CreateMap(); 270private static Dictionary<string, string> CreateMap() 273var result = new Dictionary<string, string>(Count)
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (1)
29private readonly Dictionary<RelationshipEntry, RelationshipEntry> _relationships = new Dictionary<RelationshipEntry, RelationshipEntry>();
System\ComponentModel\LicenseManager.LicenseInteropHelper.cs (1)
65private readonly Dictionary<string, string> _savedLicenseKeys = new Dictionary<string, string>();
System\ComponentModel\MemberDescriptor.cs (1)
345var map = new Dictionary<object, int>();
System\ComponentModel\ReflectTypeDescriptionProvider.cs (2)
36private static Dictionary<object, IntrinsicTypeConverterData>? s_intrinsicTypeConverters; 144private static Dictionary<object, IntrinsicTypeConverterData> IntrinsicTypeConverters
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (2)
444Dictionary<string, EventDescriptor> eventList = new Dictionary<string, EventDescriptor>(16); 479Dictionary<string, PropertyDescriptor> propertyList = new Dictionary<string, PropertyDescriptor>(10);
System.Composition.Convention (3)
System\Composition\Convention\ConventionBuilder.cs (2)
19private readonly Dictionary<MemberInfo, List<Attribute>> _memberInfos = new Dictionary<MemberInfo, List<Attribute>>(); 20private readonly Dictionary<ParameterInfo, List<Attribute>> _parameters = new Dictionary<ParameterInfo, List<Attribute>>();
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
129private Dictionary<ParameterInfo, Action<ImportConventionBuilder>> _importBuilders;
System.Composition.Hosting (3)
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (2)
13private Dictionary<CompositionContract, ExportDescriptor[]> _partDefinitions = new Dictionary<CompositionContract, ExportDescriptor[]>(); 29var updatedDefinitions = new Dictionary<CompositionContract, ExportDescriptor[]>(_partDefinitions);
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
15private readonly Dictionary<CompositionContract, UpdateResult> _updateResults = new Dictionary<CompositionContract, UpdateResult>();
System.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
164var remainingConstraints = new Dictionary<string, object>(_metadataConstraints);
System.Composition.TypedParts (7)
System\Composition\Hosting\SinglePartExportDescriptorProvider.cs (1)
30var subsetOfConstraints = contract.MetadataConstraints.Where(c => Metadata.ContainsKey(c.Key)).ToDictionary(c => c.Key, c => Metadata[c.Key]);
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (1)
67var propertyDependencies = dependencies
System\Composition\TypedParts\ContractHelpers.cs (1)
32Dictionary<string, object> importMetadata = null;
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (2)
174var partActivatorDependencies = dependencies 210var partMetadata = new Dictionary<string, object>();
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (2)
16private readonly Dictionary<CompositionContract, ICollection<DiscoveredExport>> _discoveredParts = new Dictionary<CompositionContract, ICollection<DiscoveredExport>>(); 89var subsettedConstraints = contract.MetadataConstraints.Where(c => export.Metadata.ContainsKey(c.Key)).ToDictionary(c => c.Key, c => export.Metadata[c.Key]);
System.Configuration.ConfigurationManager (2)
System\Configuration\BaseConfigurationRecord.cs (1)
382Dictionary<string, List<SectionInput>> indirectLocationInputs = null;
System\Configuration\ConfigurationElement.cs (1)
43private static Dictionary<Type, ConfigurationValidatorBase> s_perTypeValidators;
System.Console (5)
System\IO\KeyParser.cs (1)
65Dictionary<string, ConsoleKeyInfo>.AlternateLookup<ReadOnlySpan<char>> terminfoDb = // the most important source of truth
System\TerminalFormatStrings.cs (1)
54public readonly Dictionary<string, ConsoleKeyInfo> KeyFormatToConsoleKey = new(StringComparer.Ordinal);
System\TermInfo.Database.cs (3)
37private readonly Dictionary<string, string>? _extendedStrings; 165private static Dictionary<string, string>? ParseExtendedStrings(byte[] data, int extendedBeginning, bool readAs32Bit) 254var extendedStrings = new Dictionary<string, string>(extendedStringCount);
System.Data.Common (28)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (10)
93private readonly Dictionary<string, string?> _parsetable; 147static partial void DebugTraceKeyValuePair(string keyname, string? keyvalue, Dictionary<string, string>? synonyms); 422private static Dictionary<string, string> SplitConnectionString(string connectionString, Dictionary<string, string>? synonyms, bool firstKey) 424var parsetable = new Dictionary<string, string>(); 483private static void ParseComparison(Dictionary<string, string?> parsetable, string connectionString, Dictionary<string, string>? synonyms, bool firstKey, Exception? e) 487var parsedvalues = SplitConnectionString(connectionString, synonyms, firstKey); 535private static NameValuePair? ParseInternal(Dictionary<string, string?> parsetable, string connectionString, bool buildChain, Dictionary<string, string>? synonyms, bool firstKey)
System\Data\Common\AdapterUtil.Common.cs (2)
782Dictionary<string, int> hash = new Dictionary<string, int>(columnNameArray.Length, StringComparer.InvariantCultureIgnoreCase); 823private static int GenerateUniqueName(Dictionary<string, int> hash, ref string columnName, int index, int uniqueIndex)
System\Data\Common\DbConnectionOptions.cs (3)
36public DbConnectionOptions(string? connectionString, Dictionary<string, string>? synonyms, bool useOdbcRules) 51internal Dictionary<string, string?> Parsetable => _parsetable; 165static partial void DebugTraceKeyValuePair(string keyname, string? keyvalue, Dictionary<string, string>? synonyms)
System\Data\Common\DbConnectionStringBuilder.cs (3)
28private Dictionary<string, object>? _currentValues; 58private Dictionary<string, object> CurrentValues 62Dictionary<string, object>? values = _currentValues;
System\Data\Common\ObjectStorage.cs (3)
552private static Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? s_tempAssemblyCache; 592Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? cache = s_tempAssemblyCache; 609Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer> tmp =
System\Data\DataColumnCollection.cs (1)
27private readonly Dictionary<string, DataColumn?> _columnFromName; // Links names to columns
System\Data\DataView.cs (5)
30private Dictionary<string, Index>? _findIndexes; 74private Dictionary<DataRow, DataRowView> _rowViewCache = new Dictionary<DataRow, DataRowView>(DataRowReferenceComparer.s_default); 79private readonly Dictionary<DataRow, DataRowView> _rowViewBuffer = new Dictionary<DataRow, DataRowView>(DataRowReferenceComparer.s_default); 1451Dictionary<DataRow, DataRowView> rvc = new Dictionary<DataRow, DataRowView>(CountFromIndex, DataRowReferenceComparer.s_default); 1558Dictionary<string, Index> indexes = _findIndexes;
System\Data\XMLSchema.cs (1)
148private Dictionary<DataTable, List<DataTable>>? _tableDictionary;
System.Data.Odbc (27)
Common\System\Data\Common\DbConnectionOptions.cs (2)
44public DbConnectionOptions(string connectionString, Dictionary<string, string>? synonyms, bool useOdbcRules) 102internal Dictionary<string, string?> Parsetable
Common\System\Data\Common\DBConnectionString.cs (4)
29private readonly Dictionary<string, string?> _parsetable; 51internal DBConnectionString(string value, string restrictions, KeyRestrictionBehavior behavior, Dictionary<string, string> synonyms, bool useOdbcRules) 65private DBConnectionString(DbConnectionOptions connectionOptions, string? restrictions, KeyRestrictionBehavior behavior, Dictionary<string, string>? synonyms, bool mustCloneDictionary) 465private static string[]? ParseRestrictions(string restrictions, Dictionary<string, string>? synonyms)
src\runtime\src\libraries\Common\src\System\Data\Common\BasicFieldNameLookup.cs (2)
14private Dictionary<string, int>? _fieldNameLookup; 130Dictionary<string, int> hash = new Dictionary<string, int>(length);
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (10)
93private readonly Dictionary<string, string?> _parsetable; 147static partial void DebugTraceKeyValuePair(string keyname, string? keyvalue, Dictionary<string, string>? synonyms); 422private static Dictionary<string, string> SplitConnectionString(string connectionString, Dictionary<string, string>? synonyms, bool firstKey) 424var parsetable = new Dictionary<string, string>(); 483private static void ParseComparison(Dictionary<string, string?> parsetable, string connectionString, Dictionary<string, string>? synonyms, bool firstKey, Exception? e) 487var parsedvalues = SplitConnectionString(connectionString, synonyms, firstKey); 535private static NameValuePair? ParseInternal(Dictionary<string, string?> parsetable, string connectionString, bool buildChain, Dictionary<string, string>? synonyms, bool firstKey)
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (8)
15private Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> _connectionPoolGroups; 46Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups; 68Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups; 123Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups; 179Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups; 221Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(1 + connectionPoolGroups.Count); 302Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups; 303Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(connectionPoolGroups.Count);
System\Data\Odbc\OdbcConnectionStringbuilder.cs (1)
28private static readonly Dictionary<string, Keywords> s_keywords = new Dictionary<string, Keywords>(2, StringComparer.OrdinalIgnoreCase)
System.Data.OleDb (21)
OleDbConnectionInternal.cs (2)
824internal Dictionary<string, OleDbPropertyInfo>? GetPropertyInfo(Guid[] propertySets) 826Dictionary<string, OleDbPropertyInfo>? properties = null;
OleDbConnectionString.cs (2)
53internal static volatile Dictionary<string, string>? _Pool; 247Dictionary<string, string>? udlcache = UDL._Pool;
OleDbConnectionStringBuilder.cs (8)
39private static readonly Dictionary<string, Keywords> s_keywords = new Dictionary<string, Keywords>(5, StringComparer.OrdinalIgnoreCase) 49private Dictionary<string, OleDbPropertyInfo>? _propertyInfo; 87Dictionary<string, OleDbPropertyInfo> dynamic = GetProviderInfo(Provider); 212Dictionary<string, OleDbPropertyInfo> dynamic = GetProviderInfo(Provider); 402Dictionary<string, OleDbPropertyInfo> dynamic = GetProviderInfo(Provider); 414private Dictionary<string, OleDbPropertyInfo> GetProviderInfo(string provider) 416Dictionary<string, OleDbPropertyInfo>? providerInfo = _propertyInfo; 422Dictionary<string, OleDbPropertyInfo>? hash = null;
PropertyInfoSet.cs (2)
57internal Dictionary<string, OleDbPropertyInfo>? GetValues() 59Dictionary<string, OleDbPropertyInfo>? propertyLookup = null;
System\Data\ProviderBase\DbConnectionFactory.cs (6)
14private Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> _connectionPoolGroups; 52Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups; 330Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups; 383Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(1 + connectionPoolGroups.Count); 488Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups; 489Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(connectionPoolGroups.Count);
System\Data\ProviderBase\DbConnectionPool.cs (1)
61private readonly Dictionary<SysTx.Transaction, TransactedConnectionList> _transactedCxns;
System.Diagnostics.DiagnosticSource (6)
System\Diagnostics\Activity.cs (1)
116private Dictionary<string, object>? _customProperties;
System\Diagnostics\DsesActivitySourceListener.cs (2)
14private Dictionary<SpecLookupKey, DsesFilterAndTransform>? _specsBySourceNameAndActivityName; 73var specs = _specsBySourceNameAndActivityName ??= new(SpecLookupKeyComparer.Instance);
System\Diagnostics\Metrics\AggregationManager.cs (1)
27private Dictionary<Instrument, bool> _instruments = new();
System\Diagnostics\Metrics\Meter.cs (1)
20private Dictionary<string, List<Instrument>> _nonObservableInstrumentsCache = new();
System\Diagnostics\Metrics\MeterListener.cs (1)
254Dictionary<Instrument, object?>? callbacksArguments = null;
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\ProviderMetadataCachedInformation.cs (1)
19private readonly Dictionary<ProviderMetadataId, CacheItem> _cache;
System.Diagnostics.PerformanceCounter (4)
System\Diagnostics\PerformanceData\CounterSet.cs (2)
25internal Dictionary<string, int> _stringToId; 26internal Dictionary<int, CounterType> _idToCounter;
System\Diagnostics\PerformanceData\CounterSetInstanceCounterDataSet.cs (1)
105private readonly Dictionary<int, CounterData> _counters;
System\Diagnostics\PerformanceData\PerfProviderCollection.cs (1)
35private static readonly Dictionary<object, int> s_counterSetList = new Dictionary<object, int>();
System.Diagnostics.Process (6)
System\Collections\Specialized\DictionaryWrapper.cs (2)
10private readonly Dictionary<string, string?> _contents; 12public DictionaryWrapper(Dictionary<string, string?> contents)
System\Diagnostics\ProcessWaitState.Unix.cs (4)
90private static readonly Dictionary<int, ProcessWaitState> s_processWaitStates = 96private static readonly Dictionary<int, ProcessWaitState> s_childProcessWaitStates = 164Dictionary<int, ProcessWaitState> waitStates = _isChild ? s_childProcessWaitStates : s_processWaitStates; 178Dictionary<int, ProcessWaitState> waitStates = _isChild ? s_childProcessWaitStates : s_processWaitStates;
System.DirectoryServices.AccountManagement (12)
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (2)
1273private Dictionary<string, bool> _usersVisited = new Dictionary<string, bool>(); 1366public Dictionary<string, bool> usersVisited;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (3)
798protected static Dictionary<string, bool> NonPresentAttrDefaultStateMapping; 801protected static Dictionary<int, Dictionary<Type, StringCollection>> TypeToLdapPropListMap;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (3)
108TypeToLdapPropListMap = new Dictionary<int, Dictionary<Type, StringCollection>>(); 114Dictionary<string, string[]> propertyNameToLdapAttr = new Dictionary<string, string[]>(); 116Dictionary<Type, StringCollection> TypeToLdapDict = new Dictionary<Type, StringCollection>();
System\DirectoryServices\AccountManagement\ExtensionCache.cs (2)
52private readonly Dictionary<string, ExtensionCacheValue> _cache = new Dictionary<string, ExtensionCacheValue>(); 61internal Dictionary<string, ExtensionCacheValue> properties
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (2)
732private static readonly Dictionary<string, ObjectMask> s_validPropertyMap; 733private static readonly Dictionary<Type, ObjectMask> s_maskMap;
System.DirectoryServices.Protocols (2)
System\DirectoryServices\Protocols\common\ResultCode.cs (1)
57private static readonly Dictionary<ResultCode, string> s_resultCodeMapping = new Dictionary<ResultCode, string>(capacity: 43)
System\DirectoryServices\Protocols\ldap\LdapException.cs (1)
40private static readonly Dictionary<LdapError, string> s_resultCodeMapping = new Dictionary<LdapError, string>(capacity: 20)
System.Drawing.Primitives (7)
src\runtime\src\libraries\Common\src\System\Drawing\ColorTable.cs (6)
12private static readonly Lazy<Dictionary<string, Color>> s_colorConstants = new Lazy<Dictionary<string, Color>>(GetColors); 14private static Dictionary<string, Color> GetColors() 16var colors = new Dictionary<string, Color>(StringComparer.OrdinalIgnoreCase); 23Dictionary<string, Color> dictionary, 33internal static Dictionary<string, Color> Colors => s_colorConstants.Value;
System\Drawing\ColorTranslator.cs (1)
22private static Dictionary<string, Color>? s_htmlSysColorTable;
System.Formats.Nrbf (5)
System\Formats\Nrbf\ClassInfo.cs (3)
25private ClassInfo(SerializationRecordId id, string rawName, Dictionary<string, int> memberNames) 43internal Dictionary<string, int> MemberNames { get; } 55Dictionary<string, int> memberNames = new(StringComparer.Ordinal);
System\Formats\Nrbf\RecordMap.cs (1)
14private readonly Dictionary<SerializationRecordId, SerializationRecord> _map = new();
System\Formats\Nrbf\SystemClassWithMembersAndTypesRecord.cs (1)
51Collections.Generic.Dictionary<string, int>.Enumerator structEnumerator = classInfo.MemberNames.GetEnumerator();
System.Formats.Tar (16)
System\Formats\Tar\TarHeader.cs (7)
86private Dictionary<string, string>? _ea; 87internal Dictionary<string, string> ExtendedAttributes => _ea ??= new Dictionary<string, string>(); 234internal Dictionary<string, string> GetPopulatedExtendedAttributes() 243private void PopulateExtendedAttributesFromStandardFields(Dictionary<string, string> ea) 252private void AddOrUpdateStandardFieldExtendedAttributes(Dictionary<string, string> ea, bool removeIfUnneeded) 274static void AddOrRemoveStringField(Dictionary<string, string> ea, string key, string? value, int maxUtf8ByteLength, bool removeIfUnneeded) 286static void AddOrRemoveNumericField(Dictionary<string, string> ea, string key, long value, long maxNonextendedValue, bool removeIfUnneeded)
System\Formats\Tar\TarHeader.Write.cs (5)
461private void WriteAsPaxExtendedAttributes(Stream archiveStream, Span<byte> buffer, Dictionary<string, string> extendedAttributes, bool isGea, int globalExtendedAttributesEntryNumber) 468private ValueTask WriteAsPaxExtendedAttributesCoreAsync<TAdapter>(Stream archiveStream, Memory<byte> buffer, Dictionary<string, string> extendedAttributes, bool isGea, int globalExtendedAttributesEntryNumber, CancellationToken cancellationToken) 477private void WriteAsPaxExtendedAttributesShared(bool isGea, int globalExtendedAttributesEntryNumber, Dictionary<string, string> extendedAttributes) 823private static unsafe MemoryStream? GenerateExtendedAttributesDataStream(Dictionary<string, string> extendedAttributes) 914private void CollectExtendedAttributesFromStandardFieldsIfNeeded(Dictionary<string, string> ea)
System\Formats\Tar\TarHelpers.cs (1)
129internal static bool TryGetDateTimeOffsetFromTimestampString(Dictionary<string, string>? dict, string fieldName, out DateTimeOffset dateTimeOffset)
System\Formats\Tar\TarWriter.Unix.cs (3)
13private readonly Dictionary<uint, string> _userIdentifiers = new Dictionary<uint, string>(); 14private readonly Dictionary<uint, string> _groupIdentifiers = new Dictionary<uint, string>(); 15private Dictionary<(long, long), string>? _hardLinkTargets;
System.IO.Compression (1)
System\IO\Compression\ZipArchive.cs (1)
26private readonly Dictionary<string, ZipArchiveEntry> _entriesDictionary;
System.IO.Packaging (20)
System\IO\Packaging\ContentType.cs (3)
143internal Dictionary<string, string>.Enumerator ParameterValuePairs => 191Dictionary<string, string>.Enumerator contentTypeEnumerator; 509private Dictionary<string, string>? _parameterDictionary;
System\IO\Packaging\OrderedDictionary.cs (1)
17private readonly Dictionary<TKey, LinkedListNode<TValue>> _dictionary;
System\IO\Packaging\Package.cs (2)
417Dictionary<string, KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>> partDictionary = new(parts.Length); 1203private void CopyPartDictionaryToPartList(Dictionary<string, KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>> partDictionary, List<string> partIndex)
System\IO\Packaging\PartBasedPackageProperties.cs (1)
838private readonly Dictionary<PackageXmlEnum, object> _propertyDictionary = new Dictionary<PackageXmlEnum, object>(NumCoreProperties);
System\IO\Packaging\XmlCompatibilityReader.cs (9)
1471private Dictionary<string, object?>? _ignorables; 1472private Dictionary<string, ProcessContentSet>? _processContents; 1473private Dictionary<string, PreserveItemSet>? _preserveElements; 1474private Dictionary<string, PreserveItemSet>? _preserveAttributes; 1832private Dictionary<string, object?>? _knownNamespaces; 1833private readonly Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 1834private Dictionary<string, object?>? _subsumingNamespaces; 1835private readonly Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 1836private readonly Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\IO\Packaging\ZipPackage.cs (4)
1295private Dictionary<PackUriHelper.ValidatedPartUri, ContentType>? _overrideDictionary; 1296private readonly Dictionary<string, ContentType> _defaultDictionary; 1355private readonly Dictionary<string, List<string>> _ignoredItemDictionary; 1360private readonly Dictionary<string, List<string>> _extensionDictionary;
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
236private static readonly Dictionary<string, SharedServer> s_servers = new Dictionary<string, SharedServer>();
System.Linq (32)
System\Linq\AggregateBy.cs (4)
117static Dictionary<TKey, TAccumulate> PopulateDictionary(IEnumerator<TSource> enumerator, Func<TSource, TKey> keySelector, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, IEqualityComparer<TKey>? keyComparer) 119Dictionary<TKey, TAccumulate> dict = new(keyComparer); 149static Dictionary<TKey, TAccumulate> PopulateDictionary(IEnumerator<TSource> enumerator, Func<TSource, TKey> keySelector, Func<TKey, TAccumulate> seedSelector, Func<TAccumulate, TSource, TAccumulate> func, IEqualityComparer<TKey>? keyComparer) 151Dictionary<TKey, TAccumulate> dict = new(keyComparer);
System\Linq\CountBy.cs (2)
54private static Dictionary<TKey, int> BuildCountDictionary<TSource, TKey>(IEnumerator<TSource> enumerator, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? keyComparer) where TKey : notnull 56Dictionary<TKey, int> countsBy = new(keyComparer);
System\Linq\ToCollection.cs (26)
74/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to the default comparer for the key type. 78/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 79/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/> and uses default comparer for the key type.</returns> 82public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source) where TKey : notnull => 86/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to specified key comparer. 90/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 92/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/>.</returns> 98public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey>? comparer) where TKey : notnull 109/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to the default comparer for the key type. 113/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 114/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/> and uses default comparer for the key type.</returns> 117public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey Key, TValue Value)> source) where TKey : notnull => 121/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to specified key comparer. 125/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 127/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/>.</returns> 133public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey Key, TValue Value)> source, IEqualityComparer<TKey>? comparer) where TKey : notnull => 136public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) where TKey : notnull => 139public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 170Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(capacity, comparer); 179private static Dictionary<TKey, TSource> SpanToDictionary<TSource, TKey>(ReadOnlySpan<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 181Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(source.Length, comparer); 189public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) where TKey : notnull => 192public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 228Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(capacity, comparer); 237private static Dictionary<TKey, TElement> SpanToDictionary<TSource, TKey, TElement>(ReadOnlySpan<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 239Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(source.Length, comparer);
System.Linq.AsyncEnumerable (40)
System\Linq\AggregateBy.cs (4)
64Dictionary<TKey, TAccumulate> dict = new(keyComparer); 135Dictionary<TKey, TAccumulate> dict = new(keyComparer); 202Dictionary<TKey, TAccumulate> dict = new(keyComparer); 271Dictionary<TKey, TAccumulate> dict = new(keyComparer);
System\Linq\CountBy.cs (2)
42Dictionary<TKey, int> countsBy = new(keyComparer); 93Dictionary<TKey, int> countsBy = new(keyComparer);
System\Linq\ToDictionaryAsync.cs (34)
14/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IAsyncEnumerable{T}"/> according to specified key comparer. 18/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 21/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/>.</returns> 24public static ValueTask<Dictionary<TKey, TValue>> ToDictionaryAsync<TKey, TValue>( 33static async ValueTask<Dictionary<TKey, TValue>> Impl( 37Dictionary<TKey, TValue> d = new Dictionary<TKey, TValue>(comparer); 48/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IAsyncEnumerable{T}"/> according to specified key comparer. 52/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 55/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/>.</returns> 58public static ValueTask<Dictionary<TKey, TValue>> ToDictionaryAsync<TKey, TValue>( 63/// Creates a <see cref="Dictionary{TKey, TValue}"/> from an <see cref="IAsyncEnumerable{T}"/> 68/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey, TValue}"/> from.</param> 72/// <returns>A <see cref="Dictionary{TKey, TValue}"/> that contains keys and values.</returns> 76public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>( 87static async ValueTask<Dictionary<TKey, TSource>> Impl( 92Dictionary<TKey, TSource> d = new(comparer); 102/// Creates a <see cref="Dictionary{TKey, TValue}"/> from an <see cref="IAsyncEnumerable{T}"/> 107/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey, TValue}"/> from.</param> 111/// <returns>A <see cref="Dictionary{TKey, TValue}"/> that contains keys and values.</returns> 115public static ValueTask<Dictionary<TKey, TSource>> ToDictionaryAsync<TSource, TKey>( 126static async ValueTask<Dictionary<TKey, TSource>> Impl( 132Dictionary<TKey, TSource> d = new(comparer); 142/// Creates a <see cref="Dictionary{TKey, TValue}"/> from an <see cref="IAsyncEnumerable{T}"/>"/> 148/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey, TValue}"/> from.</param> 153/// <returns>A <see cref="Dictionary{TKey, TValue}"/> that contains values of type <typeparamref name="TElement"/> selected from the input sequence.</returns> 158public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>( 171static async ValueTask<Dictionary<TKey, TElement>> Impl( 177Dictionary<TKey, TElement> d = new(comparer); 188/// Creates a <see cref="Dictionary{TKey, TValue}"/> from an <see cref="IAsyncEnumerable{T}"/>"/> 194/// <param name="source">An <see cref="IAsyncEnumerable{T}"/> to create a <see cref="Dictionary{TKey, TValue}"/> from.</param> 199/// <returns>A <see cref="Dictionary{TKey, TValue}"/> that contains values of type <typeparamref name="TElement"/> selected from the input sequence.</returns> 204public static ValueTask<Dictionary<TKey, TElement>> ToDictionaryAsync<TSource, TKey, TElement>( 217static async ValueTask<Dictionary<TKey, TElement>> Impl( 224Dictionary<TKey, TElement> d = new(comparer);
System.Linq.Expressions (49)
System\Dynamic\ExpandoClass.cs (1)
17private Dictionary<int, List<WeakReference>>? _transitions; // cached transitions
System\Dynamic\Utils\Helpers.cs (1)
34internal static void IncrementCount<T>(T key, Dictionary<T, int> dict) where T : notnull
System\Linq\Expressions\Common\CachedReflectionInfo.cs (3)
29public static MethodInfo DictionaryOfStringInt32_Add_String_Int32 => field ??= typeof(Dictionary<string, int>).GetMethod(nameof(Dictionary<string, int>.Add), new[] { typeof(string), typeof(int) })!; 30public static ConstructorInfo DictionaryOfStringInt32_Ctor_Int32 => field ??= typeof(Dictionary<string, int>).GetConstructor(new[] { typeof(int) })!;
System\Linq\Expressions\Compiler\AnalyzedTree.cs (2)
10internal readonly Dictionary<object, CompilerScope> Scopes = new Dictionary<object, CompilerScope>(); 11internal readonly Dictionary<LambdaExpression, BoundConstants> Constants = new Dictionary<LambdaExpression, BoundConstants>();
System\Linq\Expressions\Compiler\BoundConstants.cs (3)
60private readonly Dictionary<object, int> _indexes = new Dictionary<object, int>(ReferenceEqualityComparer.Instance); 65private readonly Dictionary<TypedConstant, int> _references = new Dictionary<TypedConstant, int>(); 70private readonly Dictionary<TypedConstant, LocalBuilder> _cache = new Dictionary<TypedConstant, LocalBuilder>();
System\Linq\Expressions\Compiler\CompilerScope.cs (3)
64internal readonly Dictionary<ParameterExpression, VariableStorageKind> Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(); 70internal Dictionary<ParameterExpression, int>? ReferenceCount; 94private readonly Dictionary<ParameterExpression, Storage> _locals = new Dictionary<ParameterExpression, Storage>();
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
65public Dictionary<Type, TypeInfo> TypeChain;
System\Linq\Expressions\Compiler\HoistedLocals.cs (1)
69Dictionary<Expression, int> indexes = new Dictionary<Expression, int>(vars.Count);
System\Linq\Expressions\Compiler\KeyedStack.cs (1)
14private readonly Dictionary<TKey, Stack<TValue>> _data = new Dictionary<TKey, Stack<TValue>>();
System\Linq\Expressions\Compiler\LabelInfo.cs (1)
329private Dictionary<LabelTarget, LabelInfo>? _labels; // lazily allocated, we typically use this only once every 6th-7th block
System\Linq\Expressions\Compiler\LambdaCompiler.cs (1)
49private readonly Dictionary<LabelTarget, LabelInfo> _labelInfo = new Dictionary<LabelTarget, LabelInfo>();
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (2)
688MemberExpression dictField = CreateLazyInitializedField<Dictionary<string, int>>("dictionarySwitch"); 752[DynamicDependency("TryGetValue", typeof(Dictionary<,>))]
System\Linq\Expressions\DebugViewWriter.cs (4)
42private Dictionary<LambdaExpression, int>? _lambdaIds; 47private Dictionary<ParameterExpression, int>? _paramIds; 52private Dictionary<LabelTarget, int>? _labelIds; 76private static int GetId<T>(T e, ref Dictionary<T, int>? ids) where T : notnull
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
21private Dictionary<object, int>? _ids;
System\Linq\Expressions\Interpreter\ControlFlowInstructions.cs (4)
735private readonly Dictionary<T, int> _cases; 737internal IntSwitchInstruction(Dictionary<T, int> cases) 755private readonly Dictionary<string, int> _cases; 758internal StringSwitchInstruction(Dictionary<string, int> cases, StrongBox<int> nullCase)
System\Linq\Expressions\Interpreter\InstructionList.cs (3)
851private static readonly Dictionary<FieldInfo, Instruction> s_loadFields = new Dictionary<FieldInfo, Instruction>(); 1092public void EmitIntSwitch<T>(Dictionary<T, int> cases) where T : notnull 1097public void EmitStringSwitch(Dictionary<string, int> cases, StrongBox<int> nullCase)
System\Linq\Expressions\Interpreter\Interpreter.cs (1)
44internal Dictionary<ParameterExpression, LocalVariable>? ClosureVariables { get; }
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
1653var caseDict = new Dictionary<T, int>(); 1695var caseDict = new Dictionary<string, int>(); 2794var mapping = new Dictionary<ParameterExpression, LocalVariable>(); 2807private readonly Dictionary<ParameterExpression, int> _definedParameters = new Dictionary<ParameterExpression, int>();
System\Linq\Expressions\Interpreter\LightLambda.cs (3)
39private readonly Dictionary<int, int> _tryStart = new Dictionary<int, int>(); 40private readonly Dictionary<int, string> _handlerEnter = new Dictionary<int, string>(); 41private readonly Dictionary<int, int> _handlerExit = new Dictionary<int, int>();
System\Linq\Expressions\Interpreter\LocalVariables.cs (2)
69private Dictionary<ParameterExpression, LocalVariable>? _closureVariables; 156internal Dictionary<ParameterExpression, LocalVariable>? ClosureVariables => _closureVariables;
System\Linq\Expressions\Interpreter\TypeOperations.cs (4)
468private readonly Dictionary<ParameterExpression, LocalVariable>? _hoistedVariables; 470public QuoteInstruction(Expression operand, Dictionary<ParameterExpression, LocalVariable>? hoistedVariables) 499private readonly Dictionary<ParameterExpression, LocalVariable> _variables; 507internal ExpressionQuoter(Dictionary<ParameterExpression, LocalVariable> hoistedVariables, InterpretedFrame frame)
System\Linq\Expressions\Interpreter\Utilities.cs (1)
173private Dictionary<TKey, TValue>? _dict;
System\Runtime\CompilerServices\CallSiteBinder.cs (2)
24internal Dictionary<Type, object>? Cache; 209var cache = Cache;
System.Linq.Parallel (11)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
283var leftLookup =
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
234private Dictionary<Wrapper<TInputOutput>, Pair<TInputOutput, TLeftKey>>? _hashLookup; // The hash lookup, used to produce the intersection.
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
341Dictionary<Wrapper<TInputOutput>, Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>> union =
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
194private readonly Dictionary<Wrapper<TInputOutput>, TKey> _hashLookup; // The hash lookup, used to produce the distinct set.
System\Linq\Parallel\Utils\Lookup.cs (1)
39private readonly Dictionary<TKey, IGrouping<TKey, TElement>> _dict;
System\Linq\ParallelEnumerable.cs (6)
4929public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>( 4958public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>( 4965Dictionary<TKey, TSource> result = new Dictionary<TKey, TSource>(comparer); 5020public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>( 5055public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>( 5063Dictionary<TKey, TElement> result = new Dictionary<TKey, TElement>(comparer);
System.Linq.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
20private Dictionary<LabelTarget, LabelTarget>? _targetCache; 22private Dictionary<Type, Type>? _equivalentTypeCache;
System.Net.Http (19)
src\runtime\src\libraries\Common\src\System\Collections\Generic\BidirectionalDictionary.cs (3)
13private readonly Dictionary<T1, T2> _forward; 14private readonly Dictionary<T2, T1> _backward; 48public Dictionary<T1, T2>.Enumerator GetEnumerator()
src\runtime\src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
112public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch)
System\Net\Http\Headers\HttpHeaders.cs (8)
419: ref CollectionsMarshal.GetValueRefOrNullRef((Dictionary<HeaderDescriptor, object>)_headerStore, entry.Key); 1469var dictionary = (Dictionary<HeaderDescriptor, object>)_headerStore!; 1511valueRef = ref CollectionsMarshal.GetValueRefOrNullRef((Dictionary<HeaderDescriptor, object>)store, key); 1573var dictionary = new Dictionary<HeaderDescriptor, object>(ArrayThreshold); 1585var dictionary = (Dictionary<HeaderDescriptor, object>)_headerStore!; 1655removed = ((Dictionary<HeaderDescriptor, object>)store).Remove(key);
System\Net\Http\HttpRequestOptions.cs (1)
17private Dictionary<string, object?> Options { get; } = new Dictionary<string, object?>();
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
238internal readonly Dictionary<string, string> Parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
54private volatile Dictionary<HttpAuthority, Exception?>? _altSvcBlocklist; 813Dictionary<HttpAuthority, Exception?>? altSvcBlocklist = _altSvcBlocklist;
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
42private readonly Dictionary<int, Http2Stream> _httpStreams;
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
29private readonly Dictionary<QuicStream, Http3RequestStream> _activeRequests = new Dictionary<QuicStream, Http3RequestStream>();
System\Net\Http\SocketsHttpHandler\PreAuthCredentialCache.cs (1)
14private Dictionary<CredentialCacheKey, NetworkCredential>? _cache;
System.Net.HttpListener (14)
System\Net\Managed\HttpEndPointListener.cs (4)
46private Dictionary<ListenerPrefix, HttpListener> _prefixes; 191Dictionary<ListenerPrefix, HttpListener> localPrefixes = _prefixes; 348Dictionary<ListenerPrefix, HttpListener> prefs, p2; 392Dictionary<ListenerPrefix, HttpListener> prefs, p2;
System\Net\Managed\HttpEndPointManager.cs (6)
40private static readonly Dictionary<IPAddress, Dictionary<int, HttpEndPointListener>> s_ipEndPoints = new Dictionary<IPAddress, Dictionary<int, HttpEndPointListener>>(); 137Dictionary<int, HttpEndPointListener>? p; 138if (s_ipEndPoints.TryGetValue(addr, out Dictionary<int, HttpEndPointListener>? value)) 173Dictionary<int, HttpEndPointListener>? p = null;
System\Net\Managed\HttpListener.Managed.cs (4)
15private readonly Dictionary<HttpListenerContext, HttpListenerContext> _listenerContexts = new Dictionary<HttpListenerContext, HttpListenerContext>(); 18private readonly Dictionary<HttpConnection, HttpConnection> _connections = new Dictionary<HttpConnection, HttpConnection>(); 220Dictionary<HttpListenerContext, HttpListenerContext>.KeyCollection keys = _listenerContexts.Keys; 230Dictionary<HttpConnection, HttpConnection>.KeyCollection keys = _connections.Keys;
System.Net.Mail (13)
System\Net\Mail\MailHeaderInfo.cs (3)
69private static readonly Dictionary<string, int> s_headerDictionary = CreateHeaderDictionary(); 71private static Dictionary<string, int> CreateHeaderDictionary() 74var headers = new Dictionary<string, int>((int)MailHeaderID.ZMaxEnumValue + 1, StringComparer.OrdinalIgnoreCase);
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
11private readonly Dictionary<object, NetworkCredential> _sessions = new Dictionary<object, NetworkCredential>();
System\Net\Mail\SmtpNegotiateAuthenticationModule.cs (1)
15private readonly Dictionary<object, NegotiateAuthentication> _sessions = new Dictionary<object, NegotiateAuthentication>();
System\Net\Mail\SmtpNtlmAuthenticationModule.cs (1)
12private readonly Dictionary<object, NegotiateAuthentication> _sessions = new Dictionary<object, NegotiateAuthentication>();
System\Net\Mime\ContentDisposition.cs (1)
42private static readonly Dictionary<string, TrackingValidationObjectDictionary.ValidateAndParseValue> s_validators =
System\Net\Mime\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string>.AlternateLookup<ReadOnlySpan<char>> s_extensionToMediaType = new Dictionary<string, string>(ExtensionToMediaTypeCount, StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string>.AlternateLookup<ReadOnlySpan<char>> s_mediaTypeToExtension = new Dictionary<string, string>(MediaTypeToExtensionCount, StringComparer.OrdinalIgnoreCase)
System\Net\Mime\SmtpDateTime.cs (1)
62internal static readonly Dictionary<string, TimeSpan> s_timeZoneOffsetLookup = new Dictionary<string, TimeSpan>()
System\Net\TrackingValidationObjectDictionary.cs (3)
23private readonly Dictionary<string, ValidateAndParseValue> _validators; 24private Dictionary<string, object>? _internalObjects; 31internal TrackingValidationObjectDictionary(Dictionary<string, ValidateAndParseValue> validators)
System.Net.NameResolution (2)
System\Net\Dns.cs (1)
921private static readonly Dictionary<object, Task> s_tasks = new Dictionary<object, Task>();
System\Net\DnsResolverPal.Managed.cs (1)
198Dictionary<string, List<AddressRecord>>? glue = null;
System.Net.NetworkInformation (5)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
94Dictionary<int, LinuxNetworkInterface> interfacesByIndex = new Dictionary<int, LinuxNetworkInterface>(interfaceCount);
System\Net\NetworkInformation\NetworkAddressChange.cs (2)
18private static readonly Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?> s_addressChangedSubscribers = 22private static readonly Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?> s_availabilityChangedSubscribers =
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (2)
266Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>? addressChangedSubscribers = null; 298Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>? availabilityChangedSubscribers = null;
System.Net.Primitives (7)
src\runtime\src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
112public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch)
System\Net\CredentialCache.cs (6)
16private Dictionary<CredentialCacheKey, NetworkCredential>? _cache; 17private Dictionary<CredentialHostKey, NetworkCredential>? _cacheForHosts; 246private Dictionary<TKey, NetworkCredential>.ValueCollection.Enumerator _enumerator; // mutable struct field deliberately not readonly. 248public SingleTableCredentialEnumerator(CredentialCache cache, Dictionary<TKey, NetworkCredential> table) : base(cache) 270private Dictionary<CredentialHostKey, NetworkCredential>.ValueCollection.Enumerator _enumerator; // mutable struct field deliberately not readonly. 310internal static bool MoveNext<TKey, TValue>(ref Dictionary<TKey, TValue>.ValueCollection.Enumerator enumerator, out TValue current) where TKey : notnull
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
83private Dictionary<string, IntPtr>? _sslSessions;
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
19private Dictionary<TKey, TItem>? dict; // Do not rename (binary serialization)
System.Private.CoreLib (193)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (2)
24private static readonly Dictionary<string, IsolatedComponentLoadContext> s_assemblyLoadContexts = new Dictionary<string, IsolatedComponentLoadContext>(StringComparer.InvariantCulture); 25private static readonly Dictionary<IntPtr, Delegate> s_delegates = new Dictionary<IntPtr, Delegate>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.AnyOS.cs (1)
70static void LogDataStore(RuntimeEventSource ev, Dictionary<string, bool>? switches)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
20private static Dictionary<string, object?>? s_dataStore 25private static Dictionary<string, bool>? s_switches;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (2)
2565/// Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>, 2576/// Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (31)
117if (enumerable.GetType() == typeof(Dictionary<TKey, TValue>)) 119Dictionary<TKey, TValue> source = (Dictionary<TKey, TValue>)enumerable; 640/// Gets an instance of a type that may be used to perform operations on the current <see cref="Dictionary{TKey, TValue}"/> 662/// Gets an instance of a type that may be used to perform operations on the current <see cref="Dictionary{TKey, TValue}"/> 687/// Provides a type that may be used to perform operations on a <see cref="Dictionary{TKey, TValue}"/> 694internal AlternateLookup(Dictionary<TKey, TValue> dictionary) 701/// <summary>Gets the <see cref="Dictionary{TKey, TValue}"/> against which this instance performs operations.</summary> 702public Dictionary<TKey, TValue> Dictionary { get; } 729internal static bool IsCompatibleKey(Dictionary<TKey, TValue> dictionary) 737internal static IAlternateEqualityComparer<TAlternateKey, TKey> GetAlternateComparer(Dictionary<TKey, TValue> dictionary) 790/// <summary>Determines whether the <see cref="Dictionary{TKey, TValue}"/> contains the specified alternate key.</summary> 803Dictionary<TKey, TValue> dictionary = Dictionary; 856/// <summary>Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>.</summary> 864/// Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>, 874Dictionary<TKey, TValue> dictionary = Dictionary; 959/// <inheritdoc cref="CollectionsMarshal.GetValueRefOrAddDefault{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/> 964Dictionary<TKey, TValue> dictionary = Dictionary; 1066/// the additional overhead on each <see cref="Dictionary{TKey, TValue}"/> instantiation, especially in AOT scenarios. 1070/// <inheritdoc cref="CollectionsMarshal.GetValueRefOrAddDefault{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/> 1071public static ref TValue? GetValueRefOrAddDefault(Dictionary<TKey, TValue> dictionary, TKey key, out bool exists) 1876private readonly Dictionary<TKey, TValue> _dictionary; 1885internal Enumerator(Dictionary<TKey, TValue> dictionary, int getEnumeratorRetType) 1996private readonly Dictionary<TKey, TValue> _dictionary; 1998public KeyCollection(Dictionary<TKey, TValue> dictionary) 2121private readonly Dictionary<TKey, TValue> _dictionary; 2126internal Enumerator(Dictionary<TKey, TValue> dictionary) 2191private readonly Dictionary<TKey, TValue> _dictionary; 2193public ValueCollection(Dictionary<TKey, TValue> dictionary) 2315private readonly Dictionary<TKey, TValue> _dictionary; 2320internal Enumerator(Dictionary<TKey, TValue> dictionary)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\InsertionBehavior.cs (1)
7/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (2)
106private Dictionary<string, string?>? _metadata; 126Dictionary<string, string?>.Enumerator enumerator = _metadata.GetEnumerator();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventListener.cs (1)
476Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
36private readonly Dictionary<EventListener, EventListenerSubscription> m_subscriptions = new Dictionary<EventListener, EventListenerSubscription>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1252Dictionary<string, string?>? args = null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (12)
224internal volatile Dictionary<int, EventMetadata>? m_eventData; // None per-event data 2915Dictionary<int, bool> eventEnabled = new Dictionary<int, bool>(m_eventData.Count); 3057Dictionary<int, EventMetadata>? eventData = null; 3058Dictionary<string, string>? eventsByName = null; 3519[NotNull] ref Dictionary<int, EventMetadata> eventData, 3586Dictionary<int, bool>? enabledDict = null; 3602private static void DebugCheckEvent(ref Dictionary<string, string>? eventsByName, 3603Dictionary<int, EventMetadata> eventData, MethodInfo method, EventAttribute eventAttribute, 3945private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3947private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 4644internal EventDispatcher(EventDispatcher? next, Dictionary<int, bool>? eventEnabled, EventListener listener) 4653internal Dictionary<int, bool>? m_EventEnabled; // For every event in a the eventSource, is it enabled?
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\ManifestBuilder.cs (7)
909private readonly Dictionary<int, string> opcodeTab; 910private Dictionary<int, string>? taskTab; 911private Dictionary<int, ChannelInfo>? channelTab; 912private Dictionary<ulong, string>? keywordTab; 913private Dictionary<string, Type>? mapsTab; 914private readonly Dictionary<string, string> stringTab; // Maps unlocalized strings to localized ones 932private readonly Dictionary<string, List<int>> perEventByteArrayArgIndices; // "event_name" -> List_of_Indices_of_Byte[]_Arg
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (2)
138private static Dictionary<Type, TraceLoggingTypeInfo>? threadCache; 143Dictionary<Type, TraceLoggingTypeInfo> cache = threadCache ??= new Dictionary<Type, TraceLoggingTypeInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Unix.cs (3)
17private static Dictionary<string, string>? s_environment; 95private static unsafe Dictionary<string, string> GetSystemEnvironmentVariables() 97var results = new Dictionary<string, string>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
979private static readonly Dictionary<string, IntPtr> s_sortNameToSortHandleCache = new Dictionary<string, IntPtr>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (8)
151private static Dictionary<string, string> RegionNames => 413private static Dictionary<string, CultureData>? s_cachedRegions; 414private static Dictionary<string, string>? s_regionNames; 442Dictionary<string, CultureData>? tempHashTable = s_cachedRegions; 447var newTable = new Dictionary<string, CultureData>(); 657private static Dictionary<string, CultureData>? s_cachedCultures; 678Dictionary<string, CultureData>? tempHashTable = s_cachedCultures; 682var newTable = new Dictionary<string, CultureData>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (9)
129private static Dictionary<string, CultureInfo>? s_cachedCulturesByName; 130private static Dictionary<int, CultureInfo>? s_cachedCulturesByLcid; 992Dictionary<int, CultureInfo> lcidTable = CachedCulturesByLcid; 1029Dictionary<string, CultureInfo> nameTable = CachedCulturesByName; 1069Dictionary<string, CultureInfo> nameTable = CachedCulturesByName; 1115private static Dictionary<string, CultureInfo> CachedCulturesByName 1119Dictionary<string, CultureInfo>? cache = s_cachedCulturesByName; 1130private static Dictionary<int, CultureInfo> CachedCulturesByLcid 1134Dictionary<int, CultureInfo>? cache = s_cachedCulturesByLcid;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (2)
801private readonly Dictionary<uint, SafeFileHandle> _uidToFileHandleMap = []; 865private Dictionary<SharedMemoryId, SharedMemoryProcessDataHeader<TSharedMemoryProcessData>> _processDataHeaders = [];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (3)
686private static Dictionary<ulong, char> InitializeLookupTable() 945var dictionary = new Dictionary<ulong, char>(tableData.Length / (sizeof(ulong) + sizeof(char))); 957private static readonly Dictionary<ulong, char> s_lookupTable = InitializeLookupTable();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
19private static readonly Dictionary<string, Assembly> s_loadfile = new Dictionary<string, Assembly>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (2)
22private readonly Dictionary<Module, NotAnnotatedStatus> _publicOnlyModules = new(); 23private readonly Dictionary<MemberInfo, NullabilityState> _context = new();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (1)
27public ResourceSet? GrovelForResourceSet(CultureInfo culture, Dictionary<string, ResourceSet> localResourceSets, bool tryParents, bool createIfNotExists)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\IResourceGroveler.cs (1)
14ResourceSet? GrovelForResourceSet(CultureInfo culture, Dictionary<string, ResourceSet> localResourceSets, bool tryParents,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
35public ResourceSet? GrovelForResourceSet(CultureInfo culture, Dictionary<string, ResourceSet> localResourceSets, bool tryParents, bool createIfNotExists)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceManager.cs (6)
104private Dictionary<string, ResourceSet>? _resourceSets; 290Dictionary<string, ResourceSet> localResourceSets = _resourceSets; 357Dictionary<string, ResourceSet>? localResourceSets = _resourceSets; 396Dictionary<string, ResourceSet>? localResourceSets = _resourceSets; 433Dictionary<string, ResourceSet> localResourceSets = _resourceSets; 498private static void AddResourceSet(Dictionary<string, ResourceSet> localResourceSets, string cultureName, ref ResourceSet rs)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
27internal ResourceReader(Stream stream, Dictionary<string, ResourceLocator> resCache, bool permitDeserialization)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
69internal Dictionary<string, ResourceLocator>? _resCache;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (6)
23private Dictionary<object, object?>? _table; 24private Dictionary<string, object?>? _caseInsensitiveTable; // For case-insensitive lookups. 126Dictionary<object, object?> table = _table ?? throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet); // Avoid a race with Dispose 204Dictionary<object, object?> copyOfTable = _table ?? throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet); // Avoid a race with Dispose 212Dictionary<object, object?> copyOfTable = _table ?? throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet); // Avoid a race with Dispose 214Dictionary<string, object?>? caseTable = _caseInsensitiveTable; // Avoid a race condition with Close
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (4)
163private Dictionary<string, ResourceLocator>? _resCache; 175private Dictionary<string, ResourceLocator>? _caseInsensitiveTable; 268Dictionary<string, ResourceLocator>? cache = _resCache; 310Dictionary<string, ResourceLocator>? caseInsensitiveTable = _caseInsensitiveTable;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (13)
72/// Gets either a ref to a <typeparamref name="TValue"/> in the <see cref="Dictionary{TKey, TValue}"/> or a ref null if it does not exist in the <paramref name="dictionary"/>. 79/// Items should not be added or removed from the <see cref="Dictionary{TKey, TValue}"/> while the ref <typeparamref name="TValue"/> is in use. 82public static ref TValue GetValueRefOrNullRef<TKey, TValue>(Dictionary<TKey, TValue> dictionary, TKey key) where TKey : notnull 86/// Gets either a ref to a <typeparamref name="TValue"/> in the <see cref="Dictionary{TKey, TValue}"/> or a ref null if it does not exist in the <paramref name="dictionary"/>. 94/// Items should not be added or removed from the <see cref="Dictionary{TKey, TValue}"/> while the ref <typeparamref name="TValue"/> is in use. 97public static ref TValue GetValueRefOrNullRef<TKey, TValue, TAlternateKey>(Dictionary<TKey, TValue>.AlternateLookup<TAlternateKey> dictionary, TAlternateKey key) 103/// Gets a ref to a <typeparamref name="TValue"/> in the <see cref="Dictionary{TKey, TValue}"/>, adding a new entry with a default value if it does not exist in the <paramref name="dictionary"/>. 110/// <remarks>Items should not be added to or removed from the <see cref="Dictionary{TKey, TValue}"/> while the ref <typeparamref name="TValue"/> is in use.</remarks> 111public static ref TValue? GetValueRefOrAddDefault<TKey, TValue>(Dictionary<TKey, TValue> dictionary, TKey key, out bool exists) where TKey : notnull 112=> ref Dictionary<TKey, TValue>.CollectionsMarshalHelper.GetValueRefOrAddDefault(dictionary, key, out exists); 115/// Gets a ref to a <typeparamref name="TValue"/> in the <see cref="Dictionary{TKey, TValue}.AlternateLookup{TAlternateKey}"/>, adding a new entry with a default value if it does not exist in the <paramref name="dictionary"/>. 123/// <remarks>Items should not be added to or removed from the <see cref="Dictionary{TKey, TValue}.AlternateLookup{TAlternateKey}"/> while the ref <typeparamref name="TValue"/> is in use.</remarks> 124public static ref TValue? GetValueRefOrAddDefault<TKey, TValue, TAlternateKey>(Dictionary<TKey, TValue>.AlternateLookup<TAlternateKey> dictionary, TAlternateKey key, out bool exists)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1438private readonly Dictionary<IntPtr, WeakGCHandle<NativeObjectWrapper>> _cache;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (2)
12private static readonly Dictionary<int, List<Token>> s_registrations = Initialize(); 14private static unsafe Dictionary<int, List<Token>> Initialize()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (6)
34private static Dictionary<long, WeakReference<AssemblyLoadContext>>? s_allContexts; 38private static Dictionary<long, WeakReference<AssemblyLoadContext>> AllContexts => 107Dictionary<long, WeakReference<AssemblyLoadContext>> allContexts = AllContexts; 160Dictionary<long, WeakReference<AssemblyLoadContext>> allContexts = AllContexts; 279Dictionary<long, WeakReference<AssemblyLoadContext>>? allContexts = s_allContexts; 512Dictionary<long, WeakReference<AssemblyLoadContext>>? allContexts = s_allContexts;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
22private readonly Dictionary<string, int> _nameToIndex;
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (6)
40Debug.Assert(children is int[] || children is Dictionary<char, int>); 56return Unsafe.As<Dictionary<char, int>>(children).TryGetValue(c, out index); 77((Dictionary<char, int>)_children).Add(c, index); 87if (_children is Dictionary<char, int> children) 103if (_children is Dictionary<char, int> children) 131static bool TryCreateJumpTable(Dictionary<char, int> children, [NotNullWhen(true)] out int[]? table)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
86Dictionary<int, int> prefixToBucket = new(bucketCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\StringComparer.cs (3)
72/// when passed to <see cref="Dictionary{String, TValue}.Dictionary"/> or <see cref="HashSet{String}.HashSet"/>. 74/// a <see cref="Dictionary{String, TValue}"/> given <see cref="EqualityComparer{String}.Default"/> as a constructor 75/// argument will behave identically to a <see cref="Dictionary{String, TValue}"/> given <see cref="Ordinal"/>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
319Dictionary<int, EncodingInfo>? result = EncodingProvider.GetEncodingListFromProviders();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (2)
96internal static Dictionary<int, EncodingInfo>? GetEncodingListFromProviders() 102Dictionary<int, EncodingInfo> result = new Dictionary<int, EncodingInfo>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
129internal static EncodingInfo[] GetEncodings(Dictionary<int, EncodingInfo> encodingInfoList)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (15)
182private static Dictionary<int, Task>? s_currentActiveTasks; 187private static Dictionary<int, long>? s_runtimeAsyncTaskTimestamps; 189private static Dictionary<object, long>? s_runtimeAsyncContinuationTimestamps; 197Dictionary<int, Task> activeTasks = 213Dictionary<int, Task>? activeTasks = s_currentActiveTasks; 225private static Dictionary<object, long> GetOrCreateRuntimeAsyncContinuationTimestamps() 232private static Dictionary<int, long> GetOrCreateRuntimeAsyncTaskTimestamps() 241var continuationTimestamps = GetOrCreateRuntimeAsyncContinuationTimestamps(); 258var continuationTimestamps = GetOrCreateRuntimeAsyncContinuationTimestamps(); 273var continuationTimestamps = s_runtimeAsyncContinuationTimestamps; 285var continuationTimestamps = s_runtimeAsyncContinuationTimestamps; 303var continuationTimestamps = s_runtimeAsyncContinuationTimestamps; 317var runtimeAsyncTaskTimestamps = GetOrCreateRuntimeAsyncTaskTimestamps(); 328Dictionary<int, long>? runtimeAsyncTaskTimestamps = s_runtimeAsyncTaskTimestamps; 342Dictionary<object, long>? continuationTimestamps = s_runtimeAsyncContinuationTimestamps;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (6)
660private static Dictionary<string, LocalDataStoreSlot>? s_nameToSlotMap; 667private static Dictionary<string, LocalDataStoreSlot> EnsureNameToSlotMap() 669Dictionary<string, LocalDataStoreSlot>? nameToSlotMap = s_nameToSlotMap; 682Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap(); 692Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap(); 706Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
615private readonly Dictionary<int, bool> _usedIdToTracksAllValuesMap = new Dictionary<int, bool>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitSubsystem.WaitableObject.Unix.cs (1)
22private static Dictionary<string, WaitableObject>? s_namedObjects;
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (3)
155public Dictionary<string, TimeZoneInfo>? _systemTimeZones; 166public Dictionary<string, TimeZoneInfo>? _timeZonesUsingAlternativeIds; 782Dictionary<string, TimeZoneInfo>? filteredTimeZones = PopulateAllSystemTimeZones(cachedData);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
287private static Dictionary<string, TimeZoneInfo> PopulateAllSystemTimeZones(CachedData cachedData) 304Dictionary<string, TimeZoneInfo> filteredTimeZones = new Dictionary<string, TimeZoneInfo>(capacity: initialCapacity, comparer: StringComparer.OrdinalIgnoreCase)
System\AppContext.NativeAot.cs (2)
12private static unsafe Dictionary<string, object?> InitializeDataStore() 16var dataStore = new Dictionary<string, object?>((int)count);
System\GC.NativeAot.cs (2)
652internal Dictionary<string, object> Configurations; 670Dictionary<string, object> configurationDictionary = context.Configurations!;
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.cs (3)
22Dictionary<MethodBase, CustomMethodInvokerAction> map; 44private static void AddConstructor(this Dictionary<MethodBase, CustomMethodInvokerAction> map, Type declaringType, Type[] parameterTypes, CustomMethodInvokerAction action) 51private static void AddMethod(this Dictionary<MethodBase, CustomMethodInvokerAction> map, Type declaringType, string name, Type[] parameterTypes, CustomMethodInvokerAction action)
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (3)
18public static Dictionary<MethodBase, CustomMethodInvokerAction> Map 24Dictionary<MethodBase, CustomMethodInvokerAction> map = new Dictionary<MethodBase, CustomMethodInvokerAction>(); 107private static volatile Dictionary<MethodBase, CustomMethodInvokerAction> s_lazyMap;
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.String.cs (3)
16public static Dictionary<MethodBase, CustomMethodInvokerAction> Map 22Dictionary<MethodBase, CustomMethodInvokerAction> map = new Dictionary<MethodBase, CustomMethodInvokerAction>(); 91private static volatile Dictionary<MethodBase, CustomMethodInvokerAction> s_lazyMap;
System.Private.CoreLib.Generators (12)
NativeRuntimeEventSourceGenerator.cs (12)
40Dictionary<string, HashSet<string>> inclusionList = ParseInclusionListFromString(inclusionText); 61private static Dictionary<string, HashSet<string>> ParseInclusionListFromString(string? inclusionText) 63Dictionary<string, HashSet<string>> inclusionList = []; 112private static bool IncludeEvent(Dictionary<string, HashSet<string>> inclusionList, string providerName, string eventName) 132private static string GenerateEventSourceClass(XElement providerNode, string className, Dictionary<string, HashSet<string>> inclusionList) 159private static void GenerateKeywordsClass(XElement providerNode, StringWriter writer, Dictionary<string, HashSet<string>> inclusionList) 222private static void GenerateEventMethods(XElement providerNode, StringWriter writer, Dictionary<string, HashSet<string>> inclusionList) 239var templateDict = new Dictionary<string, XElement>(); 253Dictionary<string, string> latestEventVersions = []; 390private static readonly Dictionary<string, string> manifestsToGenerate = new() 395private static readonly Dictionary<string, string> providerNameToClassNameMap = new() 400private static readonly Dictionary<string, string> manifestTypeToCSharpTypeMap = new()
System.Private.DataContractSerialization (105)
System\Runtime\Serialization\ClassDataContract.cs (8)
15using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 114public override DataContractDictionary? KnownDataContracts 256internal static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable) 594private DataContractDictionary? _knownDataContracts; 806Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 1208internal override DataContractDictionary? KnownDataContracts 1316internal override DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null) 1423Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(Members.Count);
System\Runtime\Serialization\CollectionDataContract.cs (5)
15using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 252public override DataContractDictionary? KnownDataContracts 414private DataContractDictionary? _knownDataContracts; 692internal override DataContractDictionary? KnownDataContracts 1382internal override DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null)
System\Runtime\Serialization\DataContract.cs (14)
20using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 244public virtual DataContractDictionary? KnownDataContracts 302internal virtual DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null) 323private static Dictionary<XmlQualifiedName, DataContract?>? s_nameToBuiltInContract; 324private static Dictionary<string, DataContract?>? s_typeNameToBuiltInContract; 326private static Dictionary<string, XmlDictionaryString>? s_clrTypeStrings; 1017internal virtual DataContractDictionary? KnownDataContracts 1957internal static DataContractDictionary? ImportKnownTypeAttributes(Type type) 1959DataContractDictionary? knownDataContracts = null; 1960Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 1967private static void ImportKnownTypeAttributes(Type? type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary? knownDataContracts) 2073internal static void CheckAndAdd(Type type, Dictionary<Type, Type> typesChecked, [NotNullIfNotNull(nameof(nameToDataContractTable))] ref DataContractDictionary? nameToDataContractTable)
System\Runtime\Serialization\DataContractSerializer.cs (3)
12using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 28internal DataContractDictionary? _knownDataContracts; 173internal override DataContractDictionary? KnownDataContracts
System\Runtime\Serialization\DataContractSet.cs (14)
11using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 17private DataContractDictionary? _contracts; 18private Dictionary<DataContract, object>? _processedContracts; 21private DataContractDictionary? _knownTypesForObject; 57public DataContractDictionary Contracts => 60public Dictionary<DataContract, object> ProcessedContracts => 65public DataContractDictionary? KnownTypesForObject 202private void AddKnownDataContracts(DataContractDictionary? knownDataContracts) 315private Dictionary<XmlQualifiedName, object>? _referencedTypesDictionary; 316private Dictionary<XmlQualifiedName, object>? _referencedCollectionTypesDictionary; 320private Dictionary<XmlQualifiedName, object> GetReferencedTypes() 344private Dictionary<XmlQualifiedName, object> GetReferencedCollectionTypes() 367private void AddReferencedType(Dictionary<XmlQualifiedName, object> referencedTypes, Type type) 582Dictionary<XmlQualifiedName, object> referencedTypes = useReferencedCollectionTypes ? GetReferencedCollectionTypes() : GetReferencedTypes();
System\Runtime\Serialization\DataMember.cs (1)
290internal DataMember BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null)
System\Runtime\Serialization\EnumDataContract.cs (3)
78private static readonly Dictionary<Type, XmlQualifiedName> s_typeToName = new Dictionary<Type, XmlQualifiedName>(); 79private static readonly Dictionary<XmlQualifiedName, Type> s_nameToType = new Dictionary<XmlQualifiedName, Type>(); 219Dictionary<string, DataMember> memberValuesTable = new Dictionary<string, DataMember>();
System\Runtime\Serialization\GenericParameterDataContract.cs (1)
46internal override DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null)
System\Runtime\Serialization\Globals.cs (1)
97internal static Type TypeOfDictionaryGeneric => field ??= typeof(Dictionary<,>);
System\Runtime\Serialization\HybridObjectCache.cs (2)
13private Dictionary<string, object?>? _objectDictionary; 14private Dictionary<string, object?>? _referencedObjectDictionary;
System\Runtime\Serialization\Json\DataContractJsonSerializer.cs (3)
18using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 25internal DataContractDictionary? knownDataContracts; 127internal override DataContractDictionary? KnownDataContracts
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
158Dictionary<string, object?> memberTable = new Dictionary<string, object?>(memberCount);
System\Runtime\Serialization\Json\JsonDataContract.cs (6)
14using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 40private DataContractDictionary? KnownDataContracts => _helper.KnownDataContracts; 156private DataContractDictionary? _knownDataContracts; 169internal DataContractDictionary? KnownDataContracts => _knownDataContracts; 317private static readonly Dictionary<DataContract, JsonReadWriteDelegates> s_jsonDelegates = new Dictionary<DataContract, JsonReadWriteDelegates>(); 319public static Dictionary<DataContract, JsonReadWriteDelegates> GetJsonDelegates()
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (3)
11using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 68DataContractDictionary[] entries = context.scopedKnownTypes.dataContractDictionaries; 73DataContractDictionary entry = entries[i];
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
219Dictionary<object, object?> genericDictionaryObj = new Dictionary<object, object?>(dictionaryObj.Count);
System\Runtime\Serialization\ObjectReferenceStack.cs (1)
19private Dictionary<object, object?>? _objectDictionary;
System\Runtime\Serialization\SchemaHelper.cs (4)
9using SchemaObjectDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.SchemaObjectInfo>; 51internal static XmlSchemaType? GetSchemaType(SchemaObjectDictionary schemaInfo, XmlQualifiedName typeName) 83internal static XmlSchemaElement? GetSchemaElement(SchemaObjectDictionary schemaInfo, XmlQualifiedName elementName) 174internal static XmlSchema? GetSchemaWithType(SchemaObjectDictionary schemaInfo, XmlSchemaSet schemas, XmlQualifiedName typeName)
System\Runtime\Serialization\SchemaImporter.cs (9)
16using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 17using SchemaObjectDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.SchemaObjectInfo>; 29private SchemaObjectDictionary _schemaObjects = null!; // Not directly referenced. Always lazy initialized by property getter. 150private SchemaObjectDictionary SchemaObjects 186Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 224DataContractDictionary knownDataContracts = new DataContractDictionary(); 240internal SchemaObjectDictionary CreateSchemaObjects() 242SchemaObjectDictionary schemaObjects = new SchemaObjectDictionary(); 911DataContractDictionary knownDataContracts = ancestorDataContract.KnownDataContracts!; // Might be .Count == 0, but always non-null for ClassDataContract
System\Runtime\Serialization\ScopedKnownTypes.cs (6)
8using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 14internal DataContractDictionary[] dataContractDictionaries; 16internal void Push(DataContractDictionary dataContractDictionary) 20dataContractDictionaries = new DataContractDictionary[4]; 24Array.Resize<DataContractDictionary>(ref dataContractDictionaries, dataContractDictionaries.Length * 2); 39DataContractDictionary dataContractDictionary = dataContractDictionaries[i];
System\Runtime\Serialization\XmlDataContract.cs (4)
16using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 35public override DataContractDictionary? KnownDataContracts 125private DataContractDictionary? _knownDataContracts; 182internal override DataContractDictionary? KnownDataContracts
System\Runtime\Serialization\XmlObjectSerializer.cs (2)
15using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 112internal virtual DataContractDictionary? KnownDataContracts
System\Runtime\Serialization\XmlObjectSerializerContext.cs (8)
13using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 22protected DataContractDictionary? serializerKnownDataContracts; 161internal virtual DataContractDictionary? SerializerKnownDataContracts 181DataContractDictionary? serializerKnownDataContracts = this.SerializerKnownDataContracts; 190internal static DataContractDictionary? GetDataContractsForKnownTypes(IList<Type> knownTypeList) 193DataContractDictionary dataContracts = new DataContractDictionary(); 194Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 208internal bool IsKnownType(DataContract dataContract, DataContractDictionary? knownDataContracts, Type? declaredType)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
15using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 197private bool ReplaceScopedKnownTypesTop(DataContractDictionary? knownDataContracts, bool knownTypesAddedInCurrentScope)
System\Xml\XmlBinaryReaderSession.cs (1)
17private Dictionary<int, XmlDictionaryString>? _stringDict;
System\Xml\XmlBinaryWriterSession.cs (1)
103private Dictionary<K, V>? _dictionary;
System\Xml\XmlDictionary.cs (1)
18private readonly Dictionary<string, XmlDictionaryString> _lookup;
System.Private.Windows.Core (5)
System\Private\Windows\BinaryFormat\Support\StringRecordsCollection.cs (2)
14private readonly Dictionary<string, int> _strings = []; 15private readonly Dictionary<int, MemberReference> _memberReferences = [];
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (1)
17private static Dictionary<TypeName, Type>? s_knownTypes;
System\Private\Windows\Ole\DataStore.cs (1)
21private readonly Dictionary<string, DataStoreEntry> _mappedData = new(BackCompatibleStringComparer.Default);
System\Private\Windows\Ole\TypeBinder.cs (1)
46private Dictionary<FullyQualifiedTypeName, TypeName>? _cachedTypeNames;
System.Private.Xml (126)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
302private readonly Dictionary<string, NamespaceDecl> _namespaces; 1815Dictionary<string, string> nstable = new Dictionary<string, string>();
System\Xml\Core\QueryOutputWriter.cs (1)
25private readonly Dictionary<XmlQualifiedName, int>? _lookupCDataElems;
System\Xml\Core\QueryOutputWriterV1.cs (1)
27private readonly Dictionary<XmlQualifiedName, XmlQualifiedName?>? _lookupCDataElems;
System\Xml\Core\XmlTextWriter.cs (1)
174private Dictionary<string, int>? _nsHashtable;
System\Xml\Core\XmlWellFormedWriter.cs (2)
32private Dictionary<string, int>? _nsHashtable; 42private Dictionary<string, int>? _attrHashTable;
System\Xml\Dom\XmlNodeReader.cs (1)
987Dictionary<string, string> dict = new Dictionary<string, string>();
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
129private readonly Dictionary<Uri, PreloadedData> _mappings;
System\Xml\Schema\ContentValidator.cs (4)
42private readonly Dictionary<XmlQualifiedName, int> _names; 43private Dictionary<string, int>? _wildcards; 1445Dictionary<BitSet, int> stateTable = new(); 2113private readonly Dictionary<XmlQualifiedName, int> _elements; // unique terminal names to positions in Bitset mapping
System\Xml\Schema\DtdParser.cs (1)
195private Dictionary<string, UndeclaredNotation>? _undeclaredNotations;
System\Xml\Schema\SchemaElementDecl.cs (4)
13private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attdefs = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 22private readonly Dictionary<XmlQualifiedName, XmlQualifiedName> _prohibitedAttributes = new Dictionary<XmlQualifiedName, XmlQualifiedName>(); 222internal Dictionary<XmlQualifiedName, SchemaAttDef> AttDefs 227internal Dictionary<XmlQualifiedName, XmlQualifiedName> ProhibitedAttributes
System\Xml\Schema\SchemaInfo.cs (17)
27private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 28private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 30private Dictionary<XmlQualifiedName, SchemaEntity>? _generalEntities; 31private Dictionary<XmlQualifiedName, SchemaEntity>? _parameterEntities; 38private readonly Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>(); 39private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>(); 42private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>(); 43private Dictionary<string, SchemaNotation>? _notations; 63internal Dictionary<XmlQualifiedName, SchemaElementDecl> ElementDecls 68internal Dictionary<XmlQualifiedName, SchemaElementDecl> UndeclaredElementDecls 73internal Dictionary<XmlQualifiedName, SchemaEntity> GeneralEntities => 76internal Dictionary<XmlQualifiedName, SchemaEntity> ParameterEntities => 85internal Dictionary<string, bool> TargetNamespaces 90internal Dictionary<XmlQualifiedName, SchemaElementDecl> ElementDeclsByType 95internal Dictionary<XmlQualifiedName, SchemaAttDef> AttributeDecls 100internal Dictionary<string, SchemaNotation> Notations => 331Dictionary<XmlQualifiedName, SchemaElementDecl> elements = _elementDecls;
System\Xml\Schema\XmlAtomicValue.cs (1)
71Dictionary<string, string> dict = new Dictionary<string, string>(1);
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
12private readonly Dictionary<XmlQualifiedName, XmlSchemaObject> _table = new Dictionary<XmlQualifiedName, XmlSchemaObject>();
System\Xml\Schema\XmlSchemaValidator.cs (1)
2101Dictionary<XmlQualifiedName, SchemaAttDef> attributeDefs = currentElementDecl.AttDefs;
System\Xml\Serialization\CodeGenerator.cs (5)
36private Dictionary<string, ArgBuilder>? _argList; 40private Dictionary<(Type, string), Queue<LocalBuilder>>? _freeLocals; 149private readonly Dictionary<Type, LocalBuilder> _tmpLocals = new Dictionary<Type, LocalBuilder>(); 1560private readonly Dictionary<string, LocalBuilder> _locals; 1610public void AddToFreeLocals(Dictionary<(Type, string), Queue<LocalBuilder>> freeLocals)
System\Xml\Serialization\Compilation.cs (8)
469var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 560var serializers = new Dictionary<string, string>(); 739private readonly ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>> _collectibleCaches = new ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>>(); 740private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 753if (_collectibleCaches.TryGetValue(lookupAssembly, out var cCache)) 769Dictionary<TempAssemblyCacheKey, TempAssembly>? cache; 779cache = _collectibleCaches.TryGetValue(collectibleAssembly, out var c)
System\Xml\Serialization\Models.cs (2)
21private readonly Dictionary<Type, TypeModel> _models = new Dictionary<Type, TypeModel>(); 22private readonly Dictionary<Type, TypeModel> _arrayModels = new Dictionary<Type, TypeModel>();
System\Xml\Serialization\NameTable.cs (1)
41private readonly Dictionary<NameKey, object?> _table = new Dictionary<NameKey, object?>();
System\Xml\Serialization\Types.cs (4)
1113internal static MemberMapping[] GetAllMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1183internal static MemberMapping[] GetSettableMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1191private static void PopulateMemberInfos(StructMapping structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1211Dictionary<string, MemberInfo>? replaceList = null;
System\Xml\Serialization\XmlAttributeOverrides.cs (5)
19private readonly Dictionary<Type, Dictionary<string, XmlAttributes?>> _types = new Dictionary<Type, Dictionary<string, XmlAttributes?>>(); 34Dictionary<string, XmlAttributes?>? members; 65Dictionary<string, XmlAttributes?>? members;
System\Xml\Serialization\XmlSerializationILGen.cs (8)
19private readonly Dictionary<TypeMapping, string> _methodNames = new Dictionary<TypeMapping, string>(); 21private readonly Dictionary<string, MethodBuilderInfo> _methodBuilders = new Dictionary<string, MethodBuilderInfo>(); 23internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>(); 25internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>(); 59internal Dictionary<TypeMapping, string> MethodNames { get { return _methodNames; } } 408private FieldBuilder GenerateTypedSerializers(Dictionary<string, string> serializers, TypeBuilder serializerContractTypeBuilder) 434private void GenerateGetSerializer(Dictionary<string, string> serializers, XmlMapping[] xmlMappings, TypeBuilder serializerContractTypeBuilder) 479internal void GenerateSerializerContract(XmlMapping[] xmlMappings, Type[] types, string readerType, string[] readMethods, string writerType, string[] writerMethods, Dictionary<string, string> serializers)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
23private readonly Dictionary<string, string> _idNames = new Dictionary<string, string>(); 25private readonly Dictionary<string, FieldBuilder> _idNameFields = new Dictionary<string, FieldBuilder>(); 37internal Dictionary<string, EnumMapping> Enums => field ??= new Dictionary<string, EnumMapping>();
System\Xml\Serialization\XmlSerializer.cs (4)
165private static readonly ContextAwareTables<Dictionary<XmlSerializerMappingKey, XmlSerializer>> s_xmlSerializerTable = new ContextAwareTables<Dictionary<XmlSerializerMappingKey, XmlSerializer>>(); 712Dictionary<XmlSerializerMappingKey, XmlSerializer>? typedMappingTable = null; 719var pendingKeys = new Dictionary<XmlSerializerMappingKey, int>();
System\Xml\Serialization\XmlSerializerNamespaces.cs (3)
20private Dictionary<string, XmlQualifiedName>? _namespaces; 101internal Dictionary<string, XmlQualifiedName>.ValueCollection Namespaces => NamespacesInternal.Values; 103private Dictionary<string, XmlQualifiedName> NamespacesInternal => _namespaces ??= new Dictionary<string, XmlQualifiedName>();
System\Xml\XmlNamespacemanager.cs (3)
43private Dictionary<string, int>? _hashTable; 210Dictionary<string, string> prefixes = new Dictionary<string, string>(_lastDecl + 1); 248Dictionary<string, string> dict = new Dictionary<string, string>(_lastDecl - i + 1);
System\Xml\XPath\Internal\XPathParser.cs (6)
811private static readonly Dictionary<string, ParamInfo> s_functionTable = CreateFunctionTable(); 812private static Dictionary<string, ParamInfo> CreateFunctionTable() 814Dictionary<string, ParamInfo> table = new Dictionary<string, ParamInfo>(36); 845private static readonly Dictionary<string, Axis.AxisType> s_AxesTable = CreateAxesTable(); 846private static Dictionary<string, Axis.AxisType> CreateAxesTable() 848Dictionary<string, Axis.AxisType> table = new Dictionary<string, Axis.AxisType>(13);
System\Xml\XPath\XPathDocument.cs (2)
23private Dictionary<XPathNodeRef, XPathNodeRef>? _mapNmsp; 24private Dictionary<string, XPathNodeRef>? _idValueMap;
System\Xml\XPath\XPathNavigator.cs (1)
481Dictionary<string, string> dict = new Dictionary<string, string>();
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
440public static readonly Dictionary<Type, XmlILStorageMethods> StorageMethods = new Dictionary<Type, XmlILStorageMethods>(13)
System\Xml\Xsl\IlGen\StaticDataManager.cs (1)
20private readonly Dictionary<T, int> _lookup = new Dictionary<T, int>();
System\Xml\Xsl\QIL\QilVisitor.cs (1)
439private readonly Dictionary<QilNode, bool> _visitedRef = new Dictionary<QilNode, bool>();
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
21private readonly Dictionary<XmlExtensionFunction, XmlExtensionFunction> _table;
System\Xml\Xsl\Runtime\XmlILIndex.cs (1)
17private readonly Dictionary<string, XmlQueryNodeSequence> _table;
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (2)
48private Dictionary<string, string>? _conflictPrefixes; // Remembers prefixes that were auto-generated previously in case they can be reused 55private readonly Dictionary<string, string> _usedPrefixes = new Dictionary<string, string>(); //The prefies that used in the current scope
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
82private Dictionary<XmlQualifiedName, DecimalFormat>? _decimalFormats;
System\Xml\Xsl\XPath\XPathBuilder.cs (3)
787public static Dictionary<string, FunctionInfo> FunctionTable = CreateFunctionTable(); 788private static Dictionary<string, FunctionInfo> CreateFunctionTable() 790Dictionary<string, FunctionInfo> table = new Dictionary<string, FunctionInfo>(36);
System\Xml\Xsl\Xslt\Compiler.cs (7)
55public Dictionary<QilName, VarPar> AllGlobalVarPars = new Dictionary<QilName, VarPar>(); 56public Dictionary<QilName, Template> NamedTemplates = new Dictionary<QilName, Template>(); 57public Dictionary<QilName, AttributeSet> AttributeSets = new Dictionary<QilName, AttributeSet>(); 58public Dictionary<string, NsAlias> NsAliases = new Dictionary<string, NsAlias>(); 60private readonly Dictionary<string, int> _moduleOrder = new Dictionary<string, int>(); 360private readonly Dictionary<string, int> _moduleOrder; 362public CompilerErrorComparer(Dictionary<string, int> moduleOrder)
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
261public Dictionary<QilName, List<Pattern>> FixedNamePatterns = new Dictionary<QilName, List<Pattern>>();
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
477Dictionary<VarPar, Template>? paramToTemplate = null; 478Dictionary<VarPar, QilFunction>? paramToFunction = null;
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (3)
302public static Dictionary<string, FunctionInfo> FunctionTable = CreateFunctionTable(); 303private static Dictionary<string, FunctionInfo> CreateFunctionTable() 305Dictionary<string, FunctionInfo> table = new Dictionary<string, FunctionInfo>(16);
System\Xml\Xsl\Xslt\Scripts.cs (1)
51private readonly Dictionary<string, Type?> _backingDictionary = new Dictionary<string, Type?>();
System\Xml\Xsl\Xslt\Stylesheet.cs (4)
21public Dictionary<QilName, XslFlags> ModeFlags = new Dictionary<QilName, XslFlags>(); 23public Dictionary<QilName, List<QilFunction>> ApplyFunctions = new Dictionary<QilName, List<QilFunction>>(); 33public Dictionary<QilName, AttributeSet>? AttributeSets = new Dictionary<QilName, AttributeSet>(); 47public Dictionary<QilName, List<TemplateMatch>> TemplateMatches = new Dictionary<QilName, List<TemplateMatch>>();
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (4)
40private Dictionary<Template, Stylesheet>? _fwdApplyImportsGraph = new Dictionary<Template, Stylesheet>(); 41private Dictionary<QilName, List<ProtoTemplate>>? _revApplyTemplatesGraph = new Dictionary<QilName, List<ProtoTemplate>>(); 47private readonly Dictionary<ModeName, VarPar> _applyTemplatesParams = new Dictionary<ModeName, VarPar>(); 265private static void FillModeFlags(Dictionary<QilName, XslFlags> parentModeFlags, Stylesheet sheet)
System.Reflection.DispatchProxy (6)
System\Reflection\DispatchProxyGenerator.cs (6)
109private readonly Dictionary<Type, Dictionary<Type, GeneratedTypeInfo>> _baseTypeAndInterfaceToGeneratedProxyType = new Dictionary<Type, Dictionary<Type, GeneratedTypeInfo>>(); 151if (!_baseTypeAndInterfaceToGeneratedProxyType.TryGetValue(baseType, out Dictionary<Type, GeneratedTypeInfo>? interfaceToProxy)) 333var propertyMap = new Dictionary<MethodInfo, PropertyAccessorInfo>(); 343var eventMap = new Dictionary<MethodInfo, EventAccessorInfo>();
System.Reflection.Emit (11)
System\Reflection\Emit\ILGeneratorImpl.cs (3)
31private Dictionary<Label, LabelInfo> _labelTable = new(2); 35private Dictionary<SymbolDocumentWriter, List<SequencePoint>> _documentToSequencePoints = new(); 56internal Dictionary<SymbolDocumentWriter, List<SequencePoint>> DocumentToSequencePoints => _documentToSequencePoints;
System\Reflection\Emit\ModuleBuilderImpl.cs (7)
22private readonly Dictionary<Assembly, AssemblyReferenceHandle> _assemblyReferences = new(); 23private readonly Dictionary<Type, EntityHandle> _typeReferences = new(); 24private readonly Dictionary<object, EntityHandle> _memberReferences = new(); 27private Dictionary<string, ModuleReferenceHandle>? _moduleReferences; 29private Dictionary<SymbolDocumentWriter, DocumentHandle> _docHandles = new(); 423Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator = il.DocumentToSequencePoints.GetEnumerator(); 447private BlobHandle PopulateMultiDocSequencePointsBlob(Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator, StandaloneSignatureHandle localSignature)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
41internal Dictionary<Type, List<(MethodInfo ifaceMethod, MethodInfo targetMethod)>>? _methodOverrides;
System.Reflection.Metadata (25)
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (2)
17private readonly Dictionary<int, KeyValuePair<ImmutableArray<byte>, BlobHandle>> _dictionary; 106public Dictionary<int, KeyValuePair<ImmutableArray<byte>, BlobHandle>>.Enumerator GetEnumerator() =>
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (4)
36private readonly Dictionary<string, UserStringHandle> _userStrings = new Dictionary<string, UserStringHandle>(256); 41private readonly Dictionary<string, StringHandle> _strings = new Dictionary<string, StringHandle>(256); 51private readonly Dictionary<Guid, GuidHandle> _guids = new Dictionary<Guid, GuidHandle>(); 535Dictionary<string, StringHandle> strings,
System\Reflection\Metadata\Internal\NamespaceCache.cs (11)
15private Dictionary<NamespaceDefinitionHandle, NamespaceData>? _namespaceTable; 114var namespaceBuilderTable = new Dictionary<NamespaceDefinitionHandle, NamespaceDataBuilder>(); 134Dictionary<string, NamespaceDataBuilder> stringTable; 140var namespaceTable = new Dictionary<NamespaceDefinitionHandle, NamespaceData>(); 167private static void MergeDuplicateNamespaces(Dictionary<NamespaceDefinitionHandle, NamespaceDataBuilder> table, out Dictionary<string, NamespaceDataBuilder> stringTable) 169var namespaces = new Dictionary<string, NamespaceDataBuilder>(); 232private void LinkChildToParentNamespace(Dictionary<string, NamespaceDataBuilder> existingNamespaces, 302private void ResolveParentChildRelationships(Dictionary<string, NamespaceDataBuilder> namespaces, out List<NamespaceDataBuilder>? virtualNamespaces) 314private void PopulateTableWithTypeDefinitions(Dictionary<NamespaceDefinitionHandle, NamespaceDataBuilder> table) 346private void PopulateTableWithExportedTypes(Dictionary<NamespaceDefinitionHandle, NamespaceDataBuilder> table)
System\Reflection\Metadata\Internal\VirtualHeap.cs (5)
39private Dictionary<uint, PinnedBlob>? _blobs; 56var blobs = Interlocked.Exchange(ref _blobs, null); 68private Dictionary<uint, PinnedBlob> GetBlobs() 70var blobs = _blobs; 93var blobs = GetBlobs();
System\Reflection\Metadata\MetadataReader.cs (3)
29private Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>>? _lazyNestedTypesMap; 1438var groupedNestedTypes = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>.Builder>(); 1468var nestedTypesMap = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>>();
System.Reflection.MetadataLoadContext (1)
System\Reflection\PathAssemblyResolver.cs (1)
25private readonly Dictionary<string, List<string>> _fileToPaths = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
System.Resources.Extensions (13)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
41private Dictionary<string, object?> _caseInsensitiveDups; 42private Dictionary<string, PrecannedResource>? _preserializedData;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
69internal Dictionary<string, ResourceLocator>? _resCache;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (4)
163private Dictionary<string, ResourceLocator>? _resCache; 175private Dictionary<string, ResourceLocator>? _caseInsensitiveTable; 268Dictionary<string, ResourceLocator>? cache = _resCache; 310Dictionary<string, ResourceLocator>? caseInsensitiveTable = _caseInsensitiveTable;
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (2)
24private readonly Dictionary<string, Assembly> _assemblies = []; 25private readonly Dictionary<string, Type> _types = [];
System\Resources\Extensions\BinaryFormat\Deserializer\Deserializer.cs (3)
63private readonly Dictionary<SerializationRecordId, object> _deserializedObjects = []; 67private readonly Dictionary<Type, ISerializationSurrogate?>? _surrogates; 87private Dictionary<SerializationRecordId, HashSet<SerializationRecordId>>? _incompleteDependencies;
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
39private static readonly Dictionary<string, Type> s_primitiveTypes = new Dictionary<string, Type>(16, TypeNameComparer.Instance)
System.Resources.Writer (2)
src\runtime\src\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
41private Dictionary<string, object?> _caseInsensitiveDups; 42private Dictionary<string, PrecannedResource>? _preserializedData;
System.Runtime.Caching (4)
System\Runtime\Caching\MemoryCache.cs (2)
497Dictionary<string, object> h = new Dictionary<string, object>(); 781Dictionary<string, object> values = null;
System\Runtime\Caching\MemoryCacheEntry.cs (2)
35internal Dictionary<MemoryCacheEntryChangeMonitor, MemoryCacheEntryChangeMonitor> _dependents; // dependents must be notified when this entry is removed 244Dictionary<MemoryCacheEntryChangeMonitor, MemoryCacheEntryChangeMonitor>.KeyCollection deps = null;
System.Runtime.InteropServices.JavaScript (4)
System\Runtime\InteropServices\JavaScript\JSProxyContext.cs (4)
16private readonly Dictionary<nint, WeakReference<JSObject>> ThreadCsOwnedObjects = new(); 18private readonly Dictionary<object, nint> ThreadJsOwnedObjects = new(ReferenceEqualityComparer.Instance); 20private readonly Dictionary<nint, PromiseHolder> ThreadJsOwnedHolders = new(); 26internal Dictionary<int, Action<IntPtr>> JSExportByHandle = new Dictionary<int, Action<IntPtr>>();
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\SerializationObjectManager.cs (1)
14private readonly Dictionary<object, object> _objectSeenTable; // Table to keep track of objects [OnSerializing] has been called on
System.Runtime.Serialization.Schema (20)
System\Runtime\Serialization\Schema\CodeExporter.cs (20)
21using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>; 38private readonly Dictionary<string, string> _namespaces; 39private readonly Dictionary<string, string?> _clrNamespaces; 196private Dictionary<string, string> Namespaces 201private Dictionary<string, string?> ClrNamespaces 260private void ExportClassDataContractHierarchy(XmlQualifiedName typeName, DataContract classContract, ContractCodeDomInfo contractCodeDomInfo, Dictionary<XmlQualifiedName, object?> contractNamesInHierarchy) 385get { return DataContract.GetXmlName(typeof(Dictionary<,>)); } 391get { return _dataContractSet.GetDataContract(typeof(Dictionary<,>)); } 668Type? type = _dataContractSet.GetReferencedType(GenericDictionaryName, GenericDictionaryContract, out DataContract? _, out object[]? _) ?? typeof(Dictionary<,>); 912DataContractDictionary? knownTypeDictionary = GetKnownTypeContracts(dataContract); 916DataContractDictionary.ValueCollection? knownTypeContracts = knownTypeDictionary.Values; 929private DataContractDictionary? GetKnownTypeContracts(DataContract dataContract) 947private DataContractDictionary? GetKnownTypeContracts(DataContract classDataContract, Dictionary<DataContract, object?> handledContracts) 980private static void AddKnownTypeContracts(DataContract classDataContract, DataContractDictionary? knownContracts) 1001DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>()); 1541Dictionary<string, object?> fragments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 1572private static void AddToNamespace(StringBuilder builder, string? fragment, Dictionary<string, object?> fragments) 1606int fragmentLength, Dictionary<string, object?> fragments) 1634Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System.Security.AccessControl (2)
System\Security\AccessControl\Privilege.cs (2)
27private static readonly Dictionary<Luid, string> s_privileges = new Dictionary<Luid, string>(); 28private static readonly Dictionary<string, Luid> s_luids = new Dictionary<string, Luid>();
System.Security.Claims (1)
System\Security\Claims\Claim.cs (1)
34private Dictionary<string, string>? _properties;
System.Security.Cryptography (18)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLDsaPrivateKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\MLKemPrivateKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\CryptoConfig.cs (6)
40private static Dictionary<string, string>? s_defaultOidHT; 41private static Dictionary<string, object>? s_defaultNameHT; 45private static Dictionary<string, string> DefaultOidHT 55Dictionary<string, string> ht = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase); 108private static Dictionary<string, object> DefaultNameHT 119Dictionary<string, object> ht = new Dictionary<string, object>(capacity: capacity, comparer: StringComparer.OrdinalIgnoreCase);
System\Security\Cryptography\OidLookup.cs (2)
98private static readonly Dictionary<string, string> s_friendlyNameToOid = 101private static readonly Dictionary<string, string> s_oidToFriendlyName =
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
15private static readonly Dictionary<string, X509KeyUsageFlags> s_keyUsages =
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
18private readonly Dictionary<CoseHeaderLabel, CoseHeaderValue> _headerParameters = new Dictionary<CoseHeaderLabel, CoseHeaderValue>();
System.Security.Cryptography.Pkcs (21)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\CertificateChoiceAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\Pkcs7\SignerIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
16var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
17var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\CmsSignature.cs (6)
16private static readonly Dictionary<string, CmsSignature> s_lookup = 28static partial void PrepareRegistrationRsa(Dictionary<string, CmsSignature> lookup); 29static partial void PrepareRegistrationDsa(Dictionary<string, CmsSignature> lookup); 30static partial void PrepareRegistrationECDsa(Dictionary<string, CmsSignature> lookup); 31static partial void PrepareRegistrationMLDsa(Dictionary<string, CmsSignature> lookup); 32static partial void PrepareRegistrationSlhDsa(Dictionary<string, CmsSignature> lookup);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (1)
14static partial void PrepareRegistrationDsa(Dictionary<string, CmsSignature> lookup)
System\Security\Cryptography\Pkcs\CmsSignature.ECDsa.cs (1)
14static partial void PrepareRegistrationECDsa(Dictionary<string, CmsSignature> lookup)
System\Security\Cryptography\Pkcs\CmsSignature.MLDsa.cs (1)
12static partial void PrepareRegistrationMLDsa(Dictionary<string, CmsSignature> lookup)
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (1)
16static partial void PrepareRegistrationRsa(Dictionary<string, CmsSignature> lookup)
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (1)
14static partial void PrepareRegistrationSlhDsa(Dictionary<string, CmsSignature> lookup)
System.ServiceModel.Http (1)
System\ServiceModel\Channels\HttpTransportSecurityHelpers.cs (1)
18private static Dictionary<string, int> s_targetNameCounter = new Dictionary<string, int>();
System.ServiceModel.NetFramingBase (5)
System\ServiceModel\Channels\ConnectionPool.cs (3)
23private readonly Dictionary<TKey, EndpointConnectionPool> _endpointPools; 682readonly Dictionary<Uri, string> _forwardTable = new Dictionary<Uri, string>(); 683readonly Dictionary<string, ICollection<Uri>> _reverseTable = new Dictionary<string, ICollection<Uri>>();
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (1)
13private Dictionary<string, List<ConnectionPool>> _registry;
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
96private Dictionary<TItem, IdlingConnectionSettings> _connectionMapping;
System.ServiceModel.Primitives (42)
Internals\System\Runtime\GeneratedXmlSerializers.cs (2)
12private static Dictionary<string, Type> s_generatedSerializers = new Dictionary<string, Type>(); 14public static Dictionary<string, Type> GetGeneratedSerializers()
Internals\System\Runtime\MruCache.cs (1)
15private Dictionary<TKey, CacheEntry> _items;
Internals\System\Xml\XmlMtomReader.cs (4)
79private Dictionary<string, MimePart> _mimeParts; 2227private Dictionary<string, MimeHeader> headers = new Dictionary<string, MimeHeader>(); 2373private Dictionary<string, string> parameters; 2397public Dictionary<string, string> Parameters
System\IdentityModel\CryptoHelper.cs (1)
21private static Dictionary<string, Func<object>> s_algorithmDelegateDictionary = new Dictionary<string, Func<object>>();
System\IdentityModel\IdentityModelDictionary.cs (2)
18private Dictionary<string, int> _dictionary; 49Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
16private Dictionary<string, object> _properties;
System\IdentityModel\SecurityUtils.cs (1)
334Dictionary<string, object> properties = new Dictionary<string, object>();
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
29private Dictionary<string, object> _properties;
System\ServiceModel\Channels\AddressHeaderCollection.cs (3)
139Dictionary<string, int> myHeaders = new Dictionary<string, int>(); 142Dictionary<string, int> otherHeaders = new Dictionary<string, int>(); 169internal void PopulateHeaderDictionary(StringBuilder builder, Dictionary<string, int> headers)
System\ServiceModel\Channels\DeliveryStrategy.cs (2)
50private Dictionary<Int64, ItemType> items; 126private static void DisposeItems(Dictionary<Int64, ItemType>.Enumerator items)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (2)
480private Dictionary<IReliableChannelBinder, TState> _faultList = new Dictionary<IReliableChannelBinder, TState>(); 490Dictionary<IReliableChannelBinder, TState> tempFaultList;
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
28private Dictionary<string, SupportingTokenParameters> _operationSupportingTokenParameters; 29private Dictionary<string, SupportingTokenParameters> _optionalOperationSupportingTokenParameters;
System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
190Dictionary<Type, byte> supportedChannels = new Dictionary<Type, byte>();
System\ServiceModel\Description\TypeLoader.cs (2)
46private readonly Dictionary<Type, ContractDescription> _contracts; 47private readonly Dictionary<Type, MessageDescriptionItems> _messages;
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (2)
711private Dictionary<string, XmlMembersMapping> _xmlMappings; 746private Dictionary<string, XmlMembersMapping> XmlMappings
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
19private Dictionary<string, ProxyOperationRuntime> _operations;
System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
38private Dictionary<IntPtr, string> _operationMap;
System\ServiceModel\MessageHeaderT.cs (1)
67private static Dictionary<Type, TypedHeaderManager> s_cache = new Dictionary<Type, TypedHeaderManager>();
System\ServiceModel\Security\ReceiveSecurityHeader.cs (2)
57private Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> _tokenPoliciesMapping; 258public Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> SecurityTokenAuthorizationPoliciesMapping
System\ServiceModel\Security\ScopedMessagePartSpecification.cs (2)
14private Dictionary<string, MessagePartSpecification> _actionParts; 15private Dictionary<string, MessagePartSpecification> _readOnlyNormalizedActionParts;
System\ServiceModel\Security\SecurityProtocol.cs (2)
31private Dictionary<string, Collection<SupportingTokenProviderSpecification>> _mergedSupportingTokenProvidersMap; 52public Dictionary<string, ICollection<SupportingTokenProviderSpecification>> ScopedSupportingTokenProviderSpecification { get; private set; }
System\ServiceModel\Security\SendSecurityHeaderElementContainer.cs (1)
22private Dictionary<SecurityToken, SecurityKeyIdentifierClause> _securityTokenMappedToIdentifierClause = null;
System\ServiceModel\Security\TransportSecurityProtocol.cs (1)
97IList<SecurityToken> signedEndorsingTokens, IList<SecurityToken> signedTokens, Dictionary<SecurityToken, ReadOnlyCollection<IAuthorizationPolicy>> tokenPoliciesMapping)
System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
58public Dictionary<Uri, X509Certificate2> ScopedCertificates { get; }
System\ServiceModel\ServiceModelDictionary.cs (2)
18private Dictionary<string, int> _dictionary; 49Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
System\ServiceModel\SynchronizedKeyedCollection.cs (1)
18private Dictionary<K, T> _dictionary;
System.ServiceModel.Primitives.Tests (3)
ServiceModel\MessageContractTest.4.4.0.cs (3)
146Dictionary<string, string> properties = new Dictionary<string, string>(); 147Dictionary<string, List<string>> headers = new Dictionary<string, List<string>>(); 301private static void ValidateHeader(Dictionary<string, List<string>> headers, string name, params string[] values)
System.ServiceModel.Syndication (15)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
538Dictionary<XmlQualifiedName, string> attrs = null;
System\ServiceModel\Syndication\CategoriesDocument.cs (1)
20public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
12private Dictionary<XmlQualifiedName, string> _attributeExtensions; 39public Dictionary<XmlQualifiedName, string> AttributeExtensions
System\ServiceModel\Syndication\IExtensibleSyndicationObject.cs (1)
11Dictionary<XmlQualifiedName, string> AttributeExtensions { get; }
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (1)
66public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\ServiceDocument.cs (1)
33public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationCategory.cs (1)
39public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationContent.cs (2)
14private Dictionary<XmlQualifiedName, string> _attributeExtensions; 22public Dictionary<XmlQualifiedName, string> AttributeExtensions
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
110public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationItem.cs (1)
76public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationLink.cs (1)
51public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationPerson.cs (1)
40public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\Workspace.cs (1)
36public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceController.cs (1)
326Dictionary<string, ServiceController>? dependencyHash = null;
System.Speech (15)
Internal\SrgsCompiler\Arc.cs (1)
397internal void CloneTags(Arc arc, List<Tag> _tags, Dictionary<Tag, Tag> endArcs, Backend? be)
Internal\SrgsCompiler\BackEnd.cs (7)
207Dictionary<State, State> srcToDestHash = new(); 471Dictionary<State, State> SrcToDestHash = new(); // Hash source state to destination state 473Dictionary<Tag, Tag> tags = new(); 526internal void CloneSubGraph(Rule rule, Backend org, Backend extra, Dictionary<State, State> srcToDestHash, bool fromOrg) 532Dictionary<Tag, Tag> tags = new(); 1146private Rule CloneState(State srcToState, List<State> CloneStack, Dictionary<State, State> srcToDestHash) 1365private Dictionary<int, Rule> _nameOffsetRules = new();
Internal\StringBlob.cs (1)
200private Dictionary<string, int> _strings = new();
Internal\Synthesis\VoiceSynthesis.cs (1)
1772private Dictionary<VoiceInfo, TTSVoice> _voiceDictionary = new();
Recognition\RecognizerBase.cs (1)
3016private Dictionary<int, object> _bookmarkTable = new();
Recognition\RecognizerInfo.cs (1)
37Dictionary<string, string> attrs = new();
Result\SemanticValue.cs (2)
185internal Dictionary<string, SemanticValue> _dictionary; 261private Dictionary<string, SemanticValue> _dictionary;
Synthesis\VoiceInfo.cs (1)
75Dictionary<string, string> attrs = new();
System.Text.Encoding.CodePages (1)
System\Text\CodePagesEncodingProvider.cs (1)
14private readonly Dictionary<int, Encoding> _encodings = new Dictionary<int, Encoding>();
System.Text.Json (68)
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
114var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System\Text\Json\Document\JsonElement.cs (1)
1368Dictionary<string, ValueQueue<JsonElement>> properties2 = new(capacity: remainingProps, StringComparer.Ordinal);
System\Text\Json\JsonHelpers.cs (5)
194this Dictionary<string, TValue> dictionary, 201Dictionary<string, TValue>.AlternateLookup<ReadOnlySpan<char>> spanLookup = 229this Dictionary<byte[], TValue> dictionary, 235Dictionary<byte[], TValue>.AlternateLookup<ReadOnlySpan<byte>> spanLookup = 279public static Dictionary<TKey, TValue> CreateDictionaryFromCollection<TKey, TValue>(
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
522private readonly Dictionary<(JsonTypeInfo, JsonPropertyInfo?), string[]> _generated = new();
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (3)
15where TCollection : Dictionary<TKey, TValue> 43Dictionary<TKey, TValue>.Enumerator enumerator; 55enumerator = (Dictionary<TKey, TValue>.Enumerator)state.Current.CollectionEnumerator;
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
109if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(Dictionary<string, object?>)))
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (1)
57if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(Dictionary<TKey, TValue>)))
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (1)
62else if ((actualTypeToConvert = typeToConvert.GetCompatibleGenericBaseClass(typeof(Dictionary<,>))) != null)
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (3)
17Dictionary<TKey, TValue> dictionary = (Dictionary<TKey, TValue>)state.Current.ReturnValue!; 46state.Current.ReturnValue = creator((Dictionary<TKey, TValue>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (3)
14private readonly bool _isDeserializable = typeof(TDictionary).IsAssignableFrom(typeof(Dictionary<TKey, TValue>)); 18Dictionary<TKey, TValue> dictionary = (Dictionary<TKey, TValue>)state.Current.ReturnValue!;
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (9)
23private readonly Dictionary<string, CaseInfo> _casesByName; 24private readonly Dictionary<string, CaseInfo>? _casesByNameCaseInsensitive; 50Dictionary<string, CaseInfo>? caseInsensitiveMap = options.PropertyNameCaseInsensitive 496private static Dictionary<string, int> BuildFieldIndexMap(CaseFieldInfo[] fields, StringComparer comparer, Type declaringType, string caseName) 498var map = new Dictionary<string, int>(fields.Length, comparer); 519Dictionary<string, int>? fieldIndexMap, 520Dictionary<string, int>? fieldIndexMapCaseInsensitive, 544public Dictionary<string, int>? FieldIndexMap { get; } 545public Dictionary<string, int>? FieldIndexMapCaseInsensitive { get; }
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
38private readonly Dictionary<string, EnumFieldInfo> _enumFieldInfoIndex; 306Dictionary<string, EnumFieldInfo>.AlternateLookup<ReadOnlySpan<char>> lookup = _enumFieldInfoIndex.GetAlternateLookup<ReadOnlySpan<char>>(); 542Dictionary<string, string>? enumMemberAttributes = null;
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (2)
154var newDict = new Dictionary<string, object>(); 174var newDict = new Dictionary<string, JsonElement>();
System\Text\Json\Serialization\JsonUnionTypeStructuralClassifier.cs (11)
92Dictionary<JsonValueType, Type> shapeBasedCases = new(); 121Dictionary<byte[], List<PocoPropertyClassifierInfo>> pocoPropertyIndex = new(JsonHelpers.ByteArrayOrdinalComparer.Instance); 122Dictionary<string, List<PocoPropertyClassifierInfo>>? caseInsensitivePocoPropertyIndex = null; 148Dictionary<TKey, List<PocoPropertyClassifierInfo>> index, 167Dictionary<JsonValueType, Type> shapeBasedCases, 329private readonly Dictionary<byte[], List<PocoPropertyClassifierInfo>> _pocoPropertyIndex; 330private readonly Dictionary<string, List<PocoPropertyClassifierInfo>>? _caseInsensitivePocoPropertyIndex; 332private readonly Dictionary<JsonValueType, Type> _shapeBasedCases; 337Dictionary<JsonValueType, Type> shapeBasedCases, 339Dictionary<byte[], List<PocoPropertyClassifierInfo>> pocoPropertyIndex, 340Dictionary<string, List<PocoPropertyClassifierInfo>>? caseInsensitivePocoPropertyIndex,
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (3)
15private static Dictionary<Type, JsonConverter>? s_defaultSimpleConverters; 43private static Dictionary<Type, JsonConverter> GetDefaultSimpleConverters() 46var converters = new Dictionary<Type, JsonConverter>(NumberOfSimpleConverters);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
417var substitution = new Dictionary<Type, Type>(requiredParams.Length); 726private static bool PropertyIsOverriddenAndIgnored(PropertyInfo propertyInfo, Dictionary<string, JsonPropertyInfo>? ignoredMembers)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (2)
42private readonly Dictionary<Type, UnionCaseEntry> _entryByCaseType = new(); 293Dictionary<Type, MethodInfo>? methodsByCaseType = null;
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs (2)
46/// Creates serialization metadata for types assignable to <see cref="Dictionary{TKey, TValue}"/>. 58where TCollection : Dictionary<TKey, TValue>
System\Text\Json\Serialization\Metadata\JsonTypeInfo.Cache.cs (2)
55internal Dictionary<string, JsonPropertyInfo> PropertyIndex 64private Dictionary<string, JsonPropertyInfo>? _propertyIndex;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (9)
547internal Dictionary<JsonValueType, Type>? UnionValueTypeMap { get; set; } 1164var map = new Dictionary<JsonValueType, Type>(); 1190Dictionary<JsonValueType, Type> map, 1473private protected Dictionary<ParameterLookupKey, JsonParameterInfoValues>? _parameterInfoValuesIndex; 1490public Dictionary<string, (JsonPropertyInfo, int index)> AddedProperties = new(options.PropertyNameCaseInsensitive ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 1491public Dictionary<string, JsonPropertyInfo>? IgnoredProperties; 1513Dictionary<string, JsonPropertyInfo> propertyIndex = new(properties.Count, comparer); 1586Dictionary<ParameterLookupKey, JsonParameterInfoValues> parameterIndex = new(parameterInfoValues.Length); 1624Dictionary<ParameterLookupKey, JsonParameterInfo> parameterIndex = new(ParameterCount);
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
19private readonly Dictionary<object, DerivedJsonTypeInfo>? _discriminatorIdtoType;
System\Text\Json\Serialization\PreserveReferenceResolver.cs (2)
15private readonly Dictionary<string, object>? _referenceIdToObjectMap; 16private readonly Dictionary<object, string>? _objectToReferenceIdMap;
System.Text.Json.SourceGeneration (14)
Helpers\KnownTypeSymbols.cs (1)
40public INamedTypeSymbol? DictionaryOfTKeyTValueType => GetOrResolveType(typeof(Dictionary<,>), ref _DictionaryOfTKeyTValueType);
JsonSourceGenerator.Emitter.cs (3)
69private readonly Dictionary<TypeRef, TypeGenerationSpec> _typeIndex = new(); 76private readonly Dictionary<string, string> _propertyNames = new(); 1103Dictionary<string, List<GenericAccessorEntry>>? genericAccessorEntries = null;
JsonSourceGenerator.Parser.cs (9)
59private readonly Dictionary<ITypeSymbol, TypeGenerationSpec> _generatedTypes = new(SymbolEqualityComparer.Default); 1413Dictionary<ITypeParameterSymbol, ITypeSymbol>? successfulSubstitution = null; 1422var substitution = new Dictionary<ITypeParameterSymbol, ITypeSymbol>(requiredParams.Count, SymbolEqualityComparer.Default); 1641var acceptsNullByCase = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default); 1699var canonicalIndexByPatternKey = new Dictionary<ITypeSymbol, int>(SymbolEqualityComparer.Default); 1787Dictionary<JsonValueType, List<string>> valueTypeToTypes = new(); 2297bool PropertyIsOverriddenAndIgnored(IPropertySymbol property, Dictionary<string, ISymbol>? ignoredMembers) 2309public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 2310public Dictionary<string, ISymbol>? IgnoredMembers;
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
114var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System.Text.RegularExpressions (22)
System\Text\RegularExpressions\RegexCharClass.cs (1)
122private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
System\Text\RegularExpressions\RegexCompiler.cs (1)
1943var charToBranchIndex = new Dictionary<char, int>();
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
System\Text\RegularExpressions\RegexWriter.cs (1)
23private readonly Dictionary<string, int> _stringTable;
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
202var idmap = new Dictionary<BDD, long>
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (1)
17private readonly Dictionary<BDD, (uint, uint)[]> _rangeCache = new Dictionary<BDD, (uint, uint)[]>();
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (3)
30private readonly Dictionary<(int ordinal, BDD? one, BDD? zero), BDD> _bddCache = new(); 36private readonly Dictionary<(int op, BDD a, BDD? b), BDD> _operationCache = new(); // op is BooleanOperation; using int to reuse generic instantiation with _bddCache 360BDD ReplaceTrueImpl(BDD bdd, BDD leaf, Dictionary<BDD, BDD> cache)
System\Text\RegularExpressions\Symbolic\RegexNodeConverter.cs (1)
24private Dictionary<string, BDD>? _setBddCache;
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (6)
40private readonly Dictionary<TSet, SymbolicRegexNode<TSet>> _singletonCache = new(); 47internal readonly Dictionary<NodeCacheKey, SymbolicRegexNode<TSet>> _nodeCache = new(); 95internal readonly Dictionary<(SymbolicRegexNode<TSet>, TSet elem, uint context), SymbolicRegexNode<TSet>> _derivativeCache = new(); 103internal readonly Dictionary<(SymbolicRegexNode<TSet>, uint), SymbolicRegexNode<TSet>> _pruneLowerPriorityThanNullabilityCache = new(); 111internal readonly Dictionary<SymbolicRegexNode<TSet>, SymbolicRegexNode<TSet>> _stripEffectsCache = new(); 119internal readonly Dictionary<(SymbolicRegexNode<TSet>, SymbolicRegexNode<TSet>), bool> _subsumptionCache = new();
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (2)
29private readonly Dictionary<(SymbolicRegexNode<TSet> Node, uint PrevCharKind), MatchingState<TSet>> _stateCache = []; 81private readonly Dictionary<int, int> _nfaIdByCoreId = [];
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (3)
24Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> transitions = GatherTransitions(this); 144static Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> GatherTransitions(SymbolicRegexMatcher<TSet> matcher) 146Dictionary<(int Source, int Target), (TSet Rule, List<int> NfaTargets)> result = new();
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
41var catMap = new Dictionary<UnicodeCategory, Ranges>();
System.Text.RegularExpressions.Generator (27)
RegexGenerator.cs (5)
115Dictionary<string, string[]> requiredHelpers = new(); 193var emittedExpressions = new Dictionary<(string Pattern, RegexOptions Options, int? Timeout), RegexMethod>(); 199Dictionary<string, string[]> requiredHelpers = new(); 207else if (result is ValueTuple<RegexMethod, string, Dictionary<string, string[]>, CompilationData> regexImpl) 272else if (result is ValueTuple<RegexMethod, string, Dictionary<string, string[]>, CompilationData> regexImpl)
RegexGenerator.Emitter.cs (18)
232private static void EmitRegexDerivedTypeRunnerFactory(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 342private static void AddWordCharHelpersSupport(Dictionary<string, string[]> requiredHelpers) 371private static void AddIsWordCharHelper(Dictionary<string, string[]> requiredHelpers) 395private static void AddIsBoundaryWordCharHelper(Dictionary<string, string[]> requiredHelpers) 419private static void AddIsECMABoundaryWordCharHelper(Dictionary<string, string[]> requiredHelpers) 435private static void AddIsBoundaryHelper(Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 457private static void AddIsPreWordCharBoundaryHelper(Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 479private static void AddIsPostWordCharBoundaryHelper(Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 498private static void AddIsECMABoundaryHelper(Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 520private static string EmitSearchValuesOrLiteral(ReadOnlySpan<char> chars, Dictionary<string, string[]> requiredHelpers) 534private static string EmitSearchValues(ReadOnlySpan<char> charsSpan, Dictionary<string, string[]> requiredHelpers, string? fieldName = null) 631private static string EmitIndexOfAnyCustomHelper(string set, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 838private static void EmitTryFindNextPossibleStartingPosition(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 1588private static void EmitTryMatchAtCurrentPosition(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 1620Dictionary<string, int> usedNames = new(); 1633Dictionary<string, string[]> additionalLocalFunctions = new(); 5057Dictionary<string, string[]> requiredHelpers, 5132private static string MatchCharacterClass(string chExpr, string charClass, bool negate, HashSet<string> additionalDeclarations, Dictionary<string, string[]> requiredHelpers)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
122private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
UpgradeToGeneratedRegexCodeFixer.cs (2)
493var treeIndexMap = new Dictionary<SyntaxTree, int>(); 501var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
19private readonly Dictionary<TKey, Lazy<LimiterEntry>> _limiters;
System.Threading.Tasks.Dataflow (4)
Internal\QueuedMap.cs (1)
156private readonly Dictionary<TKey, int> _mapKeyToIndex;
Internal\ReorderingBuffer.cs (2)
44private readonly Dictionary<long, KeyValuePair<bool, TOutput>> _reorderingBuffer = new Dictionary<long, KeyValuePair<bool, TOutput>>(); 193public Dictionary<long, KeyValuePair<bool, TOutput>> ItemsBuffered { get { return _buffer._reorderingBuffer; } }
Internal\TargetRegistry.cs (1)
62private readonly Dictionary<ITargetBlock<T>, LinkedTargetInfo> _targetInformation;
System.Windows.Controls.Ribbon (19)
Microsoft\Windows\Controls\Generated\PropertyHelper.cs (6)
112var transferEnabledMap = GetPropertyTransferEnabledMapForObject(d); 118private static Dictionary<DependencyProperty, bool> GetPropertyTransferEnabledMapForObject(DependencyObject d) 120var propertyTransferEnabledForObject = _propertyTransferEnabledMap[d] as Dictionary<DependencyProperty, bool>; 133var propertyTransferEnabledForObject = _propertyTransferEnabledMap[d] as Dictionary<DependencyProperty, bool>;
Microsoft\Windows\Controls\KeyTipService.cs (5)
269Dictionary<DependencyObject, bool> processedElements = new Dictionary<DependencyObject, bool>(); 320private void ReevaluateScopes(DependencyObject scopedParent, Dictionary<DependencyObject, bool> processedElements) 331Dictionary<DependencyObject, DependencyObject> elementToScopeMap = null; 908Dictionary<XmlLanguage, CultureInfo> cultureCache = Current._cultureCache; 1743private Dictionary<XmlLanguage, CultureInfo> _cultureCache = null; // cache of culture infos.
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
465private Dictionary<int, int> _childIndexToStarLayoutIndexMap = new Dictionary<int, int>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
181Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders = new Dictionary<object, List<RibbonTabHeaderAndIndex>>(); 660Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders, 706Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders,
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
62private Dictionary<int, int> _tabIndexToDisplayIndexMap = new Dictionary<int, int>(); // A map from collection index to display index of tab items. 63private Dictionary<int, int> _tabDisplayIndexToIndexMap = new Dictionary<int, int>(); // A map from display index to collection index of tab items. 689internal Dictionary<int, int> TabIndexToDisplayIndexMap 700internal Dictionary<int, int> TabDisplayIndexToIndexMap
System.Windows.Forms (79)
System\Resources\ResXResourceReader.cs (2)
28private Dictionary<string, object>? _resData; 29private Dictionary<string, object>? _resMetadata;
System\Resources\ResXResourceReader.ReaderAliasResolver.cs (1)
12private readonly Dictionary<string, AssemblyName> _cachedAliases;
System\Resources\ResXResourceWriter.cs (1)
30private Dictionary<string, string?>? _cachedAliases;
System\Windows\Forms\Accessibility\AccessibleRoleControlTypeMap.cs (1)
13private static readonly Dictionary<AccessibleRole, UIA_CONTROLTYPE_ID> s_map = new()
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
34private Dictionary<Control, ExtenderProxy>? _extenderCache;
System\Windows\Forms\ActiveX\AxHost.cs (3)
127private Dictionary<string, PropertyDescriptor>? _properties; 128private Dictionary<string, PropertyInfo>? _propertyInfos; 164private Dictionary<PROPCAT, CategoryAttribute>? _objectDefinedCategoryNames;
System\Windows\Forms\Application.ComponentManager.cs (2)
31private Dictionary<nuint, ComponentHashtableEntry>? _oleComponents; 37private Dictionary<nuint, ComponentHashtableEntry> OleComponents => _oleComponents ??= [];
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (3)
53private static Dictionary<string, Type>? s_builtEnums; 54private static Dictionary<Guid, CachedProperties>? s_processedLibraries; 403Dictionary<string, PropertyInfo> propertyInfo = [];
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.cs (3)
25private readonly Dictionary<Control, ControlItem> _items = []; 26private readonly Dictionary<Control, ErrorWindow> _windows = []; 465Dictionary<Control, string> controlError = new(bindingsCount);
System\Windows\Forms\Components\HelpProvider.cs (4)
20private readonly Dictionary<Control, string?> _helpStrings = []; 21private readonly Dictionary<Control, bool> _showHelp = []; 23private readonly Dictionary<Control, string?> _keywords = []; 24private readonly Dictionary<Control, HelpNavigator> _navigators = [];
System\Windows\Forms\Control.cs (1)
299private Dictionary<int, Font>? _dpiFonts;
System\Windows\Forms\Control.Ime.cs (2)
954private static volatile Dictionary<ImeMode, ImeModeConversion>? s_imeModeConversionBits; 1061public static Dictionary<ImeMode, ImeModeConversion> ImeModeConversionBits
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (1)
16private static readonly Dictionary<HWND, ACNativeWindow?> s_acWindows = [];
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
355private readonly Dictionary<Type, TypeConverter> _converters;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
18private readonly Dictionary<ItemArray.Entry, ListBoxItemAccessibleObject> _itemAccessibleObjects;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
136private readonly Dictionary<int, ListViewItem> _listItemsTable = []; // elements are ListViewItem's
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (1)
14private readonly Dictionary<int, AccessibleObject> _listViewSubItemAccessibleObjects;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
48private Dictionary<string, GridEntry>? _viewTabProperties; 65private Dictionary<int, int>? _designerSelections;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MergedAttributeCollection.cs (1)
15private Dictionary<Type, Attribute>? _foundAttributes;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\SingleSelectRootGridEntry.cs (1)
250Dictionary<string, List<GridEntry>> categories = [];
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (9)
11private Dictionary<KnownColors, Color>? _professionalRGB; 31private Dictionary<KnownColors, Color> ColorTable 336private static void InitCommonColors(ref Dictionary<KnownColors, Color> rgbTable) 364private void InitSystemColors(ref Dictionary<KnownColors, Color> rgbTable) 668private static void InitOliveLunaColors(ref Dictionary<KnownColors, Color> rgbTable) 914private static void InitSilverLunaColors(ref Dictionary<KnownColors, Color> rgbTable) 1156private static void InitRoyaleColors(ref Dictionary<KnownColors, Color> rgbTable) 1370private void InitThemedColors(ref Dictionary<KnownColors, Color> rgbTable) 1438private static void InitBlueLunaColors(ref Dictionary<KnownColors, Color> rgbTable)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
51private Dictionary<Keys, ToolStripMenuItem>? _shortcuts; 1640internal Dictionary<Keys, ToolStripMenuItem> Shortcuts
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.StubSite.cs (1)
21private Dictionary<object, object>? _dictionary;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (5)
101Dictionary<string, ToolStrip> itemLocationHash = BuildItemOriginationHash(); 104Dictionary<object, List<SettingsStub>> toolStripPanelDestinationHash = []; 174private static void ApplyToolStripSettings(ToolStrip? toolStrip, SettingsStub settings, Dictionary<string, ToolStrip> itemLocationHash) 210private Dictionary<string, ToolStrip> BuildItemOriginationHash() 212Dictionary<string, ToolStrip> itemLocationHash = [];
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
129internal Dictionary<IntPtr, TreeNode> _nodesByHandle = [];
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
21private Dictionary<EventHandler, HtmlToClrEventProxy>? _attachedEventList;
System\Windows\Forms\Controls\WebBrowser\HtmlShimManager.cs (3)
17private Dictionary<HtmlWindow, HtmlWindow.HtmlWindowShim>? _htmlWindowShims; 18private Dictionary<HtmlElement, HtmlElement.HtmlElementShim>? _htmlElementShims; 19private Dictionary<HtmlDocument, HtmlDocument.HtmlDocumentShim>? _htmlDocumentShims;
System\Windows\Forms\DataBinding\BindingContext.cs (1)
16private readonly Dictionary<HashKey, WeakReference> _listManagers;
System\Windows\Forms\DataBinding\BindingSource.cs (1)
55private Dictionary<string, BindingSource>? _relatedBindingSources;
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
57private Dictionary<int, TaskDialogButton>? _boundStandardButtonsByID;
System\Windows\Forms\Form.cs (1)
169private Dictionary<int, Size>? _dpiFormSizes;
System\Windows\Forms\Input\KeysConverter.cs (11)
17private Dictionary<CultureInfo, List<string>>? _cultureToDisplayOrder; 18private Dictionary<CultureInfo, Dictionary<string, Keys>>? _cultureToKeyName; 38Dictionary<string, Keys> localizedNames = new(34); 99private Dictionary<CultureInfo, Dictionary<string, Keys>> CultureToKeyName 112private Dictionary<CultureInfo, List<string>> CultureToDisplayOrder 159Dictionary<string, Keys> keyNames = GetKeyNames(culture); 238Dictionary<string, Keys> keyNames = GetKeyNames(culture); 286Dictionary<string, Keys> keyNames = GetKeyNames(culture); 344private Dictionary<string, Keys> GetKeyNames(CultureInfo? culture)
System\Windows\Forms\Layout\TableLayout.cs (1)
1392Dictionary<IArrangedElement, LayoutInfo> oldLayoutInfo = [];
System\Windows\Forms\NativeWindow.cs (2)
38private static readonly Dictionary<HWND, GCHandle> s_windowHandles = []; 39private static readonly Dictionary<short, HWND> s_windowIds = [];
System\Windows\Forms\Nrbf\WinFormsNrbfSerializer.cs (1)
17private static Dictionary<TypeName, Type>? s_knownTypes;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
16private Dictionary<object, ControlInformation>? _controlsInfo;
System\Windows\Forms\PropertyStore.cs (1)
21private readonly Dictionary<int, Value> _values = [];
System\Windows\Forms\ToolTip\ToolTip.cs (2)
36private readonly Dictionary<Control, TipInfo> _tools = []; 50private readonly Dictionary<HWND, Control> _owners = [];
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
19private static Dictionary<string, ThemeHandle>? t_themeHandles; // per-thread cache of ThemeHandle objects.
System.Windows.Forms.Design (104)
System\ComponentModel\Design\ComponentDesigner.cs (2)
16private Dictionary<string, InheritedPropertyDescriptor>? _inheritedProps; 404Dictionary<string, InheritedPropertyDescriptor> props = [];
System\ComponentModel\Design\ComponentDesigner.ShadowPropertyCollection.cs (2)
14private Dictionary<string, object?>? _properties; 15private Dictionary<string, PropertyDescriptor>? _descriptors;
System\ComponentModel\Design\DesignerActionPanel.cs (8)
208private static void AddToCategories(StandardLineInfo lineInfo, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories) 213if (!categories.TryGetValue(categoryName, out Dictionary<DesignerActionList, List<LineInfo>>? category)) 546private void ProcessLists(DesignerActionListCollection? lists, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories) 814Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories = []; 824foreach (Dictionary<DesignerActionList, List<LineInfo>> category in categories.Values)
System\ComponentModel\Design\DesignerActionService.cs (1)
17private readonly Dictionary<IComponent, DesignerActionListCollection> _designerActionLists; // this is how we store 'em. Syntax: key = object, value = DesignerActionListCollection
System\ComponentModel\Design\DesignerActionUI.cs (1)
31private readonly Dictionary<object, DesignerActionGlyph> _componentToGlyph; // used for quick reference between components and our glyphs
System\ComponentModel\Design\DesignerHost.cs (1)
55private readonly Dictionary<IComponent, IDesigner> _designers; // designer -> component mapping
System\ComponentModel\Design\DesignerHost.Site.cs (1)
16private Dictionary<object, object>? _dictionary;
System\ComponentModel\Design\InheritanceService.cs (1)
16private Dictionary<IComponent, InheritanceAttribute> _inheritedComponents;
System\ComponentModel\Design\MenuCommandService.cs (2)
19private readonly Dictionary<Guid, List<MenuCommand>> _commandGroups; 256Dictionary<string, int> buildVerbs = new(verbCount, StringComparer.OrdinalIgnoreCase);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
22private readonly Dictionary<int, Font?> _fallbackFonts;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomComponentSerializationState.cs (2)
26public readonly Dictionary<string, object?>? Resources; 42Dictionary<string, object?>? resources,
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (10)
19private readonly Dictionary<string, OrderedCodeStatementCollection?> _statementsTable = []; 20private readonly Dictionary<string, List<CodeExpression>> _expressions = []; 21private Dictionary<string, CodeDomComponentSerializationState>? _objectState; // only used during deserialization 30private static void PopulateCompleteStatements(object? data, string name, CodeStatementCollection completeStatements, Dictionary<string, List<CodeExpression>> expressions) 68internal void Deserialize(IDesignerSerializationManager manager, Dictionary<string, CodeDomComponentSerializationState> objectState, List<string> objectNames, bool applyDefaults) 172private static void DeserializeDesignTimeProperties(IDesignerSerializationManager manager, string name, Dictionary<string, object?>? state) 460internal void SetupVariableReferences(IDesignerSerializationManager manager, IContainer container, Dictionary<object, ObjectData> objectData, IList shimObjectNames) 490internal void Serialize(IDesignerSerializationManager manager, Dictionary<object, ObjectData> objectData, Dictionary<string, CodeDomComponentSerializationState> objectState, IList shimObjectNames) 507Dictionary<string, object?>? resources = null;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (4)
40private readonly Dictionary<object, ObjectData> _objects; 45private Dictionary<string, CodeDomComponentSerializationState>? _objectState; 136Dictionary<string, CodeDomComponentSerializationState> state = new(_objects.Count); 172Dictionary<Assembly, AssemblyName> assemblies = new(_objects.Count);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
418Dictionary<string, int> docMemberHash = new(docDeclaration.Members.Count, caseInsensitive
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (3)
21private Dictionary<MemberCodeDomSerializer, ResourcePropertyMemberCodeDomSerializer>? _memberSerializers; 22private Dictionary<MemberCodeDomSerializer, ResourcePropertyMemberCodeDomSerializer>? _nopMemberSerializers; 178Dictionary<MemberCodeDomSerializer, ResourcePropertyMemberCodeDomSerializer> map = model is CodeDomLocalizationModel.None
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
2604internal static void FillStatementTable(IDesignerSerializationManager manager, IDictionary table, Dictionary<string, string>? names, CodeStatementCollection statements, string? className) 2787internal static Type? GetType(IDesignerSerializationManager manager, string name, Dictionary<string, string>? names)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
48Dictionary<object, int> originalValues = [];
System\ComponentModel\Design\Serialization\ComponentCache.cs (1)
13private Dictionary<object, Entry>? _cache;
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (3)
31private Dictionary<string, object>? _instancesByName; 32private Dictionary<object, string>? _namesByInstance; 33private Dictionary<Type, object>? _serializers;
System\ComponentModel\Design\Serialization\ExpressionTable.cs (1)
15private Dictionary<object, ExpressionInfo>? _expressions;
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (23)
30private readonly Dictionary<string, int> _nameTable; 31private Dictionary<CultureInfo, Dictionary<string, object?>?>? _resourceSets; 32private Dictionary<string, object?>? _metadata; 33private Dictionary<string, object?>? _mergedMetadata; 97private Dictionary<CultureInfo, Dictionary<string, object?>?> ResourceTable 221Dictionary<string, object?>? resourceSet = GetResourceSet(culture); 237private Dictionary<string, object?> CreateResourceSet(IResourceReader reader, CultureInfo culture) 239Dictionary<string, object?> result = []; 282Dictionary<string, object?>? metaData = GetMetadata(); 288Dictionary<string, object?>? resourceSet = GetResourceSet(CultureInfo.InvariantCulture); 309Dictionary<string, object?>? ht = GetResourceSet(culture); 316private Dictionary<string, object?>? GetMetadata() 373Dictionary<string, object?>? rs = GetResourceSet(culture); 388private Dictionary<string, object?>? GetResourceSet(CultureInfo culture) 391if (!ResourceTable.TryGetValue(culture, out Dictionary<string, object?>? resourceSet)) 469ResourceTable.TryGetValue(CultureInfo.InvariantCulture, out Dictionary<string, object?>? resourceSet); 545Dictionary<string, object?> invariant = GetResourceSet(CultureInfo.InvariantCulture)!; 546Dictionary<string, object?>? metadata; 619Dictionary<string, object?>? resourceSet = GetResourceSet(CultureInfo.InvariantCulture); 649Dictionary<string, object?>? resourceSet = GetResourceSet(CultureInfo.InvariantCulture); 687Dictionary<string, object?>? resourceSet = GetResourceSet(CultureInfo.InvariantCulture);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (3)
19private Dictionary<string, OrderedCodeStatementCollection>? _statementTable; 87Dictionary<string, string> names = new(count); 480Dictionary<string, CodeMethodMap> methodMap = [];
System\ComponentModel\Design\UndoEngine.cs (1)
27private Dictionary<IComponent, List<ReferencingComponent>>? _refToRemovedComponent;
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (2)
24private readonly Dictionary<string, IContainer>? _lastSelection; // the selection as it was before we gathered undo info 35Dictionary<string, IContainer> selectedNames = [];
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
19private readonly Dictionary<(Cursor cursor, int dpi), int> _cursorWidthCache = new();
System\Drawing\Design\ToolboxItem.cs (1)
555Dictionary<string, AssemblyName> parents = [];
System\Resources\Tools\StronglyTypedResourceBuilder.cs (6)
165Dictionary<string, ResourceData> resourceTypes = new(StringComparer.InvariantCultureIgnoreCase); 271Dictionary<string, ResourceData> resourceList = new(StringComparer.InvariantCultureIgnoreCase); 305Dictionary<string, ResourceData> resourceList, 322var cleanedResourceList = VerifyResourceNames(resourceList, codeProvider, errors, out Dictionary<string, string> reverseFixupTable); 860Dictionary<string, ResourceData> resourceList, 863out Dictionary<string, string> reverseFixupTable)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
59private readonly Dictionary<SnapLine, Rectangle> _snapLineToBounds = [];
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
22private readonly Dictionary<IComponent, ControlDesigner> _componentToDesigner;
System\Windows\Forms\Design\CommandSet.CommandSetItem.cs (1)
26private static readonly Dictionary<EventHandler, StatusState> s_commandStatusHash = []; // Dictionary of the command statuses we are tracking.
System\Windows\Forms\Design\ControlDesigner.cs (2)
71private Dictionary<IntPtr, bool>? _subclassedChildren; 191private Dictionary<IntPtr, bool> SubclassedChildWindows => _subclassedChildren ??= [];
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
35private readonly Dictionary<DataGridViewColumn, string?> _columnsNames = []; 1273Dictionary<string, PropertyDescriptor> hash = [];
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1956private readonly Dictionary<int, ImageList> _imageListCacheByDPI = [];
System\Windows\Forms\Design\DocumentDesigner.cs (1)
55private Dictionary<string, AxToolboxItem> _axTools;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
35private static Dictionary<IDataObject, IComponent>? s_currentDrags;
System\Windows\Forms\Design\SelectionUIService.cs (3)
45private Dictionary<object, SelectionUIItem> _selectionItems; 46private readonly Dictionary<object, ISelectionUIHandler> _selectionHandlers; // Component UI handlers 391Dictionary<object, SelectionUIItem> newSelection = new(selection.Count);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1385private Dictionary<string, bool> _extenderProperties; 1387private Dictionary<string, bool> ExtenderProperties
System\Windows\Forms\Design\TabOrder.cs (2)
25private Dictionary<Control, int>? _tabNext; 32private readonly Dictionary<Control, PropertyDescriptor> _tabProperties;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (2)
21private static Dictionary<Type, ToolboxItem> t_cachedToolboxItems; 32private static Dictionary<Type, Bitmap> t_cachedWinformsImages;
System.Windows.Forms.Primitives (3)
System\Windows\Forms\Animation\HighPrecisionTimer.cs (1)
35private static readonly Dictionary<long, Registration> s_registrations = [];
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (2)
24private readonly Dictionary<int, DispatchEntry> _members = []; 25private readonly Dictionary<string, int> _reverseLookup = new(StringComparer.OrdinalIgnoreCase);
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
203var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
45private Dictionary<int, ManipulatorState> manipulatorStates;
System.Xaml (100)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
89private static Dictionary<object, AssemblyName> _assemblies; // get key via GetKeyForAssembly
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
1653private Dictionary<string, object> _ignorables; 1654private Dictionary<string, ProcessContentSet> _processContents; 1655private Dictionary<string, PreserveItemSet> _preserveElements; 1656private Dictionary<string, PreserveItemSet> _preserveAttributes; 2008private Dictionary<string, string> _names; 2063private Dictionary<string, object> _knownNamespaces; 2064private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2065private Dictionary<string, object> _subsumingNamespaces; 2066private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2067private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\Xaml\AttachablePropertyServices.cs (7)
120private Lazy<ConditionalWeakTable<object, Dictionary<AttachableMemberIdentifier, object>>> instanceStorage = 121new Lazy<ConditionalWeakTable<object, Dictionary<AttachableMemberIdentifier, object>>>(); 127Dictionary<AttachableMemberIdentifier, object> instanceProperties; 142Dictionary<AttachableMemberIdentifier, object> instanceProperties; 162Dictionary<AttachableMemberIdentifier, object> instanceProperties; 180Dictionary<AttachableMemberIdentifier, object> instanceProperties; 216Dictionary<AttachableMemberIdentifier, object> instanceProperties;
System\Xaml\Context\NameFixupGraph.cs (4)
18private Dictionary<object, FrugalObjectList<NameFixupToken>> _dependenciesByParentObject; 21private Dictionary<object, NameFixupToken> _dependenciesByChildObject; 24private Dictionary<string, FrugalObjectList<NameFixupToken>> _dependenciesByName; 477private static void AddToMultiDict<TKey>(Dictionary<TKey, FrugalObjectList<NameFixupToken>> dict,
System\Xaml\Context\ObjectWriterContext.cs (2)
614public Dictionary<XamlMember, object> CurrentPreconstructionPropertyValues 624public Dictionary<XamlMember, object> ParentPreconstructionPropertyValues
System\Xaml\Context\ObjectWriterFrame.cs (2)
15private Dictionary<XamlMember, object> _preconstructionPropertyValues; 164public Dictionary<XamlMember, object> PreconstructionPropertyValues
System\Xaml\Context\XamlCommonFrame.cs (3)
12internal Dictionary<string, string> _namespaces; 14public Dictionary<string, string> Namespaces 54public void SetNamespaces(Dictionary<string, string> namespaces)
System\Xaml\Context\XamlParserContext.cs (2)
15private Dictionary<string, string> _prescopeNamespaces; 220internal Dictionary<string, SpecialBracketCharacters> CurrentEscapeCharacterMapForMarkupExtension
System\Xaml\Context\XamlParserFrame.cs (1)
37public Dictionary<string, SpecialBracketCharacters> EscapeCharacterMapForMarkupExtension { get; set; }
System\Xaml\InfosetObjects\XamlObjectWriter.cs (6)
34private Dictionary<object, List<PendingCollectionAdd>> _pendingCollectionAdds; 39private Dictionary<object, ObjectWriterContext> _pendingKeyConversionContexts; 213private Dictionary<object, List<PendingCollectionAdd>> PendingCollectionAdds 223private Dictionary<object, ObjectWriterContext> PendingKeyConversionContexts 1460return openGeneric == typeof(Dictionary<,>) || 1546Dictionary<XamlMember, object> propertyValues = ctx.CurrentPreconstructionPropertyValues;
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
200Dictionary<string, string> xmlnsDictionary = null;
System\Xaml\InfosetObjects\XamlXmlReaderSettings.cs (1)
15internal Dictionary<string, string> _xmlnsDictionary;
System\Xaml\MS\Impl\XmlNsInfo.cs (10)
71private Dictionary<string, string> _oldToNewNs; 72internal Dictionary<string, string> OldToNewNs 85private Dictionary<string, string> _prefixes; 86internal Dictionary<string, string> Prefixes 302private Dictionary<string, string> LoadOldToNewNs() 304Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 340private void LoadOldToNewNsHelper(Dictionary<string, string> result, string oldns, string newns, Assembly assembly) 355private Dictionary<string, string> LoadPrefixes() 357Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 392private void LoadPrefixesHelper(Dictionary<string, string> result, string xmlns, string prefix, Assembly assembly)
System\Xaml\Parser\NodeStreamSorter.cs (2)
23private Dictionary<string, string> _xmlnsDictionary; 89public NodeStreamSorter(XamlParserContext context, XamlPullParser parser, XamlXmlReaderSettings settings, Dictionary<string, string> xmlnsDictionary)
System\Xaml\Runtime\DynamicMethodRuntime.cs (10)
56private Dictionary<MethodInfo, PropertyGetDelegate> _propertyGetDelegates; 57private Dictionary<MethodInfo, PropertySetDelegate> _propertySetDelegates; 58private Dictionary<MethodBase, FactoryDelegate> _factoryDelegates; 59private Dictionary<Type, object> _converterInstances; 60private Dictionary<Type, DelegateCreator> _delegateCreators; 63private Dictionary<MethodInfo, PropertyGetDelegate> PropertyGetDelegates 76private Dictionary<MethodInfo, PropertySetDelegate> PropertySetDelegates 89private Dictionary<MethodBase, FactoryDelegate> FactoryDelegates 102private Dictionary<Type, object> ConverterInstances 115private Dictionary<Type, DelegateCreator> DelegateCreators
System\Xaml\Schema\Reflector.cs (2)
151Dictionary<char, char> bracketCharacterAttributeList = new Dictionary<char, char>(); 427Dictionary<char, char> bracketCharacterList = new Dictionary<char, char>();
System\Xaml\Schema\TypeReflector.cs (16)
259internal Dictionary<int, IList<XamlType>> ReflectedPositionalParameters { get; set; } 488Dictionary<string, PropertyInfo> result = new Dictionary<string, PropertyInfo>(propList.Length); 550Dictionary<string, EventInfo> result = new Dictionary<string, EventInfo>(eventList.Length); 735private void LookupAllStaticAccessors(out Dictionary<string, List<MethodInfo>> getters, 736out Dictionary<string, List<MethodInfo>> setters, out Dictionary<string, List<MethodInfo>> adders) 754private void LookupAllStaticAccessorsHelper(MethodInfo[] allMethods, Dictionary<string, List<MethodInfo>> getters, 755Dictionary<string, List<MethodInfo>> setters, Dictionary<string, List<MethodInfo>> adders, bool isUnderlyingTypePublic) 866private static void AddToMultiDict(Dictionary<string, List<MethodInfo>> dict, string name, MethodInfo value, bool isUnderlyingTypePublic) 991Dictionary<string, List<MethodInfo>> getters; 992Dictionary<string, List<MethodInfo>> setters; 993Dictionary<string, List<MethodInfo>> adders; 1002Dictionary<string, List<MethodInfo>> getters, Dictionary<string, List<MethodInfo>> setters) 1045List<XamlMember> result, Dictionary<string, List<MethodInfo>> adders)
System\Xaml\Schema\XamlTypeInvoker.cs (2)
17private Dictionary<XamlType, MethodInfo> _addMethods; 165Dictionary<XamlType, MethodInfo> addMethods = new Dictionary<XamlType, MethodInfo>();
System\Xaml\XamlObjectReader.cs (4)
2429private Dictionary<object, ObjectMarkupInfo> objectGraphTable; 2433private Dictionary<object, string> serviceProviderTable; 2486private Dictionary<string, string> namespaceToPrefixMap; 2487private Dictionary<string, string> prefixToNamespaceMap;
System\Xaml\XamlSchemaContext.cs (7)
489private ConcurrentDictionary<XamlType, Dictionary<string, SpecialBracketCharacters> > _masterBracketCharacterCache; 498private ConcurrentDictionary<XamlType, Dictionary<string, SpecialBracketCharacters> > MasterBracketCharacterCache 503Interlocked.CompareExchange(ref _masterBracketCharacterCache, CreateDictionary<XamlType, Dictionary<string, SpecialBracketCharacters>>(), null); 566internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(XamlType type) 570Dictionary<string, SpecialBracketCharacters> bracketCharacterCache = null; 587private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(XamlType type) 589Dictionary<string, SpecialBracketCharacters> map = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
System\Xaml\XamlType.cs (3)
1680private Dictionary<int, IList<XamlType>> LookupAllPositionalParameters() 1687Dictionary<int, IList<XamlType>> result = new Dictionary<int, IList<XamlType>>(); 1694Dictionary<int, IList<XamlType>> ctorDict = new Dictionary<int, IList<XamlType>>();
System\Xaml\XamlXmlWriter.cs (4)
42private Dictionary<string, string> prefixAssignmentHistory; 678private Dictionary<string, string> namespaceMap = new Dictionary<string, string>(); // namespace to prefix map 679private Dictionary<string, string> prefixMap = new Dictionary<string, string>(); // prefix to namespace map 2189private Dictionary<XamlMember, bool> dictionary = new Dictionary<XamlMember, bool>();
TypeScriptApiCompat (10)
ApiCompatResult.cs (1)
27var suppressionsByKey = suppressionLoadResult.Suppressions
AtsCompatibilityComparer.cs (2)
243var currentByName = currentCapability.Parameters.ToDictionary(static p => p.Name, StringComparer.Ordinal); 244var baselineByName = baselineCapability.Parameters.ToDictionary(static p => p.Name, StringComparer.Ordinal);
AtsSurface.cs (1)
44var surfaces = new Dictionary<string, AtsSurface>(StringComparer.Ordinal);
AtsSurfaceParser.cs (6)
11var handleTypes = new Dictionary<string, AtsHandleType>(StringComparer.Ordinal); 12var dtoTypes = new Dictionary<string, AtsDtoTypeBuilder>(StringComparer.Ordinal); 13var enumTypes = new Dictionary<string, AtsEnumType>(StringComparer.Ordinal); 14var exportedValues = new Dictionary<string, AtsExportedValue>(StringComparer.Ordinal); 15var capabilities = new Dictionary<string, AtsCapability>(StringComparer.Ordinal); 301public Dictionary<string, AtsDtoProperty> Properties { get; } = new(StringComparer.Ordinal);
UnitTests.Common (5)
ServiceInterfaces.cs (1)
68Dictionary<MessageHeaderInfo, string> GetIncomingMessageHeaders();
TestTypes.cs (4)
151private static Dictionary<ErrorCode, string> s_localizedErrorCodes; 227public static void Init(Dictionary<ErrorCode, string> localizedErrorCodes) 640private Dictionary<string, string> _headers; 669public Dictionary<string, string> Headers
vbc (5)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
470private static IntPtr CreateEnvironmentBlock(Dictionary<string, string> environmentVariables) 500internal static Dictionary<string, string>? GetServerEnvironmentVariables(System.Collections.IDictionary currentEnvironment, ICompilerServerLogger? logger = null) 510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 563var environmentVariables = GetServerEnvironmentVariables(Environment.GetEnvironmentVariables(), logger);
VBCSCompiler (6)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilerServerTelemetry.cs (1)
153var properties = new Dictionary<string, string>(8)
src\roslyn\src\Compilers\Shared\BuildProtocol.cs (1)
387var properties = new Dictionary<string, string>(count);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (4)
470private static IntPtr CreateEnvironmentBlock(Dictionary<string, string> environmentVariables) 500internal static Dictionary<string, string>? GetServerEnvironmentVariables(System.Collections.IDictionary currentEnvironment, ICompilerServerLogger? logger = null) 510var environmentVariables = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 563var environmentVariables = GetServerEnvironmentVariables(Environment.GetEnvironmentVariables(), logger);
vstest.console (37)
CommandLine\Executor.cs (1)
359var commandSeenCount = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Internal\ConsoleLogger.cs (1)
207public void Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)
Internal\MSBuildLogger.cs (1)
68public void Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)
Processors\AeDebuggerArgumentProcessor.cs (3)
76private Dictionary<string, string>? _collectDumpParameters; 203bool TryGetDirectoryInfoAndReportToOutput(Dictionary<string, string> collectDumpParameters, 234bool TryGetDirectoryInfo(Dictionary<string, string> collectDumpParameters, string directoryArgumentName, [NotNullWhen(true)] out DirectoryInfo? directoryInfo)
Processors\EnableBlameArgumentProcessor.cs (9)
135Dictionary<string, string>? collectDumpParameters = null; 187private void InitializeBlame(bool enableCrashDump, bool enableHangDump, bool monitorPostMortemDebugger, Dictionary<string, string>? collectDumpParameters) 218var dumpParameters = collectDumpParameters 234var hangDumpParameters = collectDumpParameters 259Dictionary<string, string> monitorPostMortemDebuggerParameters = new() 312private static void AddCollectDumpNode(Dictionary<string, string>? parameters, XmlDocument xmlDocument, XmlElement outernode) 323private static void AddCollectHangDumpNode(Dictionary<string, string> parameters, XmlDocument xmlDocument, XmlElement outernode) 334private static void AddMonitorPostMortemDebuggerNode(Dictionary<string, string> parameters, XmlDocument xmlDocument, XmlElement outernode) 342private static void AddNode(Dictionary<string, string>? parameters, XmlDocument xmlDocument, XmlElement outernode, string nodeName)
Processors\EnableDiagArgumentProcessor.cs (3)
137var diagParameters = ArgumentProcessorUtilities.GetArgumentParameters(diagParameterArgs, ArgumentProcessorUtilities.EqualNameValueSeparator, exceptionMessage); 169private static void InitializeDiagLogging(string diagFilePath, Dictionary<string, string> diagParameters) 190private static PlatformTraceLevel GetDiagTraceLevel(Dictionary<string, string> diagParameters)
Processors\EnableLoggerArgumentProcessor.cs (1)
137var loggerParameters = ArgumentProcessorUtilities.GetArgumentParameters(loggerParameterArgs, ArgumentProcessorUtilities.EqualNameValueSeparator, exceptionMessage);
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (6)
321var traitDictionary = GetTestPropertiesInTraitDictionary(testCase);// Dictionary with trait key to value mapping 339private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(TestCase testCase) 341var traitDictionary = new Dictionary<string, List<string>>(); 378private static Dictionary<string, List<string>> GetTraitsInTraitDictionary(Dictionary<string, List<string>> traitDictionary, TraitCollection traits) 417private static string[]? PropertyValueProvider(string propertyName, Dictionary<string, List<string>> traitDictionary)
Processors\Utilities\ArgumentProcessorFactory.cs (5)
29private Dictionary<string, IArgumentProcessor>? _commandToProcessorMap; 30private Dictionary<string, IArgumentProcessor>? _specialCommandToProcessorMap; 102internal Dictionary<string, IArgumentProcessor> CommandToProcessorMap 119internal Dictionary<string, IArgumentProcessor> SpecialCommandToProcessorMap 264var processorsMap = argumentProcessor.Metadata.Value.IsSpecialCommand
Processors\Utilities\ArgumentProcessorUtilities.cs (2)
43public static Dictionary<string, string> GetArgumentParameters(IEnumerable<string> parameterArgs, char[] nameValueSeparator, string exceptionMessage) 45var parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Processors\Utilities\LoggerUtilities.cs (1)
23public static void AddLoggerToRunSettings(string loggerIdentifier, Dictionary<string, string>? loggerParameters, IRunSettingsProvider runSettingsManager)
TestPlatformHelpers\TestRequestManager.cs (4)
230var sourceToSourceDetailMap = discoveryPayload.Sources.Select(source => new SourceDetail 348var sourceToSourceDetailMap = sources.Select(source => new SourceDetail 494out Dictionary<string, string> legacySettingsTelemetry)) 1150Dictionary<string, SourceDetail> sourceToSourceDetailMap)
vstest.console.arm64 (37)
src\vstest\src\vstest.console\CommandLine\Executor.cs (1)
359var commandSeenCount = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
207public void Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (1)
68public void Initialize(TestLoggerEvents events, Dictionary<string, string?> parameters)
src\vstest\src\vstest.console\Processors\AeDebuggerArgumentProcessor.cs (3)
76private Dictionary<string, string>? _collectDumpParameters; 203bool TryGetDirectoryInfoAndReportToOutput(Dictionary<string, string> collectDumpParameters, 234bool TryGetDirectoryInfo(Dictionary<string, string> collectDumpParameters, string directoryArgumentName, [NotNullWhen(true)] out DirectoryInfo? directoryInfo)
src\vstest\src\vstest.console\Processors\EnableBlameArgumentProcessor.cs (9)
135Dictionary<string, string>? collectDumpParameters = null; 187private void InitializeBlame(bool enableCrashDump, bool enableHangDump, bool monitorPostMortemDebugger, Dictionary<string, string>? collectDumpParameters) 218var dumpParameters = collectDumpParameters 234var hangDumpParameters = collectDumpParameters 259Dictionary<string, string> monitorPostMortemDebuggerParameters = new() 312private static void AddCollectDumpNode(Dictionary<string, string>? parameters, XmlDocument xmlDocument, XmlElement outernode) 323private static void AddCollectHangDumpNode(Dictionary<string, string> parameters, XmlDocument xmlDocument, XmlElement outernode) 334private static void AddMonitorPostMortemDebuggerNode(Dictionary<string, string> parameters, XmlDocument xmlDocument, XmlElement outernode) 342private static void AddNode(Dictionary<string, string>? parameters, XmlDocument xmlDocument, XmlElement outernode, string nodeName)
src\vstest\src\vstest.console\Processors\EnableDiagArgumentProcessor.cs (3)
137var diagParameters = ArgumentProcessorUtilities.GetArgumentParameters(diagParameterArgs, ArgumentProcessorUtilities.EqualNameValueSeparator, exceptionMessage); 169private static void InitializeDiagLogging(string diagFilePath, Dictionary<string, string> diagParameters) 190private static PlatformTraceLevel GetDiagTraceLevel(Dictionary<string, string> diagParameters)
src\vstest\src\vstest.console\Processors\EnableLoggerArgumentProcessor.cs (1)
137var loggerParameters = ArgumentProcessorUtilities.GetArgumentParameters(loggerParameterArgs, ArgumentProcessorUtilities.EqualNameValueSeparator, exceptionMessage);
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (6)
321var traitDictionary = GetTestPropertiesInTraitDictionary(testCase);// Dictionary with trait key to value mapping 339private static Dictionary<string, List<string>> GetTestPropertiesInTraitDictionary(TestCase testCase) 341var traitDictionary = new Dictionary<string, List<string>>(); 378private static Dictionary<string, List<string>> GetTraitsInTraitDictionary(Dictionary<string, List<string>> traitDictionary, TraitCollection traits) 417private static string[]? PropertyValueProvider(string propertyName, Dictionary<string, List<string>> traitDictionary)
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorFactory.cs (5)
29private Dictionary<string, IArgumentProcessor>? _commandToProcessorMap; 30private Dictionary<string, IArgumentProcessor>? _specialCommandToProcessorMap; 102internal Dictionary<string, IArgumentProcessor> CommandToProcessorMap 119internal Dictionary<string, IArgumentProcessor> SpecialCommandToProcessorMap 264var processorsMap = argumentProcessor.Metadata.Value.IsSpecialCommand
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorUtilities.cs (2)
43public static Dictionary<string, string> GetArgumentParameters(IEnumerable<string> parameterArgs, char[] nameValueSeparator, string exceptionMessage) 45var parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\vstest\src\vstest.console\Processors\Utilities\LoggerUtilities.cs (1)
23public static void AddLoggerToRunSettings(string loggerIdentifier, Dictionary<string, string>? loggerParameters, IRunSettingsProvider runSettingsManager)
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (4)
230var sourceToSourceDetailMap = discoveryPayload.Sources.Select(source => new SourceDetail 348var sourceToSourceDetailMap = sources.Select(source => new SourceDetail 494out Dictionary<string, string> legacySettingsTelemetry)) 1150Dictionary<string, SourceDetail> sourceToSourceDetailMap)
WindowsFormsIntegration (7)
System\Windows\Integration\Convert.cs (4)
25private static Dictionary<SWF.Cursor, SWI.Cursor> _toSystemWindowsInputCursorDictionary; 26private static Dictionary<SWF.Cursor, SWI.Cursor> ToSystemWindowsInputCursorDictionary 65private static Dictionary<SWI.Cursor, SWF.Cursor> _toSystemWindowsFormsCursorDictionary; 66private static Dictionary<SWI.Cursor, SWF.Cursor> ToSystemWindowsFormsCursorDictionary
System\Windows\Integration\PropertyMap.cs (3)
25private Dictionary<string, PropertyTranslator> _defaultTranslators; 26private Dictionary<String, PropertyTranslator> _wrappedDictionary; 216protected Dictionary<string, PropertyTranslator> DefaultTranslators