35 types derived from Dictionary
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>
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
825private class DerivedDictionary : Dictionary<string, int>
Microsoft.AspNetCore.Mvc.Core (1)
SerializableError.cs (1)
14public sealed class SerializableError : Dictionary<string, object>
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
284private class DerivedDictionary : Dictionary<string, int>
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
SimpleValueProvider.cs (1)
8public sealed class SimpleValueProvider : Dictionary<string, object>, IValueProvider
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
DictionaryModelBinderIntegrationTest.cs (2)
1508private class ClosedGenericDictionary : Dictionary<string, string> 1512private class ClosedGenericKeyDictionary<TValue> : Dictionary<string, TValue>
Microsoft.AspNetCore.Razor.Runtime.Test (4)
Runtime\TagHelpers\TestTagHelpers\TagHelperDescriptorFactoryTagHelpers.cs (4)
396public class DictionarySubclass : Dictionary<string, string> 400public class DictionaryWithoutParameterlessConstructor : Dictionary<string, string> 408public class DictionaryOfIntSubclass : Dictionary<int, string> 412public class GenericDictionarySubclass<TValue> : Dictionary<string, TValue>
Microsoft.AspNetCore.Routing (1)
DecisionTree\DecisionTreeBuilder.cs (1)
216private sealed class Criterion : Dictionary<DecisionCriterionValue, List<ItemDescriptor<TItem>>>
Microsoft.Build.Tasks.CodeAnalysis (1)
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\Dependencies\PooledObjects\PooledDictionary.cs (1)
13internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
13internal 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.PooledObjects.Package (1)
PooledDictionary.cs (1)
13internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.Workspaces (1)
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
13internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
13internal sealed partial class PooledDictionary<K, V> : Dictionary<K, V>
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Jar\JarAttributes.cs (1)
13public class JarAttributes : Dictionary<string, string>
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Languages\Language.cs (1)
15public class Templates : Dictionary<string, Template>
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
PresentationFramework (2)
MS\Internal\Data\CommitManager.cs (1)
157class Set<T> : Dictionary<T, object>, IEnumerable<T>
MS\Internal\Data\LiveShapingList.cs (1)
689class DPFromPath : Dictionary<String, DependencyProperty>
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\ServiceContainer.cs (1)
248private sealed class ServiceCollection<T> : Dictionary<Type, T>
System.Private.CoreLib (1)
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)
658internal 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)
1093internal class ThreadSafeDictionary<K,V> : Dictionary<K, V> where V : class
7619 instantiations of Dictionary
AnalyzerRunner (5)
AnalyzerRunnerHelper.cs (1)
14var properties = new Dictionary<string, string>
DiagnosticAnalyzerRunner.cs (3)
103var projectPerformance = new Dictionary<ProjectId, double>(); 104var documentPerformance = new Dictionary<DocumentId, DocumentAnalyzerPerformance>(); 414var telemetryInfoDictionary = new Dictionary<DiagnosticAnalyzer, AnalyzerTelemetryInfo>();
Program.cs (1)
147var diagnosticStatistics = new Dictionary<string, (string description, DiagnosticSeverity severity, int count)>();
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.Confluent.Kafka (1)
MetricsService.cs (1)
15private readonly Dictionary<string, Statistics> _state = new();
Aspire.Dashboard (22)
Authentication\FrontendCompositeAuthenticationHandler.cs (2)
27items: new Dictionary<string, string?>(), 28parameters: new Dictionary<string, object?> { [AspirePolicyEvaluator.SuppressChallengeKey] = true }));
Components\Controls\Chart\ChartBase.cs (4)
60private Dictionary<SpanKey, OtlpSpan> _currentCache = new Dictionary<SpanKey, OtlpSpan>(); 61private Dictionary<SpanKey, OtlpSpan> _newCache = new Dictionary<SpanKey, OtlpSpan>(); 124var traces = new Dictionary<int, ChartTrace> 511_newCache = new Dictionary<SpanKey, OtlpSpan>();
Components\Controls\Chart\PlotlyChart.razor.cs (1)
117var exemplarGroups = new Dictionary<ExemplarGroupKey, List<ChartExemplar>>();
Components\Layout\AspirePageContentLayout.razor.cs (1)
55public Dictionary<string, Func<Task>> DialogCloseListeners { get; } = new();
Components\Pages\TraceDetail.razor.cs (1)
294var traceCache = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal);
DashboardWebApplication.cs (1)
504var initialValues = new Dictionary<string, string?>();
Extensions\FluentUIExtensions.cs (2)
15var attributes = new Dictionary<string, object>(StringComparers.HtmlAttribute) 33var attributes = new Dictionary<string, object>(StringComparers.HtmlAttribute)
Otlp\Model\OtlpApplication.cs (2)
28private readonly Dictionary<string, OtlpMeter> _meters = new(); 29private readonly Dictionary<OtlpInstrumentKey, OtlpInstrument> _instruments = new();
Otlp\Model\OtlpInstrument.cs (1)
39public Dictionary<string, List<string?>> KnownAttributeValues { get; } = new();
Otlp\Storage\TelemetryRepository.cs (6)
36private readonly Dictionary<string, OtlpScope> _logScopes = new(); 40private readonly Dictionary<ApplicationKey, int> _applicationUnviewedErrorLogs = new(); 43private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 568var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute); 597var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute); 1090var allKnownAttributes = new Dictionary<string, List<string?>>();
ResourceService\DashboardClient.cs (1)
42private readonly Dictionary<string, ResourceViewModel> _resourceByName = new(StringComparers.ResourceName);
Aspire.Dashboard.Tests (15)
Integration\IntegrationTestHelpers.cs (1)
59var initialData = new Dictionary<string, string?>
Integration\MockOpenIdAuthority.cs (1)
95Claims = new Dictionary<string, object>
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
28Configuration = new Dictionary<string, string?>
Integration\StartupTests.cs (2)
156.AddInMemoryCollection(new Dictionary<string, string?> { [DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory.FullName }) 191.AddInMemoryCollection(new Dictionary<string, string?> { [DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory.FullName })
Model\ApplicationsSelectHelpersTests.cs (1)
110var apps = new Dictionary<string, OtlpApplication>();
ResourceOutgoingPeerResolverTests.cs (9)
26var resources = new Dictionary<string, ResourceViewModel> 39var resources = new Dictionary<string, ResourceViewModel> 52var resources = new Dictionary<string, ResourceViewModel> 65var resources = new Dictionary<string, ResourceViewModel> 79var resources = new Dictionary<string, ResourceViewModel> 93var resources = new Dictionary<string, ResourceViewModel> 107var resources = new Dictionary<string, ResourceViewModel> 166var resources = new Dictionary<string, ResourceViewModel> 180var resources = new Dictionary<string, ResourceViewModel>
Aspire.EndToEnd.Tests (4)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
34public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
tests\Shared\WorkloadTesting\BuildEnvironment.cs (2)
137EnvVars = new Dictionary<string, string>(); 250EnvVars = new Dictionary<string, string>(otherBuildEnvironment.EnvVars);
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Hosting (24)
ApplicationModel\DockerfileBuildAnnotation.cs (2)
11public Dictionary<string, object> BuildArguments { get; } = new(); 12public Dictionary<string, object> BuildSecrets { get; } = new();
ApplicationModel\ProjectResource.cs (1)
13internal Dictionary<EndpointAnnotation, string> KestrelEndpointAnnotationHosts { get; } = new();
ApplicationModel\ResourceExtensions.cs (2)
147var environmentVariables = new Dictionary<string, string>(); 151var config = new Dictionary<string, object>();
Dashboard\DashboardLifecycleHook.cs (1)
274var dashboardResourceTasks = new Dictionary<string, Task>();
Dcp\ApplicationExecutor.cs (3)
265var resourceLogState = new Dictionary<string, (bool logsAvailable, bool hasSubscribers)>(); 1328var config = new Dictionary<string, object>(); 1576var config = new Dictionary<string, object>();
Dcp\DcpHostService.cs (1)
281var loggerCache = new Dictionary<int, ILogger>();
Dcp\Model\ExecutableReplicaSet.cs (2)
28Annotations = new Dictionary<string, string>(); 38Annotations = new Dictionary<string, string>();
Dcp\Model\ModelCommon.cs (2)
42Metadata.Annotations = new Dictionary<string, string>(); 52Metadata.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)
10public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
DistributedApplicationBuilder.cs (6)
156_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 184_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 211new Dictionary<string, string?> 225new Dictionary<string, string?> 239new Dictionary<string, string?> 354var switchMappings = new Dictionary<string, string>()
Health\ResourceHealthCheckService.cs (1)
16private readonly Dictionary<string, ResourceEvent> _latestEvents = new();
Publishing\ManifestPublishingContext.cs (1)
485var config = new Dictionary<string, object>();
Aspire.Hosting.AWS (2)
CloudFormation\CloudFormationTemplateResource.cs (1)
27public IDictionary<string, string> CloudFormationParameters { get; } = new Dictionary<string, string>();
Provisioning\CloudFormationStackExecutionContext.cs (1)
14public IDictionary<string, string> CloudFormationParameters { get; set; } = new Dictionary<string, string>();
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (1)
494var resourceMap = new Dictionary<string, ArmResource>();
src\Aspire.Hosting\Dcp\Process\ProcessSpec.cs (1)
10public IDictionary<string, string> EnvironmentVariables { get; init; } = new Dictionary<string, string>();
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
254var endpointIndexMap = new Dictionary<string, int>();
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresFlexibleServerResource.cs (1)
17private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
61var topicDictionary = new Dictionary<string, ServiceBusTopic>();
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
13private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Azure.Tests (8)
AzureCosmosDBEmulatorFunctionalTests.cs (3)
93hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 163hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 209hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
AzureFunctionsTests.cs (5)
169Profiles = new Dictionary<string, LaunchProfile> 186Profiles = new Dictionary<string, LaunchProfile> 203Profiles = new Dictionary<string, LaunchProfile> 220Profiles = new Dictionary<string, LaunchProfile> 236Profiles = new Dictionary<string, LaunchProfile>
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubResource.cs (1)
17internal Dictionary<string, AzureWebPubSubHubResource> Hubs { get; } = new(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
368var onDemandResourcesPaths = new Dictionary<string, string>();
Aspire.Hosting.Dapr.Tests (2)
DaprTests.cs (2)
47var ports = new Dictionary<string, int> 146var ports = new Dictionary<string, int>
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
45private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Milvus.Tests (3)
MilvusFunctionalTests.cs (3)
43hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 128hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 182hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
81private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
43private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MySql.Tests (5)
MySqlFunctionalTests.cs (5)
91hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 164hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 234hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 340hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 410hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
43private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
87private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.PostgreSQL.Tests (4)
PostgresFunctionalTests.cs (4)
121hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 237hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 298hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 390hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Qdrant.Tests (3)
QdrantFunctionalTests.cs (3)
44hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 128hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 173hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Redis.Tests (7)
RedisFunctionalTests.cs (7)
101hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 207hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 243hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 293hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 328hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 377hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 407hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
71private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.SqlServer.Tests (2)
SqlServerFunctionalTests.cs (2)
183hb1.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 265hb2.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
159var additionalConfig = new Dictionary<string, string?>
Aspire.Hosting.Tests (27)
AddParameterTests.cs (5)
100appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 127appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 177appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 239appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 297appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dashboard\DashboardResourceTests.cs (7)
25builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 80builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 182builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 217builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 247builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 277builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 313builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ApplicationExecutorTests.cs (1)
1013builder.AddInMemoryCollection(new Dictionary<string, string?>
ExpressionResolverTests.cs (1)
97Expressions = new()
KestrelConfigTests.cs (1)
384Profiles = new()
ProjectResourceTests.cs (7)
666protected Dictionary<string, LaunchProfile>? Profiles { get; set; } = new(); 680Profiles = new() 688EnvironmentVariables = new() 701Profiles = new() 709EnvironmentVariables = new() 722Profiles = new() 730EnvironmentVariables = new()
Utils\EnvironmentVariableEvaluator.cs (2)
12var environmentVariables = new Dictionary<string, string>(); 16var config = new Dictionary<string, object>();
Utils\Grpc\TestServerCallContext.cs (2)
24_authContext = new AuthContext(string.Empty, new Dictionary<string, List<AuthProperty>>()); 25_userState = new Dictionary<object, object>();
Utils\TestDistributedApplicationBuilder.cs (1)
93cfg.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Valkey.Tests (3)
ValkeyFunctionalTests.cs (3)
34hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 95hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 146hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Playground.Tests (15)
AppHostTests.cs (14)
152resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } }, 160resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 165resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } }, 178resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }), 180resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 187resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } }, 193resourceEndpoints: new() { 202resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 207resourceEndpoints: new() { 221resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } }, 228resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }, 234resourceEndpoints: new() { { "api", ["/alive", "/health"] } }, 241resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 247resourceEndpoints: new() {
Infrastructure\DistributedApplicationExtensions.cs (1)
58var renamedVolumes = new Dictionary<string, string>();
Aspire.Workload.Tests (4)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
34public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
tests\Shared\WorkloadTesting\BuildEnvironment.cs (2)
137EnvVars = new Dictionary<string, string>(); 250EnvVars = new Dictionary<string, string>(otherBuildEnvironment.EnvVars);
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
AuthSamples.FunctionalTests (4)
CookiesTests.cs (1)
85await Client.SendAsync(form, new Dictionary<string, string>()
CustomPolicyProviderTests.cs (1)
127return await client.SendAsync(form, new Dictionary<string, string>()
DynamicSchemeTests.cs (1)
86return await Client.SendAsync(form, new Dictionary<string, string>()
PathSchemeSelectionTests.cs (1)
111await Client.SendAsync(form, new Dictionary<string, string>()
BasicTestApp (2)
InteropTest\JavaScriptInterop.cs (2)
392return new Dictionary<string, DotNetObjectReference<TestDTO>> 402return new Dictionary<string, DotNetObjectReference<TestDTO>>
BasicWebSite (2)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
45routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),
ValueProviders\CustomValueProviderFactory.cs (1)
19private static readonly Dictionary<string, Func<ValueProviderFactoryContext, StringValues>> Values = new()
blazor-devserver (1)
Server\Program.cs (1)
34var inMemoryConfiguration = new Dictionary<string, string?>
BuildActionTelemetryTable (1)
Program.cs (1)
36private static ImmutableDictionary<string, string> CodeActionDescriptionMap { get; } = new Dictionary<string, string>()
BuildBoss (2)
SolutionCheckerUtil.cs (2)
54var solutionMap = new Dictionary<ProjectKey, ProjectData>(); 82map = new Dictionary<ProjectKey, SolutionProjectData>();
BuildValidator (6)
LocalReferenceResolver.cs (4)
31private readonly Dictionary<Guid, AssemblyInfo> _mvidMap = new(); 37private readonly Dictionary<string, List<string>> _nameToLocationsMap = new(); 44private readonly Dictionary<string, List<AssemblyInfo>> _nameMap = new(FileNameEqualityComparer.StringComparer); 70var nameToLocationsMap = new Dictionary<string, List<string>>();
PEReaderExtensions.cs (1)
25_namedExportRva = new Dictionary<string, int>();
Program.cs (1)
182var map = new Dictionary<Guid, AssemblyInfo>();
CodeGenerator (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
11private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
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>();
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\TaskBase.cs (1)
52(BuildEngine as IBuildEngine5)?.LogTelemetry(eventName, new Dictionary<string, string> {
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.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-svcutil-lib (213)
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)
847Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count);
FrameworkFork\Microsoft.CodeDom\Configuration\CodeDomCompilationConfiguration.cs (1)
38compilerInfo._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-user-jwts (5)
Commands\CreateCommand.cs (1)
201var claims = new Dictionary<string, string>();
Helpers\DevJwtCliHelpers.cs (1)
195claims = new Dictionary<string, string>();
Helpers\Jwt.cs (1)
15public IDictionary<string, string> CustomClaims { get; set; } = new Dictionary<string, string>();
Helpers\JwtStore.cs (2)
27public IDictionary<string, Jwt> Jwts { get; private set; } = new Dictionary<string, Jwt>(); 36Jwts = JsonSerializer.Deserialize<IDictionary<string, Jwt>>(fileStream, JwtSerializerOptions.Default) ?? new Dictionary<string, Jwt>();
FilesWebSite (1)
Controllers\UploadFilesController.cs (1)
32var files = new Dictionary<string, List<string>>();
FormatterWebSite (2)
Controllers\JsonOutputFormatterController.cs (1)
39new Dictionary<string, string>
Controllers\XmlSerializerController.cs (1)
42return new Dictionary<string, string>
GenericHostWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
45routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),
HealthChecksSample (2)
GCInfoHealthCheck.cs (1)
58var data = new Dictionary<string, object>()
Program.cs (1)
12_scenarios = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase)
HelixTestRunner (1)
TestRunner.cs (1)
17EnvironmentVariables = new Dictionary<string, string>();
HtmlGenerationWebSite (1)
ProductsService.cs (1)
13private readonly Dictionary<string, Product[]> _products = new Dictionary<string, Product[]>
http2cat (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IdeCoreBenchmarks (4)
ClassificationBenchmarks.cs (1)
69_workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
FindReferencesBenchmarks.cs (1)
66_workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
IncrementalSourceGeneratorBenchmarks.cs (1)
74_workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
NavigateToBenchmarks.cs (1)
71_workspace = MSBuildWorkspace.Create(new Dictionary<string, string>
Identity.DefaultUI.WebSite (3)
Services\ContosoAuthenticationHandler.cs (1)
28uri = QueryHelpers.AddQueryString(uri, new Dictionary<string, string>()
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (2)
24private readonly Dictionary<string, TUser> _logins = new Dictionary<string, TUser>(); 26private readonly Dictionary<string, TUser> _users = new Dictionary<string, TUser>();
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IIS.LongTests (4)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
574var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
IIS.NewHandler.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
574var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IIS.NewShim.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
574var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IISExpress.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
574var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
illink (70)
ILLink.RoslynAnalyzer (17)
DataFlowAnalyzerContext.cs (1)
42 var enabledAnalyzers = new Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> ();
DynamicallyAccessedMembersAnalyzer.cs (1)
319 Dictionary<string, string?>? DAMArgument = new ();
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (3)
33 Dictionary = other.Dictionary == null ? null : new Dictionary<TKey, TValue> (other.Dictionary); 44 (Dictionary ??= new Dictionary<TKey, TValue> ())[key] = value; 99 var dict = new Dictionary<TKey, TValue> ();
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
62 branchInput = new (); 63 exceptionState = new (); 64 exceptionFinallyState = new (); 65 finallyInputState = new ();
TrimAnalysis\ArrayValue.cs (1)
29 IndexValues = new Dictionary<int, MultiValue> ();
TrimAnalysis\DiagnosticContext.cs (1)
63 Dictionary<string, string?>? DAMArgument = new Dictionary<string, string?> ();
TrimAnalysis\TrimAnalysisPatternStore.cs (6)
28 AssignmentPatterns = new Dictionary<IOperation, TrimAnalysisAssignmentPattern> (); 29 FieldAccessPatterns = new Dictionary<IOperation, TrimAnalysisFieldAccessPattern> (); 30 GenericInstantiationPatterns = new Dictionary<IOperation, TrimAnalysisGenericInstantiationPattern> (); 31 MethodCallPatterns = new Dictionary<IOperation, TrimAnalysisMethodCallPattern> (); 32 ReflectionAccessPatterns = new Dictionary<IOperation, TrimAnalysisReflectionAccessPattern> (); 33 FeatureCheckReturnValuePatterns = new Dictionary<IOperation, FeatureCheckReturnValuePattern> ();
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
94 readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string> (); 95 readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string> (); 96 readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers> (); 97 readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new (); 199 featureSwitchMembers.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);
InMemory.FunctionalTests (12)
BadHttpRequestTests.cs (1)
57public static Dictionary<string, (string header, string errorMessage)> BadHeaderData => new Dictionary<string, (string, string)>
EventSourceTests.cs (1)
492Payload = new Dictionary<string, string>(eventWrittenEventArgs.PayloadNames.Count);
Http2\Http2ConnectionTests.cs (1)
2417public readonly Dictionary<string, StringValues> Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Http2\Http2TestBase.cs (3)
129protected readonly Dictionary<string, string> _receivedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 130protected readonly Dictionary<string, string> _receivedTrailers = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 131protected readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
HttpsConnectionMiddlewareTests.cs (1)
73var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
659public readonly Dictionary<string, string> DecodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 844var settings = new Dictionary<long, long>();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
20new Dictionary<string, CertificateAuthority>(); 23= new Dictionary<string, CertificateAuthority>();
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (1)
17var delegates = new Dictionary<string, RequestDelegate>();
installer.tasks (1)
GenerateFileVersionProps.cs (1)
44var fileVersions = new Dictionary<string, FileVersionData>(StringComparer.OrdinalIgnoreCase);
Interop.FunctionalTests (1)
H2SpecTests.cs (1)
65var toSkip = new Dictionary<string, string>
KeyManagementSimulator (1)
Program.cs (1)
315private readonly Dictionary<Guid, DateTimeOffset> _missingSinceMap = new();
Microsoft.Analyzers.Extra (9)
CallAnalysis\Arrays.cs (1)
31private static readonly Dictionary<string, string[]> _collectionFactories = new()
CallAnalysis\CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
CallAnalysis\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);
CallAnalysis\StaticTime.cs (2)
16private static readonly Dictionary<string, string[]> _timeMethods = new() 29private static readonly Dictionary<string, string[]> _timeProperties = new()
Microsoft.Analyzers.Local (9)
ApiLifecycle\AssemblyAnalysis.cs (2)
17public Dictionary<ISymbol, List<string>> MissingConstraints { get; } = new(SymbolEqualityComparer.Default); 18public Dictionary<ISymbol, List<string>> MissingBaseTypes { get; } = new(SymbolEqualityComparer.Default);
ApiLifecycle\Json\JsonObject.cs (1)
26_properties = new Dictionary<string, JsonValue>();
CallAnalysis\CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
CallAnalysis\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.Arcade.Test.Common (1)
MockFileSystem.cs (1)
28Files = files ?? new();
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticProject.cs (1)
29private static readonly Dictionary<Assembly, Solution> _solutionCache = new Dictionary<Assembly, Solution>();
TestSource.cs (1)
15= new Dictionary<string, DiagnosticLocation>(StringComparer.Ordinal);
Microsoft.AspNetCore.Analyzers (1)
StartupAnalysisBuilder.cs (1)
22_analysesByType = new Dictionary<INamedTypeSymbol, List<object>>(SymbolEqualityComparer.Default);
Microsoft.AspNetCore.Analyzers.Test (1)
StartupFactsTest.cs (1)
101private static readonly Dictionary<string, string> TestSources = new Dictionary<string, string>
Microsoft.AspNetCore.Antiforgery.Test (4)
DefaultAntiforgeryTokenStoreTest.cs (4)
102httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 131httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 160httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 190httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>
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.Analyzers.Test (3)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (1)
172var propertyMapping = new Dictionary<string, string>(HeaderDictionaryIndexerAnalyzer.PropertyMapping);
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
56var tempSpans = new Dictionary<string, List<TextSpan>>();
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
160AttributeRouteModel.ReplaceTokens(token.ValueText, new Dictionary<string, string>
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.Core.Test (8)
AuthenticationPropertiesTests.cs (5)
14var items = new Dictionary<string, string?> 19var parameters = new Dictionary<string, object?> 49var items = new Dictionary<string, string?> 61var items = new Dictionary<string, string?> 65var parameters = new Dictionary<string, object?>
AuthenticationSchemeProviderTests.cs (1)
303: base(options, new Dictionary<string, AuthenticationScheme>(StringComparer.OrdinalIgnoreCase))
AuthenticationTicketTests.cs (2)
13var items = new Dictionary<string, string?> 18var parameters = new Dictionary<string, object?>
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
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.Test (13)
CookieTests.cs (1)
154public readonly Dictionary<string, AuthenticationTicket> Store = new Dictionary<string, AuthenticationTicket>();
GoogleTests.cs (3)
224return context.ChallengeAsync("Google", new AuthenticationProperties(new Dictionary<string, string>() 276return context.ChallengeAsync("Google", new GoogleChallengeProperties(new Dictionary<string, string> 1261var properties = new AuthenticationProperties(new Dictionary<string, string>()
OAuthTests.cs (1)
558var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectAuthenticateTests.cs (2)
59request.Content = new FormUrlEncodedContent(new Dictionary<string, string>()); 120var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectChallengeTests.cs (1)
970public IDictionary<string, string> PushedParameters { get; set; } = new Dictionary<string, string>();
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1334var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1332var properties = new AuthenticationProperties(new Dictionary<string, string>()
OpenIdConnect\TestSettings.cs (1)
140new Dictionary<string, string>() :
TwitterTests.cs (2)
400var content = new Dictionary<string, string>() 469var content = new Dictionary<string, string>()
Microsoft.AspNetCore.Authentication.Twitter (4)
TwitterHandler.cs (4)
185var authorizationParts = new SortedDictionary<string, string>(extraOAuthPairs ?? new Dictionary<string, string>()) 273var response = await ExecuteRequestAsync(TwitterDefaults.RequestTokenEndpoint, HttpMethod.Post, extraOAuthPairs: new Dictionary<string, string>() { { "oauth_callback", callBackUri } }); 298var formPost = new Dictionary<string, string> { { "oauth_verifier", verifier } }; 324var 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.BrowserTesting (6)
BrowserManager.cs (1)
19private readonly Dictionary<string, IBrowser> _launchBrowsers = new(StringComparer.Ordinal);
BrowserManagerConfiguration.cs (4)
29new Dictionary<string, BrowserOptions>(StringComparer.OrdinalIgnoreCase); 35new Dictionary<string, BrowserNewContextOptions>(StringComparer.OrdinalIgnoreCase); 233return mapper(new Dictionary<string, HashSet<string>>()); 235var argsMap = new Dictionary<string, HashSet<string>>();
ContextInformation.cs (1)
22public IDictionary<IPage, PageInformation> Pages { get; } = new Dictionary<IPage, PageInformation>();
Microsoft.AspNetCore.Components (33)
Infrastructure\ComponentStatePersistenceManager.cs (1)
18private readonly Dictionary<string, byte[]> _currentState = new(StringComparer.Ordinal);
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?>();
Reflection\ComponentProperties.cs (3)
118unmatched ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 139unmatched ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 275_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)
808var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance)); 880var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance));
RenderTree\Renderer.cs (5)
29private readonly Dictionary<int, ComponentState> _componentStateById = new Dictionary<int, ComponentState>(); 30private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>(); 32private readonly Dictionary<ulong, (int RenderedByComponentId, EventCallback Callback)> _eventBindings = new(); 33private readonly Dictionary<ulong, ulong> _eventHandlerIdReplacements = new Dictionary<ulong, ulong>(); 280_rootComponentsLatestParameters ??= new();
ResourceAssetCollection.cs (1)
29var mappings = new Dictionary<string, ResourceAsset>(StringComparer.OrdinalIgnoreCase);
Routing\QueryParameterValueSupplier.cs (1)
11private readonly Dictionary<ReadOnlyMemory<char>, StringSegmentAccumulator> _queryParameterValuesByName = new(QueryParameterNameComparer.Instance);
Routing\Router.cs (1)
23= new Dictionary<string, object>();
Routing\RouteTableFactory.cs (1)
88var templatesByHandler = new Dictionary<Type, string[]>();
Sections\SectionRegistry.cs (2)
8private readonly Dictionary<object, SectionOutlet> _subscribersByIdentifier = new(); 9private readonly Dictionary<object, List<SectionContent>> _providersByIdentifier = new();
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\Http\Routing\src\RouteConstraintBuilder.cs (2)
44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 54var constraints = new Dictionary<string, IRouteConstraint>(StringComparer.OrdinalIgnoreCase);
src\Http\Routing\src\RouteOptions.cs (1)
104var defaults = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
31Literals = new Dictionary<string, UrlMatchingNode>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.Authorization.Tests (16)
AuthorizeRouteViewTest.cs (13)
15private static readonly IReadOnlyDictionary<string, object> EmptyParametersDictionary = new Dictionary<string, object>(); 47var routeData = new RouteData(typeof(TestPageRequiringAuthorization), new Dictionary<string, object> 54_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 82var routeData = new RouteData(typeof(TestPageRequiringAuthorization), new Dictionary<string, object> 90_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 129_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 158_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 185_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 212var firstRenderTask = _renderer.RenderRootComponentAsync(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 256var firstRenderTask = _renderer.RenderRootComponentAsync(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 278_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 336_renderer.RenderRootComponent(_authorizeRouteViewComponentId, ParameterView.FromDictionary(new Dictionary<string, object> 344var render2Task = _renderer.Dispatcher.InvokeAsync(() => _authorizeRouteViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.Endpoints (19)
Assets\ImportMapDefinition.cs (1)
146importMap._scopes[key] = new Dictionary<string, string>(value);
Builder\ResourceCollectionUrlEndpoint.cs (2)
60new Dictionary<string, string> 66new Dictionary<string, string>
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\FormDataReader.cs (1)
127var result = new Dictionary<FormKey, HashSet<FormKey>>();
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)
17private readonly Dictionary<(int ComponentId, int FrameIndex), string> _namedSubmitEventsByLocation = new(); 18private 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);
Results\RazorComponentResult.cs (1)
19= new Dictionary<string, object?>().AsReadOnly();
Results\RazorComponentResultExecutor.cs (1)
56var hostParameters = ParameterView.FromDictionary(new Dictionary<string, object?>
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new();
src\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.Endpoints.Tests (155)
Assets\ImportMapDefinitionTest.cs (14)
28new Dictionary<string, string> 56new Dictionary<string, IReadOnlyDictionary<string, string>> 58["/scoped/"] = new Dictionary<string, string> 85new Dictionary<string, string> 90new Dictionary<string, string> 136new Dictionary<string, string> 140new Dictionary<string, IReadOnlyDictionary<string, string>> 142["/legacy/"] = new Dictionary<string, string> 147new Dictionary<string, string> 153new Dictionary<string, string> 158new Dictionary<string, IReadOnlyDictionary<string, string>> 160["/scoped/"] = new Dictionary<string, string> 164["/legacy/"] = new Dictionary<string, string> 169new Dictionary<string, string>
Binding\FormDataMapperTests.cs (72)
26var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 46var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 66var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 80var dictionary = new Dictionary<FormKey, StringValues>(collection.Count); 97var collection = new Dictionary<string, StringValues>() { }; 119var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") }; 136var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") }; 162var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 179var collection = new Dictionary<string, StringValues>() { }; 196var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 213var collection = new Dictionary<string, StringValues>() { ["value.Slug"] = new StringValues(value) }; 239var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") }; 257var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") }; 273var collection = new Dictionary<string, StringValues>() { }; 290var data = new Dictionary<string, StringValues>() { }; 306var data = new Dictionary<string, StringValues>() { ["[0]"] = "10" }; 322var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "11" }) }; 340var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) }; 358var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) }; 376var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a" }) }; 401var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a", "11" }) }; 431var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 462var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 508var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 569var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 609var collection = new Dictionary<string, StringValues>() 897var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 905var expected = new ConcurrentDictionary<int, int>(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }); 913var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }); 921var expected = ImmutableSortedDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }); 929var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }); 931var collection = new Dictionary<string, StringValues>() 960var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 984var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 985var collection = new Dictionary<string, StringValues>() 1014var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 1015var collection = new Dictionary<string, StringValues>() 1044var collection = new Dictionary<string, StringValues>() { }; 1066var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 1105var expected = new Dictionary<int, int> 1118var collection = new Dictionary<string, StringValues>() 1166var expected = new Dictionary<int, int> 1177var collection = new Dictionary<string, StringValues>() 1226var collection = new Dictionary<string, StringValues>() 1254var collection = new Dictionary<string, StringValues>() 1290var data = new Dictionary<string, StringValues>() 1315var data = new Dictionary<string, StringValues>() 1356var data = new Dictionary<string, StringValues>() 1415var data = new Dictionary<string, StringValues>() 1486var data = new Dictionary<string, StringValues>() 1541Children = new Dictionary<int, RecursiveDictionaryTree>() { [0] = expected } 1545var data = new Dictionary<string, StringValues>() 1590var data = new Dictionary<string, StringValues>() 1629var data = new Dictionary<string, StringValues>() 1660var data = new Dictionary<string, StringValues>() 1679var data = new Dictionary<string, StringValues>() 1698var data = new Dictionary<string, StringValues>() 1717var data = new Dictionary<string, StringValues>() 1739var data = new Dictionary<string, StringValues>() 1761var data = new Dictionary<string, StringValues>() 1787var data = new Dictionary<string, StringValues>() 1812var data = new Dictionary<string, StringValues>() 1832var data = new Dictionary<string, StringValues>() 1852var data = new Dictionary<string, StringValues>() { }; 1875var data = new Dictionary<string, StringValues>() { ["value"] = "20" }; 1906var data = new Dictionary<string, StringValues>(); 1934var data = new Dictionary<string, StringValues>(); 1967var data = new Dictionary<string, StringValues>(); 1989var data = new Dictionary<string, StringValues>(); 2012var data = new Dictionary<string, StringValues>(); 2045var data = new Dictionary<string, StringValues>(); 2080var data = new Dictionary<string, StringValues>()
Builder\TestFileProvider\TestFileProvider.cs (3)
11new Dictionary<string, IFileInfo>(StringComparer.Ordinal); 13new Dictionary<string, IDirectoryContents>(); 16new Dictionary<string, TestFileChangeToken>(StringComparer.Ordinal);
EndpointHtmlRendererTest.cs (20)
120ParameterView.FromDictionary(new Dictionary<string, object> 157ParameterView.FromDictionary(new Dictionary<string, object> 192ParameterView.FromDictionary(new Dictionary<string, object> 241ParameterView.FromDictionary(new Dictionary<string, object> 379var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 437var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 454var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 493var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } }); 532var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 583var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", null } }); 632var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "Name", "SomeName" } }); 649var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } }); 679var parameters = ParameterView.FromDictionary(new Dictionary<string, object> { { "state", state } }); 701ParameterView.FromDictionary(new Dictionary<string, object> 721ParameterView.FromDictionary(new Dictionary<string, object> 741ParameterView.FromDictionary(new Dictionary<string, object> 773ParameterView.FromDictionary(new Dictionary<string, object> 801ParameterView.FromDictionary(new Dictionary<string, object> 862ParameterView.FromDictionary(new Dictionary<string, object> 1462ParameterView.FromDictionary(new Dictionary<string, object>
HttpContextFormValueMapperTest.cs (1)
38formData.SetFormData(incomingFormName, new Dictionary<string, StringValues>(), new FormFileCollection());
ImportMapTest.cs (20)
39new Dictionary<string, string> 44new Dictionary<string, IReadOnlyDictionary<string, string>> 46["development"] = new Dictionary<string, string> 52new Dictionary<string, string> 59importMap.AdditionalAttributes = new Dictionary<string, object> { ["nonce"] = "random" }.AsReadOnly(); 85new Dictionary<string, string> 90new Dictionary<string, IReadOnlyDictionary<string, string>> 92["development"] = new Dictionary<string, string> 98new Dictionary<string, string> 130new Dictionary<string, string> 135new Dictionary<string, IReadOnlyDictionary<string, string>> 137["development"] = new Dictionary<string, string> 143new Dictionary<string, string> 150new Dictionary<string, string> 169await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 195new Dictionary<string, string> 200new Dictionary<string, IReadOnlyDictionary<string, string>> 202["development"] = new Dictionary<string, string> 208new Dictionary<string, string> 225await component.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
RazorComponentResultTest.cs (2)
35var paramsDict = new Dictionary<string, object> { { "First", 123 } }; 424var parameters = new Dictionary<string, object>
RazorComponentsServiceCollectionExtensionsTest.cs (1)
89return new Dictionary<Type, Type[]>()
WebRootComponentParametersTest.cs (22)
14var parameters1 = CreateParameters(new() { ["First"] = 123 }); 15var parameters2 = CreateParameters(new() { ["First"] = 123, ["Second"] = "abc" }); 28var parameters1 = CreateParameters(new() { ["First"] = 123 }); 29var parameters2 = CreateParameters(new() { ["Second"] = 123 }); 42var parameters1 = CreateParameters(new() { ["First"] = 123 }); 43var parameters2 = CreateParameters(new() { ["First"] = 456 }); 56var parameters1 = CreateParameters(new() { ["First"] = 123 }); 57var parameters2 = CreateParameters(new() { ["First"] = 123L }); 78var parameters1 = CreateParameters(new() { ["First"] = value }); 79var parameters2 = CreateParameters(new() { ["First"] = value }); 92var parameters1 = CreateParameters(new()); 93var parameters2 = CreateParameters(new()); 106var parameters1 = CreateParametersWithNonJsonElements(new() { ["First"] = 123 }); 107var parameters2 = CreateParameters(new() { ["First"] = 456 }); 120var parameters1 = CreateParameters(new() { ["First"] = 123 }); 121var parameters2 = CreateParametersWithNonJsonElements(new() { ["First"] = 456 }); 134var parameters1 = CreateParametersWithNonJsonElements(new() { ["First"] = 123 }); 135var parameters2 = CreateParametersWithNonJsonElements(new() { ["First"] = 123 }); 148var parameters1 = CreateParametersWithNonJsonElements(new() { ["First"] = 123 }); 149var parameters2 = CreateParametersWithNonJsonElements(new() { ["First"] = 456 }); 162var parameters1 = CreateParametersWithNonJsonElements(new() { ["First"] = null }); 163var parameters2 = CreateParametersWithNonJsonElements(new() { ["First"] = null });
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.Forms.Tests (3)
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.Performance (2)
RouteTableFactoryBenchmarks.cs (1)
22_templatesByHandler = new Dictionary<Type, string[]>
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Components.QuickGrid (1)
Infrastructure\EventCallbackSubscribable.cs (1)
14private readonly Dictionary<EventCallbackSubscriber<T>, EventCallback<T>> _callbacks = new();
Microsoft.AspNetCore.Components.Server (6)
Circuits\ComponentParameterDeserializer.cs (1)
25var parametersDictionary = new Dictionary<string, object>();
Circuits\RemoteJSRuntime.cs (1)
27internal readonly Dictionary<long, RemoteJSDataStream> RemoteJSDataStreamInstances = new();
src\Components\Shared\src\RenderBatchWriter.cs (1)
43_deduplicatedStringIndices = new Dictionary<string, int>();
src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new();
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
246var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.Components.Server.Tests (27)
CircuitDisconnectMiddlewareTest.cs (4)
117await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = "1234" }).CopyToAsync(memory); 150await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 187await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret, }).CopyToAsync(memory); 225await new FormUrlEncodedContent(new Dictionary<string, string> { ["circuitId"] = circuitId.Secret }).CopyToAsync(memory);
Circuits\CircuitHostTest.cs (8)
422Dictionary<string, object> parameters = new() 448Dictionary<string, object> parameters = new() 473Dictionary<string, object> parameters = new() 499await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>() 506Dictionary<string, object> parameters = new() 538await AddComponentAsync<DynamicallyAddedComponent>(circuitHost, 1, new Dictionary<string, object>() 543Dictionary<string, object> parameters = new() 573Dictionary<string, object> parameters = new()
Circuits\RemoteRendererTest.cs (6)
218ParameterView.FromDictionary(new Dictionary<string, object> 281ParameterView.FromDictionary(new Dictionary<string, object> 344ParameterView.FromDictionary(new Dictionary<string, object> 401ParameterView.FromDictionary(new Dictionary<string, object> 555var parameters = new Dictionary<string, object> { ["Name"] = "value" }; 594var parameters = new Dictionary<string, object> { ["Name"] = "value" };
Circuits\ServerComponentDeserializerTest.cs (7)
44(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = "Value" }))); 63(typeof(TestComponent), new Dictionary<string, object> { ["Parameter"] = null }))); 103(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }), 104(typeof(TestComponent), new Dictionary<string, object> { ["Second"] = null }))); 133(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }), 323(typeof(TestComponent), new Dictionary<string, object> { ["First"] = "Value" }), 402Marker = CreateMarker(typeof(DynamicallyAddedComponent), new()
src\SignalR\common\SignalR.Common\test\Internal\Protocol\HubMessageHelpers.cs (1)
18hubMessage.Headers = new Dictionary<string, string>();
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (1)
26protected static readonly IDictionary<string, string> TestHeaders = new Dictionary<string, string>
Microsoft.AspNetCore.Components.Tests (136)
CascadingParameterStateTest.cs (1)
429var supplierParams = new Dictionary<string, object>
DynamicComponentTest.cs (6)
16var parameters = new Dictionary<string, object> 50var parameters = ParameterView.FromDictionary(new Dictionary<string, object> 70var childParameters = new Dictionary<string, object> 78var parameters = ParameterView.FromDictionary(new Dictionary<string, object> 108var childParameters = new Dictionary<string, object> 112var parameters = ParameterView.FromDictionary(new Dictionary<string, object>
LayoutViewTest.cs (8)
40var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 61var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 87var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 119var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 160var setParametersTask = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 170_renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 204var setParametersTask1 = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 214var setParametersTask2 = _renderer.Dispatcher.InvokeAsync(() => _layoutViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
Lifetime\ComponentApplicationStateTest.cs (14)
14var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>()); 15var existingState = new Dictionary<string, byte[]> 32var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>()); 33var existingState = new Dictionary<string, byte[]> 48var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>()); 49var existingState = new Dictionary<string, byte[]> 67var currentState = new Dictionary<string, byte[]>(); 86var currentState = new Dictionary<string, byte[]>(); 103var currentState = new Dictionary<string, byte[]>(); 122var currentState = new Dictionary<string, byte[]>(); 142var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized }; 143var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>()); 160var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized }; 161var applicationState = new PersistentComponentState(new Dictionary<string, byte[]>(), new List<PersistComponentStateRegistration>());
Lifetime\ComponentStatePersistenceManagerTest.cs (9)
23var state = new Dictionary<string, byte[]> 43var state = new Dictionary<string, byte[]> 60var state = new Dictionary<string, byte[]>(); 82var state = new Dictionary<string, byte[]>(); 107var state = new Dictionary<string, byte[]>(); 127var state = new Dictionary<string, byte[]>(); 155var state = new Dictionary<string, byte[]>(); 189var state = new Dictionary<string, byte[]>(); 215var state = new Dictionary<string, byte[]>();
NavigationManagerTest.cs (4)
156var actualUri = navigationManager.GetUriWithQueryParameters(new Dictionary<string, object> 174var actualUri = navigationManager.GetUriWithQueryParameters(new Dictionary<string, object> 188var unsupportedParameterValues = new Dictionary<string, object> 203var values = new Dictionary<string, object>
ParameterViewTest.Assignment.cs (3)
324var value = new Dictionary<string, object>(); 375{ nameof(HasCaptureUnmatchedValuesProperty.CaptureUnmatchedValues), new Dictionary<string, object>() }, 401{ nameof(HasCaptureUnmatchedValuesProperty.CaptureUnmatchedValues), new Dictionary<string, object>() },
ParameterViewTest.cs (2)
242var dictionary = new Dictionary<string, object>(); 255var dictionary = new Dictionary<string, object>
RendererTest.cs (49)
238await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 240[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 257[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 282renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 298renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 397await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 399[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 416[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 441await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 443[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 460[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 485await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 487[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 518[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 2632ChildParameters = new Dictionary<string, object> 2759ChildParameters = new Dictionary<string, object> 3552var task = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3554[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3565[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3585var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3587[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3598[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3618var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3620[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3631[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3652var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3654[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3669[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3749var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3751[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3779[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3807var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3809[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3835[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3862var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3864[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3890[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 3916var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 3918[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 3946[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4046var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4048[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 4059[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4080var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4082[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 4093[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>> 4117await renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object> 4119[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>> 4135[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
Rendering\RenderTreeBuilderTest.cs (13)
285builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 292builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 331builder.AddMultipleAttributes(1, new Dictionary<string, object>() 354var attributes = new Dictionary<string, object> 368var attributes = new Dictionary<string, object> 1842builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1867builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1892builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1915builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1939builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1962builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1993builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 2002builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
RouteViewTest.cs (8)
48var routeParams = new Dictionary<string, object> 55_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 99var routeParams = new Dictionary<string, object>(); 103_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 123var routeParams = new Dictionary<string, object>(); 127_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object> 146var routeParams = new Dictionary<string, object>(); 150_renderer.Dispatcher.InvokeAsync(() => _routeViewComponent.SetParametersAsync(ParameterView.FromDictionary(new Dictionary<string, object>
Routing\RouterTest.cs (4)
186var parameters = new Dictionary<string, object> 206var parameters = new Dictionary<string, object> 232var parameters = new Dictionary<string, object> 253var parameters = new Dictionary<string, object>
Routing\RouteTableFactoryTests.cs (9)
335var expectedParameters = new Dictionary<string, object> 356var expectedParameters = new Dictionary<string, object> 403Assert.Equal(new Dictionary<string, object> 676Assert.Equal(new Dictionary<string, object> 706Assert.Equal(new Dictionary<string, object> 732Assert.Equal(new Dictionary<string, object> 757Assert.Equal(new Dictionary<string, object> 952Assert.Equal(context.Parameters, new Dictionary<string, object> 1111Assert.Equal(new Dictionary<string, object>
Routing\TemplateParserTests.cs (3)
274new Dictionary<string, object>(), 275new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(), 276new Dictionary<string, object>(),
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.Web (9)
Forms\InputBase.cs (2)
345result = new Dictionary<string, object>(); 354result = 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.Web.Tests (20)
Forms\EditFormTest.cs (1)
185AdditionalFormAttributes = new Dictionary<string, object>
Forms\InputBaseTest.cs (2)
240AdditionalAttributes = new Dictionary<string, object>() 471rootComponent.AdditionalAttributes = new Dictionary<string, object>();
Forms\InputDateTest.cs (1)
17AdditionalAttributes = new Dictionary<string, object>
Forms\InputNumberTest.cs (2)
32AdditionalAttributes = new Dictionary<string, object> 76AdditionalAttributes = new Dictionary<string, object>
Forms\InputSelectTest.cs (1)
175AdditionalAttributes = new Dictionary<string, object>
HtmlRendering\HtmlRendererTest.cs (10)
177rtb.AddMultipleAttributes(3, new Dictionary<string, object>() { { "Class", "test2" }, }); 666ParameterView.FromDictionary(new Dictionary<string, object> 763var result = await htmlRenderer.RenderComponentAsync<AsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 789var result = await htmlRenderer.RenderComponentAsync<NestedAsyncComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 811var first = await htmlRenderer.RenderComponentAsync<SectionOutlet>(ParameterView.FromDictionary(new Dictionary<string, object> 819var second = await htmlRenderer.RenderComponentAsync<SectionContent>(ParameterView.FromDictionary(new Dictionary<string, object> 896await htmlRenderer.RenderComponentAsync<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 917htmlRenderer.RenderComponentAsync<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 937htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object> 957var content = htmlRenderer.BeginRenderingComponent<ErrorThrowingComponent>(ParameterView.FromDictionary(new Dictionary<string, object>
src\Components\Shared\test\CapturedBatch.cs (1)
11= new Dictionary<int, List<RenderTreeDiff>>();
src\Components\Shared\test\TestServiceProvider.cs (2)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 20_keyedFactories ??= new();
Microsoft.AspNetCore.Components.WebAssembly (5)
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)
26var parametersDictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\Shared\Components\PrerenderComponentApplicationStore.cs (1)
19ExistingState = new();
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.WebAssembly.Tests (10)
Hosting\WebAssemblyHostConfigurationTest.cs (10)
15var initialData = new Dictionary<string, string>() { 41var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 65var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 83var initialData = new Dictionary<string, string>() { 110var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 127var dic1 = new Dictionary<string, string>() 134var dic2 = new Dictionary<string, string>() 141var dic3 = new Dictionary<string, string>() 186var dic1 = new Dictionary<string, string>() 190var dic2 = new Dictionary<string, string>()
Microsoft.AspNetCore.Components.WebView (5)
FileExtensionContentTypeProvider.cs (1)
28: this(new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
src\Components\Shared\src\RenderBatchWriter.cs (1)
43_deduplicatedStringIndices = new Dictionary<string, int>();
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer);
StaticContentProvider.cs (1)
109=> new Dictionary<string, string>()
WebViewManager.cs (1)
29private readonly Dictionary<string, RootComponent> _rootComponentsBySelector = new();
Microsoft.AspNetCore.Components.WebView.Test (5)
Infrastructure\ElementNode.cs (3)
15_attributes = new Dictionary<string, object>(StringComparer.Ordinal); 16_properties = new Dictionary<string, object>(StringComparer.Ordinal); 17_events = new Dictionary<string, ElementEventDescriptor>(StringComparer.Ordinal);
Infrastructure\TestDocument.cs (1)
14private readonly Dictionary<long, ComponentNode> _componentsById = new();
StaticContentProviderTests.cs (1)
19new Dictionary<string, string>
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (3)
ConcurrencyLimiterEventSourceTests.cs (2)
61new Dictionary<string, string> 102new Dictionary<string, string>
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
14private readonly Dictionary<string, Channel<double>> _counters = new Dictionary<string, Channel<double>>();
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.Tests (11)
Internal\KeyManagementOptionsSetupTest.cs (1)
47var registryEntries = new Dictionary<string, object>()
RegistryPolicyResolverTests.cs (10)
21var registryEntries = new Dictionary<string, object>(); 37var registryEntries = new Dictionary<string, object>() 58var registryEntries = new Dictionary<string, object>() 75var registryEntries = new Dictionary<string, object>() 92var registryEntries = new Dictionary<string, object>() 116var registryEntries = new Dictionary<string, object>() 152var registryEntries = new Dictionary<string, object>() 174var registryEntries = new Dictionary<string, object>() 204var registryEntries = new Dictionary<string, object>() 226var registryEntries = new Dictionary<string, object>()
Microsoft.AspNetCore.Diagnostics (1)
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.HealthChecks.Tests (3)
HealthCheckMiddlewareTests.cs (3)
924ResultStatusCodes = new Dictionary<HealthStatus, int> 937new HealthCheckOptions { ResultStatusCodes = new Dictionary<HealthStatus, int>() } 950ResultStatusCodes = new Dictionary<HealthStatus, int>
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Logging\IncomingHttpRouteUtility.cs (1)
36var parametersToRedact = new Dictionary<string, DataClassification>();
Logging\LoggingRedactionOptions.cs (3)
59public IDictionary<string, DataClassification> RouteParameterDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase); 70public IDictionary<string, DataClassification> RequestHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase); 81public IDictionary<string, DataClassification> ResponseHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase);
Logging\RequestHeadersLogEnricherOptions.cs (1)
27public IDictionary<string, DataClassification> HeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase);
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)
61o.RouteParameterDataClasses = new Dictionary<string, DataClassification> 66o.RequestHeadersDataClasses = new Dictionary<string, DataClassification> 71o.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)
162var map = new Dictionary<string, FieldDescriptor>();
Internal\JsonTranscodingServerCallContext.cs (1)
21private static readonly AuthContext UnauthenticatedContext = new AuthContext(null, new Dictionary<string, List<AuthProperty>>());
src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
32var properties = new Dictionary<string, List<AuthProperty>>(StringComparer.Ordinal);
src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
111var resolvedCompressionProviders = new Dictionary<string, ICompressionProvider>(StringComparer.Ordinal);
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.Grpc.JsonTranscoding.Tests (32)
Infrastructure\TestHelpers.cs (1)
90routeParameterDescriptors ?? new Dictionary<string, RouteParameter>(),
JsonTranscodingServerCallContextTests.cs (1)
102new Dictionary<string, RouteParameter>(),
ServerStreamingServerCallHandlerTests.cs (5)
50var routeParameterDescriptors = new Dictionary<string, RouteParameter> 97var routeParameterDescriptors = new Dictionary<string, RouteParameter> 139var routeParameterDescriptors = new Dictionary<string, RouteParameter> 179var routeParameterDescriptors = new Dictionary<string, RouteParameter> 228var routeParameterDescriptors = new Dictionary<string, RouteParameter>
UnaryServerCallHandlerTests.cs (25)
54var routeParameterDescriptors = new Dictionary<string, RouteParameter> 98var routeParameterDescriptors = new Dictionary<string, RouteParameter> 132var routeParameterDescriptors = new Dictionary<string, RouteParameter> 205httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 243httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 290httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 340httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 390httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 440httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 490httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 524httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 552httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 583httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 619httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 650httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 676httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 703httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1325httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1492httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1520httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1603httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1620httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1664httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1759httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1793httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Grpc.Swagger (4)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
68RouteValues = new Dictionary<string, string?>
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 (2)
HeaderParsingOptions.cs (2)
24public IDictionary<string, StringValues> DefaultValues { get; set; } = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase); 42public 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.HeaderPropagation.Tests (1)
HeaderPropagationMessageHandlerTest.cs (1)
17State.Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Hosting (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer);
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Hosting.Tests (29)
HostingApplicationDiagnosticsTests.cs (2)
49new Dictionary<string, string> 147new Dictionary<string, string>
HostingEnvironmentExtensionsTests.cs (2)
19.AddInMemoryCollection(new Dictionary<string, string>() 66.AddInMemoryCollection(new Dictionary<string, string>()
Internal\HostingEventSourceTests.cs (1)
202new Dictionary<string, string>
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
14private readonly Dictionary<string, Channel<double>> _counters = new Dictionary<string, Channel<double>>();
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
759Children = new Dictionary<string, ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),
WebHostBuilderTests.cs (10)
294var data = new Dictionary<string, string> 507var settings = new Dictionary<string, string> 533var settings = new Dictionary<string, string> 559var settings = new Dictionary<string, string> 568var overrideSettings = new Dictionary<string, string> 594var vals = new Dictionary<string, string> 623var vals = new Dictionary<string, string> 644var vals = new Dictionary<string, string> 1477var vals = new Dictionary<string, string> 1499var vals = new Dictionary<string, string>
WebHostConfigurationsTests.cs (3)
14var parameters = new Dictionary<string, string>() 39var parameters = new Dictionary<string, string>() { { "ENVIRONMENT", Environments.Development } }; 50var parameters = new Dictionary<string, string>() { { "detailedErrors", value } };
WebHostTests.cs (9)
52var data = new Dictionary<string, string> 71var data = new Dictionary<string, string> 90var data = new Dictionary<string, string> 122var data = new Dictionary<string, string> 196var data = new Dictionary<string, string> 235var data = new Dictionary<string, string> 271var data = new Dictionary<string, string> 813var vals = new Dictionary<string, string> 836var vals = new Dictionary<string, 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\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
47_innerDictionary = new Dictionary<TKey, TValue>(_sourceDictionary,
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\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
82_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer); 519_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 (7)
ProblemDetails\HttpValidationProblemDetails.cs (3)
18: this(new Dictionary<string, string[]>(StringComparer.Ordinal)) 36: this(new Dictionary<string, string[]>(errors ?? throw new ArgumentNullException(nameof(errors)), StringComparer.Ordinal)) 50public IDictionary<string, string[]> Errors { get; set; } = new Dictionary<string, string[]>(StringComparer.Ordinal);
ProblemDetails\ProblemDetails.cs (1)
70public IDictionary<string, object?> Extensions { get; set; } = new Dictionary<string, object?>(StringComparer.Ordinal);
Routing\RouteValueDictionary.cs (1)
902var names = new Dictionary<string, PropertyHelper>(StringComparer.OrdinalIgnoreCase);
src\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
GetHeaderSplitBenchmark.cs (1)
16var dict = new Dictionary<string, StringValues>()
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
UseMiddlewareTest.cs (2)
318private readonly Dictionary<Type, object> _services = new Dictionary<Type, object>(); 339private readonly Dictionary<object, Tuple<Type, object>> _services = new Dictionary<object, Tuple<Type, object>>();
UsePathBaseExtensionsTests.cs (1)
245private readonly Dictionary<Type, object> _services = new Dictionary<Type, object>();
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
726var requestHeaders = new Dictionary<string, StringValues>(existingRequestFeature.Headers.Count, StringComparer.OrdinalIgnoreCase); 768newHttpContext.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.Connections.Tests (18)
HttpConnectionDispatcherTests.cs (18)
228var values = new Dictionary<string, StringValues>(); 308var values = new Dictionary<string, StringValues>(); 350var values = new Dictionary<string, StringValues>(); 388var values = new Dictionary<string, StringValues>(); 427var values = new Dictionary<string, StringValues>(); 467var values = new Dictionary<string, StringValues>(); 530var values = new Dictionary<string, StringValues>(); 598var values = new Dictionary<string, StringValues>(); 661var values = new Dictionary<string, StringValues>(); 765var values = new Dictionary<string, StringValues>(); 907var values = new Dictionary<string, StringValues>(); 1842var values = new Dictionary<string, StringValues>(); 1894var values = new Dictionary<string, StringValues>(); 2570var values = new Dictionary<string, StringValues>(); 2630var values = new Dictionary<string, StringValues>(); 2687var values = new Dictionary<string, StringValues>(); 3699var values = new Dictionary<string, StringValues>(); 3736var values = new Dictionary<string, StringValues>();
Microsoft.AspNetCore.Http.Extensions (9)
RequestDelegateFactory.cs (1)
2223var dictionary = new Dictionary<FormKey, StringValues>();
RequestDelegateFactoryContext.cs (1)
43public Dictionary<string, string> TrackedParameters { get; } = new();
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (1)
19new Dictionary<TKey, TValue>();
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
127var result = new Dictionary<FormKey, HashSet<FormKey>>();
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Http.Extensions.Tests (52)
ProblemDetailsDefaultWriterTest.cs (4)
74Extensions = new Dictionary<string, object>() { { "extensionKey", 1 } } 88Assert.Equal(result.Keys, new(new() { { "type", 0 }, { "title", 1 }, { "status", 2 }, { "detail", 3 }, { "instance", 4 }, { "extensionKey", 5 }, {"traceId", expectedTraceId } })); 106Errors = new Dictionary<string, string[]>() { { "name", ["Name is invalid."] } } 120Assert.Equal(result.Keys, new(new() { { "type", 0 }, { "title", 1 }, { "status", 2 }, { "detail", 3 }, { "instance", 4 }, { "errors", 5 }, {"traceId", expectedTraceId } }));
RequestDelegateFactoryTests.cs (15)
251httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 582httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 604httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 628httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 635httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 753httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>() 1777httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1807httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1837httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1865httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 1905httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 2059var urlEncondedForm = new FormUrlEncodedContent(new Dictionary<string, string> { ["message"] = "hello", ["name"] = "foo" }); 2160httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 2197httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 3107httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
RequestDelegateFactoryTests.FormMapping.cs (8)
32httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 79httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 127httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 160httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 183httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 213httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 252httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues> 297httpContext.Request.Form = new FormCollection(new() { { "Description", "A test file" } }, formFiles);
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
780httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (3)
172httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 760httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 767httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.AsParameters.cs (1)
60var query = new QueryCollection(new Dictionary<string, StringValues>()
RequestDelegateGenerator\RequestDelegateCreationTests.cs (7)
431httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 457httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 504httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 529httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 554httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 584httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 591httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (5)
62httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 141httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 183httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 299httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 340httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (2)
524var urlEncondedForm = new FormUrlEncodedContent(new Dictionary<string, string> { ["message"] = "hello", ["name"] = "foo" }); 897httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (1)
186httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>()
RequestDelegateGenerator\RequestDelegateCreationTests.QueryParameters.cs (1)
54httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (1)
278httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (3)
24var content = new FormUrlEncodedContent(new Dictionary<string, string> { ["Id"] = "1", ["Name"] = "Write tests", ["IsComplete"] = "true" }); 92var content = new FormUrlEncodedContent(new Dictionary<string, string> { ["[foo]"] = "true", ["[bar]"] = "false", ["[baz]"] = "true" }); 201var content = new FormUrlEncodedContent(new Dictionary<string, string> { ["[0]"] = "1", ["[1]"] = "3", ["[2]"] = "5" });
Microsoft.AspNetCore.Http.Microbenchmarks (7)
AdaptiveCapacityDictionaryBenchmark.cs (6)
47_dict = new Dictionary<string, string>(1, StringComparer.OrdinalIgnoreCase); 48_dictTen = new Dictionary<string, string>(10, StringComparer.OrdinalIgnoreCase); 49_filledDictTen = new Dictionary<string, string>(10, StringComparer.OrdinalIgnoreCase); 303_ = new Dictionary<string, string>(capacity: 1); 315_ = new Dictionary<string, string>(capacity: 4); 327_ = new Dictionary<string, string>(capacity: 10);
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
18Dictionary<TSource, ImmutableArray<TElement>.Builder> map = new(comparer);
StaticRouteHandlerModel\EndpointParameter.cs (1)
479var lookupTable = new Dictionary<ParameterLookupKey, IPropertySymbol>();
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Http.Results.Tests (32)
AcceptedAtRouteOfTResultTests.cs (8)
21var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 45var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 70new Dictionary<string, string>() 75new Dictionary<string, string>() 113routeValues: new Dictionary<string, object>(), 162var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 177var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 194var routeValues = new RouteValueDictionary(new Dictionary<string, string>()
AcceptedAtRouteResultTests.cs (3)
24new Dictionary<string, string>() 29new Dictionary<string, string>() 67routeValues: new Dictionary<string, object>());
CreatedAtRouteOfTResultTests.cs (7)
22var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 42new Dictionary<string, string>() { { "hello", "world" } } 46new RouteValueDictionary(new Dictionary<string, string>() { 82routeValues: new Dictionary<string, object>(), 134routeValues: new Dictionary<string, object>(), 149routeValues: new Dictionary<string, object>(), 165routeValues: new Dictionary<string, object>(),
CreatedAtRouteResultTests.cs (4)
25new Dictionary<string, string>() { { "hello", "world" } } 29new RouteValueDictionary(new Dictionary<string, string>() { 65routeValues: new Dictionary<string, object>()); 115routeValues: new Dictionary<string, object>());
ProblemResultTests.cs (1)
143var details = new HttpValidationProblemDetails(new Dictionary<string, string[]>
RedirectToRouteResultTests.cs (1)
21var result = new RedirectToRouteHttpResult(null, new Dictionary<string, object>());
ResultsTests.cs (5)
1256var extensions = new Dictionary<string, object> { { "test", "value" } }; 1304var extensions = (IReadOnlyDictionary<string, object>)new Dictionary<string, object> { ["test"] = "value" }; 1399var errors = new Dictionary<string, string[]>() { { "testField", new[] { "test error" } } }; 1405var extensions = new Dictionary<string, object>() { { "testExtension", "test value" } }; 1780(() => Results.ValidationProblem(new Dictionary<string, string[]>(), null, null, null, null, null, null), typeof(ProblemHttpResult))
TypedResultsTests.cs (3)
1072var extensions = new Dictionary<string, object> { { "test", "value" } }; 1191var errors = new Dictionary<string, string[]>() { { "testField", new[] { "test error" } } }; 1196var extensions = new Dictionary<string, object>() { { "testExtension", "test value" } };
Microsoft.AspNetCore.Http.Tests (9)
DefaultHttpContextTests.cs (2)
140var items = new Dictionary<object, object>(); 450= new Dictionary<string, byte[]>(StringComparer.OrdinalIgnoreCase);
HeaderDictionaryTests.cs (4)
24new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase) 44new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase) 59new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase) 72new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase)
Internal\DefaultHttpRequestTests.cs (2)
152var query2 = new QueryCollection(new Dictionary<string, StringValues>() 185var cookies2 = new RequestCookieCollection(new Dictionary<string, string>()
QueryCollectionTests.cs (1)
13IQueryCollection query = new QueryCollection(new Dictionary<string, StringValues>());
Microsoft.AspNetCore.HttpOverrides.Tests (3)
HttpMethodOverrideMiddlewareTest.cs (3)
134req.Content = new FormUrlEncodedContent(new Dictionary<string, string>() 172req.Content = new FormUrlEncodedContent(new Dictionary<string, string>() 209req.Content = new FormUrlEncodedContent(new Dictionary<string, string>()
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
425TypedResults.ValidationProblem(new Dictionary<string, string[]> { 434var errorDictionary = new Dictionary<string, string[]>(1);
Microsoft.AspNetCore.Identity.FunctionalTests (24)
Extensions\HttpClientExtensions.cs (1)
16return client.SendAsync(form, submitButton, new Dictionary<string, string>());
Infrastructure\HtmlPageContext.cs (2)
10protected HtmlPageContext() : this(new Dictionary<string, object>()) 15: this(new Dictionary<string, object>(currentContext._properties))
Infrastructure\ServerFactory.cs (1)
91new Dictionary<UIFramework, string>()
MapIdentityApiTests.cs (1)
1347private static Dictionary<string, Action<IServiceCollection>> AddIdentityActions { get; } = new()
Pages\Account\ExternalLogin.cs (2)
29var response = await Client.SendAsync(_emailForm, new Dictionary<string, string> 41var response = await Client.SendAsync(_emailForm, new Dictionary<string, string>
Pages\Account\ForgotPassword.cs (1)
20var response = await Client.SendAsync(_forgotPasswordForm, new Dictionary<string, string>
Pages\Account\Login.cs (1)
99return await Client.SendAsync(_loginForm, _loginButton, new Dictionary<string, string>()
Pages\Account\LoginWith2fa.cs (1)
28var response = await Client.SendAsync(_twoFactorForm, new Dictionary<string, string>
Pages\Account\LoginWithRecoveryCode.cs (1)
21var response = await Client.SendAsync(_loginWithRecoveryCodeForm, new Dictionary<string, string>
Pages\Account\Manage\ChangePassword.cs (1)
21await Client.SendAsync(_changePasswordForm, new Dictionary<string, string>
Pages\Account\Manage\DeleteUser.cs (1)
32return await Client.SendAsync(_deleteForm, new Dictionary<string, string>()
Pages\Account\Manage\Email.cs (1)
48var response = await Client.SendAsync(_changeEmailForm, _changeEmailButton, new Dictionary<string, string>
Pages\Account\Manage\EnableAuthenticator.cs (1)
34var sendCodeResponse = await Client.SendAsync(_sendCodeForm, new Dictionary<string, string>
Pages\Account\Manage\ManageExternalLogin.cs (1)
21var linkedExternalLogin = await Client.SendAsync(_externalLoginForm, new Dictionary<string, string>
Pages\Account\Manage\PersonalData.cs (1)
30return await Client.SendAsync(_downloadForm, new Dictionary<string, string>());
Pages\Account\Manage\RemoveExternalLogin.cs (1)
21await Client.SendAsync(_removeLoginForm, new Dictionary<string, string>
Pages\Account\Manage\SetPassword.cs (1)
21await Client.SendAsync(_setPasswordForm, new Dictionary<string, string>
Pages\Account\Register.cs (2)
39var registered = await Client.SendAsync(_registerForm, new Dictionary<string, string>() 56var registered = await Client.SendAsync(_registerForm, new Dictionary<string, string>()
Pages\Account\ResendEmailConfirmation.cs (1)
19=> Client.SendAsync(_resendForm, new Dictionary<string, string>
Pages\Account\ResetPassword.cs (1)
28var resetPasswordResponse = await Client.SendAsync(_resetPasswordForm, new Dictionary<string, string>
Pages\Contoso\Login.cs (1)
36var contosoResponse = await Client.SendAsync(_loginForm, new Dictionary<string, string>
Microsoft.AspNetCore.Identity.InMemory.Test (3)
InMemoryStore.cs (1)
70private readonly Dictionary<string, TRole> _roles = new Dictionary<string, TRole>();
InMemoryUserStore.cs (2)
24private readonly Dictionary<string, TUser> _logins = new Dictionary<string, TUser>(); 26private readonly Dictionary<string, TUser> _users = new Dictionary<string, TUser>();
Microsoft.AspNetCore.Identity.Test (1)
SignInManagerTest.cs (1)
1352private static readonly Dictionary<string, AuthenticationScheme> _defaultCookieSchemes = new()
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 (3)
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);
xunit\AspNetTestAssemblyRunner.cs (1)
18private readonly Dictionary<Type, object> _assemblyFixtureMappings = new();
Microsoft.AspNetCore.JsonPatch.Tests (22)
Adapters\AdapterFactoryTests.cs (1)
38IAdapter adapter = factory.Create(new Dictionary<string, string>(), new DefaultContractResolver());
CustomNamingStrategyTests.cs (1)
97var targetObject = new Dictionary<string, int>()
IntegrationTests\DictionaryIntegrationTest.cs (2)
133public IDictionary<string, int> DictionaryOfStringToInteger { get; } = new Dictionary<string, int>(); 138public IDictionary<int, Customer> DictionaryOfStringToCustomer { get; } = new Dictionary<int, Customer>();
Internal\DictionaryAdapterTest.cs (15)
22var dictionary = new Dictionary<string, int>(StringComparer.Ordinal); 42var dictionary = new Dictionary<int, object>(); 64var dictionary = new Dictionary<int, object>(); 92var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 119var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 144var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 164var dictionary = new Dictionary<Guid, object>(); 184var dictionary = new Dictionary<Guid, int>(); 203var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 221var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 239var dictionary = new Dictionary<string, Rectangle>(StringComparer.Ordinal); 262var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 281var dictionary = new Dictionary<Uri, object>(); 300var dictionary = new Dictionary<string, List<object>>(); 324var dictionary = new Dictionary<string, object>();
Internal\ObjectVisitorTest.cs (1)
17public IDictionary<string, string> CountriesAndRegions = new Dictionary<string, string>();
TestObjectModels\DynamicTestObject.cs (1)
11private Dictionary<string, object> _dictionary = new Dictionary<string, object>();
WriteOnceDynamicTestObject.cs (1)
25private Dictionary<string, object> _dictionary = new Dictionary<string, object>();
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)
38public 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\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
AddResponseTypeAttributeCodeFixAction.cs (2)
149var statusCodeConstants = new Dictionary<int, string>(); 179var statusCodes = new Dictionary<int, (int, ITypeSymbol?)>();
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (2)
145var results = new Dictionary<int, ApiResponseType>(); 227var results = new Dictionary<int, ApiResponseType>();
DefaultApiDescriptionProvider.cs (1)
240var 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)
41var 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)
73_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\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
47_innerDictionary = new Dictionary<TKey, TValue>(_sourceDictionary,
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\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
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.Core.Test (312)
AcceptedAtRouteResultTests.cs (4)
62var routeValues = new RouteValueDictionary(new Dictionary<string, string>() 87new Dictionary<string, string>() 92new Dictionary<string, string>() 134routeValues: new Dictionary<string, object>(),
ApplicationModels\AttributeRouteModelTests.cs (30)
183var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 495new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 506new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 517new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 528new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 539new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 550new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 561new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 572new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 583new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 594new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 605new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 616new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 627new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 638new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 649new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 660new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 677new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 684new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 691new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 698new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 705new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 715new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 722new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 729new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 736new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 747new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 758new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 769new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 780new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (2)
1295RouteValues = new Dictionary<string, string>() 1303RouteValues = new Dictionary<string, string>()
ApplicationParts\RelatedAssemblyPartTest.cs (1)
106public Dictionary<string, Assembly> Assemblies { get; } = new Dictionary<string, Assembly>();
Authorization\AuthorizeFilterTest.cs (1)
621var contextItems = new Dictionary<object, object>();
ControllerBaseTest.cs (10)
1406var expected = new Dictionary<string, object> 1446var expected = new Dictionary<string, object> 1467var expected = new Dictionary<string, object> 1600var expected = new Dictionary<string, object> 1625var expected = new Dictionary<string, object> 1646var expected = new Dictionary<string, object> 2444var actionResult = controller.ValidationProblem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } }); 2521var actionResult = controller.Problem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } }); 2590new Dictionary<string, object> { { "hello", "world" } }, 2594var expected2 = new Dictionary<string, object>
Controllers\ControllerBinderDelegateProviderTest.cs (24)
43var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 97var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 165var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 207var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 257var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 293var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 342var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 401var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 436var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 484var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 532var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 579var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 629var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 668var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 708var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 749var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 811var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 874var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 962var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 990var boundPropertyTypes = new Dictionary<string, Type> 998var inputPropertyValues = new Dictionary<string, object> 1021var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 1176var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 1228var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
CreatedAtRouteResultTests.cs (3)
26new Dictionary<string, string>() { { "hello", "world" } } 30new RouteValueDictionary(new Dictionary<string, string>() { 68routeValues: new Dictionary<string, object>(),
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
232return new Dictionary<Type, Type[]>()
Filters\ResponseCacheFilterExecutorTest.cs (1)
538new Dictionary<string, object>(),
Infrastructure\ActionSelectionTableTest.cs (25)
25RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 34RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 71RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 101RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 111RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 140RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 149RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 175RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 184RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 210RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 219RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 245RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 275RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 308RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 317RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 326RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 357RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 366RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 375RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 403RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 434RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 465RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 496RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 525RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\ActionSelectorTest.cs (20)
35RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 44RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 74RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 84RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 116RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 125RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 154RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 163RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 192RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 228RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 237RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 246RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 280RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 289RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 298RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 329RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 363RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 397RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 431RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 465RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\ConfigureCompatibilityOptionsTest.cs (3)
19var configure = Create(CompatibilityVersion.Version_3_0, new Dictionary<string, object>()); 36new Dictionary<string, object> 59new Dictionary<string, object>
Infrastructure\ControllerActionInvokerTest.cs (26)
858var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 883var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 909var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 932var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 955var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 988var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.Echo), new Dictionary<string, object>() { { "input", inputString } }); 1015new Dictionary<string, object>() { { "input", inputString } }); 1038new Dictionary<string, object>()); 1065new Dictionary<string, object>() { { "input", inputString } }); 1091new Dictionary<string, object>()); 1118new Dictionary<string, object>() { { "input", inputString } }); 1134var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1162var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1192var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1215var actionParameters = new Dictionary<string, object> { ["value"] = 3 }; 1241var actionParameters = new Dictionary<string, object> { ["value"] = 3 }; 1271var actionParameters = new Dictionary<string, object> { { "s", inputParam2 }, { "i", inputParam1 } }; 1301var actionParameters = new Dictionary<string, object> { { "value", inputParam } }; 1330var actionParameters = new Dictionary<string, object> { { "i", "Some Invalid Value" }, { "s", inputParam2 } }; 1371new Dictionary<string, object>()); 1405.Returns(new Dictionary<object, object>()); 1453var actionParameters = new Dictionary<string, object> { { "input", inputParam }, }; 1478var actionParameters = new Dictionary<string, object> { { "input", inputParam }, }; 1502var actionParameters = new Dictionary<string, object>(); 1526var actionParameters = new Dictionary<string, object>(); 1685arguments = new Dictionary<string, object>();
Infrastructure\ModelStateInvalidFilterTest.cs (1)
77new Dictionary<string, object>(),
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
139var problemDetails = new ValidationProblemDetails(new Dictionary<string, string[]>() { { "Property", new string[] { "error0" } } }) 163var errors = new Dictionary<string, string[]>()
ModelBinding\Binders\ArrayModelBinderTest.cs (3)
75bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 109bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 155bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\Binders\CollectionModelBinderTest.cs (5)
261bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 295bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 336bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 369bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 411bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (9)
292ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 298var binders = new Dictionary<ModelMetadata, IModelBinder>(); 344ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 349new Dictionary<ModelMetadata, IModelBinder>(), 388ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 393new Dictionary<ModelMetadata, IModelBinder>(), 1108var valueProvider = new TestValueProvider(new Dictionary<string, object>()); 1389public IDictionary<int, string> ReadOnlyDictionary { get; } = new Dictionary<int, string>(); 1396public IDictionary<int, string> SettableDictionary { get; set; } = new Dictionary<int, string>
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (13)
352ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 358var binders = new Dictionary<ModelMetadata, IModelBinder>(); 404ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 409new Dictionary<ModelMetadata, IModelBinder>(), 448ValueProvider = new TestValueProvider(new Dictionary<string, object>()), 453new Dictionary<ModelMetadata, IModelBinder>(), 1272var valueProvider = new TestValueProvider(new Dictionary<string, object>()); 1564public IDictionary<int, string> ReadOnlyDictionary { get; } = new Dictionary<int, string>(); 1571public IDictionary<int, string> SettableDictionary { get; set; } = new Dictionary<int, string> 1586var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>(); 1603: this(new Dictionary<ModelMetadata, IModelBinder>()) 1608: this(new Dictionary<ModelMetadata, IModelBinder>(), allowValidatingTopLevelNodes) 1624public Dictionary<ModelMetadata, ModelBindingResult> Results { get; } = new Dictionary<ModelMetadata, ModelBindingResult>();
ModelBinding\Binders\DictionaryModelBinderTest.cs (16)
21var values = new Dictionary<string, string>() 61var values = new Dictionary<string, string>() 72var dictionary = new Dictionary<int, string>(); 101var dictionaryWithOne = new Dictionary<string, string>(StringComparer.Ordinal) 105var dictionaryWithThree = new Dictionary<string, string>(StringComparer.Ordinal) 196var dictionary = new Dictionary<string, string>(StringComparer.Ordinal) 233var dictionary = new Dictionary<string, string>(StringComparer.Ordinal) 268var dictionaryWithOne = new Dictionary<long, int> 272var dictionaryWithThree = new Dictionary<long, int> 319var dictionary = new Dictionary<int, ModelWithProperties> 324var stringDictionary = new Dictionary<string, string> 346new ComplexObjectModelBinder(new Dictionary<ModelMetadata, IModelBinder>() 446bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 481bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 530bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 575bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
18var formCollection = new FormCollection(new Dictionary<string, StringValues>
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (2)
160bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>()); 190bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\CompositeValueProviderTest.cs (2)
70var dictionary = new Dictionary<string, string>(StringComparer.Ordinal) 119var values = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
ModelBinding\DefaultModelBindingContextTest.cs (1)
179new FormCollection(new Dictionary<string, StringValues>()),
ModelBinding\EnumerableValueProviderTest.cs (7)
11protected static Dictionary<string, StringValues> BackingStore { get; } = new Dictionary<string, StringValues> 32var backingStore = new Dictionary<string, StringValues>(); 87var expected = new Dictionary<string, string> 120var expected = new Dictionary<string, string> 142var expected = new Dictionary<string, string> 207var backingStore = new Dictionary<string, StringValues> 238var store = new Dictionary<string, StringValues>(BackingStore)
ModelBinding\FormFileValueProviderFactoryTest.cs (1)
117context.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), new FormFileCollection());
ModelBinding\FormFileValueProviderTest.cs (3)
19httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), formFiles); 38httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), formFiles); 57httpContext.Request.Form = new FormCollection(new Dictionary<string, StringValues>(), formFiles);
ModelBinding\FormValueProviderFactoryTest.cs (1)
108context.Request.Form = new FormCollection(new Dictionary<string, StringValues>());
ModelBinding\FormValueProviderTest.cs (1)
19var values = new Dictionary<string, StringValues>(BackingStore)
ModelBinding\JQueryFormValueProviderFactoryTest.cs (2)
15private static readonly Dictionary<string, StringValues> _backingStore = new Dictionary<string, StringValues> 193context.Request.Form = new FormCollection(formValues ?? new Dictionary<string, StringValues>());
ModelBinding\JQueryFormValueProviderTest.cs (3)
23var dictionary = new Dictionary<string, StringValues>(); 37var store = new Dictionary<string, StringValues>(BackingStore) 57var values = new Dictionary<string, StringValues>(BackingStore)
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (2)
14private static readonly Dictionary<string, StringValues> _backingStore = new Dictionary<string, StringValues> 87var context = CreateContext(new Dictionary<string, StringValues>());
ModelBinding\JQueryQueryStringValueProviderTest.cs (2)
23var dictionary = new Dictionary<string, StringValues>(); 40var store = new Dictionary<string, StringValues>(BackingStore)
ModelBinding\ModelBindingHelperTest.cs (7)
62var values = new Dictionary<string, object> 104var values = new Dictionary<string, object> 175var values = new Dictionary<string, object> 255var values = new Dictionary<string, object> 306var values = new Dictionary<string, object> 505var values = new Dictionary<string, object> 580var values = new Dictionary<string, object>
ModelBinding\QueryStringValueProviderFactoryTest.cs (1)
33var queryValues = new Dictionary<string, StringValues>();
ModelBinding\RouteValueProviderTests.cs (12)
16var values = new RouteValueDictionary(new Dictionary<string, object> 33var values = new RouteValueDictionary(new Dictionary<string, object> 51var values = new RouteValueDictionary(new Dictionary<string, object> 68var values = new RouteValueDictionary(new Dictionary<string, object> 87var values = new RouteValueDictionary(new Dictionary<string, object> 104var values = new RouteValueDictionary(new Dictionary<string, object> 121var values = new RouteValueDictionary(new Dictionary<string, object> 142var values = new RouteValueDictionary(new Dictionary<string, object> 163var values = new RouteValueDictionary(new Dictionary<string, object> 182var values = new RouteValueDictionary(new Dictionary<string, object> 200var values = new RouteValueDictionary(new Dictionary<string, object> 217var values = new RouteValueDictionary(new Dictionary<string, object>
ModelBinding\UnsupportedContentTypeFilterTest.cs (4)
25new Dictionary<string, object>(), 58new Dictionary<string, object>(), 84new Dictionary<string, object>(), 108new Dictionary<string, object>(),
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (1)
49var model = new Dictionary<int, string>()
ModelBinding\Validation\DefaultObjectValidatorTests.cs (2)
985var model = new Dictionary<string, string>() 1032var model = (object)new Dictionary<string, Person> { { "Joe", new Person() }, { "Mark", new Person() } };
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (1)
49var model = new Dictionary<int, string>()
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (6)
12var model = new Dictionary<int, string>() 22var strategy = new ShortFormDictionaryValidationStrategy<int, string>(new Dictionary<string, int>() 60var model = new Dictionary<int, string>() 70var strategy = new ShortFormDictionaryValidationStrategy<int, string>(new Dictionary<string, int>() 101var model = new Dictionary<int, string>() 110var strategy = new ShortFormDictionaryValidationStrategy<int, string>(new Dictionary<string, int>()
RedirectToPageResultTest.cs (1)
31var result = new RedirectToPageResult("/some-page", new Dictionary<string, object>())
RedirectToRouteResultTest.cs (3)
69var result = new RedirectToRouteResult(null, new Dictionary<string, object>()) 200new Dictionary<string, string>() { { "hello", "world" } } 204new RouteValueDictionary(new Dictionary<string, string>() {
ResponseCacheAttributeTest.cs (8)
29var cacheProfiles = new Dictionary<string, CacheProfile>(); 49var cacheProfiles = new Dictionary<string, CacheProfile>(); 92new Dictionary<string, CacheProfile> { { "TestCacheProfile", new CacheProfile 111new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile 130new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile 148new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile() } }, 189var cacheProfiles = new Dictionary<string, CacheProfile>(); 350new Dictionary<string, object>(),
Routing\AttributeRouteTest.cs (10)
126RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 170RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 214RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 261RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 275RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 329RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 372RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 415RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 463RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 477RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\AttributeRoutingTest.cs (2)
119action.RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 152RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
Routing\ControllerActionEndpointDataSourceTest.cs (13)
28RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 69RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 140RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 148RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 222RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 230RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 309RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 317RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 390RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 399RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 491RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 499RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (3)
22RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 30RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 38RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\UrlHelperExtensionsTest.cs (4)
58new Dictionary<string, object> 265RouteValues = new Dictionary<string, string> 499RouteValues = new Dictionary<string, string> 870RouteValues = new Dictionary<string, string>
Routing\UrlHelperTestBase.cs (5)
623var dictionary = new Dictionary<string, object>(); 668var dict = new Dictionary<string, object>(); 889var mockItems = new Dictionary<object, object> 911httpContext.Setup(h => h.Items).Returns(new Dictionary<object, object>()); 930var mockItems = new Dictionary<object, object>
ValidationProblemDetailsTest.cs (1)
79var errors = new Dictionary<string, string[]>
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
CommonFilterTest.cs (1)
198new Dictionary<string, object>(),
LinkBuilder.cs (1)
14Values = new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
176var namesAndValues = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (45)
CompareAttributeAdapterTest.cs (6)
33new Dictionary<string, string>()); 76new Dictionary<string, string>()); 111new Dictionary<string, string>()); 148new Dictionary<string, string>()); 188new Dictionary<string, string>()); 221new Dictionary<string, string>());
DataAnnotationsMetadataProviderTest.cs (10)
691{ typeof(EmptyEnum), new Dictionary<string, string>() }, 692{ typeof(EmptyEnum?), new Dictionary<string, string>() }, 695new Dictionary<string, string> 707new Dictionary<string, string> 719new Dictionary<string, string> 732new Dictionary<string, string> 745new Dictionary<string, string> 756new Dictionary<string, string> 767new Dictionary<string, string> 779new Dictionary<string, string>
FileExtensionsAttributeAdapterTest.cs (4)
33var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 84var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 119var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>()); 144var context = new ClientModelValidationContext(new ActionContext(), metadata, provider, new Dictionary<string, string>());
MaxLengthAttributeAdapterTest.cs (5)
36var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 63var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 92var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 125var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 152var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
MinLengthAttributeAdapterTest.cs (4)
36var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 63var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 91var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 117var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
NumericClientModelValidatorTest.cs (5)
24var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 58var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 90var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 116var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 139var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
RangeAttributeAdapterTest.cs (3)
30var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 66var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 94var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
RequiredAttributeAdapterTest.cs (3)
37var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 62var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 87var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
StringLengthAttributeAdapterTest.cs (5)
37var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 64var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 91var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 119var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>()); 145var context = new ClientModelValidationContext(actionContext, metadata, provider, new Dictionary<string, string>());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerOutputFormatterTest.cs (3)
87yield return new object[] { new Dictionary<string, string>() { { "Hello", "World" } }, 369new Dictionary<string, string> { { "Hello", "world" } }, typeof(object), true }; 371new Dictionary<string, string> { { "Hello", "world" } }, typeof(Dictionary<string,string>), true };
XmlSerializerOutputFormatterTest.cs (1)
342new Dictionary<string, string> { { "Hello", "world" } }, typeof(Dictionary<string,string>), false };
Microsoft.AspNetCore.Mvc.FunctionalTests (33)
ApiBehaviorTest.cs (1)
440var expected = new Dictionary<string, string[]>
BasicTests.cs (5)
398var product = new Dictionary<string, string> 529var formContent = new Dictionary<string, string> 551var formContent = new Dictionary<string, string> 575var formContent = new Dictionary<string, string> 595var formContent = new Dictionary<string, string>
HtmlGenerationTest.cs (9)
142AssertImgElement(document.GetElementById("1"), new() 150AssertImgElement(document.GetElementById("2"), new() 158AssertImgElement(document.GetElementById("3"), new() 166AssertImgElement(document.GetElementById("4"), new() 173AssertImgElement(document.GetElementById("5"), new() 180AssertImgElement(document.GetElementById("6"), new() 187AssertImgElement(document.GetElementById("7"), new() 194AssertImgElement(document.GetElementById("8"), new() 787request.Content = new FormUrlEncodedContent(new Dictionary<string, string>
InputParentValidationTests.cs (1)
93var result = new Dictionary<string, string[]>();
InputValidationTests.cs (2)
36var content = new FormUrlEncodedContent(new Dictionary<string, string> 76var content = new FormUrlEncodedContent(new Dictionary<string, string>
RazorBuildTest.cs (1)
174var updateContent = new FormUrlEncodedContent(new Dictionary<string, string>
RazorPagesTest.cs (3)
788Content = new FormUrlEncodedContent(new Dictionary<string, string> 813Content = new FormUrlEncodedContent(new Dictionary<string, string> 1290Content = new FormUrlEncodedContent(new Dictionary<string, string>
RazorPagesWithBasePathTest.cs (3)
434Content = new FormUrlEncodedContent(new Dictionary<string, string> 463Content = new FormUrlEncodedContent(new Dictionary<string, string> 491Content = new FormUrlEncodedContent(new Dictionary<string, string>
RazorRuntimeCompilationHostingStartupTest.cs (1)
119var updateContent = new FormUrlEncodedContent(new Dictionary<string, string>
ReadFromDisconnectedClientTest.cs (1)
56request.Content = new FormUrlEncodedContent(new Dictionary<string, string>
RemoteAttributeValidationTest.cs (1)
89var contentDictionary = new Dictionary<string, string>
RoutingTestsBase.cs (3)
273new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 297new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 331new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
TagHelpersTest.cs (2)
229var validPostValues = new Dictionary<string, string> 257var validPostValues = new Dictionary<string, string>
Microsoft.AspNetCore.Mvc.IntegrationTests (81)
ActionParametersIntegrationTest.cs (1)
1085var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
BindingSourceMetadataProviderIntegrationTest.cs (2)
36request.Form = new FormCollection(new Dictionary<string, StringValues> 125var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
BodyValidationIntegrationTests.cs (1)
895var result = new Dictionary<string, string>();
CollectionModelBinderIntegrationTest.cs (24)
597var formCollection = new FormCollection(new Dictionary<string, StringValues>() 655var formCollection = new FormCollection(new Dictionary<string, StringValues>() 732new Dictionary<string, StringValues> 741new Dictionary<string, StringValues> 751new Dictionary<string, StringValues> 761new Dictionary<string, StringValues> 770new Dictionary<string, StringValues> 779new Dictionary<string, StringValues> 789new Dictionary<string, StringValues> 798new Dictionary<string, StringValues> 808new Dictionary<string, StringValues> 817new Dictionary<string, StringValues> 827new Dictionary<string, StringValues> 836new Dictionary<string, StringValues> 846new Dictionary<string, StringValues> 854new Dictionary<string, StringValues> 862new Dictionary<string, StringValues> 870new Dictionary<string, StringValues> 878new Dictionary<string, StringValues> 886new Dictionary<string, StringValues> 894new Dictionary<string, StringValues> 902new Dictionary<string, StringValues> 910new Dictionary<string, StringValues> 918new Dictionary<string, StringValues>
ComplexRecordIntegrationTest.cs (3)
1201Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model.ProductIds); 1256Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model.ProductIds); 4223var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
ComplexTypeIntegrationTestBase.cs (3)
1219Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model.ProductIds); 1274Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model.ProductIds); 3722var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
DictionaryModelBinderIntegrationTest.cs (32)
42Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model); 82Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model); 120Assert.Equal(new Dictionary<string, int>() { { "key0", 10 } }, model); 173Assert.Equal(new Dictionary<string, int>() { { "key0", 10 }, }, model); 210Assert.Equal(new Dictionary<string, int>() { { "key0", 10 }, }, model); 224var impliedPrefixDictionary = new Dictionary<string, StringValues> 230var reversedImpliedPrefixDictionary = new Dictionary<string, StringValues> 236var longFormDictionary = new Dictionary<string, StringValues> 245var longerFormDictionary = new Dictionary<string, StringValues> 255var longestFormDictionary = new Dictionary<string, StringValues> 269var noPrefixDictionary = new Dictionary<string, StringValues> 275var reversedNoPrefixDictionary = new Dictionary<string, StringValues> 331var expectedDictionary = new Dictionary<string, int> 366var expectedDictionary = new Dictionary<string, int> 527Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model); 544var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } }; 582var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } }; 617var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } }; 652var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } }; 725Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model); 764Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 10 } }, }, model); 804Assert.Equal(new Dictionary<string, Person> { { "key0", new Person { Id = 100 } }, }, model); 909var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 941var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 975var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 1014var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } }; 1053var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } }; 1160var expectedDictionary = new Dictionary<string, string> 1359var expectedDictionary = new Dictionary<DayOfWeek, string> 1394var expectedDictionary = new Dictionary<string, DayOfWeek> 1518private readonly IDictionary<string, string> _data = new Dictionary<string, string>(); 1623private readonly IDictionary<TKey, TValue> _data = new Dictionary<TKey, TValue>();
ExcludeBindingMetadataProviderIntegrationTest.cs (2)
37request.Form = new FormCollection(new Dictionary<string, StringValues> 86request.Form = new FormCollection(new Dictionary<string, StringValues>
FormCollectionModelBindingIntegrationTest.cs (1)
160var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
FormFileModelBindingIntegrationTest.cs (2)
1207request.QueryString = QueryString.Create(new Dictionary<string, string> 1252var formCollection = new FormCollection(new Dictionary<string, StringValues>(), new FormFileCollection());
ModelPrefixSelectionIntegrationTest.cs (4)
38request.Form = new FormCollection(new Dictionary<string, StringValues>() 87request.Form = new FormCollection(new Dictionary<string, StringValues>() 175request.Form = new FormCollection(new Dictionary<string, StringValues>() 221request.Form = new FormCollection(new Dictionary<string, StringValues>()
SimpleTypeModelBinderIntegrationTest.cs (2)
643new Dictionary<string, StringValues> 649new Dictionary<string, StringValues>
TryUpdateModelIntegrationTest.cs (3)
107request.QueryString = QueryString.Create(new Dictionary<string, string> 707request.QueryString = QueryString.Create(new Dictionary<string, string> 1277var formCollection = new FormCollection(new Dictionary<string, StringValues>(), fileCollection);
TryValidateModelIntegrationTest.cs (1)
226var result = 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.NewtonsoftJson.Test (35)
BsonTempDataSerializerTest.cs (13)
22{ new Dictionary<string, TestItem>(), typeof(TestItem) }, 47{ new Dictionary<int, string>(), typeof(int) }, 48{ new Dictionary<Uri, Guid>(), typeof(Uri) }, 49{ new Dictionary<object, string>(), typeof(object) }, 50{ new Dictionary<TestItem, TestItem>(), typeof(TestItem) } 83{ new Dictionary<string, int>() }, 97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 161var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 212var input = new Dictionary<string, object> 239var input = new Dictionary<string, object>
DependencyInjection\MvcNewtonsoftJsonOptionsExtensionsTest.cs (4)
87var dictionary = new Dictionary<string, int> 106var dictionary = new Dictionary<string, int>() 125var dictionary = new Dictionary<string, int> 197var dictionary = new Dictionary<string, int>()
NewtonsoftJsonOutputFormatterTest.cs (1)
241var dictionary = new Dictionary<string, int>(StringComparer.Ordinal)
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (17)
30var input = new Dictionary<string, object> 54var input = new Dictionary<string, object> 76var input = new Dictionary<string, object> 97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 160var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 204var input = new Dictionary<string, object> 226var input = new Dictionary<string, object> 247var input = new Dictionary<string, object> 268var input = new Dictionary<string, object> 289var input = new Dictionary<string, object> 309var value = new Dictionary<string, string> 314var input = new Dictionary<string, object> 334var value = new Dictionary<string, int> 339var input = new Dictionary<string, object>
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.Razor.Test (59)
LanguageViewLocationExpanderTest.cs (3)
141viewLocationExpanderContext.Values = new Dictionary<string, string>(); 166viewLocationExpanderContext.Values = new Dictionary<string, string>(); 194viewLocationExpanderContext.Values = new Dictionary<string, string>();
RazorPageTest.cs (18)
424page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 464page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 487page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 524page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 548page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 572page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 596page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 620page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 697page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 722page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 745page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 770page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 804page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate> 983items: new Dictionary<object, object>(), 1025items: new Dictionary<object, object>(), 1071items: new Dictionary<object, object>(), 1114items: new Dictionary<object, object>(), 1144items: new Dictionary<object, object>(),
RazorViewEngineTest.cs (22)
23private static readonly Dictionary<string, object> _areaTestContext = new Dictionary<string, object>() 29private static readonly Dictionary<string, object> _controllerTestContext = new Dictionary<string, object>() 34private static readonly Dictionary<string, object> _pageTestContext = new Dictionary<string, object>() 546var areaContext = GetActionContext(new Dictionary<string, object>() 561var nonAreaContext = GetActionContext(new Dictionary<string, object>() 610var areaContext1 = GetActionContext(new Dictionary<string, object>() 625var areaContext2 = GetActionContext(new Dictionary<string, object>() 809var context = GetActionContext(new Dictionary<string, object>()); 1283var routeValues = new Dictionary<string, object> 1295var routesInActionDescriptor = new Dictionary<string, string>() 1324var routeValues = new Dictionary<string, object> 1328var routesInActionDescriptor = new Dictionary<string, string>() 1358var routeValues = new Dictionary<string, object> 1363var routesInActionDescriptor = new Dictionary<string, string>() 1393var routeValues = new Dictionary<string, object>() 1401new Dictionary<string, string>()); 1833var routeValues = new Dictionary<string, object> 1870var routeValues = new Dictionary<string, object> 1911var context = GetActionContext(new Dictionary<string, object>()); 1929var context = GetActionContext(new Dictionary<string, object>()); 1951var context = GetActionContext(new Dictionary<string, object>()); 1969var context = GetActionContext(new Dictionary<string, object>());
TagHelpers\TagHelperComponentTagHelperTest.cs (8)
25items: new Dictionary<object, object>(), 74items: new Dictionary<object, object>(), 130items: new Dictionary<object, object>(), 161items: new Dictionary<object, object>(), 192items: new Dictionary<object, object>(), 227items: new Dictionary<object, object>(), 260items: new Dictionary<object, object>(), 291items: new Dictionary<object, object>(),
TagHelpers\UrlResolutionTagHelperTest.cs (8)
80items: new Dictionary<object, object>(), 122items: new Dictionary<object, object>(), 182items: new Dictionary<object, object>(), 240items: new Dictionary<object, object>(), 296items: new Dictionary<object, object>(), 327items: new Dictionary<object, object>(), 376items: new Dictionary<object, object>(), 422items: new Dictionary<object, object>(),
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)
423_arguments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.RazorPages.Test (43)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
27RouteValues = new Dictionary<string, string>(), 55RouteValues = new Dictionary<string, string>(), 106RouteValues = new Dictionary<string, string>(), 148RouteValues = new Dictionary<string, string>(), 410RouteValues = new Dictionary<string, string>(),
Filters\PageSaveTempDataPropertyFilterTest.cs (3)
67new Dictionary<string, object>(), 108new Dictionary<string, object>(), 148new Dictionary<string, object>(),
Filters\PageViewDataAttributeFilterTest.cs (2)
26var context = new PageHandlerExecutingContext(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler); 45var context = new PageHandlerExecutingContext(pageContext, new IFilterMetadata[0], new HandlerMethodDescriptor(), new Dictionary<string, object>(), handler);
Infrastructure\DisallowOptionsRequestsPageFilterTest.cs (1)
129return new PageHandlerExecutingContext(pageContext, Array.Empty<IFilterMetadata>(), handlerMethodDescriptor, new Dictionary<string, object>(), new object());
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (2)
22RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 30RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\PageActionEndpointDataSourceTest.cs (6)
29RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 105RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 118RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 183RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 225RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\PageBinderFactoryTest.cs (13)
212var binder = new TestParameterBinder(new Dictionary<string, object> 269var binder = new TestParameterBinder(new Dictionary<string, object> 323var binder = new TestParameterBinder(new Dictionary<string, object>()); 382var binder = new TestParameterBinder(new Dictionary<string, object>() 441var binder = new TestParameterBinder(new Dictionary<string, object>() 492var binder = new TestParameterBinder(new Dictionary<string, object> 583var parameterBinder = new TestParameterBinder(new Dictionary<string, object>() 603var arguments = new Dictionary<string, object>(); 626var parameterBinder = new TestParameterBinder(new Dictionary<string, object>() 646var arguments = new Dictionary<string, object>(); 689var arguments = new Dictionary<string, object>(); 713var parameterBinder = new TestParameterBinder(new Dictionary<string, object>() 740var arguments = new Dictionary<string, object>();
Infrastructure\PageHandlerPageFilterTest.cs (4)
29new Dictionary<string, object>(), 77new Dictionary<string, object>(), 120new Dictionary<string, object>(), 153new Dictionary<string, object>(),
Infrastructure\PageViewLocationExpanderTest.cs (1)
216Values = new Dictionary<string, string>(),
PageModelTest.cs (4)
941new Dictionary<string, object> { { "hello", "world" } }, 945var expected2 = new Dictionary<string, object> 1855new Dictionary<string, object>(), 1889new Dictionary<string, object>(),
PageTest.cs (2)
1870new Dictionary<string, object> { { "hello", "world" } }, 1874var expected2 = new Dictionary<string, object>
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.TagHelpers.Test (175)
AnchorTagHelperTest.cs (16)
35items: new Dictionary<object, object>(), 95items: new Dictionary<object, object>(), 145items: new Dictionary<object, object>(), 197items: new Dictionary<object, object>(), 211var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 255items: new Dictionary<object, object>(), 269var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 292RouteValues = new Dictionary<string, string> { { "area", "Home" } } 314items: new Dictionary<object, object>(), 328var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } }; 372items: new Dictionary<object, object>(), 423items: new Dictionary<object, object>(), 520items: new Dictionary<object, object>(), 560items: new Dictionary<object, object>(), 598items: new Dictionary<object, object>(), 636items: new Dictionary<object, object>(),
AttributeMatcherTest.cs (1)
98items: new Dictionary<object, object>(),
CacheTagHelperTest.cs (2)
495items: new Dictionary<object, object>(), 946items: new Dictionary<object, object>(),
CacheTagKeyTest.cs (1)
554items: new Dictionary<object, object>(),
ComponentTagHelperTest.cs (1)
66new Dictionary<object, object>(),
DistributedCacheTagHelperTest.cs (1)
752items: new Dictionary<object, object>(),
EnvironmentTagHelperTest.cs (1)
215items: new Dictionary<object, object>(),
FormActionTagHelperTest.cs (20)
28items: new Dictionary<object, object>(), 103items: new Dictionary<object, object>(), 173{ new Dictionary<string, string>(), null }, 175new Dictionary<string, string> { { "name", "value" } }, 176new Dictionary<string, object> { { "name", "value" } } 204items: new Dictionary<object, object>(), 264items: new Dictionary<object, object>(), 321{ "Area", new Dictionary<string, string> { { "area", "Home" } }, "Area" }, 324{ string.Empty, new Dictionary<string, string> { { "area", "Home" } }, string.Empty }, 326{ null, new Dictionary<string, string> { { "area", "Admin" } }, "Admin" }, 342items: new Dictionary<object, object>(), 352var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } }; 396items: new Dictionary<object, object>(), 406var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } }; 445items: new Dictionary<object, object>(), 543items: new Dictionary<object, object>(), 583items: new Dictionary<object, object>(), 621items: new Dictionary<object, object>(), 659items: new Dictionary<object, object>(), 697items: new Dictionary<object, object>(),
FormTagHelperTest.cs (25)
33items: new Dictionary<object, object>(), 81items: new Dictionary<object, object>(), 137items: new Dictionary<object, object>(), 191items: new Dictionary<object, object>(), 249items: new Dictionary<object, object>(), 312items: new Dictionary<object, object>(), 387items: new Dictionary<object, object>(), 441items: new Dictionary<object, object>(), 513items: new Dictionary<object, object>(), 574items: new Dictionary<object, object>(), 632items: new Dictionary<object, object>(), 644var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 689items: new Dictionary<object, object>(), 701var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } }; 746items: new Dictionary<object, object>(), 758var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 776RouteValues = new Dictionary<string, string> { { "area", "Client" } }, 804items: new Dictionary<object, object>(), 859items: new Dictionary<object, object>(), 905items: new Dictionary<object, object>(), 990items: new Dictionary<object, object>(), 1040items: new Dictionary<object, object>(), 1076items: new Dictionary<object, object>(), 1110items: new Dictionary<object, object>(), 1144items: new Dictionary<object, object>(),
ImageTagHelperTest.cs (1)
339items: new Dictionary<object, object>(),
InputTagHelperTest.cs (38)
87items: new Dictionary<object, object>(), 135items: new Dictionary<object, object>(), 182items: new Dictionary<object, object>(), 226items: new Dictionary<object, object>(), 279var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 324var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 378var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 434var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 485var context = new TagHelperContext(expectedAttributes, new Dictionary<object, object>(), "test"); 541var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 643items: new Dictionary<object, object>(), 722items: new Dictionary<object, object>(), 793items: new Dictionary<object, object>(), 887var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 941var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1001var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1061var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1121var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1156items: new Dictionary<object, object>(), 1256items: new Dictionary<object, object>(), 1304new Dictionary<string, object> { { "type", "hidden" } })) // htmlAttributes 1364var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 1422items: new Dictionary<object, object>(), 1522items: new Dictionary<object, object>(), 1634items: new Dictionary<object, object>(), 1759items: new Dictionary<object, object>(), 1783var htmlAttributes = new Dictionary<string, object> 1832items: new Dictionary<object, object>(), 1844var htmlAttributes = new Dictionary<string, object> 1901items: new Dictionary<object, object>(), 1913var htmlAttributes = new Dictionary<string, object> 1995items: new Dictionary<object, object>(), 2007var htmlAttributes = new Dictionary<string, object> 2075items: new Dictionary<object, object>(), 2137items: new Dictionary<object, object>(), 2205items: new Dictionary<object, object>(), 2271items: new Dictionary<object, object>(), 2329items: new Dictionary<object, object>(),
LabelTagHelperTest.cs (2)
186items: new Dictionary<object, object>(), 311items: new Dictionary<object, object>(),
LinkTagHelperTest.cs (1)
1150items: new Dictionary<object, object>(),
OptionTagHelperTest.cs (3)
401items: new Dictionary<object, object>(), 473items: new Dictionary<object, object>(), 537items: new Dictionary<object, object>(),
PartialTagHelperTest.cs (1)
854new Dictionary<object, object>(),
PersistComponentStateTagHelperTest.cs (1)
243new Dictionary<object, object>(),
PrerenderComponentApplicationStoreTest.cs (2)
17var state = new Dictionary<string, byte[]>() 35var expected = new Dictionary<string, ReadOnlySequence<byte>>()
ProtectedPrerenderComponentApplicationStateTest.cs (3)
24var state = new Dictionary<string, byte[]>() 40var expectedState = new Dictionary<string, byte[]>() 61var expectedState = new Dictionary<string, byte[]>()
RenderAtEndOfFormTagHelperTest.cs (2)
64new Dictionary<object, object>(), 92items: new Dictionary<object, object>(),
ScriptTagHelperTest.cs (9)
714new Dictionary<string, string> 719new Dictionary<string, IReadOnlyDictionary<string, string>> 721["development"] = new Dictionary<string, string> 727new Dictionary<string, string> 759new Dictionary<string, string> 764new Dictionary<string, IReadOnlyDictionary<string, string>> 766["development"] = new Dictionary<string, string> 772new Dictionary<string, string> 1099items: new Dictionary<object, object>(),
SelectTagHelperTest.cs (10)
107var attributeData = new Dictionary<string, string>(StringComparer.Ordinal) 202items: new Dictionary<object, object>(), 292items: new Dictionary<object, object>(), 383items: new Dictionary<object, object>(), 472items: new Dictionary<object, object>(), 560items: new Dictionary<object, object>(), 643items: new Dictionary<object, object>(), 723var context = new TagHelperContext(new TagHelperAttributeList(), new Dictionary<object, object>(), "test"); 761var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test"); 811var tagHelperContext = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
TagHelperOutputExtensionsTest.cs (12)
342items: new Dictionary<object, object>(), 444items: new Dictionary<object, object>(), 475items: new Dictionary<object, object>(), 511items: new Dictionary<object, object>(), 542items: new Dictionary<object, object>(), 641new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 656new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 671new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 686new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 701new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 716new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 737new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
TestableHtmlGenerator.cs (1)
35validationAttributes: new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase))
TextAreaTagHelperTest.cs (3)
124items: new Dictionary<object, object>(), 178var context = new TagHelperContext(new TagHelperAttributeList(), new Dictionary<object, object>(), "test"); 217var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
ValidationMessageTagHelperTest.cs (8)
45items: new Dictionary<object, object>(), 117new Dictionary<object, object>(), 159new Dictionary<object, object>(), 212new Dictionary<object, object>(), 262items: new Dictionary<object, object>(), 335items: new Dictionary<object, object>(), 397items: new Dictionary<object, object>(), 438items: new Dictionary<object, object>(),
ValidationSummaryTagHelperTest.cs (10)
58items: new Dictionary<object, object>(), 123items: new Dictionary<object, object>(), 191items: new Dictionary<object, object>(), 224items: new Dictionary<object, object>(), 294items: new Dictionary<object, object>(), 378items: new Dictionary<object, object>(), 434items: new Dictionary<object, object>(), 493items: new Dictionary<object, object>(), 549items: new Dictionary<object, object>(), 610items: new Dictionary<object, object>(),
Microsoft.AspNetCore.Mvc.Test (2)
MvcServiceCollectionExtensionsTest.cs (1)
475return new Dictionary<Type, Type[]>()
Routing\ActionConstraintMatcherPolicyTest.cs (1)
349new DataTokensMetadata(new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.Testing (2)
DeferredHostBuilder.cs (1)
13public IDictionary<object, object> Properties { get; } = new Dictionary<object, object>();
WebApplicationFactory.cs (1)
166config.AddInMemoryCollection(new Dictionary<string, string?>
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)
179var 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.Mvc.ViewFeatures.Test (104)
ControllerUnitTestabilityTests.cs (6)
324var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 360var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 397var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 436var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 474var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 508var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
CookieTempDataProviderTest.cs (6)
21private static readonly IDictionary<string, object> Dictionary = new Dictionary<string, object> 118var values = new Dictionary<string, object>(); 269var values = new Dictionary<string, object>(); 280tempDataProvider.SaveTempData(httpContext, new Dictionary<string, object>()); 298var input = new Dictionary<string, object> 341private readonly Dictionary<string, CookieInfo> _cookies = new Dictionary<string, CookieInfo>(StringComparer.OrdinalIgnoreCase);
DefaultHtmlGeneratorTest.cs (12)
116var htmlAttributes = new Dictionary<string, object> 171var htmlAttributes = new Dictionary<string, object> 201var htmlAttributes = new Dictionary<string, object> 225var htmlAttributes = new Dictionary<string, object> 249var htmlAttributes = new Dictionary<string, object> 271var htmlAttributes = new Dictionary<string, object> 293var htmlAttributes = new Dictionary<string, object> 316var htmlAttributes = new Dictionary<string, object> 369var htmlAttributes = new Dictionary<string, object> 399var htmlAttributes = new Dictionary<string, object> 424var htmlAttributes = new Dictionary<string, object> 471var htmlAttributes = new Dictionary<string, object>
Filters\ControllerSaveTempDataPropertyFilterTest.cs (4)
46new Dictionary<string, object>(), 92new Dictionary<string, object>(), 135new Dictionary<string, object>(), 174new Dictionary<string, object>(),
Filters\ControllerViewDataAttributeFilterTest.cs (2)
22var context = new ActionExecutingContext(actionContext, new IFilterMetadata[0], new Dictionary<string, object>(), controller); 40var context = new ActionExecutingContext(actionContext, new IFilterMetadata[0], new Dictionary<string, object>(), controller);
Infrastructure\DefaultTempDataSerializerTest.cs (3)
20var input = new Dictionary<string, object> 40var value = new Dictionary<string, int> 45var input = new Dictionary<string, object>
Infrastructure\TempDataSerializerTestBase.cs (17)
30var input = new Dictionary<string, object> 54var input = new Dictionary<string, object> 76var input = new Dictionary<string, object> 97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 160var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 204var input = new Dictionary<string, object> 226var input = new Dictionary<string, object> 247var input = new Dictionary<string, object> 268var input = new Dictionary<string, object> 289var input = new Dictionary<string, object> 309var value = new Dictionary<string, string> 314var input = new Dictionary<string, object> 334var value = new Dictionary<string, int> 339var input = new Dictionary<string, object>
Rendering\HtmlHelperCheckboxTest.cs (5)
113var attributes = new Dictionary<string, object> 502var dictionary = new Dictionary<string, object> { { "Property3", "Property3Value" } }; 528var attributes = new Dictionary<string, object> 707var attributes = new Dictionary<string, object> 732var attributes = new Dictionary<string, object> { { "Property3", "PropValue" } };
Rendering\HtmlHelperFormExtensionsTest.cs (2)
22new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "true" }, }, 34new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } },
Rendering\HtmlHelperFormTest.cs (8)
52new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, }, 54new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } } 58new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, }, 60new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } } 101new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, }, 103new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } } 107new Dictionary<string, object> { { "isprint", "false" }, { "showreviews", "false" }, }, 109new Dictionary<string, object> { { "p1-name", "p1-value" }, { "p2-name", "p2-value" } }
Rendering\HtmlHelperHiddenTest.cs (14)
24var htmlAttributes1 = new Dictionary<string, object> 39{ new Dictionary<string, object> { { "foo-baz", "BazValue" } }, expected2 }, 184var attributes = new Dictionary<string, object> { { "data-key", "value" } }; 310var attributes = new Dictionary<string, object> { { "baz", "BazValue" } }; 425var attributes = new Dictionary<string, object> 447var attributes = new Dictionary<string, object> 467var attributes = new Dictionary<string, object> 534var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 573var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 665var attributes = new Dictionary<string, object> { { "key", "value" } }; 731var attributes = new Dictionary<string, object> 809var attributes = new Dictionary<string, object> 876var attributes = new Dictionary<string, object> 986public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperPasswordTest.cs (5)
20new Dictionary<string, object> 185var attributes = new Dictionary<string, object> 242var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 293var attributes = new Dictionary<string, object> 533public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperTextAreaTest.cs (1)
148public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperTextBoxTest.cs (1)
166public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperValidationSummaryTest.cs (1)
19var dictionary = new Dictionary<string, object>
SessionStateTempDataProviderTest.cs (2)
14private static readonly IDictionary<string, object> Dictionary = new Dictionary<string, object> 101private readonly Dictionary<string, byte[]> _innerDictionary = new Dictionary<string, byte[]>();
TempDataDictionaryTest.cs (1)
147var data = new Dictionary<string, object>();
ViewComponentResultTest.cs (1)
216Arguments = new Dictionary<string, object> { ["name"] = "World!" },
ViewComponents\ContentViewComponentResultTest.cs (1)
59new Dictionary<string, object>(),
ViewComponents\DefaultViewComponentHelperTest.cs (1)
122var arguments = new Dictionary<string, object>
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
59new Dictionary<string, object>(),
ViewComponents\ViewComponentContextTest.cs (2)
38new Dictionary<string, object>(), 98new Dictionary<string, object>(),
ViewComponents\ViewViewComponentResultTest.cs (1)
539new Dictionary<string, object>(),
ViewComponentTests.cs (1)
268private readonly Dictionary<string, byte[]> _innerDictionary = new Dictionary<string, byte[]>();
ViewDataDictionaryTest.cs (6)
229{ typeof(Dictionary<string, object>), new Dictionary<string, object>() }, 471new { Foo = new Dictionary<string, object> { { "Bar", "Baz" } } }, 673viewData.Add("Foo", new Dictionary<string, object> { { "Bar", "Baz" } }); 687viewData.Add("Foo", new Dictionary<string, object> { { "NotBar", "Baz" } }); 701var value = new Dictionary<string, object> 703["Bar"] = new Dictionary<string, string>
Microsoft.AspNetCore.Mvc.Views.TestCommon (3)
TestFileProvider.cs (3)
11new Dictionary<string, IFileInfo>(StringComparer.Ordinal); 13new Dictionary<string, IDirectoryContents>(); 16new Dictionary<string, TestFileChangeToken>(StringComparer.Ordinal);
Microsoft.AspNetCore.OpenApi (21)
Extensions\JsonNodeSchemaExtensions.cs (1)
28private static readonly Dictionary<Type, OpenApiSchema> _simpleTypeToOpenApiSchema = new()
Extensions\JsonTypeInfoExtensions.cs (1)
14private static readonly Dictionary<Type, string> _simpleTypeToName = new()
Extensions\OpenApiSchemaExtensions.cs (2)
63Extensions = schema.Extensions != null ? new Dictionary<string, IOpenApiExtension>(schema.Extensions) : null, 66Annotations = schema.Annotations != null ? new Dictionary<string, object>(schema.Annotations) : null,
Schemas\OpenApiJsonSchema.Helpers.cs (2)
67var values = new Dictionary<string, T>(); 315schema.Annotations ??= new Dictionary<string, object>();
Services\OpenApiDocumentService.cs (9)
242var operations = new Dictionary<OperationType, OpenApiOperation>(); 246operation.Annotations ??= new Dictionary<string, object>(); 363Content = new Dictionary<string, OpenApiMediaType>() 500Content = new Dictionary<string, OpenApiMediaType>() 503var schema = new OpenApiSchema { Type = "object", Properties = new Dictionary<string, OpenApiSchema>() }; 537Properties = new Dictionary<string, OpenApiSchema> 573Properties = new Dictionary<string, OpenApiSchema> 601var propertySchema = new OpenApiSchema { Type = "object", Properties = new Dictionary<string, OpenApiSchema>() }; 656Content = new Dictionary<string, OpenApiMediaType>(),
Services\OpenApiGenerator.cs (3)
118var eligibileAnnotations = new Dictionary<int, (Type?, MediaTypeCollection)>(); 201var responseContent = new Dictionary<string, OpenApiMediaType>(); 273var requestBodyContent = new Dictionary<string, OpenApiMediaType>();
src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Transformers\Implementations\OpenApiSchemaReferenceTransformer.cs (1)
23document.Components.Schemas ??= new Dictionary<string, OpenApiSchema>();
Microsoft.AspNetCore.OpenApi.Microbenchmarks (3)
OpenApiSchemaComparerBenchmark.cs (2)
35Extensions = new Dictionary<string, IOpenApiExtension> 51Extensions = new Dictionary<string, IOpenApiExtension>
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.OpenApi.Tests (25)
Comparers\OpenApiSchemaComparerTests.cs (15)
50[new OpenApiSchema { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "string" } } }, new OpenApiSchema { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "string" } } }, true], 51[new OpenApiSchema { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "string" } } }, new OpenApiSchema { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "integer" } } }, false], 64[new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("value") } }, new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("value") } }, true], 65[new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("value") } }, new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("another value") } }, false], 66[new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("value") } }, new OpenApiSchema { Extensions = new Dictionary<string, IOpenApiExtension> { ["key2"] = new OpenApiString("value") } }, false], 118Extensions = new Dictionary<string, IOpenApiExtension> 139Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema() }, 147Annotations = new Dictionary<string, object> { ["key"] = "value" } 194modifiedSchema = new(originalSchema) { Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("another value") } }; 266modifiedSchema = new(originalSchema) { Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Type = "integer" } } };
Extensions\OpenApiSchemaExtensionsTests.cs (8)
28Extensions = new Dictionary<string, IOpenApiExtension> 49Properties = new Dictionary<string, OpenApiSchema> { ["name"] = new OpenApiSchema { Items = new OpenApiSchema() }, }, 57Annotations = new Dictionary<string, object> { ["x-schema-id"] = "value" } 116originalSchema.Extensions = new Dictionary<string, IOpenApiExtension> { ["key"] = new OpenApiString("another value") }; 270Properties = new Dictionary<string, OpenApiSchema> 276Properties = new Dictionary<string, OpenApiSchema> 298Properties = new Dictionary<string, OpenApiSchema> 317Properties = new Dictionary<string, OpenApiSchema>
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (1)
698public IDictionary<string, Parent> SelfReferenceDictionary { get; set; } = new Dictionary<string, Parent>();
Services\OpenApiSchemaService\OpenApiSchemaService.ResponseSchemas.cs (1)
574builder.MapGet("/", () => TypedResults.ValidationProblem(new Dictionary<string, string[]>
Microsoft.AspNetCore.OutputCaching (4)
CacheVaryByRules.cs (1)
21public IDictionary<string, string> VaryByValues => _varyByValues ??= new Dictionary<string, string>();
Memory\MemoryOutputCacheStore.cs (1)
12private readonly Dictionary<string, HashSet<string>> _taggedEntries = new();
OutputCacheOptions.cs (2)
55NamedPolicies ??= new Dictionary<string, IOutputCachePolicy>(StringComparer.OrdinalIgnoreCase); 77NamedPolicies ??= new Dictionary<string, IOutputCachePolicy>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
328private readonly Dictionary<string, byte[]?> _storage = new();
Microsoft.AspNetCore.Owin (5)
OwinEnvironment.cs (1)
50_entries = new Dictionary<string, FeatureMap>()
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.Owin.Tests (5)
OwinExtensionTests.cs (3)
46.Invoke(new Dictionary<string, object>()); 80.Invoke(new Dictionary<string, object>()); 113.Invoke(new Dictionary<string, object>());
OwinFeatureCollectionTests.cs (2)
25var env = new Dictionary<string, object> 44var env = 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\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
47_innerDictionary = new Dictionary<TKey, TValue>(_sourceDictionary,
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.Runtime.Test (16)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (15)
21items: new Dictionary<object, object>(), 44items: new Dictionary<object, object>(), 69items: new Dictionary<object, object>(), 104items: new Dictionary<object, object>(), 123items: new Dictionary<object, object>(), 149var items = new Dictionary<object, object>(); 167var updatedItems = new Dictionary<object, object>(); 209var expectedItems = new Dictionary<object, object> 273items: new Dictionary<object, object>(), 301items: new Dictionary<object, object>(), 323items: new Dictionary<object, object>(), 350items: new Dictionary<object, object>(), 377items: new Dictionary<object, object>(), 407items: new Dictionary<object, object>(), 434items: new Dictionary<object, object>(),
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (1)
49var parentComplexObject = new Dictionary<string, int>(StringComparer.Ordinal);
Microsoft.AspNetCore.Razor.Test (4)
TagHelpers\TagHelperContextTest.cs (4)
15var initialItems = new Dictionary<object, object> 19var expectedItems = new Dictionary<object, object> 47var expectedItems = new Dictionary<object, object> 72var expectedItems = new Dictionary<object, object>
Microsoft.AspNetCore.RequestDecompression (1)
RequestDecompressionOptions.cs (1)
14public IDictionary<string, IDecompressionProvider> DecompressionProviders { get; } = new Dictionary<string, IDecompressionProvider>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
369private readonly IDictionary<string, IResponseCacheEntry> _storage = new Dictionary<string, IResponseCacheEntry>();
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
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.Rewrite.Tests (8)
ApacheModRewrite\FlagParserTest.cs (5)
14var dict = new Dictionary<FlagType, string>(); 25var dict = new Dictionary<FlagType, string>(); 38var dict = new Dictionary<FlagType, string>(); 79return (other ?? new Dictionary<TKey, TValue>()) 81.SequenceEqual((dictionary ?? new Dictionary<TKey, TValue>())
IISUrlRewrite\InputParserTests.cs (1)
89var variablesDict = new Dictionary<string, string>()
IISUrlRewrite\ServerVariableTests.cs (2)
63httpContext.Features.Set<IServerVariablesFeature>(new TestServerVariablesFeature(new Dictionary<string, string> 111httpContext.Features.Set<IServerVariablesFeature>(new TestServerVariablesFeature(new Dictionary<string, string>
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)
198var 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)
233var 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\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\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Matching\HttpMethodPolicyJumpTableBenchmark.cs (1)
14private Dictionary<string, int> _destinations = new();
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
66new Dictionary<string, object>(),
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Routing.Tests (25)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
249httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (3)
160httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues> 198httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>() 580httpContext.Request.Query = new QueryCollection(new Dictionary<string, StringValues>
ConstraintMatcherTest.cs (8)
23var constraints = new Dictionary<string, IRouteConstraint> 50var constraints = new Dictionary<string, IRouteConstraint> 69var constraints = new Dictionary<string, IRouteConstraint> 84var constraints = new Dictionary<string, IRouteConstraint> 104var constraints = new Dictionary<string, IRouteConstraint> 124var constraints = new Dictionary<string, IRouteConstraint> 144var constraints = new Dictionary<string, IRouteConstraint> 164var constraints = new Dictionary<string, IRouteConstraint>
DecisionTreeBuilderTest.cs (1)
198Criteria = new Dictionary<string, DecisionCriterionValue>(StringComparer.OrdinalIgnoreCase);
Matching\RouteMatcherBuilder.cs (1)
66new Dictionary<string, object>(),
MetadataTest.cs (1)
12var metadata = new DataTokensMetadata(new Dictionary<string, object>
RouteTest.cs (7)
308var constraints = new Dictionary<string, object>(); 1538new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } }, 1539new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } }, 1543new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } }, 1547new Dictionary<string,object>(), 1551new Dictionary<string, object>() 1555new Dictionary<string, object> { { "key1", "data1" }, { "key2", 13 } },
Tree\TreeRouterTest.cs (3)
803var values = new Dictionary<string, object> 860var values = new Dictionary<string, object> 892var values = new Dictionary<string, object>
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Server.HttpSys (4)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
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.HttpSys.FunctionalTests (6)
RequestHeaderTests.cs (5)
116var headerDictionary = new HeaderDictionary(new Dictionary<string, StringValues> { 139var headerDictionary = new HeaderDictionary(new Dictionary<string, StringValues> { 170var headerDictionary = new HeaderDictionary(new Dictionary<string, StringValues> { 199var headerDictionary = new Dictionary<string, string> 224var headerDictionary = new Dictionary<string, string>
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Server.IIS (4)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
752var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
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.IntegrationTesting.IIS (2)
IISDeploymentParameters.cs (2)
44public IDictionary<string, string> WebConfigBasedEnvironmentVariables { get; set; } = new Dictionary<string, string>(); 46public IDictionary<string, string> HandlerSettings { get; set; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Server.Kestrel.Core (12)
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)
148internal 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);
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
11private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (36)
CertificatePathWatcherTests.cs (3)
476var dict = new Dictionary<string, object>(pairs); 521private readonly Dictionary<string, ConfigurationReloadToken> _changeTokens = new(); 522private readonly Dictionary<string, DateTimeOffset?> _lastModifiedTimes = new();
Http2\Http2HPackEncoderTests.cs (2)
579enumerator.Initialize(new Dictionary<string, StringValues>()); 593enumerator.Initialize(new Dictionary<string, StringValues>());
HttpParserTests.cs (1)
885public Dictionary<string, string> Headers { get; } = new Dictionary<string, string>();
SniOptionsSelectorTests.cs (24)
27var sniDictionary = new Dictionary<string, SniConfig> 94var sniDictionary = new Dictionary<string, SniConfig> 140var sniDictionary = new Dictionary<string, SniConfig> 188var sniDictionary = new Dictionary<string, SniConfig> 252var sniDictionary = new Dictionary<string, SniConfig> 297var sniDictionary = new Dictionary<string, SniConfig> 339new Dictionary<string, SniConfig>(), 355var sniDictionary = new Dictionary<string, SniConfig> 387var sniDictionary = new Dictionary<string, SniConfig> 414var sniDictionary = new Dictionary<string, SniConfig> 455var sniDictionary = new Dictionary<string, SniConfig> 508var sniDictionary = new Dictionary<string, SniConfig> 528var sniDictionary = new Dictionary<string, SniConfig> 552var sniDictionary = new Dictionary<string, SniConfig> 580var sniDictionary = new Dictionary<string, SniConfig> 611var sniDictionary = new Dictionary<string, SniConfig> 644var sniDictionary = new Dictionary<string, SniConfig> 674var sniDictionary = new Dictionary<string, SniConfig> 708var sniDictionary = new Dictionary<string, SniConfig> 737var sniDictionary = new Dictionary<string, SniConfig> 773var sniDictionary = new Dictionary<string, SniConfig> 915public Dictionary<object, string> CertToPathDictionary { get; } = new Dictionary<object, string>(ReferenceEqualityComparer.Instance); 916public Dictionary<object, X509Certificate2Collection> CertToFullChain { get; } = new Dictionary<object, X509Certificate2Collection>(ReferenceEqualityComparer.Instance); 942public override IDictionary<object, object> Items { get; set; } = new Dictionary<object, object>();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
20new Dictionary<string, CertificateAuthority>(); 23= new Dictionary<string, CertificateAuthority>();
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (2)
962public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 963public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (2)
369public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 370public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
InMemoryTransportBenchmark.cs (1)
109new Dictionary<EndPoint, IReadOnlyList<InMemoryConnection>>();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (2)
659public readonly Dictionary<string, string> DecodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 844var settings = new Dictionary<long, long>();
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
11private readonly Dictionary<EncodedKey, byte[]> _store = new Dictionary<EncodedKey, byte[]>();
Microsoft.AspNetCore.Shared.Tests (22)
CopyOnWriteDictionaryHolderTest.cs (3)
17var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 43var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 68var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
CopyOnWriteDictionaryTest.cs (2)
63var sourceDictionary = new Dictionary<string, object> 87var sourceDictionary = new Dictionary<string, object>
runtime\Http2\HPackDecoderTest.cs (2)
962public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 963public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
runtime\Http3\QPackDecoderTest.cs (2)
369public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 370public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
47_innerDictionary = new Dictionary<TKey, TValue>(_sourceDictionary,
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\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
82_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer); 519_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer);
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
752var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
src\Shared\PropertyHelper\PropertyHelper.cs (2)
326return new Dictionary<string, object?>(dictionary, StringComparer.OrdinalIgnoreCase); 329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
11private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnection.cs (3)
780readers = new Dictionary<string, object>(); 1195invocationMessage.Headers ??= new Dictionary<string, string>(); 2120private readonly Dictionary<string, InvocationRequest> _pendingCalls = new Dictionary<string, InvocationRequest>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
3036new Dictionary<string, IHubProtocol>
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.Client.Tests (3)
HttpConnectionFactoryTests.cs (2)
84var testValues = new Dictionary<string, object> 87{ $"{nameof(HttpConnectionOptions.Headers)}", new Dictionary<string, string>() },
HubConnectionTests.ConnectionLifecycle.cs (1)
28private static readonly IDictionary<string, Func<HubConnection, Task>> MethodsThatRequireActiveConnection = new Dictionary<string, Func<HubConnection, Task>>()
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Internal\Protocol\HubMessageHelpers.cs (1)
18hubMessage.Headers = new Dictionary<string, string>();
Internal\Protocol\JsonHubProtocolTestsBase.cs (1)
20public static readonly IDictionary<string, string> TestHeaders = new Dictionary<string, string>
Internal\Protocol\MessagePackHubProtocolTestBase.cs (1)
26protected static readonly IDictionary<string, string> TestHeaders = new Dictionary<string, string>
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.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
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.SignalR.Tests (2)
HubConnectionHandlerTests.Activity.cs (2)
132var headers = new Dictionary<string, string> 262var headers = new Dictionary<string, string>
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.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
150private readonly Dictionary<string, IFileInfo> _files = new Dictionary<string, IFileInfo>(StringComparer.Ordinal);
Microsoft.AspNetCore.Tests (17)
WebApplicationTests.cs (17)
415builder.AddInMemoryCollection(new Dictionary<string, string> 423builder.AddInMemoryCollection(new Dictionary<string, string> 431builder.AddInMemoryCollection(new Dictionary<string, string> 439builder.AddInMemoryCollection(new Dictionary<string, string> 447builder.AddInMemoryCollection(new Dictionary<string, string> 455builder.AddInMemoryCollection(new Dictionary<string, string> 1082builder.AddInMemoryCollection(new Dictionary<string, string> 1123config.AddInMemoryCollection(new Dictionary<string, string>() 1132config.AddInMemoryCollection(new Dictionary<string, string>() 1145config.AddInMemoryCollection(new Dictionary<string, string>() 1182config.AddInMemoryCollection(new Dictionary<string, string>() 1192config.AddInMemoryCollection(new Dictionary<string, string>() 1201builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>() 1227config.AddInMemoryCollection(new Dictionary<string, string>() 1245builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>() 1522builder.Configuration.AddInMemoryCollection(new Dictionary<string, string> 2307builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnExpectations.cs (1)
11private readonly Dictionary<string, Expectation> _expectations = new Dictionary<string, Expectation>();
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.WebUtilities (5)
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)
127return new Dictionary<string, StringValues>();
ReasonPhrases.cs (1)
13private static readonly Dictionary<int, string> Phrases = new()
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.WebUtilities.Tests (2)
QueryHelpersTests.cs (2)
158var queryStrings = new Dictionary<string, string?>() 191var queryStrings = new Dictionary<string, StringValues>()
Microsoft.Build (278)
BackEnd\BuildManager\BuildManager.cs (7)
293_buildSubmissions = new Dictionary<int, BuildSubmissionBase>(); 297_nodeIdToKnownConfigurations = new Dictionary<int, HashSet<int>>(); 298_unnamedProjectInstanceToNames = new Dictionary<ProjectInstance, string>(); 303_projectStartedEvents = new Dictionary<int, BuildEventArgs>(); 1968new ReadOnlyDictionary<ProjectGraphNode, BuildResult>(resultsPerNode ?? new Dictionary<ProjectGraphNode, BuildResult>()))); 1993var buildingNodes = new Dictionary<BuildSubmissionBase, ProjectGraphNode>(); 1994var resultsPerNode = new Dictionary<ProjectGraphNode, BuildResult>(projectGraph.ProjectNodes.Count);
BackEnd\BuildManager\BuildParameters.cs (2)
277? new Dictionary<string, string>(other._buildProcessEnvironment) 345_buildProcessEnvironment ?? new Dictionary<string, string>(0));
BackEnd\BuildManager\CacheAggregator.cs (1)
69var 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 (2)
123_serverEnvironmentVariables = new(); 503Dictionary<string, string> envVars = new();
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
36_componentEntriesByType = new Dictionary<BuildComponentType, BuildComponentEntry>();
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
137_requestsByGlobalRequestId = new Dictionary<int, BuildRequestEntry>();
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (4)
365_outstandingResults ??= new Dictionary<int, BuildResult>(); 427_outstandingResults = new Dictionary<int, BuildResult>(_outstandingRequests.Count); 504_outstandingRequests ??= new Dictionary<int, BuildRequest>(); 512_unresolvedConfigurations ??= new Dictionary<int, List<BuildRequest>>();
BackEnd\Components\Caching\ConfigCache.cs (8)
43_configurations = new Dictionary<int, BuildRequestConfiguration>(); 44_configurationIdsByMetadata = new Dictionary<ConfigurationMetadata, int>(); 199_configurations = new Dictionary<int, BuildRequestConfiguration>(); 200_configurationIdsByMetadata = new Dictionary<ConfigurationMetadata, int>(); 227Dictionary<int, BuildRequestConfiguration> configurationsToKeep = new Dictionary<int, BuildRequestConfiguration>(); 228Dictionary<ConfigurationMetadata, int> configurationIdsByMetadataToKeep = new Dictionary<ConfigurationMetadata, int>(); 377capacity => new Dictionary<int, BuildRequestConfiguration>(capacity)); 383capacity => new Dictionary<ConfigurationMetadata, int>(capacity));
BackEnd\Components\Communications\DetouredNodeLauncher.cs (1)
147var envVars = new Dictionary<string, string>();
BackEnd\Components\Communications\NodeManager.cs (1)
78_nodeIdToProvider = new Dictionary<int, INodeProvider>();
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (3)
228_nodeContexts = new Dictionary<HandshakeOptions, NodeContext>(); 229_nodeIdToPacketFactory = new Dictionary<int, INodePacketFactory>(); 230_nodeIdToPacketHandler = new Dictionary<int, INodePacketHandler>();
BackEnd\Components\Logging\LoggingService.cs (1)
302_eventSinkDictionary = new Dictionary<int, IBuildEventSink>();
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
807Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties)
BackEnd\Components\ProjectCache\ProjectCacheDescriptor.cs (1)
16PluginSettings = pluginSettings ?? new Dictionary<string, string>(0);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (4)
183var pluginSettings = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 329Dictionary<string, string> globalProperties = new(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 625var globalProperties = new Dictionary<string, string>(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 692var globalProperties = new Dictionary<string, string>(templateGlobalProperties, StringComparer.OrdinalIgnoreCase)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (2)
215var itemListsToBeBatched = new Dictionary<string, ICollection<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default); 392var itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
664_addTable = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
616var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\Lookup.cs (6)
507allModifies ??= new Dictionary<ProjectItemInstance, MetadataModifications>(modifies.Count); 759PrimaryModifyTable ??= new ItemTypeToItemsMetadataUpdateDictionary(MSBuildNameIgnoreCaseComparer.Default); 763modifiesOfType = new Dictionary<ProjectItemInstance, MetadataModifications>(); 796_cloneTable ??= new Dictionary<ProjectItemInstance, ProjectItemInstance>(); 1028_modifications = new Dictionary<string, MetadataModification>(MSBuildNameIgnoreCaseComparer.Default); 1038_modifications = new Dictionary<string, MetadataModification>(other._modifications, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1016results = new Dictionary<int, BuildResult>();
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (6)
415itemVectorTransformsInTargetInputs = new ItemVectorPartitionCollection(MSBuildNameIgnoreCaseComparer.Default); 801itemVectors = new ItemVectorPartitionCollection(MSBuildNameIgnoreCaseComparer.Default); 802discreteItems = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 844itemVectorCollection[itemVectorType] = new ItemVectorPartition(MSBuildNameIgnoreCaseComparer.Default); 1264(s_sortInputsOutputs ? (IDictionary<string, object>)new SortedDictionary<string, object>(StringComparer.OrdinalIgnoreCase) : (IDictionary<string, object>)new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)); 1270(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 (2)
323lookupHash ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 533taskIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
984targetOutputsPerProject.Add(new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase)); 1162new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase) 1224targetOutputsPerProject?.Add(new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase));
BackEnd\Components\Scheduler\SchedulableRequest.cs (2)
137_requestsWeAreBlockedBy = new Dictionary<BlockingRequestKey, SchedulableRequest>(); 140_timeRecords = new Dictionary<SchedulableRequestState, ScheduleTimeRecord>(5);
BackEnd\Components\Scheduler\Scheduler.cs (3)
542_availableNodes = new Dictionary<int, NodeInfo>(8); 1291Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 2307Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count);
BackEnd\Components\Scheduler\SchedulingData.cs (12)
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); 64private readonly Dictionary<int, SchedulableRequest> _executingRequestByNode = new Dictionary<int, SchedulableRequest>(32); 69private readonly Dictionary<int, HashSet<SchedulableRequest>> _readyRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32); 74private readonly Dictionary<int, HashSet<int>> _configurationsByNode = new Dictionary<int, HashSet<int>>(32); 82private readonly Dictionary<int, int> _configurationToNode = new Dictionary<int, int>(32); 87private readonly Dictionary<int, HashSet<SchedulableRequest>> _configurationToRequests = new Dictionary<int, HashSet<SchedulableRequest>>(32); 105private 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)
414_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 471_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>();
BackEnd\Components\SdkResolution\SdkResult.cs (2)
88translator.TranslateDictionary(ref _propertiesToAdd, count => new Dictionary<string, string>(count, StringComparer.OrdinalIgnoreCase)); 92dictionaryCreator: count => new Dictionary<string, SdkResultItem>(count, StringComparer.OrdinalIgnoreCase));
BackEnd\Shared\BuildAbortedException.cs (1)
79return new Dictionary<string, string>()
BackEnd\Shared\BuildRequestConfiguration.cs (2)
454Dictionary<string, string> globalProperties = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 605new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase));
BackEnd\Shared\BuildResult.cs (1)
647Dictionary<string, string> additionalEntries = new();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
157private readonly Dictionary<string, TaskFactoryWrapper> _intrinsicTasks = new Dictionary<string, TaskFactoryWrapper>(StringComparer.OrdinalIgnoreCase); 361var setParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BuildCheck\Checks\DoubleWritesCheck.cs (1)
50private readonly Dictionary<string, (string projectFilePath, string taskName)> _filesWritten = new(StringComparer.CurrentCultureIgnoreCase);
BuildCheck\Checks\PropertiesUsageCheck.cs (5)
123private Dictionary<string, IMSBuildElementLocation?> _writenProperties = new(MSBuildNameIgnoreCaseComparer.Default); 128private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsInScope = new(MSBuildNameIgnoreCaseComparer.Default); 129private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsOutOfScope = new(MSBuildNameIgnoreCaseComparer.Default); 241_writenProperties = new Dictionary<string, IMSBuildElementLocation?>(MSBuildNameIgnoreCaseComparer.Default); 242_uninitializedReadsInScope = new Dictionary<string, IMSBuildElementLocation>(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
40private readonly Dictionary<string, string> _projectsPerOutputPath = new(StringComparer.CurrentCultureIgnoreCase);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (2)
33_eventHandlersFull = new() 50_eventHandlersRestore = new()
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
550private readonly Dictionary<int, List<BuildEventArgs>> _deferredEvalDiagnostics = new();
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
49Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(); 129Dictionary<string, TaskInvocationCheckData.TaskParameter> taskParameters = new();
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
165var filteredConfig = new Dictionary<string, string>();
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
80var resultingDictionary = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
BuildCheck\Infrastructure\TracingReporter.cs (1)
36=> new Dictionary<string, TimeSpan>()
Collections\ItemDictionary.cs (6)
56_itemLists = new Dictionary<string, LinkedList<T>>(MSBuildNameIgnoreCaseComparer.Default); 57_nodes = new Dictionary<T, LinkedListNode<T>>(); 67_itemLists = new Dictionary<string, LinkedList<T>>(initialItemTypesCapacity, MSBuildNameIgnoreCaseComparer.Default); 68_nodes = new Dictionary<T, LinkedListNode<T>>(initialItemsCapacity); 77_itemLists = new Dictionary<string, LinkedList<T>>(MSBuildNameIgnoreCaseComparer.Default); 78_nodes = new Dictionary<T, LinkedListNode<T>>();
Collections\LookasideStringInterner.cs (1)
49_stringToIdsMap = new Dictionary<string, int>(defaultCollectionSize, comparer);
Collections\MultiDictionary.cs (2)
68_backing = new Dictionary<K, SmallList<V>>(keyComparer); 158_backing = new Dictionary<K, SmallList<V>>();
Collections\PropertyDictionary.cs (1)
521var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default);
Collections\WeakValueDictionary.cs (1)
47_dictionary = new Dictionary<K, WeakReference<V>>(_capacity, keyComparer);
CommunicationsUtilities.cs (1)
294Dictionary<string, string> table = new Dictionary<string, string>(200, StringComparer.OrdinalIgnoreCase); // Razzle has 150 environment variables
Construction\ProjectTaskElement.cs (1)
149var parametersClone = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Construction\Solution\ProjectInSolution.cs (1)
136_projectConfigurations = new Dictionary<string, ProjectConfigurationInSolution>(StringComparer.OrdinalIgnoreCase);
Construction\Solution\SolutionFile.cs (8)
335_projectsByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 336_solutionFoldersByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 341_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>(); 740_projectsByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 741_solutionFoldersByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 746_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>(); 801var projectsByUniqueName = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 1708var rawProjectConfigurationsEntries = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Construction\Solution\SolutionProjectGenerator.cs (3)
182_globalProperties = globalProperties ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 249new Dictionary<string, string> 2063var properties = new Dictionary<string, string>(_metaprojectGlobalProperties.Length, StringComparer.OrdinalIgnoreCase);
Definition\Project.cs (3)
2152var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 2590var removeElementCache = new Dictionary<string, CumulativeRemoveElementData>(projectItemElements.Count); 4268ConditionedProperties = new Dictionary<string, List<string>>(MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectCollection.cs (4)
569dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default); 1798_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase); 2444private Dictionary<string, List<Project>> _loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase); 2604_loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase);
Definition\Toolset.cs (1)
323_subToolsets = subToolsetsAsDictionary ?? new Dictionary<string, SubToolset>(subToolsets);
Definition\ToolsetConfigurationReader.cs (3)
74_projectImportSearchPathsCache = new Dictionary<string, Dictionary<string, ProjectImportPathMatch>>(StringComparer.OrdinalIgnoreCase); 217kindToPathsCache = new Dictionary<string, ProjectImportPathMatch>(); 235var pathsTable = new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetLocalReader.cs (1)
54return new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetReader.cs (1)
459Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsetRegistryReader.cs (1)
280return new Dictionary<string, ProjectImportPathMatch>();
Errors\InternalLoggerException.cs (1)
147return new Dictionary<string, string>()
Errors\InvalidProjectFileException.cs (1)
134return new Dictionary<string, string>()
Errors\InvalidToolsetDefinitionException.cs (1)
115return new Dictionary<string, string>()
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Evaluation\Evaluator.cs (6)
249_importsSeen = new Dictionary<string, ProjectImportElement>(StringComparer.OrdinalIgnoreCase); 251_projectSupportsReturnsAttribute = new Dictionary<ProjectRootElement, bool>(); 754Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 755Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 757Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets = new Dictionary<string, LinkedListNode<ProjectTargetElement>>(StringComparer.OrdinalIgnoreCase); 1941escapedMetadata = new Dictionary<string, string>(item.Value.Metadata.Count, StringComparer.OrdinalIgnoreCase);
Evaluation\EvaluatorMetadataTable.cs (1)
99_metadata = new Dictionary<string, EvaluatorMetadata>(_capacity, MSBuildNameIgnoreCaseComparer.Default);
Evaluation\Expander.cs (1)
2543Dictionary<string, string> directoryNameTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\ExpressionShredder.cs (1)
449pair.Metadata ??= new Dictionary<string, MetadataReference>(MSBuildNameIgnoreCaseComparer.Default);
Evaluation\IntrinsicFunctions.cs (1)
488IDictionary<string, string> parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
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)
107_dictionaryBuilder = new Dictionary<string, ItemDataCollectionValue<I>>(StringComparer.OrdinalIgnoreCase);
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
134capturedItemsFromReferencedItemTypes ??= new Dictionary<string, I>(StringComparer.OrdinalIgnoreCase);
Evaluation\Preprocessor.cs (2)
53private readonly Dictionary<XmlDocument, List<ResolvedImport>> _implicitImportsByProject = new Dictionary<XmlDocument, List<ResolvedImport>>(); 64_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\ToolsetProvider.cs (2)
39_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase); 104_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
FileMatcher.cs (1)
2478searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase);
Graph\GraphBuilder.cs (5)
136Dictionary<ProjectGraphNode, HashSet<ProjectGraphNode>> transitiveReferenceCache = new(allParsedProjects.Count); 202var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>(); 308Dictionary<string, ImmutableDictionary<string, string>> globalPropertiesForProjectConfiguration = new(StringComparer.OrdinalIgnoreCase); 312Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new(); 444var nodeStates = new Dictionary<ProjectGraphNode, NodeVisitationState>();
Graph\ParallelWorkSet.cs (1)
49var completedWork = new Dictionary<TKey, TResult>(_inProgressOrCompletedWork.Count);
Instance\HostServices.cs (5)
143_hostObjectMap ??= new Dictionary<string, HostObjects>(StringComparer.OrdinalIgnoreCase); 172_hostObjectMap ??= new Dictionary<string, HostObjects>(StringComparer.OrdinalIgnoreCase); 222_projectAffinities = new Dictionary<string, NodeAffinity>(StringComparer.OrdinalIgnoreCase); 313var hostObjectMap = new Dictionary<string, HostObjects>(); 419_hostObjects = new Dictionary<TargetTaskKey, MonikerNameOrITaskHost>(1);
Instance\ProjectInstance.cs (9)
561thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>(); 562thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>(); 1080Dictionary<string, string> dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default); 2463translator.TranslateDictionary(ref _beforeTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count)); 2464translator.TranslateDictionary(ref _afterTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count)); 2548Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase); 3017clone = new Dictionary<string, TValue>(0); 3021clone = new Dictionary<string, TValue>(dictionary, strComparer); 3312var projectItemToInstanceMap = keepEvaluationCache ? new Dictionary<ProjectItem, ProjectItemInstance>(items.Count) : null;
Instance\ProjectItemInstance.cs (2)
1492Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(metadata.Count, MSBuildNameIgnoreCaseComparer.Default); 1509Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectTaskInstance.cs (1)
238Dictionary<string, string> filteredParameters = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Instance\TaskFactories\AssemblyTaskFactory.cs (6)
49private Dictionary<ITask, AppDomain> _tasksAndAppDomains = new Dictionary<ITask, AppDomain>(); 265_factoryIdentityParameters = new Dictionary<string, string>(taskFactoryIdentityParameters, StringComparer.OrdinalIgnoreCase); 349mergedParameters ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 558mergedParameters = new Dictionary<string, string>(taskIdentityParameters, StringComparer.OrdinalIgnoreCase); 562mergedParameters = new Dictionary<string, string>(factoryIdentityParameters, StringComparer.OrdinalIgnoreCase); 577mergedParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\TaskFactories\TaskHostTask.cs (2)
163_setParameters = new Dictionary<string, object>(); 283new Dictionary<string, string>(_buildComponentHost.BuildParameters.GlobalProperties),
Instance\TaskFactoryWrapper.cs (4)
283propertyInfoCache = new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 297namesOfPropertiesWithAmbiguousMatches = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 307namesOfPropertiesWithRequiredAttribute = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 318namesOfPropertiesWithOutputAttribute = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\TaskRegistry.cs (11)
163private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>(); 450? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 451: new Dictionary<string, string>(initialCount.Value, StringComparer.OrdinalIgnoreCase); 754? new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(capacity.Value, RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact) 755: new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact); 807return new Dictionary<string, string>(initialState, StringComparer.OrdinalIgnoreCase); 812return new Dictionary<string, string>(initialCount.Value, StringComparer.OrdinalIgnoreCase); 815return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1270_taskNamesCreatableByFactory = new Dictionary<RegisteredTaskIdentity, object>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact); 1678_usingTaskParameters ??= new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 1770translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase));
Logging\BaseConsoleLogger.cs (1)
679table = new Dictionary<string, PerformanceCounter>(StringComparer.OrdinalIgnoreCase);
Logging\BinaryLogger\BuildEventArgsReader.cs (4)
640globalProperties = ReadStringDictionary() ?? new Dictionary<string, string>(); 718var d = new Dictionary<EvaluationLocation, ProfiledLocation>(count); 1262var rawTracingData = ReadStringDictionary() ?? new Dictionary<string, string>(); 1516var 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); 207propertyOutputMap = new Dictionary<(int, int), string>(); 209_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 424var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 1667table = new Dictionary<string, PerformanceCounter>(StringComparer.OrdinalIgnoreCase); 1721? new Dictionary<BuildEventContext, object>() 1722: 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>();
LogMessagePacketBase.cs (2)
271private static Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 276private static Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
26_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
PlatformNegotiation.cs (1)
106Dictionary<string, string> table = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
PropertyParser.cs (2)
33propertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 89finalPropertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
TaskHostConfiguration.cs (3)
178_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 200_taskParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 208_globalParameters = globalParameters ?? new Dictionary<string, string>();
TaskHostTaskComplete.cs (3)
120_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 133_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 198_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskParameter.cs (6)
304escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 322escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 431escapedGenericWrappedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 854_customEscapedMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 924IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 986IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
ToolsetElement.cs (3)
171private Dictionary<string, string> _previouslySeenOS = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 346private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 525private Dictionary<string, string> _previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Tracing.cs (1)
58s_counts = new Dictionary<string, int>();
TypeLoader.cs (2)
195Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length); 315_publicTypeNameToType = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.BuildCheck.UnitTests (25)
CheckConfiguration_Test.cs (5)
27var buildConfig = CheckConfiguration.Create(new Dictionary<string, string>()); 47var config = new Dictionary<string, string>() 67var config = new Dictionary<string, string>() 87var config = new Dictionary<string, string>() 106var config = new Dictionary<string, string>()
ConfigurationProvider_Tests.cs (1)
36configs.ShouldBe(new Dictionary<string, string>());
CustomConfigurationData_Tests.cs (9)
53var config1 = new Dictionary<string, string>() 58var config2 = new Dictionary<string, string>() 72var config = new Dictionary<string, string>() 85var config1 = new Dictionary<string, string>() 90var config2 = new Dictionary<string, string>() 104var config1 = new Dictionary<string, string>() 109var config2 = new Dictionary<string, string>() 123var config1 = new Dictionary<string, string>() 129var config2 = new Dictionary<string, string>()
DoubleWritesAnalyzer_Tests.cs (3)
44_registrationContext.TriggerTaskInvocationAction(MakeTaskInvocationData("Copy", new Dictionary<string, TaskInvocationCheckData.TaskParameter> 49_registrationContext.TriggerTaskInvocationAction(MakeTaskInvocationData("Copy", new Dictionary<string, TaskInvocationCheckData.TaskParameter> 67_registrationContext.TriggerTaskInvocationAction(MakeTaskInvocationData(taskName, new Dictionary<string, TaskInvocationCheckData.TaskParameter>
SharedOutputPathCheck_Tests.cs (6)
33evaluatedProperties ?? new Dictionary<string, string>()); 43new Dictionary<string, string> { 53new Dictionary<string, string> { 72new Dictionary<string, string> { 80new Dictionary<string, string> { 111var evaluatedProperties = new Dictionary<string, string> {
TaskInvocationAnalysisDataTests.cs (1)
84var request = new BuildRequestData(testProject.ProjectFile, new Dictionary<string, string?>(), MSBuildConstants.CurrentToolsVersion, [], null, BuildRequestDataFlags.None);
Microsoft.Build.CommandLine.UnitTests (11)
CommandLineSwitches_Tests.cs (2)
1163new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 1164new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
TerminalLogger_Tests.cs (6)
136return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>()) 491new Dictionary<string, string?>() { { "displayName", "testName1" }, { "localizedResult", "passed" } })); 496new Dictionary<string, string?>() { { "displayName", "testName2" }, { "localizedResult", "skipped" } })); 501new Dictionary<string, string?>() { { "total", "10" }, { "passed", "7" }, { "skipped", "2" }, { "failed", "1" } })); 665pse.GlobalProperties = new Dictionary<string, string>() { ["TargetFramework"] = "tfName" }; 678pse2.GlobalProperties = new Dictionary<string, string>() { ["TargetFramework"] = "tf2" };
XMake_Tests.cs (3)
1563IDictionary<string, string> environmentVars = new Dictionary<string, string> 2340IDictionary<string, string> preExistingProps = new Dictionary<string, string> 2387IDictionary<string, string> preExistingProps = new Dictionary<string, string>
Microsoft.Build.Conversion.Core (1)
ProjectFileConverter.cs (1)
556this.propertiesToEscape = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Engine (37)
Engine\BatchingEngine.cs (1)
386Dictionary<string, string> itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, StringComparer.OrdinalIgnoreCase);
Engine\Engine.cs (1)
356this.toolsetStateMap = new Dictionary<string, ToolsetState>(StringComparer.OrdinalIgnoreCase);
Engine\EngineLoggingServicesInProc.cs (1)
44this.eventSources = new Dictionary<int, EventSource>();
Engine\EngineProxy.cs (1)
542targetOutputsPerProject[i] = new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase);
Engine\Expander.cs (1)
152itemMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Engine\Scheduler.cs (1)
49this.handleIdToScheduleRecord = new Dictionary<ScheduleRecordKey, ScheduleRecord>();
Engine\SchedulerRecord.cs (1)
141requestIdToChildRecord = new Dictionary<ScheduleRecordKey, ScheduleRecord>();
Engine\TaskEngine.cs (1)
618Dictionary<string, string> setParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Engine\ToolsetCollection.cs (1)
64this.toolsetMap = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
Engine\ToolsetConfigurationReader.cs (2)
251private Dictionary<string, string> previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 416private Dictionary<string, string> previouslySeenPropertyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Engine\Utilities.cs (1)
617return new Dictionary<string, V>(StringComparer.OrdinalIgnoreCase);
Items\ItemDefinitionLibrary.cs (2)
45this.itemDefinitionsDictionary = new ItemDefinitionsDictionary(StringComparer.OrdinalIgnoreCase); 302metadataDictionary = new MetadataDictionary(StringComparer.OrdinalIgnoreCase);
ItemsAndProperties\Lookup.cs (4)
539allModifies = new Dictionary<BuildItem, Dictionary<string, string>>(); 795modifiesOfType = new Dictionary<BuildItem, Dictionary<string, string>>(); 826cloneTable = new Dictionary<BuildItem, BuildItem>(); 967return new Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>>(StringComparer.OrdinalIgnoreCase);
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (1)
170forwardingTable = new Dictionary<string, int>(15, StringComparer.OrdinalIgnoreCase);
Logging\ParallelLogger\ParallelConsoleLogger.cs (5)
67deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(compareContextNodeId); 179deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(compareContextNodeId); 392Dictionary<ErrorWarningSummaryDictionaryKey, List<T>> groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<T>>(); 1529startedEvent = new Dictionary<BuildEventContext, object>(); 1533startedEvent = new Dictionary<BuildEventContext, object>(comparer);
Logging\ParallelLogger\ParallelLoggerHelpers.cs (4)
24private Dictionary<string, int> projectTargetKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 25private Dictionary<string, int> projectKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 34projectStartedEvents = new Dictionary<BuildEventContext, ProjectStartedEventMinimumFields>(compareContextNodeId); 35targetStartedEvents = new Dictionary<BuildEventContext, TargetStartedEventMinimumFields>(compareContextNodeIdTargetId);
Properties\BuildProperty.cs (1)
119private static Dictionary<string, string> customInternTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Shared\LoadedType.cs (4)
107propertyInfoCache = new Dictionary<string, PropertyInfo>(StringComparer.OrdinalIgnoreCase); 108namesOfPropertiesWithRequiredAttribute = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 109namesOfPropertiesWithOutputAttribute = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 110namesOfPropertiesWithAmbiguousMatches = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Shared\ProjectInSolution.cs (1)
116projectConfigurations = new Dictionary<string, ProjectConfigurationInSolution>(StringComparer.OrdinalIgnoreCase);
Shared\TypeLoader.cs (1)
21private Dictionary<AssemblyLoadInfo, List<Type>> cacheOfAllDesiredTypesInAnAssembly = new Dictionary<AssemblyLoadInfo, List<Type>>();
Solution\SolutionWrapperProject.cs (1)
352Dictionary<int, List<ProjectInSolution>> projectsByDependencyLevel = new Dictionary<int, List<ProjectInSolution>>();
Tasks\IntrinsicTask.cs (1)
253Dictionary<string, string> metadataToSet = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Engine.OM.UnitTests (98)
Definition\DefinitionEditing_Tests.cs (2)
617Dictionary<string, string> metadata = new Dictionary<string, string>() { { "m", "m1" } }; 2534Dictionary<string, string> metadata = new Dictionary<string, string>() { { "m", "m1" } };
Definition\Project_Tests.cs (17)
812var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 829var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 960Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 988Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1071new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 1287IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1316IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1319IDictionary<string, string> projectCollectionGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 2420Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2434Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2458Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2528Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3254var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3284var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3575var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 3770var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
Definition\ProjectCollection_Tests.cs (5)
395var globals = new Dictionary<string, string> { { "Configuration", "Debug" } }; 411var globalProperties1 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v1" } }; 418var globalProperties2 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v2" } }; 456new Dictionary<string, string> { { "Configuration", "Release" }, { "Platform", "Win32" } }; 572var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v1" } };
Definition\ProjectItem_Tests.cs (52)
1155ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 1175ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList()); 2216var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2276var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection); 2725new Dictionary<string, string> 2735new Dictionary<string, string> 2762var expectedInitial = new Dictionary<string, string> 2767var expectedUpdateFromTrue = new Dictionary<string, string> 2804var expectedInitial = new Dictionary<string, string> 2809var expectedUpdateFromUnconditionedElement = new Dictionary<string, string> 2837var expectedUpdate = new Dictionary<string, string> 2873Dictionary<string, string> expectedUpdatei = new Dictionary<string, string> 2877Dictionary<string, string> expectedUpdatej = new Dictionary<string, string> 2944var expectedMetadata = new Dictionary<string, string> 2974var expectedMetadata = new Dictionary<string, string> 3028var expectedMetadataX = new Dictionary<string, string> 3033var expectedMetadataA = new Dictionary<string, string> 3040var expectedMetadataB = new Dictionary<string, string> 3074var expectedMetadataA = new Dictionary<string, string> 3081var expectedMetadataB = new Dictionary<string, string> 3088var expectedMetadataC = new Dictionary<string, string> 3140? new Dictionary<string, string> 3144: new Dictionary<string, string> 3168var expectedMetadataA = new Dictionary<string, string> 3187var expectedMetadataA = new Dictionary<string, string> 3214var expectedMetadataA = new Dictionary<string, string> 3254var expectedMetadataX = new Dictionary<string, string> 3262var expectedMetadata2 = new Dictionary<string, string> 3270var expectedMetadataCCC = new Dictionary<string, string> 3278var expectedMetadata1 = new Dictionary<string, string> 3287var expectedMetadataD = new Dictionary<string, string> 3295var expectedMetadataY = new Dictionary<string, string> 3345var expectedMetadataB = new Dictionary<string, string> 3350var expectedMetadataA = new Dictionary<string, string>() 3355var expectedMetadataC = new Dictionary<string, string>(); 3410var expectedInitialMetadata = new Dictionary<string, string> 3416var expectedUpdatedMetadata = new Dictionary<string, string> 3452var expected_i1 = new Dictionary<string, string> 3458var expected_i2_a = new Dictionary<string, string> 3464var expected_i2_y = new Dictionary<string, string> 3501var expectedInitial = new Dictionary<string, string> 3507var expectedUpdated = new Dictionary<string, string> 3536var expectedUpdated = new Dictionary<string, string> 3551new Dictionary<string, string> {{"m", "contents"}}, 3552new Dictionary<string, string> {{"m", "updated"}} 3620new Dictionary<string, string> {{"m", "contents"}}, 3621new Dictionary<string, string> {{"m", "contents"}}, 3622new Dictionary<string, string> {{"m", "contents"}}, 3623new Dictionary<string, string> {{"m", "updated"}} 3660return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 3689var expectedUpdated = new Dictionary<string, string> 3756var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), null, projectCollection);
Definition\ProjectMetadata_Tests.cs (1)
506var metadata = new Dictionary<string, string>
Definition\ProjectProperty_Tests.cs (1)
192Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Instance\ProjectInstance_Tests.cs (2)
203Dictionary<string, string> globals = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "p1" } }; 1027var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\ProjectItemInstance_Tests.cs (5)
114((IMetadataContainer)item).ImportMetadata(new Dictionary<string, string> 137((IMetadataContainer)item).ImportMetadata(new Dictionary<string, string> 254IDictionary<string, string> metadata = new Dictionary<string, string>(); 1143var expectedInitial = new Dictionary<string, string> 1148var expectedUpdateFromTrue = new Dictionary<string, string>
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (1)
205var result = new Dictionary<ProjectCollectionLinker, HashSet<Project>>();
ObjectModelRemoting\RemoteProjectsProviderMock\CollectionsHelpers.cs (2)
112Dictionary<TKey, TValue> result = new Dictionary<TKey, TValue>(); 131Dictionary<TKey, RMock> result = new Dictionary<TKey, RMock>();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTaskElementLink.cs (1)
32return local == null ? local : new Dictionary<string, string>(local);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (2)
84private static Dictionary<Type, ExporterFactory> knownTypes = new Dictionary<Type, ExporterFactory>(); 126var newKnown = new Dictionary<Type, ExporterFactory>(knownTypes);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (2)
153private Dictionary<UInt32, ExternalConnection> imported = new Dictionary<UInt32, ExternalConnection>(); 217Dictionary<UInt32, ExternalConnection> newMap = new Dictionary<uint, ExternalConnection>(imported);
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (3)
34private static Dictionary<UInt32, LinkedObjectsMap<KeyType>> collections = new Dictionary<UInt32, LinkedObjectsMap<KeyType>>(); 36private Dictionary<UInt32, WeakHolder> activeLinks = new Dictionary<UInt32, WeakHolder>(); 37private Dictionary<KeyType, WeakHolder> indexByKey = new Dictionary<KeyType, WeakHolder>();
TransientIO.cs (1)
18private Dictionary<string, TransientIO> Children = new Dictionary<string, TransientIO>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Engine.UnitTests (590)
BackEnd\AssemblyTaskFactory_Tests.cs (25)
59taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 71taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 83taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 95taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty); 109taskFactory.Initialize(String.Empty, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 123taskFactory.Initialize(String.Empty, null, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null); 175IDictionary<string, string> factoryIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 181IDictionary<string, string> taskIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 195IDictionary<string, string> factoryIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 201IDictionary<string, string> taskIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 275IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 306IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 337IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 370IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 403IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 408IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 438IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 471IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 502IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 507IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 566IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 601IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 630IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 658var taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 691_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\BinaryTranslator_Tests.cs (3)
429Dictionary<string, string> value = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 467Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>(StringComparer.OrdinalIgnoreCase); 506Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>();
BackEnd\BuildManager_Logging_Tests.cs (1)
119new Dictionary<string, string>(),
BackEnd\BuildManager_Tests.cs (43)
179new Dictionary<int, int[]> 202new Dictionary<string, string>(), 497ItemFilters = new Dictionary<string, List<string>> 651var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 704var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 774var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 834var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 901var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 932var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), 1099BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1109GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1119BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1129GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1153var globalProperties = new Dictionary<string, string>(); 1218BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1231GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null); 1247new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null); 1881var data = new BuildRequestData(projectFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 2412var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2473var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2531var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2579var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices()); 2668var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices()); 2738var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 2835var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 2935var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 3021var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 3090var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, 3375var data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "BaseTest" }, services); 3383data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "MovedTest" }, services); 3514BuildRequestData data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "One", "Two", "Three" }, services); 3544Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3651IDictionary<string, string> metadata = new Dictionary<string, string>(1); 3706var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3730var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection); 3800new Dictionary<string, string>(), 3857var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, 3957new Dictionary<string, string>(), 4046var buildRequestData = new BuildRequestData(entryFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "EntryTarget" }, null); 4102var request1 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null); 4103var request2 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null); 4345var graph = Helpers.CreateProjectGraph(env: _env, dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } }); 4354new Dictionary<string, string>() { {"property1", "value1" } }) },
BackEnd\BuildRequestConfiguration_Tests.cs (32)
44BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 58BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 66BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 74BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 81BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 90BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 105BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 109BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 113BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 121BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 125BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 129BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 139BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 147BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 157BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 165BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 173Dictionary<string, string> props = new Dictionary<string, string>(); 182BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 196BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 204BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 205BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("File", new Dictionary<string, string>(), "ToolsVersion", Array.Empty<string>(), null), "2.0"); 206BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 207BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 208BuildRequestConfiguration config5 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 219BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 221BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 224BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0"); 227BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0"); 275Dictionary<string, string> globalProperties = new(StringComparer.OrdinalIgnoreCase); 310BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0"); 352new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 457Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\BuildRequestEngine_Tests.cs (5)
337BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 368BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 396BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 449BuildRequestData data = new BuildRequestData(Path.GetFullPath("TestFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null); 455BuildRequestData data2 = new BuildRequestData(Path.GetFullPath("OtherFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
BackEnd\BuildRequestEntry_Tests.cs (10)
24BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 45BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 93BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 115BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 145BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 182BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 198BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 215BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null); 239BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0"); 259BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\CacheAggregator_Tests.cs (11)
78configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 79configCache.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13")); 100configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 129configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 151configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 159configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 195configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 213configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13")); 214configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13")); 225configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path3", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "e", "f" }, null), "13")); 226configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path4", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "g", "h" }, null), "13"));
BackEnd\CacheSerialization_Tests.cs (3)
27new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1", "target2" }, null), 32new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null), 36new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
BackEnd\ConfigCache_Tests.cs (6)
27new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1" }, null), 37new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null), 46new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null), 74new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1" }, null), 78new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null), 82new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
BackEnd\ConfigurationMetadata_Tests.cs (6)
62BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null); 88BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 104BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 113data = new BuildRequestData("file2", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null); 118data = new BuildRequestData("file", new Dictionary<string, string>(), "3.0", Array.Empty<string>(), null); 152Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\FullyQualifiedBuildRequest_Tests.cs (4)
19BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null); 24BuildRequestData data3 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null); 42FullyQualifiedBuildRequest request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null), "2.0"), null, true); 48BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
BackEnd\IntrinsicTask_Tests.cs (4)
1236Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3937BuildRequestEntry entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0")); 3967var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c); 3972var entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\LoggingService_Tests.cs (1)
964BuildRequestData buildRequestData = new BuildRequestData("projectFile", new Dictionary<string, string>(), "Current", new[] { "Build" }, null);
BackEnd\LoggingServicesLogMethod_Tests.cs (9)
841BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 867BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 906BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 947BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 1262properties: new Dictionary<string, string>()); 1271IDictionary<string, string> eventProperties = new Dictionary<string, string> 1294Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties), 1420BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
BackEnd\MockRunningObjectTable.cs (1)
15private readonly Dictionary<string, object> _dictionary = new Dictionary<string, object>();
BackEnd\NodeEndpointInProc_Tests.cs (1)
355_linkStatusTable = new Dictionary<INodeEndpoint, LinkStatusContext>();
BackEnd\NodePackets_Tests.cs (7)
80BuildSubmissionStartedEventArgs buildSubmissionStarted = new(new Dictionary<string, string> { { "Value1", "Value2" } }, ["Path1"], ["TargetName"], BuildRequestDataFlags.ReplaceExistingProjectInstance, 123); 173return new Dictionary<string, string> 293ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } }, 299ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } }, 305ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } }, 311ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } }, 317ExtendedMetadata = new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } },
BackEnd\NullMetadataTask.cs (1)
26IDictionary<string, string> metadata = new Dictionary<string, string>();
BackEnd\RequestBuilder_Tests.cs (2)
226BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("testName", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"); 269new Dictionary<string, string>(),
BackEnd\RequestedProjectState_Tests.cs (7)
46Dictionary<string, List<string>> items = new() 68Dictionary<string, List<string>> items = new() 98state1.ItemFilters = new Dictionary<string, List<string>>() 142ItemFilters = new Dictionary<string, List<string>>() 149ItemFilters = new Dictionary<string, List<string>>() 178ItemFilters = new Dictionary<string, List<string>>() 185ItemFilters = new Dictionary<string, List<string>>()
BackEnd\Scheduler_Tests.cs (2)
547BuildRequest request1 = CreateProxyBuildRequest(1, 1, new ProxyTargets(new Dictionary<string, string> { { "foo", "bar" } }), null); 734BuildRequestData data = new(projectFullPath, new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null);
BackEnd\SdkResolverService_Tests.cs (3)
331propertiesToAdd = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 336itemsToAdd = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase) 339new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
BackEnd\SdkResultItemComparison_Tests.cs (1)
34var sdkResultItem1 = new SdkResultItem("anyspec", new Dictionary<string, string>());
BackEnd\SdkResultOutOfProc_Tests.cs (2)
258propertiesToAdd: new Dictionary<string, string>() 260itemsToAdd: new Dictionary<string, SdkResultItem>()
BackEnd\TargetBuilder_Tests.cs (1)
1676BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TargetEntry_Tests.cs (6)
83BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 98BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 112BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 876new Dictionary<string, string>(), 1026BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0"); 1044BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\TaskBuilder_Tests.cs (1)
1242BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("testfile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0");
BackEnd\TaskExecutionHost_Tests.cs (10)
143var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 159var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 169var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 608var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 624var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 642var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 1286_bucket = new ItemBucket(Array.Empty<string>(), new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0); 1290_parametersSetOnTask = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 1291_outputsReadFromTask = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 1494var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
BackEnd\TaskHost_Tests.cs (2)
76BuildRequestConfiguration configuration = new BuildRequestConfiguration(1, new BuildRequestData("Nothing", new Dictionary<string, string>(), "4.0", Array.Empty<string>(), null), "2.0"); 716Dictionary<string, string> globalProperties = new Dictionary<string, string>
BackEnd\TaskHostConfiguration_Tests.cs (8)
236IDictionary<string, object> parameters = new Dictionary<string, object>(); 263IDictionary<string, object> parameters2 = new Dictionary<string, object>(); 334var expectedGlobalProperties = new Dictionary<string, string> 457taskParameters: new Dictionary<string, object>(), 458globalParameters: new Dictionary<string, string>(), 485IDictionary<string, object> parameters = new Dictionary<string, object>(); 535IDictionary<string, object> parameters = new Dictionary<string, object>(); 583IDictionary<string, object> parameters = new Dictionary<string, object>();
BackEnd\TaskHostTaskComplete_Tests.cs (6)
73IDictionary<string, object> parameters = new Dictionary<string, object>(); 81IDictionary<string, object> parameters2 = new Dictionary<string, object>(); 136new OutOfProcTaskHostTaskResult(TaskCompleteType.Success, new Dictionary<string, object>()), 158IDictionary<string, object> parameters = new Dictionary<string, object>(); 186IDictionary<string, object> parameters = new Dictionary<string, object>(); 212IDictionary<string, object> parameters = new Dictionary<string, object>();
BackEnd\TaskRegistry_Tests.cs (7)
580Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 671new Dictionary<string, string>(), 1057Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1081taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1894new Dictionary<string, SubToolset> 1901new Dictionary<string, ProjectImportPathMatch> 2056parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
BinaryLogger_Tests.cs (3)
273Dictionary<string, string> embedFiles1 = new(); 274Dictionary<string, string> embedFiles2 = new(); 598new BuildRequestData(entryProject.ProjectFile, new Dictionary<string, string>(), null, new string[] { "BuildSelf" }, null))
BuildEnvironmentHelper_Tests.cs (1)
508private readonly Dictionary<string, string> _mockEnvironment = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BuildEventArgsSerialization_Tests.cs (11)
72new Dictionary<string, string> 115var globalVariables = new Dictionary<string, string> 163globalProperties: new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 345ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 418ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 494ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 557Dictionary<string, TimeSpan> stats = new() { { key1, span1 }, { key2, span2 }, { key3, span3 } }; 582ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 677ExtendedMetadata = withOptionalData ? new Dictionary<string, string> { { "m1", "v1" }, { "m2", "v2" } } : null, 769GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 792ProfilerResult = new ProfilerResult(new Dictionary<EvaluationLocation, ProfiledLocation>
Collections\OMcollections_tests.cs (8)
198var dictionary = new ObjectModel.ReadOnlyDictionary<string, string>(new Dictionary<string, string>(0)); 208var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 225var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 253var backing = new Dictionary<string, string>(); 269Dictionary<string, string> values = new Dictionary<string, string>(); 274Dictionary<string, int> convertedValues = new Dictionary<string, int>(); 340clone = new Dictionary<string, TValue>(0); 344clone = new Dictionary<string, TValue>(dictionary, strComparer);
CommunicationUtilities_Tests.cs (1)
24IDictionary<string, string> referenceVars2 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ConsoleLogger_Tests.cs (1)
127_environment = new Dictionary<string, string>();
Construction\SolutionFilter_Tests.cs (1)
129ProjectGraphEntryPoint entryPoint = new(filterFile.Path, new Dictionary<string, string>());
Construction\SolutionProjectGenerator_Tests.cs (11)
1558IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1616Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 1665IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1681IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1792IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1968Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2062Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2150Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2225Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2379var globalProperties = new Dictionary<string, string> { { "ImportByWildcardBeforeSolution", "false" } }; 2606Dictionary<string, string> globalProperties = new Dictionary<string, string>();
Definition\Project_Internal_Tests.cs (1)
238using ProjectFromString projectFromString = new(projectContents, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection, ProjectLoadSettings.DoNotEvaluateElementsWithFalseCondition);
Definition\ProjectEvaluationContext_Tests.cs (4)
35new Dictionary<string, SdkResult> 121new Dictionary<string, int> 179new Dictionary<string, int> 185new Dictionary<string, int>
Definition\Toolset_Tests.cs (12)
105Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase); 109subToolsets, "c:\\foo", "4.0", new Dictionary<string, ProjectImportPathMatch> 263IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 315IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 335IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 343IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>(); 363IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 406IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 451IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 459IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>(); 509IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 513Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsetConfigurationReader_Tests.cs (1)
561Dictionary<string, Toolset> toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsVersion_Tests.cs (1)
945_defaultTasksFileMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
EscapingInProjects_Tests.cs (1)
846ProjectItem item = project.AddItem("None", "MetadataTests", new Dictionary<string, string> {
Evaluation\Evaluator_Tests.cs (27)
65using ProjectCollection collection = new(new Dictionary<string, string>(), [logger], ToolsetDefinitionLocations.Default); 1917IDictionary<string, ProjectProperty> allEvaluatedPropertiesWithNoBackingXmlAndNoDuplicates = new Dictionary<string, ProjectProperty>(StringComparer.OrdinalIgnoreCase); 2079IDictionary<string, ProjectProperty> allEvaluatedPropertiesWithNoBackingXmlAndNoDuplicates = new Dictionary<string, ProjectProperty>(StringComparer.OrdinalIgnoreCase); 2964IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2994IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3024IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3054IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3094IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3136IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3169IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3203IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3236IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3265IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3347IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3404IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3465IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3525IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3597IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3670IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3735IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3797IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 4140IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 4200IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 4252IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 4688new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 5128IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 5132Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Evaluation\Expander_Tests.cs (4)
780Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1358Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1574var itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 3911Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\ExpressionShredder_Tests.cs (1)
1146Dictionary<string, MetadataReference> consumedMetadataReferences = new Dictionary<string, MetadataReference>(StringComparer.OrdinalIgnoreCase);
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (5)
576using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 637using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 707using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 772using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 }); 831using var projectCollection = GetProjectCollection(new Dictionary<string, string> { ["FallbackExpandDir1"] = extnDir1 });
Evaluation\ItemEvaluation_Tests.cs (23)
59var mI2_1 = new Dictionary<string, string> 68var mI2_2 = new Dictionary<string, string> 108var expectedMetadata = new Dictionary<string, string> 152new Dictionary<string, string>(), 153new Dictionary<string, string> { ["m1"] = "m1_updated" }, 154new Dictionary<string, string>(), 182var a = new Dictionary<string, string> 190var b = new Dictionary<string, string> 198var c = new Dictionary<string, string> 209var metadataForI2 = new Dictionary<string, string> 247new Dictionary<string, string> 276new Dictionary<string, string> 303new Dictionary<string, string>() 326new Dictionary<string, string>() 351new Dictionary<string, string> 420new Dictionary<string, string>(), 421new Dictionary<string, string> 426new Dictionary<string, string> 431new Dictionary<string, string> 488var i1BaseMetadata = new Dictionary<string, string> 499new Dictionary<string, string>() 508new Dictionary<string, string> 682new Dictionary<string, string>
Evaluation\ItemSpec_Tests.cs (4)
30var itemSpec = CreateItemSpecFrom("a;b*;c*;@(foo)", CreateExpander(new Dictionary<string, string[]> { { "foo", new[] { "d", "e" } } })); 51var itemSpecFromAbsolute = CreateItemSpecFrom(absoluteSpec, CreateExpander(new Dictionary<string, string[]>()), new MockElementLocation(projectFile)); 52var itemSpecFromRelative = CreateItemSpecFrom("s.cs", CreateExpander(new Dictionary<string, string[]>()), new MockElementLocation(projectFile)); 64var itemSpec = CreateItemSpecFrom("a;b*;c*;@(foo)", CreateExpander(new Dictionary<string, string[]> { { "foo", new[] { "d", "e" } } }));
Evaluation\Preprocessor_Tests.cs (5)
852var projectOptions = SdkUtilities.CreateProjectOptionsWithResolver(new SdkUtilities.FileBasedMockSdkResolver(new Dictionary<string, string> 942var propertiesToAdd = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 947var itemsToAdd = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase) 950new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 1058var projectOptions = SdkUtilities.CreateProjectOptionsWithResolver(new SdkUtilities.FileBasedMockSdkResolver(new Dictionary<string, string>
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
350var mapping = new Dictionary<string, string> { { SdkName, _testSdkDirectory } }; 653(projectOptions.GlobalProperties ??= new Dictionary<string, string>()).Add(name, value);
Evaluation\SdkResultEvaluation_Tests.cs (6)
59propertiesToAdd = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 64itemsToAdd = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase) 67new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 419Dictionary<string, string> propertiesToAdd = new Dictionary<string, string>() 424Dictionary<string, SdkResultItem> itemsToAdd = new Dictionary<string, SdkResultItem>() 428new SdkResultItem(itemSpec: "ItemValue" + specialString, new Dictionary<string, string>()
Evaluation\ToolsetConfigurationNet5_Tests.cs (2)
31= new Dictionary<string, string>(); 58= new Dictionary<string, string>();
ExpressionTree_Tests.cs (1)
333Dictionary<string, List<string>> conditionedProperties = new Dictionary<string, List<string>>();
ExpressionTreeExpression_Tests.cs (1)
400Dictionary<string, string> metadataDictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
442ProjectGraphEntryPoint entryPoint = new(solutionFile.Path, new Dictionary<string, string>());
Graph\GraphLoadedFromSolution_tests.cs (34)
95new Dictionary<int, int[]>() 100new Dictionary<int, int[]> 108new Dictionary<int, int[]> 117new Dictionary<int, int[]> 125new Dictionary<int, int[]> 134new Dictionary<int, int[]> 142new Dictionary<int, int[]> 151new Dictionary<int, int[]> 161new Dictionary<int, int[]> 228Projects = new Dictionary<string, string> 233ProjectConfigurations = new Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>> 236"1", new Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution> 264new Dictionary<int, int[]> // graph nodes and ProjectReference edges 276new Dictionary<int, int[]> 288new Dictionary<int, int[]> 303new Dictionary<int, int[]> 318new Dictionary<int, int[]> 333new Dictionary<int, int[]> 344new Dictionary<int, int[]> 355new Dictionary<int, int[]> 366new Dictionary<int, int[]> 381new Dictionary<int, int[]> 396new Dictionary<int, int[]> 411new Dictionary<int, int[]> 426new Dictionary<int, int[]> 439new Dictionary<int, int[]> 452new Dictionary<int, int[]> 465new Dictionary<int, int[]> 486new Dictionary<string, string>() 590new Dictionary<int, int[]>() 609Projects = new Dictionary<string, string> 654new Dictionary<int, int[]> { { 1, null }, { 2, null } }, 696? new Dictionary<string, string> 702: new Dictionary<string, string>();
Graph\GraphTestingUtilities.cs (3)
20public static readonly ImmutableDictionary<string, string> EmptyGlobalProperties = new Dictionary<string, string> { { PropertyNames.IsGraphBuild, "true" } }.ToImmutableDictionary(); 46additionalGlobalProperties ??= new Dictionary<string, string>(0); 92additionalGlobalProperties ??= new Dictionary<string, string>();
Graph\IsolateProjects_Tests.cs (3)
324new Dictionary<string, string>(), 326var expectedOutput = new ExpectedNodeBuildOutput(); 327var outputCaches = new OutputCacheDictionary();
Graph\ParallelWorkSet_Tests.cs (5)
23new Dictionary<string, string>(StringComparer.Ordinal); 130ExpectedCompletedWork = new Dictionary<string, string> 162ExpectedCompletedWork = new Dictionary<string, string> 195ExpectedCompletedWork = new Dictionary<string, string> 228ExpectedCompletedWork = new Dictionary<string, string>
Graph\ProjectGraph_Tests.cs (92)
76new Dictionary<int, int[]>() 357var entryPoint1 = new ProjectGraphEntryPoint(entryFile1.Path, new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC" }); 370var globalPropertiesFor1 = new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC", ["IsGraphBuild"] = "true" }; 377var globalPropertiesFor2 = new Dictionary<string, string> { ["IsGraphBuild"] = "true" }; 497new Dictionary<string, string> { { "Foo", "Bar" } }); 598var entryPoint1 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x86" } }); 599var entryPoint2 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x64" } }); 637var entryPoint1 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x86" } }); 638var entryPoint2 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x64" } }); 919TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2, 3 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }); 920CreateProjectFile(env: env, projectNumber: 2, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "C" } } }); 921CreateProjectFile(env: env, projectNumber: 3, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "D" } } }); 939var projectReferenceTargets = new Dictionary<string, string[]> 966var projectReferenceTargets = new Dictionary<string, string[]> 1002TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A"); 1020TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A"); 1040TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: string.Empty); 1063TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { " ; ; " } } }, defaultTargets: string.Empty); 1391TransientTestFile entryProject = CreateProjectFile(env, 1, new[] { 2 }, new Dictionary<string, string[]> { { "A", new[] { ".default" } } }, defaultTargets: "A"); 1413projectReferenceTargets: new Dictionary<string, string[]> { { "Build", new[] { "A", ".default" } } }); 1430var projectReferenceTargets = new Dictionary<string, string[]> 1477projectReferenceTargets: new Dictionary<string, string[]> { { "Build", new[] { "Build" } } }); 1483new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T2" } } }, 1491new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T3" } } }, 1499new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T4" } } }, 1522dependencyEdges: new Dictionary<int, int[]> 1526extraContentPerProjectNumber: new Dictionary<int, string> 1559expectedNodeBuildOutput: new Dictionary<ProjectGraphNode, string[]>(), 1560outputCaches: new Dictionary<ProjectGraphNode, string>(), 1574dependencyEdges: new Dictionary<int, int[]> 1578extraContentPerProjectNumber: new Dictionary<int, string> 1609expectedNodeBuildOutput: new Dictionary<ProjectGraphNode, string[]>(), 1610outputCaches: new Dictionary<ProjectGraphNode, string>(), 1644new Dictionary<int, int[]>() 1649new Dictionary<int, int[]> 1657new Dictionary<int, int[]> 1666new Dictionary<int, int[]> 1674new Dictionary<int, int[]> 1683new Dictionary<int, int[]> 1692new Dictionary<int, int[]> 1700new Dictionary<int, int[]> 1709new Dictionary<int, int[]> 1719new Dictionary<int, int[]> 1729new Dictionary<int, int[]> 1738new Dictionary<int, int[]> 1747new Dictionary<int, int[]> 1758new Dictionary<int, int[]> 1768new Dictionary<int, int[]> 1779new Dictionary<int, int[]> 1792new Dictionary<int, int[]> 1835globalProperties: new Dictionary<string, string> { { "a", "b" } }, 1840projectReferenceTargets: new Dictionary<string, string[]> 2031AssertInnerBuildEvaluation(graph.GraphRoots.First(), false, new Dictionary<string, string>()); 2044var graph = new ProjectGraph(root, new Dictionary<string, string> { { InnerBuildPropertyName, "foo" } }); 2050AssertInnerBuildEvaluation(graph.GraphRoots.First(), true, new Dictionary<string, string>()); 2125var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2164var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2191var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2245new Dictionary<string, string>(), 2246new Dictionary<string, string> 2253var graph1 = new Dictionary<int, int[]> 2261var graph2 = new Dictionary<int, int[]> 2275new Dictionary<int, int[]>(), 2282new Dictionary<int, int[]> 2331var expectedGlobalProperties = new Dictionary<string, string>(globalProperties); 2348new Dictionary<int, int[]> { { 1, null } }, 2349new Dictionary<string, string> { { PropertyNames.IsGraphBuild, "xyz" } }); 2378new Dictionary<int, int[]> 2384new Dictionary<int, string>(), 2385new Dictionary<int, int[]> 2394new Dictionary<int, int[]> 2400new Dictionary<int, string> 2404new Dictionary<int, int[]> 2415new Dictionary<int, int[]> 2421new Dictionary<int, string> 2425new Dictionary<int, int[]> 2434new Dictionary<int, int[]> 2440new Dictionary<int, string> 2445new Dictionary<int, int[]> 2453new Dictionary<int, int[]> 2461new Dictionary<int, string> 2467new Dictionary<int, int[]> 2500dependencyEdges: new Dictionary<int, int[]> 2508extraContentPerProjectNumber: new Dictionary<int, string> 2563dependencyEdges: new Dictionary<int, int[]>() 2568extraContentPerProjectNumber: new Dictionary<int, string>() 2669dependencyEdges: new Dictionary<int, int[]>() 2673extraContentPerProjectNumber: new Dictionary<int, string>() 2711dependencyEdges: new Dictionary<int, int[]>() 2715extraContentPerProjectNumber: new Dictionary<int, string>() 2754dependencyEdges: new Dictionary<int, int[]>() 2758globalProperties: new Dictionary<string, string> { { "BuildProjectReferences", "false" } },
Graph\ResultCacheBasedBuilds_Tests.cs (20)
183new Dictionary<int, int[]> 191new Dictionary<int, int[]> 200new Dictionary<int, int[]> 208new Dictionary<int, int[]> 217new Dictionary<int, int[]> 226new Dictionary<int, int[]> 234new Dictionary<int, int[]> 244new Dictionary<int, int[]> 254new Dictionary<int, int[]> 263new Dictionary<int, int[]> 272new Dictionary<int, int[]> 297var expectedOutput = new ExpectedNodeBuildOutput(); 299var outputCaches = new OutputCacheDictionary(); 339dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } }, 344var expectedOutput = new ExpectedNodeBuildOutput(); 346var outputCaches = new OutputCacheDictionary(); 377dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } }, 382var expectedOutput = new ExpectedNodeBuildOutput(); 384var outputCaches = new OutputCacheDictionary(); 437var results = new Dictionary<string, (BuildResult Result, MockLogger Logger)>(topoSortedNodes.Count);
HashTableUtility_Tests.cs (4)
28Dictionary<string, string> h1 = new Dictionary<string, string>(); 30Dictionary<string, string> h2 = new Dictionary<string, string>(); 41Dictionary<string, string> h1 = new Dictionary<string, string>(); 42Dictionary<string, string> h2 = new Dictionary<string, string>();
Instance\HostServices_Tests.cs (2)
483using ProjectFromString projectFromString = new(contents, new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion); 503Dictionary<string, string> globals = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\ProjectInstance_Internal_Tests.cs (4)
381IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 419IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 422IDictionary<string, string> projectCollectionGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 963globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\ProjectTaskInstance_Internal_Tests.cs (5)
32new Dictionary<string, (string, MockElementLocation)>(), 38new Dictionary<string, (string, MockElementLocation)> 50new Dictionary<string, (string, MockElementLocation)> 70parameters ??= new Dictionary<string, (string, MockElementLocation)>(); 72var parametersCopy = new Dictionary<string, (string, ElementLocation)>(parameters.Count);
InternalEngineHelpers.cs (4)
48_resultMap = new Dictionary<string, SdkResult> { [result.SdkReference.Name] = result }; 110sdkResultItems = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase); 116newMetadata = new Dictionary<string, string>(item.Value.Metadata, StringComparer.OrdinalIgnoreCase); 125sdkResult.PropertiesToAdd == null ? null : new Dictionary<string, string>(sdkResult.PropertiesToAdd, StringComparer.OrdinalIgnoreCase),
ProjectCache\ProjectCacheTests.cs (39)
104NonCacheMissResults = nonCacheMissResults ?? new Dictionary<int, CacheResult>(); 118new Dictionary<string, string> 135new Dictionary<string, string> 337new Dictionary<int, int[]?> 343new Dictionary<int, int[]?> 347new Dictionary<int, CacheResult> 353new Dictionary<int, int[]?> 357new Dictionary<int, CacheResult> 363new Dictionary<int, int[]?> 369new Dictionary<int, int[]?> 373new Dictionary<int, CacheResult> 379new Dictionary<int, int[]?> 383new Dictionary<int, CacheResult> 389new Dictionary<int, int[]?> 393new Dictionary<int, CacheResult> 400new Dictionary<int, int[]?> 495var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>(); 527new Dictionary<int, int[]?> 531extraContentPerProjectNumber: new Dictionary<int, string>() 547var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>(); 587new Dictionary<string, string> 666graphEdges: new Dictionary<int, int[]?> 686var globalProperties = new Dictionary<string, string> 730new Dictionary<int, int[]?> 734new Dictionary<int, CacheResult> 910new Dictionary<int, int[]?> 941new Dictionary<int, int[]?> 965new Dictionary<int, int[]?> 969new Dictionary<int, CacheResult> 981new Dictionary<string, string> 1023new Dictionary<int, int[]?> 1055dependencyEdges: new Dictionary<int, int[]?> 1059extraContentPerProjectNumber: new Dictionary<int, string> 1231new Dictionary<int, int[]?> 1362new Dictionary<int, int[]?> 1455new Dictionary<int, int[]?> 1485new Dictionary<string, string> 1518new Dictionary<int, int[]?> 1605new ProxyTargets(new Dictionary<string, string> { { proxyTarget, cacheHitTarget } })));
TaskParameter_Tests.cs (3)
365IDictionary metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 398IDictionary metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 445IDictionary metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
WarningsAsMessagesAndErrors_Tests.cs (2)
85customProperties: new Dictionary<string, string> 171customProperties: new Dictionary<string, string>
Microsoft.Build.Framework (29)
BinaryReaderExtensions.cs (1)
112data.ExtendedMetadata = new Dictionary<string, string?>();
BinaryTranslator.cs (5)
596count => new Dictionary<string, string>(count, comparer)); 620dictionary = new Dictionary<string, string>(count, comparer); 621additionalEntries = new(); 708dictionary = new Dictionary<string, T>(count, comparer); 787dictionary = new(count, comparer);
BuildCheck\BuildCheckEventArgs.cs (1)
86var infrastructureTracingData = new Dictionary<string, TimeSpan>(count);
BuildCheck\BuildCheckTracingData.cs (2)
26: this(new Dictionary<string, BuildCheckRuleTelemetryData>(), []) 30: this(new Dictionary<string, BuildCheckRuleTelemetryData>(), executionData)
BuildException\BuildExceptionBase.cs (1)
136customKeyedSerializedData = new Dictionary<string, string?>(count, StringComparer.CurrentCulture);
BuildException\BuildExceptionSerializationHelper.cs (1)
49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
BuildSubmissionStartedEventArgs.cs (2)
21GlobalProperties = new Dictionary<string, string?>(); 85Dictionary<string, string?> globalProperties = new Dictionary<string, string?>(numberOfProperties);
Features.cs (1)
43private static readonly Dictionary<string, FeatureStatus> _featureStatusMap = new Dictionary<string, FeatureStatus>
LoggerException.cs (1)
117return new Dictionary<string, string>()
Profiler\EvaluationLocation.cs (1)
63new Dictionary<EvaluationPass, string>
Sdk\SdkResultItem.cs (1)
24Metadata = new Dictionary<string, string>(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)
126internal static Func<int, IDictionary<string, string>> DictionaryFactory = capacity => new Dictionary<string, string>(capacity);
Telemetry\BuildCheckTelemetry.cs (3)
25var properties = new Dictionary<string, string>(); 53var properties = new Dictionary<string, string>(); 64properties = new Dictionary<string, string>();
Telemetry\BuildTelemetry.cs (1)
100var properties = new Dictionary<string, string>();
Telemetry\LoggingConfigurationTelemetry.cs (1)
103var properties = new Dictionary<string, string>();
TelemetryEventArgs.cs (1)
25public IDictionary<string, string?> Properties { get; set; } = new Dictionary<string, string?>();
XamlTypes\ContentType.cs (1)
159var metadata = new Dictionary<string, string>(this.Metadata.Count, StringComparer.OrdinalIgnoreCase);
XamlTypes\Rule.cs (2)
77Metadata = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 497var map = new Dictionary<string, BaseProperty>(this.Properties.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Framework.UnitTests (12)
BuildCheckTracingEventArgs_Tests.cs (1)
28Dictionary<string, TimeSpan> stats = new() { { key1, span1 }, { key2, span2 }, { key3, span3 } };
BuildSubmissionStartedEventArgs_Tests.cs (1)
20var globalVariables = new Dictionary<string, string?>
CustomEventArgSerialization_Tests.cs (4)
983TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = "Good", Properties = new Dictionary<string, string> { { "Key", "Value" } } }; 1003genericEvent.Properties = new Dictionary<string, string>(); 1013TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = null, Properties = new Dictionary<string, string> { { "Key", "Value" } } }; 1026TelemetryEventArgs genericEvent = new TelemetryEventArgs { EventName = "Good", Properties = new Dictionary<string, string> { { "Key", null } } };
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
ExtendedBuildEventArgs_Tests.cs (5)
28ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { {"m1", "v1" }, { "m2", "v2" } } : null, 66ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null, 105ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null, 143ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null, 180ExtendedMetadata = withOptionalData ? new Dictionary<string, string?> { { "m1", "v1" }, { "m2", "v2" } } : null,
Microsoft.Build.Tasks.CodeAnalysis (2)
MapSourceRoots.cs (2)
92var rootByItemSpec = new Dictionary<string, ITaskItem>(); 123var topLevelMappedPaths = new Dictionary<string, string>();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (52)
GenerateMSBuildEditorConfigTests.cs (31)
37ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } }); 38ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } }); 57ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 77ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 78ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 79ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } }); 106ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/{f*i?le1}.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 107ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/f,ile#2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 108ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/f;i!le[3].cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } }); 134ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 135ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 156ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" } }); 176ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { }); 177ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" } }); 178ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "MetadataName", "ToRetrieve" } }); 197ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 198ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 199ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } }); 200ITaskItem item4 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "jkl012" } }); 202ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } }); 203ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } }); 233TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 234TaskItem item2 = new TaskItem("subDir\\file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 235TaskItem item3 = new TaskItem("someDir\\otherDir\\thirdDir\\..\\file3.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 267TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 268TaskItem item2 = new TaskItem("someDir\\..\\file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } }); 310TaskItem property1 = new TaskItem("Property1", new Dictionary<string, string> { { "Value", longPropertyValue } }); 311TaskItem property2 = new TaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } }); 339ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:\\file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } }); 359ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } }); 360ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
MapSourceRootTests.cs (16)
39new TaskItem(@"c:\MyProjects\MyProject\", new Dictionary<string, string> 43new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 89new TaskItem(@"****/", new Dictionary<string, string> 93new TaskItem(@"****\|||:;\", new Dictionary<string, string> 161new TaskItem(@"c:\MyProjects\MyProject\a\a\", new Dictionary<string, string> 166new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 171new TaskItem(@"c:\MyProjects\MyProject\a\c\", new Dictionary<string, string> 250new TaskItem(path1, new Dictionary<string, string> 255new TaskItem(path2, new Dictionary<string, string> 293new TaskItem(path1, new Dictionary<string, string> 302new TaskItem(path1, new Dictionary<string, string> 311new TaskItem(path2, new Dictionary<string, string> 316new TaskItem(path2, new Dictionary<string, string> 365new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 395new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string> 427new TaskItem(path1, new Dictionary<string, string>
TargetTests.cs (3)
932addTask(proj, "WriteLinesToFile", new() 941addTask(proj, "MakeDir", new() 947addTask(proj, "Message", new()
TestUtilities\DotNetSdkTestBase.cs (1)
180EnvironmentVariables = new Dictionary<string, string>()
TestUtilities\SimpleTaskItem.cs (1)
45var map = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.Core (98)
AssemblyDependency\GenerateBindingRedirects.cs (1)
363var map = new Dictionary<AssemblyName, string>();
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 (9)
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); 325_resolvedSDKReferences = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 370internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1367var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1373var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 1859var fullNameToReference = new Dictionary<string, AssemblyNameReference>(References.Count, StringComparer.OrdinalIgnoreCase); 2176var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase); 3021Dictionary<string, string> removedMetadata = new Dictionary<string, string>();
AssemblyDependency\ResolveAssemblyReference.cs (3)
217private Dictionary<string, MessageImportance> _showAssemblyFoldersExLocations = new Dictionary<string, MessageImportance>(StringComparer.OrdinalIgnoreCase); 1148_unresolvedConflicts.Add(new TaskItem(assemblyName.Name, new Dictionary<string, string>() 3022Dictionary<string, AssemblyTableInfo> tableMap = new Dictionary<string, AssemblyTableInfo>(StringComparer.OrdinalIgnoreCase);
AssignProjectConfiguration.cs (2)
370_vcxToDefaultMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 371_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); 207var eulas = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.Ordinal); 272var builtProducts = new Dictionary<string, ProductBuilder>(); 273var productsAndIncludes = new Dictionary<string, Product>(); 618var availableProducts = new Dictionary<string, Product>(StringComparer.Ordinal); 620var buildQueue = new Dictionary<string, Product>(StringComparer.Ordinal); 2208var 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)
464var filesActuallyCopied = new Dictionary<string, string>( 543var partitionsByDestination = new Dictionary<string, List<int>>(
CreateItem.cs (1)
215var uniqueItems = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
CreateManifestResourceName.cs (1)
33protected Dictionary<string, ITaskItem> itemSpecToTaskitem = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
FileIO\GetFileHash.cs (1)
27= new Dictionary<string, Func<HashAlgorithm>>(StringComparer.OrdinalIgnoreCase)
FileMatcher.cs (1)
2478searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase);
GenerateResource.cs (1)
3885resourcesHashTable = 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)
434var clsidList = new Dictionary<string, ComInfo>(); 435var tlbidList = new Dictionary<string, ComInfo>(); 566var usedExtensions = new Dictionary<string, FileAssociation>(StringComparer.OrdinalIgnoreCase); 643var targetPathList = new Dictionary<string, bool>();
ManifestUtil\AssemblyIdentity.cs (1)
386var redistDictionary = new Dictionary<string, RedistList>();
ManifestUtil\Manifest.cs (1)
625var identityList = new Dictionary<string, bool>();
ManifestUtil\Util.cs (1)
429var list = new Dictionary<string, ITaskItem>();
MSBuild.cs (1)
564var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
PlatformNegotiation.cs (1)
106Dictionary<string, string> table = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
PropertyParser.cs (2)
33propertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 89finalPropertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
RedistList.cs (7)
38private static readonly Dictionary<string, RedistList> s_cachedRedistList = new Dictionary<string, RedistList>(StringComparer.OrdinalIgnoreCase); 116var simpleNameMap = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 300s_redistListPathCache = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 625var denyListOfAssemblyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 658var assemblyEntries = new Dictionary<string, AssemblyEntry>(StringComparer.OrdinalIgnoreCase); 830var attributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1030s_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)
830private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(); 831private readonly Dictionary<string, MapEntry> _simpleNameDictionary = new Dictionary<string, MapEntry>(); 895private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(StringComparer.InvariantCultureIgnoreCase); 943private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
ResolveSDKReference.cs (7)
31private static readonly Dictionary<string, string> PlatformAliases = new(StringComparer.OrdinalIgnoreCase) 282_runtimeReferenceOnlyDependenciesByName = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase); 296var sdkItems = new Dictionary<string, ITaskItem>(InstalledSDKs.Length, StringComparer.OrdinalIgnoreCase); 328var productFamilyNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 331var sdkNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 737FrameworkIdentitiesFromManifest = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 738AppxLocationsFromManifest = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ResourceHandling\MSBuildResXReader.cs (1)
23var aliases = new Dictionary<string, string>();
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
46internal static readonly IDictionary<string, IEnumerable<string>> DefaultReferences = new Dictionary<string, IEnumerable<string>>(StringComparer.OrdinalIgnoreCase) 71internal static readonly IDictionary<string, ISet<string>> ValidCodeLanguages = new Dictionary<string, ISet<string>>(StringComparer.OrdinalIgnoreCase)
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
system.design\stronglytypedresourcebuilder.cs (2)
121var resourceTypes = new Dictionary<String, ResourceData>(StringComparer.InvariantCultureIgnoreCase); 720reverseFixupTable = 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)
34IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Tracing.cs (1)
58s_counts = new Dictionary<string, int>();
WriteCodeFragment.cs (3)
38private static readonly IReadOnlyDictionary<string, ParameterType> EmptyParameterTypes = new Dictionary<string, ParameterType>(); 322parameterTypes = new(); 352parameterTypes = new();
Microsoft.Build.Tasks.UnitTests (39)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (3)
102Dictionary<string, SystemState.FileState> cache = new() { 145Dictionary<string, SystemState.FileState> cache = new() { 174Dictionary<string, SystemState.FileState> cache = new() {
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
310uniqueFileExists = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 311uniqueGetAssemblyName = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
AssemblyDependency\SuggestedRedirects.cs (2)
361new TaskItem("A", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }), 362new TaskItem("B", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }),
AssignLinkMetadata_Tests.cs (1)
184IDictionary<string, string> metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
AssignTargetPath_Tests.cs (1)
95Dictionary<string, string> metaData = new Dictionary<string, string>();
CreateItem_Tests.cs (1)
209BuildRequestData data = new BuildRequestData(projectFileFullPath, new Dictionary<string, string>(), null, new string[] { "Repro" }, null);
Exec_Tests.cs (2)
952new Dictionary<string, string>(), 1009new Dictionary<string, string>(),
FindInvalidProjectReferences_Tests.cs (4)
28Dictionary<string, string> proj1 = new Dictionary<string, string>(); 31Dictionary<string, string> proj2 = new Dictionary<string, string>(); 34Dictionary<string, string> proj3 = new Dictionary<string, string>(); 37Dictionary<string, string> proj4 = new Dictionary<string, string>();
GetInstalledSDKLocations_Tests.cs (3)
289Dictionary<string, string> sdksAndVersions = new Dictionary<string, string>(); 336Dictionary<string, string> extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 410Dictionary<string, string> extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
GetSDKReference_Tests.cs (2)
267Dictionary<string, GetSDKReferenceFiles.SdkReferenceInfo> pathToReferenceMetadata = new(); 270Dictionary<string, List<string>> directoryToFileList = new();
MockUnmanagedMemoryHelper.cs (1)
25private Dictionary<IntPtr, List<IntPtr>> _dependentAllocations = new Dictionary<IntPtr, List<IntPtr>>();
RARPrecomputedCache_Tests.cs (3)
30t._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.FileState>() { 65rarWriterTask._cache.instanceLocalFileStateCache = new() { 117rarWriterTask._cache.instanceLocalFileStateCache = new Dictionary<string, SystemState.FileState>() {
ResolveSDKReference_Tests.cs (13)
333Dictionary<string, string> dict = new Dictionary<string, string>(); 3816IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>(); 3825targetResults = new Dictionary<string, TargetResult>(); 3959IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>(); 3968targetResults = new Dictionary<string, TargetResult>(); 4068IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>(); 4077targetResults = new Dictionary<string, TargetResult>(); 4165IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>(); 4176targetResults = new Dictionary<string, TargetResult>(); 4199SDKReference reference = new(new TaskItem("sdkReference", new Dictionary<string, string>() { { SDKManifest.Attributes.TargetPlatform, "UAP" } }), "sdkName", "1.0.2"); 4201new Dictionary<string, ITaskItem>() { { "sdkName, Version=1.0.2", new TaskItem(Path.GetTempFileName(), new Dictionary<string, string>() { { "PlatformVersion", "1.0.2" } }) } }, 4334IDictionary<string, TargetResult> targetResults = new Dictionary<string, TargetResult>();
ResourceHandling\GenerateResource_Tests.cs (1)
3636Dictionary<string, object> valuesFromResource = new Dictionary<string, object>();
Microsoft.Build.UnitTests.Shared (14)
MockEngine.cs (4)
61public Dictionary<string, string> GlobalProperties { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 236var finalGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 305Dictionary<string, string> finalGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 320targetOutputsPerProject.Add(new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase));
ObjectModelHelpers.cs (9)
125return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 260expectedDirectMetadata = new Dictionary<string, string>(); 470expected ??= new Dictionary<string, string>(); 1017BuildRequestData data = new BuildRequestData(projectFileFullPath, globalProperties ?? new Dictionary<string, string>(), null, targets, null); 1229Dictionary<string, V> dictionary = new Dictionary<string, V>(StringComparer.OrdinalIgnoreCase); 1426new Dictionary<string, string>(), 1751var nodes = new Dictionary<int, (bool IsRoot, string ProjectPath)>(); 1800globalProperties ?? new Dictionary<string, string>(), 2105globalProperties ?? new Dictionary<string, string>(),
TestEnvironment.cs (1)
598var tempPaths = new TempPaths
Microsoft.Build.Utilities.Core (27)
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
FileMatcher.cs (1)
2478searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase);
MuxLogger.cs (2)
58private readonly Dictionary<int, SubmissionRecord> _submissionRecords = new Dictionary<int, SubmissionRecord>(); 93private readonly Dictionary<int, int> _submissionProjectsInProgress = new Dictionary<int, int>();
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
SDKManifest.cs (2)
379_frameworkIdentities = new Dictionary<string, string>(); 390_appxLocations = new Dictionary<string, string>();
TargetPlatformSDK.cs (2)
50ExtensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 51Platforms = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ToolLocationHelper.cs (13)
399var extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 445var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase); 619var filteredExtensionSdks = new Dictionary<string, string>(); 884s_cachedTargetPlatformReferences = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 953s_cachedExtensionSdkReferences = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 1414s_vsInstallFolders = new Dictionary<string, string[]>(); 2095s_cachedReferenceAssemblyPaths = new Dictionary<string, IList<string>>(StringComparer.OrdinalIgnoreCase); 2450s_cachedTargetPlatforms = new Dictionary<string, IEnumerable<TargetPlatformSDK>>(StringComparer.OrdinalIgnoreCase); 2455s_cachedExtensionSdks = new Dictionary<string, TargetPlatformSDK>(StringComparer.OrdinalIgnoreCase); 2460var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3093s_chainedReferenceAssemblyPath ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3094s_cachedTargetFrameworkDisplayNames ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3674s_cachedHighestFrameworkNameForTargetFrameworkIdentifier = new Dictionary<string, FrameworkNameVersioning>(StringComparer.OrdinalIgnoreCase);
ToolsetElement.cs (3)
171private Dictionary<string, string> _previouslySeenOS = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 346private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 525private Dictionary<string, string> _previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Tracing.cs (1)
58s_counts = new Dictionary<string, int>();
Microsoft.Build.Utilities.UnitTests (7)
TaskItem_Tests.cs (2)
308IDictionary<string, string> metadata = new Dictionary<string, string>(); 330Dictionary<string, string> metadata = new()
ToolLocationHelper_Tests.cs (5)
3080var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3092var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3107var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3788var targetPlatforms = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 4057var targetPlatforms = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>();
Microsoft.Cci.Extensions (14)
Extensions\TypeExtensions.cs (1)
448private static Dictionary<string, string> s_tokenNames = new Dictionary<string, string>()
Filters\BaselineDifferenceFilter.cs (1)
14private readonly Dictionary<string, bool> _ignoreDifferences = new Dictionary<string, bool>();
Mappings\AssemblyMapping.cs (2)
19_namespaces = new Dictionary<INamespaceDefinition, NamespaceMapping>(settings.NamespaceComparer); 30_properties = new Dictionary<string, ElementMapping<AssemblyProperty>>();
Mappings\AssemblySetMapping.cs (2)
17_namespaces = new Dictionary<INamespaceDefinition, NamespaceMapping>(settings.NamespaceComparer); 18_assemblies = new Dictionary<IAssembly, AssemblyMapping>(settings.AssemblyComparer);
Mappings\AttributesMapping.cs (1)
29_attributes = new Dictionary<string, ElementMapping<AttributeGroup>>();
Mappings\NamespaceMapping.cs (1)
19_types = new Dictionary<ITypeDefinition, TypeMapping>(settings.TypeComparer);
Mappings\TypeMapping.cs (2)
19_members = new Dictionary<ITypeDefinitionMember, MemberMapping>(settings.MemberComparer); 20_nestedTypes = new Dictionary<INestedTypeDefinition, TypeMapping>(settings.TypeComparer);
SRMetadataPEReaderCache.cs (1)
25_cache = new Dictionary<string, (FileStream, PEReader)>();
Traversers\DependencyTraverser.cs (1)
23_dependencies = new Dictionary<IDefinition, HashSet<IReference>>(new ReferenceEqualityComparer<IDefinition>());
Traversers\DocIdToTypeMappingTraverser.cs (1)
15_typesIdMap = new Dictionary<string, ITypeDefinition>();
Traversers\ResolveAllReferencesTraverser.cs (1)
18_missingDependencies = new Dictionary<IReference, HashSet<IReference>>(new ReferenceEqualityComparer());
Microsoft.CodeAnalysis (130)
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)
97map = new Dictionary<ILocalSymbolInternal, LocalDefinition>(ReferenceEqualityComparer.Instance);
CodeGen\SwitchStringJumpTableEmitter.cs (2)
133var hashBucketLabelsMap = new Dictionary<uint, object>(count); 188var 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\ImmutableArrayExtensions.cs (1)
1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
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)
432var 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)
48Interlocked.CompareExchange(ref _lazyStateMachineTypes, new Dictionary<TMethodSymbol, TNamedTypeSymbol>(), null);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (8)
45_completedSyntaxAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>(); 46_completedSemanticAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>(); 47_completedSyntaxAnalyzersByAdditionalFile = new Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>>(); 48_analyzerActionCounts = new Dictionary<DiagnosticAnalyzer, AnalyzerActionCounts>(analyzers.Length); 54var map = new Dictionary<DiagnosticAnalyzer, TimeSpan>(analyzers.Length); 339lazyLocalDiagnostics = lazyLocalDiagnostics ?? new Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>(); 352allDiagnostics = new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>(); 374_nonLocalDiagnosticsOpt = _nonLocalDiagnosticsOpt ?? new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>();
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
42private readonly Dictionary<string, DirectoryLoadContext> _loadContextByDirectory = new Dictionary<string, DirectoryLoadContext>(StringComparer.Ordinal);
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (3)
51private readonly Dictionary<string, (AssemblyName? AssemblyName, string RealAssemblyPath)?> _analyzerAssemblyInfoMap = new(); 61private readonly Dictionary<(string OriginalAnalyzerPath, CultureInfo CultureInfo), string?> _analyzerSatelliteAssemblyRealPaths = new(); 70private readonly Dictionary<string, ImmutableHashSet<string>> _knownAssemblyPathsBySimpleName = new(StringComparer.OrdinalIgnoreCase);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
419_lazyGeneratedCodeSymbolsForTreeMap = new Dictionary<SyntaxTree, ImmutableHashSet<ISymbol>>();
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
227Dictionary<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)
44var 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)
46private readonly Dictionary<string, SuppressMessageInfo> _compilationWideSuppressions = new Dictionary<string, SuppressMessageInfo>(); 47private readonly Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>> _globalSymbolSuppressions = new Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>>(); 63suppressions = new Dictionary<string, SuppressMessageInfo>() { { info.Id, info } };
Emit\EditAndContinue\DefinitionMap.cs (4)
67var mappedMethods = new Dictionary<IMethodSymbolInternal, EncMappedMethod>(); 190var declaratorToIndex = new Dictionary<SyntaxNode, int>(); 499var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>(); 500var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.Instance);
Emit\EditAndContinue\DeltaMetadataWriter.cs (12)
103_deletedTypeMembers = new Dictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>>(ReferenceEqualityComparer.Instance); 111_parameterDefList = new Dictionary<IParameterDefinition, IMethodDefinition>(Cci.SymbolEquivalentEqualityComparer.Instance); 117_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 120_firstParamRowMap = new Dictionary<MethodDefinitionHandle, int>(); 121_existingParameterDefs = new Dictionary<IParameterDefinition, int>(ReferenceEqualityComparer.Instance); 131_addedOrChangedMethods = new Dictionary<IMethodDefinition, AddedOrChangedMethodInfo>(Cci.SymbolEquivalentEqualityComparer.Instance); 172var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>(); 242var result = new Dictionary<K, V>(comparer); 497var result = new Dictionary<ITypeDefinition, ArrayBuilder<IMethodDefinition>>(ReferenceEqualityComparer.Instance); 498var typesUsedByDeletedMembers = new Dictionary<ITypeDefinition, DeletedSourceTypeDefinition>(ReferenceEqualityComparer.Instance); 1453this.added = new Dictionary<T, int>(comparer); 1546_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)
356var changesBuilder = new Dictionary<ISymbolInternal, SymbolChange>(); 357var updatedMethodsBuilder = new Dictionary<INamedTypeSymbolInternal, ArrayBuilder<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>>(); 386lazyDeletedMembersBuilder ??= new();
Emit\EditAndContinue\SymbolMatcher.cs (2)
79var result = new Dictionary<K, V>(Cci.SymbolEquivalentEqualityComparer.Instance); 98var result = new Dictionary<int, AddedOrChangedMethodInfo>();
InternalUtilities\ConcurrentLruCache.cs (1)
40_cache = new Dictionary<K, CacheValue>(capacity);
InternalUtilities\EnumerableExtensions.cs (1)
762var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 248_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
MetadataReader\MetadataHelpers.cs (1)
885var names = new Dictionary<string, int>(nestedNamespaces.Count, nameComparer);
MetadataReader\PEAssembly.cs (1)
134var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase);
MetadataReader\PEModule.cs (6)
49private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>(); 50private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(); 673Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>>(); 742var namespaceHandles = new Dictionary<NamespaceDefinitionHandle, ArrayBuilder<TypeDefinitionHandle>>(NamespaceHandleEqualityComparer.Singleton); 3793var caseInsensitiveMap = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(StringComparer.OrdinalIgnoreCase); 3861typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
MetadataReference\AssemblyIdentityMap.cs (1)
24_map = new Dictionary<string, OneOrMany<KeyValuePair<AssemblyIdentity, TValue>>>(AssemblyIdentityComparer.SimpleNameComparer);
NativePdbWriter\PdbWriter.cs (2)
49_documentIndex = new Dictionary<DebugSourceDocument, int>(); 50_qualifiedNameCache = new Dictionary<object, string>(ReferenceEqualityComparer.Instance);
Operations\ControlFlowGraphBuilder.cs (1)
7975var explicitProperties = new Dictionary<IPropertySymbol, IOperation>(SymbolEqualityComparer.IgnoreAll);
PEWriter\FullMetadataWriter.cs (2)
101_fieldDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess, ReferenceEqualityComparer.Instance); 102_methodDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess, ReferenceEqualityComparer.Instance);
PEWriter\MetadataWriter.cs (13)
114_signatureIndex = new Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(module.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures 123_smallMethodBodies = new Dictionary<(ImmutableArray<byte>, bool), int>(ByteSequenceBoolTupleComparer.Instance); 124_scopeIndex = new Dictionary<IImportScope, ImportScopeHandle>(new ImportScopeEqualityComparer(context)); 439private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 440private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance); 441private readonly Dictionary<string, int> _fileRefIndex = new Dictionary<string, int>(32); // more than enough in most cases, value is a RowId 443private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(ReferenceEqualityComparer.Instance); 448private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>(); 450private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(ReferenceEqualityComparer.Instance); 4247: this(writer, new Dictionary<T, int>(), lastRowId) 4274: this(writer, new Dictionary<ITypeReference, int>(ReferenceEqualityComparer.Instance), lastRowId) 4304_instanceIndex = new Dictionary<T, int>(ReferenceEqualityComparer.Instance); 4305_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)
235var boundReferences = new Dictionary<MetadataReference, MetadataReference>(MetadataReferenceEqualityComparer.Instance); 619lazyAliasMap = new Dictionary<MetadataReference, MergedAliases>(); 828localBoundReferenceDirectives = 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)
87s_nameToTypeIdMap = new Dictionary<string, ExtendedSpecialType>((int)InternalSpecialType.NextAvailable - 1);
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
WellKnownTypes.cs (1)
698private static readonly Dictionary<string, WellKnownType> s_nameToTypeIdMap = new Dictionary<string, WellKnownType>((int)Count);
Microsoft.CodeAnalysis.CodeStyle (29)
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
70var result = new Dictionary<int, int>();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
29var enumMembers = new Dictionary<long, ISymbol>();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
60var enumMembers = new Dictionary<long, ISymbol>();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
762var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 248_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
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>(); 859var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 861var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
104var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
349var previousChangesMap = new Dictionary<SyntaxToken, int>(); 376var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
20private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (2)
25var ruleNames = new Dictionary<(Guid symbolSpecificationID, Guid namingStyleID, ReportDiagnostic enforcementLevel), string>(); 105var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
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);
Microsoft.CodeAnalysis.CodeStyle.Fixes (15)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
82var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
183var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
56var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 110var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
21new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.CSharp (76)
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\Binder_Constraints.cs (1)
43var names = new Dictionary<string, int>(n, StringOrdinalComparer.Instance);
Binder\PatternExplainer.cs (3)
248constraints = new Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>>(); 249evaluations = new Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>>(); 533var properties = new Dictionary<Symbol, string>();
Binder\RefSafetyAnalysis.cs (2)
201_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, uint>(); 473_localEscapeScopes ??= new Dictionary<LocalSymbol, (uint RefEscapeScope, uint ValEscapeScope)>();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
2851var candidates = new Dictionary<TypeWithAnnotations, TypeWithAnnotations>(EqualsIgnoringDynamicTupleNamesAndNullabilityComparer.Instance);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (1)
891Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMap = new Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>>();
Binder\SwitchBinder.cs (1)
456var result = new Dictionary<SyntaxNode, LabelSymbol>();
Binder\TypeofBinder.cs (1)
71_allowedMap = new Dictionary<GenericNameSyntax, bool>();
BoundTree\BoundNode_Source.cs (1)
21appendSourceCore(this, indent: 0, tempIdentifiers: new Dictionary<SynthesizedLocal, int>());
CodeGen\EmitStatement.cs (1)
2007_labelClones = labelClones = new Dictionary<LabelSymbol, GeneratedLabelSymbol>();
CommandLine\CSharpCommandLineParser.cs (3)
118var diagnosticOptions = new Dictionary<string, ReportDiagnostic>(); 119var noWarns = new Dictionary<string, ReportDiagnostic>(); 120var warnAsErrors = new Dictionary<string, ReportDiagnostic>();
Compilation\MemberSemanticModel.cs (3)
32private readonly Dictionary<SyntaxNode, OneOrMany<BoundNode>> _guardedBoundNodeMap = new Dictionary<SyntaxNode, OneOrMany<BoundNode>>(); 33private readonly Dictionary<SyntaxNode, IOperation> _guardedIOperationNodeMap = new Dictionary<SyntaxNode, IOperation>(); 1415_lazyGuardedSynthesizedStatementsMap = new Dictionary<SyntaxNode, BoundStatement>();
Compiler\ClsComplianceChecker.cs (1)
1075containingTypes = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>();
Compiler\TypeCompilationState.cs (1)
156_wrappers = new Dictionary<MethodSymbol, MethodSymbol>();
Declarations\MergedNamespaceDeclaration.cs (1)
162var namespaceGroups = new Dictionary<string, ArrayBuilder<SingleNamespaceDeclaration>>(StringOrdinalComparer.Instance);
Emitter\EditAndContinue\CSharpDefinitionMap.cs (2)
64var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>(); 155var map = new Dictionary<EncLocalInfo, int>();
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
115var anonymousDelegatesWithIndexedNames = new Dictionary<AnonymousDelegateWithIndexedNamePartialKey, ArrayBuilder<AnonymousTypeValue>>();
Emitter\Model\PEModuleBuilder.cs (2)
672var exportedNamesMap = new Dictionary<string, NamedTypeSymbol>(StringOrdinalComparer.Instance); 1467Interlocked.CompareExchange(ref _fixedImplementationTypes, new Dictionary<FieldSymbol, NamedTypeSymbol>(), null);
Errors\ErrorFacts.cs (1)
98var map = new Dictionary<ErrorCode, string>()
FlowAnalysis\AbstractFlowPass.cs (1)
219_loopHeadState = new Dictionary<BoundLoopStatement, TLocalState>(ReferenceEqualityComparer.Instance);
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
822_labelsInInterestingTry = labelsInInterestingTry = new Dictionary<BoundTryStatement, HashSet<LabelSymbol>>(); 968this.proxyLabels = proxyLabels = new Dictionary<LabelSymbol, LabelSymbol>(); 1049_hoistedLocals = new Dictionary<LocalSymbol, LocalSymbol>();
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
93_awaiterFields = new Dictionary<TypeSymbol, FieldSymbol>(Symbols.SymbolEqualityComparer.IgnoringDynamicTupleNamesAndNullability); 96_placeholderMap = new Dictionary<BoundValuePlaceholderBase, BoundExpression>();
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 (1)
21private readonly Dictionary<ParameterSymbol, BoundExpression> _parameterMap = new Dictionary<ParameterSymbol, 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)
18private readonly Dictionary<(TypeSymbol?, TypeSymbol, MethodSymbol), FieldSymbol> _delegateFields = new(CLRSignatureComparer.Instance);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
108var containers = _genericCacheContainers ??= new Dictionary<MethodSymbol, DelegateCacheContainer>(ReferenceEqualityComparer.Instance);
Lowering\LocalRewriter\LocalRewriter.cs (1)
537_placeholderReplacementMapDoNotUseDirectly = new Dictionary<BoundValuePlaceholderBase, BoundExpression>();
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
179_lazyUnmatchedLabelCache = new Dictionary<BoundNode, HashSet<LabelSymbol>>();
Lowering\MethodToClassRewriter.cs (3)
28protected Dictionary<Symbol, CapturedSymbolReplacement> proxies = new Dictionary<Symbol, CapturedSymbolReplacement>(); 33protected readonly Dictionary<LocalSymbol, LocalSymbol> localMap = new Dictionary<LocalSymbol, LocalSymbol>(); 65this._placeholderMap = new Dictionary<BoundValuePlaceholderBase, BoundExpression>();
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
40private readonly Dictionary<LocalSymbol, BoundExpression> _boundRefLocalInitializers = new Dictionary<LocalSymbol, BoundExpression>();
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (4)
64private Dictionary<LabelSymbol, List<StateMachineState>> _dispatches = new(); 229_dispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>(); 482_lazyAvailableReusableHoistedFields = new Dictionary<TypeSymbol, ArrayBuilder<StateMachineFieldSymbol>>(Symbols.SymbolEqualityComparer.IgnoringDynamicTupleNamesAndNullability); 875oldDispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>();
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
114initialParameters = new Dictionary<Symbol, CapturedSymbolReplacement>(); 141var proxiesBuilder = new Dictionary<Symbol, CapturedSymbolReplacement>();
Lowering\SynthesizedSubmissionFields.cs (1)
77_previousSubmissionFieldMap = new Dictionary<ImplicitNamedTypeSymbol, FieldSymbol>();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
31new Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance);
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
257var namespaces = new Dictionary<ReadOnlyMemory<char>, PENestedNamespaceSymbol>(ReadOnlyMemoryOfCharComparer.Instance); 298noPiaLocalTypes = new Dictionary<string, TypeDefinitionHandle>(StringOrdinalComparer.Instance);
Symbols\ReferenceManager.cs (1)
850missingAssemblies = new Dictionary<AssemblyIdentity, MissingAssemblySymbol>();
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
50new Dictionary<AssemblySymbol, DestinationData>();
Symbols\Source\QuickAttributeChecker.cs (2)
63_nameToAttributeMap = new Dictionary<string, QuickAttributes>(StringComparer.Ordinal); 69_nameToAttributeMap = new Dictionary<string, QuickAttributes>(previous._nameToAttributeMap, StringComparer.Ordinal);
Symbols\Source\SourceAssemblySymbol.cs (1)
2833forwardedTypesFromSource = new Dictionary<string, NamedTypeSymbol>(StringOrdinalComparer.Instance);
Symbols\Source\SourceMemberContainerSymbol.cs (10)
210new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance); 1321var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>(); 1607return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(1, ReadOnlyMemoryOfCharComparer.Instance) 1615return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(ReadOnlyMemoryOfCharComparer.Instance); 1948var methodsBySignature = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 1949var conversionsAsMethods = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2188var indexersBySignature = new Dictionary<PropertySymbol, PropertySymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2669var instanceMap = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>(ReferenceEqualityComparer.Instance); 3580var membersBySignature = new Dictionary<Symbol, Symbol>(MemberSignatureComparer.PartialMethodsComparer); 3735membersByName = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(membersByName, ReadOnlyMemoryOfCharComparer.Instance);
Utilities\FirstAmongEqualsSet.cs (1)
51_dictionary = new Dictionary<T, T>(equalityComparer);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
648var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (9)
CommandLineTests.cs (9)
479var parser = new TestCommandLineParser(responseFiles: new Dictionary<string, string>() 593patterns: new Dictionary<string, string[]>() 597recursivePatterns: new Dictionary<string, string[]>() 2436var expectedEmbeddedMap = new Dictionary<string, string>(); 9843Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "false" }, { "Key", "value" } })); 9847Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "true" } })); 13896ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, $"generatedSource.cs"), generatedSource } }, dir, true); 13937ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, "generatedSource.cs"), generatedSource } }, dir, true); 13978ValidateEmbeddedSources_Portable(new Dictionary<string, string>
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (45)
CodeActions\AddUsing\AddUsingTests.cs (1)
2050var resolver = new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>()
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (17)
27var dictionary = new Dictionary<string, string>() 75var dictionary = new Dictionary<string, string>() 96var dictionary = new Dictionary<string, string>() 138var dictionary = new Dictionary<string, string>() 155var dictionary = new Dictionary<string, string>() 203var dictionary = new Dictionary<string, string>() 245var dictionary = new Dictionary<string, string>() 288var dictionary = new Dictionary<string, string>() 327var dictionary = new Dictionary<string, string>() 352var rule = new Dictionary<string, string>() 383var rule = new Dictionary<string, string>() 403var charpRule = new Dictionary<string, string>() 411var vbRule = new Dictionary<string, string>() 432var rule = new Dictionary<string, string>() 489var namingStylePreferences = ParseDictionary(new Dictionary<string, string>() 525var namingStylePreferences = ParseDictionary(new Dictionary<string, string>() 561var namingStylePreferences = ParseDictionary(new Dictionary<string, string>()
Formatting\CodeCleanupTests.cs (1)
808var map = new Dictionary<string, ImmutableArray<DiagnosticAnalyzer>>{
MoveToNamespace\MoveToNamespaceTests.cs (25)
110expectedSymbolChanges: new Dictionary<string, string>() 137expectedSymbolChanges: new Dictionary<string, string>() 164expectedSymbolChanges: new Dictionary<string, string>() 191expectedSymbolChanges: new Dictionary<string, string>() 219expectedSymbolChanges: new Dictionary<string, string>() 297expectedSymbolChanges: new Dictionary<string, string>() 365expectedSymbolChanges: new Dictionary<string, string>() 441expectedSymbolChanges: new Dictionary<string, string>() 463expectedSymbolChanges: new Dictionary<string, string>() 496expectedSymbolChanges: new Dictionary<string, string>() 534expectedSymbolChanges: new Dictionary<string, string>() 567expectedSymbolChanges: new Dictionary<string, string>() 605expectedSymbolChanges: new Dictionary<string, string>() 649expectedSymbolChanges: new Dictionary<string, string>() 693expectedSymbolChanges: new Dictionary<string, string>() 737expectedSymbolChanges: new Dictionary<string, string>() 781expectedSymbolChanges: new Dictionary<string, string>() 848expectedSymbolChanges: new Dictionary<string, string>() 905expectedSymbolChanges: new Dictionary<string, string>() 1026expectedSymbolChanges: new Dictionary<string, string>() 1083expectedSymbolChanges: new Dictionary<string, string>() 1140expectedSymbolChanges: new Dictionary<string, string>() 1237expectedSymbolChanges: new Dictionary<string, string>() 1281expectedSymbolChanges: new Dictionary<string, string>() 1455expectedSymbolChanges: new Dictionary<string, string>()
SignatureHelp\AbstractCSharpSignatureHelpProviderTests.cs (1)
18return new CSharpParseOptions().WithFeatures(new Dictionary<string, string>()); // no experimental features to enable
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Recommendations\FromKeywordRecommenderTests.cs (1)
248var experimentalFeatures = new System.Collections.Generic.Dictionary<string, string>(); // no experimental features to enable
Recommendations\IsKeywordRecommenderTests.cs (1)
145var experimentalFeatures = new System.Collections.Generic.Dictionary<string, string>(); // no experimental features to enable
Recommendations\KeywordRecommenderTests.cs (1)
17private static readonly Dictionary<SyntaxKind, AbstractSyntacticSingleKeywordRecommender> s_recommenderMap = new(SyntaxFacts.EqualityComparer);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
4747var warnings = new System.Collections.Generic.Dictionary<string, ReportDiagnostic>();
Emit\EmitErrorTests.cs (1)
304var warnOpts = new System.Collections.Generic.Dictionary<string, ReportDiagnostic>();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
Attributes\AttributeTests_Assembly.cs (3)
182var warnings = new Dictionary<string, ReportDiagnostic>(); 214var warnings = new Dictionary<string, ReportDiagnostic>(); 430var warnings = new Dictionary<string, ReportDiagnostic>();
Attributes\AttributeTests_MarshalAs.cs (21)
230var blobs = new Dictionary<string, byte[]> 327var blobs = new Dictionary<string, byte[]> 374var blobs = new Dictionary<string, byte[]> 461var blobs = new Dictionary<string, byte[]> 486var expectedBlobs = new Dictionary<string, byte[]>(); 594var blobs = new Dictionary<string, byte[]> 632var expectedBlobs = new Dictionary<string, byte[]>(); 760var blobs = new Dictionary<string, byte[]> 800var blobs = new Dictionary<string, byte[]> 832var cciBlobs = new Dictionary<string, byte[]> 913var blobs = new Dictionary<string, byte[]> 1032var blobs = new Dictionary<string, byte[]> 1140var blobs = new Dictionary<string, byte[]>() 1185var blobs = new Dictionary<string, byte[]>() 1220var blobs = new Dictionary<string, byte[]>() 1251CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1278CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1299CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1321CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1349CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>() 1493CompileAndVerifyFieldMarshal(source, new Dictionary<string, byte[]>
Attributes\AttributeTests_WellKnownAttributes.cs (1)
2814var visitedEntryPoints = new Dictionary<string, bool>();
Diagnostics\DiagnosticAnalyzerTests.cs (11)
316var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 331specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 343specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 458var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 530var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 539specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 1140var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 1282specificOptions = specificOptions ?? new Dictionary<string, ReportDiagnostic>(); 1302var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", ReportDiagnostic.Default } }; 1323var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } }; 1346var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
FlowAnalysis\FlowDiagnosticTests.cs (1)
383Dictionary<int, int> warnings = new Dictionary<int, int>();
Microsoft.CodeAnalysis.CSharp.Features (4)
ChangeSignature\CSharpChangeSignatureService.cs (1)
810var dictionary = new Dictionary<string, XmlElementSyntax>();
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
23private static readonly Dictionary<BinaryOperatorKind, SyntaxKind> s_operatorMap = new Dictionary<BinaryOperatorKind, SyntaxKind>
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
425var replacements = new Dictionary<SyntaxNode, SyntaxNode>();
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (1)
94var map = new Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>>();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
455var experimentalFeatures = new Dictionary<string, string>(); // no experimental features to enable 505var featuresToEnable = new Dictionary<string, string>() { { feature, "enabled" } };
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
1159var builtInTypeMap = new Dictionary<string, string>()
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
InteractiveSessionReferencesTests.cs (1)
165files: new Dictionary<string, PortableExecutableReference> { { @"C:\dir\x.dll", (PortableExecutableReference)SystemCoreRef } }));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
583var obj = new Dictionary<string, int>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\InteractiveUsingTests.cs (3)
358var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string> 429var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string> 479var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string>
Semantics\MethodBodyModelTests.cs (1)
126Dictionary<int, int> errors = new Dictionary<int, int>();
Semantics\NullableTests.cs (5)
712var zeros = new Dictionary<string, string>() 730var ones = new Dictionary<string, string>() 1147var twos = new Dictionary<string, string>() 1163var ones = new Dictionary<string, string>() 1180var names = new Dictionary<string, string>()
Semantics\SemanticErrorTests.cs (2)
2115var comp = CreateCompilation(text, options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() 11037var noWarns = new Dictionary<string, ReportDiagnostic>();
Semantics\UnsafeTests.cs (1)
10579private static readonly Dictionary<SpecialType, int> s_specialTypeSizeOfMap = new Dictionary<SpecialType, int>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
Compilation\CompilationAPITests.cs (1)
590new TestMetadataReferenceResolver(files: new Dictionary<string, PortableExecutableReference>()
Compilation\CSharpCompilationOptionsTests.cs (3)
87new Dictionary<string, ReportDiagnostic> { { "CS0001", ReportDiagnostic.Error } }.ToImmutableDictionary()); 126new Dictionary<string, ReportDiagnostic> { { "CS0001", ReportDiagnostic.Error } }.ToImmutableDictionary()); 228var warnings = new Dictionary<string, ReportDiagnostic>
Compilation\ReferenceManagerTests.cs (25)
871assemblyNames: new Dictionary<string, PortableExecutableReference> { { "Lib", r3 } }, 872files: new Dictionary<string, PortableExecutableReference> { { p2, r2 }, { p3, r3 } })) 1368files: new Dictionary<string, PortableExecutableReference>() 2328new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>() 2357new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>() 2530var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2552var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2587var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2639var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2675var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2706var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>()); 2722var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>()); 2747var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2772var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2803var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2838var resolver = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2879var resolverA = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2890var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2945var resolverA = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 2956var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3008var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3054var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3120var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3184var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference> 3224var resolverC = new TestMissingMetadataReferenceResolver(new Dictionary<string, MetadataReference>
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
5759var warnDict = new Dictionary<string, ReportDiagnostic> { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_MissingXMLComment), ReportDiagnostic.Suppress } };
Symbols\PartialPropertiesTests.cs (1)
841var visitedEntryPoints = new Dictionary<string, bool>();
Symbols\SymbolErrorTests.cs (1)
108options: TestOptions.ReleaseDll.WithSpecificDiagnosticOptions(new Dictionary<string, ReportDiagnostic>() { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_UnreferencedField), ReportDiagnostic.Suppress } }),
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (42)
Diagnostics\DiagnosticTest.cs (26)
569IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 613IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 673IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 724IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 780IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 836IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 894IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 952IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1011IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1081IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1152IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1217IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1270IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1324IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1374IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1425var warnings = new Dictionary<string, ReportDiagnostic>(); 1481IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1498warnings = new Dictionary<string, ReportDiagnostic>(); 1548IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1598IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1654IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1701IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1738IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1771IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1820var warnings = new Dictionary<string, ReportDiagnostic>(); 2244var warnings = new Dictionary<string, ReportDiagnostic>();
LexicalAndXml\XmlDocCommentTests.cs (13)
1731VerifyXmlAttributes(xmlElement.StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } }); 1768VerifyXmlAttributes((firstComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1771VerifyXmlAttributes((secondComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } }); 1814VerifyXmlAttributes((secondComment.Content[1] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "as" } }); 1849VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1884VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1919VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 1954VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2065VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2097VerifyXmlAttributes((firstComment.Content[0] as XmlEmptyElementSyntax).Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2131VerifyXmlAttributes((firstComment.Content[0] as XmlElementSyntax).StartTag.Attributes, new Dictionary<string, string>() { { "a", "val" } }); 2267new Dictionary<string, string>() { { "attr1", "a" }, { "attr2", "b" }, { "attr3", "test" } }); 2309VerifyXmlAttributes(thirdLevelTrivia.StartTag.Attributes, new Dictionary<string, string>() { { "attr", "a" } });
Syntax\SyntaxAnnotationTests.cs (2)
435var nodeOrTokenMap = new Dictionary<SyntaxNodeOrToken, SyntaxNodeOrToken>(); 456var triviaMap = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
Syntax\SyntaxNodeTests.cs (1)
3961var tests = new Dictionary<string, string>
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
62public static readonly CSharpParseOptions Regular6WithV7SwitchBinder = Regular6.WithFeatures(new Dictionary<string, string>() { { "testV7SwitchBinder", "true" } });
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
648var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Microsoft.CodeAnalysis.EditorFeatures (2)
LanguageServer\RazorInProcLanguageClient.cs (1)
76vsServerCapabilities.Experimental ??= new Dictionary<string, bool>();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
590var bufferToChanges = new Dictionary<ITextBuffer, DiffResult>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
448var locations = new Dictionary<string, IList<LSP.Location>>();
Workspaces\EditorTestWorkspace.cs (1)
413var tempMappedMarkupSpans = new Dictionary<string, PooledObjects.ArrayBuilder<TextSpan>>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (1)
99var expectedMap = new Dictionary<string, string>();
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (5)
49var libraries = new Dictionary<string, ProjectAssetsLibrary>(); 61var libraries = new Dictionary<string, ProjectAssetsTargetLibrary>(); 68Compile = new Dictionary<string, ProjectAssetsTargetLibraryCompile>() { { Path.ChangeExtension(reference.ItemSpecification, "dll"), new ProjectAssetsTargetLibraryCompile() } }, 74return new Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>>() { { targetFramework, libraries } }; 98Frameworks = new Dictionary<string, ProjectAssetsProjectFramework>() { { targetFramework, new ProjectAssetsProjectFramework() } }
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
EEMetadataReferenceResolver.cs (1)
18new Dictionary<AssemblyIdentity, (AssemblyIdentity? Identity, int Count)>();
MetadataUtilities.cs (2)
104modulesByName ??= new Dictionary<string, ModuleMetadata?>(); // Requires case-insensitive comparison? 122var refsBySimpleName = new Dictionary<string, ImmutableArray<(AssemblyIdentity, MetadataReference)>>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Resolver.cs (1)
31_requests = new Dictionary<Process, List<Request>>();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (4)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
83var favoritesMembersByName = new Dictionary<string, MemberAndDeclarationInfo>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (3)
47var previousDeclarationMap = includeInherited ? new Dictionary<string, DeclarationInfo>() : null; 79favoritesMemberNames = new Dictionary<string, object>(favoritesInfo.Favorites.Count); 575result ??= new Dictionary<string, DkmClrDebuggerBrowsableAttributeState>();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Debugger\Engine\DkmDataContainer.cs (1)
19private readonly Dictionary<Guid, object> _dataItems = new Dictionary<Guid, object>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
83var favoritesMembersByName = new Dictionary<string, MemberAndDeclarationInfo>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (3)
47var previousDeclarationMap = includeInherited ? new Dictionary<string, DeclarationInfo>() : null; 79favoritesMemberNames = new Dictionary<string, object>(favoritesInfo.Favorites.Count); 575result ??= new Dictionary<string, DkmClrDebuggerBrowsableAttributeState>();
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\CodeMapper\CopilotCSharpMapCodeService.cs (1)
32var options = new Dictionary<string, object>();
Microsoft.CodeAnalysis.Features (47)
ChangeSignature\AbstractChangeSignatureService.cs (5)
255var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>(); 256var definitionToUse = new Dictionary<SyntaxNode, ISymbol>(); 377var updatedRoots = new Dictionary<DocumentId, SyntaxNode>(); 480var argumentToParameterMap = new Dictionary<IUnifiedArgumentSyntax, IParameterSymbol>(); 481var parameterToIndexMap = new Dictionary<IParameterSymbol, int>();
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.ProviderManager.cs (1)
38_rolesToProviders = new Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>>(this);
Completion\CompletionService_GetCompletions.cs (1)
308var result = new Dictionary<CompletionProvider, int>(completionProviders.Length);
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
31new Dictionary<string, (string tagOpen, string textBeforeCaret, string textAfterCaret, string? tagClose)>()
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
209var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default);
Completion\Providers\AbstractSymbolCompletionProvider.cs (3)
130var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default); 341var result = new Dictionary<SymbolAndSelectionInfo, TSyntaxContext>(); 400var missingSymbols = new Dictionary<ISymbol, List<ProjectId>>(LinkedFilesSymbolEquivalenceComparer.Instance);
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
382var parameterToPropMap = new Dictionary<string, ISymbol>();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
302var documentToEditorMap = new Dictionary<Document, SyntaxEditor>();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
746var map = new Dictionary<SyntaxNode, EditKind>(editScript.Edits.Length); 1452var map = new Dictionary<SyntaxNode, SyntaxNode>();
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)
27new()
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingSolutionCrawlerLogger.cs (1)
195var statMap = new Dictionary<string, List<int>>();
ExtractMethod\AbstractSyntaxTriviaService.cs (3)
75var map = new Dictionary<SyntaxToken, SyntaxToken>(); 98var triviaList = new Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> 111var 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>
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
360var renameTable = new Dictionary<ISymbol, string>();
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
273var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (3)
64var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>(); 235var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); 487var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>();
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (2)
124var anonymousTypeToName = new Dictionary<INamedTypeSymbol, string>(); 188var transitiveReferences = new Dictionary<INamedTypeSymbol, (int order, int count)>();
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
427var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap);
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
33private readonly Dictionary<string, Dictionary<(string @namespace, string typeName), string>?> _typeForwardCache = new(StringComparer.OrdinalIgnoreCase);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
22var result = new Dictionary<Glyph, QuickInfoGlyphElement>(capacity: glyphs.Length);
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
70var result = new Dictionary<int, int>();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchExpressionHelpers.cs (1)
29var enumMembers = new Dictionary<long, ISymbol>();
src\Analyzers\Core\Analyzers\PopulateSwitch\PopulateSwitchStatementHelpers.cs (1)
60var enumMembers = new Dictionary<long, ISymbol>();
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
82var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
183var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
59var builtReferences = new Dictionary<string, ReferenceInfo?>();
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
150var canEdit = new Dictionary<DocumentId, bool>();
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\ActiveStatementsDescription.cs (2)
44var oldDocumentMap = new Dictionary<string, List<ActiveStatement>>(); 138var map = new Dictionary<string, List<ActiveStatement>>();
EditAndContinue\EditAndContinueTestVerifier.cs (1)
493var result = new Dictionary<SyntaxNode, SyntaxNode>();
EditAndContinue\SourceMarkers.cs (1)
48var tagMap = new Dictionary<(int major, int minor), (int start, int end)>();
Microsoft.CodeAnalysis.Features.UnitTests (4)
EditAndContinue\ActiveStatementsMapTests.cs (3)
124var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 179var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 230var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>();
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
500var initialNonRemappableRegions = new Dictionary<ManagedMethodId, ImmutableArray<NonRemappableRegion>>
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.LanguageServer (6)
BrokeredServices\Services\Descriptors.cs (1)
40public static ImmutableDictionary<ServiceMoniker, ServiceRegistration> RemoteServicesToRegister = new Dictionary<ServiceMoniker, ServiceRegistration>
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
66private readonly Dictionary<string, int> _watchedFiles = new Dictionary<string, int>(s_stringComparer);
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
109var fileCounts = new Dictionary<string, int>();
Services\ExtensionAssemblyManager.cs (2)
57var directoryLoadContexts = new Dictionary<string, AssemblyLoadContext>(StringComparer.Ordinal); 58var assemblyFullNameToLoadContext = new Dictionary<string, AssemblyLoadContext>(StringComparer.Ordinal);
Testing\RunTestsHandler.cs (1)
58EnvironmentVariables = new()
Microsoft.CodeAnalysis.LanguageServer.Protocol (21)
Extensions\ProtocolConversions.cs (2)
53public static readonly ImmutableDictionary<string, ImmutableArray<LSP.CompletionItemKind>> RoslynTagToCompletionItemKinds = new Dictionary<string, ImmutableArray<LSP.CompletionItemKind>>() 100public static readonly ImmutableDictionary<string, ImmutableArray<LSP.CompletionItemTag>> RoslynTagToCompletionItemTags = new Dictionary<string, ImmutableArray<LSP.CompletionItemTag>>()
Features\CodeFixes\CodeFixService.cs (2)
502var uniqueDiagosticToEquivalenceKeysMap = new Dictionary<Diagnostic, PooledHashSet<string?>>(); 507var diagnosticAndEquivalenceKeyToFixersMap = new Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider>();
Handler\Completion\CompletionResultFactory.cs (2)
68var commitCharactersRuleCache = new Dictionary<ImmutableArray<CharacterSetModificationRule>, string[]>(CommitCharacterArrayComparer.Instance); 261var commitCharacterReferences = new Dictionary<object, int>();
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
35private readonly Dictionary<string, bool> _categoryToLspChanged = new();
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
260var fieldOffsets = new Dictionary<SnippetFieldPart, ImmutableArray<TextSpan>>();
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
180var fieldNameToSnippetIndex = new Dictionary<string, int>();
Handler\SemanticTokens\CustomLspSemanticTokenNames.cs (1)
84public static ImmutableDictionary<string, string> ClassificationTypeNameToCustomTokenName = new Dictionary<string, string>
Handler\SemanticTokens\SemanticTokensSchema.cs (3)
23private static readonly ImmutableDictionary<string, string> s_vsDirectTypeMap = new Dictionary<string, string>() 38private static readonly ImmutableDictionary<string, string> s_pureLspDirectTypeMap = s_vsDirectTypeMap.Concat(new Dictionary<string, string> 107var tokenTypeToIndex = new Dictionary<string, int>();
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (1)
137var result = new Dictionary<Document, PreviousPullResult>();
LanguageInfoProvider.cs (1)
25private static readonly Dictionary<string, LanguageInformation> s_extensionToLanguageInformation = new()
LspServices\LspServices.cs (1)
42var serviceMap = new Dictionary<string, Lazy<ILspService, LspServiceMetadataView>>();
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (1)
72var itemRawJsonCache = new Dictionary<object, string>(capacity: 1);
RoslynLanguageServer.cs (1)
78var baseServiceMap = new Dictionary<string, object>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (1)
50var builder = new Dictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
98var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 105var languages = new Dictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>();
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
WorkspaceProjectFactoryServiceTests.cs (1)
36new WorkspaceProjectCreationInfo(LanguageNames.CSharp, "DisplayName", FilePath: null, new Dictionary<string, string>()),
Microsoft.CodeAnalysis.PooledObjects.Package (4)
ArrayBuilder.cs (4)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
RebuildCommandLineTests.cs (1)
29public Dictionary<string, TestableFile> FilePathToStreamMap { get; } = new Dictionary<string, TestableFile>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Host\TestUtils.cs (2)
160var map = new Dictionary<Checksum, object>(); 171var map = new Dictionary<Checksum, object>();
Services\SourceGeneration\RemoteSourceGenerationService.cs (1)
76private static readonly Dictionary<string, (AnalyzerReferenceMap analyzerReferenceMap, AnalyzerReferenceMap.CreateValueCallback callback)> s_languageToAnalyzerReferenceMap = new()
Microsoft.CodeAnalysis.Scripting (7)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (4)
89_assembliesLoadedFromLocationByFullPath = new Dictionary<string, AssemblyAndLocation>(); 90_assembliesLoadedFromLocation = new Dictionary<Assembly, LoadedAssembly>(); 91_loadedAssembliesBySimpleName = new Dictionary<string, List<LoadedAssemblyInfo>>(AssemblyIdentityComparer.SimpleNameComparer); 92_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.Test.Utilities (25)
Assert\AssertEx.cs (1)
384var indexes = new Dictionary<string, int>(comparer);
CommonTestBase.cs (1)
604var map = new Dictionary<IOperation, IOperation>();
Compilation\CompilationExtensions.cs (1)
320var explicitNodeMap = new Dictionary<SyntaxNode, IOperation>();
Compilation\OperationTreeVerifier.cs (2)
45_explicitNodeMap = new Dictionary<SyntaxNode, IOperation>(); 46_labelIdMap = new Dictionary<ILabelSymbol, uint>();
Compilation\TestOperationVisitor.cs (1)
192var explicitNodeMap = new Dictionary<SyntaxNode, IOperation>();
Compilation\TestSyntaxTreeOptionsProvider.cs (1)
32_globalOptions = new Dictionary<string, ReportDiagnostic>(Section.PropertiesKeyComparer) { { globalOption.key, globalOption.diagnostic } };
CompilationVerifier.cs (2)
110var map = new Dictionary<string, ICSharpCode.Decompiler.TypeSystem.IMethod>(); 340var readersByName = new Dictionary<string, PEReader>(StringComparer.OrdinalIgnoreCase);
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
54new Dictionary<string, string> { { "Key1", "Value1" }, { "Key2", "Value2" } }.ToImmutableDictionary();
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
47Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes = new Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>>(); 54Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes = new Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>>();
Diagnostics\OptionsDiagnosticAnalyzer.cs (1)
19private readonly Dictionary<string, AnalyzerOptions> _mismatchedOptions = new Dictionary<string, AnalyzerOptions>();
InstrumentationChecker.cs (1)
279private readonly Dictionary<int /*method*/, MethodChecker> _spanExpectations = new Dictionary<int, MethodChecker>();
MarkedSource\MarkupTestFile.cs (1)
56var tempSpans = new Dictionary<string, ArrayBuilder<TextSpan>>();
Metadata\ILValidation.cs (2)
346var result = new Dictionary<int, string>(); 377var result = new Dictionary<int, string>();
Mocks\TestMetadataReferenceResolver.cs (2)
27_assemblyNames = assemblyNames ?? new Dictionary<string, PortableExecutableReference>(); 28_files = files ?? new Dictionary<string, PortableExecutableReference>();
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
157Dictionary<string, string> kvp = new Dictionary<string, string>();
Platform\Desktop\AppDomainAssemblyCache.cs (2)
29private readonly Dictionary<Guid, Assembly> _assemblyCache = new Dictionary<Guid, Assembly>(); 30private readonly Dictionary<Guid, Assembly> _reflectionOnlyAssemblyCache = new Dictionary<Guid, Assembly>();
Platform\Desktop\RuntimeAssemblyManager.cs (2)
72_fullNameToAssemblyDataMap = new Dictionary<string, AssemblyData>(StringComparer.OrdinalIgnoreCase); 73_mvidToAssemblyDataMap = new Dictionary<Guid, AssemblyData>();
TestableFileSystem.cs (1)
72public static TestableFileSystem CreateForMap() => CreateForMap(new());
Microsoft.CodeAnalysis.UnitTests (17)
CachingLookupTests.cs (4)
156var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 188var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 220var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 250var dict = new Dictionary<string, ImmutableArray<int>>(comparer);
Collections\ImmutableDictionaryTestBase.cs (2)
60var template = new Dictionary<string, int> 68var changes = new Dictionary<string, int>
Collections\ImmutableSegmentedDictionaryBuilderTest.cs (2)
140builder.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }); 151.AddRange(new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } })
Collections\ImmutableSegmentedDictionaryTest.cs (5)
80ImmutableSegmentedDictionary<int, string?> dictionary = new Dictionary<int, string?> 92IEnumerable<KeyValuePair<string, string>> pairs = new Dictionary<string, string> { { "a", "b" } }; 115IEnumerable<KeyValuePair<string, string>> pairs = new Dictionary<string, string> { { "a", "B" } }; 269ImmutableSegmentedDictionary<string, int> dictionary = new Dictionary<string, int> 280ImmutableSegmentedDictionary<string, int> dictionary = new Dictionary<string, int>
Diagnostics\DiagnosticLocalizationTests.cs (4)
130var defaultCultureResources = new Dictionary<string, string>() 138var arResources = new Dictionary<string, string>() 146var resourceSetMap = new Dictionary<string, Dictionary<string, string>>() 166_resourceSetMap = new Dictionary<string, CustomResourceSet>();
Microsoft.CodeAnalysis.VisualBasic (18)
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 (2)
51Friend blockParent As Dictionary(Of BoundNode, BoundNode) = New Dictionary(Of BoundNode, BoundNode)() 69Friend 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.VisualBasic.Emit.UnitTests (18)
Attributes\AttributeTests_MarshalAs.vb (18)
180Dim blobs = New Dictionary(Of String, Byte()) From 280Dim blobs = New Dictionary(Of String, Byte()) From 364Dim blobs = New Dictionary(Of String, Byte()) From 388Dim expectedBlobs = New Dictionary(Of String, Byte())() 490Dim blobs = New Dictionary(Of String, Byte()) From 514Dim expectedBlobs = New Dictionary(Of String, Byte())() 608Dim blobs = New Dictionary(Of String, Byte()) From 654Dim blobs = New Dictionary(Of String, Byte()) From 686Dim cciBlobs = New Dictionary(Of String, Byte()) From 766Dim blobs = New Dictionary(Of String, Byte()) From 884Dim blobs = New Dictionary(Of String, Byte()) From 1006Dim blobs = New Dictionary(Of String, Byte())() From 1041Dim blobs = New Dictionary(Of String, Byte())() From 1109Dim blobs = New Dictionary(Of String, Byte())() From 1215Dim blobs = New Dictionary(Of String, Byte())() From 1239Dim blobs = New Dictionary(Of String, Byte())() From 1288Dim blobs = New Dictionary(Of String, Byte())() From 1418Dim blobs = New Dictionary(Of String, Byte()) From
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Syntax\SyntaxAnnotationTests.vb (2)
403Dim nodeOrTokenMap = New Dictionary(Of SyntaxNodeOrToken, SyntaxNodeOrToken)() 420Dim triviaMap = New Dictionary(Of SyntaxTrivia, SyntaxTrivia)()
Microsoft.CodeAnalysis.Workspaces (67)
CodeCleanup\AbstractCodeCleanerService.cs (1)
276var tokenAnnotationMap = new Dictionary<SyntaxToken, List<SyntaxAnnotation>>();
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
51var 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 (3)
30private static readonly Dictionary<MetadataId, string?> s_metadataIdToAssemblyName = new(); 105var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>(); 138var dictionary = s_solutionToDependentProjectMap.GetValue(solution, static _ => new());
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
464var order = new Dictionary<ProjectId, int>(capacity: solution.ProjectIds.Count);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
36private static readonly ObjectPool<Dictionary<ISymbol, SymbolGroup>> s_symbolToGroupPool = new(() => new(MetadataUnifyingEquivalenceComparer.Instance));
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
47var hasInheritanceRelationshipCache = new Dictionary<(ISymbol searchSymbol, ISymbol candidateSymbol), bool>();
FindSymbols\ReferenceLocationExtensions.cs (1)
22var result = new Dictionary<ISymbol, List<Location>>();
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
266var documentIdErrorStateLookup = new Dictionary<DocumentId, bool>(); 343var reverseMappedLocations = new Dictionary<Location, Location>();
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
42var signatureToConflictingMember = new Dictionary<ImmutableArray<ITypeSymbol>, ISymbol>(ConflictingSignatureComparer.Instance);
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (3)
51private readonly Dictionary<string, (AssemblyName? AssemblyName, string RealAssemblyPath)?> _analyzerAssemblyInfoMap = new(); 61private readonly Dictionary<(string OriginalAnalyzerPath, CultureInfo CultureInfo), string?> _analyzerSatelliteAssemblyRealPaths = new(); 70private readonly Dictionary<string, ImmutableHashSet<string>> _knownAssemblyPathsBySimpleName = new(StringComparer.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
762var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 248_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
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>(); 859var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 861var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (1)
104var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
349var previousChangesMap = new Dictionary<SyntaxToken, int>(); 376var previousChangesMap = new Dictionary<SyntaxToken, int>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
20private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (2)
25var ruleNames = new Dictionary<(Guid symbolSpecificationID, Guid namingStyleID, ReportDiagnostic enforcementLevel), string>(); 105var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
56var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 110var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
21new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Storage\SQLite\v2\Interop\SqlConnection.cs (1)
85var queryToStatement = new Dictionary<string, SqlStatement>();
Utilities\Documentation\XmlDocumentationProvider.cs (1)
74var comments = new Dictionary<string, string>();
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
38private readonly Dictionary<string, DocumentId> _documentPathsToDocumentIds = new(StringComparer.OrdinalIgnoreCase);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
139private readonly Dictionary<string, string?> _dynamicFilePathMaps = new(StringComparer.OrdinalIgnoreCase);
Workspace\Solution\ProjectDependencyGraph.cs (1)
212var reverseReferencesMap = new Dictionary<ProjectId, HashSet<ProjectId>>();
Workspace\Solution\ProjectState.cs (1)
141var result = new Dictionary<ImmutableArray<byte>, DocumentId>(ImmutableArrayComparer<byte>.Instance);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
490var metadataReferenceToProjectId = new Dictionary<MetadataReference, ProjectId>();
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
47private static readonly Dictionary<string, AnalyzerReferenceMap> s_languageToAnalyzerReferenceMap = new()
Workspace\Solution\TextDocumentStates.cs (1)
347var result = new Dictionary<string, OneOrMany<DocumentId>>(SolutionState.FilePathComparer);
Workspace\Workspace.cs (1)
1406var outputAssemblyToProjectIdMap = new Dictionary<string, ProjectId>();
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\ProjectFileExtensionRegistry.cs (1)
25_extensionToLanguageMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (18)
Build\ProjectBuildManager.cs (1)
27private static readonly ImmutableDictionary<string, string> s_defaultGlobalProperties = new Dictionary<string, string>()
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
157private static readonly ImmutableDictionary<string, string> s_debugTypeValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
MSBuild\ProjectFile\ProjectFile.cs (4)
298_documents = new Dictionary<string, MSB.Evaluation.ProjectItem>(); 363metadata = new Dictionary<string, string> 399var metadata = new Dictionary<string, string>(); 473var metadata = new Dictionary<string, string>
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
40_cache = new Dictionary<K, CacheValue>(capacity);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
762var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (3)
231_dictionary = new Dictionary<K, ValueSet>(); 236_dictionary = new Dictionary<K, ValueSet>(comparer); 248_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 529return new Dictionary<K, ImmutableArray<T>>(comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
BuildHostProcessManagerTests.cs (1)
107var globalMSBuildProperties = new Dictionary<string, string>
MSBuildWorkspaceTestBase.cs (1)
173var properties = new Dictionary<string, string>();
NetCoreTests.cs (1)
34var environmentVariables = new Dictionary<string, string>()
NewlyCreatedProjectsFromDotNetNew.cs (1)
254Dictionary<string, string> additionalEnvironmentVars = new()
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Workspaces\TestHostDocument.cs (1)
68public IDictionary<string, ImmutableArray<TextSpan>> AnnotatedSpans { get; } = new Dictionary<string, ImmutableArray<TextSpan>>();
Workspaces\TestWorkspace`1.cs (2)
638var projectNameToTestHostProject = new Dictionary<string, TProject>(); 639var projectElementToProjectName = new Dictionary<XElement, string>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
EditorConfigStorageLocation\NamingStylePreferenceEditorConfigStorageLocationTests.cs (1)
25var options = StructuredAnalyzerConfigOptions.Create(new DictionaryAnalyzerConfigOptions(new Dictionary<string, string>()
FunctionIdTests.cs (1)
19var map = new Dictionary<FunctionId, string>();
Remote\ServiceDescriptorTests.cs (1)
68var types = new Dictionary<Type, MemberInfo>();
SolutionTests\ProjectDependencyGraphTests.cs (2)
678var references = new Dictionary<string, IEnumerable<string>>(); 718var referencesByTargetProject = new Dictionary<string, List<ProjectReference>>();
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
HandlerProvider.cs (1)
50var builder = new Dictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>();
RequestExecutionQueue.cs (2)
98var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 105var languages = new Dictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>();
Microsoft.CSharp (11)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
39_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)
183var 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)
1118df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: true); 1122ret = df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: false); 1127df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: true); 1134ret = df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: false); 1142df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: true); 1148ret = df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: false); 1170Assert.Throws<FormatException>(() => df.Append(new Dictionary<string, object> { { "Column2", "str" } }, inPlace: true));
Microsoft.DotNet.Arcade.Sdk (2)
src\InstallDotNetCore.cs (1)
65var runtimeItems = new Dictionary<string, IEnumerable<KeyValuePair<string, string>>>();
src\SourceBuild\ReadSourceBuildIntermediateNupkgDependencies.cs (1)
108new Dictionary<string, string>
Microsoft.DotNet.Arcade.Sdk.Tests (9)
GenerateSourcePackageSourceLinkTargetsFileTests.cs (2)
27new TaskItem(NormalizePath(@"C:\temp\A\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://A-git/commitsha/*" } }), 29new TaskItem(NormalizePath(@"C:\temp\A\B\C\"), new Dictionary<string, string> { { "SourceLinkUrl", "http://C-git/commitsha/*?var=value" } }),
GetAssemblyFullNameTests.cs (2)
24new TaskItem("Item", new Dictionary<string, string> { { "SomePath", objectAssembly.Location } }), 25new TaskItem("Item", new Dictionary<string, string> { { "SomePath", thisAssembly.Location } }),
GroupItemsByTests.cs (5)
21new TaskItem("A", new Dictionary<string, string> { { "Y", "A1.Y" }, { "Z", "A1.Z" }, { "W", "A1.W" } }), 22new TaskItem("B", new Dictionary<string, string> { { "Z", "B1.Z" } }), 23new TaskItem("A", new Dictionary<string, string> { { "X", "A2.X" }, { "Z", "A2.Z" }, { "W", "A2.W" } }), 24new TaskItem("C", new Dictionary<string, string> { { "X", "C1.X" }, { "Z", "C1.Z" } }), 25new TaskItem("C", new Dictionary<string, string> { { "Y", "C2.Y" }, { "Z", "C2.Z" } }),
Microsoft.DotNet.ArcadeLogging (5)
PipelinesLogger.cs (5)
21private readonly Dictionary<BuildEventContext, Guid> _buildEventContextMap = new Dictionary<BuildEventContext, Guid>(BuildEventContextComparer.Instance); 22private readonly Dictionary<Guid, ProjectInfo> _projectInfoMap = new Dictionary<Guid, ProjectInfo>(); 23private readonly Dictionary<Guid, TelemetryTaskInfo> _taskTelemetryInfoMap = new Dictionary<Guid, TelemetryTaskInfo>(); 334return new LoggerParameters(new Dictionary<string, string>(Comparer)); 339var parameters = new Dictionary<string, string>(Comparer);
Microsoft.DotNet.AsmDiff (1)
MefHelpers.cs (1)
36Metadata = metadata ?? new Dictionary<string, object>();
Microsoft.DotNet.Build.Tasks.Feed (5)
src\common\AzureStorageUtils.cs (2)
27private static readonly Dictionary<string, string> MimeMappings = new Dictionary<string, string>() 33private static readonly Dictionary<string, string> CacheMappings = new Dictionary<string, string>()
src\common\GeneralUtils.cs (1)
197var whichCategory = new Dictionary<string, string>()
src\common\MSBuildListSplitter.cs (2)
15return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 23var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.Build.Tasks.Feed.Tests (42)
BuildModelFactoryTests.cs (29)
103new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 108new TaskItem(bopSnupkg, new Dictionary<string, string> 115new TaskItem(zipArtifact, new Dictionary<string, string> 120new TaskItem(localPackagePath, new Dictionary<string, string>() 188new TaskItem(localPackagePath, new Dictionary<string, string>() 227new TaskItem(zipArtifact, new Dictionary<string, string> 251new TaskItem(localPackagePath, new Dictionary<string, string> 279new TaskItem(localPackagePath, new Dictionary<string, string> 326new TaskItem(bopSymbolsNupkg, new Dictionary<string, string> 331new TaskItem(bopSnupkg, new Dictionary<string, string> 338new TaskItem(zipArtifact, new Dictionary<string, string> 343new TaskItem(localPackagePath, new Dictionary<string, string>() 359new TaskItem(localPackagePath, new Dictionary<string, string>() 368new TaskItem(localPackagePath, new Dictionary<string, string>() 373new TaskItem("Microsoft.DiaSymReader.dll", new Dictionary<string, string>() 379new TaskItem("Microsoft.DiaSymReader.dll", new Dictionary<string, string>() 389new TaskItem("MyCert", new Dictionary<string, string>() 393new TaskItem("MyOtherCert", new Dictionary<string, string>() 401new TaskItem(".dll", new Dictionary<string, string>() 562new TaskItem(localPackagePath, new Dictionary<string, string>() 593new TaskItem(localPackagePath, new Dictionary<string, string>()), 594new TaskItem(zipPath, new Dictionary<string, string>() 608new TaskItem(localPackagePath, new Dictionary<string, string>() 617new TaskItem(localPackagePath, new Dictionary<string, string>() 625new TaskItem("MyCert", new Dictionary<string, string>() 629new TaskItem("MyOtherCert", new Dictionary<string, string>() 637new TaskItem(".dll", new Dictionary<string, string>() 703new TaskItem(localPackagePath, new Dictionary<string, string>()), 704new TaskItem(zipPath, new Dictionary<string, string>()
PublishToSymbolServerTest.cs (1)
97var buildAsset = new Dictionary<string, Asset>().AsReadOnly();
PushToBuildStorageTests.cs (12)
33new TaskItem(PACKAGE_A, new Dictionary<string, string> 39new TaskItem(PACKAGE_B, new Dictionary<string, string> 45new TaskItem(SAMPLE_MANIFEST, new Dictionary<string, string> 458new TaskItem(".dll", new Dictionary<string, string> 462new TaskItem(".nupkg", new Dictionary<string, string> 466new TaskItem(".zip", new Dictionary<string, string> 473new TaskItem("Best.dll", new Dictionary<string, string> 477new TaskItem("Worst.dll", new Dictionary<string, string> 484new TaskItem("BestCert", new Dictionary<string, string> 488new TaskItem("WorstCert", new Dictionary<string, string> 495new TaskItem("VeryCoolStrongName", new Dictionary<string, string> 500new TaskItem("VeryTrashStrongName", new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Packaging (32)
ApplyBaseLine.cs (1)
61Dictionary<string, SortedSet<Version>> baseLineVersions = new Dictionary<string, SortedSet<Version>>();
ApplyMetaPackages.cs (2)
59var suppressMetaPackages = new Dictionary<string, HashSet<string>>(); 92Dictionary<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); 282var packageItems = new Dictionary<string, List<PackageItem>>(); 316_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)
62Dictionary<string, ITaskItem> packageReferences = new Dictionary<string, ITaskItem>(); 63Dictionary<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)
100_suppressions = new Dictionary<Suppression, HashSet<string>>();
Microsoft.DotNet.Build.Tasks.Packaging.Tests (9)
NugetPropertyStringProviderTests.cs (6)
18var expectedDictionary = new Dictionary<string, string>{ {"a", "b"} }; 26var expectedDictionary = new Dictionary<string, string> { { "a", "=b=" } }; 35var expectedDictionary = new Dictionary<string, string> { { "a", multiLineString } }; 38expectedDictionary = new Dictionary<string, string> { { multiLineString, "b" } }; 41expectedDictionary = new Dictionary<string, string> { { multiLineString, multiLineString } }; 54var expectedDictionary = new Dictionary<string, string>();
ValidateHarvestVersionIsLatestForReleaseTests.cs (3)
23Targets = new Dictionary<string, Target> 87Targets = new Dictionary<string, Target> 128Targets = new Dictionary<string, Target>
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.VisualStudio.Tests (5)
Vsix\GetPkgDefAssemblyDependencyGuidTests.cs (5)
21new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "SomeValue" } }), 22new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\U00012345" } }), 23new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD800" } }), // unpaired surrogate treated as invalid character 24new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "\uD801" } }), // unpaired surrogate treated as invalid character 25new TaskItem("Item", new Dictionary<string, string> { { "SomeInput", "" } }), // empty is skipped
Microsoft.DotNet.Build.Tasks.Workloads (15)
BuildData.wix.cs (1)
26public Dictionary<string, HashSet<ReleaseVersion>> FeatureBands = new();
CreateVisualStudioWorkload.wix.cs (5)
27private Dictionary<ReleaseVersion, bool> _supportsMachineArch = new(); 158Dictionary<string, BuildData> buildData = new(); 159Dictionary<string, WorkloadPackGroupPackage> packGroupPackages = new(); 184Dictionary<string, WorkloadManifestMsi> manifestMsisByPlatform = new(); 222Dictionary<string, List<WorkloadPackPackage>> packsInWorkloadByPlatform = new();
EmbeddedTemplates.cs (2)
12private static readonly Dictionary<string, string> s_templateResources = new(); 68s_templateResources = new()
Msi\MsiBase.wix.cs (1)
118public Dictionary<string, string> NuGetPackageFiles { get; set; } = new();
Msi\MsiPayloadPackageProject.wix.cs (1)
31public Dictionary<string, string> PackageContents { get; set; } = new();
Msi\WorkloadPackGroupMsi.wix.cs (2)
36Dictionary<string, string> sourceDirectoryNamesAndValues = new(); 157public Dictionary<string, MsiDirectory> Subdirectories { get; } = new();
ProjectTemplateBase.cs (1)
57} = new();
Wix\HarvesterToolTask.cs (1)
20private static readonly Dictionary<HeatSuppressions, string> s_SuppressionArguments = new()
WorkloadPackGroupPackage.wix.cs (1)
17public Dictionary<string, List<WorkloadManifestPackage>> ManifestsPerPlatform { get; } = new();
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
SwixComponentTests.cs (2)
107new TaskItem("Microsoft.NET.Runtime", new Dictionary<string, string> { { Metadata.Replacement, "MSFT" } }) 151new TaskItem("microsoft-net-sdk-blazorwebassembly-aot", new Dictionary<string, string> {
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.Helix.Client (1)
generated-code\PagedResponse.cs (1)
107var props = new Dictionary<string, string>();
Microsoft.DotNet.Helix.JobSender (3)
JobDefinition.cs (2)
31_properties = new Dictionary<string, string>(); 48public IDictionary<IPayload, string> CorrelationPayloads { get; } = new Dictionary<IPayload, string>();
JobListEntry.cs (1)
11public Dictionary<string, string> CorrelationPayloadUrisWithDestinations { get; set; } = new Dictionary<string, string>();
Microsoft.DotNet.Helix.Sdk (6)
CreateXUnitWorkItems.cs (1)
148var result = new Microsoft.Build.Utilities.TaskItem(assemblyName, new Dictionary<string, string>()
LoggerExtensions.cs (1)
39log.LogTelemetry(EventName, new Dictionary<string, string> {{CategoryKey, currentCategory}});
ProvisioningProfileProvider.cs (2)
45private static readonly IReadOnlyDictionary<ApplePlatform, string> s_targetNames = new Dictionary<ApplePlatform, string>() 59private readonly Dictionary<ApplePlatform, string> _downloadedProfiles = new();
SendHelixJob.cs (1)
518return def.WithCorrelationPayloadUris(new Dictionary<Uri, string>() { { new Uri(uri), destination } });
XharnessTaskBase.cs (1)
112return new(workItemName, new Dictionary<string, string>()
Microsoft.DotNet.Helix.Sdk.Tests (2)
FindDotNetCliPackageTests.cs (2)
86Dictionary<string, string> metadata = new Dictionary<string, string>() 137Dictionary<string, string> metadata = new Dictionary<string, string>()
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (1)
74var packages = new Dictionary<string, PackageInfo>();
src\ReplacePackageParts.cs (1)
96var map = new Dictionary<string, string>(partCount);
Microsoft.DotNet.Open.Api.Tools.Tests (2)
OpenApiTestBase.cs (1)
98return new Dictionary<string, Tuple<string, ContentDispositionHeaderValue>> {
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
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.RemoteExecutor (1)
RemoteInvokeOptions.cs (1)
45public IDictionary<string, object> RuntimeConfigurationOptions { get; } = new Dictionary<string, object>();
Microsoft.DotNet.SharedFramework.Sdk (6)
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\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.SignCheckLibrary (4)
Verification\ArchiveVerifier.cs (1)
33Dictionary<string, string> archiveMap = new Dictionary<string, string>();
Verification\MsiVerifier.cs (1)
33var originalFiles = new Dictionary<string, string>();
Verification\SignatureVerificationManager.cs (1)
286_fileVerifiers = new Dictionary<string, FileVerifier>();
Verification\SignatureVerificationResult.cs (1)
29_detail = new Dictionary<string, string>();
Microsoft.DotNet.SignTool (12)
src\BatchSignUtil.cs (1)
163Dictionary<SignedFileContentKey, FileSignInfo> engines = new Dictionary<SignedFileContentKey, FileSignInfo>();
src\Configuration.cs (6)
129_zipDataMap = new Dictionary<SignedFileContentKey, ZipData>(); 130_filesByContentKey = new Dictionary<SignedFileContentKey, FileSignInfo>(); 133_whichPackagesTheFileIsIn = new Dictionary<SignedFileContentKey, HashSet<string>>(); 134_errors = new Dictionary<SigningToolErrorCode, HashSet<SignedFileContentKey>>(); 136_hashToCollisionIdMap = new Dictionary<SignedFileContentKey, string>(); 676var nestedParts = new Dictionary<string, ZipPart>();
src\SignToolTask.cs (3)
365var map = new Dictionary<string, List<SignInfo>>(StringComparer.OrdinalIgnoreCase); 411var map = new Dictionary<string, List<SignInfo>>(StringComparer.OrdinalIgnoreCase); 467var map = new Dictionary<ExplicitCertificateKey, string>();
src\Telemetry.cs (2)
15private static readonly Dictionary<string, string> s_properties = new Dictionary<string, string>() 27_metrics = new Dictionary<string, double>();
Microsoft.DotNet.SignTool.Tests (161)
SignToolTests.cs (161)
25private static readonly Dictionary<string, List<SignInfo>> s_fileExtensionSignInfo = new Dictionary<string, List<SignInfo>>() 45new Dictionary<string, List<SignInfo>>() 72new TaskItem(".js", new Dictionary<string, string> { 76new TaskItem(".jar", new Dictionary<string, string> { 80new TaskItem(".ps1", new Dictionary<string, string> { 84new TaskItem(".psd1", new Dictionary<string, string> { 88new TaskItem(".psm1", new Dictionary<string, string> { 92new TaskItem(".psc1", new Dictionary<string, string> { 96new TaskItem(".dylib", new Dictionary<string, string> { 100new TaskItem(".dll", new Dictionary<string, string> { 104new TaskItem(".exe", new Dictionary<string, string> { 108new TaskItem(".zip", new Dictionary<string, string> { 112new TaskItem(".tgz", new Dictionary<string, string> { 116new TaskItem(".nupkg", new Dictionary<string, string> { 120new TaskItem(".vsix", new Dictionary<string, string> { 124new TaskItem(".js", new Dictionary<string, string> { 128new TaskItem(".jar", new Dictionary<string, string> { 132new TaskItem(".ps1", new Dictionary<string, string> { 136new TaskItem(".psd1", new Dictionary<string, string> { 140new TaskItem(".dll", new Dictionary<string, string> { 144new TaskItem(".nupkg", new Dictionary<string, string> { 148new TaskItem(".vsix", new Dictionary<string, string> { 379var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 381var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 436new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 443var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 449var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 478var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 484var fileSignInfo = new Dictionary<ExplicitCertificateKey, string> 510new TaskItem(GetResourcePath(fileToTest), new Dictionary<string, string> 517var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 523var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 525ValidateFileSignInfos(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 530ValidateGeneratedProject(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 550var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 556var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 588new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 595var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 601var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 635var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 641var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 658new TaskItem(GetResourcePath("CoreLibCrossARM.dll"), new Dictionary<string, string> 662new TaskItem(GetResourcePath("AspNetCoreCrossLib.dll"), new Dictionary<string, string> 669var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 676var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 681ValidateFileSignInfos(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 687ValidateGeneratedProject(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 704new TaskItem(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string> 710var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 715var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 729new TaskItem(GetResourcePath("CustomTargetFrameworkAttribute.dll"), new Dictionary<string, string> 735var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 740var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 760var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() { }; 761var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 780new TaskItem(GetResourcePath("PackageWithWix.nupkg"), new Dictionary<string, string> 784new TaskItem(GetResourcePath("MsiBootstrapper.exe.wixpack.zip"), new Dictionary<string, string> 791var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 797var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 837new TaskItem(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string> 844var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 850var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 918new TaskItem(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string> 925var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 932var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 1008var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1014var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1060var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1066var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1112var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1118var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1164var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1170var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1218var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1221var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1244new Dictionary<string, List<SignInfo>>(), 1245new Dictionary<ExplicitCertificateKey, string>(), 1261var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1264var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1286var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1292var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1328new TaskItem(GetResourcePath("MsiSetup.msi"), new Dictionary<string, string> 1332new TaskItem(GetResourcePath("MsiSetup.msi.wixpack.zip"), new Dictionary<string, string> 1339var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1345var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1404var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1410var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1434new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 1438new TaskItem(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string> 1445var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1451var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1501new TaskItem(GetResourcePath("TestSpaces.vsix"), new Dictionary<string, string> 1505new TaskItem(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string> 1512var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1518var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1573var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1579var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1625new TaskItem(GetResourcePath("PackageWithRelationships.vsix", relativePath: "A"), new Dictionary<string, string> 1629new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 1633new TaskItem(GetResourcePath("PackageWithRelationships.vsix", relativePath: "B"), new Dictionary<string, string> 1640var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1646var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1700var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1706var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1735new TaskItem(CreateTestResource("dynalib.dylib"), new Dictionary<string, string> 1739new TaskItem(CreateTestResource("javascript.js"), new Dictionary<string, string> 1743new TaskItem(CreateTestResource("javatest.jar"), new Dictionary<string, string> 1747new TaskItem(CreateTestResource("power.ps1"), new Dictionary<string, string> 1751new TaskItem(CreateTestResource("powerc.psc1"), new Dictionary<string, string> 1755new TaskItem(CreateTestResource("powerd.psd1"), new Dictionary<string, string> 1759new TaskItem(CreateTestResource("powerm.psm1"), new Dictionary<string, string> 1766var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1769var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1789fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1794fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string>{ 1808fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1813fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string>{ 1816fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1839new TaskItem(GetResourcePath("SameFiles1.zip"), new Dictionary<string, string> 1843new TaskItem(GetResourcePath("SameFiles2.zip"), new Dictionary<string, string> 1849ValidateFileSignInfos(itemsToSign, new Dictionary<string, List<SignInfo>>(), new Dictionary<ExplicitCertificateKey, string>(), s_fileExtensionSignInfoWithCollisionId, new[] 1875new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 1880new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 1888new TaskItem("ArcadeStrongTest", new Dictionary<string, string> 1899new TaskItem("ProjectOne.dll", new Dictionary<string, string> 1906new TaskItem("SignedLibrary.dll", new Dictionary<string, string> 1918new TaskItem("DualSignCertificate", new Dictionary<string, string> 1991var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1996var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2011new TaskItem( GetResourcePath("PackageWithZip.nupkg"), new Dictionary<string, string> 2018var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2024var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2050var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2056var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2081new TaskItem(CreateTestResource("test.js"), new Dictionary<string, string> 2085new TaskItem(CreateTestResource("test.jar"), new Dictionary<string, string> 2089new TaskItem(CreateTestResource("test.ps1"), new Dictionary<string, string> 2093new TaskItem(CreateTestResource("test.psd1"), new Dictionary<string, string> 2097new TaskItem(CreateTestResource("test.psm1"), new Dictionary<string, string> 2101new TaskItem(CreateTestResource("test.psc1"), new Dictionary<string, string> 2105new TaskItem(CreateTestResource("test.dylib"), new Dictionary<string, string> 2109new TaskItem(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string> 2113new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 2117new TaskItem(GetResourcePath("Simple.nupkg"), new Dictionary<string, string> 2123new TaskItem(GetResourcePath("Simple.symbols.nupkg"), new Dictionary<string, string> 2129var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2135var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 2188var needContent = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 2209new Dictionary<string, List<SignInfo>>(), 2210new Dictionary<ExplicitCertificateKey, string>(), 2211new Dictionary<string, List<SignInfo>>(), 2224var needContent = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 2245new Dictionary<string, List<SignInfo>>(), 2246new Dictionary<ExplicitCertificateKey, string>(), 2247new Dictionary<string, List<SignInfo>>() { { extension, new List<SignInfo> { SignInfo.Ignore } } }, 2261new TaskItem(GetResourcePath("SPCNoPKT.dll"), new Dictionary<string, string> 2269new Dictionary<string, List<SignInfo>>(), 2270new Dictionary<ExplicitCertificateKey, 2277new Dictionary<string, List<SignInfo>>(), 2278new Dictionary<ExplicitCertificateKey, string>(),
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.SwaggerGenerator.CodeGenerator (4)
Languages\Language.cs (1)
56_languages = new Dictionary<string, Language>(StringComparer.OrdinalIgnoreCase)
Modeler\ServiceClientModelFactory.cs (2)
36private readonly Dictionary<string, EnumTypeModel> _enumTypeModels = new Dictionary<string, EnumTypeModel>(); 45private readonly Dictionary<string, TypeModel> _types = new Dictionary<string, TypeModel>();
ServiceClientCodeFactory.cs (1)
18private Dictionary<string, CodeFile> _files = new Dictionary<string, CodeFile>();
Microsoft.DotNet.VersionTools (16)
Automation\GitHubVersionsRepoUpdater.cs (1)
100var allPackages = new Dictionary<string, string>(packageDictionary);
BuildInfo.cs (1)
174var packages = new Dictionary<string, string>();
BuildManifest\Model\BlobArtifactModel.cs (1)
19public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
BuildManifest\Model\BuildIdentity.cs (1)
35public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
BuildManifest\Model\EndpointModel.cs (1)
23public Dictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
BuildManifest\Model\PackageArtifactModel.cs (1)
25public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
BuildManifest\Model\SigningInformationModel.cs (5)
86public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>(); 122public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>(); 171public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>(); 207public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>(); 238public IDictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
BuildManifest\Model\SigningInformationParsingExtensions.cs (4)
27Dictionary<string, HashSet<string>> extensionToCertMapping = new Dictionary<string, HashSet<string>>( 79Dictionary<string, HashSet<string>> keyToCertMapping = new Dictionary<string, HashSet<string>>( 154Dictionary<string, HashSet<bool>> extensionToCertMapping = new Dictionary<string, HashSet<bool>>(); 190Dictionary<string, HashSet<string>> pktMapping = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase);
BuildManifest\VersionIdentifier.cs (1)
102Dictionary<int,string> majorMinorPatchDictionary = new Dictionary<int, string>();
Microsoft.DotNet.VersionTools.Tasks (2)
BaseDependenciesTask.cs (2)
63new Dictionary<IDependencyInfo, ITaskItem>(); 429LatestPackages = new Dictionary<string, string>
Microsoft.DotNet.VersionTools.Tests (14)
BuildManifest\ManifestModelTests.cs (14)
483Attributes = new Dictionary<string, string> 493Attributes = new Dictionary<string, string> 509Attributes = new Dictionary<string, string> 519Attributes = new Dictionary<string, string> 535Attributes = new Dictionary<string, string> 545Attributes = new Dictionary<string, string> 561Attributes = new Dictionary<string, string> 577Attributes = new Dictionary<string, string> 586Attributes = new Dictionary<string, string> 601Attributes = new Dictionary<string, string> 610Attributes = new Dictionary<string, string> 625Attributes = new Dictionary<string, string> 634Attributes = new Dictionary<string, string> 649Attributes = new Dictionary<string, string>
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.DotNet.XliffTasks.Tests (8)
JsonDocumentTests.cs (1)
23Dictionary<string, string> translations = new()
ResxDocumentTests.cs (1)
26Dictionary<string, string> translations = new()
UnstructuredDocumentTests.cs (2)
22Dictionary<string, string> translations = new() 48Dictionary<string, string> translations = new()
VsctDocumentTests.cs (2)
36Dictionary<string, string> translations = new() 154Dictionary<string, string> translations = new()
XamlRuleDocumentTests.cs (2)
125Dictionary<string, string> translations = new() 293Dictionary<string, string> translations = new()
Microsoft.DotNet.XUnitAssert.Tests (113)
CollectionAssertsTests.cs (60)
1254 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1255 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1263 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1264 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } }; 1272 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1273 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1289 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1290 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1306 var expected = new Dictionary<string, int> 1315 var actual = new Dictionary<string, int> 1340 var expected = new Dictionary<string, IEnumerable<string>> 1345 var actual = new Dictionary<string, IEnumerable<string>> 1358 var expected = new Dictionary<string, IEnumerable<string>> 1363 var actual = new Dictionary<string, IEnumerable<string>> 1387 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1388 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1396 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1397 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } }; 1421 var expected = new Dictionary<string, object>() 1423 ["key"] = new Dictionary<string, object>() 1427 new Dictionary<string, object>() 1434 var actual = new Dictionary<string, object>() 1436 ["key"] = new Dictionary<string, object>() 1440 new Dictionary<string, object>() 1454 var expected = new Dictionary<string, object>() 1456 ["key"] = new Dictionary<string, object>() 1460 new Dictionary<string, object>() 1467 var actual = new Dictionary<string, object>() 1469 ["key"] = new Dictionary<string, object>() 1473 new Dictionary<string, object>() 1929 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1930 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1946 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1947 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } }; 1963 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1964 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1972 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1973 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1981 var expected = new Dictionary<string, int> 1990 var actual = new Dictionary<string, int> 2007 var expected = new Dictionary<string, IEnumerable<string>> 2012 var actual = new Dictionary<string, IEnumerable<string>> 2033 var expected = new Dictionary<string, IEnumerable<string>> 2038 var actual = new Dictionary<string, IEnumerable<string>> 2054 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2055 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2071 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2072 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } }; 2088 var expected = new Dictionary<string, object>() 2090 ["key"] = new Dictionary<string, object>() 2094 new Dictionary<string, object>() 2101 var actual = new Dictionary<string, object>() 2103 ["key"] = new Dictionary<string, object>() 2107 new Dictionary<string, object>() 2129 var expected = new Dictionary<string, object>() 2131 ["key"] = new Dictionary<string, object>() 2135 new Dictionary<string, object>() 2142 var actual = new Dictionary<string, object>() 2144 ["key"] = new Dictionary<string, object>() 2148 new Dictionary<string, object>()
DictionaryAssertsTests.cs (4)
18 var dictionary = new Dictionary<string, int>(StringComparer.InvariantCultureIgnoreCase) 36 var dictionary = new Dictionary<string, int>() 70 var dictionary = new Dictionary<string, int>() 88 var dictionary = new Dictionary<string, int>(StringComparer.InvariantCultureIgnoreCase)
EqualityAssertsTests.cs (20)
1124 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1125 var actual = new Dictionary<string, string> { ["foo"] = "bar" }; 1135 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1136 var actual = new Dictionary<string, string> { ["foo"] = "baz" }; 1159 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1169 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1192 var expected = new Dictionary<string, int?> { { "two", null } }; 1193 var actual = new Dictionary<string, int?> { { "two", null } }; 1201 var expected = new Dictionary<string, int?> { { "two", null } }; 1202 var actual = new Dictionary<string, int?> { { "two", 1 } }; 3353 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3354 var actual = new Dictionary<string, string> { ["foo"] = "bar" }; 3377 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3378 var actual = new Dictionary<string, string> { ["foo"] = "baz" }; 3388 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3411 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3421 var expected = new Dictionary<string, int?> { { "two", null } }; 3422 var actual = new Dictionary<string, int?> { { "two", null } }; 3438 var expected = new Dictionary<string, int?> { { "two", null } }; 3439 var actual = new Dictionary<string, int?> { { "two", 1 } };
EquivalenceAssertsTests.cs (28)
1158 var expected = new Dictionary<string, int> { ["Foo"] = 42 }; 1159 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1167 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 } }; 1168 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } }; 1176 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 } }; 1177 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } }; 1185 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 42 } }; 1186 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } }; 1194 var expected = new Dictionary<string, int> { ["Foo"] = 16 }; 1195 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1211 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 16 } }; 1212 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } }; 1228 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 16 } }; 1229 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } }; 1245 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 16 } }; 1246 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } }; 1265 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 }; 1266 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1274 var expected = new { x = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 } }; 1275 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } }; 1283 var expected = new Dictionary<string, int> { ["Foo"] = 16 }; 1284 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1300 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 }; 1301 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 }; 1317 var expected = new { x = new Dictionary<string, int> { ["Foo"] = 16 } }; 1318 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 } }; 1334 var expected = new { x = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 } }; 1335 var actual = new { x = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 } };
Sdk\ArgumentFormatterTests.cs (1)
329 var value = new Dictionary<object, List<object>>
Microsoft.DotNet.XUnitExtensions (1)
Discoverers\ConditionalTheoryDiscoverer.cs (1)
17_conditionCache = new Dictionary<IMethodInfo, string>();
Microsoft.Extensions.AI.Abstractions (3)
AdditionalPropertiesDictionary.cs (3)
22_dictionary = new(StringComparer.OrdinalIgnoreCase); 28_dictionary = new(dictionary, StringComparer.OrdinalIgnoreCase); 37_dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.AI.Abstractions.Tests (7)
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)
293new FunctionCallContent("function-id", "plugin-name-function-name", new Dictionary<string, object?> { ["parameter"] = "argument" }),
Contents\FunctionCallContentTests..cs (3)
89var sut = new FunctionCallContent("callId1", "functionName", new Dictionary<string, object?> { ["key"] = "value" }) { Exception = ex }; 107Dictionary<string, object?> arguments = new() 112["d"] = new ReadOnlyDictionary<string, string>((new Dictionary<string, string>
Functions\AIFunctionMetadataTests.cs (1)
46AdditionalProperties = new Dictionary<string, object?> { { "key", "value" } },
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
431AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 527AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments);
Microsoft.Extensions.AI.Ollama.Tests (2)
OllamaChatClientTests.cs (2)
370AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 445new(ChatRole.Assistant, [new FunctionCallContent("abcd1234", "GetPersonAge", new Dictionary<string, object?> { ["personName"] = "Alice" })]),
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
289(usageDetails.AdditionalProperties = [])[nameof(tokenUsage.OutputTokenDetails)] = new Dictionary<string, object?>
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAIChatClientTests.cs (4)
278Assert.Equal(new Dictionary<string, object> { [nameof(ChatOutputTokenUsageDetails.ReasoningTokenCount)] = 0 }, usage.Details.AdditionalProperties[nameof(ChatTokenUsage.OutputTokenDetails)]); 492AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 593AssertExtensions.EqualFunctionCallParameters(new Dictionary<string, object?> { ["personName"] = "Alice" }, fcc.Arguments); 600Assert.Equal(new Dictionary<string, object> { [nameof(ChatOutputTokenUsageDetails.ReasoningTokenCount)] = 0 }, usage.Details.AdditionalProperties[nameof(ChatTokenUsage.OutputTokenDetails)]);
Microsoft.Extensions.AI.Tests (17)
ChatCompletion\DistributedCachingChatClientTest.cs (2)
46Contents = [new FunctionCallContent("someCallId", "functionName", new Dictionary<string, object?> 232new FunctionCallContent("someCallId", "someFn", new Dictionary<string, object?> { ["arg1"] = "value1" }),
ChatCompletion\FunctionInvokingChatClientTests.cs (13)
44new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 46new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 68new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 34 } }), 69new FunctionCallContent("callId3", "Func2", arguments: new Dictionary<string, object?> { { "i", 56 } }), 77new FunctionCallContent("callId4", "Func2", arguments: new Dictionary<string, object?> { { "i", 78 } }), 105new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }), 106new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }), 138new FunctionCallContent("callId1", "Func", arguments: new Dictionary<string, object?> { { "arg", "hello" } }), 139new FunctionCallContent("callId2", "Func", arguments: new Dictionary<string, object?> { { "arg", "world" } }), 171new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 173new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } })]), 218new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId2", "Func2", arguments: new Dictionary<string, object?> { { "i", 42 } })]), 220new ChatMessage(ChatRole.Assistant, [new FunctionCallContent("callId3", "VoidReturn", arguments: new Dictionary<string, object?> { { "i", 43 } }), new TextContent("more")]),
Functions\AIFunctionFactoryTest.cs (2)
72AssertExtensions.EqualFunctionCallResults(null, await func.InvokeAsync(new Dictionary<string, object?> { ["somethingFirst"] = 1, ["ctx"] = new AIFunctionContext() }, cts.Token)); 160IReadOnlyDictionary<string, object?> metadata = new Dictionary<string, object?> { ["a"] = "b" };
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataExtensionsTests.cs (2)
73.AddInMemoryCollection(new Dictionary<string, string?> 99.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.ApiDescription.Client.Tests (14)
GetOpenApiReferenceMetadataTest.cs (13)
21var inputMetadata = new Dictionary<string, string> { { "CodeGenerator", "NSwagCSharp" } }; 74var inputMetadata = new Dictionary<string, string> 132var inputMetadata = new Dictionary<string, string> 190var inputMetadata = new Dictionary<string, string> 249var inputMetadata1 = new Dictionary<string, string> 253var inputMetadata2 = new Dictionary<string, string> 294var inputMetadata1 = new Dictionary<string, string> 299var inputMetadata2 = new Dictionary<string, string> 340var inputMetadata = new Dictionary<string, string> 403var inputMetadata = new Dictionary<string, string> 463var inputMetadata1 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } }; 464var inputMetadata2 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator2 } }; 465var inputMetadata3 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.AsyncState (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheWithDatabaseTest.cs (1)
36var memoryConfigurationData = new Dictionary<string, string>
Microsoft.Extensions.Compliance.Abstractions (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
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.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)
64var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationProvider.cs (2)
63Data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 105Data = 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.DependencyInjection (4)
ServiceLookup\CallSiteChain.cs (1)
17_callSiteChain = new Dictionary<ServiceIdentifier, ChainItemInfo>();
ServiceLookup\CallSiteFactory.cs (1)
19private readonly Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem> _descriptorLookup = new Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem>();
ServiceLookup\ServiceProviderEngineScope.cs (1)
25ResolvedServices = new Dictionary<ServiceCacheKey, object?>();
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>(); 636var libraries = new Dictionary<string, LibraryStub>();
Microsoft.Extensions.Diagnostics (2)
Metrics\DefaultMeterFactory.cs (1)
14private readonly Dictionary<string, List<FactoryMeter>> _cachedMeters = new();
Metrics\ListenerSubscription.cs (1)
16private readonly Dictionary<Instrument, object?> _instruments = new();
Microsoft.Extensions.Diagnostics.Abstractions (1)
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)
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.Tests (6)
DefaultHealthCheckServiceTest.cs (4)
67var data = new Dictionary<string, object>() 170var data = new Dictionary<string, object> 700var data = new Dictionary<string, object>() 736return Task.FromResult(HealthCheckResult.Healthy(data: new Dictionary<string, object> { { "self", this } }));
HealthReportTest.cs (2)
20var result = new HealthReport(new Dictionary<string, HealthReportEntry>() 39var result = new HealthReport(new Dictionary<string, HealthReportEntry>()
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 (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (50)
Linux\AcceptanceTest.cs (4)
113.AddSingleton<IFileSystem>(new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 162.AddSingleton<IFileSystem>(new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 196var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 282var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxCountersTests.cs (2)
20var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 116var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxNetworkUtilizationParserTests.cs (1)
35var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationParserCgroupV1Tests.cs (15)
80var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 106var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 125var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 152var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 172var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 197var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 224var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 245var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 274var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 290var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 304var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 325var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 342var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 357var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 361var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationParserCgroupV2Tests.cs (23)
84var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 108var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 125var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 143var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 158var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 173var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 190var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 216var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 234var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 259var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 274var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 300var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 315var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 341var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 355var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 369var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 390var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 407var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 424var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 442var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 458var f = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 472var f1 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 476var f2 = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\LinuxUtilizationProviderTests.cs (3)
37var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 107var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string> 175var fileSystem = new HardcodedValueFileSystem(new Dictionary<FileInfo, string>
Linux\Resources\TestResources.cs (1)
15private static readonly Dictionary<string, string> _files = new(StringComparer.OrdinalIgnoreCase)
ResourceMonitoringExtensionsTests.cs (1)
150.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)
84var 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\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Http.Diagnostics (7)
Latency\Internal\HttpRequestLatencyListener.cs (4)
94private static readonly Dictionary<string, string> _socketMap = new() 100private static readonly Dictionary<string, string> _nameResolutionMap = new() 106private static readonly Dictionary<string, string> _httpMap = new() 142_eventToTokenMap = new Dictionary<string, FrozenDictionary<string, CheckpointToken>>
Logging\LoggingOptions.cs (3)
103public IDictionary<string, DataClassification> RequestHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(); 118public IDictionary<string, DataClassification> ResponseHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(); 147public IDictionary<string, DataClassification> RouteParameterDataClasses { get; set; } = new Dictionary<string, DataClassification>();
Microsoft.Extensions.Http.Diagnostics.Tests (44)
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 } }, 296ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 297RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 403ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 404RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 499ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 500RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 613ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 614RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } }, 883ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { TestResponseHeader, FakeTaxonomy.PrivateData } }, 884RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { TestRequestHeader, FakeTaxonomy.PrivateData } },
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 (13)
61RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } }, 62ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData }, { header3.Key, FakeTaxonomy.PrivateData } }, 187RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 188ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 261RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 262ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 335RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 392RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 393ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 463RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 464ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } }, 530RequestHeadersDataClasses = new Dictionary<string, DataClassification> { { header1.Key, FakeTaxonomy.PrivateData } }, 531ResponseHeadersDataClasses = new Dictionary<string, DataClassification> { { header2.Key, FakeTaxonomy.PrivateData } },
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)
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)
44new Dictionary<string, IUserTwoFactorTokenProvider<TUser>>();
Microsoft.Extensions.Logging.Abstractions (1)
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 (2)
LoggerMessageGenerator.Parser.cs (2)
575var methods = new Dictionary<string, int>(lc.Methods.Count); 876public readonly Dictionary<string, string> TemplateMap = new(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.Extensions.Options (1)
StartupValidatorOptions.cs (1)
12public Dictionary<(Type, string), Action> _validators { get; } = new Dictionary<(Type, string), Action>();
Microsoft.Extensions.Options.SourceGeneration (5)
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 (1)
29private readonly Dictionary<ITypeSymbol, ValidatorType> _synthesizedValidators = new(SymbolEqualityComparer.Default);
Microsoft.Extensions.SecretManager.Tools.Tests (2)
SetCommandTest.cs (1)
96return new Dictionary<string, string>();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsSrvServiceEndpointProvider.cs (1)
44var lookupMapping = new Dictionary<string, DnsResourceRecord>();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
DnsSrvServiceEndpointResolverTests.cs (1)
166InitialData = 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)
38var destinationConfigs = new Dictionary<string, DestinationConfig> 56var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 69var destinationConfigs = new Dictionary<string, DestinationConfig> 87var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 99var destinationConfigs = new Dictionary<string, DestinationConfig> 119var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 133var destinationConfigs = new Dictionary<string, DestinationConfig> 200var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 218var destinationConfigs = new Dictionary<string, DestinationConfig> 241var destinationConfigs = new Dictionary<string, DestinationConfig> 300var 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)
18private readonly Dictionary<string, ExtendedLogger> _loggers = new(StringComparer.Ordinal);
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Telemetry.Abstractions (1)
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 (25)
Http\HttpParserTests.cs (9)
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()
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.Gen.ComplianceReports.Unit.Tests (3)
GeneratorTests.cs (3)
57? new() { ["build_property.ComplianceReportOutputPath"] = Directory.GetCurrentDirectory() } 121var options = new Dictionary<string, string> 148var options = new Dictionary<string, string>
Microsoft.Gen.Logging (2)
Parsing\Parser.cs (1)
48var parameterSymbols = new Dictionary<LoggingMethodParameter, IParameterSymbol>();
Parsing\Parser.LogProperties.cs (1)
105var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>();
Microsoft.Gen.Logging.Generated.Tests (42)
LogMethodTests.cs (1)
848new 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.Metrics (1)
Parser.cs (1)
281var tagDescriptionMap = new Dictionary<string, string>();
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
281var 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)
39? new() { ["build_property.MetricsReportOutputPath"] = Directory.GetCurrentDirectory() } 86var options = new Dictionary<string, string> 102var options = new Dictionary<string, string> 129var options = new Dictionary<string, string>
Microsoft.Interop.ComInterfaceGenerator (4)
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();
ComMethodContext.cs (1)
159var 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)
163Dictionary<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); 435var result = new Dictionary<string, (MethodInfo, Type[])>(StringComparer.Ordinal);
Microsoft.JSInterop.Tests (2)
JSInProcessRuntimeTest.cs (1)
43new Dictionary<string, object>
JSRuntimeTest.cs (1)
275new Dictionary<string, object>
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)
467var 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)
469_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)
104_disableAvxEnvironmentVariables = new Dictionary<string, string>() 109_disableAvxAndSseEnvironmentVariables = new Dictionary<string, string>()
Microsoft.ML.Data (65)
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 (2)
319Dictionary<TValue, uint> keyTypeValueMapping = new Dictionary<TValue, uint>(); 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\Phi2ForCasualLM.cs (1)
62var loadedParameters = new Dictionary<string, bool>();
Phi3\Phi3CausalLMTextGenerationService.cs (1)
22public 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)
427private 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>();
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>() 263Dictionary<string, object> res = new Dictionary<string, object>(); 867Dictionary<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)
227var inputTypePool = new Dictionary<string, DataViewType>(); 231var initializerTypePool = new Dictionary<string, DataViewType>(); 235var outputTypePool = new Dictionary<string, DataViewType>(); 237var casterPool = new Dictionary<string, Func<NamedOnnxValue, object>>(); 476new Dictionary<Type, InternalDataKind>
Microsoft.ML.OnnxTransformerTest (9)
OnnxTransformTests.cs (9)
808var inputDict0 = new Dictionary<int, float> { { 0, 94.17f }, { 1, 17.36f } }; 809var inputDict1 = new Dictionary<int, float> { { 0, 12.28f }, { 1, 75.12f } }; 818output.Output = new Dictionary<int, float>(); 863var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } }; 948var shapeDictionary = new Dictionary<string, int[]>() { 963shapeDictionary = new Dictionary<string, int[]>() { 979shapeDictionary = new Dictionary<string, int[]>() { 994shapeDictionary = new Dictionary<string, int[]>() { 1033var 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 (29)
Model\BPETokenizer.cs (3)
231_vocab = vocab ?? new Dictionary<StringSpanOrdinalKey, int>(); 252Merges = new(); 835private readonly Dictionary<char, string> _charToString = new Dictionary<char, string>();
Model\Cache.cs (1)
21_map = new Dictionary<TKey, TValue>(capacity);
Model\CodeGenTokenizer.cs (2)
1722internal static readonly Dictionary<string, int> CodeGenAddedTokens = new() 1788var mergeRanks = new Dictionary<StringSpanOrdinalKeyPair, int>();
Model\EnglishRobertaTokenizer.cs (3)
228var vocab = new Dictionary<string, int>(); 1102_idToIndex = new Dictionary<int, int>(); 1104_stringSymbolToIndexMapping = new Dictionary<string, int>();
Model\SentencePieceTokenizer.cs (6)
28private readonly Dictionary<StringSpanOrdinalKey, (int Id, float Score, byte Type)> _vocab = new(); 29private readonly Dictionary<int, string> _vocabReverse = new(); 80_specialTokens = new Dictionary<StringSpanOrdinalKey, int>(); 81_specialTokensReverse = new Dictionary<int, string>(); 175var vocab = new Dictionary<string, int>(); 2252revMerge ??= new();
Model\TiktokenTokenizer.cs (10)
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); 1036new Dictionary<string, ModelEncoding>(StringComparer.OrdinalIgnoreCase) 1123return (new Dictionary<string, int> 1127return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName); 1130return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName); 1133return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName); 1136return (new Dictionary<string, int> 1140return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), R50RanksFile, Type.GetType(R50kBaseTypeName), R50kBasePackageName);
Utils\LruCache.cs (1)
17private readonly Dictionary<StringSpanOrdinalKey, LinkedListNode<KeyValuePair<string, TValue>>> _cache = new();
Utils\StringSpanOrdinalKey.cs (2)
85_map = new Dictionary<StringSpanOrdinalKey, TValue>(capacity); 149var dictionary = new Dictionary<StringSpanOrdinalKey, (int, string)>();
Utils\TokenizerExtensions.cs (1)
37Dictionary<TValue, TKey> dictionary = new Dictionary<TValue, TKey>();
Microsoft.ML.Tokenizers.Tests (14)
BpeTests.cs (12)
25new 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 }, 51new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 66new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } }, 81new Dictionary<string, int>() { { "a", 1 }, { "b", 2 } }, 96new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 111new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { UnknownToken, 3} }, 126new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "ab", 3 }, { UnknownToken, 4} }, 141new Dictionary<string, int>() { { "a", 1 }, { "b", 2 }, { "c", 3 }, { "ab", 4 }, { "abc", 5 } }, 156new Dictionary<string, int>(){ { UnknownToken, 0} }, 171new Dictionary<string, int>(){ { UnknownToken, 0} }, 186new Dictionary<string, int>() { { UnknownToken, 0}, { "H", 1 }, { "e", 2 }, { "l", 3 }, { "o", 4 }, { "!", 5 }, { "He", 6 }, { "lo", 7}, { "llo", 8 }, 479IReadOnlyDictionary<string, int> addedTokens = new Dictionary<string, int>()
LlamaTests.cs (1)
48specialTokens: new Dictionary<string, int>
TiktokenTests.cs (1)
25private static readonly Dictionary<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 (18)
Dracula\CMCountTable.cs (3)
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)
539_idvToTfMapping = new Dictionary<string, string>(); 852Outputs = 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.StringTools (1)
WeakStringCacheInterner.cs (1)
126_internCallCountsByString = new Dictionary<string, int>();
Microsoft.NET.StringTools.net35 (2)
WeakStringCache.Locking.cs (1)
18_stringsByHashCode = new Dictionary<int, StringWeakHandle>(_initialCapacity);
WeakStringCacheInterner.cs (1)
126_internCallCountsByString = new Dictionary<string, int>();
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.LanguageServices (18)
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
110var parameterNameOverlapMap = new Dictionary<string, List<ParameterViewModel>>();
ColorSchemes\ColorSchemeApplier.ClassificationVerifier.cs (2)
45=> new Dictionary<string, uint>() 55=> new Dictionary<string, uint>()
Extensions\VisualStudioWorkspaceImplExtensions.cs (1)
26var itemIdToImageHandle = s_hierarchyToItemIdToImageHandle.GetValue(hierarchy, static _ => new Dictionary<uint, IImageHandle>());
Implementation\VsRefactorNotifyService.cs (1)
180var hierarchyToItemIDsMap = new Dictionary<IVsHierarchy, List<uint>>();
Interactive\VsInteractiveWindowProvider.cs (1)
162var interactiveCommandMap = new Dictionary<string, int>();
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
597var visitedAssemblies = new Dictionary<string, AssemblyIdentity>();
Options\VisualStudioOptionStorage.cs (1)
109public static readonly IReadOnlyDictionary<string, VisualStudioOptionStorage> Storages = new Dictionary<string, VisualStudioOptionStorage>()
Progression\IconHelper.cs (2)
46var supportedGlyphGroups = new Dictionary<StandardGlyphGroup, string> 69var supportedGlyphItems = new Dictionary<StandardGlyphItem, string>
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
55private readonly Dictionary<string, (DateTime lastWriteTime, AssemblyMetadata metadata)> _metadataCache = new(StringComparer.OrdinalIgnoreCase);
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
51private readonly Dictionary<string, (ProjectId projectId, SourceTextContainer textContainer)> _monikersToProjectIdAndContainer = new Dictionary<string, (ProjectId, SourceTextContainer)>();
ProjectSystem\RuleSets\RuleSetEventHandler.cs (1)
87var ruleSetRenames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
127var specificDiagnosticOptions = new Dictionary<string, ReportDiagnostic>();
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
40_cache = new Dictionary<K, CacheValue>(capacity);
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
488var latestDocumentDiagnosticsMap = filterStaleDiagnostics ? new Dictionary<DocumentId, ImmutableHashSet<DiagnosticData>>() : null;
Telemetry\CodeMarkerLogger.cs (2)
21= new Dictionary<FunctionId, List<Tuple<CodeMarkerId, CodeMarkerId>>>() 116= new Dictionary<FunctionId, List<CodeMarkerId>>()
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (2)
70ruleSetSpecificDiagnosticOptions = new Dictionary<string, ReportDiagnostic>(); 89var diagnosticOptions = new Dictionary<string, ReportDiagnostic>(ruleSetSpecificDiagnosticOptions);
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Logging\VSCodeTelemetryLogger.cs (1)
151var kvp = new Dictionary<string, string>
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (1)
74var commitCharactersCache = new Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>>();
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
71var documentToPreviousResultId = new Dictionary<Document, string?>();
MinimalSample (2)
Program.cs (2)
79var extensions = new Dictionary<string, object?>() { { "traceId", "traceId123" } }; 81var errors = new Dictionary<string, string[]>() { { "Title", new[] { "The Title field is required." } } };
MSBuild (33)
CommunicationsUtilities.cs (1)
403Dictionary<string, string> table = new Dictionary<string, string>(vars.Count, StringComparer.OrdinalIgnoreCase);
CoreCLRAssemblyLoader.cs (2)
22private readonly Dictionary<string, Assembly> _pathsToAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase); 23private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
LogMessagePacketBase.cs (2)
271private static Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 276private static Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
26_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
OutOfProcTaskAppDomainWrapperBase.cs (1)
360IDictionary<string, Object> finalParameterValues = new Dictionary<string, Object>(StringComparer.OrdinalIgnoreCase);
OutOfProcTaskHostNode.cs (6)
482Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties), 496return new Dictionary<string, string>(_currentConfiguration.GlobalProperties); 1041updatedEnvironment = new Dictionary<string, string>(environment, StringComparer.OrdinalIgnoreCase); 1101updatedEnvironment ??= new Dictionary<string, string>(environment, StringComparer.OrdinalIgnoreCase); 1140s_mismatchedEnvironmentValues = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.OrdinalIgnoreCase);
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
TaskHostConfiguration.cs (3)
178_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 200_taskParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 208_globalParameters = globalParameters ?? new Dictionary<string, string>();
TaskHostTaskComplete.cs (3)
120_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 133_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 198_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskParameter.cs (6)
304escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 322escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 431escapedGenericWrappedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 854_customEscapedMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 924IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 986IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
TerminalLogger\TerminalLogger.cs (1)
94private readonly Dictionary<ProjectContext, Project> _projects = new();
TypeLoader.cs (2)
195Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length); 315_publicTypeNameToType = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
XMake.cs (2)
1841Dictionary<string, string> restoreGlobalProperties = new Dictionary<string, string>(globalProperties); 3759Dictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MSBuildTaskHost (37)
BinaryReaderExtensions.cs (1)
112data.ExtendedMetadata = new Dictionary<string, string?>();
BinaryTranslator.cs (5)
596count => new Dictionary<string, string>(count, comparer)); 620dictionary = new Dictionary<string, string>(count, comparer); 621additionalEntries = new(); 708dictionary = new Dictionary<string, T>(count, comparer); 787dictionary = new(count, comparer);
BuildExceptionBase.cs (1)
136customKeyedSerializedData = new Dictionary<string, string?>(count, StringComparer.CurrentCulture);
BuildExceptionSerializationHelper.cs (1)
49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
CommunicationsUtilities.cs (1)
294Dictionary<string, string> table = new Dictionary<string, string>(200, StringComparer.OrdinalIgnoreCase); // Razzle has 150 environment variables
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Immutable\ImmutableDictionary.cs (5)
174_backing = new Dictionary<K, V>(); 179_backing = new Dictionary<K, V>(comparer); 186_backing = new Dictionary<K, V>(imm._backing, keyComparer ?? imm._backing.Comparer); 190_backing = new Dictionary<K, V>(source, keyComparer); 211var n = new Dictionary<K, V>(_backing, _backing.Comparer);
LogMessagePacketBase.cs (2)
271private static Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 276private static Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
26_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>();
OutOfProcTaskAppDomainWrapperBase.cs (1)
360IDictionary<string, Object> finalParameterValues = new Dictionary<string, Object>(StringComparer.OrdinalIgnoreCase);
OutOfProcTaskHostNode.cs (3)
1041updatedEnvironment = new Dictionary<string, string>(environment, StringComparer.OrdinalIgnoreCase); 1101updatedEnvironment ??= new Dictionary<string, string>(environment, StringComparer.OrdinalIgnoreCase); 1140s_mismatchedEnvironmentValues = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.OrdinalIgnoreCase);
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
TaskHostConfiguration.cs (3)
178_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 200_taskParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 208_globalParameters = globalParameters ?? new Dictionary<string, string>();
TaskHostTaskComplete.cs (3)
120_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 133_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment); 198_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskParameter.cs (6)
304escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 322escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 431escapedGenericWrappedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 854_customEscapedMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 924IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 986IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
TypeLoader.cs (1)
229_publicTypeNameToType = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
Mvc.RoutingWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
45routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),
OpenIdConnectSample (1)
Startup.cs (1)
253var pairs = new Dictionary<string, string>()
PresentationBuildTasks (20)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
187Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>(); 302Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static Dictionary<string, bool> s_switchMap = new Dictionary<string, bool>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (2)
707_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 851Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
4179Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
71_compatTable = new Dictionary<string,string>(); 72_compatTableReverse = new Dictionary<string,string>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
65_cachedMetadataLoadContextAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase); 66_cachedMetadataLoadContextAssembliesByNameNoExtension = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
878_subsumingNamespaces = new Dictionary<string, object>(); 905_knownNamespaces = new Dictionary<string, object>(); 1807_ignorables = new Dictionary<string, object>(); 1816_processContents = new Dictionary<string, ProcessContentSet>(); 1831_preserveElements = new Dictionary<string, PreserveItemSet>(); 1846_preserveAttributes = new Dictionary<string, PreserveItemSet>(); 2013_names = new Dictionary<string, string>(); 2027private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2029private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2030private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (56)
MS\Internal\Automation\EventMap.cs (1)
146_eventsTable = new Dictionary<int, EventInfo>(20);
MS\Internal\DeferredElementTreeState.cs (2)
124private Dictionary<DependencyObject, DependencyObject> _oldCoreParents = new Dictionary<DependencyObject, DependencyObject>(); 125private Dictionary<DependencyObject, DependencyObject> _oldLogicalParents = new Dictionary<DependencyObject, DependencyObject>();
MS\Internal\FontCache\FamilyCollection.cs (1)
487Dictionary<string, Text.TextInterface.Font> faces = new Dictionary<string, Text.TextInterface.Font>(StringComparer.OrdinalIgnoreCase);
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
608_cmap = new Dictionary<int, ushort>();
MS\Internal\FontCache\FontResourceCache.cs (2)
86folderResourceMap = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 150= new Dictionary<Assembly, Dictionary<string, List<string>>>(1);
MS\Internal\FontFace\CompositeFontInfo.cs (3)
49_familyNames = new LanguageSpecificStringDictionary(new Dictionary<XmlLanguage,string>(InitialCultureCount)); 70_familyMapRangesByLanguage = new Dictionary<XmlLanguage, ushort[]>(InitialCultureCount); 161Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count);
MS\Internal\FontFace\FontDifferentiator.cs (1)
34Dictionary<XmlLanguage, string> faceNames = new Dictionary<XmlLanguage, string>(1);
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
51Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1691new System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry>(_coreStrokes.Count);
MS\Internal\Ink\Renderer.cs (2)
195_visuals = new Dictionary<Stroke, StrokeVisual>(); 666_highlighters = new Dictionary<Color, HighlighterContainerVisual>();
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
271Dictionary<Edge, EdgeInfo> adjInformation = new Dictionary<Edge, EdgeInfo>();
MS\Internal\Shaping\TypefaceMap.cs (1)
47private IDictionary<CultureInfo, IntMap> _intMaps = new Dictionary<CultureInfo, IntMap>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static Dictionary<string, bool> s_switchMap = new Dictionary<string, bool>();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
160private static readonly Dictionary<string, ContentType> _fileExtensionToMimeType = new Dictionary<string, ContentType>(4);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
169_assemblies = new Dictionary<object, AssemblyName>();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
54_nodeLookup = new Dictionary<K, Node>();
System\Windows\BinaryFormat\StringRecordsCollection.cs (2)
16private readonly Dictionary<string, int> _strings = new(); 17private readonly Dictionary<int, MemberReference> _memberReferences = new();
System\Windows\Ink\StrokeCollection2.cs (1)
376Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>();
System\Windows\Input\ManipulationDevice.cs (1)
93_manipulationDevices = new Dictionary<UIElement, ManipulationDevice>(2);
System\Windows\Input\ManipulationLogic.cs (2)
715private Dictionary<int, Manipulator2D> _currentManipulators = new Dictionary<int, Manipulator2D>(2); 718private Dictionary<int, Manipulator2D> _removedManipulators = new Dictionary<int, Manipulator2D>(2);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
183private readonly Dictionary<DpiScale2, Matrix> _transformToDeviceMatrices = new Dictionary<DpiScale2, Matrix>();
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (3)
203private static Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>> _hidToGuidMap = new Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>>() 206new Dictionary<HidUsage, Guid>() 214new Dictionary<HidUsage, Guid>()
System\Windows\Input\Stylus\Common\StylusPointPropertyUnit.cs (1)
71private static Dictionary<uint, StylusPointPropertyUnit> _pointerUnitMap = new Dictionary<uint, StylusPointPropertyUnit>()
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
130} = new Dictionary<PresentationSource, PointerStylusPlugInManager>();
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
37private static Dictionary<byte, short> _hidExponentMap = new Dictionary<byte, short>()
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
34private Dictionary<uint, PointerStylusDevice> _stylusDeviceMap = new Dictionary<uint, PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (2)
27private Dictionary<IntPtr, PointerTabletDevice> _tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>(); 83_tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>();
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
3697Dictionary<object, PenContexts> __penContextsMap = new Dictionary<object, PenContexts>(2); 3700Dictionary<int, StylusDevice> __stylusDeviceMap = new Dictionary<int, StylusDevice>(2); 3723Dictionary<StylusDeviceBase, RawStylusInputReport> _lastMovesQueued = new Dictionary<StylusDeviceBase, RawStylusInputReport>(); 3727Dictionary<StylusDeviceBase, RawStylusInputReport> _coalescedMoves = new Dictionary<StylusDeviceBase, RawStylusInputReport>();
System\Windows\Media\FontEmbeddingManager.cs (2)
54_collectedGlyphTypefaces = new Dictionary<Uri, Dictionary<ushort, bool>>(_uriComparer); 85glyphSet = _collectedGlyphTypefaces[glyphTypeface] = new Dictionary<ushort, bool>();
System\Windows\Media\GlyphTypeface.cs (1)
396IDictionary<XmlLanguage, string> adjustedLanguageFaceNames = new Dictionary<XmlLanguage, string>(adjustedFaceNames.Count);
System\Windows\Media\HostVisual.cs (1)
574private Dictionary<DUCE.Channel, Dispatcher> _connectedChannels = new Dictionary<DUCE.Channel, Dispatcher>();
System\Windows\Media\Knowncolors.cs (2)
690private static Dictionary<uint, SolidColorBrush> s_solidColorBrushCache = new Dictionary<uint, SolidColorBrush>(); 691private static Dictionary<string, KnownColor> s_knownArgbColors = new Dictionary<string, KnownColor>();
System\Windows\Media\SolidColorBrush.cs (2)
274fwdDictionary = new Dictionary<TKey, TValue>(keyComparer); 275revDictionary = new Dictionary<TValue, List<TKey>>(valueComparer);
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
429Dictionary<char,bool> dict = new Dictionary<char,bool>();
System\Windows\Media\UniqueEventHelper.cs (3)
28ueh._delegates = new Dictionary<EventHandler<TEventArgs>, int>(_delegates); 59ueh._delegates = new Dictionary<EventHandler, int>(_delegates); 103_delegates = new Dictionary<TEventHandler, int>() { { handler, 1 } };
System\Windows\Media\Visual.cs (2)
842channelsToCyclicBrushMap = new Dictionary<DUCE.Channel, int>(); 873cyclicBrushToChannelsMap = new Dictionary<ICyclicBrush, int>();
System\Windows\Media3D\Visual3DCollection.cs (1)
556Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>();
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
56new Dictionary<int, string>(),
PresentationFramework (102)
MS\Internal\Annotations\AnnotationMap.cs (1)
112private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>();
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
558private static readonly Dictionary<Type, int> s_ZLevel = new(); 563private static readonly Dictionary<int, ZRange> s_ZRanges = new();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
294private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\ObservableDictionary.cs (1)
44_nameValues = new Dictionary<string, string>();
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
116Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 177Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 290private Dictionary<Guid, CachedAnnotation> _currentAnnotations = new Dictionary<Guid, CachedAnnotation>();
MS\Internal\Annotations\XmlElementCollection.cs (1)
46_xmlDocsRefCounts = new Dictionary<XmlDocument, int>();
MS\Internal\AppModel\ResourceContainer.cs (1)
394private static Dictionary<string, ResourceManagerWrapper> _registeredResourceManagers = new Dictionary<string, ResourceManagerWrapper>();
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
78s_xmlTokeFullNames = new Dictionary<XmlToken, string>(); 95_cachedXmlElements = new Dictionary<XmlToken, object>();
MS\Internal\Data\AccessorTable.cs (1)
176private readonly Dictionary<AccessorTableKey, AccessorInfo> _table = new Dictionary<AccessorTableKey, AccessorInfo>();
MS\Internal\Data\DataBindEngine.cs (1)
708private Dictionary<ValueConverterTableKey, IValueConverter> _valueConverterTable = new Dictionary<ValueConverterTableKey, IValueConverter>();
MS\Internal\Globalization\BamlResourceDeserializer.cs (1)
407= new Dictionary<string, Stack<ILocalizabilityInheritable>>(8);
MS\Internal\Globalization\BamlTreeMap.cs (2)
357_classAttributeTable = new Dictionary<string, ElementLocalizability>(8); 358_propertyAttributeTable = new Dictionary<string, LocalizabilityAttribute>(8);
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
849_contentPropertyTable = new Dictionary<string, string>(8);
MS\Internal\Ink\ClipboardProcessor.cs (2)
64_preferredClipboardData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>(); 270Dictionary<InkCanvasClipboardFormat, ClipboardData> preferredData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>();
MS\Internal\Interop\InternalDispatchObject.cs (1)
64_dispId2MethodMap = new Dictionary<int, MethodInfo>(methods.Length);
MS\Internal\IO\Packaging\XamlFilter.cs (1)
109_lcidDictionary = new Dictionary<string, uint>(StringComparer.OrdinalIgnoreCase);
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
116static Dictionary<string, DllModule> _cache = new System.Collections.Generic.Dictionary<string, DllModule>();
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (4)
19private static readonly Dictionary<Type, Type> CustomTypeToHelperTypeMappings = new Dictionary<Type, Type>(); 20private static readonly Dictionary<Type, Type> CustomAbiTypeToTypeMappings = new Dictionary<Type, Type>(); 21private static readonly Dictionary<string, Type> CustomAbiTypeNameToTypeMappings = new Dictionary<string, Type>(); 22private static readonly Dictionary<Type, string> CustomTypeToAbiTypeNameMappings = new Dictionary<Type, string>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static Dictionary<string, bool> s_switchMap = new Dictionary<string, bool>();
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
59_predefinedNamespaces = new Dictionary<Uri, IList<Uri>>(6);
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
117Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> newChildren = new Dictionary<DateTimeCalendarModePair,DateTimeAutomationPeer>(); 675private Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> _dataChildren = new Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer>(); 676private Dictionary<DateTimeCalendarModePair, WeakReference> _weakRefElementProxyStorage = new Dictionary<DateTimeCalendarModePair, WeakReference>();
System\Windows\Controls\DataGrid.cs (2)
8282Dictionary<string, StringBuilder> dataGridStringBuilders = new Dictionary<string, StringBuilder>(formats.Count); 8677= new Dictionary<DataGridColumn, CellAutomationValueHolder>(); // Holds the content of edited cells. Required for raising Automation events.
System\Windows\Controls\DataGridColumnCollection.cs (2)
477Dictionary<int, int> assignedDisplayIndexMap = new Dictionary<int, int>(); // <DisplayIndex, ColumnIndex> 1474_originalWidthsForResize = new Dictionary<DataGridColumn, DataGridLength>();
System\Windows\Controls\DataGridHelper.cs (1)
443propertyTransferEnabledForObject = new Dictionary<DependencyProperty, bool>();
System\Windows\Controls\DataGridItemAttachedStorage.cs (2)
63_itemStorageMap = new Dictionary<object, Dictionary<DependencyProperty, object>>(); 74map = new Dictionary<DependencyProperty, object>();
System\Windows\Controls\DatePicker.cs (1)
881_isHandlerSuspended = new Dictionary<DependencyProperty, bool>(2);
System\Windows\Controls\Primitives\Selector.cs (3)
2682_set = new Dictionary<ItemInfo, ItemInfo>(capacity, equalityComparer); 2693_set = new Dictionary<ItemInfo, ItemInfo>(collection._set, _equalityComparer); 2870_set = new Dictionary<ItemInfo, ItemInfo>(_list.Count);
System\Windows\Data\BindingGroup.cs (1)
1565Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (2)
213_dictionariesFromUri = new Dictionary<Uri, List<WeakReference<ResourceDictionary>>>(); 441_resultCache = new Dictionary<WeakReferenceKey<StaticResourceExtension>, WeakReference<ResourceDictionary>>();
System\Windows\Documents\DocumentSequence.cs (1)
671_asyncOps = new Dictionary<Object,GetPageAsyncRequest>();
System\Windows\Documents\FixedDocument.cs (2)
839_highlights = new Dictionary<FixedPage, ArrayList>(); 840_asyncOps = new Dictionary<Object, GetPageAsyncRequest>();
System\Windows\Documents\FixedDSBuilder.cs (1)
48_nameHashTable = new Dictionary<String, NameHashFixedNode>();
System\Windows\Documents\FixedTextView.cs (1)
250Dictionary<FixedPage, ArrayList> highlights = new Dictionary<FixedPage,ArrayList>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
646private static readonly Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
41new Dictionary<string, SpellCheckerCreationHelper>();
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (1)
57private static Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\Speller.cs (1)
427_uriMap = new Dictionary<Uri, DictionaryInfo>();
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (3)
88private static readonly Dictionary<Actions, long> _timeLimits100Ns = new Dictionary<Actions, long> 156CumulativeCallTime100Ns = new Dictionary<Actions, long>(), 157NumCallsMeasured = new Dictionary<Actions, long>()
System\Windows\Documents\WinRTSpellerInterop.cs (2)
60_spellCheckers = new Dictionary<CultureInfo, Tuple<WordsSegmenter, SpellChecker>>(); 61_customDictionaryFiles = new Dictionary<string, List<string>>();
System\Windows\FrameworkTemplate.cs (1)
1533private Dictionary<int, Type> _childTypeFromChildIndex = new Dictionary<int, Type>();
System\Windows\Interop\DynamicScriptObject.cs (1)
656private Dictionary<string, int> _dispIdCache = new Dictionary<string, int>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
37private Dictionary<int, TypeConverter> _typeConverterMap = new Dictionary<int, TypeConverter>(); 38private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 2747_freezeCache = new Dictionary<string, Freezable>();
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (2)
28_namespaces = new Dictionary<string, string>(source._namespaces); 48_namespaces = new Dictionary<string, string>();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
670private readonly Dictionary<string, short[]> _bamlXmlnsMappings = new Dictionary<string, short[]>();
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
325_constructors = new Dictionary<int, Baml6ConstructorInfo>();
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
62_masterTypeTable = new Dictionary<Type, XamlType>(256);
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
63private Dictionary<Type, XamlType> _masterTypeTable = new Dictionary<Type, XamlType>();
System\Windows\Markup\BamlReader.cs (1)
186_reverseXmlnsTable = new Dictionary<String, List<String>>();
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
139_dictionary = new Dictionary<BamlLocalizableResourceKey, BamlLocalizableResource>();
System\Windows\Markup\ParserContext.cs (3)
707_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 794_freezeCache = new Dictionary<string, Freezable>(); 851Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
97constructorArguments = new Dictionary<string, string>(); 700_keyTypeMap = new Dictionary<Type, Type>();
System\Windows\Markup\Primitives\MarkupWriter.cs (6)
495Dictionary<string, string> writtenAttributes = new Dictionary<string, string>(); 1395_uriToPrefix = new Dictionary<string, string>(); 1397_prefixToUri = new Dictionary<string, string>(); 1555private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>(); 1556private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>(); 1569namespaceToUri = new Dictionary<string, string>();
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
41static Dictionary<Type, Type> initializedTypes = new Dictionary<Type, Type>();
System\Windows\Markup\XamlTypeMapper.cs (2)
329Dictionary<string, string> newDict = new Dictionary<string, string>(); 4179Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (4)
42_nsDefinitions = new Dictionary<string, FrugalObjectList<string>>(); 59_piNamespaces = new Dictionary<string, string>(typeMapper.PITable.Count); 205_piNamespaces = new Dictionary<string, string>(); 315_allowedInternalTypes = new Dictionary<Type, XamlType>();
System\Windows\Markup\XmlnsCache.cs (2)
140_compatTable = new Dictionary<string, string>(); 141_compatTableReverse = new Dictionary<string, string>();
System\Windows\Shell\JumpList.cs (1)
268private static readonly Dictionary<Application, JumpList> s_applicationMap = new Dictionary<Application, JumpList>();
System\Windows\Standard\MessageWindow.cs (1)
27private static readonly Dictionary<IntPtr, MessageWindow> s_windowLookup = new Dictionary<IntPtr, MessageWindow>();
System\Windows\SystemResources.cs (4)
477_dictionaries = new Dictionary<Assembly, ResourceDictionaries>(1); 1048_hwndNotify = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper>(); 1049_hwndNotifyHook = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapperHook>(); 2059private readonly Dictionary<object, WeakReference<DeferredResourceReference>> _entries = new();
System\Windows\TemplateContent.cs (1)
1541_namedTypes = new Dictionary<string, XamlType>();
System\Windows\VisualStateManager.cs (2)
673Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>(); 682Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>();
PresentationUI (9)
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
582new Dictionary<Uri, WriteableOnDemandPackagePart>();
MS\Internal\Documents\DigitalSignatureProvider.cs (2)
339new Dictionary<X509Certificate2, CertificatePriorityStatus>(); 395new Dictionary<Guid, XpsSignatureDefinition>();
MS\Internal\Documents\DocumentSignatureManager.cs (2)
49_digSigSigResources = new Dictionary<SignatureResources, DigitalSignature>(); 220new Dictionary<X509Certificate2, CertificatePriorityStatus>();
MS\Internal\Documents\RightsManagementManager.cs (1)
51_userMap = new Dictionary<string, RightsManagementUser>();
MS\Internal\Documents\RightsManagementProvider.cs (3)
505new Dictionary<RightsManagementUser, IList<ContentGrant>>(); 549new Dictionary<RightsManagementUser, RightsManagementLicense>( 685new Dictionary<RightsManagementUser, RightsManagementLicense>();
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
15private readonly Dictionary<string, TestFileInfo> _content = new Dictionary<string, TestFileInfo>()
ReachFramework (87)
MS\Internal\Printing\MostFrequentlyUsedCache.cs (1)
22this._dictionary = new Dictionary<K, Entry>(maxEntries);
packaging\XpsDigitalSignature.cs (5)
75Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>(); 325Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>(); 374Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>(); 390relHash = new Dictionary<string, int>(); 431_optionalSignedTypes = new Dictionary<string, string>();
Packaging\XpsDocument.cs (1)
863Dictionary<Uri,Uri> dependentList = new Dictionary<Uri,Uri> ();
Packaging\XpsFixedPageReaderWriter.cs (6)
476_fontCache = new Dictionary<Uri, XpsFont>(MS.Internal.UriComparer.Default); 477_colorContextCache = new Dictionary<Uri, XpsColorContext>(); 478_resourceDictionaryCache = new Dictionary<Uri, XpsResourceDictionary>(); 479_imageCache = new Dictionary<Uri, XpsImage>(); 480_resourceCache = new Dictionary<Uri, XpsResource>(); 1527Dictionary<Uri,PackageRelationship> restictedFontRels = new Dictionary<Uri,PackageRelationship>(MS.Internal.UriComparer.Default);
Packaging\XpsManager.cs (5)
67_contentTypes = new Dictionary<string, int>(11); 68_cachedParts = new Dictionary<Uri, PackagePart>(11); 185_packageCache = new Dictionary<Uri,int>(); 997_contentTypes = new Dictionary<string, int>(11); 998_cachedParts = new Dictionary<Uri, PackagePart>(11);
Packaging\XpsResourcePolicy.cs (1)
313Dictionary<Type, object> _objDict = new Dictionary<Type, object>();
PrintConfig\PrintSchemaShim.cs (11)
524private static readonly IDictionary<DevModeCollate, Collation> dmCollateToQResolution = new Dictionary<DevModeCollate, Collation>(2) { 549private static readonly IDictionary<DevModeColor, OutputColor> dmColorToOutputColor = new Dictionary<DevModeColor, OutputColor>(2) { 582private static readonly IDictionary<DevModeDuplex, Duplexing> dmDuplexToDuplexing = new Dictionary<DevModeDuplex, Duplexing>(3) { 679private static readonly IDictionary<short, InputBin> dmPaperSourceToInputBin = new Dictionary<short, InputBin>(4) { 686private static IDictionary<short, PaperSourceOption> paperSourceOptions = new Dictionary<short, PaperSourceOption>() { 786private static readonly IDictionary<short, PageMediaSizeName> dmPaperSizeToPageMediaSize = new Dictionary<short, PageMediaSizeName>(101) { 915private static readonly IDictionary<uint, PageMediaType> dmMediaTypeToMediaType = new Dictionary<uint, PageMediaType>(3) { 921private static IDictionary<uint, MediaTypeOption> mediaTypeOptions = new Dictionary<uint, MediaTypeOption>() { 965private static readonly IDictionary<DevModeOrientation, PageOrientation> dmOrientationToOrientation = new Dictionary<DevModeOrientation, PageOrientation>(2) { 1033private static readonly IDictionary<short, PageQualitativeResolution> dmResToQResolution = new Dictionary<short, PageQualitativeResolution>(4) { 1040private static IDictionary<short, OutputQualityOption> outputQualityOptions = new Dictionary<short, OutputQualityOption>() {
PrintConfig\PrtTicket_Public_Simple.cs (2)
258_setterCache = new Dictionary<CapabilityName, object>(); 282_setterCache = new Dictionary<CapabilityName, object>();
Serialization\Manager\ReachDocumentPageSerializer.cs (4)
56((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 61((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 80((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 85((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (2)
63((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 149((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializer.cs (6)
74((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 76((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 81((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 111((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 113((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 118((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (6)
103((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 105((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 110((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 140((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 142((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 147((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializer.cs (6)
79((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 84((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 89((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>(); 119((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 124((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 129((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializerAsync.cs (4)
116((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 121((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 151((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 156((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (3)
54((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 56((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 61((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (2)
91((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 93((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>();
Serialization\Manager\ReachSerializationUtils.cs (5)
478_serializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 480_serializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 485_serializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 565_serializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 569_serializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPageSerializer.cs (2)
79_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 84_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (3)
64_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 66_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 71_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (3)
85_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 87_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 92_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
87_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 92_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 97_xpsOMSerializationManager.ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMHierarchySimulator.cs (3)
83_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 85_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 90_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\TreeWalkProgress.cs (1)
53private IDictionary<ICyclicBrush, EmptyStruct> _cyclicBrushes = new Dictionary<ICyclicBrush, EmptyStruct>();
Serialization\VisualTreeFlattener.cs (1)
507_nameList = new Dictionary<String, int>();
Serialization\XpsFontSubsetter.cs (1)
111_fontEmbeddingManagerCache = new Dictionary<Uri, FEMCacheItem>(3, MS.Internal.UriComparer.Default);
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
68var filesToWrite = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Roslyn.Test.PdbUtilities (1)
Reader\Token2SourceLineExporter.cs (1)
1199var tokenToSourceMapping = new Dictionary<uint, PdbTokenLine>();
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\DataModel.cs (1)
27var features = new Dictionary<string, ActivityLevel>();
Roslyn.VisualStudio.Next.UnitTests (13)
Services\AssetProviderTests.cs (1)
54var assetSource = new SimpleAssetSource(workspace.Services.GetService<ISerializerService>(), new Dictionary<Checksum, object>() { { checksum, data } });
Services\PerformanceTrackerServiceTests.cs (1)
189var matrix = new Dictionary<string, double[]>();
Services\SolutionServiceTests.cs (11)
553var map = new Dictionary<Checksum, object>(); 594var map = new Dictionary<Checksum, object>(); 636var map = new Dictionary<Checksum, object>(); 669var map = new Dictionary<Checksum, object>(); 711var map = new Dictionary<Checksum, object>(); 751var map = new Dictionary<Checksum, object>(); 789var map = new Dictionary<Checksum, object>(); 822var map = new Dictionary<Checksum, object>(); 877var map = new Dictionary<Checksum, object>(); 946var map = new Dictionary<Checksum, object>(); 1239var map = new Dictionary<Checksum, object>();
RunTests (2)
ProcessTestExecutor.cs (1)
130var environmentVariables = new Dictionary<string, string>();
TestHistoryManager.cs (1)
82Dictionary<string, TimeSpan> testInfos = new();
Sample (3)
Program.cs (2)
111schemas.MapGet("/dictionary-of-ints", () => new Dictionary<string, int> { { "one", 1 }, { "two", 2 } }); 112schemas.MapGet("/frozen-dictionary-of-ints", () => ImmutableDictionary.CreateRange(new Dictionary<string, int> { { "one", 1 }, { "two", 2 } }));
Transformers\AddBearerSecuritySchemeTransformer.cs (1)
17var requirements = new Dictionary<string, OpenApiSecurityScheme>
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
594_headers = new Dictionary<string, string>();
Shared (1)
Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Shared.Tests (1)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
49var dictionary = new Dictionary<T, T>();
SimpleWebSite (1)
Controllers\HomeController.cs (1)
10return new Dictionary<string, string> {
SocialSample (1)
Startup.cs (1)
322var pairs = new Dictionary<string, string>()
SocialWeather (2)
FormatterResolver.cs (2)
11= new Dictionary<string, Dictionary<Type, Type>>(); 24typeFormatters = _formatters[formatType] = new Dictionary<Type, Type>();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
49public static Dictionary<string, Func<ListenOptions>> ConnectionMiddlewareData { get; } = new Dictionary<string, Func<ListenOptions>>
Swaggatherer (2)
SwaggathererApplication.cs (1)
82var routesByPrecedence = new Dictionary<decimal, List<RouteEntry>>();
Template.cs (1)
15var templatesVisited = new Dictionary<string, (int ControllerIndex, int ActionIndex)>(
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 (3)
System\Collections\Frozen\FrozenDictionary.cs (1)
90newDictionary = new Dictionary<TKey, TValue>(comparer);
System\Linq\ImmutableArrayExtensions.cs (2)
578var result = new Dictionary<TKey, T>(immutableArray.Length, comparer); 603var result = new Dictionary<TKey, TElement>(immutableArray.Length, comparer);
System.ComponentModel.Annotations (4)
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 (2)
97_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)
35return typeIdentityCache ??= new Dictionary<Type, string>();
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); 181Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = new Dictionary<LazyMemberInfo, MemberInfo[]>(); 182Dictionary<int, MemberInfo> specializedPartMembers = new Dictionary<int, MemberInfo>(); 246Dictionary<Lazy<ParameterInfo>, ParameterInfo> parametersTable = new Dictionary<Lazy<ParameterInfo>, ParameterInfo>(); 443Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalImport.Metadata, StringComparers.MetadataKeyNames); 460Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalExport.Metadata, StringComparers.MetadataKeyNames);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
31return _castSingleValueCache ??= new Dictionary<Type, Func<Export, object>?>();
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)
129_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\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)
149return 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)
190_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 volatile 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)
167var 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)
417indirectLocationInputs ??= 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\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
434var parsetable = new Dictionary<string, string>();
System\Data\Common\AdapterUtil.Common.cs (1)
782Dictionary<string, int> hash = new Dictionary<string, int>(columnNameArray.Length);
System\Data\Common\DbConnectionOptions.cs (1)
39_parsetable = new Dictionary<string, string?>();
System\Data\Common\DbConnectionStringBuilder.cs (1)
62values = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
System\Data\Common\ObjectStorage.cs (2)
604new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>( 614cache = 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)
688_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\libraries\Common\src\System\Data\Common\BasicFieldNameLookup.cs (1)
130Dictionary<string, int> hash = new Dictionary<string, int>(length);
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
434var parsetable = new Dictionary<string, string>();
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.Diagnostics.DiagnosticSource (5)
System\Diagnostics\Activity.cs (1)
1139Interlocked.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)
28private 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.Process (3)
System\Diagnostics\ProcessStartInfo.cs (1)
99_environmentVariables = new DictionaryWrapper(new Dictionary<string, string?>(
System\Diagnostics\ProcessWaitState.Unix.cs (2)
87new Dictionary<int, ProcessWaitState>(); 93new Dictionary<int, ProcessWaitState>();
System.Drawing.Common (1)
System\Drawing\Gdiplus.cs (1)
34internal static IDictionary<object, object> ThreadData => t_threadData ??= new Dictionary<object, object>();
System.Drawing.Common.Tests (1)
System\Drawing\Printing\MarginsConverterTests.cs (1)
49IDictionary values = new Dictionary<string, int>
System.Drawing.Primitives (2)
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 (4)
System\Formats\Tar\TarHeader.cs (2)
78internal Dictionary<string, string> ExtendedAttributes => _ea ??= new Dictionary<string, string>(); 135_ea ??= new Dictionary<string, string>();
System\Formats\Tar\TarWriter.Unix.cs (2)
15private readonly Dictionary<uint, string> _userIdentifiers = new Dictionary<uint, string>(); 16private readonly Dictionary<uint, string> _groupIdentifiers = new Dictionary<uint, string>();
System.IO.Compression (1)
System\IO\Compression\ZipArchive.cs (1)
170_entriesDictionary = new Dictionary<string, ZipArchiveEntry>();
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
267private readonly Dictionary<int, WatchedDirectory> _wdToPathMap = new Dictionary<int, WatchedDirectory>();
System.IO.Packaging (18)
System\IO\Packaging\ContentType.cs (2)
147(_parameterDictionary ??= new Dictionary<string, string>()).GetEnumerator(); 338(_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>(OverrideDictionaryInitialSize); 1370_extensionDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, s_extensionEqualityComparer); 1371_ignoredItemDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, StringComparer.Ordinal);
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
239private 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)
109return new(source, comparer); 159return new Dictionary<TKey, TSource>(comparer); 174Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(capacity, comparer); 185Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(source.Length, comparer); 217return new Dictionary<TKey, TElement>(comparer); 232Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(capacity, comparer); 243Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(source.Length, 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)
1634var caseDict = new Dictionary<T, int>(); 1676var caseDict = new Dictionary<string, int>(); 2775var mapping = new Dictionary<ParameterExpression, LocalVariable>(); 2788private 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)
207Interlocked.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 (11)
src\libraries\Common\src\System\Collections\Generic\BidirectionalDictionary.cs (2)
18_forward = new Dictionary<T1, T2>(capacity); 19_backward = new Dictionary<T2, T1>(capacity);
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\H3StaticTable.Http3.cs (1)
11private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
System\Net\Http\Headers\HttpHeaders.cs (1)
1494var 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)
815altSvcBlocklist = new Dictionary<HttpAuthority, Exception?>();
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
143_httpStreams = new Dictionary<int, Http2Stream>();
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
28private 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)
428_settings._properties ??= 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)
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\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\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 (1)
System\Net\Dns.cs (1)
664private static readonly Dictionary<object, Task> s_tasks = new Dictionary<object, Task>();
System.Net.NetworkInformation (5)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
92Dictionary<int, LinuxNetworkInterface> interfacesByIndex = new Dictionary<int, LinuxNetworkInterface>(interfaceCount);
System\Net\NetworkInformation\NetworkAddressChange.cs (2)
14new Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>(); 18new Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>();
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (2)
270addressChangedSubscribers = new Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>(s_addressChangedSubscribers); 306new Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>(
System.Net.Ping (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
System.Net.Primitives (4)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
System\Net\CredentialCache.cs (2)
44_cache ??= new Dictionary<CredentialCacheKey, NetworkCredential>(); 70_cacheForHosts ??= new Dictionary<CredentialHostKey, NetworkCredential>();
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
161_sslSessions = new Dictionary<string, IntPtr>();
System.Net.Sockets (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
260dict = new Dictionary<TKey, TItem>(comparer);
System.Private.CoreLib (63)
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\libraries\System.Private.CoreLib\src\System\AppContext.cs (3)
64Interlocked.CompareExchange(ref s_dataStore, new Dictionary<string, object?>(), null); 135Interlocked.CompareExchange(ref s_switches, new Dictionary<string, bool>(), null); 158s_dataStore = new Dictionary<string, object?>(count);
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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (1)
74_metadata ??= new Dictionary<string, string?>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
36private readonly Dictionary<EventListener, EventListenerSubscription> m_subscriptions = new Dictionary<EventListener, EventListenerSubscription>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1330args = new Dictionary<string, string?>(4);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (15)
2677commandArgs.Arguments ??= new Dictionary<string, string?>(); 3667eventsByName ??= new Dictionary<string, string>(); 3915private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3917private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 4533Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>(); 5347opcodeTab = new Dictionary<int, string>(); 5348stringTab = new Dictionary<string, string>(); 5350perEventByteArrayArgIndices = new Dictionary<string, List<int>>(); 5386taskTab ??= new Dictionary<int, string>(); 5409keywordTab ??= new Dictionary<ulong, string>(); 5434channelTab ??= new Dictionary<int, ChannelInfo>(4); 5553mapsTab ??= new Dictionary<string, Type>(); 5601channelTab ??= new Dictionary<int, ChannelInfo>(4); 5927channelTab ??= new Dictionary<int, ChannelInfo>(4); 5951taskTab ??= new Dictionary<int, string>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
143Dictionary<Type, TraceLoggingTypeInfo> cache = threadCache ??= new Dictionary<Type, TraceLoggingTypeInfo>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
51private static readonly Dictionary<char, string> seq_mapping = new Dictionary<char, string>()
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
997private static readonly Dictionary<string, IntPtr> s_sortNameToSortHandleCache = new Dictionary<string, IntPtr>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (3)
152new Dictionary<string, string>(255, StringComparer.OrdinalIgnoreCase) 446tempHashTable = new Dictionary<string, CultureData>(); 688tempHashTable = new Dictionary<string, CultureData>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (2)
1126cache = new Dictionary<string, CultureInfo>(); 1141cache = new Dictionary<int, CultureInfo>();
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
19private static readonly Dictionary<string, Assembly> s_loadfile = new Dictionary<string, Assembly>();
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\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
286new Dictionary<string, ResourceLocator>(FastResourceComparer.Default),
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\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
100_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 135_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default);
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\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
186_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 323caseInsensitiveTable = new Dictionary<string, ResourceLocator>(StringComparer.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
23return new Dictionary<int, HashSet<Token>>();
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
96_assemblyPaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
39Interlocked.CompareExchange(ref s_allContexts, new Dictionary<long, WeakReference<AssemblyLoadContext>>(), null) ??
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
43_nameToIndex = new Dictionary<string, int>();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickNode.cs (1)
74_children = new Dictionary<char, int>();
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
86Dictionary<int, int> prefixToBucket = new(bucketCount);
src\libraries\System.Private.CoreLib\src\System\Text\EncodingProvider.cs (1)
102Dictionary<int, EncodingInfo> result = new Dictionary<int, EncodingInfo>();
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
191Interlocked.CompareExchange(ref s_currentActiveTasks, new Dictionary<int, Task>(), null) ??
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
661nameToSlotMap = new Dictionary<string, LocalDataStoreSlot>();
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
618private readonly Dictionary<int, bool> _usedIdToTracksAllValuesMap = new Dictionary<int, bool>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (2)
2041cachedData._timeZonesUsingAlternativeIds ??= new Dictionary<string, TimeZoneInfo>(StringComparer.OrdinalIgnoreCase); 2117cachedData._systemTimeZones ??= new Dictionary<string, TimeZoneInfo>(StringComparer.OrdinalIgnoreCase)
src\System\Attribute.CoreCLR.cs (2)
35Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11); 141Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11);
src\System\GC.CoreCLR.cs (1)
902Configurations = new Dictionary<string, object>()
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
71_typeBuilderDict = new Dictionary<string, Type>();
src\System\RuntimeType.CoreCLR.cs (2)
1144new Dictionary<string, RuntimeEventInfo>(); 1248new Dictionary<string, List<RuntimePropertyInfo>>();
System.Private.DataContractSerialization (37)
System\Runtime\Serialization\ClassDataContract.cs (4)
804Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 1222_knownDataContracts ??= new DataContractDictionary(); 1363boundContracts ??= new Dictionary<DataContract, DataContract>(); 1421Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(Members.Count);
System\Runtime\Serialization\CollectionDataContract.cs (2)
708_knownDataContracts ??= new DataContractDictionary(); 1398boundContracts ??= new Dictionary<DataContract, DataContract>();
System\Runtime\Serialization\DataContract.cs (6)
596s_nameToBuiltInContract ??= new Dictionary<XmlQualifiedName, DataContract?>(); 619s_typeNameToBuiltInContract ??= new Dictionary<string, DataContract?>(); 903s_clrTypeStrings = new Dictionary<string, XmlDictionaryString>(); 1935Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 2028knownDataContracts ??= new DataContractDictionary(); 2054nameToDataContractTable = new DataContractDictionary();
System\Runtime\Serialization\DataContractSet.cs (4)
59_contracts ??= new DataContractDictionary(); 62_processedContracts ??= new Dictionary<DataContract, object>(); 318_referencedTypesDictionary = new Dictionary<XmlQualifiedName, object>(); 342_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)
187Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 225DataContractDictionary knownDataContracts = new DataContractDictionary(); 243SchemaObjectDictionary 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)
27_lookup = new Dictionary<string, XmlDictionaryString>(); 34_lookup = new Dictionary<string, XmlDictionaryString>(capacity);
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)
1768_nsHashtable = new Dictionary<string, int>(); 2122_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>(); 1533_locals = new Dictionary<string, LocalBuilder>();
System\Xml\Serialization\Compilation.cs (6)
440var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 511var serializers = new Dictionary<string, string>(); 691private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 725? new Dictionary<TempAssemblyCacheKey, TempAssembly>(c) 726: new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 732cache = 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)
1139replaceList ??= 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)
17private readonly Dictionary<TypeMapping, string> _methodNames = new Dictionary<TypeMapping, string>(); 19private readonly 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>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
21private readonly Dictionary<string, string> _idNames = new Dictionary<string, string>(); 23private readonly Dictionary<string, FieldBuilder> _idNameFields = new Dictionary<string, FieldBuilder>(); 27internal Dictionary<string, EnumMapping> Enums => _enums ??= new Dictionary<string, EnumMapping>();
System\Xml\Serialization\XmlSerializer.cs (2)
679typedMappingTable = s_xmlSerializerTable.GetOrCreateValue(type, _ => new Dictionary<XmlSerializerMappingKey, XmlSerializer>()); 683var 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 1401_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)
54public Dictionary<QilName, VarPar> AllGlobalVarPars = new Dictionary<QilName, VarPar>(); 55public Dictionary<QilName, Template> NamedTemplates = new Dictionary<QilName, Template>(); 56public Dictionary<QilName, AttributeSet> AttributeSets = new Dictionary<QilName, AttributeSet>(); 57public Dictionary<string, NsAlias> NsAliases = new Dictionary<string, NsAlias>(); 59private 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)
575paramToTemplate = new Dictionary<VarPar, Template>(); 576paramToFunction = new Dictionary<VarPar, QilFunction>();
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (1)
303Dictionary<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>(); 327var propertyMap = new Dictionary<MethodInfo, PropertyAccessorInfo>(); 337var 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(); 668_moduleReferences ??= new Dictionary<string, ModuleReferenceHandle>();
System\Reflection\Emit\TypeBuilderImpl.cs (1)
323_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)
35private readonly Dictionary<string, UserStringHandle> _userStrings = new Dictionary<string, UserStringHandle>(256); 40private readonly Dictionary<string, StringHandle> _strings = new Dictionary<string, StringHandle>(256); 50private 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)
1419var groupedNestedTypes = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>.Builder>(); 1449var 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\libraries\Common\src\System\Resources\ResourceWriter.cs (3)
58_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 80_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 199_preserializedData ??= new Dictionary<string, PrecannedResource>(FastResourceComparer.Default);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
100_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 135_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default);
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
203_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 323caseInsensitiveTable = 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\libraries\Common\src\System\Resources\ResourceWriter.cs (3)
58_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 80_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 199_preserializedData ??= new Dictionary<string, PrecannedResource>(FastResourceComparer.Default);
System.Runtime.Caching (3)
System\Runtime\Caching\MemoryCache.cs (2)
512Dictionary<string, object> h = new Dictionary<string, object>(); 830values ??= new Dictionary<string, object>();
System\Runtime\Caching\MemoryCacheEntry.cs (1)
170_fields._dependents ??= new Dictionary<MemoryCacheEntryChangeMonitor, MemoryCacheEntryChangeMonitor>();
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?>()); 927return GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object?>()); 987DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>()); 1519Dictionary<string, object?> fragments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 1612Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System\Runtime\Serialization\Schema\ImportOptions.cs (1)
60public IDictionary<string, string> Namespaces => _namespaces ??= new Dictionary<string, string>();
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 (12)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
27var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\CryptoConfig.cs (2)
49Dictionary<string, string> ht = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase); 113Dictionary<string, object> ht = new Dictionary<string, object>(capacity: capacity, comparer: StringComparer.OrdinalIgnoreCase);
System\Security\Cryptography\OidLookup.cs (3)
99new Dictionary<string, string>(FriendlyNameToOidCount, StringComparer.OrdinalIgnoreCase); 102new Dictionary<string, string>(OidToFriendlyNameCount, StringComparer.Ordinal); 105new Dictionary<string, string>
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
20var 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\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
27var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\SignerIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
16new 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)
332Dictionary<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)
582attrs ??= 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)
23get => _attributeExtensions ??= new Dictionary<XmlQualifiedName, string>();
System.Text.Encoding.CodePages (4)
System\Text\CodePagesEncodingProvider.cs (1)
14private readonly Dictionary<int, Encoding> _encodings = new Dictionary<int, Encoding>();
System\Text\EncodingTable.cs (3)
12private static readonly Dictionary<string, int> s_nameToCodePageCache = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 13private static readonly Dictionary<int, string> s_codePageToWebNameCache = new Dictionary<int, string>(); 14private static readonly Dictionary<int, string> s_codePageToEnglishNameCache = new Dictionary<int, string>();
System.Text.Json (16)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
100var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System\Text\Json\Document\JsonElement.cs (1)
1373Dictionary<string, ValueQueue<JsonElement>> properties2 = new(capacity: remainingProps, StringComparer.Ordinal);
System\Text\Json\JsonHelpers.cs (1)
270return new Dictionary<TKey, TValue>(collection: collection, comparer);
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
411private readonly Dictionary<(JsonTypeInfo, JsonPropertyInfo?), string[]> _generated = new();
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
105jsonTypeInfo.CreateObject = () => new Dictionary<string, object?>();
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (1)
48jsonTypeInfo.CreateObject = () => new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\Collection\ImmutableDictionaryOfTKeyTValueConverter.cs (1)
25state.Current.ReturnValue = new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (1)
29state.Current.ReturnValue = new Dictionary<TKey, TValue>();
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
64_enumFieldInfoIndex = new(StringComparer.OrdinalIgnoreCase); 539(enumMemberAttributes ??= new(StringComparer.Ordinal)).Add(field.Name, attribute.Name);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
44var converters = new Dictionary<Type, JsonConverter>(NumberOfSimpleConverters);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1066public Dictionary<string, (JsonPropertyInfo, int index)> AddedProperties = new(options.PropertyNameCaseInsensitive ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 1164Dictionary<ParameterLookupKey, JsonParameterInfoValues> parameterIndex = new(parameterInfoValues.Length);
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 (5)
JsonSourceGenerator.Emitter.cs (2)
78private readonly Dictionary<TypeRef, TypeGenerationSpec> _typeIndex = new(); 85private readonly Dictionary<string, string> _propertyNames = new();
JsonSourceGenerator.Parser.cs (2)
47private readonly Dictionary<ITypeSymbol, TypeGenerationSpec> _generatedTypes = new(SymbolEqualityComparer.Default); 1023public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
100var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System.Text.RegularExpressions (16)
System\Text\RegularExpressions\RegexCharClass.cs (1)
116private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
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)
33private readonly Dictionary<(int ordinal, BDD? one, BDD? zero), BDD> _bddCache = new(); 39private readonly Dictionary<(int op, BDD a, BDD? b), BDD> _operationCache = new(); // op is BooleanOperation; using int to reuse generic instantiation with _bddCache 367return 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 (5)
57private readonly Dictionary<TSet, SymbolicRegexNode<TSet>> _singletonCache = new(); 64internal readonly Dictionary<NodeCacheKey, SymbolicRegexNode<TSet>> _nodeCache = new(); 112internal readonly Dictionary<(SymbolicRegexNode<TSet>, TSet elem, uint context), SymbolicRegexNode<TSet>> _derivativeCache = new(); 120internal readonly Dictionary<(SymbolicRegexNode<TSet>, uint), SymbolicRegexNode<TSet>> _pruneLowerPriorityThanNullabilityCache = new(); 128internal 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 (7)
RegexGenerator.cs (3)
104Dictionary<string, string[]> requiredHelpers = new(); 165var emittedExpressions = new Dictionary<(string Pattern, RegexOptions Options, int? Timeout), RegexMethod>(); 171Dictionary<string, string[]> requiredHelpers = new();
RegexGenerator.Emitter.cs (2)
1479Dictionary<string, int> usedNames = new(); 1492Dictionary<string, string[]> additionalLocalFunctions = new();
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
116private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
45_limiters = new Dictionary<TKey, Lazy<RateLimiter>>(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)
125propertyTransferEnabledForObject = new Dictionary<DependencyProperty, bool>();
Microsoft\Windows\Controls\KeyTipService.cs (3)
275Dictionary<DependencyObject, bool> processedElements = new Dictionary<DependencyObject, bool>(); 347elementToScopeMap = new Dictionary<DependencyObject, DependencyObject>(); 927Current._cultureCache = cultureCache = new Dictionary<XmlLanguage, CultureInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
471Dictionary<int, int> _childIndexToStarLayoutIndexMap = new Dictionary<int, int>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
185Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders = new Dictionary<object, List<RibbonTabHeaderAndIndex>>();
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
66private Dictionary<int, int> _tabIndexToDisplayIndexMap = new Dictionary<int, int>(); // A map from collection index to display index of tab items. 67private Dictionary<int, int> _tabDisplayIndexToIndexMap = new Dictionary<int, int>(); // A map from display index to collection index of tab items.
System.Windows.Forms (13)
System\Windows\Forms\Accessibility\AccessibleRoleControlTypeMap.cs (1)
13private static readonly Dictionary<AccessibleRole, UIA_CONTROLTYPE_ID> s_map = new()
System\Windows\Forms\Control.cs (1)
1875_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)
421_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)
1687_shortcuts ??= new Dictionary<Keys, ToolStripMenuItem>(1);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
872_boundStandardButtonsByID = new Dictionary<int, TaskDialogButton>(
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
473Dictionary<Control, string> controlError = new(bindingsCount);
System\Windows\Forms\Input\KeysConverter.cs (1)
38Dictionary<string, Keys> localizedNames = new(34);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
26private readonly Dictionary<string, DataStoreEntry> _data = new(BackCompatibleStringComparer.Default);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
843t_themeHandles ??= new(NumberOfPossibleClasses);
System.Windows.Forms.Analyzers.CSharp.Tests (7)
Generators\ProjectFileReaderTests.cs (7)
45Dictionary<string, string> properties = new() 71Dictionary<string, string> properties = new() 109Dictionary<string, string> properties = new() 146Dictionary<string, string> properties = new() 168Dictionary<string, string> properties = new() 188Dictionary<string, string> properties = new() 206Dictionary<string, string> properties = new()
System.Windows.Forms.Design (18)
System\ComponentModel\Design\MenuCommandService.cs (1)
259Dictionary<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\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)
94defaultValues ??= new Dictionary<string, object>();
System\Windows\Forms\Design\SelectionUIService.cs (1)
397Dictionary<object, SelectionUIItem> newSelection = new(selection.Count);
System.Windows.Forms.Design.Tests (49)
ButtonBaseDesignerTests.cs (1)
23new Dictionary<string, object>()
System\ComponentModel\Design\ComponentDesignerTests.cs (45)
72Dictionary<string, PropertyDescriptor> properties = new() 2252yield return new object[] { new Dictionary<int, int>() }; 2297yield return new object[] { new Dictionary<string, object>() }; 2298yield return new object[] { new Dictionary<string, object> { { "SettingsKey", new object() } } }; 2299yield return new object[] { new Dictionary<string, object> { { "SettingsKey", null } } }; 2307Dictionary<string, PropertyDescriptor> properties = new() 2327Dictionary<string, PropertyDescriptor> properties = new() 2360Dictionary<string, PropertyDescriptor> properties = new() 2381yield return new object[] { null, new Dictionary<Type, object>(), null }; 2383yield return new object[] { InheritanceAttribute.Default, new Dictionary<Type, object>(), null }; 2385yield return new object[] { InheritanceAttribute.Inherited, new Dictionary<Type, object>(), InheritanceAttribute.Inherited }; 2387yield return new object[] { InheritanceAttribute.InheritedReadOnly, new Dictionary<Type, object>(), InheritanceAttribute.InheritedReadOnly }; 2389yield return new object[] { InheritanceAttribute.NotInherited, new Dictionary<Type, object>(), null }; 2404yield return new object[] { new Dictionary<Type, object>(), InheritanceAttribute.Default }; 2405yield return new object[] { new Dictionary<Type, object> { { typeof(InheritanceAttribute), null } }, InheritanceAttribute.Default }; 2406yield return new object[] { new Dictionary<Type, object> { { typeof(InheritanceAttribute), new object() } }, InheritanceAttribute.Default }; 2408yield return new object[] { new Dictionary<Type, object> { { typeof(InheritanceAttribute), attribute } }, attribute }; 2434Dictionary<object, object> events = new() { { "key1", descriptor }, { "Key2", null } }; 2443Assert.Equal(new Dictionary<object, object> { { "key1", descriptor }, { "Key2", null }, { "Event", result } }, events); 2447Assert.Equal(new Dictionary<object, object> { { "key1", descriptor }, { "Key2", null } }, events); 2454yield return new object[] { null, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2455yield return new object[] { InheritanceAttribute.Default, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2456yield return new object[] { InheritanceAttribute.Default, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2458yield return new object[] { InheritanceAttribute.Inherited, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2460yield return new object[] { InheritanceAttribute.InheritedReadOnly, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2462yield return new object[] { InheritanceAttribute.NotInherited, new Dictionary<string, object>(), new Dictionary<string, object>() }; 2478Assert.Throws<ArrayTypeMismatchException>(() => designer.PostFilterEvents(new Dictionary<object, object> { { "key", new object() } })); 2711filter.PreFilterAttributes(new Dictionary<string, object>()); 2726filter.PreFilterEvents(new Dictionary<string, object>()); 2737Dictionary<string, PropertyDescriptor> properties = new() 2758Dictionary<string, PropertyDescriptor> properties = new() 2793Dictionary<string, PropertyDescriptor> properties = new() 2824filter.PreFilterProperties(new Dictionary<string, object>()); 2863filter.PostFilterAttributes(new Dictionary<string, object>()); 2873Dictionary<object, object> events = new() { { "key1", descriptor }, { "Key2", null } }; 2883Assert.Equal(new Dictionary<object, object> { { "key1", descriptor }, { "Key2", null }, { "Event", result } }, events); 2887Assert.Equal(new Dictionary<object, object> { { "key1", descriptor }, { "Key2", null } }, events); 2906Assert.Throws<ArrayTypeMismatchException>(() => filter.PostFilterEvents(new Dictionary<object, object> { { "key", new object() } })); 2923filter.PostFilterEvents(new Dictionary<string, object>());
System\Windows\Forms\Design\ListBoxDesignerTests.cs (1)
139designer.InitializeNewComponent(new Dictionary<int, int>());
System\Windows\Forms\Design\RichTextBoxDesignerTests.cs (1)
29_designer.InitializeNewComponent(new Dictionary<string, string>());
ToolStripMenuItemDesignerTest.cs (1)
114Dictionary<string, PropertyDescriptor> property = new()
System.Windows.Forms.Primitives (1)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (1)
25private readonly Dictionary<string, int> _reverseLookup = new(StringComparer.OrdinalIgnoreCase);
System.Windows.Forms.Primitives.TestUtilities (2)
Extensions\AssertExtensions.cs (1)
427var actualItemCountMapping = new Dictionary<T, ItemCount>(comparer);
SystemCOLORs.cs (1)
10private static readonly Dictionary<SYS_COLOR_INDEX, string> s_names = new()
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
203var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
System.Windows.Forms.Tests (44)
misc\CollectionHelperTests.cs (4)
56Dictionary<string, string> source = new() 69Dictionary<string, string> source = new() 92Dictionary<string, string> source = new() 115Dictionary<string, string> source = new()
System\Resources\ResXResourceWriterTests.cs (1)
32var dictionary = new Dictionary<object, object>();
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1340var typeDefaultValues = new Dictionary<Type, string>
System\Windows\Forms\ApplicationTests.cs (2)
391Dictionary<object, int> formClosingProcessed = new(mainMDIFormCount); 392Dictionary<object, int> formClosedProcessed = new(mainMDIFormCount);
System\Windows\Forms\LinkAreaConverterTests.cs (7)
119null, new Dictionary<string, object> 138new Dictionary<string, object> 146new Dictionary<string, object> 154new Dictionary<string, object> 162new Dictionary<string, object> 170new Dictionary<string, object> 178new Dictionary<string, object>
System\Windows\Forms\ListBindingHelperTests.cs (1)
133yield return new object[] { new Dictionary<int, string> { { 1, "string" } }, typeof(KeyValuePair<int, string>) };
System\Windows\Forms\MonthCalendar.SelectionRangeConverterTests.cs (1)
22private static IDictionary CreatePropertyValues(object start, object end) => new Dictionary<string, object>
System\Windows\Forms\PaddingConverterTests.cs (18)
147mockContext.Object, new Dictionary<string, object> 164null, new Dictionary<string, object> 186new Dictionary<string, object> 197new Dictionary<string, object> 208new Dictionary<string, object> 219new Dictionary<string, object> 230new Dictionary<string, object> 241new Dictionary<string, object> 252new Dictionary<string, object> 263new Dictionary<string, object> 274new Dictionary<string, object> 285new Dictionary<string, object> 296new Dictionary<string, object> 307new Dictionary<string, object> 318new Dictionary<string, object> 329new Dictionary<string, object> 340new Dictionary<string, object> 378var propertyValues = new Dictionary<string, object>
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (9)
209TableLayoutPanelCellPosition position = Assert.IsType<TableLayoutPanelCellPosition>(converter.CreateInstance(null, new Dictionary<string, object> 228new Dictionary<string, object> 236new Dictionary<string, object> 244new Dictionary<string, object> 252new Dictionary<string, object> 260new Dictionary<string, object> 268new Dictionary<string, object> 287Assert.Throws<ArgumentOutOfRangeException>("column", () => converter.CreateInstance(null, new Dictionary<string, object> 298Assert.Throws<ArgumentOutOfRangeException>("row", () => converter.CreateInstance(null, new Dictionary<string, object>
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
611this.manipulatorStates = new Dictionary<int, ManipulatorState>();
System.Xaml (51)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
169_assemblies = new Dictionary<object, AssemblyName>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
878_subsumingNamespaces = new Dictionary<string, object>(); 905_knownNamespaces = new Dictionary<string, object>(); 1807_ignorables = new Dictionary<string, object>(); 1816_processContents = new Dictionary<string, ProcessContentSet>(); 1831_preserveElements = new Dictionary<string, PreserveItemSet>(); 1846_preserveAttributes = new Dictionary<string, PreserveItemSet>(); 2013_names = new Dictionary<string, string>(); 2027private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2029private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2030private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\Xaml\AttachablePropertyServices.cs (1)
187instanceProperties = new Dictionary<AttachableMemberIdentifier, object>();
System\Xaml\Context\NameFixupGraph.cs (3)
47_dependenciesByChildObject = new Dictionary<object, NameFixupToken>(referenceComparer); 48_dependenciesByName = new Dictionary<string, FrugalObjectList<NameFixupToken>>(StringComparer.Ordinal); 49_dependenciesByParentObject = new Dictionary<object, FrugalObjectList<NameFixupToken>>(referenceComparer);
System\Xaml\Context\ObjectWriterFrame.cs (2)
37_preconstructionPropertyValues = new Dictionary<XamlMember, object>(source.PreconstructionPropertyValues); 174_preconstructionPropertyValues = new Dictionary<XamlMember, object>();
System\Xaml\Context\XamlCommonFrame.cs (1)
21_namespaces = new Dictionary<string, string>();
System\Xaml\Context\XamlParserContext.cs (2)
28_prescopeNamespaces = new Dictionary<string, string>(); 149_prescopeNamespaces = new Dictionary<string, string>();
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
215_pendingCollectionAdds = new Dictionary<object, List<PendingCollectionAdd>>(); 225_pendingKeyConversionContexts = new Dictionary<object, ObjectWriterContext>();
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
208xmlnsDictionary = new Dictionary<string, string>();
System\Xaml\InfosetObjects\XamlXmlReaderSettings.cs (1)
31_xmlnsDictionary = new Dictionary<string, string>(settings._xmlnsDictionary);
System\Xaml\MS\Impl\XmlNsInfo.cs (3)
290Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 341Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 439_subsumeCount = new Dictionary<string,int>(nsInfo.OldToNewNs.Count);
System\Xaml\Runtime\DynamicMethodRuntime.cs (5)
73_propertyGetDelegates = new Dictionary<MethodInfo, PropertyGetDelegate>(); 85_propertySetDelegates = new Dictionary<MethodInfo, PropertySetDelegate>(); 97_factoryDelegates = new Dictionary<MethodBase, FactoryDelegate>(); 109_converterInstances = new Dictionary<Type, object>(); 121_delegateCreators = new Dictionary<Type, DelegateCreator>();
System\Xaml\Schema\Reflector.cs (2)
142Dictionary<char, char> bracketCharacterAttributeList = new Dictionary<char, char>(); 398Dictionary<char, char> bracketCharacterList = new Dictionary<char, char>();
System\Xaml\Schema\TypeReflector.cs (5)
473Dictionary<string, PropertyInfo> result = new Dictionary<string, PropertyInfo>(propList.Length); 534Dictionary<string, EventInfo> result = new Dictionary<string, EventInfo>(eventList.Length); 714getters = new Dictionary<string,List<MethodInfo>>(); 715setters = new Dictionary<string,List<MethodInfo>>(); 716adders = new Dictionary<string,List<MethodInfo>>();
System\Xaml\Schema\XamlTypeInvoker.cs (1)
168Dictionary<XamlType, MethodInfo> addMethods = new Dictionary<XamlType, MethodInfo>();
System\Xaml\XamlObjectReader.cs (4)
2428objectGraphTable = new Dictionary<object, ObjectMarkupInfo>(new ObjectReferenceEqualityComparer()); 2440serviceProviderTable = new Dictionary<object, string>(new ObjectReferenceEqualityComparer()); 2489namespaceToPrefixMap = new Dictionary<string, string>(); 2490prefixToNamespaceMap = new Dictionary<string, string>();
System\Xaml\XamlSchemaContext.cs (1)
569Dictionary<string, SpecialBracketCharacters> map = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
System\Xaml\XamlType.cs (2)
1573Dictionary<int, IList<XamlType>> result = new Dictionary<int,IList<XamlType>>(); 1580Dictionary<int, IList<XamlType>> ctorDict = new Dictionary<int, IList<XamlType>>();
System\Xaml\XamlXmlWriter.cs (4)
110prefixAssignmentHistory = new Dictionary<string, string>() { {"xml", XamlLanguage.Xml1998Namespace} }; 671Dictionary<string, string> namespaceMap = new Dictionary<string, string>(); //namespace to prefix map 672Dictionary<string, string> prefixMap = new Dictionary<string, string>(); //prefix to namespace map 2168Dictionary<XamlMember, bool> dictionary = new Dictionary<XamlMember, bool>();
TagHelpersWebSite (4)
Components\CopyrightViewComponent.cs (1)
12var dict = new Dictionary<string, object>
TagHelpers\DictionaryPrefixTestTagHelper.cs (1)
14public IDictionary<string, ModelExpression> PrefixValues { get; set; } = new Dictionary<string, ModelExpression>();
TagHelpers\PrettyTagHelper.cs (1)
14new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
TagHelpers\TagCloudViewComponentTagHelper.cs (1)
58new Dictionary<string, object>(),
TaskUsageLogger (5)
TaskUsageLogger.cs (5)
73_targetIdsToNames = new Dictionary<int, string>(); 76_toolsVersionsByProjectContextId = new Dictionary<int, string>(); 77_defaultTasksByToolset = new Dictionary<string, HashSet<UsingTaskData>>(); 78_tasksByProjectContextId = new Dictionary<int, HashSet<UsingTaskData>>(); 79_assemblyLocationsByName = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Templates.Blazor.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Blazor.WebAssembly.Auth.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Blazor.WebAssembly.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Mvc.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Tests (5)
IdentityUIPackageTest.cs (1)
104var packageOptions = new Dictionary<string, string>();
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (3)
76environmentVariables ??= new Dictionary<string, string>(); 198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
UnitTests.Common (1)
TestTypes.cs (1)
644_headers = new Dictionary<string, string>();
VBCSCompiler.UnitTests (30)
CompilerServerTests.cs (30)
129var resetVariables = new Dictionary<string, string>(); 329var files = new Dictionary<string, string> { { "hello.cs", "♕" } }; 471var files = new Dictionary<string, string> { { "c.cs", "class C {}" } }; 486var files = new Dictionary<string, string> { { "c.vb", "Class C\nEnd Class" } }; 544new Dictionary<string, string> { 572new Dictionary<string, string> { 638new Dictionary<string, string> { 680new Dictionary<string, string> { 710new Dictionary<string, string> { 740new Dictionary<string, string> { 761files = new Dictionary<string, string> { 780files = new Dictionary<string, string> { 798new Dictionary<string, string> { 818files = new Dictionary<string, string> { 860new Dictionary<string, string> { 876files = new Dictionary<string, string> { 896files = new Dictionary<string, string> { 913new Dictionary<string, string> { 932files = new Dictionary<string, string> { 1000var filesInDirectory = new Dictionary<string, string>() 1051new Dictionary<string, string> { 1072files = new Dictionary<string, string> { 1081additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } }); 1100new Dictionary<string, string> { 1123files = new Dictionary<string, string> { 1133additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } }); 1251new Dictionary<string, string> { 1274files = new Dictionary<string, string> { 1403additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } }); 1437additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } });
VersioningWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
45routeValues = new Dictionary<string, object>(_actionContext.RouteData.Values),
WindowsFormsIntegration (4)
System\Windows\Integration\Convert.cs (2)
36_toSystemWindowsInputCursorDictionary = new Dictionary<SWF.Cursor, System.Windows.Input.Cursor>(); 76_toSystemWindowsFormsCursorDictionary = new Dictionary<SWI.Cursor, SWF.Cursor>();
System\Windows\Integration\PropertyMap.cs (2)
54_wrappedDictionary = new Dictionary<string, PropertyTranslator>(); 243_defaultTranslators = new Dictionary<string, PropertyTranslator>();
WinFormsControlsTest (1)
MainForm.cs (1)
54private IReadOnlyDictionary<MainFormControlsTabOrder, InitInfo> GetButtonsInitInfo() => new Dictionary<MainFormControlsTabOrder, InitInfo>
XmlFileLogger (2)
LogProcessNode.cs (1)
31_childNodes = new Dictionary<Type, List<ILogNode>>();
PropertyBag.cs (1)
27private readonly Dictionary<string, string> _properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
xunit.assert (4)
Sdk\ArgumentFormatter.cs (1)
70 static readonly Dictionary<TypeInfo, string> TypeMappings = new Dictionary<TypeInfo, string>
Sdk\AssertHelper.cs (1)
36 static readonly Dictionary<char, string> encodings = new Dictionary<char, string>
Sdk\CollectionTracker.cs (2)
580 var items = new Dictionary<int, T>(); 827 var result = new Dictionary<int, T>();
xunit.console (5)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (2)
16private readonly IDictionary<string, string> _stringPool = new Dictionary<string, string>(); 303var libraries = new Dictionary<string, LibraryStub>();
common\DictionaryExtensions.cs (1)
39var result = new Dictionary<TKey, TValue>(comparer);
common\Json.cs (1)
481var dictionary = new Dictionary<string, JsonValue>();
Utility\TransformFactory.cs (1)
18readonly Dictionary<string, Transform> availableTransforms = new Dictionary<string, Transform>(StringComparer.OrdinalIgnoreCase);
Xunit.NetCore.Extensions (4)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (1)
18private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();
AssemblyFixtureSupport\XunitTestClassRunnerWithAssemblyFixture.cs (1)
18private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();
AssemblyFixtureSupport\XunitTestCollectionRunnerWithAssemblyFixture.cs (1)
41var combinedFixtures = new Dictionary<Type, object>(assemblyFixtureMappings);
AssemblyFixtureSupport\XunitTestMethodRunnerWithAssemblyFixture.cs (1)
17private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();
9209 references to Dictionary
AnalyzerRunner (5)
AnalyzerRunnerHelper.cs (1)
14var properties = new Dictionary<string, string>
DiagnosticAnalyzerRunner.cs (3)
103var projectPerformance = new Dictionary<ProjectId, double>(); 104var documentPerformance = new Dictionary<DocumentId, DocumentAnalyzerPerformance>(); 414var telemetryInfoDictionary = new Dictionary<DiagnosticAnalyzer, AnalyzerTelemetryInfo>();
Program.cs (1)
147var diagnosticStatistics = new Dictionary<string, (string description, DiagnosticSeverity severity, int count)>();
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.Confluent.Kafka (1)
MetricsService.cs (1)
15private readonly Dictionary<string, Statistics> _state = new();
Aspire.Dashboard (35)
Components\Controls\Chart\ChartBase.cs (4)
60private Dictionary<SpanKey, OtlpSpan> _currentCache = new Dictionary<SpanKey, OtlpSpan>(); 61private Dictionary<SpanKey, OtlpSpan> _newCache = new Dictionary<SpanKey, OtlpSpan>(); 124var traces = new Dictionary<int, ChartTrace> 213internal bool TryCalculateHistogramPoints(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, Dictionary<int, ChartTrace> traces, List<ChartExemplar> exemplars)
Components\Controls\Chart\MetricTable.razor.cs (1)
126var traceValuesByPercentile = traces.ToDictionary(trace => trace.Percentile!.Value, trace => trace.Values[iTmp]);
Components\Controls\Chart\PlotlyChart.razor.cs (1)
117var exemplarGroups = new Dictionary<ExemplarGroupKey, List<ChartExemplar>>();
Components\Layout\AspirePageContentLayout.razor.cs (1)
55public Dictionary<string, Func<Task>> DialogCloseListeners { get; } = new();
Components\Pages\Resources.razor.cs (3)
31private Dictionary<ApplicationKey, int>? _applicationUnviewedErrorCounts; 161var newApplicationUnviewedErrorCounts = TelemetryRepository.GetApplicationUnviewedErrorLogsCount(); 248private bool ApplicationErrorCountsChanged(Dictionary<ApplicationKey, int> newApplicationUnviewedErrorCounts)
Components\Pages\TraceDetail.razor.cs (2)
294var traceCache = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal); 313private SpanLinkViewModel CreateLinkViewModel(string traceId, string spanId, KeyValuePair<string, string>[] attributes, Dictionary<string, OtlpTrace> traceCache)
Components\Resize\GridColumnManager.razor.cs (1)
12private Dictionary<string, GridColumn> _columnById = null!;
DashboardWebApplication.cs (2)
504var initialValues = new Dictionary<string, string?>(); 542static void AddEndpointConfiguration(Dictionary<string, string?> values, string endpointName, string url, HttpProtocols? protocols = null, bool requiredClientCertificate = false)
Extensions\FluentUIExtensions.cs (4)
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) 31public static Dictionary<string, object> GetOpenTextVisualizerAdditionalAttributes(string textValue, string textValueDescription, params (string Attribute, object Value)[] additionalAttributes) 33var attributes = new Dictionary<string, object>(StringComparers.HtmlAttribute)
Model\Otlp\ApplicationsSelectHelpers.cs (1)
45var replicasByApplicationName = OtlpApplication.GetReplicasByApplicationName(applications);
Otlp\Model\OtlpApplication.cs (3)
28private readonly Dictionary<string, OtlpMeter> _meters = new(); 29private readonly Dictionary<OtlpInstrumentKey, OtlpInstrument> _instruments = new(); 145public static Dictionary<string, List<OtlpApplication>> GetReplicasByApplicationName(IEnumerable<OtlpApplication> allApplications)
Otlp\Model\OtlpInstrument.cs (2)
38public Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>, DimensionScope> Dimensions { get; } = new(ScopeAttributesComparer.Instance); 39public Dictionary<string, List<string?>> KnownAttributeValues { get; } = new();
Otlp\Storage\TelemetryRepository.cs (9)
36private readonly Dictionary<string, OtlpScope> _logScopes = new(); 40private readonly Dictionary<ApplicationKey, int> _applicationUnviewedErrorLogs = new(); 43private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 136public Dictionary<ApplicationKey, int> GetApplicationUnviewedErrorLogsCount() 564public Dictionary<string, int> GetTraceFieldValues(string attributeName) 568var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute); 593public Dictionary<string, int> GetLogsFieldValues(string attributeName) 597var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute); 1090var allKnownAttributes = new Dictionary<string, List<string?>>();
ResourceService\DashboardClient.cs (1)
42private readonly Dictionary<string, ResourceViewModel> _resourceByName = new(StringComparers.ResourceName);
Aspire.Dashboard.Components.Tests (1)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
18Dictionary<string, ResourcePropertyViewModel>? properties = null,
Aspire.Dashboard.Tests (23)
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)
110var apps = new Dictionary<string, OtlpApplication>();
ResourceOutgoingPeerResolverTests.cs (9)
26var resources = new Dictionary<string, ResourceViewModel> 39var resources = new Dictionary<string, ResourceViewModel> 52var resources = new Dictionary<string, ResourceViewModel> 65var resources = new Dictionary<string, ResourceViewModel> 79var resources = new Dictionary<string, ResourceViewModel> 93var resources = new Dictionary<string, ResourceViewModel> 107var resources = new Dictionary<string, ResourceViewModel> 166var resources = new Dictionary<string, ResourceViewModel> 180var resources = new Dictionary<string, ResourceViewModel>
TelemetryRepositoryTests\LogTests.cs (6)
205var unviewedCounts1 = repository.GetApplicationUnviewedErrorLogsCount(); 215var unviewedCounts2 = repository.GetApplicationUnviewedErrorLogsCount(); 224var unviewedCounts3 = repository.GetApplicationUnviewedErrorLogsCount(); 276var unviewedCounts = repository.GetApplicationUnviewedErrorLogsCount(); 328var unviewedCounts = repository.GetApplicationUnviewedErrorLogsCount(); 366var unviewedCounts = repository.GetApplicationUnviewedErrorLogsCount();
TelemetryRepositoryTests\MetricsTests.cs (1)
620private static void AssertDimensionValues(Dictionary<ReadOnlyMemory<KeyValuePair<string, string>>, DimensionScope> dimensions, ReadOnlyMemory<KeyValuePair<string, string>> key, int valueCount)
tests\Shared\DashboardModel\ModelTestHelpers.cs (1)
18Dictionary<string, ResourcePropertyViewModel>? properties = null,
Aspire.EndToEnd.Tests (5)
IntegrationServicesFixture.cs (1)
27public Dictionary<string, ProjectInfo> Projects => Project?.InfoTable ?? throw new InvalidOperationException("Project is not initialized");
tests\Shared\WorkloadTesting\AspireProject.cs (1)
34public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
tests\Shared\WorkloadTesting\ProjectInfo.cs (2)
59public static Dictionary<string, ProjectInfo> Parse(string json) => 60JsonSerializer.Deserialize<Dictionary<string, ProjectInfo>>(json)!;
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Hosting (30)
ApplicationModel\DockerfileBuildAnnotation.cs (2)
11public Dictionary<string, object> BuildArguments { get; } = new(); 12public Dictionary<string, object> BuildSecrets { get; } = new();
ApplicationModel\EnvironmentCallbackAnnotation.cs (1)
38public EnvironmentCallbackAnnotation(Action<Dictionary<string, object>> callback)
ApplicationModel\EnvironmentCallbackContext.cs (2)
14public class EnvironmentCallbackContext(DistributedApplicationExecutionContext executionContext, Dictionary<string, object>? environmentVariables = null, CancellationToken cancellationToken = default) 19public Dictionary<string, object> EnvironmentVariables { get; } = environmentVariables ?? new();
ApplicationModel\ExpressionResolver.cs (1)
18readonly Dictionary<string, HostAndPortPresence> _endpointUsage = [];
ApplicationModel\ProjectResource.cs (1)
13internal Dictionary<EndpointAnnotation, string> KestrelEndpointAnnotationHosts { get; } = new();
ApplicationModel\ResourceExtensions.cs (3)
144public static async ValueTask<Dictionary<string, string>> GetEnvironmentVariableValuesAsync(this IResourceWithEnvironment resource, 147var environmentVariables = new Dictionary<string, string>(); 151var config = new Dictionary<string, object>();
ApplicationModel\ResourceLoggerService.cs (1)
302internal Dictionary<string, ResourceLoggerState> Loggers => _loggers.ToDictionary();
Dashboard\DashboardLifecycleHook.cs (1)
274var dashboardResourceTasks = new Dictionary<string, Task>();
Dashboard\ResourcePublisher.cs (1)
22private readonly Dictionary<string, SourceAndResourceSnapshot> _snapshot = [];
Dcp\ApplicationExecutor.cs (4)
98private readonly Dictionary<string, IResource> _applicationModel = model.Resources.ToDictionary(r => r.Name); 265var resourceLogState = new Dictionary<string, (bool logsAvailable, bool hasSubscribers)>(); 1328var config = new Dictionary<string, object>(); 1576var config = new Dictionary<string, object>();
Dcp\DcpHostService.cs (1)
281var loggerCache = new Dictionary<int, ILogger>();
Dcp\Model\Schema.cs (1)
8private readonly Dictionary<Type, (string Kind, string Resource)> _byType = new();
DistributedApplicationBuilder.cs (1)
354var switchMappings = new Dictionary<string, string>()
Health\ResourceHealthCheckService.cs (1)
16private readonly Dictionary<string, ResourceEvent> _latestEvents = new();
LaunchProfile.cs (1)
53public Dictionary<string, string> EnvironmentVariables { get; set; } = [];
LaunchSettings.cs (1)
17public Dictionary<string, LaunchProfile> Profiles { get; set; } = [];
OtlpConfigurationExtensions.cs (1)
97static void SetOtelEndpointAndProtocol(Dictionary<string, object> environmentVariables, string url, string protocol)
ProjectResourceBuilderExtensions.cs (1)
407Dictionary<string, int> endpointCountByScheme = [];
Publishing\ManifestPublishingContext.cs (2)
42private readonly Dictionary<string, IResource> _referencedResources = []; 485var config = new Dictionary<string, object>();
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
39var profiles = projectResource.GetLaunchSettings()?.Profiles;
src\Shared\SecretsStore.cs (2)
18private readonly Dictionary<string, string?> _secrets; 85private static Dictionary<string, string?> Load(string secretsFilePath)
Aspire.Hosting.Azure (5)
AzureBicepResource.cs (3)
33public Dictionary<string, object?> Parameters { get; } = []; 38public Dictionary<string, object?> Outputs { get; } = []; 43public Dictionary<string, string?> SecretOutputs { get; } = [];
AzureConstructResource.cs (1)
45var distinctConstructParametersLookup = distinctConstructParameters.ToDictionary(p => p.IdentifierName);
Provisioning\Provisioners\AzureProvisioner.cs (1)
494var resourceMap = new Dictionary<string, ArmResource>();
Aspire.Hosting.Azure.AppContainers (8)
AzureContainerAppsInfrastructure.cs (8)
76private readonly Dictionary<IResource, ContainerAppContext> _containerApps = []; 102private readonly Dictionary<object, string> _allocatedParameters = []; 103private readonly Dictionary<string, ProvisioningParameter> _provisioningParameters = []; 108private readonly Dictionary<string, EndpointMapping> _endpointMapping = []; 120public Dictionary<string, IManifestExpressionProvider> Parameters { get; } = []; 130public Dictionary<string, KeyVaultService> KeyVaultRefs { get; } = []; 131public Dictionary<string, KeyVaultSecret> KeyVaultSecretRefs { get; } = []; 254var endpointIndexMap = new Dictionary<string, int>();
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
39var profiles = projectResource.GetLaunchSettings()?.Profiles;
Aspire.Hosting.Azure.PostgreSQL (2)
AzurePostgresExtensions.cs (1)
288private static void RemoveAzureResources(IDistributedApplicationBuilder appBuilder, AzurePostgresFlexibleServerResource azureResource, Dictionary<string, AzurePostgresFlexibleServerDatabaseResource> azureDatabases)
AzurePostgresFlexibleServerResource.cs (1)
17private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
61var topicDictionary = new Dictionary<string, ServiceBusTopic>();
Aspire.Hosting.Azure.Sql (2)
AzureSqlExtensions.cs (1)
200private static void RemoveAzureResources(IDistributedApplicationBuilder appBuilder, AzureSqlServerResource azureResource, Dictionary<string, AzureSqlDatabaseResource> azureDatabases)
AzureSqlServerResource.cs (1)
13private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Azure.Tests (4)
AzureBicepResourceTests.cs (3)
728var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(serviceA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 778var constructParametersLookup = constructParameters.ToDictionary(p => p.IdentifierName); 817var constructParametersLookup = constructParameters.ToDictionary(p => p.IdentifierName);
AzureResourceExtensionsTests.cs (1)
189var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(cosmos.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubResource.cs (1)
17internal Dictionary<string, AzureWebPubSubHubResource> Hubs { get; } = new(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
368var onDemandResourcesPaths = new Dictionary<string, string>();
Aspire.Hosting.Dapr.Tests (4)
DaprTests.cs (4)
47var ports = new Dictionary<string, int> 59var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 146var ports = new Dictionary<string, int> 158var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Elasticsearch.Tests (2)
AddElasticsearchTests.cs (2)
55var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource); 117var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource);
Aspire.Hosting.Kafka.Tests (2)
AddKafkaTests.cs (2)
121var config = await kafka.Resource.GetEnvironmentVariableValuesAsync(); 139var config = await kafka.Resource.GetEnvironmentVariableValuesAsync();
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
45private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
110var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 121var containerConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container1.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
81private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MongoDB.Tests (1)
AddMongoDBTests.cs (1)
149var env = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(mongoExpress, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
43private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MySql.Tests (3)
AddMySqlTests.cs (3)
63var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 103var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 247var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(myAdmin, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
43private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.Oracle.Tests (3)
AddOracleTests.cs (3)
62var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 102var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 185var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Orleans (4)
OrleansService.cs (4)
67public Dictionary<string, IProviderConfiguration> GrainStorage { get; } = []; 72public Dictionary<string, IProviderConfiguration> GrainDirectory { get; } = []; 77public Dictionary<string, IProviderConfiguration> BroadcastChannel { get; } = []; 82public Dictionary<string, IProviderConfiguration> Streaming { get; } = [];
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
87private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (3)
72var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 127var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 219var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
121var environmentVariables = await pyproj.Resource.GetEnvironmentVariableValuesAsync(DistributedApplicationOperation.Run);
Aspire.Hosting.Qdrant.Tests (4)
AddQdrantTests.cs (4)
67var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 140var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 183var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 195var containerConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(container1.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Redis.Tests (2)
AddRedisTests.cs (2)
220var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 244var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
71private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.SqlServer.Tests (1)
AddSqlServerTests.cs (1)
63var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerResource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
159var additionalConfig = new Dictionary<string, string?>
Aspire.Hosting.Tests (55)
Dashboard\DashboardResourceTests.cs (6)
98var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 198var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 231var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 261var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 296var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services); 327var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services);
DistributedApplicationTests.cs (1)
205Dictionary<int, bool> pids = [];
ExpressionResolverTests.cs (3)
63var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(source.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance, "ContainerHostName"); 82var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance, "ContainerHostName"); 92Dictionary<string, ReferenceExpression> Expressions { get; }
KestrelConfigTests.cs (3)
40var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 78var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 143var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
ProjectResourceTests.cs (9)
77var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 188var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 317var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Publish); 360var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 382var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 407var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 434var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 621var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 666protected Dictionary<string, LaunchProfile>? Profiles { get; set; } = new();
ResourceExtensionsTests.cs (3)
101var env = await container.Resource.GetEnvironmentVariableValuesAsync(); 134var env = await container.Resource.GetEnvironmentVariableValuesAsync(); 167var env = await container.Resource.GetEnvironmentVariableValuesAsync(DistributedApplicationOperation.Publish);
UserSecretsParameterDefaultTests.cs (2)
30var userSecrets = GetUserSecrets(userSecretsId); 84private static Dictionary<string, string?> GetUserSecrets(string userSecretsId)
Utils\EnvironmentVariableEvaluator.cs (3)
8public static async ValueTask<Dictionary<string, string>> GetEnvironmentVariablesAsync(IResource resource, 12var environmentVariables = new Dictionary<string, string>(); 16var config = new Dictionary<string, object>();
Utils\Grpc\TestServerCallContext.cs (1)
14private readonly Dictionary<object, object> _userState;
WithEndpointTests.cs (1)
214var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
WithEnvironmentTests.cs (13)
29var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync( 52var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 65var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 81var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 97var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 114var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 129var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, 169var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 196var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource); 197var manifestConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource, DistributedApplicationOperation.Publish); 229var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource); 253var runConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.Run); 259var publishConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.Publish);
WithReferenceTests.cs (10)
28var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 51var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 76var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 99var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 120var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 171var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 190var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance); 206var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Publish); 222var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Publish); 295var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
Aspire.Playground.Tests (4)
AppHostTests.cs (3)
36var resourceEndpoints = testEndpoints.ResourceEndpoints!; 317Dictionary<string, List<string>> resourceEndpoints, 333public Dictionary<string, List<string>>? ResourceEndpoints { get; set; }
Infrastructure\DistributedApplicationExtensions.cs (1)
58var renamedVolumes = new Dictionary<string, string>();
Aspire.Workload.Tests (5)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
34public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
tests\Shared\WorkloadTesting\ProjectInfo.cs (2)
59public static Dictionary<string, ProjectInfo> Parse(string json) => 60JsonSerializer.Deserialize<Dictionary<string, ProjectInfo>>(json)!;
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
WorkloadTestsBase.cs (1)
153var expectedRowsTable = expectedResources.ToDictionary(r => r.Name);
BasicTestApp (2)
InteropTest\JavaScriptInterop.cs (2)
390public static Dictionary<string, DotNetObjectReference<TestDTO>> ReturnDotNetObjectByRef() 399public static async Task<Dictionary<string, DotNetObjectReference<TestDTO>>> ReturnDotNetObjectByRefAsync()
BasicWebSite (2)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
30var values = query
ValueProviders\CustomValueProviderFactory.cs (1)
19private static readonly Dictionary<string, Func<ValueProviderFactoryContext, StringValues>> Values = new()
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?>
BoundTreeGenerator (1)
BoundNodeClassWriter.cs (1)
32private readonly Dictionary<string, string> _typeMap;
BuildBoss (8)
CompilerNuGetCheckerUtil.cs (1)
236var partMap = partList.ToDictionary(x => x.RelativeName);
ProjectCheckerUtil.cs (2)
18private readonly Dictionary<ProjectKey, ProjectData> _solutionMap; 24internal ProjectCheckerUtil(ProjectData data, Dictionary<ProjectKey, ProjectData> solutionMap, bool isPrimarySolution)
SolutionCheckerUtil.cs (5)
44allGood &= CheckDuplicate(textWriter, out var map); 52private bool CheckProjects(TextWriter textWriter, Dictionary<ProjectKey, SolutionProjectData> map) 54var solutionMap = new Dictionary<ProjectKey, ProjectData>(); 80private bool CheckDuplicate(TextWriter textWriter, out Dictionary<ProjectKey, SolutionProjectData> map) 145private bool CheckSameDirectory(TextWriter textWriter, Dictionary<ProjectKey, SolutionProjectData> map)
BuildValidator (9)
LocalReferenceResolver.cs (5)
31private readonly Dictionary<Guid, AssemblyInfo> _mvidMap = new(); 37private readonly Dictionary<string, List<string>> _nameToLocationsMap = new(); 44private readonly Dictionary<string, List<AssemblyInfo>> _nameMap = new(FileNameEqualityComparer.StringComparer); 48private LocalReferenceResolver(Dictionary<string, List<string>> nameToLocationsMap, ILogger logger) 70var nameToLocationsMap = new Dictionary<string, List<string>>();
PEReaderExtensions.cs (1)
18private readonly Dictionary<string, int> _namedExportRva;
Program.cs (3)
182var map = new Dictionary<Guid, AssemblyInfo>(); 373var documents = JsonConvert.DeserializeAnonymousType(Encoding.UTF8.GetString(sourceLinkUtf8), new { documents = (Dictionary<string, string>?)null })?.documents
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();
CodeGenerator (1)
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
11private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
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);
CSharpSyntaxGenerator (1)
SignatureWriter.cs (1)
18private readonly Dictionary<string, string> _typeMap;
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.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-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)
792var foundCollectionTypes = AddSpecifiedTypesToDictionary(this.CollectionTypes, Switches.CollectionType.Name); 793var excludedTypes = AddSpecifiedTypesToDictionary(this.ExcludeTypes, Switches.ExcludeType.Name); 845private static Dictionary<string, Type> AddSpecifiedTypesToDictionary(IList<string> typeArgs, string cmd) 847Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count); 859private void AddReferencedTypesFromAssembly(Assembly assembly, Dictionary<string, Type> foundCollectionTypes, Dictionary<string, Type> excludedTypes) 879private void AddStdLibraries(Dictionary<string, Type> foundCollectionTypes, Dictionary<string, Type> excludedTypes) 898private static bool IsTypeSpecified(Type type, Dictionary<string, Type> specifiedTypes, string cmd) 932private 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-user-jwts (3)
Commands\CreateCommand.cs (1)
201var claims = new Dictionary<string, string>();
Helpers\DevJwtCliHelpers.cs (1)
193public static bool TryParseClaims(List<string> input, out Dictionary<string, string> claims)
Helpers\JwtCreatorOptions.cs (1)
15Dictionary<string, string> Claims);
FilesWebSite (1)
Controllers\UploadFilesController.cs (1)
32var files = new Dictionary<string, List<string>>();
FormatterWebSite (2)
Controllers\JsonOutputFormatterController.cs (1)
38public ActionResult<Dictionary<string, string>> DictionaryResult() =>
Controllers\XmlSerializerController.cs (1)
40public Dictionary<string, string> GetDictionary()
GenericHostWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
30var values = query
HealthChecksSample (2)
GCInfoHealthCheck.cs (1)
58var data = new Dictionary<string, object>()
Program.cs (1)
8private static readonly Dictionary<string, Type> _scenarios;
HelixTestRunner (1)
TestRunner.cs (1)
21public Dictionary<string, string> EnvironmentVariables { get; set; }
HtmlGenerationWebSite (1)
ProductsService.cs (1)
13private readonly Dictionary<string, Product[]> _products = new Dictionary<string, Product[]>
http2cat (4)
Program.cs (2)
46var decodedHeaders = h2Connection.DecodeHeaders(headersFrame); 70var decodedTrailers = h2Connection.DecodeHeaders(trailersFrame);
src\Shared\Http2cat\Http2Utilities.cs (2)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 231internal Dictionary<string, string> DecodeHeaders(Http2FrameWithPayload frame, bool endHeaders = false)
Identity.DefaultUI.WebSite (2)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (2)
24private readonly Dictionary<string, TUser> _logins = new Dictionary<string, TUser>(); 26private readonly Dictionary<string, TUser> _users = new Dictionary<string, TUser>();
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
192public static IEnumerable<object[]> ToTheoryData<T>(this Dictionary<string, T> dictionary)
src\Shared\Http2cat\Http2Utilities.cs (2)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 231internal Dictionary<string, string> DecodeHeaders(Http2FrameWithPayload frame, bool endHeaders = false)
IIS.LongTests (12)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
192public static IEnumerable<object[]> ToTheoryData<T>(this Dictionary<string, T> dictionary)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
548private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations(); 572public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations() 574var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 593private static Dictionary<string, Func<IISDeploymentParameters, string>> PortableConfigTransformations = InitPortableWebConfigTransformations(); 607public static Dictionary<string, Func<IISDeploymentParameters, string>> InitPortableWebConfigTransformations() 609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 662private static Dictionary<string, Func<IISDeploymentParameters, string>> StandaloneConfigTransformations = InitStandaloneConfigTransformations(); 678public static Dictionary<string, Func<IISDeploymentParameters, string>> InitStandaloneConfigTransformations() 680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
src\Shared\Http2cat\Http2Utilities.cs (2)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 231internal Dictionary<string, string> DecodeHeaders(Http2FrameWithPayload frame, bool endHeaders = false)
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
IIS.NewHandler.FunctionalTests (12)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
192public static IEnumerable<object[]> ToTheoryData<T>(this Dictionary<string, T> dictionary)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
548private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations(); 572public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations() 574var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 593private static Dictionary<string, Func<IISDeploymentParameters, string>> PortableConfigTransformations = InitPortableWebConfigTransformations(); 607public static Dictionary<string, Func<IISDeploymentParameters, string>> InitPortableWebConfigTransformations() 609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 662private static Dictionary<string, Func<IISDeploymentParameters, string>> StandaloneConfigTransformations = InitStandaloneConfigTransformations(); 678public static Dictionary<string, Func<IISDeploymentParameters, string>> InitStandaloneConfigTransformations() 680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
src\Shared\Http2cat\Http2Utilities.cs (2)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 231internal Dictionary<string, string> DecodeHeaders(Http2FrameWithPayload frame, bool endHeaders = false)
IIS.NewShim.FunctionalTests (12)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
192public static IEnumerable<object[]> ToTheoryData<T>(this Dictionary<string, T> dictionary)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
548private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations(); 572public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations() 574var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 593private static Dictionary<string, Func<IISDeploymentParameters, string>> PortableConfigTransformations = InitPortableWebConfigTransformations(); 607public static Dictionary<string, Func<IISDeploymentParameters, string>> InitPortableWebConfigTransformations() 609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 662private static Dictionary<string, Func<IISDeploymentParameters, string>> StandaloneConfigTransformations = InitStandaloneConfigTransformations(); 678public static Dictionary<string, Func<IISDeploymentParameters, string>> InitStandaloneConfigTransformations() 680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
src\Shared\Http2cat\Http2Utilities.cs (2)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 231internal Dictionary<string, string> DecodeHeaders(Http2FrameWithPayload frame, bool endHeaders = false)
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
192public static IEnumerable<object[]> ToTheoryData<T>(this Dictionary<string, T> dictionary)
IISExpress.FunctionalTests (12)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
192public static IEnumerable<object[]> ToTheoryData<T>(this Dictionary<string, T> dictionary)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
548private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations(); 572public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations() 574var dictionary = new Dictionary<string, (string, Action<XElement>)>(); 593private static Dictionary<string, Func<IISDeploymentParameters, string>> PortableConfigTransformations = InitPortableWebConfigTransformations(); 607public static Dictionary<string, Func<IISDeploymentParameters, string>> InitPortableWebConfigTransformations() 609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>(); 662private static Dictionary<string, Func<IISDeploymentParameters, string>> StandaloneConfigTransformations = InitStandaloneConfigTransformations(); 678public static Dictionary<string, Func<IISDeploymentParameters, string>> InitStandaloneConfigTransformations() 680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
src\Shared\Http2cat\Http2Utilities.cs (2)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 231internal Dictionary<string, string> DecodeHeaders(Http2FrameWithPayload frame, bool endHeaders = false)
illink (96)
ILLink.RoslynAnalyzer (23)
DataFlowAnalyzerContext.cs (3)
13 private readonly Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> _enabledAnalyzers; 31 Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> enabledAnalyzers, 42 var enabledAnalyzers = new Dictionary<RequiresAnalyzerBase, ImmutableArray<ISymbol>> ();
DynamicallyAccessedMembersAnalyzer.cs (5)
189 (Location[]? sourceLocation, Dictionary<string, string?>? DAMArgs) = (!attributableSymbolLocation.IsInSource 211 (Location[]? sourceLocation, Dictionary<string, string?>? DAMArgs) = (!attributableSymbolLocation.IsInSource 235 (Location[]? sourceLocation, Dictionary<string, string?>? DAMArgs) = (!attributableSymbolLocation.IsInSource 317 private static (Location[]?, Dictionary<string, string?>?) CreateArguments (Location attributableSymbolLocation, DynamicallyAccessedMemberTypes mismatchedArgument) 319 Dictionary<string, string?>? DAMArgument = new ();
src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (3)
24 private Dictionary<TKey, TValue>? Dictionary; 29 private DefaultValueDictionary (TValue defaultValue, Dictionary<TKey, TValue> dictionary) => (Dictionary, DefaultValue) = (dictionary, defaultValue); 99 var dict = new Dictionary<TKey, TValue> ();
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (4)
33 private readonly Dictionary<IControlFlowGraph<TBlock, TRegion>.ControlFlowBranch, TState> branchInput; 43 private readonly Dictionary<TRegion, Box<TValue>> exceptionState; 51 private readonly Dictionary<IControlFlowGraph<TBlock, TRegion>.ControlFlowBranch, TValue> exceptionFinallyState; 56 private readonly Dictionary<TRegion, TValue> finallyInputState;
TrimAnalysis\ArrayValue.cs (1)
12 public readonly Dictionary<int, MultiValue> IndexValues;
TrimAnalysis\DiagnosticContext.cs (1)
63 Dictionary<string, string?>? DAMArgument = new Dictionary<string, string?> ();
TrimAnalysis\TrimAnalysisPatternStore.cs (6)
15 readonly Dictionary<IOperation, TrimAnalysisAssignmentPattern> AssignmentPatterns; 16 readonly Dictionary<IOperation, TrimAnalysisFieldAccessPattern> FieldAccessPatterns; 17 readonly Dictionary<IOperation, TrimAnalysisGenericInstantiationPattern> GenericInstantiationPatterns; 18 readonly Dictionary<IOperation, TrimAnalysisMethodCallPattern> MethodCallPatterns; 19 readonly Dictionary<IOperation, TrimAnalysisReflectionAccessPattern> ReflectionAccessPatterns; 20 readonly Dictionary<IOperation, FeatureCheckReturnValuePattern> FeatureCheckReturnValuePatterns;
ILLink.Tasks (7)
CreateRuntimeRootDescriptorFile.cs (7)
94 readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string> (); 95 readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string> (); 96 readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers> (); 97 readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new (); 312 foreach ((var fs, var members) in featureSwitchMembers.Select (kv => (kv.Key, kv.Value))) { 409 Dictionary<string, ClassMembers> currentFeatureSwitchMembers = featureSwitchMembers[featureSwitch.Value];
Infrastructure.Common (9)
artifacts\bin\Infrastructure.Common\Debug\_ServiceModel.TestProperties.Generated.cs (1)
39static 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);
InMemory.FunctionalTests (83)
BadHttpRequestTests.cs (1)
57public static Dictionary<string, (string header, string errorMessage)> BadHeaderData => new Dictionary<string, (string, string)>
EventSourceTests.cs (1)
505public Dictionary<string, string> Payload { get; }
Http2\Http2ConnectionTests.cs (1)
2417public readonly Dictionary<string, StringValues> Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Http2\Http2TestBase.cs (5)
129protected readonly Dictionary<string, string> _receivedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 130protected readonly Dictionary<string, string> _receivedTrailers = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 131protected readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 164internal Dictionary<string, object> ConnectionTags => _metricsTagsFeature.Tags.ToDictionary(t => t.Key, t => t.Value); 983var dictionary = headers
Http3\Http3ConnectionTests.cs (5)
156var responseHeaders = await requestStream.ExpectHeadersAsync(); 369var incomingSettings = await inboundControlStream.ExpectSettingsAsync(); 583var responseHeaders = await requestStream.ExpectHeadersAsync(); 585var data = await requestStream.ExpectTrailersAsync(); 726var responseHeaders = await requestStream.ExpectHeadersAsync();
Http3\Http3StreamTests.cs (57)
36var responseHeaders = await requestStream.ExpectHeadersAsync(); 60var responseHeaders = await requestStream.ExpectHeadersAsync(); 115var responseHeaders = await requestStream.ExpectHeadersAsync(); 152var responseHeaders = await requestStream.ExpectHeadersAsync(); 169var responseHeaders = await requestStream.ExpectHeadersAsync(); 188var responseHeaders = await requestStream.ExpectHeadersAsync(); 214var responseHeaders = await requestStream.ExpectHeadersAsync(); 248var responseHeaders = await requestStream.ExpectHeadersAsync(); 307var responseHeaders = await requestStream.ExpectHeadersAsync(); 346var responseHeaders = await requestStream.ExpectHeadersAsync(); 366var responseHeaders = await requestStream.ExpectHeadersAsync(); 387var responseHeaders = await requestStream.ExpectHeadersAsync(); 410var responseHeaders = await requestStream.ExpectHeadersAsync(); 433var responseHeaders = await requestStream.ExpectHeadersAsync(); 456var responseHeaders = await requestStream.ExpectHeadersAsync(); 566var responseHeaders = await requestStream.ExpectHeadersAsync(); 602var responseHeaders = await requestStream.ExpectHeadersAsync(); 637var responseHeaders = await requestStream.ExpectHeadersAsync(); 669var responseHeaders = await requestStream.ExpectHeadersAsync(); 838var responseHeaders = await requestStream.ExpectHeadersAsync(); 840var responseTrailers = await requestStream.ExpectHeadersAsync(); 869var responseHeaders = await requestStream.ExpectHeadersAsync(); 903var responseHeaders = await requestStream.ExpectHeadersAsync(); 962var responseHeaders = await requestStream.ExpectHeadersAsync(); 966var responseTrailers = await requestStream.ExpectHeadersAsync(); 994var responseHeaders = await requestStream.ExpectHeadersAsync(); 1021var responseHeaders = await requestStream.ExpectHeadersAsync(); 1052var responseHeaders = await requestStream.ExpectHeadersAsync(); 1056var responseTrailers = await requestStream.ExpectHeadersAsync(); 1086var responseHeaders = await requestStream.ExpectHeadersAsync(); 1156var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1205var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1206var decodedTrailers = await requestStream.ExpectHeadersAsync(); 1306var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1358var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1410var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1452var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1507var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1515var decodedTrailers = await requestStream.ExpectHeadersAsync(); 1562var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1570var decodedTrailers = await requestStream.ExpectHeadersAsync(); 1736var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1744var decodedTrailers = await requestStream.ExpectHeadersAsync(); 1800var decodedHeaders = await requestStream.ExpectHeadersAsync(); 1808var decodedTrailers = await requestStream.ExpectHeadersAsync(); 2333var receivedHeaders = await requestStream.ExpectHeadersAsync(); 2391var receivedHeaders = await requestStream.ExpectHeadersAsync(); 2515var receivedHeaders = await requestStream.ExpectHeadersAsync(); 2551var receivedHeaders = await requestStream.ExpectHeadersAsync(); 2588var receivedHeaders = await requestStream.ExpectHeadersAsync(); 2625var receivedHeaders = await requestStream.ExpectHeadersAsync(); 2680var receivedHeaders = await requestStream.ExpectHeadersAsync(); 2727var receivedHeaders = await requestStream.ExpectHeadersAsync(); 2907var responseHeaders = await requestStream.ExpectHeadersAsync(); 2947var responseHeaders = await requestStream.ExpectHeadersAsync(); 2950var responseTrailers = await requestStream.ExpectHeadersAsync(); 2975var responseHeaders = await requestStream.ExpectHeadersAsync(expectEnd: true);
Http3\WebTransport\WebTransportHandshakeTests.cs (2)
60var response1 = await controlStream2.ExpectSettingsAsync(); 126var response1 = await controlStream2.ExpectSettingsAsync();
Http3\WebTransport\WebTransportTestUtilities.cs (1)
57var response1 = await controlStream2.ExpectSettingsAsync();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (7)
96internal Dictionary<string, object> ConnectionTags => MultiplexedConnectionContext.Tags.ToDictionary(t => t.Key, t => t.Value); 659public readonly Dictionary<string, string> DecodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 713var dictionary = headers 735internal async ValueTask<Dictionary<string, string>> ExpectHeadersAsync(bool expectEnd = false) 752internal async ValueTask<Dictionary<string, string>> ExpectTrailersAsync() 837internal async ValueTask<Dictionary<long, long>> ExpectSettingsAsync() 844var settings = new Dictionary<long, long>();
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
19private readonly Dictionary<string, CertificateAuthority> _aiaPaths = 22private readonly Dictionary<string, CertificateAuthority> _crlPaths
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\shared\WebSockets\TestStartup.cs (1)
17var delegates = new Dictionary<string, RequestDelegate>();
installer.tasks (1)
GenerateFileVersionProps.cs (1)
44var fileVersions = new Dictionary<string, FileVersionData>(StringComparer.OrdinalIgnoreCase);
Interop.FunctionalTests (5)
H2SpecTests.cs (1)
65var toSkip = new Dictionary<string, string>
Http3\Http3RequestTests.cs (4)
888var requestHeaders = new List<Dictionary<string, StringValues>>(); 917var request1Headers = requestHeaders.Single(i => i["id"] == "1"); 930var request2Headers = requestHeaders.Single(i => i["id"] == "2"); 946var request3Headers = requestHeaders.Single(i => i["id"] == "3");
IOperationGenerator (2)
IOperationClassWriter.cs (2)
28private readonly Dictionary<string, AbstractNode?> _typeMap; 309Dictionary<int, IEnumerable<(OperationKindEntry, AbstractNode)>> explicitKinds = _tree.Types.OfType<AbstractNode>()
KeyManagementSimulator (1)
Program.cs (1)
315private readonly Dictionary<Guid, DateTimeOffset> _missingSinceMap = new();
Microsoft.Analyzers.Extra (12)
CallAnalysis\Arrays.cs (1)
31private static readonly Dictionary<string, string[]> _collectionFactories = new()
CallAnalysis\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)
CallAnalysis\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);
CallAnalysis\StaticTime.cs (2)
16private static readonly Dictionary<string, string[]> _timeMethods = new() 29private static readonly Dictionary<string, string[]> _timeProperties = new()
Microsoft.Analyzers.Local (11)
ApiLifecycle\AssemblyAnalysis.cs (2)
17public Dictionary<ISymbol, List<string>> MissingConstraints { get; } = new(SymbolEqualityComparer.Default); 18public Dictionary<ISymbol, List<string>> MissingBaseTypes { get; } = new(SymbolEqualityComparer.Default);
CallAnalysis\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)
CallAnalysis\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.Arcade.Test.Common (2)
MockFileSystem.cs (2)
17public Dictionary<string, string> Files { get; } 24Dictionary<string, string>? files = null,
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticProject.cs (1)
29private static readonly Dictionary<Assembly, Solution> _solutionCache = new Dictionary<Assembly, Solution>();
Microsoft.AspNetCore.Analyzers (1)
StartupAnalysisBuilder.cs (1)
12private readonly Dictionary<INamedTypeSymbol, List<object>> _analysesByType;
Microsoft.AspNetCore.Analyzers.Test (1)
StartupFactsTest.cs (1)
101private static readonly Dictionary<string, string> TestSources = new Dictionary<string, string>
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.Analyzers.Test (2)
Http\HeaderDictionaryIndexerAnalyzerTests.cs (1)
172var propertyMapping = new Dictionary<string, string>(HeaderDictionaryIndexerAnalyzer.PropertyMapping);
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
56var tempSpans = new Dictionary<string, List<TextSpan>>();
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.Core.Test (7)
AuthenticationPropertiesTests.cs (5)
14var items = new Dictionary<string, string?> 19var parameters = new Dictionary<string, object?> 49var items = new Dictionary<string, string?> 61var items = new Dictionary<string, string?> 65var parameters = new Dictionary<string, object?>
AuthenticationTicketTests.cs (2)
13var items = new Dictionary<string, string?> 18var parameters = new Dictionary<string, object?>
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
72var queryStrings = QueryHelpers.ParseQuery(new Uri(base.BuildChallengeUrl(properties, redirectUri)).Query);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
UserJwtsTests.cs (2)
119var deserialized = JsonSerializer.Deserialize<Dictionary<string, Jwt>>(output);
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.Test (27)
CookieTests.cs (1)
154public readonly Dictionary<string, AuthenticationTicket> Store = new Dictionary<string, AuthenticationTicket>();
FacebookTests.cs (2)
395var entries = form.ReadForm(); 438var queryParams = QueryHelpers.ParseQuery(locationUri.Query);
GoogleTests.cs (6)
60var queryParams = QueryHelpers.ParseQuery(location.Query); 190var query = QueryHelpers.ParseQuery(transaction.Response.Headers.Location.Query); 242var query = QueryHelpers.ParseQuery(transaction.Response.Headers.Location.Query); 298var query = QueryHelpers.ParseQuery(transaction.Response.Headers.Location.Query); 1034var entries = form.ReadForm(); 1071var queryParams = QueryHelpers.ParseQuery(locationUri.Query);
MicrosoftAccountTests.cs (3)
270var query = QueryHelpers.ParseQuery(transaction.Response.Headers.Location.Query); 301var entries = form.ReadForm(); 338var queryParams = QueryHelpers.ParseQuery(locationUri.Query);
OpenIdConnect\OpenIdConnectTests.cs (2)
242var query = transaction.Response.Headers.Location.Query.Substring(1).Split('&') 273var query = transaction.Response.Headers.Location.Query.Substring(1).Split('&')
OpenIdConnect\TestSettings.cs (1)
139var queryDict = string.IsNullOrEmpty(redirectUri.Query) ?
TwitterTests.cs (2)
400var content = new Dictionary<string, string>() 469var content = new Dictionary<string, string>()
WsFederation\WsFederationTest.cs (5)
77var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 93var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 109var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 124var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 175var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query);
WsFederation\WsFederationTest_Handler.cs (5)
75var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 91var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 107var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 122var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query); 173var queryItems = QueryHelpers.ParseQuery(response.Headers.Location.Query);
Microsoft.AspNetCore.Authentication.Twitter (4)
TwitterHandler.cs (4)
183private 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) 298var 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.BrowserTesting (7)
BrowserManager.cs (1)
19private readonly Dictionary<string, IBrowser> _launchBrowsers = new(StringComparer.Ordinal);
BrowserManagerConfiguration.cs (6)
205Env = configuration.GetValue<Dictionary<string, string>>(nameof(BrowserTypeLaunchOptions.Env)), 216private static T BindMultiValueMap<T>(IConfigurationSection processArgsMap, Func<Dictionary<string, HashSet<string>>, T> mapper) 235var argsMap = new Dictionary<string, HashSet<string>>(); 249foreach (var (value, enabled) in arg.Get<Dictionary<string, bool>>()) 284static HashSet<string> InitializeMapValue(Dictionary<string, HashSet<string>> argsMap, string argName) 299true => configuration.Get<Dictionary<string, bool>>().Where(kvp => kvp.Value == true).Select(kvp => kvp.Key).ToArray()
Microsoft.AspNetCore.Components (42)
Infrastructure\ComponentStatePersistenceManager.cs (1)
18private readonly Dictionary<string, byte[]> _currentState = new(StringComparer.Ordinal);
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?>();
Reflection\ComponentProperties.cs (4)
92Dictionary<string, object>? unmatched = null; 229private static void ThrowForCaptureUnmatchedValuesConflict(Type targetType, string parameterName, Dictionary<string, object> unmatched) 270private readonly Dictionary<string, PropertySetter> _underlyingWriters; 342if (!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)
29private Dictionary<string, int>? _seenAttributeNames; 808var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance)); 880var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance));
RenderTree\Renderer.cs (5)
29private readonly Dictionary<int, ComponentState> _componentStateById = new Dictionary<int, ComponentState>(); 30private readonly Dictionary<IComponent, ComponentState> _componentStateByComponent = new Dictionary<IComponent, ComponentState>(); 32private readonly Dictionary<ulong, (int RenderedByComponentId, EventCallback Callback)> _eventBindings = new(); 33private readonly Dictionary<ulong, ulong> _eventHandlerIdReplacements = new Dictionary<ulong, ulong>(); 36private 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(); 1051public readonly Dictionary<string, int> AttributeDiffSet; 1052public readonly StackObjectPool<Dictionary<object, KeyedItemInfo>> KeyedItemInfoDictionaryPool;
ResourceAssetCollection.cs (1)
29var mappings = new Dictionary<string, ResourceAsset>(StringComparer.OrdinalIgnoreCase);
Routing\QueryParameterValueSupplier.cs (1)
11private readonly Dictionary<ReadOnlyMemory<char>, StringSegmentAccumulator> _queryParameterValuesByName = new(QueryParameterNameComparer.Instance);
Routing\RouteTableFactory.cs (2)
88var templatesByHandler = new Dictionary<Type, string[]>(); 116internal static RouteTable Create(Dictionary<Type, string[]> templatesByHandler, IServiceProvider serviceProvider)
Sections\SectionRegistry.cs (2)
8private readonly Dictionary<object, SectionOutlet> _subscribersByIdentifier = new(); 9private readonly Dictionary<object, List<SectionContent>> _providersByIdentifier = new();
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
443Dictionary<string, List<RoutePatternParameterPolicyReference>>? parameterPolicyReferences, 458Dictionary<string, object?>? updatedDefaults = null;
src\Http\Routing\src\RouteConstraintBuilder.cs (2)
27private readonly Dictionary<string, List<IRouteConstraint>> _constraints; 54var constraints = new Dictionary<string, IRouteConstraint>(StringComparer.OrdinalIgnoreCase);
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\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
55public Dictionary<string, UrlMatchingNode> Literals { get; }
Microsoft.AspNetCore.Components.Authorization.Tests (4)
src\Components\Shared\test\IComponentExtensions.cs (1)
10Dictionary<string, object> parameters)
src\Components\Shared\test\TestServiceProvider.cs (3)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 14private Dictionary<(Type, object?), Func<object?>>? _keyedFactories; 16private Dictionary<(Type, object?), Func<object?>> KeyedFactories
Microsoft.AspNetCore.Components.Endpoints (31)
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;
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\FormDataReader.cs (1)
127var result = new Dictionary<FormKey, HashSet<FormKey>>();
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)
17private readonly Dictionary<(int ComponentId, int FrameIndex), string> _namedSubmitEventsByLocation = new(); 18private readonly Dictionary<string, HashSet<(int ComponentId, int FrameIndex)>> _namedSubmitEventsByScopeQualifiedName = new(StringComparer.Ordinal); 136private 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();
src\Shared\Components\PrerenderComponentApplicationStore.cs (2)
44public Dictionary<string, byte[]> ExistingState { get; protected set; } 76[JsonSerializable(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
Microsoft.AspNetCore.Components.Endpoints.Tests (92)
Binding\FormDataMapperTests.cs (79)
26var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 46var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 66var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 78private FormDataReader CreateFormDataReader(Dictionary<string, StringValues> collection, CultureInfo invariantCulture, IFormFileCollection formFileCollection = null) 80var dictionary = new Dictionary<FormKey, StringValues>(collection.Count); 97var collection = new Dictionary<string, StringValues>() { }; 119var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") }; 136var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") }; 162var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 179var collection = new Dictionary<string, StringValues>() { }; 196var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) }; 213var collection = new Dictionary<string, StringValues>() { ["value.Slug"] = new StringValues(value) }; 239var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") }; 257var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") }; 273var collection = new Dictionary<string, StringValues>() { }; 290var data = new Dictionary<string, StringValues>() { }; 306var data = new Dictionary<string, StringValues>() { ["[0]"] = "10" }; 322var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "11" }) }; 340var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) }; 358var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) }; 376var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a" }) }; 401var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a", "11" }) }; 431var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 462var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 508var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 569var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 609var collection = new Dictionary<string, StringValues>() 897var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 898CanDeserialize_Dictionary<Dictionary<int, int>, Dictionary<int, int>, int, int>(expected); 931var collection = new Dictionary<string, StringValues>() 960var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 961CanDeserialize_Dictionary<IDictionary<int, int>, Dictionary<int, int>, int, int>(expected); 984var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 985var collection = new Dictionary<string, StringValues>() 1014var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, }; 1015var collection = new Dictionary<string, StringValues>() 1044var collection = new Dictionary<string, StringValues>() { }; 1066var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size) 1084var result = FormDataMapper.Map<Dictionary<int, int>>(reader, options); 1105var expected = new Dictionary<int, int> 1118var collection = new Dictionary<string, StringValues>() 1141var result = FormDataMapper.Map<Dictionary<int, int>>(reader, options); 1144var dictionary = Assert.IsType<Dictionary<int, int>>(result); 1166var expected = new Dictionary<int, int> 1177var collection = new Dictionary<string, StringValues>() 1200var result = FormDataMapper.Map<Dictionary<int, int>>(reader, options); 1203var dictionary = Assert.IsType<Dictionary<int, int>>(result); 1226var collection = new Dictionary<string, StringValues>() 1254var collection = new Dictionary<string, StringValues>() 1290var data = new Dictionary<string, StringValues>() 1315var data = new Dictionary<string, StringValues>() 1356var data = new Dictionary<string, StringValues>() 1415var data = new Dictionary<string, StringValues>() 1486var data = new Dictionary<string, StringValues>() 1545var data = new Dictionary<string, StringValues>() 1590var data = new Dictionary<string, StringValues>() 1629var data = new Dictionary<string, StringValues>() 1660var data = new Dictionary<string, StringValues>() 1679var data = new Dictionary<string, StringValues>() 1698var data = new Dictionary<string, StringValues>() 1717var data = new Dictionary<string, StringValues>() 1739var data = new Dictionary<string, StringValues>() 1761var data = new Dictionary<string, StringValues>() 1787var data = new Dictionary<string, StringValues>() 1812var data = new Dictionary<string, StringValues>() 1832var data = new Dictionary<string, StringValues>() 1852var data = new Dictionary<string, StringValues>() { }; 1875var data = new Dictionary<string, StringValues>() { ["value"] = "20" }; 1906var data = new Dictionary<string, StringValues>(); 1934var data = new Dictionary<string, StringValues>(); 1967var data = new Dictionary<string, StringValues>(); 1989var data = new Dictionary<string, StringValues>(); 2012var data = new Dictionary<string, StringValues>(); 2045var data = new Dictionary<string, StringValues>(); 2080var data = new Dictionary<string, StringValues>() 2447public Dictionary<int, RecursiveDictionaryTree> Children { get; set; }
Binding\FormDataMetadataFactoryTests.cs (4)
275Assert.Equal(typeof(Dictionary<string, Warehouse>), property.PropertyMetadata.Type); 474Assert.Equal(typeof(Dictionary<string, DictionaryTree<string>>), property.PropertyMetadata.Type); 679public Dictionary<string, Warehouse> Warehouses { get; set; } 714public Dictionary<string, DictionaryTree<T>> Children { get; set; }
Builder\TestFileProvider\TestFileProvider.cs (3)
10private readonly Dictionary<string, IFileInfo> _lookup = 12private readonly Dictionary<string, IDirectoryContents> _directoryContentsLookup = 15private readonly Dictionary<string, TestFileChangeToken> _fileTriggers =
RazorComponentResultTest.cs (2)
35var paramsDict = new Dictionary<string, object> { { "First", 123 } }; 424var parameters = new Dictionary<string, object>
RazorComponentsServiceCollectionExtensionsTest.cs (2)
78var multiRegistrationServiceTypes = MultiRegistrationServiceTypes; 85private Dictionary<Type, Type[]> MultiRegistrationServiceTypes
WebRootComponentParametersTest.cs (2)
172private static WebRootComponentParameters CreateParameters(Dictionary<string, object> parameters) 185private static WebRootComponentParameters CreateParametersWithNonJsonElements(Dictionary<string, object> parameters)
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.Forms.Tests (4)
src\Components\Shared\test\IComponentExtensions.cs (1)
10Dictionary<string, object> parameters)
src\Components\Shared\test\TestServiceProvider.cs (3)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 14private Dictionary<(Type, object?), Func<object?>>? _keyedFactories; 16private Dictionary<(Type, object?), Func<object?>> KeyedFactories
Microsoft.AspNetCore.Components.Performance (2)
RouteTableFactoryBenchmarks.cs (1)
14private Dictionary<Type, string[]> _templatesByHandler;
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Components.QuickGrid (1)
Infrastructure\EventCallbackSubscribable.cs (1)
14private readonly Dictionary<EventCallbackSubscriber<T>, EventCallback<T>> _callbacks = new();
Microsoft.AspNetCore.Components.Server (13)
Circuits\ComponentParameterDeserializer.cs (1)
25var parametersDictionary = new Dictionary<string, object>();
Circuits\RemoteJSRuntime.cs (1)
27internal readonly Dictionary<long, RemoteJSDataStream> RemoteJSDataStreamInstances = new();
src\Components\Shared\src\RenderBatchWriter.cs (1)
37private readonly Dictionary<string, int> _deduplicatedStringIndices;
src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\Shared\Components\PrerenderComponentApplicationStore.cs (2)
44public Dictionary<string, byte[]> ExistingState { get; protected set; } 76[JsonSerializable(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
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.Server.Tests (13)
Circuits\CircuitHostTest.cs (9)
422Dictionary<string, object> parameters = new() 448Dictionary<string, object> parameters = new() 473Dictionary<string, object> parameters = new() 506Dictionary<string, object> parameters = new() 543Dictionary<string, object> parameters = new() 573Dictionary<string, object> parameters = new() 587private async Task AddComponentAsync<TComponent>(CircuitHost circuitHost, int ssrComponentId, Dictionary<string, object> parameters = null, string componentKey = "") 604private async Task UpdateComponentAsync<TComponent>(CircuitHost circuitHost, int ssrComponentId, Dictionary<string, object> parameters = null, string componentKey = "") 671private ComponentMarker CreateMarker(Type type, string locationHash, Dictionary<string, object> parameters = null, string componentKey = "")
Circuits\RemoteRendererTest.cs (2)
555var parameters = new Dictionary<string, object> { ["Name"] = "value" }; 594var parameters = new Dictionary<string, object> { ["Name"] = "value" };
Circuits\ServerComponentDeserializerTest.cs (2)
446private ComponentMarker CreateMarker(Type type, Dictionary<string, object> parameters = null) 472private ComponentMarker[] CreateMarkers(params (Type, Dictionary<string, object>)[] types)
Microsoft.AspNetCore.Components.Tests (45)
CascadingParameterStateTest.cs (1)
429var supplierParams = new Dictionary<string, object>
DynamicComponentTest.cs (3)
16var parameters = new Dictionary<string, object> 70var childParameters = new Dictionary<string, object> 108var childParameters = new Dictionary<string, object>
Lifetime\ComponentApplicationStateTest.cs (9)
15var existingState = new Dictionary<string, byte[]> 33var existingState = new Dictionary<string, byte[]> 49var existingState = new Dictionary<string, byte[]> 67var currentState = new Dictionary<string, byte[]>(); 86var currentState = new Dictionary<string, byte[]>(); 103var currentState = new Dictionary<string, byte[]>(); 122var currentState = new Dictionary<string, byte[]>(); 142var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized }; 160var existingState = new Dictionary<string, byte[]>() { ["MyState"] = serialized };
Lifetime\ComponentStatePersistenceManagerTest.cs (9)
23var state = new Dictionary<string, byte[]> 43var state = new Dictionary<string, byte[]> 60var state = new Dictionary<string, byte[]>(); 82var state = new Dictionary<string, byte[]>(); 107var state = new Dictionary<string, byte[]>(); 127var state = new Dictionary<string, byte[]>(); 155var state = new Dictionary<string, byte[]>(); 189var state = new Dictionary<string, byte[]>(); 215var state = new Dictionary<string, byte[]>();
NavigationManagerTest.cs (2)
188var unsupportedParameterValues = new Dictionary<string, object> 203var values = new Dictionary<string, object>
ParameterViewTest.Assignment.cs (2)
324var value = new Dictionary<string, object>(); 712[Parameter(CaptureUnmatchedValues = true)] public Dictionary<string, object> CaptureUnmatchedValuesProp1 { get; set; }
ParameterViewTest.cs (2)
242var dictionary = new Dictionary<string, object>(); 255var dictionary = new Dictionary<string, object>
Rendering\RenderTreeBuilderTest.cs (2)
354var attributes = new Dictionary<string, object> 368var attributes = new Dictionary<string, object>
RouteViewTest.cs (4)
48var routeParams = new Dictionary<string, object> 99var routeParams = new Dictionary<string, object>(); 123var routeParams = new Dictionary<string, object>(); 146var routeParams = new Dictionary<string, object>();
Routing\RouterTest.cs (4)
186var parameters = new Dictionary<string, object> 206var parameters = new Dictionary<string, object> 232var parameters = new Dictionary<string, object> 253var parameters = new Dictionary<string, object>
Routing\RouteTableFactoryTests.cs (3)
335var expectedParameters = new Dictionary<string, object> 356var expectedParameters = new Dictionary<string, object> 1141var templatesByHandler = _routeTemplates
src\Components\Shared\test\IComponentExtensions.cs (1)
10Dictionary<string, object> parameters)
src\Components\Shared\test\TestServiceProvider.cs (3)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 14private Dictionary<(Type, object?), Func<object?>>? _keyedFactories; 16private Dictionary<(Type, object?), Func<object?>> KeyedFactories
Microsoft.AspNetCore.Components.Web (22)
Forms\InputBase.cs (4)
305if (ConvertToDictionary(AdditionalAttributes, out var additionalAttributes)) 326if (ConvertToDictionary(AdditionalAttributes, out var additionalAttributes)) 340private static bool ConvertToDictionary(IReadOnlyDictionary<string, object>? source, out Dictionary<string, object> result) 347else 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)
188[JsonSerializable(typeof(Dictionary<string, JSComponentConfigurationStore.JSComponentParameter[]>))] 189[JsonSerializable(typeof(Dictionary<string, List<string>>))]
Microsoft.AspNetCore.Components.Web.Tests (7)
Forms\EditFormTest.cs (2)
197var editFormAttributes = editFormFrames.AsEnumerable() 238public Dictionary<string, object> AdditionalFormAttributes { get; set; }
Forms\TestInputHostComponent.cs (1)
12public Dictionary<string, object> AdditionalAttributes { get; set; }
src\Components\Shared\test\IComponentExtensions.cs (1)
10Dictionary<string, object> parameters)
src\Components\Shared\test\TestServiceProvider.cs (3)
12private readonly Dictionary<Type, Func<object?>> _factories = new(); 14private Dictionary<(Type, object?), Func<object?>>? _keyedFactories; 16private Dictionary<(Type, object?), Func<object?>> KeyedFactories
Microsoft.AspNetCore.Components.WebAssembly (4)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (1)
26var parametersDictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
src\Components\Shared\src\WebRootComponentManager.cs (1)
33private readonly Dictionary<int, WebRootComponent> _webRootComponents = new();
src\Shared\Components\PrerenderComponentApplicationStore.cs (2)
44public Dictionary<string, byte[]> ExistingState { get; protected set; } 76[JsonSerializable(typeof(Dictionary<string, byte[]>), GenerationMode = JsonSourceGenerationMode.Serialization)]
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.WebAssembly.Tests (14)
Hosting\WebAssemblyHostConfigurationTest.cs (14)
15var initialData = new Dictionary<string, string>() { 41var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 65var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 83var initialData = new Dictionary<string, string>() { 96var section = configuration.GetSection("wheels").AsEnumerable(makePathsRelative: true).ToDictionary(k => k.Key, v => v.Value); 110var initialData = new Dictionary<string, string>() { { "color", "blue" } }; 127var dic1 = new Dictionary<string, string>() 134var dic2 = new Dictionary<string, string>() 141var dic3 = new Dictionary<string, string>() 161var dict = configuration.GetSection("Mem1").AsEnumerable(makePathsRelative: true).ToDictionary(k => k.Key, v => v.Value); 167var dict2 = configuration.GetSection("Mem2").AsEnumerable(makePathsRelative: true).ToDictionary(k => k.Key, v => v.Value); 173var dict3 = configuration.GetSection("Mem3").AsEnumerable(makePathsRelative: true).ToDictionary(k => k.Key, v => v.Value); 186var dic1 = new Dictionary<string, string>() 190var dic2 = new Dictionary<string, string>()
Microsoft.AspNetCore.Components.WebView (7)
src\Components\Shared\src\RenderBatchWriter.cs (1)
37private readonly Dictionary<string, int> _deduplicatedStringIndices;
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.Test (4)
Infrastructure\ElementNode.cs (3)
8private readonly Dictionary<string, object> _attributes; 9private readonly Dictionary<string, object> _properties; 10private readonly Dictionary<string, ElementEventDescriptor> _events;
Infrastructure\TestDocument.cs (1)
14private readonly Dictionary<long, ComponentNode> _componentsById = new();
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
14private readonly Dictionary<string, Channel<double>> _counters = new Dictionary<string, Channel<double>>();
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.Tests (15)
Internal\KeyManagementOptionsSetupTest.cs (2)
47var registryEntries = new Dictionary<string, object>() 77private static void RunTest(Dictionary<string, object> regValues, KeyManagementOptions options)
KeyManagement\XmlKeyManagerTests.cs (2)
963var keyDictWithRevocations = keyManager.GetAllKeys().ToDictionary(k => k.KeyId); 974var keyDictWithDeletions = keyManager.GetAllKeys().ToDictionary(k => k.KeyId);
RegistryPolicyResolverTests.cs (11)
21var registryEntries = new Dictionary<string, object>(); 37var registryEntries = new Dictionary<string, object>() 58var registryEntries = new Dictionary<string, object>() 75var registryEntries = new Dictionary<string, object>() 92var registryEntries = new Dictionary<string, object>() 116var registryEntries = new Dictionary<string, object>() 152var registryEntries = new Dictionary<string, object>() 174var registryEntries = new Dictionary<string, object>() 204var registryEntries = new Dictionary<string, object>() 226var registryEntries = new Dictionary<string, object>() 251private static RegistryPolicy RunTestWithRegValues(Dictionary<string, object> regValues)
Microsoft.AspNetCore.Diagnostics (1)
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.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)
239var routeParameterDescriptors = ServiceDescriptorHelpers.ResolveRouteParameterDescriptors(routeAdapter.HttpRoutePattern.Variables, methodDescriptor.InputType);
Internal\CallHandlers\CallHandlerDescriptorInfo.cs (2)
18Dictionary<string, RouteParameter> routeParameterDescriptors, 35public Dictionary<string, RouteParameter> RouteParameterDescriptors { get; }
Internal\Json\JsonConverterHelper.cs (2)
23internal static readonly Dictionary<string, Type> WellKnownTypeNames = new Dictionary<string, Type> 138var repeatedFieldType = typeof(Dictionary<,>).MakeGenericType(keyType, valueType);
Internal\Json\MessageTypeInfoResolver.cs (3)
41var mappings = CreateJsonFieldMap(fields); 160private static Dictionary<string, FieldDescriptor> CreateJsonFieldMap(IList<FieldDescriptor> fields) 162var map = new Dictionary<string, FieldDescriptor>();
Internal\JsonRequestHelpers.cs (1)
224type = typeof(Dictionary<,>).MakeGenericType(args[0], args[1]);
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\Grpc\JsonTranscoding\src\Shared\Legacy.cs (4)
374private static readonly ConcurrentDictionary<Type, Dictionary<object, string>> _dictionaries 375= new ConcurrentDictionary<Type, Dictionary<object, string>>(); 380Dictionary<object, string>? nameMapping; 395private static Dictionary<object, string> GetNameMapping(Type enumType)
src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (3)
74Dictionary<string, ICompressionProvider> compressionProviders, 111var resolvedCompressionProviders = new Dictionary<string, ICompressionProvider>(StringComparer.Ordinal); 148private static void AddCompressionProviders(Dictionary<string, ICompressionProvider> resolvedProviders, IList<ICompressionProvider>? compressionProviders)
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.Grpc.JsonTranscoding.Tests (9)
Infrastructure\TestHelpers.cs (1)
80Dictionary<string, RouteParameter>? routeParameterDescriptors = null,
ServerStreamingServerCallHandlerTests.cs (5)
50var routeParameterDescriptors = new Dictionary<string, RouteParameter> 97var routeParameterDescriptors = new Dictionary<string, RouteParameter> 139var routeParameterDescriptors = new Dictionary<string, RouteParameter> 179var routeParameterDescriptors = new Dictionary<string, RouteParameter> 228var routeParameterDescriptors = new Dictionary<string, RouteParameter>
UnaryServerCallHandlerTests.cs (3)
54var routeParameterDescriptors = new Dictionary<string, RouteParameter> 98var routeParameterDescriptors = new Dictionary<string, RouteParameter> 132var routeParameterDescriptors = new Dictionary<string, RouteParameter>
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Grpc.Swagger (13)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (3)
100var routeParameters = ServiceDescriptorHelpers.ResolveRouteParameterDescriptors(httpRoutePattern.Variables, methodDescriptor.InputType); 146var queryParameters = ServiceDescriptorHelpers.ResolveQueryParameterDescriptors(routeParameters, methodDescriptor, bodyDescriptor?.Descriptor, bodyDescriptor?.FieldDescriptor); 169private static string ResolvePath(HttpRoutePattern httpRoutePattern, Dictionary<string, RouteParameter> routeParameters)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (4)
374private static readonly ConcurrentDictionary<Type, Dictionary<object, string>> _dictionaries 375= new ConcurrentDictionary<Type, Dictionary<object, string>>(); 380Dictionary<object, string>? nameMapping; 395private static Dictionary<object, string> GetNameMapping(Type enumType)
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 (6)
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\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Hosting.Tests (23)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
14private readonly Dictionary<string, Channel<double>> _counters = new Dictionary<string, Channel<double>>();
WebHostBuilderTests.cs (10)
294var data = new Dictionary<string, string> 507var settings = new Dictionary<string, string> 533var settings = new Dictionary<string, string> 559var settings = new Dictionary<string, string> 568var overrideSettings = new Dictionary<string, string> 594var vals = new Dictionary<string, string> 623var vals = new Dictionary<string, string> 644var vals = new Dictionary<string, string> 1477var vals = new Dictionary<string, string> 1499var vals = new Dictionary<string, string>
WebHostConfigurationsTests.cs (3)
14var parameters = new Dictionary<string, string>() 39var parameters = new Dictionary<string, string>() { { "ENVIRONMENT", Environments.Development } }; 50var parameters = new Dictionary<string, string>() { { "detailedErrors", value } };
WebHostTests.cs (9)
52var data = new Dictionary<string, string> 71var data = new Dictionary<string, string> 90var data = new Dictionary<string, string> 122var data = new Dictionary<string, string> 196var data = new Dictionary<string, string> 235var data = new Dictionary<string, string> 271var data = new Dictionary<string, string> 813var vals = new Dictionary<string, string> 836var vals = new Dictionary<string, 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\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\Shared\Dictionary\AdaptiveCapacityDictionary.cs (3)
27internal Dictionary<TKey, TValue>? _dictionaryStorage; 91internal AdaptiveCapacityDictionary(Dictionary<TKey, TValue> dict) 604private Dictionary<TKey, TValue>.Enumerator? _dictionaryEnumerator;
Microsoft.AspNetCore.Http.Abstractions (2)
ProblemDetails\HttpValidationProblemDetails.cs (1)
40private HttpValidationProblemDetails(Dictionary<string, string[]> errors)
Routing\RouteValueDictionary.cs (1)
902var names = new Dictionary<string, PropertyHelper>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
GetHeaderSplitBenchmark.cs (1)
16var dict = new Dictionary<string, StringValues>()
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
UseMiddlewareTest.cs (2)
318private readonly Dictionary<Type, object> _services = new Dictionary<Type, object>(); 339private readonly Dictionary<object, Tuple<Type, object>> _services = new Dictionary<object, Tuple<Type, object>>();
UsePathBaseExtensionsTests.cs (1)
245private readonly Dictionary<Type, object> _services = new Dictionary<Type, object>();
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
726var requestHeaders = new Dictionary<string, StringValues>(existingRequestFeature.Headers.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Connections.Tests (18)
HttpConnectionDispatcherTests.cs (18)
228var values = new Dictionary<string, StringValues>(); 308var values = new Dictionary<string, StringValues>(); 350var values = new Dictionary<string, StringValues>(); 388var values = new Dictionary<string, StringValues>(); 427var values = new Dictionary<string, StringValues>(); 467var values = new Dictionary<string, StringValues>(); 530var values = new Dictionary<string, StringValues>(); 598var values = new Dictionary<string, StringValues>(); 661var values = new Dictionary<string, StringValues>(); 765var values = new Dictionary<string, StringValues>(); 907var values = new Dictionary<string, StringValues>(); 1842var values = new Dictionary<string, StringValues>(); 1894var values = new Dictionary<string, StringValues>(); 2570var values = new Dictionary<string, StringValues>(); 2630var values = new Dictionary<string, StringValues>(); 2687var values = new Dictionary<string, StringValues>(); 3699var values = new Dictionary<string, StringValues>(); 3736var values = new Dictionary<string, StringValues>();
Microsoft.AspNetCore.Http.Extensions (23)
RequestDelegateFactory.cs (1)
2223var dictionary = new Dictionary<FormKey, StringValues>();
RequestDelegateFactoryContext.cs (1)
43public Dictionary<string, string> TrackedParameters { get; } = new();
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\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\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
127var result = new Dictionary<FormKey, HashSet<FormKey>>();
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
315public Dictionary<Type, FormDataTypeMetadata> TypeMetadata { get; set; } = new();
src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (1)
19var converters = new Dictionary<Type, FormDataConverter>
src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Http.Extensions.Tests (14)
HttpRequestJsonExtensionsTests.cs (5)
127var result = await context.Request.ReadFromJsonAsync<Dictionary<string, string>>(); 191var result = (Dictionary<string, string>?)await context.Request.ReadFromJsonAsync(typeof(Dictionary<string, string>));
ProblemDetailsDefaultWriterTest.cs (4)
87var result = await JsonSerializer.DeserializeAsync<Dictionary<string, object>>(stream, JsonSerializerOptions.Default); 119var result = await JsonSerializer.DeserializeAsync<Dictionary<string, object>>(stream, JsonSerializerOptions.Default);
RequestDelegateFactoryTests.FormMapping.cs (3)
21static void TestAction([FromForm] Dictionary<string, string> args) { } 68static void TestAction([FromForm(Name = "shouldSetKeyCorrectly")] Dictionary<string, string> args) { } 115static void TestAction([FromForm] Dictionary<string, string> args) { }
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (2)
106await VerifyResponseJsonBodyAsync<Dictionary<string, bool>>(httpContext, (elements) => 143await VerifyResponseJsonBodyAsync<Dictionary<string, bool>>(httpContext, (elements) =>
Microsoft.AspNetCore.Http.Microbenchmarks (4)
AdaptiveCapacityDictionaryBenchmark.cs (3)
14private Dictionary<string, string> _dict; 15private Dictionary<string, string> _dictTen; 16private Dictionary<string, string> _filledDictTen;
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
18Dictionary<TSource, ImmutableArray<TElement>.Builder> map = new(comparer);
StaticRouteHandlerModel\EndpointParameter.cs (1)
479var lookupTable = new Dictionary<ParameterLookupKey, IPropertySymbol>();
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Http.Results.Tests (6)
ResultsTests.cs (3)
1256var extensions = new Dictionary<string, object> { { "test", "value" } }; 1399var errors = new Dictionary<string, string[]>() { { "testField", new[] { "test error" } } }; 1405var extensions = new Dictionary<string, object>() { { "testExtension", "test value" } };
TypedResultsTests.cs (3)
1072var extensions = new Dictionary<string, object> { { "test", "value" } }; 1191var errors = new Dictionary<string, string[]>() { { "testField", new[] { "test error" } } }; 1196var extensions = new Dictionary<string, object>() { { "testExtension", "test value" } };
Microsoft.AspNetCore.Http.Tests (2)
DefaultHttpContextTests.cs (2)
140var items = new Dictionary<object, object>(); 449private readonly Dictionary<string, byte[]> _store
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
434var errorDictionary = new Dictionary<string, string[]>(1);
Microsoft.AspNetCore.Identity.FunctionalTests (3)
Infrastructure\ServerFactory.cs (2)
90var _assemblyMap = 103var relatedParts = relatedAssemblies.ToDictionary(
MapIdentityApiTests.cs (1)
1347private static Dictionary<string, Action<IServiceCollection>> AddIdentityActions { get; } = new()
Microsoft.AspNetCore.Identity.InMemory.Test (3)
InMemoryStore.cs (1)
70private readonly Dictionary<string, TRole> _roles = new Dictionary<string, TRole>();
InMemoryUserStore.cs (2)
24private readonly Dictionary<string, TUser> _logins = new Dictionary<string, TUser>(); 26private readonly Dictionary<string, TUser> _users = new Dictionary<string, TUser>();
Microsoft.AspNetCore.Identity.Test (1)
SignInManagerTest.cs (1)
1352private static readonly Dictionary<string, AuthenticationScheme> _defaultCookieSchemes = new()
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);
xunit\AspNetTestAssemblyRunner.cs (1)
18private readonly Dictionary<Type, object> _assemblyFixtureMappings = new();
xunit\AspNetTestCollectionRunner.cs (1)
19Dictionary<Type, object> assemblyFixtureMappings,
Microsoft.AspNetCore.JsonPatch.Tests (19)
CustomNamingStrategyTests.cs (1)
97var targetObject = new Dictionary<string, int>()
Internal\DictionaryAdapterTest.cs (15)
22var dictionary = new Dictionary<string, int>(StringComparer.Ordinal); 42var dictionary = new Dictionary<int, object>(); 64var dictionary = new Dictionary<int, object>(); 92var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 119var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 144var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 164var dictionary = new Dictionary<Guid, object>(); 184var dictionary = new Dictionary<Guid, int>(); 203var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 221var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 239var dictionary = new Dictionary<string, Rectangle>(StringComparer.Ordinal); 262var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 281var dictionary = new Dictionary<Uri, object>(); 300var dictionary = new Dictionary<string, List<object>>(); 324var dictionary = new Dictionary<string, object>();
JsonPatchDocumentGetPathTest.cs (1)
42var patchDocument = new JsonPatchDocument<Dictionary<string, int>>();
TestObjectModels\DynamicTestObject.cs (1)
11private Dictionary<string, object> _dictionary = new Dictionary<string, object>();
WriteOnceDynamicTestObject.cs (1)
25private Dictionary<string, object> _dictionary = new Dictionary<string, object>();
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\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
ModelBinding\ModelMetadataTest.cs (2)
89typeof(Dictionary<object, object>), 228[InlineData(typeof(Dictionary<object, object>), typeof(KeyValuePair<object, object>))]
Microsoft.AspNetCore.Mvc.Api.Analyzers (6)
AddResponseTypeAttributeCodeFixAction.cs (6)
136var statusCodeConstants = GetStatusCodeConstants(statusCodesType); 147private static Dictionary<int, string> GetStatusCodeConstants(INamedTypeSymbol statusCodesType) 149var statusCodeConstants = new Dictionary<int, string>(); 179var statusCodes = new Dictionary<int, (int, ITypeSymbol?)>(); 259Dictionary<int, string> statusCodeConstants, 272public Dictionary<int, string> StatusCodeConstants { get; }
Microsoft.AspNetCore.Mvc.ApiExplorer (9)
ApiResponseTypeProvider.cs (6)
84var responseTypes = ReadResponseMetadata( 93var responseTypesFromProvider = ReadResponseMetadata( 135internal static Dictionary<int, ApiResponseType> ReadResponseMetadata( 145var results = new Dictionary<int, ApiResponseType>(); 221internal static Dictionary<int, ApiResponseType> ReadResponseMetadata( 227var results = new Dictionary<int, ApiResponseType>();
DefaultApiDescriptionProvider.cs (1)
240var routeParameters = new Dictionary<string, ApiParameterRouteInfo>(StringComparer.OrdinalIgnoreCase);
EndpointMetadataApiDescriptionProvider.cs (2)
343var responseProviderMetadataTypes = ApiResponseTypeProvider.ReadResponseMetadata( 345var producesResponseMetadataTypes = ApiResponseTypeProvider.ReadResponseMetadata(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)
41var 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; 412var 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\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\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.Core.Test (138)
ApplicationModels\AttributeRouteModelTests.cs (3)
148public void ReplaceTokens_ValidValues(string template, Dictionary<string, string> values, string expected) 160public void ReplaceTokens_InvalidFormat(string template, Dictionary<string, string> values, string reason) 183var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
ApplicationParts\RelatedAssemblyPartTest.cs (1)
106public Dictionary<string, Assembly> Assemblies { get; } = new Dictionary<string, Assembly>();
Authorization\AuthorizeFilterTest.cs (1)
621var contextItems = new Dictionary<object, object>();
ControllerBaseTest.cs (7)
1406var expected = new Dictionary<string, object> 1446var expected = new Dictionary<string, object> 1467var expected = new Dictionary<string, object> 1600var expected = new Dictionary<string, object> 1625var expected = new Dictionary<string, object> 1646var expected = new Dictionary<string, object> 2594var expected2 = new Dictionary<string, object>
Controllers\ControllerBinderDelegateProviderTest.cs (24)
43var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 97var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 165var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 207var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 257var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 293var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 342var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 401var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 436var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 484var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 532var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 579var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 629var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 668var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 708var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 749var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 811var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 874var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 962var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 990var boundPropertyTypes = new Dictionary<string, Type> 998var inputPropertyValues = new Dictionary<string, object> 1021var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 1176var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 1228var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (2)
221var multiRegistrationServiceTypes = MultiRegistrationServiceTypes; 228private Dictionary<Type, Type[]> MultiRegistrationServiceTypes
Infrastructure\ControllerActionInvokerTest.cs (17)
858var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 883var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 909var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 932var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 955var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1134var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1162var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1192var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } }; 1215var actionParameters = new Dictionary<string, object> { ["value"] = 3 }; 1241var actionParameters = new Dictionary<string, object> { ["value"] = 3 }; 1271var actionParameters = new Dictionary<string, object> { { "s", inputParam2 }, { "i", inputParam1 } }; 1301var actionParameters = new Dictionary<string, object> { { "value", inputParam } }; 1330var actionParameters = new Dictionary<string, object> { { "i", "Some Invalid Value" }, { "s", inputParam2 } }; 1453var actionParameters = new Dictionary<string, object> { { "input", inputParam }, }; 1478var actionParameters = new Dictionary<string, object> { { "input", inputParam }, }; 1502var actionParameters = new Dictionary<string, object>(); 1526var actionParameters = new Dictionary<string, object>();
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (1)
163var errors = new Dictionary<string, string[]>()
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (2)
298var binders = new Dictionary<ModelMetadata, IModelBinder>(); 441var binders = bindingContext.ModelMetadata.Properties.ToDictionary(
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (5)
358var binders = new Dictionary<ModelMetadata, IModelBinder>(); 597var binders = bindingContext.ModelMetadata.Properties.ToDictionary( 619var binders = bindingContext.ModelMetadata.Properties.ToDictionary( 1586var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>(); 1624public Dictionary<ModelMetadata, ModelBindingResult> Results { get; } = new Dictionary<ModelMetadata, ModelBindingResult>();
ModelBinding\Binders\DictionaryModelBinderProviderTest.cs (1)
31[InlineData(typeof(Dictionary<string, int>))]
ModelBinding\Binders\DictionaryModelBinderTest.cs (22)
21var values = new Dictionary<string, string>() 61var values = new Dictionary<string, string>() 72var dictionary = new Dictionary<int, string>(); 101var dictionaryWithOne = new Dictionary<string, string>(StringComparer.Ordinal) 105var dictionaryWithThree = new Dictionary<string, string>(StringComparer.Ordinal) 196var dictionary = new Dictionary<string, string>(StringComparer.Ordinal) 233var dictionary = new Dictionary<string, string>(StringComparer.Ordinal) 268var dictionaryWithOne = new Dictionary<long, int> 272var dictionaryWithThree = new Dictionary<long, int> 288var stringDictionary = dictionary.ToDictionary(kvp => kvp.Key.ToString(CultureInfo.InvariantCulture), kvp => kvp.Value.ToString(CultureInfo.InvariantCulture)); 319var dictionary = new Dictionary<int, ModelWithProperties> 324var stringDictionary = new Dictionary<string, string> 412private IActionResult ActionWithDictionaryParameter(Dictionary<string, string> parameter) => null; 452Assert.Empty(Assert.IsType<Dictionary<string, string>>(bindingContext.Result.Model)); 487Assert.Empty(Assert.IsType<Dictionary<string, string>>(bindingContext.Result.Model)); 496private IActionResult ActionWithDefaultValueDictionaryParameter(Dictionary<string, string> parameter = null) => null; 595{ typeof(Dictionary<int, int>), true }, 641var backingStore = dictionary.ToDictionary( 657var backingStore = dictionary.ToDictionary( 700public Dictionary<string, string> DictionaryProperty { get; set; } 702public Dictionary<int, ModelWithProperties> DictionaryWithComplexValuesProperty { get; set; } 704public Dictionary<long, int> DictionaryWithValueTypesProperty { get; set; }
ModelBinding\CompositeValueProviderTest.cs (3)
37Dictionary<string, StringValues> values, 70var dictionary = new Dictionary<string, string>(StringComparer.Ordinal) 119var values = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
ModelBinding\EnumerableValueProviderTest.cs (9)
11protected static Dictionary<string, StringValues> BackingStore { get; } = new Dictionary<string, StringValues> 32var backingStore = new Dictionary<string, StringValues>(); 87var expected = new Dictionary<string, string> 120var expected = new Dictionary<string, string> 142var expected = new Dictionary<string, string> 207var backingStore = new Dictionary<string, StringValues> 238var store = new Dictionary<string, StringValues>(BackingStore) 292Dictionary<string, StringValues> values, 305Dictionary<string, StringValues> values,
ModelBinding\FormValueProviderTest.cs (2)
19var values = new Dictionary<string, StringValues>(BackingStore) 39Dictionary<string, StringValues> values,
ModelBinding\JQueryFormValueProviderFactoryTest.cs (2)
15private static readonly Dictionary<string, StringValues> _backingStore = new Dictionary<string, StringValues> 186private static ValueProviderFactoryContext CreateContext(string contentType, Dictionary<string, StringValues> formValues)
ModelBinding\JQueryFormValueProviderTest.cs (4)
13Dictionary<string, StringValues> values, 23var dictionary = new Dictionary<string, StringValues>(); 37var store = new Dictionary<string, StringValues>(BackingStore) 57var values = new Dictionary<string, StringValues>(BackingStore)
ModelBinding\JQueryQueryStringValueProviderFactoryTest.cs (2)
14private static readonly Dictionary<string, StringValues> _backingStore = new Dictionary<string, StringValues> 113private static ValueProviderFactoryContext CreateContext(Dictionary<string, StringValues> queryStringValues)
ModelBinding\JQueryQueryStringValueProviderTest.cs (3)
13Dictionary<string, StringValues> values, 23var dictionary = new Dictionary<string, StringValues>(); 40var store = new Dictionary<string, StringValues>(BackingStore)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (2)
255[InlineData(typeof(Dictionary<object, object>), typeof(KeyValuePair<object, object>))] 835[InlineData(typeof(Dictionary<string, string>))]
ModelBinding\ModelBindingHelperTest.cs (7)
62var values = new Dictionary<string, object> 104var values = new Dictionary<string, object> 175var values = new Dictionary<string, object> 255var values = new Dictionary<string, object> 306var values = new Dictionary<string, object> 505var values = new Dictionary<string, object> 580var values = new Dictionary<string, object>
ModelBinding\QueryStringValueProviderFactoryTest.cs (1)
33var queryValues = new Dictionary<string, StringValues>();
ModelBinding\QueryStringValueProviderTest.cs (1)
14Dictionary<string, StringValues> values,
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (1)
49var model = new Dictionary<int, string>()
ModelBinding\Validation\DefaultObjectValidatorTests.cs (1)
985var model = new Dictionary<string, string>()
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (1)
49var model = new Dictionary<int, string>()
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (3)
12var model = new Dictionary<int, string>() 60var model = new Dictionary<int, string>() 101var model = new Dictionary<int, string>()
ResponseCacheAttributeTest.cs (5)
29var cacheProfiles = new Dictionary<string, CacheProfile>(); 49var cacheProfiles = new Dictionary<string, CacheProfile>(); 159Dictionary<string, CacheProfile> cacheProfiles, 189var cacheProfiles = new Dictionary<string, CacheProfile>(); 323private IServiceProvider GetServiceProvider(Dictionary<string, CacheProfile> cacheProfiles)
Routing\UrlHelperTestBase.cs (4)
623var dictionary = new Dictionary<string, object>(); 668var dict = new Dictionary<string, object>(); 889var mockItems = new Dictionary<object, object> 930var mockItems = new Dictionary<object, object>
ValidationProblemDetailsTest.cs (1)
79var errors = new Dictionary<string, string[]>
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
LinkBuilder.cs (1)
22public Dictionary<string, object> Values { get; set; }
RoutingResult.cs (1)
13public Dictionary<string, object> RouteValues { get; set; }
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
176var namesAndValues = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
XmlDataContractSerializerOutputFormatterTest.cs (1)
371new Dictionary<string, string> { { "Hello", "world" } }, typeof(Dictionary<string,string>), true };
XmlSerializerInputFormatterTest.cs (1)
271[InlineData(typeof(Dictionary<string, object>), false)]
XmlSerializerOutputFormatterTest.cs (1)
342new Dictionary<string, string> { { "Hello", "world" } }, typeof(Dictionary<string,string>), false };
Microsoft.AspNetCore.Mvc.FunctionalTests (37)
ApiBehaviorTest.cs (3)
440var expected = new Dictionary<string, string[]> 453var actual = JsonConvert.DeserializeObject<Dictionary<string, string[]>>(content);
BasicTests.cs (5)
398var product = new Dictionary<string, string> 529var formContent = new Dictionary<string, string> 551var formContent = new Dictionary<string, string> 575var formContent = new Dictionary<string, string> 595var formContent = new Dictionary<string, string>
ControllerEndpointFiltersTest.cs (6)
42var content = await response.Content.ReadFromJsonAsync<Dictionary<string, object>>(); 55var content = await response.Content.ReadFromJsonAsync<Dictionary<string, object>>(); 80var content = await response.Content.ReadFromJsonAsync<Dictionary<string, object>>();
FormFileUploadTest.cs (1)
97public Dictionary<string, List<string>> Specs { get; set; }
HtmlGenerationTest.cs (1)
200static void AssertImgElement(IElement imgElement, Dictionary<string, string> expectedAttributes)
InputObjectValidationTests.cs (4)
147var responseObject = JsonConvert.DeserializeObject<Dictionary<string, string[]>>(responseContent); 175var responseObject = JsonConvert.DeserializeObject<Dictionary<string, string[]>>(responseContent);
InputParentValidationTests.cs (5)
57var actualErrors = JsonConvert.DeserializeObject<Dictionary<string, string[]>>(responseContent); 76var actualErrors = JsonConvert.DeserializeObject<Dictionary<string, string[]>>(responseContent); 93var result = new Dictionary<string, string[]>();
InputValidationTests.cs (1)
87var errors = JsonConvert.DeserializeObject<JObject>(responseText)
JsonOutputFormatterTestBase.cs (2)
64var modelStateErrors = JsonConvert.DeserializeObject<Dictionary<string, string[]>>(actualContent);
RemoteAttributeValidationTest.cs (1)
89var contentDictionary = new Dictionary<string, string>
RoutingTestsBase.cs (5)
184public Dictionary<string, object> DataTokens { get; set; } 197var result = JsonConvert.DeserializeObject<Dictionary<string, object>>(body); 209var result = JsonConvert.DeserializeObject<Dictionary<string, object>>(body);
TagHelpersTest.cs (2)
229var validPostValues = new Dictionary<string, string> 257var validPostValues = new Dictionary<string, string>
VersioningTestsBase.cs (1)
567public Dictionary<string, object> RouteValues { get; set; }
Microsoft.AspNetCore.Mvc.IntegrationTests (168)
ActionParametersIntegrationTest.cs (1)
1085var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
BodyValidationIntegrationTests.cs (7)
131var modelStateErrors = CreateValidationDictionary(modelState); 177var modelStateErrors = CreateValidationDictionary(modelState); 216var modelStateErrors = CreateValidationDictionary(modelState); 295var modelStateErrors = CreateValidationDictionary(modelState); 337var modelStateErrors = CreateValidationDictionary(modelState); 893private Dictionary<string, string> CreateValidationDictionary(ModelStateDictionary modelState) 895var result = new Dictionary<string, string>();
CollectionModelBinderIntegrationTest.cs (3)
724public static TheoryData<Type, Dictionary<string, StringValues>, Type> CollectionTypeData 728return new TheoryData<Type, Dictionary<string, StringValues>, Type> 932Dictionary<string, StringValues> formContent,
ComplexRecordIntegrationTest.cs (4)
1162private record Order7(string Name, Dictionary<string, int> ProductIds); 1366private record Car1(string Name, Dictionary<string, IEnumerable<SpecDoc>> Specs); 1369private record Car2(string Name, Dictionary<string, SpecDoc[]> Specs); 1809private record Car4(string Name, KeyValuePair<string, Dictionary<string, string>> Specs);
ComplexTypeIntegrationTestBase.cs (4)
1179public Dictionary<string, int> ProductIds { get; set; } 1388public Dictionary<string, IEnumerable<SpecDoc>> Specs { get; set; } 1396public Dictionary<string, SpecDoc[]> Specs { get; set; } 1948public KeyValuePair<string, Dictionary<string, string>> Specs { get; set; }
DictionaryModelBinderIntegrationTest.cs (111)
25ParameterType = typeof(Dictionary<string, int>) 41var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 65ParameterType = typeof(Dictionary<string, int>) 81var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 102ParameterType = typeof(Dictionary<string, int>) 119var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 156ParameterType = typeof(Dictionary<string, int>) 172var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 193ParameterType = typeof(Dictionary<string, int>) 209var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 224var impliedPrefixDictionary = new Dictionary<string, StringValues> 230var reversedImpliedPrefixDictionary = new Dictionary<string, StringValues> 236var longFormDictionary = new Dictionary<string, StringValues> 245var longerFormDictionary = new Dictionary<string, StringValues> 255var longestFormDictionary = new Dictionary<string, StringValues> 269var noPrefixDictionary = new Dictionary<string, StringValues> 275var reversedNoPrefixDictionary = new Dictionary<string, StringValues> 331var expectedDictionary = new Dictionary<string, int> 344ParameterType = typeof(Dictionary<string, int>), 353var model = Assert.IsType<Dictionary<string, int>>(result.Model); 366var expectedDictionary = new Dictionary<string, int> 381ParameterType = typeof(Dictionary<string, int>), 390var model = Assert.IsType<Dictionary<string, int>>(result.Model); 405ParameterType = typeof(Dictionary<string, int>) 421var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 440ParameterType = typeof(Dictionary<string, int>), 510ParameterType = typeof(Dictionary<string, Person>) 526var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 544var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } }; 555ParameterType = typeof(Dictionary<string, Person>) 564var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 582var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } }; 593ParameterType = typeof(Dictionary<string, Person>) 602var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 617var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } }; 628ParameterType = typeof(Dictionary<string, Person>) 637var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 652var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } }; 663ParameterType = typeof(Dictionary<string, Person>) 672var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 708ParameterType = typeof(Dictionary<string, Person>) 724var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 752ParameterType = typeof(Dictionary<string, Person>) 763var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 787ParameterType = typeof(Dictionary<string, Person>) 803var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 827ParameterType = typeof(Dictionary<string, Person>) 843var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model); 862ParameterType = typeof(Dictionary<string, Person>), 909var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 914ParameterType = typeof(Dictionary<string, string[]>) 927var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 941var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 952ParameterType = typeof(Dictionary<string, string[]>) 961var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 975var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } }; 986ParameterType = typeof(Dictionary<string, string[]>) 995var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 1014var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } }; 1025ParameterType = typeof(Dictionary<string, string[]>) 1034var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 1053var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } }; 1064ParameterType = typeof(Dictionary<string, string[]>) 1073var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model); 1091typeof(Dictionary<string, string>) 1094typeof(Dictionary<string, string>), 1096typeof(Dictionary<string, string>) 1121typeof(Dictionary<string, string>) 1124typeof(Dictionary<string, string>), 1126typeof(Dictionary<string, string>) 1160var expectedDictionary = new Dictionary<string, string> 1210ParameterType = typeof(Dictionary<SuccessfulModel, SuccessfulModel>), 1239ParameterType = typeof(Dictionary<string, string>) 1255var model = Assert.IsType<Dictionary<string, string>>(modelBindingResult.Model); 1293ParameterType = typeof(Dictionary<string, NonNullPerson>) 1309var model = Assert.IsType<Dictionary<string, NonNullPerson>>(modelBindingResult.Model); 1359var expectedDictionary = new Dictionary<DayOfWeek, string> 1368ParameterType = typeof(Dictionary<DayOfWeek, string>) 1394var expectedDictionary = new Dictionary<string, DayOfWeek> 1404ParameterType = typeof(Dictionary<string, DayOfWeek>) 1416var model = Assert.IsType<Dictionary<string, DayOfWeek>>(modelBindingResult.Model); 1446ParameterType = typeof(Dictionary<string, NonNullPersonWithRequiredProperties>) 1462var model = Assert.IsType<Dictionary<string, NonNullPersonWithRequiredProperties>>(modelBindingResult.Model); 1726private void SampleMethod_ComplexType(Dictionary<string, Person> parameter = null) { } 1727private void SampleMethod_SimpleType(Dictionary<string, int> parameter = null) { }
FormFileModelBindingIntegrationTest.cs (1)
1188public Dictionary<string, IFormFile> Dictionary { get; set; }
GenericModelBinderIntegrationTest.cs (17)
266ParameterType = typeof(Dictionary<string, int>[]) 282var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model); 283var dictionary = Assert.Single(model); 311ParameterType = typeof(Dictionary<string, int>[]) 327var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model); 328var dictionary = Assert.Single(model); 356ParameterType = typeof(Dictionary<string, int>[]) 372var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model); 514ParameterType = typeof(Dictionary<string, List<int>>) 531var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model); 563ParameterType = typeof(Dictionary<string, List<int>>) 579var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model); 611ParameterType = typeof(Dictionary<string, List<int>>) 627var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model);
SimpleTypeModelBinderIntegrationTest.cs (3)
637public static TheoryData<Dictionary<string, StringValues>> PersonStoreData 641return new TheoryData<Dictionary<string, StringValues>> 661public async Task BindParameter_FromFormData_BindsCorrectly(Dictionary<string, StringValues> personStore)
TryValidateModelIntegrationTest.cs (7)
40var modelStateErrors = GetModelStateErrors(modelState); 71var modelStateErrors = GetModelStateErrors(modelState); 120var modelStateErrors = GetModelStateErrors(modelState); 147var modelStateErrors = GetModelStateErrors(modelState); 168var modelStateErrors = GetModelStateErrors(modelState); 224private Dictionary<string, string> GetModelStateErrors(ModelStateDictionary modelState) 226var result = new Dictionary<string, string>();
ValidationIntegrationTests.cs (5)
2231var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 2262ParameterType = typeof(Dictionary<string, NeverValid>) 2278var model = Assert.IsType<Dictionary<string, NeverValid>>(modelBindingResult.Model);
ValidationWithRecordIntegrationTests.cs (5)
2022var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model); 2053ParameterType = typeof(Dictionary<string, NeverValid>) 2069var model = Assert.IsType<Dictionary<string, NeverValid>>(modelBindingResult.Model);
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.NewtonsoftJson.Test (34)
BsonTempDataSerializerTest.cs (7)
97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 161var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 212var input = new Dictionary<string, object> 239var input = new Dictionary<string, object>
DependencyInjection\MvcNewtonsoftJsonOptionsExtensionsTest.cs (4)
87var dictionary = new Dictionary<string, int> 106var dictionary = new Dictionary<string, int>() 125var dictionary = new Dictionary<string, int> 197var dictionary = new Dictionary<string, int>()
NewtonsoftJsonOutputFormatterTest.cs (2)
241var dictionary = new Dictionary<string, int>(StringComparer.Ordinal) 251var context = GetOutputFormatterContext(dictionary, typeof(Dictionary<string, int>));
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (21)
30var input = new Dictionary<string, object> 54var input = new Dictionary<string, object> 76var input = new Dictionary<string, object> 97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 160var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 204var input = new Dictionary<string, object> 226var input = new Dictionary<string, object> 247var input = new Dictionary<string, object> 268var input = new Dictionary<string, object> 289var input = new Dictionary<string, object> 309var value = new Dictionary<string, string> 314var input = new Dictionary<string, object> 324var roundTripValue = Assert.IsType<Dictionary<string, string>>(values[key]); 334var value = new Dictionary<string, int> 339var input = new Dictionary<string, object> 349var roundTripValue = Assert.IsType<Dictionary<string, int>>(values[key]);
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.Razor.Test (16)
RazorViewEngineTest.cs (16)
23private static readonly Dictionary<string, object> _areaTestContext = new Dictionary<string, object>() 29private static readonly Dictionary<string, object> _controllerTestContext = new Dictionary<string, object>() 34private static readonly Dictionary<string, object> _pageTestContext = new Dictionary<string, object>() 658var routeValues = _controllerTestContext; 725var routeValues = _areaTestContext; 1142var routeValues = _controllerTestContext; 1200var routeValues = _areaTestContext; 1283var routeValues = new Dictionary<string, object> 1295var routesInActionDescriptor = new Dictionary<string, string>() 1324var routeValues = new Dictionary<string, object> 1328var routesInActionDescriptor = new Dictionary<string, string>() 1358var routeValues = new Dictionary<string, object> 1363var routesInActionDescriptor = new Dictionary<string, string>() 1393var routeValues = new Dictionary<string, object>() 1833var routeValues = new Dictionary<string, object> 1870var routeValues = new Dictionary<string, object>
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; 219Dictionary<string, object?> argumentsInDictionary,
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Infrastructure\PageBinderFactoryTest.cs (4)
603var arguments = new Dictionary<string, object>(); 646var arguments = new Dictionary<string, object>(); 689var arguments = new Dictionary<string, object>(); 740var arguments = new Dictionary<string, object>();
PageModelTest.cs (1)
945var expected2 = new Dictionary<string, object>
PageTest.cs (1)
1874var expected2 = new Dictionary<string, object>
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.TagHelpers.Test (26)
AnchorTagHelperTest.cs (3)
211var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 269var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 328var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } };
FormActionTagHelperTest.cs (6)
313public static TheoryData<string, Dictionary<string, string>, string> AreaRouteValuesData 317return new TheoryData<string, Dictionary<string, string>, string> 335Dictionary<string, string> routeValues, 352var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } }; 389Dictionary<string, string> routeValues, 406var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } };
FormTagHelperTest.cs (3)
644var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } }; 701var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } }; 758var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } };
InputTagHelperTest.cs (5)
1682It.Is<Dictionary<string, object>>(m => m.ContainsKey("type")))) // htmlAttributes 1783var htmlAttributes = new Dictionary<string, object> 1844var htmlAttributes = new Dictionary<string, object> 1913var htmlAttributes = new Dictionary<string, object> 2007var htmlAttributes = new Dictionary<string, object>
PrerenderComponentApplicationStoreTest.cs (2)
17var state = new Dictionary<string, byte[]>() 35var expected = new Dictionary<string, ReadOnlySequence<byte>>()
ProtectedPrerenderComponentApplicationStateTest.cs (3)
24var state = new Dictionary<string, byte[]>() 40var expectedState = new Dictionary<string, byte[]>() 61var expectedState = new Dictionary<string, byte[]>()
SelectTagHelperTest.cs (1)
107var attributeData = new Dictionary<string, string>(StringComparer.Ordinal)
TagHelperOutputExtensionsTest.cs (3)
633public static TheoryData<Dictionary<string, string>, TagHelperAttributeList, TagHelperAttributeList> MultipleAttributeSameNameData 638return new TheoryData<Dictionary<string, string>, TagHelperAttributeList, TagHelperAttributeList> 768Dictionary<string, string> tagBuilderAttributes,
Microsoft.AspNetCore.Mvc.Test (2)
MvcServiceCollectionExtensionsTest.cs (2)
463var multiRegistrationServiceTypes = MultiRegistrationServiceTypes; 471private Dictionary<Type, Type[]> MultiRegistrationServiceTypes
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
335var 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)
179var 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.Mvc.ViewFeatures.Test (78)
ControllerUnitTestabilityTests.cs (6)
324var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 360var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 397var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 436var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 474var routeValues = new Dictionary<string, object>() { { "route", "sample" } }; 508var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
CookieTempDataProviderTest.cs (4)
118var values = new Dictionary<string, object>(); 269var values = new Dictionary<string, object>(); 298var input = new Dictionary<string, object> 341private readonly Dictionary<string, CookieInfo> _cookies = new Dictionary<string, CookieInfo>(StringComparer.OrdinalIgnoreCase);
DefaultHtmlGeneratorTest.cs (12)
116var htmlAttributes = new Dictionary<string, object> 171var htmlAttributes = new Dictionary<string, object> 201var htmlAttributes = new Dictionary<string, object> 225var htmlAttributes = new Dictionary<string, object> 249var htmlAttributes = new Dictionary<string, object> 271var htmlAttributes = new Dictionary<string, object> 293var htmlAttributes = new Dictionary<string, object> 316var htmlAttributes = new Dictionary<string, object> 369var htmlAttributes = new Dictionary<string, object> 399var htmlAttributes = new Dictionary<string, object> 424var htmlAttributes = new Dictionary<string, object> 471var htmlAttributes = new Dictionary<string, object>
Infrastructure\DefaultTempDataSerializerTest.cs (3)
20var input = new Dictionary<string, object> 40var value = new Dictionary<string, int> 45var input = new Dictionary<string, object>
Infrastructure\TempDataSerializerTestBase.cs (21)
30var input = new Dictionary<string, object> 54var input = new Dictionary<string, object> 76var input = new Dictionary<string, object> 97var input = new Dictionary<string, object> 118var input = new Dictionary<string, object> 139var input = new Dictionary<string, object> 160var input = new Dictionary<string, object> 182var input = new Dictionary<string, object> 204var input = new Dictionary<string, object> 226var input = new Dictionary<string, object> 247var input = new Dictionary<string, object> 268var input = new Dictionary<string, object> 289var input = new Dictionary<string, object> 309var value = new Dictionary<string, string> 314var input = new Dictionary<string, object> 324var roundTripValue = Assert.IsType<Dictionary<string, string>>(values[key]); 334var value = new Dictionary<string, int> 339var input = new Dictionary<string, object> 349var roundTripValue = Assert.IsType<Dictionary<string, int>>(values[key]);
Rendering\HtmlHelperCheckboxTest.cs (5)
113var attributes = new Dictionary<string, object> 502var dictionary = new Dictionary<string, object> { { "Property3", "Property3Value" } }; 528var attributes = new Dictionary<string, object> 707var attributes = new Dictionary<string, object> 732var attributes = new Dictionary<string, object> { { "Property3", "PropValue" } };
Rendering\HtmlHelperHiddenTest.cs (13)
24var htmlAttributes1 = new Dictionary<string, object> 184var attributes = new Dictionary<string, object> { { "data-key", "value" } }; 310var attributes = new Dictionary<string, object> { { "baz", "BazValue" } }; 425var attributes = new Dictionary<string, object> 447var attributes = new Dictionary<string, object> 467var attributes = new Dictionary<string, object> 534var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 573var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 665var attributes = new Dictionary<string, object> { { "key", "value" } }; 731var attributes = new Dictionary<string, object> 809var attributes = new Dictionary<string, object> 876var attributes = new Dictionary<string, object> 986public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperPasswordTest.cs (4)
185var attributes = new Dictionary<string, object> 242var attributes = new Dictionary<string, object> { { "data-test", "val" } }; 293var attributes = new Dictionary<string, object> 533public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperTextAreaTest.cs (1)
148public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperTextBoxTest.cs (1)
166public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Rendering\HtmlHelperValidationSummaryTest.cs (1)
19var dictionary = new Dictionary<string, object>
SessionStateTempDataProviderTest.cs (1)
101private readonly Dictionary<string, byte[]> _innerDictionary = new Dictionary<string, byte[]>();
TempDataDictionaryTest.cs (1)
147var data = new Dictionary<string, object>();
ViewComponents\DefaultViewComponentHelperTest.cs (2)
26Assert.IsType<Dictionary<string, object>>(argumentDictionary); 122var arguments = new Dictionary<string, object>
ViewComponentTests.cs (1)
268private readonly Dictionary<string, byte[]> _innerDictionary = new Dictionary<string, byte[]>();
ViewDataDictionaryTest.cs (2)
229{ typeof(Dictionary<string, object>), new Dictionary<string, object>() }, 701var value = new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.Views.TestCommon (3)
TestFileProvider.cs (3)
10private readonly Dictionary<string, IFileInfo> _lookup = 12private readonly Dictionary<string, IDirectoryContents> _directoryContentsLookup = 15private readonly Dictionary<string, TestFileChangeToken> _fileTriggers =
Microsoft.AspNetCore.OpenApi (18)
Comparers\ComparerHelpers.cs (4)
12if (x is Dictionary<TKey, TValue> xDictionary && y is Dictionary<TKey, TValue> yDictionary) 34private static bool DictionaryEquals<TKey, TValue>(Dictionary<TKey, TValue> x, Dictionary<TKey, TValue> y, IEqualityComparer<TValue> comparer)
Extensions\JsonNodeSchemaExtensions.cs (1)
28private static readonly Dictionary<Type, OpenApiSchema> _simpleTypeToOpenApiSchema = new()
Extensions\JsonTypeInfoExtensions.cs (1)
14private static readonly Dictionary<Type, string> _simpleTypeToName = new()
Schemas\OpenApiJsonSchema.Helpers.cs (4)
55public static Dictionary<string, T>? ReadDictionary<T>(ref Utf8JsonReader reader) 67var values = new Dictionary<string, T>(); 278var props = ReadDictionary<OpenApiJsonSchema>(ref reader); 307var mappings = ReadDictionary<string>(ref reader);
Services\OpenApiDocumentService.cs (2)
234private async Task<Dictionary<OperationType, OpenApiOperation>> GetOperationsAsync( 242var operations = new Dictionary<OperationType, OpenApiOperation>();
Services\OpenApiGenerator.cs (4)
118var eligibileAnnotations = new Dictionary<int, (Type?, MediaTypeCollection)>(); 201var responseContent = new Dictionary<string, OpenApiMediaType>(); 239private static void GenerateDefaultResponses(Dictionary<int, (Type?, MediaTypeCollection)> eligibleAnnotations, Type responseType) 273var requestBodyContent = new Dictionary<string, OpenApiMediaType>();
src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.OpenApi.Tests (4)
Extensions\JsonTypeInfoExtensionsTests.cs (3)
58[typeof(Dictionary<string, string[]>), null], 59[typeof(Dictionary<string, List<string[]>>), null], 60[typeof(Dictionary<string, IEnumerable<string[]>>), null],
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
127builder.MapPost("/api-2", (Dictionary<string, Todo> todo) => { });
Microsoft.AspNetCore.OutputCaching (5)
CacheVaryByRules.cs (1)
14private Dictionary<string, string>? _varyByValues;
Memory\MemoryOutputCacheStore.cs (2)
12private readonly Dictionary<string, HashSet<string>> _taggedEntries = new(); 23internal Dictionary<string, HashSet<string>> TaggedEntries => _taggedEntries;
OutputCacheOptions.cs (1)
39internal Dictionary<string, IOutputCachePolicy>? NamedPolicies { get; set; }
Policies\NamedPolicy.cs (1)
76var policies = _options!.Value.NamedPolicies;
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
328private readonly Dictionary<string, byte[]?> _storage = new();
Microsoft.AspNetCore.Owin.Tests (2)
OwinFeatureCollectionTests.cs (2)
25var env = new Dictionary<string, object> 44var env = new Dictionary<string, object>
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\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.Runtime.Test (7)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (3)
149var items = new Dictionary<object, object>(); 167var updatedItems = new Dictionary<object, object>(); 209var expectedItems = new Dictionary<object, object>
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (2)
49var parentComplexObject = new Dictionary<string, int>(StringComparer.Ordinal); 55((Dictionary<string, int>)executionContext.Items["test-entry"]).Add("from-child", 1234);
Runtime\TagHelpers\TestTagHelpers\TagHelperDescriptorFactoryTagHelpers.cs (2)
343public Dictionary<string, object> DictionaryProperty { get; set; } 378public Dictionary<int, string> DictionaryOfIntProperty { get; set; }
Microsoft.AspNetCore.Razor.Test (4)
TagHelpers\TagHelperContextTest.cs (4)
15var initialItems = new Dictionary<object, object> 19var expectedItems = new Dictionary<object, object> 47var expectedItems = new Dictionary<object, object> 72var expectedItems = new Dictionary<object, object>
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
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.Rewrite.Tests (6)
ApacheModRewrite\FlagParserTest.cs (3)
14var dict = new Dictionary<FlagType, string>(); 25var dict = new Dictionary<FlagType, string>(); 38var dict = new Dictionary<FlagType, string>();
IISUrlRewrite\InputParserTests.cs (1)
89var variablesDict = new Dictionary<string, string>()
IISUrlRewrite\TestServerVariablesFeature.cs (2)
10private readonly Dictionary<string, string> _variables; 12public TestServerVariablesFeature(Dictionary<string, string> variables)
Microsoft.AspNetCore.Routing (34)
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)
198var 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)
233var 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; }
Microsoft.AspNetCore.Routing.FunctionalTests (3)
MinimalFormTests.cs (3)
515b.MapPost("/todo", ([FromForm] Dictionary<string, string> todo) => todo) 566g.MapPost("/1", ([FromForm] Dictionary<string, string> todo) => todo) 618g.MapPost("/1", ([FromForm] Dictionary<string, string> todo) => todo)
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Matching\HttpMethodPolicyJumpTableBenchmark.cs (2)
14private Dictionary<string, int> _destinations = new(); 31private static HttpMethodDestinationsLookup CreateLookup(Dictionary<string, int> extra)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Routing.Tests (15)
ConstraintMatcherTest.cs (9)
23var constraints = new Dictionary<string, IRouteConstraint> 50var constraints = new Dictionary<string, IRouteConstraint> 69var constraints = new Dictionary<string, IRouteConstraint> 84var constraints = new Dictionary<string, IRouteConstraint> 104var constraints = new Dictionary<string, IRouteConstraint> 124var constraints = new Dictionary<string, IRouteConstraint> 144var constraints = new Dictionary<string, IRouteConstraint> 164var constraints = new Dictionary<string, IRouteConstraint> 193private TestSink SetUpMatch(Dictionary<string, IRouteConstraint> constraints, bool loggerEnabled)
DecisionTreeBuilderTest.cs (1)
201public Dictionary<string, DecisionCriterionValue> Criteria { get; private set; }
RouteTest.cs (1)
308var constraints = new Dictionary<string, object>();
Template\TemplateBinderTests.cs (1)
1463public Dictionary<string, string> Parameters { get; private set; }
Tree\TreeRouterTest.cs (3)
803var values = new Dictionary<string, object> 860var values = new Dictionary<string, object> 892var values = new Dictionary<string, object>
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Server.HttpSys (3)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
752var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
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.HttpSys.FunctionalTests (4)
RequestHeaderTests.cs (2)
199var headerDictionary = new Dictionary<string, string> 224var headerDictionary = new Dictionary<string, string>
src\Shared\Http2cat\Http2Utilities.cs (2)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 231internal Dictionary<string, string> DecodeHeaders(Http2FrameWithPayload frame, bool endHeaders = false)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
752var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
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 (25)
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)
240private 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)
148internal 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,
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
11private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (42)
CertificatePathWatcherTests.cs (3)
476var dict = new Dictionary<string, object>(pairs); 521private readonly Dictionary<string, ConfigurationReloadToken> _changeTokens = new(); 522private readonly Dictionary<string, DateTimeOffset?> _lastModifiedTimes = new();
ConnectionDispatcherTests.cs (1)
45var pairs = scopeObjects[0].ToDictionary(p => p.Key, p => p.Value);
Http2\Http2HPackEncoderTests.cs (1)
662var groupedHeaders = headers
HttpParserTests.cs (1)
885public Dictionary<string, string> Headers { get; } = new Dictionary<string, string>();
SniOptionsSelectorTests.cs (30)
27var sniDictionary = new Dictionary<string, SniConfig> 62var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary; 94var sniDictionary = new Dictionary<string, SniConfig> 119var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary; 140var sniDictionary = new Dictionary<string, SniConfig> 165var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary; 188var sniDictionary = new Dictionary<string, SniConfig> 213var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary; 214var fullChainDictionary = mockCertificateConfigLoader.CertToFullChain; 252var sniDictionary = new Dictionary<string, SniConfig> 277var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary; 297var sniDictionary = new Dictionary<string, SniConfig> 322var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary; 355var sniDictionary = new Dictionary<string, SniConfig> 370var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary; 387var sniDictionary = new Dictionary<string, SniConfig> 414var sniDictionary = new Dictionary<string, SniConfig> 455var sniDictionary = new Dictionary<string, SniConfig> 508var sniDictionary = new Dictionary<string, SniConfig> 528var sniDictionary = new Dictionary<string, SniConfig> 552var sniDictionary = new Dictionary<string, SniConfig> 580var sniDictionary = new Dictionary<string, SniConfig> 611var sniDictionary = new Dictionary<string, SniConfig> 644var sniDictionary = new Dictionary<string, SniConfig> 674var sniDictionary = new Dictionary<string, SniConfig> 708var sniDictionary = new Dictionary<string, SniConfig> 737var sniDictionary = new Dictionary<string, SniConfig> 773var sniDictionary = new Dictionary<string, SniConfig> 915public Dictionary<object, string> CertToPathDictionary { get; } = new Dictionary<object, string>(ReferenceEqualityComparer.Instance); 916public Dictionary<object, X509Certificate2Collection> CertToFullChain { get; } = new Dictionary<object, X509Certificate2Collection>(ReferenceEqualityComparer.Instance);
src\Servers\Kestrel\shared\test\RevocationResponder.cs (2)
19private readonly Dictionary<string, CertificateAuthority> _aiaPaths = 22private readonly Dictionary<string, CertificateAuthority> _crlPaths
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (2)
962public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 963public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (2)
369public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 370public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (9)
InMemoryTransportBenchmark.cs (1)
108private readonly Dictionary<EndPoint, IReadOnlyList<InMemoryConnection>> _connections =
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (7)
96internal Dictionary<string, object> ConnectionTags => MultiplexedConnectionContext.Tags.ToDictionary(t => t.Key, t => t.Value); 659public readonly Dictionary<string, string> DecodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 713var dictionary = headers 735internal async ValueTask<Dictionary<string, string>> ExpectHeadersAsync(bool expectEnd = false) 752internal async ValueTask<Dictionary<string, string>> ExpectTrailersAsync() 837internal async ValueTask<Dictionary<long, long>> ExpectSettingsAsync() 844var settings = new Dictionary<long, long>();
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
11private readonly Dictionary<EncodedKey, byte[]> _store = new Dictionary<EncodedKey, byte[]>();
Microsoft.AspNetCore.Shared.Tests (33)
CopyOnWriteDictionaryHolderTest.cs (3)
17var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 43var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 68var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
CopyOnWriteDictionaryTest.cs (2)
63var sourceDictionary = new Dictionary<string, object> 87var sourceDictionary = new Dictionary<string, object>
runtime\Http2\HPackDecoderTest.cs (2)
962public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 963public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
runtime\Http3\QPackDecoderTest.cs (2)
369public Dictionary<string, string> DecodedHeaders { get; } = new Dictionary<string, string>(); 370public Dictionary<int, KeyValuePair<string, string>> DecodedStaticHeaders { get; } = new Dictionary<int, KeyValuePair<string, string>>();
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\Shared\Dictionary\AdaptiveCapacityDictionary.cs (3)
27internal Dictionary<TKey, TValue>? _dictionaryStorage; 91internal AdaptiveCapacityDictionary(Dictionary<TKey, TValue> dict) 604private Dictionary<TKey, TValue>.Enumerator? _dictionaryEnumerator;
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
752var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
src\Shared\runtime\Http3\QPack\H3StaticTable.Http3.cs (1)
11private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
src\Shared\TypeNameHelper\TypeNameHelper.cs (1)
17private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
TypeNameHelperTest.cs (9)
16[InlineData(typeof(Dictionary<int, string>), "System.Collections.Generic.Dictionary<int, string>")] 17[InlineData(typeof(Dictionary<int, List<string>>), "System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<string>>")] 64[InlineData(typeof(Dictionary<int, string>), "Dictionary<int, string>")] 65[InlineData(typeof(Dictionary<int, List<string>>), "Dictionary<int, List<string>>")] 122var openDictionaryType = typeof(Dictionary<,>); 140{ typeof(Dictionary<,>), false , "Dictionary<,>" }, 142{ typeof(Dictionary<,>), true , "System.Collections.Generic.Dictionary<,>" }, 228{ typeof(Dictionary<int, string>), "System.Collections.Generic.Dictionary" }, 229{ typeof(Dictionary<int, List<string>>), "System.Collections.Generic.Dictionary" },
Microsoft.AspNetCore.SignalR.Client.Core (10)
HubConnection.cs (10)
728var readers = default(Dictionary<string, object>); 761private Dictionary<string, object>? PackageStreamingParams(ConnectionState connectionState, ref object?[] args, out List<string>? streamIds) 763Dictionary<string, object>? readers = null; 818private void LaunchStreams(ConnectionState connectionState, Dictionary<string, object>? readers, CancellationToken cancellationToken) 1075var readers = default(Dictionary<string, object>); 1225var readers = default(Dictionary<string, object>); 2120private readonly Dictionary<string, InvocationRequest> _pendingCalls = new Dictionary<string, InvocationRequest>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (14)
HubConnectionTests.cs (1)
3035public static Dictionary<string, IHubProtocol> HubProtocols =>
HubConnectionTests.Tracing.cs (13)
160var baggage = a.Baggage.ToDictionary(); 172var baggage = a.Baggage.ToDictionary(); 193var baggage = clientActivity1.Baggage.ToDictionary(); 196var tags = clientActivity1.TagObjects.ToDictionary(); 333var baggage = a.Baggage.ToDictionary(); 354var baggage = clientActivity.Baggage.ToDictionary(); 357var tags = clientActivity.TagObjects.ToDictionary(); 449var tags = clientActivity.TagObjects.ToDictionary(); 458var tags = clientActivity.TagObjects.ToDictionary(); 546var tags = clientActivity.TagObjects.ToDictionary(); 555var tags = clientActivity.TagObjects.ToDictionary(); 641var tags = clientActivity.TagObjects.ToDictionary(); 651var tags = clientActivity.TagObjects.ToDictionary();
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.Client.Tests (1)
HttpConnectionFactoryTests.cs (1)
84var testValues = new Dictionary<string, object>
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.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
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.SignalR.StackExchangeRedis.Tests (5)
DefaultHubMessageSerializerTests.cs (1)
67private static readonly Dictionary<string, ProtocolTestData> _invocationTestData = new[]
RedisProtocolTests.cs (4)
22private static readonly Dictionary<string, ProtocolTestData<int>> _ackTestData = new[] 57private static readonly Dictionary<string, ProtocolTestData<RedisGroupCommand>> _groupCommandTestData = new[] 97private static readonly Dictionary<string, ProtocolTestData<Func<RedisInvocation>>> _invocationTestData = new[] 203private static readonly Dictionary<string, ProtocolTestData<RedisCompletion>> _completionMessageTestData = new[]
Microsoft.AspNetCore.SignalR.Tests (5)
HubConnectionHandlerTests.Activity.cs (2)
132var headers = new Dictionary<string, string> 262var headers = new Dictionary<string, string>
HubConnectionHandlerTests.cs (2)
2469var result = message.Arguments[0] as Dictionary<object, object>;
UserAgentHeaderTest.cs (1)
22public static Dictionary<string, UserAgentTestData> UserAgents => new[]
Microsoft.AspNetCore.SpaServices.Extensions (1)
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
73var envVars = new Dictionary<string, string>
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
150private readonly Dictionary<string, IFileInfo> _files = new Dictionary<string, IFileInfo>(StringComparer.Ordinal);
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnExpectations.cs (1)
11private readonly Dictionary<string, Expectation> _expectations = new Dictionary<string, Expectation>();
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
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)
98var headers = await ReadHeadersAsync(cancellationToken); 105private async Task<Dictionary<string, StringValues>> ReadHeadersAsync(CancellationToken cancellationToken)
MultipartSection.cs (1)
47public Dictionary<string, StringValues>? Headers { get; set; }
QueryHelpers.cs (3)
121public static Dictionary<string, StringValues> ParseQuery(string? queryString) 123var result = ParseNullableQuery(queryString); 138public static Dictionary<string, StringValues>? ParseNullableQuery(string? queryString)
ReasonPhrases.cs (1)
13private static readonly Dictionary<int, string> Phrases = new()
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.AspNetCore.WebUtilities.Tests (45)
FormPipeReaderTests.cs (22)
19var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe)); 29var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe)); 40var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe)); 50var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe)); 60var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe)); 71var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe)); 94var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe) { ValueCountLimit = 3 }); 137var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe) { KeyLengthLimit = 10 }); 165var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe) { ValueLengthLimit = 10 }); 249var form = await ReadFormAsync(new FormPipeReader(bodyPipe)); 267var dict = accumulator.GetResults(); 285var dict = accumulator.GetResults(); 307var dict = accumulator.GetResults(); 326var dict = accumulator.GetResults(); 348var dict = accumulator.GetResults(); 367var dict = accumulator.GetResults(); 385var dict = accumulator.GetResults(); 404var dict = accumulator.GetResults(); 423var dict = accumulator.GetResults(); 440var dict = accumulator.GetResults(); 594var formCollection = await ReadFormAsync(new FormPipeReader(bodyPipe)); 622internal virtual Task<Dictionary<string, StringValues>> ReadFormAsync(FormPipeReader reader)
FormReaderAsyncTest.cs (1)
10protected override async Task<Dictionary<string, StringValues>> ReadFormAsync(FormReader reader)
FormReaderTests.cs (9)
18var formCollection = await ReadFormAsync(new FormReader(body)); 30var formCollection = await ReadFormAsync(new FormReader(body)); 43var formCollection = await ReadFormAsync(new FormReader(body)); 55var formCollection = await ReadFormAsync(new FormReader(body)); 68var formCollection = await ReadFormAsync(new FormReader(body) { ValueCountLimit = 3 }); 107var formCollection = await ReadFormAsync(new FormReader(body) { KeyLengthLimit = 10 }); 134var formCollection = await ReadFormAsync(new FormReader(body) { ValueLengthLimit = 10 }); 200var form = await ReadFormAsync(new FormReader(body)); 205protected virtual Task<Dictionary<string, StringValues>> ReadFormAsync(FormReader reader)
QueryHelpersTests.cs (13)
13var collection = QueryHelpers.ParseQuery("?key1=value1&key2=value2"); 22var collection = QueryHelpers.ParseQuery("key1=value1&key2=value2"); 31var collection = QueryHelpers.ParseQuery("?key1=valueA&key2=valueB&key1=valueC"); 40var collection = QueryHelpers.ParseQuery("?key1=&key2="); 49var collection = QueryHelpers.ParseQuery("?=value1&="); 57var collection = QueryHelpers.ParseQuery("?fields+%5BtodoItems%5D"); 65var collection = QueryHelpers.ParseQuery("?=fields+%5BtodoItems%5D"); 73var collection = QueryHelpers.ParseQuery("?fields+%5BtodoItems%5D="); 81var collection = QueryHelpers.ParseQuery("?fields+%5BtodoItems%5D=%5B+1+%5D"); 89var collection = QueryHelpers.ParseQuery("?fields+%5BtodoItems%5D=%5B+1+%5D&fields+%5BtodoItems%5D=%5B+2+%5D"); 100var collection = QueryHelpers.ParseQuery(queryString); 158var queryStrings = new Dictionary<string, string?>() 191var queryStrings = new Dictionary<string, StringValues>()
Microsoft.Build (419)
BackEnd\BuildManager\BuildManager.cs (8)
131private readonly Dictionary<int, HashSet<int>> _nodeIdToKnownConfigurations; 164private readonly Dictionary<int, BuildSubmissionBase> _buildSubmissions; 189private readonly Dictionary<ProjectInstance, string> _unnamedProjectInstanceToNames; 204private readonly Dictionary<int, BuildEventArgs> _projectStartedEvents; 1935Dictionary<ProjectGraphNode, BuildResult>? resultsPerNode = null; 1983private Dictionary<ProjectGraphNode, BuildResult> BuildGraph( 1993var buildingNodes = new Dictionary<BuildSubmissionBase, ProjectGraphNode>(); 1994var resultsPerNode = new Dictionary<ProjectGraphNode, BuildResult>(projectGraph.ProjectNodes.Count);
BackEnd\BuildManager\BuildParameters.cs (1)
132private Dictionary<string, string> _buildProcessEnvironment;
BackEnd\BuildManager\CacheAggregator.cs (1)
69var configIdMapping = new Dictionary<int, int>();
BackEnd\Client\MSBuildClient.cs (2)
34private readonly Dictionary<string, string> _serverEnvironmentVariables; 503Dictionary<string, string> envVars = new();
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
23private readonly Dictionary<BuildComponentType, BuildComponentEntry> _componentEntriesByType;
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
71private readonly Dictionary<int, BuildRequestEntry> _requestsByGlobalRequestId;
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (3)
80private Dictionary<int, List<BuildRequest>> _unresolvedConfigurations; 96private Dictionary<int, BuildRequest> _outstandingRequests; 101private Dictionary<int, BuildResult> _outstandingResults;
BackEnd\Components\Caching\ConfigCache.cs (2)
227Dictionary<int, BuildRequestConfiguration> configurationsToKeep = new Dictionary<int, BuildRequestConfiguration>(); 228Dictionary<ConfigurationMetadata, int> configurationIdsByMetadataToKeep = new Dictionary<ConfigurationMetadata, int>();
BackEnd\Components\Communications\DetouredNodeLauncher.cs (1)
147var envVars = new Dictionary<string, string>();
BackEnd\Components\Communications\NodeManager.cs (1)
37private readonly Dictionary<int, INodeProvider> _nodeIdToProvider;
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
88private Dictionary<HandshakeOptions, NodeContext> _nodeContexts;
BackEnd\Components\Logging\LoggingService.cs (1)
124private Dictionary<int, IBuildEventSink> _eventSinkDictionary;
BackEnd\Components\ProjectCache\ProjectCacheService.cs (5)
183var pluginSettings = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 329Dictionary<string, string> globalProperties = new(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 625var globalProperties = new Dictionary<string, string>(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 659Dictionary<string, string> templateGlobalProperties) 692var globalProperties = new Dictionary<string, string>(templateGlobalProperties, StringComparer.OrdinalIgnoreCase)
BackEnd\Components\ProjectCache\ProxyTargets.cs (1)
23private Dictionary<string, string> _proxyTargetToRealTargetMap = null!;
BackEnd\Components\RequestBuilder\BatchingEngine.cs (11)
128Dictionary<string, MetadataReference> consumedMetadataReferences = pair.Metadata; 147Dictionary<string, ICollection<ProjectItemInstance>> itemListsToBeBatched = GetItemListsToBeBatched(consumedMetadataReferences, consumedItemReferences, lookup, elementLocation); 206private static Dictionary<string, ICollection<ProjectItemInstance>> GetItemListsToBeBatched( 207Dictionary<string, MetadataReference> consumedMetadataReferences, // Key is [string] potentially qualified metadata name 215var itemListsToBeBatched = new Dictionary<string, ICollection<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default); 302Dictionary<string, ICollection<ProjectItemInstance>> itemListsToBeBatched, 303Dictionary<string, MetadataReference> consumedMetadataReferences, 325Dictionary<string, string> itemMetadataValues = GetItemMetadataValues(item, consumedMetadataReferences, elementLocation); 387private static Dictionary<string, string> GetItemMetadataValues( 389Dictionary<string, MetadataReference> consumedMetadataReferences, 392var itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (2)
636private Dictionary<string, string> _addTable; 672internal Dictionary<string, string> AddedMetadata
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (7)
249if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable)) 408private async Task<bool> BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects) 522Dictionary<string, string> propertiesTable, 542var projectProperties = new Dictionary<string, string>[projects.Length]; 567out Dictionary<string, string> preProjectPropertiesTable)) 611out Dictionary<string, string> additionalProjectPropertiesTable)) 616var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\ItemBucket.cs (4)
36private readonly Dictionary<string, string> _metadata; 64private ItemBucket(Dictionary<string, string> metadata) 79Dictionary<string, string> metadata, 144internal static ItemBucket GetDummyBucketForComparisons(Dictionary<string, string> metadata)
BackEnd\Components\RequestBuilder\Lookup.cs (21)
18using ItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>; 19using ItemTypeToItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>>; 82private Dictionary<ProjectItemInstance, ProjectItemInstance> _cloneTable; 141private ItemTypeToItemsMetadataUpdateDictionary PrimaryModifyTable 171private ItemTypeToItemsMetadataUpdateDictionary SecondaryModifyTable 199internal List<string> GetPropertyOverrideMessages(Dictionary<string, string> lookupHash) 339foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable) 341Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType; 394foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable) 472Dictionary<ProjectItemInstance, MetadataModifications> allModifies = null; 502Dictionary<ProjectItemInstance, MetadataModifications> modifies; 760Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType; 789private void ApplyModifies(ItemDictionary<ProjectItemInstance> result, Dictionary<ProjectItemInstance, MetadataModifications> allModifies) 873private void ApplyModificationsToTable(IItemDictionary<ProjectItemInstance> table, string itemType, ItemsMetadataUpdateDictionary modify) 896private void MergeModificationsIntoModificationTable(Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType, 949private void MustNotBeInTable(ItemTypeToItemsMetadataUpdateDictionary table, ProjectItemInstance item) 951ItemsMetadataUpdateDictionary tableOfItemsOfSameType = null; 1018private Dictionary<string, MetadataModification> _modifications; 1314private ItemTypeToItemsMetadataUpdateDictionary _modifies; 1391internal ItemTypeToItemsMetadataUpdateDictionary Modifies
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (34)
23using ItemVectorPartition = System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Build.Execution.ProjectItemInstance>>; 31using ItemVectorPartitionCollection = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Build.Execution.ProjectItemInstance>>>; 158out ItemVectorPartitionCollection itemVectorsInTargetInputs, 159out ItemVectorPartitionCollection itemVectorTransformsInTargetInputs, 160out Dictionary<string, string> discreteItemsInTargetInputs, 161out ItemVectorPartitionCollection itemVectorsInTargetOutputs, 162out Dictionary<string, string> discreteItemsInTargetOutputs, 403out ItemVectorPartitionCollection itemVectorsInTargetInputs, 404out ItemVectorPartitionCollection itemVectorTransformsInTargetInputs, 405out Dictionary<string, string> discreteItemsInTargetInputs, 406out ItemVectorPartitionCollection itemVectorsInTargetOutputs, 407out Dictionary<string, string> discreteItemsInTargetOutputs, 516ItemVectorPartitionCollection itemVectorsInTargetInputs, 517ItemVectorPartitionCollection itemVectorTransformsInTargetInputs, 518Dictionary<string, string> discreteItemsInTargetInputs, 589ItemVectorPartitionCollection itemVectorsInTargetInputs, 590ItemVectorPartitionCollection itemVectorsInTargetOutputs, 605ItemVectorPartition inputItemVectors = itemVectorsInTargetInputs[itemVectorType]; 606ItemVectorPartition outputItemVectors = itemVectorsInTargetOutputs[itemVectorType]; 738ItemVectorPartitionCollection itemVectorsInTargetInputs, 739ItemVectorPartitionCollection itemVectorTransformsInTargetInputs, 740Dictionary<string, string> discreteItemsInTargetInputs, 796out ItemVectorPartitionCollection itemVectors, 797ItemVectorPartitionCollection itemVectorTransforms, 798out Dictionary<string, string> discreteItems, 829ItemVectorPartitionCollection itemVectorCollection; 847ItemVectorPartition itemVectorPartition = itemVectorCollection[itemVectorType]; 864private static bool IsItemVectorEmpty(ItemVectorPartitionCollection itemVectors) 866foreach (KeyValuePair<string, ItemVectorPartition> item in itemVectors) 882private static List<string> GetItemSpecsFromItemVectors(ItemVectorPartitionCollection itemVectors) 886foreach (KeyValuePair<string, ItemVectorPartition> item in itemVectors) 901private static IEnumerable<string> GetItemSpecsFromItemVectors(ItemVectorPartitionCollection itemVectors, string itemType, ItemVectorPartition itemVectorPartition)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
318Dictionary<string, string> lookupHash = null; 369private async Task<WorkUnitResult> ExecuteBucket(TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Dictionary<string, string> lookupHash)
BackEnd\Components\Scheduler\SchedulableRequest.cs (2)
97private Dictionary<BlockingRequestKey, SchedulableRequest> _requestsWeAreBlockedBy; 122private Dictionary<SchedulableRequestState, ScheduleTimeRecord> _timeRecords;
BackEnd\Components\Scheduler\Scheduler.cs (3)
92private Dictionary<int, NodeInfo> _availableNodes; 1291Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 2307Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count);
BackEnd\Components\Scheduler\SchedulingData.cs (12)
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); 64private readonly Dictionary<int, SchedulableRequest> _executingRequestByNode = new Dictionary<int, SchedulableRequest>(32); 69private readonly Dictionary<int, HashSet<SchedulableRequest>> _readyRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32); 74private readonly Dictionary<int, HashSet<int>> _configurationsByNode = new Dictionary<int, HashSet<int>>(32); 82private readonly Dictionary<int, int> _configurationToNode = new Dictionary<int, int>(32); 87private readonly Dictionary<int, HashSet<SchedulableRequest>> _configurationToRequests = new Dictionary<int, HashSet<SchedulableRequest>>(32); 105private 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>(); 461private void RecursiveAccumulateConfigurationTimes(SchedulableRequest request, Dictionary<int, double> accumulatedTimeByConfiguration)
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
46private Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>> _manifestToResolvers;
BackEnd\Components\SdkResolution\TranslationHelpers.cs (1)
40Dictionary<string, string> metadata = null;
BackEnd\Node\ServerNodeBuildCommand.cs (3)
23private Dictionary<string, string> _buildProcessEnvironment = default!; 51public Dictionary<string, string> BuildProcessEnvironment => _buildProcessEnvironment; 88Dictionary<string, string> buildProcessEnvironment,
BackEnd\Shared\BuildRequestConfiguration.cs (5)
124private Dictionary<string, int> _activelyBuildingTargets; 134private Dictionary<string, string> _savedEnvironmentVariables; 454Dictionary<string, string> globalProperties = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 604public Dictionary<string, int> ActivelyBuildingTargets => _activelyBuildingTargets ?? (_activelyBuildingTargets = 610public Dictionary<string, string> SavedEnvironmentVariables
BackEnd\Shared\BuildResult.cs (3)
109private Dictionary<string, string>? _savedEnvironmentVariables; 439Dictionary<string, string>? IBuildResults.SavedEnvironmentVariables 647Dictionary<string, string> additionalEntries = new();
BackEnd\Shared\IBuildResults.cs (1)
35Dictionary<string, string> SavedEnvironmentVariables { get; set; }
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
157private readonly Dictionary<string, TaskFactoryWrapper> _intrinsicTasks = new Dictionary<string, TaskFactoryWrapper>(StringComparer.OrdinalIgnoreCase); 361var setParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
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)
50private readonly Dictionary<string, (string projectFilePath, string taskName)> _filesWritten = new(StringComparer.CurrentCultureIgnoreCase);
BuildCheck\Checks\PropertiesUsageCheck.cs (3)
123private Dictionary<string, IMSBuildElementLocation?> _writenProperties = new(MSBuildNameIgnoreCaseComparer.Default); 128private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsInScope = new(MSBuildNameIgnoreCaseComparer.Default); 129private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsOutOfScope = new(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
40private readonly Dictionary<string, string> _projectsPerOutputPath = new(StringComparer.CurrentCultureIgnoreCase);
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (6)
22private Dictionary<Type, Action<BuildEventArgs>> _eventHandlers; 23private readonly Dictionary<Type, Action<BuildEventArgs>> _eventHandlersFull; 24private readonly Dictionary<Type, Action<BuildEventArgs>> _eventHandlersRestore; 159Dictionary<string, TimeSpan> infraStats = _tracingData.InfrastructureTracingData; 162Dictionary<string, TimeSpan> checkStats = _tracingData.ExtractCheckStats(); 177private string BuildCsvString(string title, Dictionary<string, TimeSpan> rowData)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
360Dictionary<string, string>? propertiesLookup = null; 550private readonly Dictionary<int, List<BuildEventArgs>> _deferredEvalDiagnostics = new();
BuildCheck\Infrastructure\BuildEventsProcessor.cs (6)
26public Dictionary<string, TaskInvocationCheckData.TaskParameter> TaskParameters; 45private readonly Dictionary<TaskKey, ExecutingTaskData> _tasksBeingExecuted = []; 47internal static Dictionary<string, string> ExtractPropertiesLookup(ProjectEvaluationFinishedEventArgs evaluationFinishedEventArgs) 49Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(); 60Dictionary<string, string>? propertiesLookup) 129Dictionary<string, TaskInvocationCheckData.TaskParameter> taskParameters = new();
BuildCheck\Infrastructure\ConfigurationProvider.cs (13)
29private readonly ConcurrentDictionary<string, Dictionary<string, string>> _editorConfigData = new ConcurrentDictionary<string, Dictionary<string, string>>(StringComparer.InvariantCultureIgnoreCase); 53var configuration = GetConfiguration(projectFullPath, ruleId); 163private Dictionary<string, string> FilterDictionaryByKeys(string keyFilter, Dictionary<string, string> originalConfiguration, bool updateKey = false) 165var filteredConfig = new Dictionary<string, string>(); 191private Dictionary<string, string> FetchEditorConfigRules(string projectFullPath) 193var editorConfigRules = _editorConfigData.GetOrAdd(projectFullPath, (key) => 195Dictionary<string, string> config; 207Dictionary<string, string> filteredData = FilterDictionaryByKeys($"{BuildCheck_ConfigurationKey}.", config); 214internal Dictionary<string, string> GetConfiguration(string projectFullPath, string ruleId) 216var config = FetchEditorConfigRules(projectFullPath); 238var config = GetConfiguration(projectFullPath, ruleId);
BuildCheck\Infrastructure\CustomConfigurationData.cs (1)
29public CustomConfigurationData(string ruleId, Dictionary<string, string> properties)
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (3)
27internal Dictionary<string, string> Parse(string filePath) 78internal Dictionary<string, string> MergeEditorConfigFiles(List<EditorConfigFile> editorConfigFiles, string filePath) 80var resultingDictionary = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
BuildCheck\Infrastructure\TracingReporter.cs (1)
35public Dictionary<string, TimeSpan> GetInfrastructureTracingStats()
CollectionHelpers.cs (1)
41internal static bool ContainsValueAndIsEqual(this Dictionary<string, string> dictionary, string key, string value, StringComparison comparer)
Collections\HashTableUtility.cs (2)
26internal static int Compare(Dictionary<string, string> h1, Dictionary<string, string> h2)
Collections\ItemDictionary.cs (2)
41private readonly Dictionary<string, LinkedList<T>> _itemLists; 48private readonly Dictionary<T, LinkedListNode<T>> _nodes;
Collections\LookasideStringInterner.cs (1)
37private readonly Dictionary<string, int> _stringToIdsMap;
Collections\MultiDictionary.cs (1)
56private Dictionary<K, SmallList<V>> _backing;
Collections\PropertyDictionary.cs (2)
517internal Dictionary<string, string> ToDictionary() 521var 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)
26private readonly Dictionary<K, WeakReference<V>> _dictionary;
CommunicationsUtilities.cs (3)
285internal static Dictionary<string, string> GetEnvironmentVariables() 294Dictionary<string, string> table = new Dictionary<string, string>(200, StringComparer.OrdinalIgnoreCase); // Razzle has 150 environment variables 420Dictionary<string, string> currentEnvironment = GetEnvironmentVariables();
Construction\ProjectTaskElement.cs (1)
149var parametersClone = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Construction\Solution\ProjectInSolution.cs (1)
112private readonly Dictionary<string, ProjectConfigurationInSolution> _projectConfigurations;
Construction\Solution\SolutionFile.cs (8)
101private Dictionary<string, ProjectInSolution> _projectsByGuid; 104private Dictionary<string, ProjectInSolution> _solutionFoldersByGuid; 110private Dictionary<string, SolutionConfigurationInSolution> _solutionConfigurationsByFullName; 751Dictionary<string, string> rawProjectConfigurationsEntries = null; 801var projectsByUniqueName = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 1706internal Dictionary<string, string> ParseProjectConfigurations() 1708var rawProjectConfigurationsEntries = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1742internal void ProcessProjectConfigurationSection(Dictionary<string, string> rawProjectConfigurationsEntries)
Construction\Solution\SolutionProjectGenerator.cs (1)
2063var properties = new Dictionary<string, string>(_metaprojectGlobalProperties.Length, StringComparer.OrdinalIgnoreCase);
Definition\Project.cs (4)
2152var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default); 2590var removeElementCache = new Dictionary<string, CumulativeRemoveElementData>(projectItemElements.Count); 2666private void CacheInformationFromRemoveItem(ProjectItemElement itemElement, Dictionary<string, CumulativeRemoveElementData> removeElementCache) 4155public Dictionary<string, List<string>> ConditionedProperties { get; private set; }
Definition\ProjectCollection.cs (3)
144private Dictionary<string, Toolset> _toolsets; 560Dictionary<string, string> dictionary; 2444private Dictionary<string, List<Project>> _loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase);
Definition\Toolset.cs (7)
196private Dictionary<string, SubToolset> _subToolsets; 207private Dictionary<string, ProjectImportPathMatch> _propertySearchPathsTable; 310Dictionary<string, ProjectImportPathMatch> importSearchPathsTable = null) 322Dictionary<string, SubToolset> subToolsetsAsDictionary = subToolsets as Dictionary<string, SubToolset>; 597internal Dictionary<string, ProjectImportPathMatch> ImportPropertySearchPathsTable => _propertySearchPathsTable; 602internal Dictionary<MSBuildExtensionsPathReferenceKind, IList<string>> MSBuildExtensionsPathSearchPathsTable
Definition\ToolsetConfigurationReader.cs (7)
56private readonly Dictionary<string, Dictionary<string, ProjectImportPathMatch>> _projectImportSearchPathsCache; 74_projectImportSearchPathsCache = new Dictionary<string, Dictionary<string, ProjectImportPathMatch>>(StringComparer.OrdinalIgnoreCase); 207protected override Dictionary<string, ProjectImportPathMatch> GetProjectImportSearchPathsTable(string toolsVersion, string os) 209Dictionary<string, ProjectImportPathMatch> kindToPathsCache; 233private Dictionary<string, ProjectImportPathMatch> ComputeDistinctListOfSearchPaths(ToolsetElement.PropertyElementCollection propertyCollection) 235var pathsTable = new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetLocalReader.cs (1)
52protected override Dictionary<string, ProjectImportPathMatch> GetProjectImportSearchPathsTable(string toolsVersion, string os)
Definition\ToolsetReader.cs (7)
88internal static string ReadAllToolsets(Dictionary<string, Toolset> toolsets, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties, ToolsetDefinitionLocations locations) 103Dictionary<string, Toolset> toolsets, 345Dictionary<string, Toolset> toolsets, 397protected abstract Dictionary<string, ProjectImportPathMatch> GetProjectImportSearchPathsTable(string toolsVersion, string os); 403Dictionary<string, Toolset> toolsets, 459Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase); 499var importSearchPathsTable = GetProjectImportSearchPathsTable(toolsVersion.Name, NativeMethodsShared.GetOSNameForExtensionsPath());
Definition\ToolsetRegistryReader.cs (1)
278protected override Dictionary<string, ProjectImportPathMatch> GetProjectImportSearchPathsTable(string toolsVersion, string os)
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Evaluation\ConditionEvaluator.cs (5)
37Dictionary<string, List<string>> conditionedPropertiesTable, 220Dictionary<string, List<string>>? conditionedPropertiesTable, 356Dictionary<string, List<string>>? ConditionedPropertiesInProject { get; } 413public Dictionary<string, List<string>>? ConditionedPropertiesInProject { get; } 424Dictionary<string, List<string>>? conditionedPropertiesInProject,
Evaluation\Evaluator.cs (11)
107private readonly Dictionary<string, ProjectImportElement> _importsSeen; 119private readonly Dictionary<ProjectRootElement, bool> _projectSupportsReturnsAttribute; 754Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 755Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 757Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets = new Dictionary<string, LinkedListNode<ProjectTargetElement>>(StringComparer.OrdinalIgnoreCase); 849var pluginSettings = item.Metadata.ToDictionary(m => m.Key, m => m.EscapedValue); 1030private void ReadTargetElement(ProjectTargetElement targetElement, LinkedList<ProjectTargetElement> activeTargetsByEvaluationOrder, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets) 1054private void AddBeforeAndAfterTargetMappings(ProjectTargetElement targetElement, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets, Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget, Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget) 1937Dictionary<string, string> escapedMetadata = null;
Evaluation\EvaluatorMetadataTable.cs (1)
23private Dictionary<string, EvaluatorMetadata>? _metadata;
Evaluation\Expander.cs (1)
2543Dictionary<string, string> directoryNameTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
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)
82public Dictionary<string, List<string>> ConditionedProperties
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (4)
90private Dictionary<string, I> CapturedItems { get; } 92public ItemBatchingContext(I operationItem, Dictionary<string, I> capturedItems = null) 121private readonly Dictionary<string, I> _capturedItems; 123public ItemOperationMetadataTable(I operationItem, Dictionary<string, I> capturedItems)
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (3)
35private Dictionary<string, ItemDataCollectionValue<I>> _dictionaryBuilder; 101public Dictionary<string, ItemDataCollectionValue<I>> Dictionary 149var 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\Preprocessor.cs (2)
37private readonly Dictionary<XmlElement, IList<ProjectRootElement>> _importTable; 53private 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)
143public Dictionary<string, List<string>> ConditionedProperties => _wrapped.ConditionedProperties;
Evaluation\StringMetadataTable.cs (2)
23private Dictionary<string, string> _metadata; 31internal StringMetadataTable(Dictionary<string, string> metadata)
Evaluation\ToolsetProvider.cs (1)
24private Dictionary<string, Toolset> _toolsets;
FileMatcher.cs (2)
818Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs, 2400Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs = null;
Graph\GraphBuilder.cs (12)
88var allParsedProjects = FindGraphNodes(); 120private void AddEdges(Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects) 134private void AddEdgesFromProjectReferenceItems(Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects, GraphEdges edges) 136Dictionary<ProjectGraphNode, HashSet<ProjectGraphNode>> transitiveReferenceCache = new(allParsedProjects.Count); 202var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>(); 308Dictionary<string, ImmutableDictionary<string, string>> globalPropertiesForProjectConfiguration = new(StringComparer.OrdinalIgnoreCase); 312Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new(); 442Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects) 444var nodeStates = new Dictionary<ProjectGraphNode, NodeVisitationState>(); 528var globalProperties = configurationMetadata.GlobalProperties.ToDictionary(); 552private Dictionary<ConfigurationMetadata, ParsedProject> FindGraphNodes() 597Dictionary<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, 565var inDegree = graphNodes.ToDictionary(n => n, n => n.ReferencingProjects.Count); 614var targetLists = ProjectNodes.ToDictionary(node => node, node => ImmutableList<string>.Empty); 837Dictionary<string, string> globalProperties, 851Dictionary<string, string> globalProperties,
Graph\ProjectInterpretation.cs (2)
246public void AddInnerBuildEdges(Dictionary<ConfigurationMetadata, ParsedProject> allNodes, GraphBuilder graphBuilder) 434out var propertiesTable))
Instance\HostServices.cs (4)
52private Dictionary<string, HostObjects> _hostObjectMap; 58private Dictionary<string, NodeAffinity> _projectAffinities; 313var hostObjectMap = new Dictionary<string, HostObjects>(); 412internal Dictionary<TargetTaskKey, MonikerNameOrITaskHost> _hostObjects;
Instance\ProjectInstance.cs (10)
385var projectItemToInstanceMap = this.CreateItemsSnapshot(project.Items, project.ItemTypes.Count, keepEvaluationCache); 659var projectItemToInstanceMap = this.CreateItemsSnapshot(new ReadOnlyCollection<ProjectItem>(data.Items), data.ItemTypes.Count, keepEvaluationCache); 1080Dictionary<string, string> dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default); 1454Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties 2548Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase); 2597Dictionary<string, string> globalProperties, 3014Dictionary<string, TValue> clone; 3289private void CreateEvaluatedIncludeSnapshotIfRequested(bool keepEvaluationCache, ICollection<ProjectItem> items, Dictionary<ProjectItem, ProjectItemInstance> projectItemToInstanceMap) 3308private Dictionary<ProjectItem, ProjectItemInstance> CreateItemsSnapshot(ICollection<ProjectItem> items, int itemTypeCount, bool keepEvaluationCache) 3312var projectItemToInstanceMap = keepEvaluationCache ? new Dictionary<ProjectItem, ProjectItemInstance>(items.Count) : null;
Instance\ProjectItemInstance.cs (2)
1492Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(metadata.Count, MSBuildNameIgnoreCaseComparer.Default); 1509Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectTaskInstance.cs (1)
238Dictionary<string, string> filteredParameters = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
49private Dictionary<ITask, AppDomain> _tasksAndAppDomains = new Dictionary<ITask, AppDomain>();
Instance\TaskFactoryWrapper.cs (4)
260Dictionary<string, TaskPropertyInfo>? propertyInfoCache = null; 261Dictionary<string, string>? namesOfPropertiesWithRequiredAttribute = null; 262Dictionary<string, string>? namesOfPropertiesWithOutputAttribute = null; 263Dictionary<string, string>? namesOfPropertiesWithAmbiguousMatches = null;
Instance\TaskRegistry.cs (11)
156private Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> _taskRegistrations; 163private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>(); 431Dictionary<string, string> taskFactoryParameters = null; 447private static Dictionary<string, string> CreateTaskFactoryParametersDictionary(int? initialCount = null) 685Dictionary<string, string> taskFactoryParameters, 751private static Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> CreateRegisteredTaskDictionary(int? capacity = null) 1144private Dictionary<RegisteredTaskIdentity, object> _taskNamesCreatableByFactory; 1149private Dictionary<string, string> _taskFactoryParameters; 1164internal RegisteredTaskRecord(string registeredName, AssemblyLoadInfo assemblyLoadInfo, string taskFactory, Dictionary<string, string> taskFactoryParameters, ParameterGroupAndTaskElementRecord inlineTask, int registrationOrderId) 1824_taskFactoryParameters = (Dictionary<string, string>)localParameters; 1846_taskRegistrations = (Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>)copy;
Logging\BaseConsoleLogger.cs (6)
674internal static PerformanceCounter GetPerformanceCounter(string scopeName, ref Dictionary<string, PerformanceCounter> table) 697internal void DisplayCounters(Dictionary<string, PerformanceCounter> counters) 1184internal Dictionary<string, PerformanceCounter> projectPerformanceCounters; 1189internal Dictionary<string, PerformanceCounter> targetPerformanceCounters; 1194internal Dictionary<string, PerformanceCounter> taskPerformanceCounters; 1199internal Dictionary<string, PerformanceCounter> projectEvaluationPerformanceCounters;
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
718var d = new Dictionary<EvaluationLocation, ProfiledLocation>(count); 1516var 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>(); 351Dictionary<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>(); 424var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 1662internal static new MPPerformanceCounter GetPerformanceCounter(string scopeName, ref Dictionary<string, PerformanceCounter> table) 1689private Dictionary<string, PerformanceCounter> _internalPerformanceCounters; 1694private Dictionary<BuildEventContext, object> _startedEvent; 1799private 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,
LogMessagePacketBase.cs (2)
271private static Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 276private static Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
19private Dictionary<NodePacketType, PacketFactoryRecord> _packetFactories;
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);
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)
ReadOnlyEmptyDictionary.cs (1)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>();
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
TaskHostConfiguration.cs (8)
34private Dictionary<string, string> _buildProcessEnvironment; 91private Dictionary<string, TaskParameter> _taskParameters; 93private Dictionary<string, string> _globalParameters; 161Dictionary<string, string> globalParameters, 174_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 241public Dictionary<string, string> BuildProcessEnvironment 354public Dictionary<string, TaskParameter> TaskParameters 364public Dictionary<string, string> GlobalProperties
TaskHostTaskComplete.cs (5)
85private Dictionary<string, TaskParameter> _taskOutputParameters = null; 90private Dictionary<string, string> _buildProcessEnvironment = null; 129_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 191public Dictionary<string, TaskParameter> TaskOutputParameters 208public Dictionary<string, string> BuildProcessEnvironment
TaskParameter.cs (7)
294Dictionary<string, string> escapedMetadata; 301escapedMetadata = nonGenericEscapedMetadata as Dictionary<string, string>; 427Dictionary<string, string> escapedGenericWrappedMetadata = wrappedMetadata as Dictionary<string, string>; 472Dictionary<string, string> escapedMetadata = null; 745private Dictionary<string, string> _customEscapedMetadata = null; 755public TaskParameterTaskItem(string escapedItemSpec, string escapedDefiningProject, Dictionary<string, string> escapedMetadata)
ToolsetElement.cs (3)
171private Dictionary<string, string> _previouslySeenOS = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 346private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 525private Dictionary<string, string> _previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Tracing.cs (1)
28private static Dictionary<string, int> s_counts;
TranslatorHelpers.cs (1)
85ref Dictionary<string, T> dictionary,
TypeLoader.cs (2)
195Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length); 288private Dictionary<string, Type> _publicTypeNameToType;
Microsoft.Build.BuildCheck.UnitTests (20)
CheckConfiguration_Test.cs (4)
47var config = new Dictionary<string, string>() 67var config = new Dictionary<string, string>() 87var config = new Dictionary<string, string>() 106var config = new Dictionary<string, string>()
ConfigurationProvider_Tests.cs (2)
33var configs = configurationProvider.GetConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id"); 55var configs = configurationProvider.GetConfiguration(Path.Combine(workFolder1.Path, "test.csproj"), "rule_id");
CustomConfigurationData_Tests.cs (9)
53var config1 = new Dictionary<string, string>() 58var config2 = new Dictionary<string, string>() 72var config = new Dictionary<string, string>() 85var config1 = new Dictionary<string, string>() 90var config2 = new Dictionary<string, string>() 104var config1 = new Dictionary<string, string>() 109var config2 = new Dictionary<string, string>() 123var config1 = new Dictionary<string, string>() 129var config2 = new Dictionary<string, string>()
DoubleWritesAnalyzer_Tests.cs (1)
29private TaskInvocationCheckData MakeTaskInvocationData(string taskName, Dictionary<string, TaskInvocationCheckData.TaskParameter> parameters)
EditorConfigParser_Tests.cs (2)
32var mergedResult = parser.MergeEditorConfigFiles(configs, "/some/path/to/file"); 55var mergedResult = parser.MergeEditorConfigFiles(configs, "/some/path/to/file.proj");
SharedOutputPathCheck_Tests.cs (2)
27Dictionary<string, string>? evaluatedProperties, 111var evaluatedProperties = new Dictionary<string, string> {
Microsoft.Build.CommandLine.UnitTests (1)
TerminalLogger_Tests.cs (1)
216private BuildMessageEventArgs MakeExtendedMessageEventArgs(string message, MessageImportance importance, string extendedType, Dictionary<string, string?>? extendedMetadata)
Microsoft.Build.Conversion.Core (1)
ProjectFileConverter.cs (1)
206private Dictionary<string, string> propertiesToEscape = null;
Microsoft.Build.Engine (132)
Collections\HashTableUtility.cs (2)
29internal static int Compare(Dictionary<string, string> h1, Dictionary<string, string> h2)
Engine\BatchingEngine.cs (7)
124Dictionary<string, MetadataReference> consumedMetadataReferences = pair.Metadata; 198Dictionary<string, MetadataReference> consumedMetadataReferences, // Key is [string] potentially qualified metadata name 297Dictionary<string, MetadataReference> consumedMetadataReferences 326Dictionary<string, string> itemMetadataValues = GetItemMetadataValues(parentNode, item, consumedMetadataReferences); 379private static Dictionary<string, string> GetItemMetadataValues 383Dictionary<string, MetadataReference> consumedMetadataReferences 386Dictionary<string, string> itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, StringComparer.OrdinalIgnoreCase);
Engine\Engine.cs (2)
107private Dictionary<string, ToolsetState> toolsetStateMap; 729internal Dictionary<string, ToolsetState> ToolsetStateMap
Engine\EngineLoggingServicesInProc.cs (1)
155private Dictionary<int, EventSource> eventSources;
Engine\EngineProxy.cs (2)
535Dictionary<string, ITaskItem[]>[] targetOutputsPerProject = null; 539targetOutputsPerProject = new Dictionary<string, ITaskItem[]>[projectFileNames.Length];
Engine\Expander.cs (5)
42private Dictionary<string, string> itemMetadata; 54internal Dictionary<string, string> ItemMetadata 77internal Expander(BuildPropertyGroup properties, string implicitMetadataItemType, Dictionary<string, string> unqualifiedItemMetadata) 98internal Expander(ReadOnlyLookup lookup, Dictionary<string, string> itemMetadata) 110internal Expander(ReadOnlyLookup lookup, Dictionary<string, string> itemMetadata, ExpanderOptions options)
Engine\ItemBucket.cs (2)
66Dictionary<string, string> itemMetadata, 125internal static ItemBucket GetDummyBucketForComparisons(Dictionary<string, string> itemMetadata)
Engine\Scheduler.cs (1)
457private Dictionary<ScheduleRecordKey, ScheduleRecord> handleIdToScheduleRecord;
Engine\SchedulerRecord.cs (1)
174private Dictionary<ScheduleRecordKey, ScheduleRecord> requestIdToChildRecord;
Engine\TaskEngine.cs (4)
618Dictionary<string, string> setParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 619Dictionary<string, string> requiredParameters = GetNamesOfPropertiesWithRequiredAttribute(); 666private Dictionary<string, string> GetNamesOfPropertiesWithRequiredAttribute() 668Dictionary<string, string> requiredParameters = null;
Engine\ToolsetCollection.cs (1)
43private Dictionary<string, Toolset> toolsetMap = null;
Engine\ToolsetConfigurationReader.cs (2)
251private Dictionary<string, string> previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 416private Dictionary<string, string> previouslySeenPropertyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Engine\Utilities.cs (2)
613internal static Dictionary<string, V> CreateTableIfNecessary<V>(Dictionary<string, V> table)
Items\BuildItem.cs (1)
1666Dictionary<string, string> itemDefinitionMetadata = null;
Items\BuildItemGroup.cs (4)
393internal BuildItem ModifyItemAfterCloningUsingVirtualMetadata(BuildItem item, Dictionary<string, string> metadata) 419internal void ModifyItemsUsingVirtualMetadata(Dictionary<BuildItem, Dictionary<string, string>> modifies) 421foreach (KeyValuePair<BuildItem, Dictionary<string, string>> modify in modifies)
Items\ItemDefinitionLibrary.cs (14)
12using MetadataDictionary = System.Collections.Generic.Dictionary<string, string>; 13using ItemDefinitionsDictionary = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, string>>; 30private ItemDefinitionsDictionary itemDefinitionsDictionary; 101MetadataDictionary metadataDictionary; 117MetadataDictionary metadataDictionary; 134MetadataDictionary metadataDictionary = GetDefaultedMetadata(itemType); 147internal MetadataDictionary GetDefaultedMetadata(string itemType) 151MetadataDictionary metadataDictionary; 218internal void Evaluate(BuildPropertyGroup properties, ItemDefinitionsDictionary itemDefinitionsDictionary) 240private void EvaluateItemDefinitionElement(XmlElement itemDefinitionElement, BuildPropertyGroup properties, ItemDefinitionsDictionary itemDefinitionsDictionary) 248MetadataDictionary metadataDictionary; 271private void EvaluateItemDefinitionChildElement(XmlElement itemDefinitionChildElement, BuildPropertyGroup properties, ItemDefinitionsDictionary itemDefinitionsDictionary) 281MetadataDictionary metadataDictionary;
ItemsAndProperties\ExpressionShredder.cs (3)
418private Dictionary<string, MetadataReference> metadata; 420internal ItemsAndMetadataPair(Hashtable items, Dictionary<string, MetadataReference> metadata) 432internal Dictionary<string, MetadataReference> Metadata
ItemsAndProperties\Lookup.cs (54)
98private Dictionary<BuildItem, BuildItem> cloneTable; 186private Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>> PrimaryModifyTable 216private Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>> SecondaryModifyTable 373foreach (KeyValuePair<string, Dictionary<BuildItem, Dictionary<string, string>>> entry in PrimaryModifyTable) 375Dictionary<BuildItem, Dictionary<string, string>> modifiesOfType; 379foreach (KeyValuePair<BuildItem, Dictionary<string, string>> modify in entry.Value) 436foreach (KeyValuePair<string, Dictionary<BuildItem, Dictionary<string, string>>> entry in PrimaryModifyTable) 504Dictionary<BuildItem, Dictionary<string, string>> allModifies = null; 534Dictionary<BuildItem, Dictionary<string, string>> modifies; 539allModifies = new Dictionary<BuildItem, Dictionary<string, string>>(); 543foreach (KeyValuePair<BuildItem, Dictionary<string, string>> modify in modifies) 758internal void ModifyItems(string name, BuildItemGroup group, Dictionary<string, string> metadataChanges) 792Dictionary<BuildItem, Dictionary<string, string>> modifiesOfType; 795modifiesOfType = new Dictionary<BuildItem, Dictionary<string, string>>(); 804KeyValuePair<BuildItem, Dictionary<string, string>> modify = new KeyValuePair<BuildItem, Dictionary<string, string>>(actualItem, metadataChanges); 817private void ApplyModifies(BuildItemGroup result, Dictionary<BuildItem, Dictionary<string, string>> allModifies) 829foreach (KeyValuePair<BuildItem, Dictionary<string, string>> modify in allModifies) 894private void ApplyModificationsToTable(Hashtable table, string name, Dictionary<BuildItem, Dictionary<string, string>> modify) 916private void MergeModificationsIntoModificationTable(Dictionary<BuildItem, Dictionary<string, string>> modifiesOfType, 917KeyValuePair<BuildItem, Dictionary<string, string>> modify, 920Dictionary<string, string> existingMetadataChanges; 963private Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>> CreateTableIfNecessary(Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>> table) 967return new Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>>(StringComparer.OrdinalIgnoreCase); 1013private void MustNotBeInTable(Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>> table, BuildItem item) 1017Dictionary<BuildItem, Dictionary<string, string>> tableOfItemsOfSameType = table[item.Name]; 1133private Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>> modifies; 1181internal Dictionary<string, Dictionary<BuildItem, Dictionary<string, string>>> Modifies
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (1)
640private Dictionary<string, int> forwardingTable;
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
392Dictionary<ErrorWarningSummaryDictionaryKey, List<T>> groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<T>>(); 1494private Dictionary<BuildEventContext, object> startedEvent; 1620private Dictionary<BuildEventContext, List<BuildMessageEventArgs>> deferredMessages;
Logging\ParallelLogger\ParallelLoggerHelpers.cs (4)
22private Dictionary<BuildEventContext, ProjectStartedEventMinimumFields> projectStartedEvents; 23private Dictionary<BuildEventContext, TargetStartedEventMinimumFields> targetStartedEvents; 24private Dictionary<string, int> projectTargetKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 25private Dictionary<string, int> projectKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Properties\BuildProperty.cs (1)
119private static Dictionary<string, string> customInternTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Shared\LoadedType.cs (6)
48public Dictionary<string, string> GetNamesOfPropertiesWithRequiredAttribute() 62public Dictionary<string, string> GetNamesOfPropertiesWithOutputAttribute() 199private Dictionary<string, string> namesOfPropertiesWithRequiredAttribute; 202private Dictionary<string, string> namesOfPropertiesWithOutputAttribute; 205private Dictionary<string, string> namesOfPropertiesWithAmbiguousMatches; 208private Dictionary<string, PropertyInfo> propertyInfoCache;
Shared\ProjectInSolution.cs (2)
92private Dictionary<string, ProjectConfigurationInSolution> projectConfigurations; 188internal Dictionary<string, ProjectConfigurationInSolution> ProjectConfigurations
Shared\TypeLoader.cs (1)
21private Dictionary<AssemblyLoadInfo, List<Type>> cacheOfAllDesiredTypesInAnAssembly = new Dictionary<AssemblyLoadInfo, List<Type>>();
Solution\SolutionWrapperProject.cs (5)
352Dictionary<int, List<ProjectInSolution>> projectsByDependencyLevel = new Dictionary<int, List<ProjectInSolution>>(); 1638Dictionary<int, List<ProjectInSolution>> projectsByDependencyLevel 1747Dictionary<int, List<ProjectInSolution>> projectsByDependencyLevel, 2258private static void AssignDependencyLevel(ProjectInSolution project, SolutionParser solution, Dictionary<int, List<ProjectInSolution>> projectsByDependencyLevel) 2306private static void AssignDependencyLevels(SolutionParser solution, Dictionary<int, List<ProjectInSolution>> projectsByDependencyLevel)
Tasks\IntrinsicTask.cs (1)
253Dictionary<string, string> metadataToSet = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Engine.OM.UnitTests (79)
Construction\ProjectTaskElement_Tests.cs (7)
35var parameters = Helpers.MakeDictionary(task.Parameters); 119var parameters = Helpers.MakeDictionary(task.Parameters); 140var parameters = Helpers.MakeDictionary(task.Parameters); 161var parameters = Helpers.MakeDictionary(task.Parameters); 229var parameters = Helpers.MakeDictionary(task.Parameters); 245var parameters = Helpers.MakeDictionary(task.Parameters); 263var parameters = Helpers.MakeDictionary(task.Parameters);
Definition\DefinitionEditing_Tests.cs (2)
617Dictionary<string, string> metadata = new Dictionary<string, string>() { { "m", "m1" } }; 2534Dictionary<string, string> metadata = new Dictionary<string, string>() { { "m", "m1" } };
Definition\Project_Tests.cs (8)
812var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 829var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 960Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 988Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2420Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2434Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2458Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2528Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Definition\ProjectCollection_Tests.cs (5)
395var globals = new Dictionary<string, string> { { "Configuration", "Debug" } }; 411var globalProperties1 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v1" } }; 418var globalProperties2 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v2" } }; 455var project2Globals = 572var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v1" } };
Definition\ProjectItem_Tests.cs (38)
2762var expectedInitial = new Dictionary<string, string> 2767var expectedUpdateFromTrue = new Dictionary<string, string> 2804var expectedInitial = new Dictionary<string, string> 2809var expectedUpdateFromUnconditionedElement = new Dictionary<string, string> 2837var expectedUpdate = new Dictionary<string, string> 2873Dictionary<string, string> expectedUpdatei = new Dictionary<string, string> 2877Dictionary<string, string> expectedUpdatej = new Dictionary<string, string> 2944var expectedMetadata = new Dictionary<string, string> 2974var expectedMetadata = new Dictionary<string, string> 3028var expectedMetadataX = new Dictionary<string, string> 3033var expectedMetadataA = new Dictionary<string, string> 3040var expectedMetadataB = new Dictionary<string, string> 3074var expectedMetadataA = new Dictionary<string, string> 3081var expectedMetadataB = new Dictionary<string, string> 3088var expectedMetadataC = new Dictionary<string, string> 3139var expectedMetadataA = doNotExpandQualifiedMetadataInUpdateOperation 3168var expectedMetadataA = new Dictionary<string, string> 3187var expectedMetadataA = new Dictionary<string, string> 3214var expectedMetadataA = new Dictionary<string, string> 3254var expectedMetadataX = new Dictionary<string, string> 3262var expectedMetadata2 = new Dictionary<string, string> 3270var expectedMetadataCCC = new Dictionary<string, string> 3278var expectedMetadata1 = new Dictionary<string, string> 3287var expectedMetadataD = new Dictionary<string, string> 3295var expectedMetadataY = new Dictionary<string, string> 3345var expectedMetadataB = new Dictionary<string, string> 3350var expectedMetadataA = new Dictionary<string, string>() 3355var expectedMetadataC = new Dictionary<string, string>(); 3410var expectedInitialMetadata = new Dictionary<string, string> 3416var expectedUpdatedMetadata = new Dictionary<string, string> 3452var expected_i1 = new Dictionary<string, string> 3458var expected_i2_a = new Dictionary<string, string> 3464var expected_i2_y = new Dictionary<string, string> 3501var expectedInitial = new Dictionary<string, string> 3507var expectedUpdated = new Dictionary<string, string> 3536var expectedUpdated = new Dictionary<string, string> 3631public void UpdateAndRemoveShouldWorkWithEscapedCharacters(string projectContents, string include, string update, string remove, string[] expectedInclude, Dictionary<string, string>[] expectedMetadata) 3689var expectedUpdated = new Dictionary<string, string>
Definition\ProjectMetadata_Tests.cs (1)
506var metadata = new Dictionary<string, string>
Definition\ProjectProperty_Tests.cs (1)
192Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Instance\ProjectInstance_Tests.cs (2)
203Dictionary<string, string> globals = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "p1" } }; 1027var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\ProjectItemInstance_Tests.cs (3)
1143var expectedInitial = new Dictionary<string, string> 1148var expectedUpdateFromTrue = new Dictionary<string, string> 1199private static void AssertItemHasMetadata(Dictionary<string, string> expected, ProjectItemInstance item)
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (1)
205var result = new Dictionary<ProjectCollectionLinker, HashSet<Project>>();
ObjectModelRemoting\RemoteProjectsProviderMock\CollectionsHelpers.cs (2)
112Dictionary<TKey, TValue> result = new Dictionary<TKey, TValue>(); 131Dictionary<TKey, RMock> result = new Dictionary<TKey, RMock>();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (2)
84private static Dictionary<Type, ExporterFactory> knownTypes = new Dictionary<Type, ExporterFactory>(); 126var newKnown = new Dictionary<Type, ExporterFactory>(knownTypes);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (2)
153private Dictionary<UInt32, ExternalConnection> imported = new Dictionary<UInt32, ExternalConnection>(); 217Dictionary<UInt32, ExternalConnection> newMap = new Dictionary<uint, ExternalConnection>(imported);
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (3)
34private static Dictionary<UInt32, LinkedObjectsMap<KeyType>> collections = new Dictionary<UInt32, LinkedObjectsMap<KeyType>>(); 36private Dictionary<UInt32, WeakHolder> activeLinks = new Dictionary<UInt32, WeakHolder>(); 37private Dictionary<KeyType, WeakHolder> indexByKey = new Dictionary<KeyType, WeakHolder>();
TransientIO.cs (1)
18private Dictionary<string, TransientIO> Children = new Dictionary<string, TransientIO>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Engine.UnitTests (226)
BackEnd\AssemblyTaskFactory_Tests.cs (1)
658var taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\BinaryTranslator_Tests.cs (16)
429Dictionary<string, string> value = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 435Dictionary<string, string> deserializedValue = null; 450Dictionary<string, string> value = null; 454Dictionary<string, string> deserializedValue = null; 467Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>(StringComparer.OrdinalIgnoreCase); 473Dictionary<string, BaseClass> deserializedValue = null; 489Dictionary<string, BaseClass> value = null; 493Dictionary<string, BaseClass> deserializedValue = null; 506Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>(); 510TranslationHelpers.GetWriteTranslator().TranslateDictionary<Dictionary<string, BaseClass>, BaseClass>(ref value, BaseClass.FactoryForDeserialization); 512Dictionary<string, BaseClass> deserializedValue = null; 513TranslationHelpers.GetReadTranslator().TranslateDictionary<Dictionary<string, BaseClass>, BaseClass>(ref deserializedValue, BaseClass.FactoryForDeserialization); 528Dictionary<string, BaseClass> value = null; 530TranslationHelpers.GetWriteTranslator().TranslateDictionary<Dictionary<string, BaseClass>, BaseClass>(ref value, BaseClass.FactoryForDeserialization); 532Dictionary<string, BaseClass> deserializedValue = null; 533TranslationHelpers.GetReadTranslator().TranslateDictionary<Dictionary<string, BaseClass>, BaseClass>(ref deserializedValue, BaseClass.FactoryForDeserialization);
BackEnd\BuildManager_Tests.cs (12)
141Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties); 258Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties); 575Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties); 615Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties); 659Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties); 721Dictionary<string, string> properties = ExtractProjectStartedPropertyList(projectStartedEvent.Properties); 797Dictionary<string, string> properties = ExtractProjectStartedPropertyList(projectStartedEvent.Properties); 843Dictionary<string, string> properties = ExtractProjectStartedPropertyList(projectStartedEvent.Properties); 940Dictionary<string, string> properties = ExtractProjectStartedPropertyList(projectStartedEvent.Properties); 1153var globalProperties = new Dictionary<string, string>(); 3542private static Dictionary<string, string> ExtractProjectStartedPropertyList(IEnumerable properties) 3544Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\BuildRequestConfiguration_Tests.cs (4)
173Dictionary<string, string> props = new Dictionary<string, string>(); 275Dictionary<string, string> globalProperties = new(StringComparer.OrdinalIgnoreCase); 351Dictionary<string, string> globalProperties = 457Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\ConfigurationMetadata_Tests.cs (1)
152Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\IntrinsicTask_Tests.cs (2)
1236Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3963internal static void AssertItemEvaluationFromTarget(string projectContents, string targetName, string itemType, string[] inputFiles, string[] expectedInclude, bool makeExpectedIncludeAbsolute = false, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false)
BackEnd\MockRunningObjectTable.cs (1)
15private readonly Dictionary<string, object> _dictionary = new Dictionary<string, object>();
BackEnd\NodeEndpointInProc_Tests.cs (1)
168private Dictionary<INodeEndpoint, LinkStatusContext> _linkStatusTable;
BackEnd\NodePackets_Tests.cs (1)
171private static Dictionary<string, string> CreateStringDictionary()
BackEnd\RequestedProjectState_Tests.cs (2)
46Dictionary<string, List<string>> items = new() 68Dictionary<string, List<string>> items = new()
BackEnd\SdkResolverService_Tests.cs (11)
329private void CreateMockSdkResultPropertiesAndItems(out Dictionary<string, string> propertiesToAdd, out Dictionary<string, SdkResultItem> itemsToAdd) 357var metadata = result.ItemsToAdd.Values.Single().Metadata; 374Dictionary<string, string> propertiesToAdd = null; 375Dictionary<string, SdkResultItem> itemsToAdd = null; 413Dictionary<string, string> propertiesToAdd; 414Dictionary<string, SdkResultItem> itemsToAdd; 452Dictionary<string, string> propertiesToAdd = null; 453Dictionary<string, SdkResultItem> itemsToAdd = null; 501Dictionary<string, string> propertiesToAdd; 502Dictionary<string, SdkResultItem> itemsToAdd;
BackEnd\TaskExecutionHost_Tests.cs (11)
39private Dictionary<string, object> _parametersSetOnTask; 44private Dictionary<string, object> _outputsReadFromTask; 143var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 159var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 169var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 608var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 624var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 642var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 1483var parameters = GetStandardParametersDictionary(true); 1492private Dictionary<string, (string, ElementLocation)> GetStandardParametersDictionary(bool returnParam) 1494var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
BackEnd\TaskHost_Tests.cs (1)
716Dictionary<string, string> globalProperties = new Dictionary<string, string>
BackEnd\TaskHostConfiguration_Tests.cs (1)
334var expectedGlobalProperties = new Dictionary<string, string>
BackEnd\TaskRegistry_Tests.cs (5)
580Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1057Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2004Dictionary<string, string> taskParameters, 2053Dictionary<string, string> parameters = null; 2072private void RetrieveAndValidateRegisteredTaskRecord(TaskRegistry registry, bool exactMatchRequired, Dictionary<string, string> taskParameters, bool shouldBeRetrieved, bool shouldBeRetrievedFromCache)
BackEnd\TranslationHelpers.cs (1)
171var dictionary = properties
BinaryLogger_Tests.cs (3)
273Dictionary<string, string> embedFiles1 = new(); 274Dictionary<string, string> embedFiles2 = new(); 304void AddArchiveFile(Dictionary<string, string> files, ArchiveFileEventArgs arg)
BuildEnvironmentHelper_Tests.cs (1)
508private readonly Dictionary<string, string> _mockEnvironment = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BuildEventArgsSerialization_Tests.cs (2)
115var globalVariables = new Dictionary<string, string> 557Dictionary<string, TimeSpan> stats = new() { { key1, span1 }, { key2, span2 }, { key3, span3 } };
Collections\OMcollections_tests.cs (6)
208var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 225var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 253var backing = new Dictionary<string, string>(); 269Dictionary<string, string> values = new Dictionary<string, string>(); 274Dictionary<string, int> convertedValues = new Dictionary<string, int>(); 337Dictionary<string, TValue> clone;
ConsoleLogger_Tests.cs (1)
33private Dictionary<string, string> _environment;
Construction\SolutionProjectGenerator_Tests.cs (7)
1616Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 1968Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2062Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2150Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2225Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2379var globalProperties = new Dictionary<string, string> { { "ImportByWildcardBeforeSolution", "false" } }; 2606Dictionary<string, string> globalProperties = new Dictionary<string, string>();
Definition\Toolset_Tests.cs (2)
105Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase); 513Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsetConfigurationReader_Tests.cs (3)
561Dictionary<string, Toolset> toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase); 566Dictionary<string, ProjectImportPathMatch> pathsTable = toolsets["2.0"].ImportPropertySearchPathsTable; 583private void CheckPathsTable(Dictionary<string, ProjectImportPathMatch> pathsTable, string kind, string[] expectedPaths)
Definition\ToolsVersion_Tests.cs (1)
991private readonly Dictionary<string, string> _defaultTasksFileMap;
Evaluation\Evaluator_Tests.cs (1)
5132Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Evaluation\Expander_Tests.cs (4)
780Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1358Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1574var itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 3911Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\ExpressionShredder_Tests.cs (5)
459Dictionary<string, MetadataReference> actualMetadata = pair.Metadata; 465Dictionary<string, MetadataReference> expectedMetadata = GetConsumedMetadataReferences_OriginalImplementation(test); 1141private static Dictionary<string, MetadataReference> GetConsumedMetadataReferences_OriginalImplementation(string expression) 1146Dictionary<string, MetadataReference> consumedMetadataReferences = new Dictionary<string, MetadataReference>(StringComparer.OrdinalIgnoreCase); 1163Dictionary<string, MetadataReference> consumedMetadataReferences)
Evaluation\ItemEvaluation_Tests.cs (11)
59var mI2_1 = new Dictionary<string, string> 68var mI2_2 = new Dictionary<string, string> 108var expectedMetadata = new Dictionary<string, string> 182var a = new Dictionary<string, string> 190var b = new Dictionary<string, string> 198var c = new Dictionary<string, string> 209var metadataForI2 = new Dictionary<string, string> 362public void ItemOperationsShouldExpandIndirectItemReferences(string projectContent, string[] expectedItemValues, Dictionary<string, string> expectedItemMetadata) 488var i1BaseMetadata = new Dictionary<string, string> 494var i1Metadata = new Dictionary<string, string>[] 506var i2Metadata = new Dictionary<string, string>[]
Evaluation\ItemSpec_Tests.cs (2)
88private ProjectInstanceExpander CreateExpander(Dictionary<string, string[]> items) 99private static ItemDictionary<ProjectItemInstance> ToItemDictionary(Dictionary<string, string[]> itemTypes)
Evaluation\Preprocessor_Tests.cs (2)
942var propertiesToAdd = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 947var itemsToAdd = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase)
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
350var mapping = new Dictionary<string, string> { { SdkName, _testSdkDirectory } };
Evaluation\SdkResultEvaluation_Tests.cs (12)
57private void CreateMockSdkResultPropertiesAndItems(out Dictionary<string, string> propertiesToAdd, out Dictionary<string, SdkResultItem> itemsToAdd) 107Dictionary<string, string> propertiesToAdd = null; 108Dictionary<string, SdkResultItem> itemsToAdd = null; 147Dictionary<string, string> propertiesToAdd = null; 148Dictionary<string, SdkResultItem> itemsToAdd = null; 241Dictionary<string, string> propertiesToAdd = null; 242Dictionary<string, SdkResultItem> itemsToAdd = null; 347Dictionary<string, string> propertiesToAdd; 348Dictionary<string, SdkResultItem> itemsToAdd; 419Dictionary<string, string> propertiesToAdd = new Dictionary<string, string>() 424Dictionary<string, SdkResultItem> itemsToAdd = new Dictionary<string, SdkResultItem>()
ExpressionTree_Tests.cs (2)
333Dictionary<string, List<string>> conditionedProperties = new Dictionary<string, List<string>>(); 391private static void DumpDictionary(Dictionary<string, List<string>> propertyDictionary)
ExpressionTreeExpression_Tests.cs (1)
400Dictionary<string, string> metadataDictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Graph\GraphLoadedFromSolution_tests.cs (10)
195Dictionary<int, int[]> edges, 205Dictionary<int, int[]> edges, 211var projectSpecificConfigurations = graph.ProjectNodes.ToDictionary( 233ProjectConfigurations = new Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>> 480public void SolutionsCanInjectEdgesIntoTheProjectGraph(Dictionary<int, int[]> edges, (int, int)[] solutionDependencies, bool hasCycle, bool solutionEdgesOverlapGraphEdges) 682Dictionary<int, int[]> edges, 685Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>> projectConfigurations = null) 695var globalProperties = currentSolutionConfiguration != null 727var actualProjectConfigurations = projectConfigurations ?? solutionFileBuilder.ProjectConfigurations;
Graph\GraphTestingUtilities.cs (6)
43Dictionary<string, string> additionalGlobalProperties = null, 90public static void AssertNonMultitargetingNode(ProjectGraphNode node, Dictionary<string, string> additionalGlobalProperties = null) 99public static void AssertOuterBuildEvaluation(ProjectGraphNode outerBuild, Dictionary<string, string> additionalGlobalProperties) 112Dictionary<string, string> additionalGlobalProperties) 200Dictionary<string, string[]> projectReferenceTargets = null, 232internal static void AssertReferencesIgnoringOrder(this ProjectGraph graph, Dictionary<int, int[]> expectedReferencesForNode)
Graph\IsolateProjects_Tests.cs (5)
16using ExpectedNodeBuildOutput = System.Collections.Generic.Dictionary<Microsoft.Build.Graph.ProjectGraphNode, string[]>; 17using OutputCacheDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Graph.ProjectGraphNode, string>; 326var expectedOutput = new ExpectedNodeBuildOutput(); 327var outputCaches = new OutputCacheDictionary(); 329Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches(
Graph\ParallelWorkSet_Tests.cs (1)
22internal Dictionary<string, string> ExpectedCompletedWork =
Graph\ProjectGraph_Tests.cs (22)
370var globalPropertiesFor1 = new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC", ["IsGraphBuild"] = "true" }; 377var globalPropertiesFor2 = new Dictionary<string, string> { ["IsGraphBuild"] = "true" }; 939var projectReferenceTargets = new Dictionary<string, string[]> 966var projectReferenceTargets = new Dictionary<string, string[]> 1430var projectReferenceTargets = new Dictionary<string, string[]> 1555Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches( 1605Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches( 1807public void TopologicalSortShouldTopologicallySort(Dictionary<int, int[]> edges) 1830public void DotNotationShouldRepresentGraph(Dictionary<int, int[]> edges) 2125var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2164var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2191var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } }; 2253var graph1 = new Dictionary<int, int[]> 2261var graph2 = new Dictionary<int, int[]> 2271foreach (var globalVariables in globalVariablesArray) 2323public void AllNodesShouldHaveGraphBuildGlobalProperty(Dictionary<int, int[]> edges, int[] entryPoints, Dictionary<string, string> globalProperties) 2331var expectedGlobalProperties = new Dictionary<string, string>(globalProperties); 2357public void GraphShouldSupportTransitiveReferences(Dictionary<int, int[]> edges) 2483Dictionary<int, int[]> edges, 2484Dictionary<int, string> extraContentPerProjectNumber, 2485Dictionary<int, int[]> expectedReferences)
Graph\ResultCacheBasedBuilds_Tests.cs (16)
21using ExpectedNodeBuildOutput = System.Collections.Generic.Dictionary<Microsoft.Build.Graph.ProjectGraphNode, string[]>; 22using OutputCacheDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Graph.ProjectGraphNode, string>; 287public void BuildProjectGraphUsingCaches(Dictionary<int, int[]> edges) 297var expectedOutput = new ExpectedNodeBuildOutput(); 299var outputCaches = new OutputCacheDictionary(); 344var expectedOutput = new ExpectedNodeBuildOutput(); 346var outputCaches = new OutputCacheDictionary(); 382var expectedOutput = new ExpectedNodeBuildOutput(); 384var outputCaches = new OutputCacheDictionary(); 391var results = BuildUsingCaches(_env, topoSortedNodes, expectedOutput, outputCaches, generateCacheFiles: false, assertBuildResults: false); 423internal static Dictionary<string, (BuildResult Result, MockLogger Logger)> BuildUsingCaches( 426ExpectedNodeBuildOutput expectedNodeBuildOutput, 427OutputCacheDictionary outputCaches, 431Func<ProjectGraphNode, ExpectedNodeBuildOutput, string[]> expectedOutputProducer = null, 437var results = new Dictionary<string, (BuildResult Result, MockLogger Logger)>(topoSortedNodes.Count); 512private static TransientTestFile CreateProjectFileWrapper(TestEnvironment env, int projectNumber, int[] projectReferences, Dictionary<string, string[]> projectReferenceTargets, string defaultTargets, string extraContent)
HashTableUtility_Tests.cs (4)
28Dictionary<string, string> h1 = new Dictionary<string, string>(); 30Dictionary<string, string> h2 = new Dictionary<string, string>(); 41Dictionary<string, string> h1 = new Dictionary<string, string>(); 42Dictionary<string, string> h2 = new Dictionary<string, string>();
Instance\HostServices_Tests.cs (1)
503Dictionary<string, string> globals = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\ProjectTaskInstance_Internal_Tests.cs (1)
72var parametersCopy = new Dictionary<string, (string, ElementLocation)>(parameters.Count);
Instance\TaskItem_Tests.cs (1)
204((Dictionary<string, string>)item.CloneCustomMetadata()).ShouldBeSetEquivalentTo(new KeyValuePair<string, string>[] { new("a", "override"), new("b", "base") });
InternalEngineHelpers.cs (6)
41private readonly Dictionary<string, SdkResult> _resultMap; 51public ConfigurableMockSdkResolver(Dictionary<string, SdkResult> resultMap) 102Dictionary<string, SdkResultItem> sdkResultItems; 113Dictionary<string, string> newMetadata = null; 133private readonly Dictionary<string, string> _mapping; 135public FileBasedMockSdkResolver(Dictionary<string, string> mapping)
ProjectCache\ProjectCacheTests.cs (9)
96private Dictionary<int, int[]?> GraphEdges { get; } 98public Dictionary<int, CacheResult> NonCacheMissResults { get; } 100public GraphCacheResponse(Dictionary<int, int[]?> graphEdges, Dictionary<int, CacheResult>? nonCacheMissResults = null, IDictionary<int, string>? extraContentPerProjectNumber = null) 495var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>(); 518(MockLogger logger, ProjectGraph graph, Dictionary<ProjectGraphNode, BuildResult> nodesToBuildResults) = BuildGraphVsScenario(testData, buildParameters); 542private (MockLogger logger, ProjectGraph projectGraph, Dictionary<ProjectGraphNode, BuildResult> nodesToBuildResults) BuildGraphVsScenario( 547var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>(); 686var globalProperties = new Dictionary<string, string>
SolutionFileBuilder.cs (6)
39public Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>> ProjectConfigurations { get; set; } 80Dictionary<int, int[]> edges, 88Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>> projectConfigurations = null, 105var projectInfos = Projects.ToDictionary(
Microsoft.Build.Framework (52)
BinaryTranslator.cs (11)
590public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer) 598dictionary = (Dictionary<string, string>)copy; 612public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys) 699public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator) 779public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer) 1317public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer) 1334public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys) 1438public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator) 1520public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer)
BuildCheck\BuildCheckEventArgs.cs (2)
29internal BuildCheckTracingEventArgs(Dictionary<string, TimeSpan> executionData) 86var infrastructureTracingData = new Dictionary<string, TimeSpan>(count);
BuildCheck\BuildCheckTracingData.cs (7)
18Dictionary<string, BuildCheckRuleTelemetryData> telemetryData, 19Dictionary<string, TimeSpan> infrastructureTracingData) 21public BuildCheckTracingData(IReadOnlyList<BuildCheckRuleTelemetryData> telemetryData, Dictionary<string, TimeSpan> infrastructureTracingData) 29internal BuildCheckTracingData(Dictionary<string, TimeSpan> executionData) 33public Dictionary<string, BuildCheckRuleTelemetryData> TelemetryData { get; private set; } = telemetryData; 34public Dictionary<string, TimeSpan> InfrastructureTracingData { get; private set; } = infrastructureTracingData; 39public 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)
85Dictionary<string, string?> globalProperties = new Dictionary<string, string?>(numberOfProperties);
ExtendedBuildErrorEventArgs.cs (1)
21public Dictionary<string, string?>? ExtendedMetadata { get; set; }
ExtendedBuildMessageEventArgs.cs (1)
21public Dictionary<string, string?>? ExtendedMetadata { get; set; }
ExtendedBuildWarningEventArgs.cs (1)
21public Dictionary<string, string?>? ExtendedMetadata { get; set; }
ExtendedCriticalBuildMessageEventArgs.cs (1)
21public Dictionary<string, string?>? ExtendedMetadata { get; set; }
ExtendedCustomBuildEventArgs.cs (1)
21public Dictionary<string, string?>? ExtendedMetadata { get; set; }
Features.cs (1)
43private static readonly Dictionary<string, FeatureStatus> _featureStatusMap = new Dictionary<string, FeatureStatus>
IExtendedBuildEventArgs.cs (1)
25Dictionary<string, string?>? ExtendedMetadata { get; set; }
InsertionBehavior.cs (1)
16/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
ITranslator.cs (5)
320void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer); 333void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys); 337void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer); 348void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator)
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)
SegmentedDictionary`2.cs (1)
25/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
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>(); 53var properties = new Dictionary<string, string>();
Telemetry\BuildTelemetry.cs (1)
100var properties = new Dictionary<string, string>();
Telemetry\LoggingConfigurationTelemetry.cs (1)
103var properties = new Dictionary<string, string>();
XamlTypes\ContentType.cs (4)
23private Lazy<Dictionary<string, string>> _metadata; 33_metadata = new Lazy<Dictionary<string, string>>(this.InitializeMetadata, System.Threading.LazyThreadSafetyMode.ExecutionAndPublication); 157private Dictionary<string, string> InitializeMetadata() 159var metadata = new Dictionary<string, string>(this.Metadata.Count, StringComparer.OrdinalIgnoreCase);
XamlTypes\Rule.cs (2)
360public Dictionary<string, object> Metadata { get; set; } 497var map = new Dictionary<string, BaseProperty>(this.Properties.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Framework.UnitTests (3)
BuildCheckTracingEventArgs_Tests.cs (1)
28Dictionary<string, TimeSpan> stats = new() { { key1, span1 }, { key2, span2 }, { key3, span3 } };
BuildSubmissionStartedEventArgs_Tests.cs (1)
20var globalVariables = new Dictionary<string, string?>
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.Build.Tasks.CodeAnalysis (2)
MapSourceRoots.cs (2)
92var rootByItemSpec = new Dictionary<string, ITaskItem>(); 123var topLevelMappedPaths = new Dictionary<string, string>();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (5)
TargetTests.cs (1)
956static void addTask(Project proj, string taskName, Dictionary<string, string> parameters)
TestUtilities\MSBuildUtil.cs (1)
29public static ITaskItem CreateTaskItem(string fileName, Dictionary<string, string> metadata)
TestUtilities\SimpleTaskItem.cs (3)
16public Dictionary<string, string> Metadata { get; } 22internal SimpleTaskItem(string itemSpec, Dictionary<string, string> metadata) 45var map = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.Core (141)
AssemblyDependency\GenerateBindingRedirects.cs (1)
363var map = new Dictionary<AssemblyName, string>();
AssemblyDependency\Reference.cs (2)
27private Dictionary<string, ITaskItem> _sourceItems = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 76private Dictionary<string, UnificationVersion> _preUnificationVersions = new Dictionary<string, UnificationVersion>(StringComparer.OrdinalIgnoreCase);
AssemblyDependency\ReferenceTable.cs (21)
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); 78private readonly Dictionary<string, ITaskItem> _resolvedSDKReferences; 370internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1367var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1373var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 1461private static void AddToDependencyGraph(Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName, Reference assemblyReference) 1481private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension, Reference> goodReferences, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference) 1565private static void RemoveDependencies(Reference removedReference, Dictionary<AssemblyNameExtension, Reference> referenceList, Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyList) 1798private void ResolveConflictsBetweenReferences(Dictionary<string, List<AssemblyNameReference>> baseNameToReferences) 1843Dictionary<string, List<AssemblyNameReference>> baseNameToReferences = BuildSimpleNameTable(); 1859var fullNameToReference = new Dictionary<string, AssemblyNameReference>(References.Count, StringComparer.OrdinalIgnoreCase); 2172private Dictionary<string, List<AssemblyNameReference>> BuildSimpleNameTable() 2176var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase); 2202Dictionary<string, List<AssemblyNameReference>> baseNameToReferences) 2736Dictionary<string, string> nonForwardableMetadata = null; 3019private static Dictionary<string, string> RemoveNonForwardableMetadata(ITaskItem item) 3021Dictionary<string, string> removedMetadata = new Dictionary<string, string>(); 3032private static void RemoveMetadatum(string key, ITaskItem item, Dictionary<string, string> removedMetadata) 3149internal bool MarkReferencesForExclusion(Dictionary<string, string> exclusionList)
AssemblyDependency\ResolveAssemblyReference.cs (4)
217private Dictionary<string, MessageImportance> _showAssemblyFoldersExLocations = new Dictionary<string, MessageImportance>(StringComparer.OrdinalIgnoreCase); 2212Dictionary<string, string> exclusionList = null; 2752private void HandleProfile(AssemblyTableInfo[] installedAssemblyTableInfo, out AssemblyTableInfo[] fullRedistAssemblyTableInfo, out Dictionary<string, string> exclusionList, out RedistList fullFrameworkRedistList) 3022Dictionary<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); 207var eulas = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.Ordinal); 254private static void Merge(Dictionary<string, Product> output, Dictionary<string, Product> input) 262private static void AddProduct(Dictionary<string, Product> output, Product product) 272var builtProducts = new Dictionary<string, ProductBuilder>(); 273var productsAndIncludes = new Dictionary<string, Product>(); 292Dictionary<string, Product> includes = GetIncludedProducts(builder.Product); 618var availableProducts = new Dictionary<string, Product>(StringComparer.Ordinal); 620var buildQueue = new Dictionary<string, Product>(StringComparer.Ordinal); 650private void AddDependencies(Product p, Dictionary<string, Product> availableProducts) 697private void AddIncludes(Product p, Dictionary<string, Product> availableProducts) 734private void OrderProducts(Dictionary<string, Product> availableProducts, Dictionary<string, Product> buildQueue) 785private static void RemoveDependency(Dictionary<string, Product> availableProducts, Product product) 1361private bool BuildPackages(BuildSettings settings, XmlElement configElement, ResourceUpdater resourceUpdater, List<string> filesCopied, Dictionary<string, KeyValuePair<string, string>> eulas) 2206private static Dictionary<string, Product> GetIncludedProducts(Product product) 2208var includedProducts = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase) 2225private 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)
464var filesActuallyCopied = new Dictionary<string, string>( 543var 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); 100private List<ITaskItem> CreateOutputItems(Dictionary<string, string> metadataTable, Dictionary<string, string> excludeItems) 213private static Dictionary<string, string> GetUniqueItems(ITaskItem[] items) 215var uniqueItems = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
CreateManifestResourceName.cs (1)
33protected Dictionary<string, ITaskItem> itemSpecToTaskitem = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
FileIO\GetFileHash.cs (1)
26internal static readonly Dictionary<string, Func<HashAlgorithm>> SupportedAlgorithms
FileMatcher.cs (2)
818Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs, 2400Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs = null;
GenerateResource.cs (1)
3878public 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)
ManifestUtil\ApplicationManifest.cs (4)
434var clsidList = new Dictionary<string, ComInfo>(); 435var tlbidList = new Dictionary<string, ComInfo>(); 566var usedExtensions = new Dictionary<string, FileAssociation>(StringComparer.OrdinalIgnoreCase); 643var targetPathList = new Dictionary<string, bool>();
ManifestUtil\AssemblyIdentity.cs (1)
386var redistDictionary = new Dictionary<string, RedistList>();
ManifestUtil\Manifest.cs (1)
625var identityList = new Dictionary<string, bool>();
ManifestUtil\Util.cs (1)
429var list = new Dictionary<string, ITaskItem>();
MSBuild.cs (7)
214if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable)) 371private bool BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects) 479Dictionary<string, string> propertiesTable, 498var projectProperties = new Dictionary<string, string>[projects.Count]; 520out Dictionary<string, string> preProjectPropertiesTable)) 560out Dictionary<string, string> additionalProjectPropertiesTable)) 564var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
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);
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)
ReadOnlyEmptyDictionary.cs (1)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>();
RedistList.cs (12)
38private static readonly Dictionary<string, RedistList> s_cachedRedistList = new Dictionary<string, RedistList>(StringComparer.OrdinalIgnoreCase); 42private static Dictionary<string, string[]> s_redistListPathCache; 70private readonly ConcurrentDictionary<string, Dictionary<string, string>> _cachedDenyList = new ConcurrentDictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase); 116var simpleNameMap = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 523internal Dictionary<string, string> GenerateDenyList(AssemblyTableInfo[] allowListAssemblyTableInfo, List<Exception> allowListErrors, List<string> allowListErrorFileNames) 545if (!_cachedDenyList.TryGetValue(key, out Dictionary<string, string> returnTable)) 625var denyListOfAssemblyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 658var assemblyEntries = new Dictionary<string, AssemblyEntry>(StringComparer.OrdinalIgnoreCase); 784private static void ParseFileListSection(AssemblyTableInfo assemblyTableInfo, string path, string redistName, XmlReader reader, Dictionary<string, AssemblyEntry> assemblyEntries, List<AssemblyRemapping> remapEntries) 830var attributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 969private static Dictionary<string, string[]> s_subsetListPathCache;
ResolveManifestFiles.cs (6)
56private Dictionary<string, ITaskItem> _runtimePackAssets; 505var outputAssembliesMap = outputAssemblies.ToDictionary(p => Path.GetFullPath(p.ItemSpec), StringComparer.OrdinalIgnoreCase); 830private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(); 831private readonly Dictionary<string, MapEntry> _simpleNameDictionary = new Dictionary<string, MapEntry>(); 895private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(StringComparer.InvariantCultureIgnoreCase); 943private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
ResolveSDKReference.cs (9)
31private static readonly Dictionary<string, string> PlatformAliases = new(StringComparer.OrdinalIgnoreCase) 107private Dictionary<string, string> _runtimeReferenceOnlyDependenciesByName; 296var sdkItems = new Dictionary<string, ITaskItem>(InstalledSDKs.Length, StringComparer.OrdinalIgnoreCase); 328var productFamilyNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 331var sdkNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 475internal static void AddMetadataToReferences(TaskLoggingHelper log, HashSet<SDKReference> sdkReferenceItems, Dictionary<string, string> referencesToAddMetadata, string metadataName, string metadataValue) 879private Dictionary<string, string> FrameworkIdentitiesFromManifest { get; } 894private Dictionary<string, string> AppxLocationsFromManifest { get; } 908public 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)
23var aliases = new Dictionary<string, string>(); 56private static void ParseAssemblyAlias(Dictionary<string, string> aliases, XElement elem) 82private static string GetFullTypeNameFromAlias(string aliasedTypeName, Dictionary<string, string> aliases) 109Dictionary<string, string> aliases,
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
system.design\stronglytypedresourcebuilder.cs (6)
114internal static CodeCompileUnit Create(Dictionary<string, IResource> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable) 121var resourceTypes = new Dictionary<String, ResourceData>(StringComparer.InvariantCultureIgnoreCase); 136private static CodeCompileUnit InternalCreate(Dictionary<String, ResourceData> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable) 156SortedList<string, ResourceData> cleanedResourceList = VerifyResourceNames(resourceList, codeProvider, errors, out Dictionary<string, string> reverseFixupTable); 715Dictionary<String, ResourceData> resourceList, 718out 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); 612Dictionary<string, FileState> oldFileStateCache = instanceLocalOutgoingFileStateCache;
Tracing.cs (1)
28private static Dictionary<string, int> s_counts;
TranslatorHelpers.cs (1)
85ref Dictionary<string, T> dictionary,
WriteCodeFragment.cs (1)
299Dictionary<string, ParameterType> parameterTypes = null;
Microsoft.Build.Tasks.UnitTests (30)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (5)
102Dictionary<string, SystemState.FileState> cache = new() { 129Dictionary<string, SystemState.FileState> cache2 = sysState2.instanceLocalFileStateCache; 145Dictionary<string, SystemState.FileState> cache = new() { 166Dictionary<string, SystemState.FileState> cache2 = sysState2.instanceLocalFileStateCache; 174Dictionary<string, SystemState.FileState> cache = new() {
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
50internal static Dictionary<string, int> uniqueFileExists = null; 51internal static Dictionary<string, int> uniqueGetAssemblyName = null;
AssignTargetPath_Tests.cs (1)
95Dictionary<string, string> metaData = new Dictionary<string, string>();
FindInvalidProjectReferences_Tests.cs (4)
28Dictionary<string, string> proj1 = new Dictionary<string, string>(); 31Dictionary<string, string> proj2 = new Dictionary<string, string>(); 34Dictionary<string, string> proj3 = new Dictionary<string, string>(); 37Dictionary<string, string> proj4 = new Dictionary<string, string>();
GetInstalledSDKLocations_Tests.cs (3)
289Dictionary<string, string> sdksAndVersions = new Dictionary<string, string>(); 336Dictionary<string, string> extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 410Dictionary<string, string> extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
GetSDKReference_Tests.cs (2)
267Dictionary<string, GetSDKReferenceFiles.SdkReferenceInfo> pathToReferenceMetadata = new(); 270Dictionary<string, List<string>> directoryToFileList = new();
MockUnmanagedMemoryHelper.cs (1)
25private Dictionary<IntPtr, List<IntPtr>> _dependentAllocations = new Dictionary<IntPtr, List<IntPtr>>();
PropertyParser_Tests.cs (10)
17Assert.True(PropertyParser.GetTable(null, "Properties", null, out Dictionary<string, string> propertiesTable)); 29new[] { "Configuration=Debug" }, out Dictionary<string, string> propertiesTable)); 46new[] { "Configuration=Debug", "Platform=AnyCPU", "VBL=Lab22Dev" }, out Dictionary<string, string> propertiesTable)); 67new[] { "Configuration = Debug", "Platform \t= AnyCPU" }, out Dictionary<string, string> propertiesTable)); 86new[] { "Configuration=", "Platform = " }, out Dictionary<string, string> propertiesTable)); 124new[] { "DependsOn = Clean; Build" }, out Dictionary<string, string> propertiesTable)); 141new[] { "Depends On = CleanBuild" }, out Dictionary<string, string> propertiesTable)); 156new[] { "Configuration = Debug", "Platform = Any CPU" }, out Dictionary<string, string> propertiesTable)); 173new[] { "WarningsAsErrors = 1234", "5678", "9999", "Configuration=Debug" }, out Dictionary<string, string> propertiesTable)); 190new[] { @"OutDir=c:\Rajeev;s Stuff\binaries", "Configuration=Debug" }, out Dictionary<string, string> propertiesTable));
ResolveSDKReference_Tests.cs (1)
333Dictionary<string, string> dict = new Dictionary<string, string>();
ResourceHandling\GenerateResource_Tests.cs (1)
3636Dictionary<string, object> valuesFromResource = new Dictionary<string, object>();
Microsoft.Build.UnitTests.Shared (30)
MockEngine.cs (3)
61public Dictionary<string, string> GlobalProperties { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 236var finalGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 305Dictionary<string, string> finalGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ObjectModelHelpers.cs (18)
121public static void AssertItemEvaluationFromProject(string projectContents, string[] inputFiles, string[] expectedInclude, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false, bool makeExpectedIncludeAbsolute = false) 138public static void AssertItemEvaluationFromGenericItemEvaluator(Func<string, ProjectCollection, IList<ITestItem>> itemEvaluator, string projectContents, string[] inputFiles, string[] expectedInclude, bool makeExpectedIncludeAbsolute = false, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false) 247public static void AssertItems(string[] expectedItems, ICollection<ProjectItem> items, Dictionary<string, string> expectedDirectMetadata = null, bool normalizeSlashes = false) 256public static void AssertItems(string[] expectedItems, IList<ITestItem> items, Dictionary<string, string> expectedDirectMetadata = null, bool normalizeSlashes = false) 264var metadata = new Dictionary<string, string>[expectedItems.Length]; 274public static void AssertItems(string[] expectedItems, IList<ProjectItem> items, Dictionary<string, string>[] expectedDirectMetadataPerItem, bool normalizeSlashes = false) 280public static void AssertItems(string[] expectedItems, IList<ITestItem> items, Dictionary<string, string>[] expectedDirectMetadataPerItem, bool normalizeSlashes = false) 457public static void AssertItemHasMetadata(Dictionary<string, string> expected, ProjectItem item) 468public static void AssertItemHasMetadata(Dictionary<string, string> expected, ITestItem item) 1227public static Dictionary<string, V> MakeDictionary<V>(IEnumerable<KeyValuePair<string, V>> enumerable) 1229Dictionary<string, V> dictionary = new Dictionary<string, V>(StringComparer.OrdinalIgnoreCase); 1342public static MockLogger BuildProjectWithNewOMExpectSuccess(string content, Dictionary<string, string> globalProperties = null, MockLogger logger = null) 1353private static void BuildProjectWithNewOM(string content, ref MockLogger logger, out bool result, bool allowTaskCrash, Dictionary<string, string> globalProperties = null) 1684Dictionary<string, string[]> projectReferenceTargets = null, 1692Dictionary<string, string[]> projectReferenceTargets = null, 1751var nodes = new Dictionary<int, (bool IsRoot, string ProjectPath)>(); 2092Dictionary<string, string> globalProperties = null) 2101Dictionary<string, string> globalProperties = null)
TestEnvironment.cs (9)
20using TempPaths = System.Collections.Generic.Dictionary<string, string>; 560private readonly TempPaths _oldtempPaths; 572private static TempPaths SetTempPath(string tempPath) 574var oldTempPaths = GetTempPaths(); 584private static TempPaths SetTempPaths(TempPaths tempPaths) 586var oldTempPaths = GetTempPaths(); 596private static TempPaths GetTempPaths() 598var tempPaths = new TempPaths
Microsoft.Build.Utilities.Core (31)
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
FileMatcher.cs (2)
818Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs, 2400Dictionary<string, List<RecursionState>> searchesToExcludeInSubdirs = null;
MuxLogger.cs (2)
58private readonly Dictionary<int, SubmissionRecord> _submissionRecords = new Dictionary<int, SubmissionRecord>(); 93private readonly Dictionary<int, int> _submissionProjectsInProgress = new Dictionary<int, int>();
ReadOnlyEmptyDictionary.cs (1)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>();
TargetPlatformSDK.cs (2)
119internal Dictionary<string, string> ExtensionSDKs { get; } 124internal Dictionary<string, string> Platforms { get; }
ToolLocationHelper.cs (16)
212private static Dictionary<string, string> s_chainedReferenceAssemblyPath; 222private static Dictionary<string, IList<string>> s_cachedReferenceAssemblyPaths; 228private static Dictionary<string, FrameworkNameVersioning> s_cachedHighestFrameworkNameForTargetFrameworkIdentifier; 233private static Dictionary<string, IEnumerable<TargetPlatformSDK>> s_cachedTargetPlatforms; 238private static Dictionary<string, TargetPlatformSDK> s_cachedExtensionSdks; 245private static Dictionary<string, string> s_cachedTargetFrameworkDisplayNames; 253private static Dictionary<string, string[]> s_cachedTargetPlatformReferences; 258private static Dictionary<string, string[]> s_cachedExtensionSdkReferences; 268private static Dictionary<string, string[]> s_vsInstallFolders; 399var extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 445var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase); 619var filteredExtensionSdks = new Dictionary<string, string>(); 2460var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 2573internal static void GatherSDKListFromDirectory(List<string> diskroots, Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformSDKs) 2667internal static void GatherSDKsFromRegistryImpl(Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformMonikers, string registryKeyRoot, RegistryView registryView, RegistryHive registryHive, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, OpenBaseKey openBaseKey, FileExists fileExists) 2858private static void GatherSDKListFromRegistry(string registryRoot, Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformMonikers)
ToolsetElement.cs (3)
171private Dictionary<string, string> _previouslySeenOS = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 346private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 525private Dictionary<string, string> _previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ToolTask.cs (3)
282protected virtual Dictionary<string, string> EnvironmentOverride => null; 672Dictionary<string, string> envOverrides = EnvironmentOverride; 1519Dictionary<string, string> envOverrides = EnvironmentOverride;
Tracing.cs (1)
28private static Dictionary<string, int> s_counts;
Microsoft.Build.Utilities.UnitTests (6)
TaskItem_Tests.cs (1)
330Dictionary<string, string> metadata = new()
ToolLocationHelper_Tests.cs (5)
3080var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3092var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3107var targetPlatform = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 3788var targetPlatforms = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>(); 4057var targetPlatforms = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>();
Microsoft.Cci.Extensions (14)
Extensions\TypeExtensions.cs (1)
448private static Dictionary<string, string> s_tokenNames = new Dictionary<string, string>()
Filters\BaselineDifferenceFilter.cs (1)
14private readonly Dictionary<string, bool> _ignoreDifferences = new Dictionary<string, bool>();
Mappings\AssemblyMapping.cs (2)
13private readonly Dictionary<INamespaceDefinition, NamespaceMapping> _namespaces; 14private Dictionary<string, ElementMapping<AssemblyProperty>> _properties;
Mappings\AssemblySetMapping.cs (2)
11private readonly Dictionary<IAssembly, AssemblyMapping> _assemblies; 12private readonly Dictionary<INamespaceDefinition, NamespaceMapping> _namespaces;
Mappings\AttributesMapping.cs (1)
16private Dictionary<string, ElementMapping<AttributeGroup>> _attributes;
Mappings\NamespaceMapping.cs (1)
14private readonly Dictionary<ITypeDefinition, TypeMapping> _types;
Mappings\TypeMapping.cs (2)
13private readonly Dictionary<ITypeDefinitionMember, MemberMapping> _members; 14private readonly Dictionary<INestedTypeDefinition, TypeMapping> _nestedTypes;
SRMetadataPEReaderCache.cs (1)
19private Dictionary<string, (FileStream, PEReader)> _cache = null;
Traversers\DependencyTraverser.cs (1)
16private readonly Dictionary<IDefinition, HashSet<IReference>> _dependencies;
Traversers\DocIdToTypeMappingTraverser.cs (1)
11private readonly Dictionary<string, ITypeDefinition> _typesIdMap;
Traversers\ResolveAllReferencesTraverser.cs (1)
14private Dictionary<IReference, HashSet<IReference>> _missingDependencies;
Microsoft.CodeAnalysis (234)
Binding\AbstractLookupSymbolsInfo.cs (1)
231private readonly Dictionary<string, UniqueSymbolOrArities> _nameMap;
CodeGen\CompilationTestData.cs (1)
68var map = new Dictionary<string, MethodData>();
CodeGen\LocalSlotManager.cs (3)
65private Dictionary<ILocalSymbolInternal, LocalDefinition>? _localMap; 90private Dictionary<ILocalSymbolInternal, LocalDefinition> LocalMap 94var map = _localMap;
CodeGen\SwitchStringJumpTableEmitter.cs (7)
108Dictionary<uint, HashBucket> stringHashMap = ComputeStringHashMap( 114Dictionary<uint, object> hashBucketLabelsMap = EmitHashBucketJumpTable(stringHashMap); 130private Dictionary<uint, object> EmitHashBucketJumpTable(Dictionary<uint, HashBucket> stringHashMap) 133var hashBucketLabelsMap = new Dictionary<uint, object>(count); 183private static Dictionary<uint, HashBucket> ComputeStringHashMap( 188var stringHashMap = new Dictionary<uint, HashBucket>(caseLabels.Length);
Collections\DictionaryExtensions.cs (3)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary,
Collections\IdentifierCollection.cs (1)
27private readonly Dictionary<string, object> _map = new Dictionary<string, object>(
Collections\ImmutableArrayExtensions.cs (7)
786this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 1075internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 1103(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1137internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1138(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
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)
1315internal ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(string? fullPath, out Dictionary<string, ReportDiagnostic> diagnosticOptions, IList<Diagnostic> diagnostics)
CommandLine\CommonCompiler.cs (1)
432var 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)
28private readonly Dictionary<DiagnosticAnalyzer, TimeSpan>? _analyzerExecutionTimeOpt; 30private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByTree; 31private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSemanticAnalyzersByTree; 32private readonly Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByAdditionalFile; 33private readonly Dictionary<DiagnosticAnalyzer, AnalyzerActionCounts> _analyzerActionCounts; 36private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSemanticDiagnosticsOpt = null; 37private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSyntaxDiagnosticsOpt = null; 38private Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localAdditionalFileDiagnosticsOpt = null; 39private Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? _nonLocalDiagnosticsOpt = null; 52private static Dictionary<DiagnosticAnalyzer, TimeSpan> CreateAnalyzerExecutionTimeMap(ImmutableArray<DiagnosticAnalyzer> analyzers) 54var map = new Dictionary<DiagnosticAnalyzer, TimeSpan>(analyzers.Length); 108var completedAnalyzersByTree = syntax ? _completedSyntaxAnalyzersByTree : _completedSemanticAnalyzersByTree; 134var completedAnalyzersByTree = syntax ? _completedSyntaxAnalyzersByTree : _completedSemanticAnalyzersByTree; 331ref Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics) 339lazyLocalDiagnostics = lazyLocalDiagnostics ?? new Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>(); 349Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? allDiagnostics; 442Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics, 449foreach (var localDiagsByTree in lazyLocalDiagnostics.Values) 457Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 463Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 469Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics, 475Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? diagnosticsForTree; 483Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder> diagnostics, 526Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnosticsOpt) 562Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? nonLocalDiagnosticsOpt)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
42private readonly Dictionary<string, DirectoryLoadContext> _loadContextByDirectory = new Dictionary<string, DirectoryLoadContext>(StringComparer.Ordinal);
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (3)
51private readonly Dictionary<string, (AssemblyName? AssemblyName, string RealAssemblyPath)?> _analyzerAssemblyInfoMap = new(); 61private readonly Dictionary<(string OriginalAnalyzerPath, CultureInfo CultureInfo), string?> _analyzerSatelliteAssemblyRealPaths = new(); 70private readonly Dictionary<string, ImmutableHashSet<string>> _knownAssemblyPathsBySimpleName = new(StringComparer.OrdinalIgnoreCase);
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
247private Dictionary<SyntaxTree, ImmutableHashSet<ISymbol>>? _lazyGeneratedCodeSymbolsForTreeMap; 252private Dictionary<SyntaxTree, ImmutableHashSet<ISymbol>> GeneratedCodeSymbolsForTreeMap
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
227Dictionary<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)
30private readonly Dictionary<DiagnosticAnalyzer, AnalyzerExecutionContext> _analyzerExecutionContextMap; 42private Dictionary<DiagnosticAnalyzer, AnalyzerExecutionContext> CreateAnalyzerExecutionContextMap(IEnumerable<DiagnosticAnalyzer> analyzers) 44var 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 (6)
46private readonly Dictionary<string, SuppressMessageInfo> _compilationWideSuppressions = new Dictionary<string, SuppressMessageInfo>(); 47private readonly Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>> _globalSymbolSuppressions = new Dictionary<ISymbol, Dictionary<string, SuppressMessageInfo>>(); 56Dictionary<string, SuppressMessageInfo>? suppressions; 76Dictionary<string, SuppressMessageInfo>? suppressions;
Emit\EditAndContinue\DefinitionMap.cs (4)
67var mappedMethods = new Dictionary<IMethodSymbolInternal, EncMappedMethod>(); 190var declaratorToIndex = new Dictionary<SyntaxNode, int>(); 499var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>(); 500var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.Instance);
Emit\EditAndContinue\DeletedSourceDefinition.cs (2)
19private readonly Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> _typesUsedByDeletedMembers; 29protected DeletedSourceDefinition(T oldDefinition, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
17public DeletedSourceGenericParameter(IGenericMethodParameter oldParameter, DeletedSourceMethodDefinition method, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (1)
21public DeletedSourceMethodDefinition(IMethodDefinition oldMethod, MethodDefinitionHandle handle, ImmutableArray<byte> bodyIL, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeletedSourceParameterDefinition.cs (1)
16public DeletedSourceParameterDefinition(IParameterDefinition oldParameter, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
20public DeletedSourceTypeDefinition(ITypeDefinition oldDefinition, Dictionary<ITypeDefinition, DeletedSourceTypeDefinition> typesUsedByDeletedMembers)
Emit\EditAndContinue\DeltaMetadataWriter.cs (15)
37private readonly Dictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>> _deletedTypeMembers; 46private readonly Dictionary<IParameterDefinition, IMethodDefinition> _parameterDefList; 54private readonly Dictionary<EntityHandle, ImmutableArray<int>> _customAttributesAdded; 59private readonly Dictionary<IParameterDefinition, int> _existingParameterDefs; 60private readonly Dictionary<MethodDefinitionHandle, int> _firstParamRowMap; 69private readonly Dictionary<IMethodDefinition, AddedOrChangedMethodInfo> _addedOrChangedMethods; 172var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>(); 197var generationOrdinals = CreateDictionary(_previousGeneration.GenerationOrdinals, SymbolEquivalentEqualityComparer.Instance); 239private static Dictionary<K, V> CreateDictionary<K, V>(IReadOnlyDictionary<K, V> dictionary, IEqualityComparer<K>? comparer) 242var result = new Dictionary<K, V>(comparer); 264var result = CreateDictionary(previous, comparer); 497var result = new Dictionary<ITypeDefinition, ArrayBuilder<IMethodDefinition>>(ReferenceEqualityComparer.Instance); 498var typesUsedByDeletedMembers = new Dictionary<ITypeDefinition, DeletedSourceTypeDefinition>(ReferenceEqualityComparer.Instance); 1446protected readonly Dictionary<T, int> added; // Definitions added in this generation. 1540private 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)
356var changesBuilder = new Dictionary<ISymbolInternal, SymbolChange>(); 357var updatedMethodsBuilder = new Dictionary<INamedTypeSymbolInternal, ArrayBuilder<(IMethodSymbolInternal oldMethod, IMethodSymbolInternal newMethod)>>(); 359var lazyDeletedMembersBuilder = (Dictionary<ISymbolInternal, ArrayBuilder<ISymbolInternal>>?)null; 477private static void AddContainingSymbolChanges(Dictionary<ISymbolInternal, SymbolChange> changes, ISymbolInternal symbol)
Emit\EditAndContinue\SymbolMatcher.cs (2)
79var result = new Dictionary<K, V>(Cci.SymbolEquivalentEqualityComparer.Instance); 98var result = new Dictionary<int, AddedOrChangedMethodInfo>();
InternalUtilities\ConcurrentLruCache.cs (1)
28private readonly Dictionary<K, CacheValue> _cache;
InternalUtilities\EnumerableExtensions.cs (2)
759internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 762var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
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; 278public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
MetadataReader\MetadataHelpers.cs (1)
885var names = new Dictionary<string, int>(nestedNamespaces.Count, nameComparer);
MetadataReader\PEAssembly.cs (3)
55private Dictionary<string, List<ImmutableArray<byte>>> _lazyInternalsVisibleToMap; 132private Dictionary<string, List<ImmutableArray<byte>>> BuildInternalsVisibleToMap() 134var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase);
MetadataReader\PEModule.cs (10)
49private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>(); 50private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(); 58private Dictionary<string, (int FirstIndex, int SecondIndex)> _lazyForwardedTypesToAssemblyIndexMap; 65private Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> _lazyCaseInsensitiveForwardedTypesToAssemblyIndexMap; 673Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>>(); 739private void GetTypeNamespaceNamesOrThrow(Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces) 742var namespaceHandles = new Dictionary<NamespaceDefinitionHandle, ArrayBuilder<TypeDefinitionHandle>>(NamespaceHandleEqualityComparer.Singleton); 819private void GetForwardedTypeNamespaceNamesOrThrow(Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces) 3793var caseInsensitiveMap = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(StringComparer.OrdinalIgnoreCase); 3816Dictionary<string, (int FirstIndex, int SecondIndex)>? typesToAssemblyIndexMap = null;
MetadataReference\AssemblyIdentityMap.cs (1)
20private readonly Dictionary<string, OneOrMany<KeyValuePair<AssemblyIdentity, TValue>>> _map;
NativePdbWriter\PdbWriter.cs (2)
33private readonly Dictionary<DebugSourceDocument, int> _documentIndex; 39private readonly Dictionary<object, string> _qualifiedNameCache;
Operations\ControlFlowGraphBuilder.cs (1)
7975var 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)
28private readonly Dictionary<ITypeDefinition, int> _fieldDefIndex; 29private readonly Dictionary<ITypeDefinition, int> _methodDefIndex;
PEWriter\MetadataWriter.cs (14)
84private readonly Dictionary<(ImmutableArray<byte>, bool), int> _smallMethodBodies; 439private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 440private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance); 441private readonly Dictionary<string, int> _fileRefIndex = new Dictionary<string, int>(32); // more than enough in most cases, value is a RowId 443private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(ReferenceEqualityComparer.Instance); 446private readonly Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>> _signatureIndex; 448private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>(); 450private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(ReferenceEqualityComparer.Instance); 4244private readonly Dictionary<T, int> _index; 4251private HeapOrReferenceIndex(MetadataWriter writer, Dictionary<T, int> index, int lastRowId) 4271private readonly Dictionary<ITypeReference, int> _index; 4278private TypeReferenceIndex(MetadataWriter writer, Dictionary<ITypeReference, int> index, int lastRowId) 4298private readonly Dictionary<T, int> _instanceIndex; 4299private 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)
212[Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName, 232Dictionary<MetadataReference, MergedAliases>? lazyAliasMap = null; 235var boundReferences = new Dictionary<MetadataReference, MetadataReference>(MetadataReferenceEqualityComparer.Instance); 439private static ResolvedReference GetResolvedReferenceAndFreePropertyMapEntry(MetadataReference reference, int index, MetadataImageKind kind, Dictionary<MetadataReference, MergedAliases>? propertyMapOpt) 610private void MergeReferenceProperties(MetadataReference primaryReference, MetadataReference newReference, DiagnosticBag diagnostics, ref Dictionary<MetadataReference, MergedAliases>? lazyAliasMap) 669Dictionary<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)
80private static readonly Dictionary<string, ExtendedSpecialType> s_nameToTypeIdMap;
src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
16/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
27/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
WellKnownTypes.cs (1)
698private static readonly Dictionary<string, WellKnownType> s_nameToTypeIdMap = new Dictionary<string, WellKnownType>((int)Count);
Microsoft.CodeAnalysis.CodeStyle (146)
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
24private static readonly Dictionary<(bool includeInFixAll, string equivalenceKey), ImmutableDictionary<string, string?>> s_cachedProperties = [];
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\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\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\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\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
93private readonly Dictionary<ISymbol, ValueUsageInfo> _symbolValueUsageStateMap = [];
src\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary,
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (7)
786this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 1075internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 1103(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1137internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1138(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
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\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
759internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 762var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
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; 278public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
16/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
27/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
12Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 13Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 17public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 20public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (3)
566Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 587Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 609Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
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>(); 859var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 861var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
30private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 225private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
506public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
46protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 104var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
349var previousChangesMap = new Dictionary<SyntaxToken, int>(); 376var previousChangesMap = new Dictionary<SyntaxToken, int>();
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\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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
20private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (4)
20var trimmedDictionary = TrimDictionary(allRawConventions); 25var ruleNames = new Dictionary<(Guid symbolSpecificationID, Guid namingStyleID, ReportDiagnostic enforcementLevel), string>(); 103internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 105var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
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\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\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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
566private static int GetValue(Dictionary<char, int> da, char c)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
17private readonly Dictionary<string, object> _eventNameToRegistries = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ICollectionExtensions.cs (1)
54public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
19private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (3)
147public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 162public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 168private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
21public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 64private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 72internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 75internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 111private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 139private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 151private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 169private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 280private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 300private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 329private 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) 615private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
21Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
16public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
82var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
183var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
38public readonly Dictionary<ITypeSymbol, ITypeSymbol> Substitutions = [];
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
57if (!_helpers.TryGetOrComputePreferredOrder(option.Value, out var preferredOrder))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
56var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 110var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\NameGenerator.cs (1)
94using var collisionMapPool = (isCaseSensitive ? SharedPools.Default<Dictionary<string, bool>>() : SharedPools.StringIgnoreCaseDictionary<bool>()).GetPooledObject();
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Workspaces\CoreTestUtilities\OptionsCollection.cs (1)
30private readonly Dictionary<OptionKey2, object?> _options = [];
Microsoft.CodeAnalysis.Collections.Package (2)
Internal\InsertionBehavior.cs (1)
16/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
SegmentedDictionary`2.cs (1)
27/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
Microsoft.CodeAnalysis.CSharp (193)
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\Binder_Constraints.cs (1)
43var names = new Dictionary<string, int>(n, StringOrdinalComparer.Instance);
Binder\DecisionDagBuilder.cs (1)
815Dictionary<DagState, DagState> uniqueState)
Binder\PatternExplainer.cs (10)
197gatherConstraintsAndEvaluations(targetNode, shortestPathToNode, out var constraints, out var evaluations); 220gatherConstraintsAndEvaluations(targetNode, currentPathToNode, out var constraints, out var evaluations); 245out Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>> constraints, 246out Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>> evaluations) 293Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest test, bool sense)>> constraintMap, 294Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>> evaluationMap, 311static ImmutableArray<T> getArray<T>(Dictionary<BoundDagTemp, ArrayBuilder<T>> map, BoundDagTemp temp) 533var properties = new Dictionary<Symbol, string>();
Binder\RefSafetyAnalysis.cs (3)
63private Dictionary<LocalSymbol, (uint RefEscapeScope, uint ValEscapeScope)>? _localEscapeScopes; 64private Dictionary<BoundValuePlaceholderBase, uint>? _placeholderScopes; 77Dictionary<LocalSymbol, (uint RefEscapeScope, uint ValEscapeScope)>? localEscapeScopes = null)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
212Dictionary<TypeSymbol, bool> lookedInInterfaces, ArrayBuilder<BinaryOperatorAnalysisResult> candidates)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
2851var candidates = new Dictionary<TypeWithAnnotations, TypeWithAnnotations>(EqualsIgnoringDynamicTupleNamesAndNullabilityComparer.Instance); 3291private static void GetAllCandidates(Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, ArrayBuilder<TypeWithAnnotations> builder) 3304Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, 3333Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, 3348Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, 3415Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
369Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMapOpt = null; 889private static Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> PartitionMembersByContainingType<TMember>(ArrayBuilder<TMember> members) where TMember : Symbol 891Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMap = new Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>>(); 907private static void ClearContainingTypeMap<TMember>(ref Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMapOpt) where TMember : Symbol 1052Dictionary<NamedTypeSymbol, ArrayBuilder<TMember>> containingTypeMapOpt,
Binder\SwitchBinder.cs (8)
77private Dictionary<object, SourceLabelSymbol> _lazySwitchLabelsMap; 80private Dictionary<object, SourceLabelSymbol> LabelsByValue 93private static Dictionary<object, SourceLabelSymbol> BuildLabelsByValue(ImmutableArray<LabelSymbol> labels) 97var map = new Dictionary<object, SourceLabelSymbol>(labels.Length, new SwitchConstantValueHelper.SwitchLabelsComparer()); 314var labelsMap = LabelsByValue; 449private Dictionary<SyntaxNode, LabelSymbol> _labelsByNode; 450protected Dictionary<SyntaxNode, LabelSymbol> LabelsByNode 456var result = new Dictionary<SyntaxNode, LabelSymbol>();
Binder\SwitchBinder_Patterns.cs (1)
190Dictionary<SyntaxNode, LabelSymbol> labelsByNode = LabelsByNode;
Binder\TypeofBinder.cs (3)
25private readonly Dictionary<GenericNameSyntax, bool> _allowedMap; 49private Dictionary<GenericNameSyntax, bool> _allowedMap; 57public static void Visit(ExpressionSyntax typeSyntax, out Dictionary<GenericNameSyntax, bool> allowedMap)
BoundTree\BoundNode_Source.cs (1)
24void appendSourceCore(BoundNode node, int indent, Dictionary<SynthesizedLocal, int> tempIdentifiers)
CodeGen\EmitStatement.cs (2)
1933private Dictionary<LabelSymbol, GeneratedLabelSymbol> _labelClones; 2004var labelClones = _labelClones;
CodeGen\Optimizer.cs (8)
93private static void FilterValidStackLocals(Dictionary<LocalSymbol, LocalDefUseInfo> info) 126private static void RemoveIntersectingLocals(Dictionary<LocalSymbol, LocalDefUseInfo> info, ArrayBuilder<LocalDefUseInfo> dummies) 404private readonly Dictionary<LocalSymbol, LocalDefUseInfo> _locals; 418private StackOptimizerPass1(Dictionary<LocalSymbol, LocalDefUseInfo> locals, 433Dictionary<LocalSymbol, LocalDefUseInfo> locals, 2032private readonly Dictionary<LocalSymbol, LocalDefUseInfo> _info; 2034private StackOptimizerPass2(Dictionary<LocalSymbol, LocalDefUseInfo> info) 2039public static BoundStatement Rewrite(BoundStatement src, Dictionary<LocalSymbol, LocalDefUseInfo> info)
CommandLine\CSharpCommandLineParser.cs (5)
118var diagnosticOptions = new Dictionary<string, ReportDiagnostic>(); 119var noWarns = new Dictionary<string, ReportDiagnostic>(); 120var warnAsErrors = new Dictionary<string, ReportDiagnostic>(); 2131private static void AddWarnings(Dictionary<string, ReportDiagnostic> d, ReportDiagnostic kind, ReadOnlyMemory<char> warningArgument) 2176private static void AddDiagnostic(IList<Diagnostic> diagnostics, Dictionary<string, ReportDiagnostic> warningOptions, ErrorCode errorCode, params object[] arguments)
Compilation\MemberSemanticModel.cs (3)
32private readonly Dictionary<SyntaxNode, OneOrMany<BoundNode>> _guardedBoundNodeMap = new Dictionary<SyntaxNode, OneOrMany<BoundNode>>(); 33private readonly Dictionary<SyntaxNode, IOperation> _guardedIOperationNodeMap = new Dictionary<SyntaxNode, IOperation>(); 34private 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\MergedNamespaceDeclaration.cs (1)
162var namespaceGroups = new Dictionary<string, ArrayBuilder<SingleNamespaceDeclaration>>(StringOrdinalComparer.Instance);
Declarations\MergedTypeDeclaration.cs (1)
210var 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\PEDeltaAssemblyBuilder.cs (1)
115var anonymousDelegatesWithIndexedNames = new Dictionary<AnonymousDelegateWithIndexedNamePartialKey, ArrayBuilder<AnonymousTypeValue>>();
Emitter\Model\PEModuleBuilder.cs (2)
48private Dictionary<FieldSymbol, NamedTypeSymbol> _fixedImplementationTypes; 672var exportedNamesMap = new Dictionary<string, NamedTypeSymbol>(StringOrdinalComparer.Instance);
Errors\ErrorFacts.cs (1)
98var map = new Dictionary<ErrorCode, string>()
FlowAnalysis\AbstractFlowPass.cs (1)
179private readonly Dictionary<BoundLoopStatement, TLocalState> _loopHeadState;
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (6)
255var proxyLabels = frame.proxyLabels; 759private Dictionary<BoundTryStatement, HashSet<LabelSymbol>> _labelsInInterestingTry; 819var labelsInInterestingTry = _labelsInInterestingTry; 925public Dictionary<LabelSymbol, LabelSymbol> proxyLabels; 964var proxyLabels = this.proxyLabels; 1039private readonly Dictionary<LocalSymbol, LocalSymbol> _hoistedLocals;
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (2)
60private readonly Dictionary<TypeSymbol, FieldSymbol> _awaiterFields; 63private readonly Dictionary<BoundValuePlaceholderBase, BoundExpression> _placeholderMap;
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 (1)
21private readonly Dictionary<ParameterSymbol, BoundExpression> _parameterMap = new Dictionary<ParameterSymbol, BoundExpression>();
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)
18private readonly Dictionary<(TypeSymbol?, TypeSymbol, MethodSymbol), FieldSymbol> _delegateFields = new(CLRSignatureComparer.Instance);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
25private Dictionary<MethodSymbol, DelegateCacheContainer>? _genericCacheContainers;
Lowering\LocalRewriter\LocalRewriter.cs (1)
53private 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\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\MethodToClassRewriter.cs (3)
28protected Dictionary<Symbol, CapturedSymbolReplacement> proxies = new Dictionary<Symbol, CapturedSymbolReplacement>(); 33protected readonly Dictionary<LocalSymbol, LocalSymbol> localMap = new Dictionary<LocalSymbol, LocalSymbol>(); 54private readonly Dictionary<BoundValuePlaceholderBase, BoundExpression> _placeholderMap;
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (1)
40private readonly Dictionary<LocalSymbol, BoundExpression> _boundRefLocalInitializers = new Dictionary<LocalSymbol, BoundExpression>();
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
64private Dictionary<LabelSymbol, List<StateMachineState>> _dispatches = new(); 70private Dictionary<TypeSymbol, ArrayBuilder<StateMachineFieldSymbol>>? _lazyAvailableReusableHoistedFields; 860var oldDispatches = _dispatches;
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
34protected Dictionary<Symbol, CapturedSymbolReplacement>? initialParameters; 141var proxiesBuilder = new Dictionary<Symbol, CapturedSymbolReplacement>(); 460var 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\Metadata\PE\PEModuleSymbol.cs (1)
481Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> typesDict)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (10)
30private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> s_emptyNestedTypes = 58private Dictionary<string, ImmutableArray<Symbol>> _lazyMembersByName; 64private Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> _lazyNestedTypes; 1458Dictionary<string, ImmutableArray<Symbol>> membersDict = GroupByName(members); 1460var exchangeResult = Interlocked.CompareExchange(ref _lazyMembersByName, membersDict, null); 2008private void CreateProperties(Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol, ArrayBuilder<Symbol> members) 2039Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol, 2072private PEMethodSymbol GetAccessorMethod(PEModule module, Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol, TypeDefinitionHandle typeDef, MethodDefinitionHandle methodDef) 2085private static Dictionary<string, ImmutableArray<Symbol>> GroupByName(ArrayBuilder<Symbol> symbols) 2090private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> GroupByName(ArrayBuilder<PENamedTypeSymbol> symbols)
Symbols\Metadata\PE\PENamespaceSymbol.cs (5)
30protected Dictionary<ReadOnlyMemory<char>, PENestedNamespaceSymbol> lazyNamespaces; 36protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> lazyTypes; 43private Dictionary<string, TypeDefinitionHandle> _lazyNoPiaLocalTypes; 257var namespaces = new Dictionary<ReadOnlyMemory<char>, PENestedNamespaceSymbol>(ReadOnlyMemoryOfCharComparer.Instance); 280Dictionary<string, TypeDefinitionHandle> noPiaLocalTypes = null;
Symbols\ReferenceManager.cs (9)
58public ReferenceManager(string simpleAssemblyName, AssemblyIdentityComparer identityComparer, Dictionary<MetadataReference, MetadataOrDiagnostic>? observedMetadata) 404Dictionary<MetadataReference, int> referencedAssembliesMap, referencedModulesMap; 406Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt; 458Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies = null; 542Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies) 643ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies, 720ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies, 765ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies, 844ref 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\QuickAttributeChecker.cs (1)
26private readonly Dictionary<string, QuickAttributes> _nameToAttributeMap;
Symbols\Source\SourceMemberContainerSymbol.cs (35)
206private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyMembersDictionary; 207private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyEarlyAttributeDecodingMembersDictionary; 209private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> s_emptyTypeMembers = 212private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? _lazyTypeMembers; 1300private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> GetTypeMembersDictionary() 1318private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> MakeTypeMembers(BindingDiagnosticBag diagnostics) 1321var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>(); 1566private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetEarlyAttributeDecodingMembersDictionary() 1570if (Volatile.Read(ref _lazyMembersDictionary) is Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> result) 1580Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName; 1603private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> ToNameKeyedDictionary(ImmutableArray<Symbol> symbols) 1628var dictionary = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(accumulator.Count, ReadOnlyMemoryOfCharComparer.Instance); 1745protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByName() 1755private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByNameSlow() 1760var membersDictionary = MakeAllMembers(diagnostics); 1942Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName = GetMembersByName(); 1948var methodsBySignature = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 1949var conversionsAsMethods = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2176private void CheckIndexerNameConflicts(BindingDiagnosticBag diagnostics, Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName) 2188var indexersBySignature = new Dictionary<PropertySymbol, PropertySymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2229Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2230Dictionary<PropertySymbol, PropertySymbol> indexersBySignature, 2669var instanceMap = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>(ReferenceEqualityComparer.Instance); 2686private static bool InfiniteFlatteningGraph(SourceMemberContainerTypeSymbol top, NamedTypeSymbol t, Dictionary<NamedTypeSymbol, NamedTypeSymbol> instanceMap) 2804private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> MakeAllMembers(BindingDiagnosticBag diagnostics) 2806Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName; 2830Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 2831Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> typesByName) 3573ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, 3580var membersBySignature = new Dictionary<Symbol, Symbol>(MemberSignatureComparer.PartialMethodsComparer); 3657void mergePartialMethods(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourceOrdinaryMethodSymbol currentMethod, SourceOrdinaryMethodSymbol prevMethod, BindingDiagnosticBag diagnostics) 3678void mergePartialProperties(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol currentProperty, SourcePropertySymbol prevProperty, BindingDiagnosticBag diagnostics) 3703void mergeAccessors(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, SourcePropertyAccessorSymbol? currentAccessor, SourcePropertyAccessorSymbol? prevAccessor) 3730private void DuplicateMembersByNameIfCached(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName) 3762private static void FixPartialProperty(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol part1, SourcePropertySymbol part2)
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)
Symbols\Source\SourceNamespaceSymbol_Completion.cs (1)
28var tmp = GetNameToMembersMap();
Syntax\InternalSyntax\CSharpSyntaxNode.cs (3)
252private static readonly ConditionalWeakTable<SyntaxNode, Dictionary<CodeAnalysis.SyntaxTrivia, WeakReference<SyntaxNode>>> s_structuresTable 253= new ConditionalWeakTable<SyntaxNode, Dictionary<CodeAnalysis.SyntaxTrivia, WeakReference<SyntaxNode>>>(); 278var structsInParent = s_structuresTable.GetOrCreateValue(parent);
Utilities\FirstAmongEqualsSet.cs (1)
42private readonly Dictionary<T, T> _dictionary;
Microsoft.CodeAnalysis.CSharp.CodeStyle (20)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
135Dictionary<IMethodSymbol, Diagnostic> methodToDiagnostic)
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
31Dictionary<int, int> preferredOrder,
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersHelper.cs (1)
25protected override bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (3)
387Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove) 409Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove) 466Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
43var directiveSyntaxMap = GetDirectiveInfo(directive, cancellationToken).DirectiveMap; 55var directiveConditionalMap = GetDirectiveInfo(directive, cancellationToken).ConditionalMap;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
18private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new(); 23var dictionary = DeclarationFinder.GetAllDeclarations(member);
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.LocalDeclarationMap.cs (2)
16private readonly Dictionary<string, ImmutableArray<SyntaxToken>> _dictionary; 18internal LocalDeclarationMap(Dictionary<string, ImmutableArray<SyntaxToken>> dictionary)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\AggregatedFormattingResult.cs (1)
21protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\FormattingResult.cs (1)
24protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (4)
25private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _trailingTriviaMap = []; 26private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _leadingTriviaMap = []; 31Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, 48Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
47if (!CSharpOrderModifiersHelper.Instance.TryGetOrComputePreferredOrder(preferredModifierOrder, out var preferredOrder) ||
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
63Dictionary<SyntaxToken, SyntaxToken> tokenToToken,
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
89Dictionary<SyntaxToken, SyntaxToken> replacementMap, SyntaxToken colonToken, SyntaxToken thisBaseKeyword)
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (4)
629var map = DetermineTypeParameterMapping(type, method.ReturnType); 646private static Dictionary<ITypeParameterSymbol, ITypeSymbol> DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType) 648var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>(); 653private static void DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType, Dictionary<ITypeParameterSymbol, ITypeSymbol> result)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (11)
CommandLineTests.cs (11)
83private readonly Dictionary<string, string> _responseFiles; 84private readonly Dictionary<string, string[]> _recursivePatterns; 85private readonly Dictionary<string, string[]> _patterns; 88Dictionary<string, string> responseFiles = null, 89Dictionary<string, string[]> patterns = null, 90Dictionary<string, string[]> recursivePatterns = null, 2436var expectedEmbeddedMap = new Dictionary<string, string>(); 2475private static void ValidateEmbeddedSources_Portable(Dictionary<string, string> expectedEmbeddedMap, TempDirectory dir, bool isEmbeddedPdb) 2506private static void ValidateEmbeddedSources_Windows(Dictionary<string, string> expectedEmbeddedMap, TempDirectory dir) 2536private static void ValidateWrittenSources(Dictionary<string, Dictionary<string, string>> expectedFilesMap, Encoding encoding = null)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (20)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
903private readonly Dictionary<string, SuppressionDescriptor> mapping = []; 910Dictionary<string, SuppressionDescriptor> mapping,
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (15)
21private static NamingStylePreferences ParseDictionary(Dictionary<string, string> options) 27var dictionary = new Dictionary<string, string>() 75var dictionary = new Dictionary<string, string>() 96var dictionary = new Dictionary<string, string>() 138var dictionary = new Dictionary<string, string>() 155var dictionary = new Dictionary<string, string>() 203var dictionary = new Dictionary<string, string>() 245var dictionary = new Dictionary<string, string>() 288var dictionary = new Dictionary<string, string>() 327var dictionary = new Dictionary<string, string>() 352var rule = new Dictionary<string, string>() 383var rule = new Dictionary<string, string>() 403var charpRule = new Dictionary<string, string>() 411var vbRule = new Dictionary<string, string>() 432var rule = new Dictionary<string, string>()
EditAndContinue\ActiveStatementTrackingServiceTests.cs (2)
78var spans1 = trackingSession.Test_GetTrackingSpans(); 105var spans5 = trackingSession.Test_GetTrackingSpans();
Formatting\CodeCleanupTests.cs (1)
808var map = new Dictionary<string, ImmutableArray<DiagnosticAnalyzer>>{
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Recommendations\FromKeywordRecommenderTests.cs (1)
248var experimentalFeatures = new System.Collections.Generic.Dictionary<string, string>(); // no experimental features to enable
Recommendations\IsKeywordRecommenderTests.cs (1)
145var experimentalFeatures = new System.Collections.Generic.Dictionary<string, string>(); // no experimental features to enable
Recommendations\KeywordRecommenderTests.cs (1)
17private static readonly Dictionary<SyntaxKind, AbstractSyntacticSingleKeywordRecommender> s_recommenderMap = new(SyntaxFacts.EqualityComparer);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
4747var warnings = new System.Collections.Generic.Dictionary<string, ReportDiagnostic>();
Emit\EmitErrorTests.cs (1)
304var warnOpts = new System.Collections.Generic.Dictionary<string, ReportDiagnostic>();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (31)
Attributes\AttributeTests.cs (1)
3137attrs[1].VerifyValue<object>(0, TypedConstantKind.Type, typeof(Dictionary<string, int>));
Attributes\AttributeTests_Assembly.cs (3)
182var warnings = new Dictionary<string, ReportDiagnostic>(); 214var warnings = new Dictionary<string, ReportDiagnostic>(); 430var warnings = new Dictionary<string, ReportDiagnostic>();
Attributes\AttributeTests_MarshalAs.cs (17)
26private void VerifyFieldMetadataDecoding(CompilationVerifier verifier, Dictionary<string, byte[]> blobs) 58private void VerifyParameterMetadataDecoding(CompilationVerifier verifier, Dictionary<string, byte[]> blobs) 230var blobs = new Dictionary<string, byte[]> 327var blobs = new Dictionary<string, byte[]> 374var blobs = new Dictionary<string, byte[]> 461var blobs = new Dictionary<string, byte[]> 486var expectedBlobs = new Dictionary<string, byte[]>(); 594var blobs = new Dictionary<string, byte[]> 632var expectedBlobs = new Dictionary<string, byte[]>(); 760var blobs = new Dictionary<string, byte[]> 800var blobs = new Dictionary<string, byte[]> 832var cciBlobs = new Dictionary<string, byte[]> 913var blobs = new Dictionary<string, byte[]> 1032var blobs = new Dictionary<string, byte[]> 1140var blobs = new Dictionary<string, byte[]>() 1185var blobs = new Dictionary<string, byte[]>() 1220var blobs = new Dictionary<string, byte[]>()
Attributes\AttributeTests_WellKnownAttributes.cs (1)
2814var visitedEntryPoints = new Dictionary<string, bool>();
Diagnostics\DiagnosticAnalyzerTests.cs (8)
316var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 458var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 530var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 1140var specificDiagOptions = new Dictionary<string, ReportDiagnostic>(); 1278Dictionary<string, ReportDiagnostic> specificOptions = null, 1302var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", ReportDiagnostic.Default } }; 1323var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } }; 1346var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
FlowAnalysis\FlowDiagnosticTests.cs (1)
383Dictionary<int, int> warnings = new Dictionary<int, int>();
Microsoft.CodeAnalysis.CSharp.Features (18)
ChangeSignature\CSharpChangeSignatureService.cs (1)
810var 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)
29private static readonly Dictionary<(bool importDirective, bool preselect, bool tupleLiteral), CompletionItemRules> s_cachedRules = [];
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
23private static readonly Dictionary<BinaryOperatorKind, SyntaxKind> s_operatorMap = new Dictionary<BinaryOperatorKind, SyntaxKind>
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
2481Dictionary<SyntaxNode, EditKind> editMap)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
425var replacements = new Dictionary<SyntaxNode, SyntaxNode>();
ExtractMethod\CSharpMethodExtractor.PostProcessor.cs (3)
94var map = new Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>>(); 116Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>> map) 127Dictionary<ITypeSymbol, List<LocalDeclarationStatementSyntax>> map)
ExtractMethod\CSharpMethodExtractor.TriviaResult.cs (1)
90Dictionary<SyntaxToken, LeadingTrailingTriviaPair> triviaMap,
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
135Dictionary<IMethodSymbol, Diagnostic> methodToDiagnostic)
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
31Dictionary<int, int> preferredOrder,
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersHelper.cs (1)
25protected override bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed)
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (3)
387Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove) 409Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove) 466Dictionary<ISymbol, IParameterSymbol> candidateMembersToRemove,
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (1)
63Dictionary<SyntaxToken, SyntaxToken> tokenToToken,
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (1)
89Dictionary<SyntaxToken, SyntaxToken> replacementMap, SyntaxToken colonToken, SyntaxToken thisBaseKeyword)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
455var experimentalFeatures = new Dictionary<string, string>(); // no experimental features to enable 505var featuresToEnable = new Dictionary<string, string>() { { feature, "enabled" } };
SimplifyTypeNames\SimplifyTypeNamesTests.cs (1)
1159var builtInTypeMap = new Dictionary<string, string>()
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
InteractiveSessionTests.cs (1)
1360Assert.True(result is Dictionary<string, int>, "Expected Dictionary<string, int>");
ObjectFormatterTests.cs (1)
583var obj = new Dictionary<string, int>
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\MethodBodyModelTests.cs (1)
126Dictionary<int, int> errors = new Dictionary<int, int>();
Semantics\NullableTests.cs (5)
712var zeros = new Dictionary<string, string>() 730var ones = new Dictionary<string, string>() 1147var twos = new Dictionary<string, string>() 1163var ones = new Dictionary<string, string>() 1180var names = new Dictionary<string, string>()
Semantics\SemanticErrorTests.cs (1)
11037var noWarns = new Dictionary<string, ReportDiagnostic>();
Semantics\UnsafeTests.cs (1)
10579private static readonly Dictionary<SpecialType, int> s_specialTypeSizeOfMap = new Dictionary<SpecialType, int>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\CompilationAPITests.cs (1)
2396var open = typeof(Dictionary<,>).MakeGenericType(typeof(int), genericParameter);
Compilation\CSharpCompilationOptionsTests.cs (1)
228var warnings = new Dictionary<string, ReportDiagnostic>
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
5759var warnDict = new Dictionary<string, ReportDiagnostic> { { MessageProvider.Instance.GetIdForErrorCode((int)ErrorCode.WRN_MissingXMLComment), ReportDiagnostic.Suppress } };
Symbols\Metadata\PE\LoadingAttributes.cs (1)
931attrSym.VerifyNamedArgumentValue(0, "TypeField", TypedConstantKind.Type, typeof(Dictionary<string, int>));
Symbols\PartialPropertiesTests.cs (1)
841var visitedEntryPoints = new Dictionary<string, bool>();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Diagnostics\DiagnosticTest.cs (3)
1425var warnings = new Dictionary<string, ReportDiagnostic>(); 1820var warnings = new Dictionary<string, ReportDiagnostic>(); 2244var warnings = new Dictionary<string, ReportDiagnostic>();
LexicalAndXml\XmlDocCommentTests.cs (1)
3392private void VerifyXmlAttributes(SyntaxList<XmlAttributeSyntax> xmlAttributes, Dictionary<string, string> attributes)
Syntax\SyntaxAnnotationTests.cs (6)
435var nodeOrTokenMap = new Dictionary<SyntaxNodeOrToken, SyntaxNodeOrToken>(); 456var triviaMap = new Dictionary<SyntaxTrivia, SyntaxTrivia>(); 812private readonly Dictionary<SyntaxNodeOrToken, SyntaxNodeOrToken> _nodeOrTokenMap; 813private readonly Dictionary<SyntaxTrivia, SyntaxTrivia> _triviaMap; 815public CopyAnnotationRewriter(Dictionary<SyntaxNodeOrToken, SyntaxNodeOrToken> nodeOrTokenMap, Dictionary<SyntaxTrivia, SyntaxTrivia> triviaMap) :
Syntax\SyntaxNodeTests.cs (1)
3961var tests = new Dictionary<string, string>
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1063internal CompilationVerifier CompileAndVerifyFieldMarshal(CSharpTestSource source, Dictionary<string, byte[]> expectedBlobs, bool isField = true) =>
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (5)
92private static void AddAliasMaps(SyntaxNode node, List<Dictionary<string, string>> aliasMaps) 107private static void ProcessUsings(List<Dictionary<string, string>> aliasMaps, SyntaxList<UsingDirectiveSyntax> usings) 109Dictionary<string, string> aliasMap = null; 136List<Dictionary<string, string>> aliasMaps) 146foreach (var aliasMap in aliasMaps)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (2)
43var directiveSyntaxMap = GetDirectiveInfo(directive, cancellationToken).DirectiveMap; 55var directiveConditionalMap = GetDirectiveInfo(directive, cancellationToken).ConditionalMap;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
18private static readonly ConditionalWeakTable<MemberDeclarationSyntax, Dictionary<string, ImmutableArray<SyntaxToken>>> s_declarationCache = new(); 23var dictionary = DeclarationFinder.GetAllDeclarations(member);
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.LocalDeclarationMap.cs (2)
16private readonly Dictionary<string, ImmutableArray<SyntaxToken>> _dictionary; 18internal LocalDeclarationMap(Dictionary<string, ImmutableArray<SyntaxToken>> dictionary)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\AggregatedFormattingResult.cs (1)
21protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\FormattingResult.cs (1)
24protected override SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (4)
25private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _trailingTriviaMap = []; 26private readonly Dictionary<SyntaxToken, SyntaxTriviaList> _leadingTriviaMap = []; 31Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map, 48Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> map,
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\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (4)
629var map = DetermineTypeParameterMapping(type, method.ReturnType); 646private static Dictionary<ITypeParameterSymbol, ITypeSymbol> DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType) 648var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>(); 653private static void DetermineTypeParameterMapping(ITypeSymbol inferredType, ITypeSymbol returnType, Dictionary<ITypeParameterSymbol, ITypeSymbol> result)
Microsoft.CodeAnalysis.EditorFeatures (28)
Classification\Syntactic\SyntacticClassificationTaggerProvider.ClassifiedLineCache.cs (1)
85private readonly Dictionary<Span, LinkedListNode<SpanAndClassifiedSpans>> _spanToLruNode = [];
EditAndContinue\ActiveStatementTrackingService.cs (2)
114private readonly Dictionary<string, ImmutableArray<ActiveStatementTrackingSpan>> _trackingSpans = []; 128internal Dictionary<string, ImmutableArray<ActiveStatementTrackingSpan>> Test_GetTrackingSpans()
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
30private readonly Dictionary<string, (DocumentState state, int solutionVersion)> _documentsWithChangedLoaderByPath = [];
InlineRename\AbstractInlineRenameUndoManager.cs (1)
33protected readonly Dictionary<ITextBuffer, TBufferState> UndoManagers = [];
InlineRename\InlineRenameSession.cs (1)
59private readonly Dictionary<ITextBuffer, OpenTextBufferManager> _openTextBuffers = [];
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
47private readonly Dictionary<TextSpan, RenameTrackingSpan> _referenceSpanToLinkedRenameSpanMap = [];
LanguageServer\RazorInProcLanguageClient.cs (2)
78var experimental = (Dictionary<string, bool>)vsServerCapabilities.Experimental;
Preview\AbstractPreviewFactoryService.cs (2)
227var oldProjectReferences = projectChanges.OldProject.ProjectReferences.ToDictionary(r => r.ProjectId); 228var newProjectReferences = projectChanges.NewProject.ProjectReferences.ToDictionary(r => r.ProjectId);
Shared\Extensions\HostWorkspaceServicesExtensions.cs (3)
47private static readonly ConditionalWeakTable<SolutionServices, Dictionary<string, string>> s_hostServicesToContentTypeMap = new(); 51if (!s_hostServicesToContentTypeMap.TryGetValue(workspaceServices, out var contentTypeMap)) 60private static Dictionary<string, string> CreateContentTypeMap(SolutionServices hostWorkspaceServices)
Shared\Extensions\ITextViewExtensions.AutoClosingViewProperty.cs (1)
18private readonly Dictionary<object, TProperty> _map = [];
Shared\Extensions\ITextViewExtensions.PerSubjectBufferProperty.cs (7)
22private readonly Dictionary<ITextBuffer, Dictionary<object, TProperty>> _subjectBufferMap = []; 26private readonly ConditionalWeakTable<ITextBuffer, Dictionary<object, TProperty>> _buffersRemovedFromTextViewBufferGraph = new(); 104if (_subjectBufferMap.TryGetValue(buffer, out var value)) 113if (_buffersRemovedFromTextViewBufferGraph.TryGetValue(buffer, out var value)) 123if (_subjectBufferMap.TryGetValue(subjectBuffer, out var bufferMap)) 145if (_subjectBufferMap.TryGetValue(subjectBuffer, out var bufferMap))
Shared\Utilities\ClassificationTypeMap.cs (1)
30private readonly Dictionary<string, IClassificationType> _identityMap;
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (3)
365var bufferToChanges = ProcessNewTagTrees(spansToTag, oldTagTrees, newTagTrees); 583private Dictionary<ITextBuffer, DiffResult> ProcessNewTagTrees( 590var bufferToChanges = new Dictionary<ITextBuffer, DiffResult>();
Undo\EditorSourceTextUndoService.cs (1)
23private readonly Dictionary<SourceText, SourceTextUndoTransaction> _transactions = [];
Workspaces\AbstractTextBufferVisibilityTracker.cs (1)
28private readonly Dictionary<ITextBuffer, VisibleTrackerData> _subjectBufferToCallbacks = [];
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (10)
LanguageServer\AbstractLanguageServerProtocolTests.cs (5)
446internal static async Task<Dictionary<string, IList<LSP.Location>>> GetAnnotatedLocationsAsync(EditorTestWorkspace workspace, Solution solution) 448var locations = new Dictionary<string, IList<LSP.Location>>(); 536private readonly Dictionary<string, IList<LSP.Location>> _locations; 546Dictionary<string, IList<LSP.Location>> locations, 748public Dictionary<string, IList<LSP.Location>> GetLocations() => _locations;
Workspaces\EditorTestWorkspace.cs (5)
29private readonly Dictionary<string, ITextBuffer2> _createdTextBuffers = []; 255out var projectionBufferSpans, out var mappedSpans, out var mappedCaretLocation); 314out Dictionary<string, ImmutableArray<TextSpan>> mappedMarkupSpans, out int? mappedCaretLocation) 410out Dictionary<string, ImmutableArray<TextSpan>> mappedMarkupSpans, 413var tempMappedMarkupSpans = new Dictionary<string, PooledObjects.ArrayBuilder<TextSpan>>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (15)
CodeFixes\CodeFixServiceTests.cs (1)
623public Dictionary<string, string> Messages = [];
Diagnostics\IDEDiagnosticIDConfigurationTests.cs (4)
95private static Dictionary<string, string> GetExpectedMap(string expected, out string[] expectedLines) 99var expectedMap = new Dictionary<string, string>(); 113var expectedMap = GetExpectedMap(expected, out var expectedLines); 702var expectedMap = expected.ToDictionary(entry => (entry.diagnosticId, entry.optionName), entry => entry.optionValue);
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (10)
21var libraries = BuildLibraries(allReferences); 22var targets = BuildTargets(targetFramework, allReferences); 47private static Dictionary<string, ProjectAssetsLibrary> BuildLibraries(List<ReferenceInfo> references) 49var libraries = new Dictionary<string, ProjectAssetsLibrary>(); 59private static Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>> BuildTargets(string targetFramework, List<ReferenceInfo> references) 61var libraries = new Dictionary<string, ProjectAssetsTargetLibrary>(); 64var dependencies = BuildDependencies(reference.Dependencies); 74return new Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>>() { { targetFramework, libraries } }; 87private static Dictionary<string, string> BuildDependencies(ImmutableArray<ReferenceInfo> references)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Suggestions\SuggestedActions\SuggestedAction.cs (1)
189private void CreateLogProperties(Dictionary<string, object> map)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (5)
EEMetadataReferenceResolver.cs (1)
17internal readonly Dictionary<AssemblyIdentity, (AssemblyIdentity? Identity, int Count)> Requests =
MetadataUtilities.cs (3)
95Dictionary<string, ModuleMetadata?>? modulesByName = null; 122var refsBySimpleName = new Dictionary<string, ImmutableArray<(AssemblyIdentity, MetadataReference)>>(StringComparer.OrdinalIgnoreCase); 327private static PortableExecutableReference MakeAssemblyReference(ModuleMetadata metadata, Dictionary<string, ModuleMetadata?>? modulesByName)
PDB\MethodDebugInfo.Native.cs (1)
450private static void GetLocalKindByName(Dictionary<string, LocalKind> localNames, IEnumerable<ISymUnmanagedScope> scopes)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Resolver.cs (1)
20private readonly Dictionary<Process, List<Request>> _requests;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (6)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
83var favoritesMembersByName = new Dictionary<string, MemberAndDeclarationInfo>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (5)
47var previousDeclarationMap = includeInherited ? new Dictionary<string, DeclarationInfo>() : null; 59var browsableState = DkmClrType.Create(appDomain, type).GetDebuggerBrowsableAttributeState(); 76Dictionary<string, object> favoritesMemberNames = null; 565private static Dictionary<string, DkmClrDebuggerBrowsableAttributeState> GetDebuggerBrowsableAttributeState(this DkmClrType type) 567Dictionary<string, DkmClrDebuggerBrowsableAttributeState> result = null;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (9)
Debugger\Engine\DkmClrRuntimeInstance.cs (2)
35private readonly Dictionary<string, DkmClrObjectFavoritesInfo> _favoritesByTypeName; 56internal DkmClrRuntimeInstance(Assembly[] assemblies, Dictionary<string, DkmClrObjectFavoritesInfo> favoritesByTypeName)
Debugger\Engine\DkmDataContainer.cs (1)
19private readonly Dictionary<Guid, object> _dataItems = new Dictionary<Guid, object>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
83var favoritesMembersByName = new Dictionary<string, MemberAndDeclarationInfo>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (5)
47var previousDeclarationMap = includeInherited ? new Dictionary<string, DeclarationInfo>() : null; 59var browsableState = DkmClrType.Create(appDomain, type).GetDebuggerBrowsableAttributeState(); 76Dictionary<string, object> favoritesMemberNames = null; 565private static Dictionary<string, DkmClrDebuggerBrowsableAttributeState> GetDebuggerBrowsableAttributeState(this DkmClrType type) 567Dictionary<string, DkmClrDebuggerBrowsableAttributeState> result = null;
Microsoft.CodeAnalysis.ExternalAccess.Copilot (2)
CodeMapper\ICSharpCopilotMapCodeService.cs (1)
19Dictionary<string, object> options,
Internal\CodeMapper\CopilotCSharpMapCodeService.cs (1)
32var options = new Dictionary<string, object>();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (1)
21private readonly Dictionary<string, IClassificationType> _identityMap;
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Testing\TestSolutionStore.cs (1)
13private readonly Dictionary<Checksum, Solution> _solutions = [];
Microsoft.CodeAnalysis.Features (230)
BracePairs\IBracePairsService.cs (1)
26private readonly Dictionary<int, int> _bracePairKinds = [];
ChangeSignature\AbstractChangeSignatureService.cs (7)
255var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>(); 256var definitionToUse = new Dictionary<SyntaxNode, ISymbol>(); 377var updatedRoots = new Dictionary<DocumentId, SyntaxNode>(); 443private static void AddUpdatableNodeToDictionaries(Dictionary<DocumentId, List<SyntaxNode>> nodesToUpdate, DocumentId documentId, SyntaxNode nodeToUpdate, Dictionary<SyntaxNode, ISymbol> definitionToUse, ISymbol symbolWithSemanticParameters) 480var argumentToParameterMap = new Dictionary<IUnifiedArgumentSyntax, IParameterSymbol>(); 481var parameterToIndexMap = new Dictionary<IParameterSymbol, int>();
ChangeSignature\SignatureChange.cs (1)
19private readonly Dictionary<int, int?> _originalIndexToUpdatedIndexMap = [];
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.ProviderManager.cs (1)
29private readonly Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>> _rolesToProviders;
Completion\CompletionService_GetCompletions.cs (5)
122var completionProviderToIndex = GetCompletionProviderToIndex(providers); 306private static Dictionary<CompletionProvider, int> GetCompletionProviderToIndex(ConcatImmutableArray<CompletionProvider> completionProviders) 308var result = new Dictionary<CompletionProvider, int>(completionProviders.Length); 348private static readonly ObjectPool<Dictionary<string, object>> s_uniqueSourcesPool = new(factory: () => [], size: 5); 351private readonly Dictionary<string, object> _displayNameToItemsMap = s_uniqueSourcesPool.Allocate();
Completion\PatternMatchHelper.cs (1)
38private readonly Dictionary<(CultureInfo, bool includeMatchedSpans), PatternMatcher> _patternMatcherMap = [];
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
30private static readonly Dictionary<string, (string tagOpen, string textBeforeCaret, string textAfterCaret, string? tagClose)> s_tagMap =
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
209var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default);
Completion\Providers\AbstractSymbolCompletionProvider.cs (12)
57Dictionary<ITypeSymbol, bool> typeConvertibilityCache) 105Dictionary<ISymbol, List<ProjectId>>? invalidProjectMap, 130var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default); 187Dictionary<ITypeSymbol, bool> typeConvertibilityCache, 204Dictionary<ISymbol, List<ProjectId>>? invalidProjectMap, 322var symbolToContextMap = UnionSymbols(contextAndSymbolLists); 323var missingSymbolsMap = FindSymbolsMissingInLinkedContexts(symbolToContextMap, contextAndSymbolLists); 336private static Dictionary<SymbolAndSelectionInfo, TSyntaxContext> UnionSymbols( 341var result = new Dictionary<SymbolAndSelectionInfo, TSyntaxContext>(); 396private static Dictionary<ISymbol, List<ProjectId>> FindSymbolsMissingInLinkedContexts( 397Dictionary<SymbolAndSelectionInfo, TSyntaxContext> symbolToContext, 400var missingSymbols = new Dictionary<ISymbol, List<ProjectId>>(LinkedFilesSymbolEquivalenceComparer.Instance);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (3)
145Dictionary<ITypeSymbol, bool> typeConvertibilityCache = []; 213Dictionary<ITypeSymbol, bool> typeConvertibilityCache) 231private 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)
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
54public static void AppendAnalyzerMap(this Dictionary<string, DiagnosticAnalyzer> analyzerMap, IEnumerable<DiagnosticAnalyzer> analyzers)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (16)
408internal abstract void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, Match<SyntaxNode> match, Edit<SyntaxNode> edit, Dictionary<SyntaxNode, EditKind> editMap); 624var editMap = BuildEditMap(syntacticEdits); 736private void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, EditScript<SyntaxNode> syntacticEdits, Dictionary<SyntaxNode, EditKind> editMap) 744internal Dictionary<SyntaxNode, EditKind> BuildEditMap(EditScript<SyntaxNode> editScript) 746var map = new Dictionary<SyntaxNode, EditKind>(editScript.Edits.Length); 970Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas = null; 1399ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas) 1452var map = new Dictionary<SyntaxNode, SyntaxNode>(); 1484[Out] Dictionary<LambdaBody, LambdaInfo> activeOrMatchedLambdas) 1619Dictionary<LambdaBody, LambdaInfo> lambdaInfos) 2480public readonly Dictionary<SyntaxNode, SyntaxMaps> ChangedDeclarations = []; 3442Dictionary<INamedTypeSymbol, MemberInitializationUpdates> constructorEdits; 6013private static void BuildIndex(Dictionary<VariableCaptureKey, int> index, ImmutableArray<VariableCapture> array) 6142[Out] Dictionary<SyntaxNode, RudeEditDiagnostic> closureRudeEdits, 6786internal void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, EditScript<SyntaxNode> syntacticEdits, Dictionary<SyntaxNode, EditKind> editMap) 6792ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas)
EditAndContinue\CommittedSolution.cs (1)
89private readonly Dictionary<DocumentId, DocumentState> _documentState = [];
EditAndContinue\DebuggingSession.cs (3)
40private readonly Dictionary<ProjectId, (Guid Mvid, Diagnostic Error)> _projectModuleIds = []; 41private readonly Dictionary<Guid, ProjectId> _moduleIds = []; 55private readonly Dictionary<ProjectId, ProjectBaseline> _projectBaselines = [];
EditAndContinue\EditAndContinueDiagnosticDescriptors.cs (1)
27private static Dictionary<ManagedHotReloadAvailabilityStatus, DiagnosticDescriptor> s_lazyModuleDiagnosticDescriptors;
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
27private readonly Dictionary<DocumentId, (AsyncLazy<DocumentAnalysisResults> results, Project baseProject, Document document, ImmutableArray<ActiveStatementLineSpan> activeStatementSpans)> _analyses = [];
EditAndContinue\EditSession.cs (1)
749var mergedUpdateEditSyntaxMaps = new Dictionary<SymbolKey, (Func<SyntaxNode, SyntaxNode?>? matchingNodes, Func<SyntaxNode, RuntimeRudeEdit?>? runtimeRudeEdits)>(symbolKeyComparer);
EditAndContinue\SolutionSnapshotRegistry.cs (1)
28private 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)
26public static readonly Dictionary<string, (string shortDescription, string longDescription)> EscapeCategories =
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.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)
19private 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)
33var tokens = GetTokensAtEdges(root, textSpan); 38var triviaList = GetTriviaAtEdges(tokens, textSpan); 40var annotations = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount) 44var map = CreateOldToNewTokensMap(tokens, annotations); 64Dictionary<TriviaLocation, SyntaxAnnotation> annotations, 65Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> triviaList) 70private static Dictionary<SyntaxToken, SyntaxToken> CreateOldToNewTokensMap( 71Dictionary<TriviaLocation, SyntaxToken> tokens, 72Dictionary<TriviaLocation, SyntaxAnnotation> annotations) 75var map = new Dictionary<SyntaxToken, SyntaxToken>(); 93private static Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> GetTriviaAtEdges(Dictionary<TriviaLocation, SyntaxToken> tokens, TextSpan textSpan) 98var triviaList = new Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> 109private static Dictionary<TriviaLocation, SyntaxToken> GetTokensAtEdges(SyntaxNode root, TextSpan textSpan) 111var 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\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 (12)
139var symbolMap = GetSymbolMap(model); 144out var variableInfoMap, out var failedVariables); 294Dictionary<ISymbol, VariableInfo> variableInfoMap, 336SemanticModel model, Dictionary<ISymbol, List<SyntaxToken>> symbolMap, 394private Dictionary<ISymbol, List<SyntaxToken>> GetSymbolMap(SemanticModel model) 398var symbolMap = SymbolMapBuilder.Build(syntaxFactsService, model, context, SelectionResult.FinalSpan, CancellationToken); 439private static ImmutableArray<VariableInfo> GetMethodParameters(Dictionary<ISymbol, VariableInfo> variableInfoMap) 454Dictionary<ISymbol, List<SyntaxToken>> symbolMap, 455out Dictionary<ISymbol, VariableInfo> variableInfoMap, 559Dictionary<ISymbol, List<SyntaxToken>> symbolMap, 616Dictionary<ISymbol, List<SyntaxToken>> symbolMap, SemanticModel model, ISymbol symbol, bool writtenInside) 912private OperationStatus CheckReadOnlyFields(SemanticModel semanticModel, Dictionary<ISymbol, List<SyntaxToken>> symbolMap)
ExtractMethod\MethodExtractor.Analyzer.SymbolMapBuilder.cs (2)
25private readonly Dictionary<ISymbol, List<SyntaxToken>> _symbolMap = []; 28public static Dictionary<ISymbol, List<SyntaxToken>> Build(
ExtractMethod\MethodExtractor.cs (1)
196var tokenMap = annotations.GroupBy(p => p.Item1, p => p.Item2).ToDictionary(g => g.Key, g => g.ToArray());
ExtractMethod\SelectionResult.cs (2)
217var tokenMap = pairs.GroupBy(p => p.Item1, p => p.Item2).ToDictionary(g => g.Key, g => g.ToArray()); 230var tokenMap = pairs.GroupBy(p => p.Item1, p => p.Item2).ToDictionary(g => g.Key, g => g.ToArray());
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (1)
70private readonly Dictionary<SymbolGroup, DefinitionItem> _definitionToItem = [];
FindUsages\IRemoteFindUsagesService.cs (1)
92private readonly Dictionary<int, DefinitionItem> _idToDefinition = [];
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (1)
360var renameTable = new Dictionary<ISymbol, string>();
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (4)
152var methodCallSites = await FindCallSitesAsync(document, methodSymbol, cancellationToken).ConfigureAwait(false); 238IMethodSymbol methodSymbol, SyntaxNode containingMethod, Dictionary<Document, List<TExpressionSyntax>> methodCallSites, bool allOccurrences, IntroduceParameterCodeActionKind selectedCodeAction, 270protected static async Task<Dictionary<Document, List<TExpressionSyntax>>> FindCallSitesAsync( 273var 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>(); 226var expressionParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false); 235var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); 305Dictionary<IParameterSymbol, int> parameterToArgumentMap, SyntaxNode currentArgumentListSyntax, 487var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>(); 488var expressionToParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false); 542Dictionary<TIdentifierNameSyntax, IParameterSymbol> mappingDictionary, 543Dictionary<IParameterSymbol, int> parameterToArgumentMap, 608Dictionary<IParameterSymbol, int> mapping, SeparatedSyntaxList<SyntaxNode> arguments,
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.cs (4)
113var structuralTypeToName = GenerateStructuralTypeNames(transitiveStructuralTypeReferences); 120private static Dictionary<INamedTypeSymbol, string> GenerateStructuralTypeNames( 124var anonymousTypeToName = new Dictionary<INamedTypeSymbol, string>(); 188var 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 (3)
81private readonly Dictionary<SymbolDescriptionGroups, IList<SymbolDisplayPart>> _groupMap = []; 82private readonly Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>> _documentationMap = []; 427var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
47private readonly Dictionary<UniqueDocumentKey, MetadataAsSourceGeneratedFileInfo> _keyToInformation = [];
MetadataAsSource\TelemetryMessage.cs (1)
53private void SetLogProperties(Dictionary<string, object?> properties)
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)
57private readonly Dictionary<string, ProjectId> _assemblyToProjectMap = [];
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
22var result = new Dictionary<Glyph, QuickInfoGlyphElement>(capacity: glyphs.Length);
Snippets\AbstractSnippetService.cs (1)
21private readonly Dictionary<string, ISnippetProvider> _identifierToProviderMap = [];
Snippets\RoslynLSPSnippetConverter.cs (1)
85private static void PopulateMapOfSpanStartsToLSPStringItem(Dictionary<int, (string identifier, int priority)> dictionary, ImmutableArray<SnippetPlaceholder> placeholders, int textChangeStart)
src\Analyzers\Core\Analyzers\AddRequiredParentheses\AbstractAddRequiredParenthesesDiagnosticAnalyzer.cs (1)
24private static readonly Dictionary<(bool includeInFixAll, string equivalenceKey), ImmutableDictionary<string, string?>> s_cachedProperties = [];
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\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\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\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\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
93private readonly Dictionary<ISymbol, ValueUsageInfo> _symbolValueUsageStateMap = [];
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
82var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
183var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
38public readonly Dictionary<ITypeSymbol, ITypeSymbol> Substitutions = [];
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
57if (!_helpers.TryGetOrComputePreferredOrder(option.Value, out var preferredOrder))
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)
59var builtReferences = new Dictionary<string, ReferenceInfo?>(); 74Dictionary<string, ReferenceInfo?> builtReferences) 99Dictionary<string, ReferenceInfo?> builtReferences) 119var target = projectAssets.Targets[targetName];
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (2)
150var canEdit = new Dictionary<DocumentId, bool>(); 297Dictionary<DocumentId, bool> canEdit)
Wrapping\AbstractCodeActionComputer.cs (2)
221Dictionary<SyntaxToken, SyntaxTriviaList> leftTokenToTrailingTrivia, 222Dictionary<SyntaxToken, SyntaxTriviaList> rightTokenToLeadingTrivia)
Microsoft.CodeAnalysis.Features.Test.Utilities (8)
EditAndContinue\ActiveStatementsDescription.cs (3)
44var oldDocumentMap = new Dictionary<string, List<ActiveStatement>>(); 97Dictionary<string, List<ActiveStatement>> documentMap) 138var map = new Dictionary<string, List<ActiveStatement>>();
EditAndContinue\EditAndContinueTestAnalyzerConfigOptions.cs (1)
14private readonly Dictionary<string, string> _options;
EditAndContinue\EditAndContinueTestVerifier.cs (2)
490Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas = null; 493var result = new Dictionary<SyntaxNode, SyntaxNode>();
EditAndContinue\MockManagedEditAndContinueDebuggerService.cs (1)
18public Dictionary<Guid, ManagedHotReloadAvailability>? LoadedModules;
EditAndContinue\SourceMarkers.cs (1)
48var tagMap = new Dictionary<(int major, int minor), (int start, int end)>();
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\ActiveStatementsMapTests.cs (3)
124var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 179var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>(); 230var documentPathMap = new Dictionary<string, ImmutableArray<ActiveStatement>>();
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.LanguageServer (6)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
66private readonly Dictionary<string, int> _watchedFiles = new Dictionary<string, int>(s_stringComparer);
HostWorkspace\LanguageServerProjectSystem.cs (1)
250Dictionary<ProjectFileInfo, ProjectLoadTelemetryReporter.TelemetryInfo> telemetryInfos = [];
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (2)
36public async Task ReportProjectLoadTelemetryAsync(Dictionary<ProjectFileInfo, TelemetryInfo> projectFileInfos, ProjectToLoad projectToLoad, CancellationToken cancellationToken) 109var fileCounts = new Dictionary<string, int>();
Services\ExtensionAssemblyManager.cs (2)
57var directoryLoadContexts = new Dictionary<string, AssemblyLoadContext>(StringComparer.Ordinal); 58var assemblyFullNameToLoadContext = new Dictionary<string, AssemblyLoadContext>(StringComparer.Ordinal);
Microsoft.CodeAnalysis.LanguageServer.Protocol (45)
Features\CodeFixes\CodeFixService.cs (7)
502var uniqueDiagosticToEquivalenceKeysMap = new Dictionary<Diagnostic, PooledHashSet<string?>>(); 507var diagnosticAndEquivalenceKeyToFixersMap = new Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider>(); 620Dictionary<Diagnostic, PooledHashSet<string?>> uniqueDiagosticToEquivalenceKeysMap, 621Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider> diagnosticAndEquivalenceKeyToFixersMap, 659Dictionary<Diagnostic, PooledHashSet<string?>> uniqueDiagosticToEquivalenceKeysMap, 660Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider> diagnosticAndEquivalenceKeyToFixersMap) 995private readonly Dictionary<CodeFixProvider, int> _fixerToIndex;
Features\DecompiledSource\AssemblyResolver.cs (2)
24private static readonly Dictionary<MetadataReference, (string fileName, ImmutableArray<byte> image)> _inMemoryImagesForTesting = []; 27private readonly Dictionary<string, List<IAssemblySymbol>> _cache = [];
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (1)
191using var pooledObject = SharedPools.Default<Dictionary<string, DiagnosticAnalyzer>>().GetPooledObject();
Handler\Completion\CompletionResultFactory.cs (3)
68var commitCharactersRuleCache = new Dictionary<ImmutableArray<CharacterSetModificationRule>, string[]>(CommitCharacterArrayComparer.Instance); 229Dictionary<ImmutableArray<CharacterSetModificationRule>, string[]> currentRuleCache) 261var commitCharacterReferences = new Dictionary<object, int>();
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
225Dictionary<ProjectOrDocumentId, PreviousPullResult> idToPreviousDiagnosticParams,
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
35private readonly Dictionary<string, bool> _categoryToLspChanged = new();
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
260var fieldOffsets = new Dictionary<SnippetFieldPart, ImmutableArray<TextSpan>>();
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
180var fieldNameToSnippetIndex = new Dictionary<string, int>();
Handler\PullHandlers\VersionedPullCache`1.cs (1)
27Dictionary<Document, PreviousPullResult> documentToPreviousDiagnosticParams,
Handler\PullHandlers\VersionedPullCache`2.cs (2)
43private readonly Dictionary<(Workspace workspace, ProjectOrDocumentId id), (string resultId, TCheapVersion cheapVersion, TExpensiveVersion expensiveVersion)> _idToLastReportedResult = []; 64Dictionary<ProjectOrDocumentId, PreviousPullResult> idToClientLastResult,
Handler\References\FindUsagesLSPContext.cs (2)
47private readonly Dictionary<DefinitionItem, int> _definitionToId = []; 53private readonly Dictionary<int, SumType<VSInternalReferenceItem, LSP.Location>> _definitionsWithoutReference = [];
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
30private readonly Dictionary<ProjectId, Checksum> _projectIdToLastComputedChecksum = [];
Handler\SemanticTokens\SemanticTokensSchema.cs (1)
107var tokenTypeToIndex = new Dictionary<string, int>();
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (2)
132private static async Task<Dictionary<Document, PreviousPullResult>> GetDocumentToPreviousParamsAsync( 137var result = new Dictionary<Document, PreviousPullResult>();
LanguageInfoProvider.cs (1)
25private static readonly Dictionary<string, LanguageInformation> s_extensionToLanguageInformation = new()
LspServices\LspServices.cs (1)
42var serviceMap = new Dictionary<string, Lazy<ILspService, LspServiceMetadataView>>();
Protocol\Converters\FormattingOptionsConverter.cs (1)
48Dictionary<string, SumType<bool, int, string>>? otherOptions = null;
Protocol\DocumentDiagnosticReportPartialResult.cs (1)
24public Dictionary<Uri, SumType<FullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport>> RelatedDocuments
Protocol\FormattingOptions.cs (1)
63public Dictionary<string, SumType<bool, int, string>>? OtherOptions { get; set; }
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (2)
72var itemRawJsonCache = new Dictionary<object, string>(capacity: 1); 96private static void WriteCompletionItem(Utf8JsonWriter writer, CompletionItem completionItem, JsonSerializerOptions options, Dictionary<object, string> itemRawJsonCache)
Protocol\MessageActionItem.cs (1)
35public Dictionary<string, object?> AdditionalProperties { get; set; }
Protocol\RelatedFullDocumentDiagnosticReport.cs (1)
32public Dictionary<Uri, SumType<FullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport>>? RelatedDocuments
Protocol\RelatedUnchangedDocumentDiagnosticReport.cs (1)
32public Dictionary<Uri, SumType<FullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport>>? RelatedDocuments
Protocol\SumType.cs (2)
897public static Dictionary<TKey, object> AsUntyped<TKey, TValue>(this Dictionary<TKey, TValue> dictionary)
Protocol\WorkspaceEdit.cs (2)
23public Dictionary<string, TextEdit[]>? Changes { get; set; } 54public Dictionary<ChangeAnnotationIdentifier, ChangeAnnotation>? ChangeAnnotations { get; init; }
RoslynLanguageServer.cs (1)
78var baseServiceMap = new Dictionary<string, object>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (1)
50var builder = new Dictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>();
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
98var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 105var languages = new Dictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>();
Workspaces\LspWorkspaceManager.cs (1)
105private readonly Dictionary<Workspace, (int? forkedFromVersion, Solution solution)> _cachedLspSolutions = [];
Microsoft.CodeAnalysis.PooledObjects.Package (4)
ArrayBuilder.cs (4)
516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
RebuildCommandLineTests.cs (1)
29public Dictionary<string, TestableFile> FilePathToStreamMap { get; } = new Dictionary<string, TestableFile>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Remote.ServiceHub (26)
Host\RemoteWorkspace.SolutionCreator.cs (4)
239Dictionary<ProjectId, ProjectStateChecksums> oldProjectIdToStateChecksums, 240Dictionary<ProjectId, ProjectStateChecksums> newProjectIdToStateChecksums, 480Dictionary<DocumentId, (Checksum attributeChecksum, Checksum textChecksum)> oldDocumentIdToStateChecksums, 481Dictionary<DocumentId, (Checksum attributeChecksum, Checksum textChecksum)> newDocumentIdToStateChecksums,
Host\RemoteWorkspace_SolutionCaching.cs (1)
36private readonly Dictionary<Checksum, InFlightSolution> _solutionChecksumToSolution = [];
Host\TestUtils.cs (13)
23public static void RemoveChecksums(this Dictionary<Checksum, object> map, ChecksumCollection checksums) 31public static void RemoveChecksums(this Dictionary<Checksum, object> map, IEnumerable<Checksum> checksums) 50var assetMapFromNewSolution = await solutionFromScratch.GetAssetMapAsync(projectConeId, CancellationToken.None).ConfigureAwait(false); 51var assetMapFromIncrementalSolution = await incrementalSolutionBuilt.GetAssetMapAsync(projectConeId, CancellationToken.None).ConfigureAwait(false); 158public static async Task<Dictionary<Checksum, object>> GetAssetMapAsync(this Solution solution, ProjectId? projectConeId, CancellationToken cancellationToken) 160var map = new Dictionary<Checksum, object>(); 169public static async Task<Dictionary<Checksum, object>> GetAssetMapAsync(this Project project, CancellationToken cancellationToken) 171var map = new Dictionary<Checksum, object>(); 182public static Task AppendAssetMapAsync(this Solution solution, Dictionary<Checksum, object> map, CancellationToken cancellationToken) 186this Solution solution, Dictionary<Checksum, object> map, ProjectId? projectId, CancellationToken cancellationToken) 188var callback = static (Checksum checksum, object asset, Dictionary<Checksum, object> map) => { map[checksum] = asset; }; 224private static async Task AppendAssetMapAsync(this Project project, Dictionary<Checksum, object> map, CancellationToken cancellationToken) 231var callback = static (Checksum checksum, object asset, Dictionary<Checksum, object> map) => { map[checksum] = asset; };
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
507using var pooledMap = SharedPools.Default<Dictionary<string, DiagnosticAnalyzer>>().GetPooledObject();
Services\DiagnosticAnalyzer\PerformanceQueue.cs (5)
69using var pooledMap = SharedPools.Default<Dictionary<int, string>>().GetPooledObject(); 133private readonly Dictionary<int, double> _performanceMap; 164Dictionary<int, double> map, IEnumerable<(int assignedAnalyzerNumber, TimeSpan timeSpan)> rawData, int fileCount) 196private readonly Dictionary<string, int> _idMap; 223public void GetReverseMap(Dictionary<int, string> reverseMap)
Services\FindUsages\RemoteFindUsagesService.cs (1)
80private readonly Dictionary<DefinitionItem, int> _definitionItemToId = [];
Services\SourceGeneration\RemoteSourceGenerationService.cs (1)
76private static readonly Dictionary<string, (AnalyzerReferenceMap analyzerReferenceMap, AnalyzerReferenceMap.CreateValueCallback callback)> s_languageToAnalyzerReferenceMap = new()
Microsoft.CodeAnalysis.Remote.Workspaces (1)
SolutionAssetStorage.cs (1)
34private readonly Dictionary<Checksum, Scope> _checksumToScope = [];
Microsoft.CodeAnalysis.Scripting (7)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (4)
46private readonly Dictionary<Assembly, LoadedAssembly> _assembliesLoadedFromLocation; 50private readonly Dictionary<string, AssemblyAndLocation> _assembliesLoadedFromLocationByFullPath; 53private readonly Dictionary<string, List<LoadedAssemblyInfo>> _loadedAssembliesBySimpleName; 56private 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.Test.Utilities (65)
Assert\AssertEx.cs (1)
384var indexes = new Dictionary<string, int>(comparer);
CommonTestBase.cs (5)
133internal CompilationVerifier CompileAndVerifyFieldMarshalCommon(Compilation compilation, Dictionary<string, byte[]> expectedBlobs, bool isField = true) 579var parentMap = GetParentOperationsMap(model); 595private static Dictionary<IOperation, IOperation> GetParentOperationsMap(SemanticModel model) 604var map = new Dictionary<IOperation, IOperation>(); 616private static void CollectParentOperations(IOperation operation, Dictionary<IOperation, IOperation> map)
Compilation\CompilationDifference.cs (1)
92Dictionary<int, string> sequencePointMarkers = null;
Compilation\CompilationExtensions.cs (1)
320var explicitNodeMap = new Dictionary<SyntaxNode, IOperation>();
Compilation\ControlFlowGraphVerifier.cs (2)
1800private readonly Dictionary<IFlowAnonymousFunctionOperation, ControlFlowGraph> _anonymousFunctionsMap; 1804Dictionary<IFlowAnonymousFunctionOperation, ControlFlowGraph> anonymousFunctionsMap,
Compilation\OperationTreeVerifier.cs (2)
28private readonly Dictionary<SyntaxNode, IOperation> _explicitNodeMap; 29private readonly Dictionary<ILabelSymbol, uint> _labelIdMap;
Compilation\TestOperationVisitor.cs (1)
192var explicitNodeMap = new Dictionary<SyntaxNode, IOperation>();
Compilation\TestSyntaxTreeOptionsProvider.cs (5)
15private readonly Dictionary<SyntaxTree, Dictionary<string, ReportDiagnostic>>? _options; 16private readonly Dictionary<SyntaxTree, GeneratedKind>? _isGenerated; 17private readonly Dictionary<string, ReportDiagnostic>? _globalOptions; 74_options.TryGetValue(tree, out var diags)
CompilationVerifier.cs (7)
110var map = new Dictionary<string, ICSharpCode.Decompiler.TypeSystem.IMethod>(); 126void listMethods(ICSharpCode.Decompiler.TypeSystem.INamespace @namespace, Dictionary<string, ICSharpCode.Decompiler.TypeSystem.IMethod> result) 143void listMethodsInType(ICSharpCode.Decompiler.TypeSystem.ITypeDefinition type, Dictionary<string, ICSharpCode.Decompiler.TypeSystem.IMethod> result) 305private readonly Dictionary<string, PEReader> _readersByName; 307internal Resolver(Dictionary<string, PEReader> readersByName) 340var readersByName = new Dictionary<string, PEReader>(StringComparer.OrdinalIgnoreCase); 608Dictionary<int, string> markers = null;
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (9)
47Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes = new Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>>(); 54Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes = new Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>>(); 162private static bool HasMoreSpecificSourceType<SymbolType>(SymbolType symbol, ITypeSymbol symbolType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> symbolsSourceTypes, out INamedTypeSymbol commonSourceType) 232private static void AssignTo(IOperation target, Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes, Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes, IOperation sourceValue) 237private static void AssignTo(IOperation target, Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes, Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes, ITypeSymbol sourceType) 252private static void AssignTo<SymbolType>(SymbolType target, ITypeSymbol targetType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> sourceTypes, IOperation sourceValue) 257private static void AssignTo<SymbolType>(SymbolType target, ITypeSymbol targetType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> sourceTypes, ITypeSymbol sourceType)
Diagnostics\OptionsDiagnosticAnalyzer.cs (1)
19private readonly Dictionary<string, AnalyzerOptions> _mismatchedOptions = new Dictionary<string, AnalyzerOptions>();
InstrumentationChecker.cs (1)
279private readonly Dictionary<int /*method*/, MethodChecker> _spanExpectations = new Dictionary<int, MethodChecker>();
MarkedSource\MarkupTestFile.cs (1)
56var tempSpans = new Dictionary<string, ArrayBuilder<TextSpan>>();
Metadata\ILValidation.cs (4)
344public static Dictionary<int, string> GetSequencePointMarkers(XElement methodXml) 346var result = new Dictionary<int, string>(); 375public static Dictionary<int, string> GetSequencePointMarkers(XElement methodXml, Func<string, SourceText> getSource) 377var result = new Dictionary<int, string>();
Mocks\TestMetadataReferenceResolver.cs (5)
18private readonly Dictionary<string, PortableExecutableReference> _assemblyNames; 19private readonly Dictionary<string, PortableExecutableReference> _files; 23Dictionary<string, PortableExecutableReference> assemblyNames = null, 24Dictionary<string, PortableExecutableReference> files = null) 33Dictionary<string, PortableExecutableReference> map;
Mocks\TestMissingMetadataReferenceResolver.cs (2)
34private readonly Dictionary<string, MetadataReference> _map; 37public TestMissingMetadataReferenceResolver(Dictionary<string, MetadataReference> map)
Mocks\TestSourceReferenceResolver.cs (3)
30public static SourceReferenceResolver Create(Dictionary<string, string> sources = null) 35private readonly Dictionary<string, object> _sources; 37private TestSourceReferenceResolver(Dictionary<string, object> sources)
PDB\DeterministicBuildCompilationTestHelpers.cs (1)
157Dictionary<string, string> kvp = new Dictionary<string, string>();
Platform\Desktop\AppDomainAssemblyCache.cs (6)
29private readonly Dictionary<Guid, Assembly> _assemblyCache = new Dictionary<Guid, Assembly>(); 30private readonly Dictionary<Guid, Assembly> _reflectionOnlyAssemblyCache = new Dictionary<Guid, Assembly>(); 51var cache = assembly.ReflectionOnly ? _assemblyCache : _reflectionOnlyAssemblyCache; 58var cache = reflectionOnly ? _reflectionOnlyAssemblyCache : _assemblyCache; 72var cache = reflectionOnly ? _reflectionOnlyAssemblyCache : _assemblyCache; 106var cache = assembly.ReflectionOnly ? _reflectionOnlyAssemblyCache : _assemblyCache;
Platform\Desktop\RuntimeAssemblyManager.cs (2)
50private readonly Dictionary<string, AssemblyData> _fullNameToAssemblyDataMap; 51private readonly Dictionary<Guid, AssemblyData> _mvidToAssemblyDataMap;
TestableFileSystem.cs (5)
18private readonly Dictionary<string, TestableFile>? _map; 24public Dictionary<string, TestableFile> Map => _map ?? throw new InvalidOperationException(); 27private TestableFileSystem(Dictionary<string, TestableFile>? map = null) 66var map = files.ToDictionary( 74public static TestableFileSystem CreateForMap(Dictionary<string, TestableFile> map)
Microsoft.CodeAnalysis.UnitTests (16)
CachingLookupTests.cs (4)
156var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 188var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 220var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 250var dict = new Dictionary<string, ImmutableArray<int>>(comparer);
Collections\ImmutableDictionaryTestBase.cs (2)
60var template = new Dictionary<string, int> 68var changes = new Dictionary<string, int>
Diagnostics\DiagnosticLocalizationTests.cs (10)
130var defaultCultureResources = new Dictionary<string, string>() 138var arResources = new Dictionary<string, string>() 146var resourceSetMap = new Dictionary<string, Dictionary<string, string>>() 157private readonly Dictionary<string, CustomResourceSet> _resourceSetMap; 159public CustomResourceManager(Dictionary<string, CustomResourceSet> resourceSetMap) 164public CustomResourceManager(Dictionary<string, Dictionary<string, string>> resourceSetMap) 210private readonly Dictionary<string, string> _resourcesMap; 211public CustomResourceSet(Dictionary<string, string> resourcesMap)
Microsoft.CodeAnalysis.VisualBasic (64)
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)
51Friend blockParent As Dictionary(Of BoundNode, BoundNode) = New Dictionary(Of BoundNode, BoundNode)() 52Friend lambdaParent As Dictionary(Of LambdaSymbol, MethodSymbol) = New Dictionary(Of LambdaSymbol, MethodSymbol)(ReferenceEqualityComparer.Instance) 59Friend variableScope As Dictionary(Of Symbol, BoundNode) = New Dictionary(Of Symbol, BoundNode)(ReferenceEqualityComparer.Instance) 64Friend labelBlock As Dictionary(Of LabelSymbol, BoundNode) = New Dictionary(Of LabelSymbol, BoundNode)(ReferenceEqualityComparer.Instance) 69Friend gotoBlock As Dictionary(Of BoundGotoStatement, BoundNode) = New Dictionary(Of BoundGotoStatement, BoundNode)() 100Friend 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)
325map 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)
204map 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\Retargeting\RetargetingSymbolTranslator.vb (1)
113Private ReadOnly Property RetargetingAssemblyMap As Dictionary(Of AssemblySymbol, DestinationData)
Symbols\Source\QuickAttributeChecker.vb (1)
22Private ReadOnly _nameToAttributeMap As Dictionary(Of String, QuickAttributes)
Symbols\Source\SourceFieldSymbol.vb (5)
294Private Sub CreateGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo)) 381Private Shared Sub CheckGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo)) 416Private Shared Sub OrderGraph(graph As Dictionary(Of SourceFieldSymbol, DependencyInfo), order As ArrayBuilder(Of FieldInfo)) 510graph As Dictionary(Of SourceFieldSymbol, DependencyInfo), 532Private 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)
166Friend Overrides ReadOnly Property ImplicitlyDefinedBy(Optional membersInProgress As Dictionary(Of String, ArrayBuilder(Of Symbol)) = Nothing) As Symbol
Symbols\SubstitutedNamedType.vb (1)
404Private Shared Function GetMethodSubstitute(methodSubstitutions As Dictionary(Of MethodSymbol, SubstitutedMethodSymbol), method As MethodSymbol) As SubstitutedMethodSymbol
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AttributeTests_MarshalAs.vb (2)
23Private Sub VerifyFieldMetadataDecoding(verifier As CompilationVerifier, blobs As Dictionary(Of String, Byte())) 45Private Sub VerifyParameterMetadataDecoding(verifier As CompilationVerifier, blobs As Dictionary(Of String, Byte()))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Syntax\SyntaxAnnotationTests.vb (4)
747Private ReadOnly _nodeOrTokenMap As Dictionary(Of SyntaxNodeOrToken, SyntaxNodeOrToken) 748Private ReadOnly _triviaMap As Dictionary(Of SyntaxTrivia, SyntaxTrivia) 750Public Sub New(nodeOrTokenMap As Dictionary(Of SyntaxNodeOrToken, SyntaxNodeOrToken), triviaMap As Dictionary(Of SyntaxTrivia, SyntaxTrivia))
Microsoft.CodeAnalysis.Workspaces (263)
CodeActions\CodeAction.cs (3)
34private static readonly Dictionary<Type, bool> s_isNonProgressGetChangedSolutionAsyncOverridden = []; 35private static readonly Dictionary<Type, bool> s_isNonProgressComputeOperationsAsyncOverridden = []; 106private 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)
51var docIdToTextMerger = new Dictionary<DocumentId, TextChangeMerger>(); 78FixAllContext fixAllContext, IProgress<CodeAnalysisProgress> progressTracker, Dictionary<DocumentId, TextChangeMerger> docIdToTextMerger) 110Dictionary<DocumentId, TextChangeMerger> docIdToTextMerger, 200Dictionary<DocumentId, TextChangeMerger> docIdToTextMerger)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (9)
26private Dictionary<DocumentId, List<DiagnosticData>>? _lazySyntaxLocals = null; 27private Dictionary<DocumentId, List<DiagnosticData>>? _lazySemanticLocals = null; 28private Dictionary<DocumentId, List<DiagnosticData>>? _lazyNonLocals = null; 52ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, DocumentId documentId, IEnumerable<Diagnostic> diagnostics) 97private void AddDocumentDiagnostic(ref Dictionary<DocumentId, List<DiagnosticData>>? map, TextDocument? document, Diagnostic diagnostic) 128Dictionary<DocumentId, List<DiagnosticData>>? dummy = null; 136ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, Diagnostic diagnostic) 189ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, IEnumerable<Diagnostic> diagnostics) 195private 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 = new(); 35Dictionary< 76var symbolOriginations = GetSymbolOriginations(solution, symbols, cancellationToken); 102private static Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility maxVisibility)> GetSymbolOriginations( 105var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>(); 138var dictionary = s_solutionToDependentProjectMap.GetValue(solution, static _ => new());
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
464var order = new Dictionary<ProjectId, int>(capacity: solution.ProjectIds.Count);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (9)
36private static readonly ObjectPool<Dictionary<ISymbol, SymbolGroup>> s_symbolToGroupPool = new(() => new(MetadataUnifyingEquivalenceComparer.Instance)); 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\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
47var hasInheritanceRelationshipCache = new Dictionary<(ISymbol searchSymbol, ISymbol candidateSymbol), bool>();
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)
29private readonly Dictionary<ISymbol, List<ReferenceLocation>> _symbolToLocations = [];
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (2)
27private readonly Dictionary<SerializableSymbolGroup, SymbolGroup> _groupMap = []; 28private readonly Dictionary<SerializableSymbolAndProjectId, ISymbol> _definitionMap = [];
FindSymbols\SymbolFinder_Callers.cs (1)
67var result = await reference.Locations.FindReferencingSymbolsAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_Helpers.cs (1)
128Dictionary<INamedTypeSymbol, INamedTypeSymbol> equivalentTypesWithDifferingAssemblies)
FindSymbols\SyntaxTree\SyntaxTreeIndex.cs (2)
20private readonly Dictionary<InterceptsLocationData, TextSpan>? _interceptsLocationInfo; 28Dictionary<InterceptsLocationData, TextSpan>? interceptsLocationInfo)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (2)
53Dictionary<InterceptsLocationData, TextSpan>? interceptsLocationInfo = null; 236ref Dictionary<InterceptsLocationData, TextSpan>? interceptsLocationInfo,
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
84Dictionary<InterceptsLocationData, TextSpan>? interceptsLocationInfo = null;
FindSymbols\TopLevelSyntaxTree\IDeclaredSymbolInfoFactoryService.cs (1)
16void AddDeclaredSymbolInfos(ProjectState project, SyntaxNode root, ArrayBuilder<DeclaredSymbolInfo> declaredSymbolInfos, Dictionary<string, ArrayBuilder<int>> extensionMethodInfo, CancellationToken cancellationToken);
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (12)
36private static readonly ObjectPool<List<Dictionary<string, string>>> s_aliasMapListPool 37= SharedPools.Default<List<Dictionary<string, string>>>(); 44private static readonly ObjectPool<Dictionary<string, string>> s_aliasMapPool 88protected static List<Dictionary<string, string>> AllocateAliasMapList() 120protected static void FreeAliasMapList(List<Dictionary<string, string>> list) 124foreach (var aliasMap in list) 133protected static void FreeAliasMap(Dictionary<string, string> aliasMap) 141protected static Dictionary<string, string> AllocateAliasMap() 156Dictionary<string, ArrayBuilder<int>> extensionMethodInfo, 180Dictionary<string, string?> aliases, 181Dictionary<string, ArrayBuilder<int>> extensionMethodInfo, 361private 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 (7)
28public static KeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information) 39public static KeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information) 47private Dictionary<string, object?>? _lazyMap; 48private Action<Dictionary<string, object?>>? _propertySetter; 56private void Initialize(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel) 148SharedPools.Default<Dictionary<string, object?>>().ClearAndFree(_lazyMap); 164_lazyMap = SharedPools.Default<Dictionary<string, object?>>().AllocateAndClear();
Log\StatisticResult.cs (1)
77public void WriteTelemetryPropertiesTo(Dictionary<string, object?> properties, string prefix)
Rename\ConflictEngine\ConflictingIdentifierTracker.cs (1)
16private readonly Dictionary<string, List<SyntaxToken>> _currentIdentifiersInScope = new Dictionary<string, List<SyntaxToken>>(identifierComparer);
Rename\ConflictEngine\ConflictResolver.Session.cs (2)
266var documentIdErrorStateLookup = new Dictionary<DocumentId, bool>(); 343var reverseMappedLocations = new Dictionary<Location, Location>();
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
42var signatureToConflictingMember = new Dictionary<ImmutableArray<ITypeSymbol>, 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)
17public 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\Compilers\Core\Portable\Collections\DictionaryExtensions.cs (3)
15/// The collection of extension methods for the <see cref="Dictionary{TKey, TValue}"/> type 24this Dictionary<TKey, TValue> dictionary, 45this Dictionary<TKey, TValue> dictionary,
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (7)
786this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 1075internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 1103(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1137internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1138(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
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\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (3)
51private readonly Dictionary<string, (AssemblyName? AssemblyName, string RealAssemblyPath)?> _analyzerAssemblyInfoMap = new(); 61private readonly Dictionary<(string OriginalAnalyzerPath, CultureInfo CultureInfo), string?> _analyzerSatelliteAssemblyRealPaths = new(); 70private readonly Dictionary<string, ImmutableHashSet<string>> _knownAssemblyPathsBySimpleName = new(StringComparer.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
759internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 762var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
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; 278public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
16/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
27/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DirectiveInfo.cs (4)
12Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> directiveMap, 13Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> conditionalMap) 17public Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?> DirectiveMap { get; } = directiveMap; 20public Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>> ConditionalMap { get; } = conditionalMap;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (3)
566Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 587Dictionary<ISymbol, int> result, INamedTypeSymbol containingType, CancellationToken cancellationToken) 609Dictionary<ISymbol, int> result, INamedTypeSymbol containingType,
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>(); 859var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 861var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (2)
30private readonly Dictionary<ISymbol, PooledHashSet<IOperation>> _reachingWrites; 225private static void AddEntries(Dictionary<ISymbol, PooledHashSet<IOperation>> result, BasicBlockAnalysisData source)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
506public int GetDeltaFromPreviousChangesMap(SyntaxToken token, Dictionary<SyntaxToken, int> previousChangesMap)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
46protected abstract SyntaxNode Rewriter(Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData> changeMap, CancellationToken cancellationToken); 104var map = new Dictionary<ValueTuple<SyntaxToken, SyntaxToken>, TriviaData>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (2)
349var previousChangesMap = new Dictionary<SyntaxToken, int>(); 376var previousChangesMap = new Dictionary<SyntaxToken, int>();
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\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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
20private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (4)
20var trimmedDictionary = TrimDictionary(allRawConventions); 25var ruleNames = new Dictionary<(Guid symbolSpecificationID, Guid namingStyleID, ReportDiagnostic enforcementLevel), string>(); 103internal static Dictionary<string, string> TrimDictionary(AnalyzerConfigOptions allRawConventions) 105var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
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\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\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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
324private readonly Dictionary<int, SymbolKeyResolution> _idToResult = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
64private readonly Dictionary<ISymbol, int> _symbolToId = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
31private readonly Dictionary<TAnnotation, SyntaxAnnotation> _realAnnotationMap = []; 32private readonly Dictionary<string, TAnnotation> _annotationMap = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (2)
243var spilloverEdges = new Dictionary<int, int>(); 290public Dictionary<int, int>? SpilloverEdges;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
566private static int GetValue(Dictionary<char, int> da, char c)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
17private readonly Dictionary<string, object> _eventNameToRegistries = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ICollectionExtensions.cs (1)
54public static void AddRange<TKey, TValue>(this ICollection<TKey> collection, Dictionary<TKey, TValue>.KeyCollection? keyCollection) where TKey : notnull
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (1)
52public static TValue? GetValueOrDefault<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue? defaultValue)
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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposableCache.cs (1)
19private readonly Dictionary<TKey, ReferenceCountedDisposable<Entry>.WeakReference> _cache = [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (3)
147public bool ReturnTypeEquals(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null) 162public bool Equals(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 168private bool EqualsCore(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
21public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 64private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 72internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 75internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 111private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 139private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 151private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 169private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false) 280private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 300private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies) 329private 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) 615private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.ParameterSymbolEqualityComparer.cs (1)
21Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.SignatureTypeSymbolEquivalenceComparer.cs (1)
16public bool Equals(ITypeSymbol? x, ITypeSymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TopologicalSorter.cs (1)
54var itemToItemsBefore = items.ToDictionary(item => item, item =>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
56var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 110var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
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;
Storage\SQLite\v2\Interop\SqlConnection.cs (3)
70private readonly Dictionary<string, SqlStatement> _queryToStatement; 85var queryToStatement = new Dictionary<string, SqlStatement>(); 153private SqlConnection(SafeSqliteHandle handle, Dictionary<string, SqlStatement> queryToStatement)
Utilities\Documentation\XmlDocumentationProvider.cs (2)
25private Dictionary<string, string> _docComments; 74var comments = new Dictionary<string, string>();
Workspace\Host\Metadata\MetadataReferenceCache.cs (1)
43private readonly Dictionary<MetadataReferenceProperties, WeakReference<MetadataReference>> _references = [];
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
36private readonly Dictionary<string, (IWatchedFile Token, int RefCount)> _referenceFileWatchingTokens = [];
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
38private readonly Dictionary<string, DocumentId> _documentPathsToDocumentIds = new(StringComparer.OrdinalIgnoreCase); 49private readonly Dictionary<DocumentId, IDynamicFileInfoProvider> _documentIdToDynamicFileInfoProvider = [];
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
104private readonly Dictionary<string, ImmutableArray<MetadataReferenceProperties>> _allMetadataReferences = []; 110private readonly Dictionary<DocumentId, IWatchedFile> _documentWatchedFiles = []; 139private readonly Dictionary<string, string?> _dynamicFilePathMaps = new(StringComparer.OrdinalIgnoreCase);
Workspace\Solution\ProjectDependencyGraph.cs (1)
212var reverseReferencesMap = new Dictionary<ProjectId, HashSet<ProjectId>>();
Workspace\Solution\ProjectState.cs (3)
54private readonly AsyncLazy<Dictionary<ImmutableArray<byte>, DocumentId>> _lazyContentHashToDocumentId; 139private async Task<Dictionary<ImmutableArray<byte>, DocumentId>> ComputeContentHashToDocumentIdAsync(CancellationToken cancellationToken) 141var result = new Dictionary<ImmutableArray<byte>, DocumentId>(ImmutableArrayComparer<byte>.Instance);
Workspace\Solution\Solution.cs (1)
43private readonly Dictionary<DocumentId, AsyncLazy<Solution>> _documentIdToFrozenSolution = [];
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)
1374var documentStatesByProjectId = documentStates.ToDictionary(static state => state.Id.ProjectId);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
490var metadataReferenceToProjectId = new Dictionary<MetadataReference, ProjectId>();
Workspace\Solution\SolutionCompilationState.SkeletonReferenceSet.cs (1)
32private readonly Dictionary<MetadataReferenceProperties, PortableExecutableReference> _referenceMap = [];
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
34private readonly Dictionary<ProjectId, AsyncLazy<(SolutionCompilationStateChecksums checksums, ProjectCone projectCone)>> _lazyProjectChecksums = [];
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
47private static readonly Dictionary<string, AnalyzerReferenceMap> s_languageToAnalyzerReferenceMap = new()
Workspace\Solution\SolutionState_Checksum.cs (1)
37private readonly Dictionary<ProjectId, AsyncLazy<SolutionStateChecksums>> _lazyProjectChecksums = [];
Workspace\Solution\TextDocumentStates.cs (2)
48new(new Dictionary<string, OneOrMany<DocumentId>>())); 347var result = new Dictionary<string, OneOrMany<DocumentId>>(SolutionState.FilePathComparer);
Workspace\Workspace.cs (1)
1406var outputAssemblyToProjectIdMap = new Dictionary<string, ProjectId>();
Workspace\Workspace_Editor.cs (6)
23private readonly Dictionary<ProjectId, HashSet<DocumentId>> _projectToOpenDocumentsMap = []; 30private readonly Dictionary<SourceTextContainer, DocumentId> _bufferToDocumentInCurrentContextMap = []; 35private readonly Dictionary<SourceTextContainer, OneOrMany<DocumentId>> _bufferToAssociatedDocumentsMap = []; 37private readonly Dictionary<DocumentId, TextTracker> _textTrackers = []; 38private readonly Dictionary<DocumentId, SourceTextContainer> _documentToAssociatedBufferMap = []; 39private readonly Dictionary<DocumentId, (SourceGeneratedDocumentIdentity identity, DateTime generationDateTime)> _openSourceGeneratedDocumentIdentities = [];
Microsoft.CodeAnalysis.Workspaces.MSBuild (9)
MSBuild\BuildHostProcessManager.cs (1)
30private readonly Dictionary<BuildHostProcessKind, BuildHostProcess> _processes = [];
MSBuild\MSBuildProjectLoader.Worker.cs (3)
69private readonly Dictionary<ProjectId, ProjectFileInfo> _projectIdToFileInfoMap; 70private readonly Dictionary<ProjectId, List<ProjectReference>> _projectIdToProjectReferencesMap; 71private readonly Dictionary<string, ImmutableArray<ProjectInfo>> _pathToDiscoveredProjectInfosMap;
MSBuild\ProjectFileExtensionRegistry.cs (1)
18private 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 (45)
MSBuild\ProjectFile\ProjectFile.cs (3)
360Dictionary<string, string>? metadata = null; 399var metadata = new Dictionary<string, string>(); 473var metadata = new Dictionary<string, string>
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (7)
786this Dictionary<TKey, ImmutableArray<TValue>> dictionary, 1075internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item) 1103(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result) 1137internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol> 1138(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer) 1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
28private readonly Dictionary<K, CacheValue> _cache;
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
759internal static Dictionary<K, ImmutableArray<T>> ToMultiDictionary<K, T>(this IEnumerable<T> data, Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 762var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
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; 278public Dictionary<K, ValueSet>.Enumerator GetEnumerator()
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
14private readonly Dictionary<K, SetWithInsertionOrder<V>> _dictionary;
src\Dependencies\Collections\Internal\InsertionBehavior.cs (1)
16/// Used internally to control behavior of insertion into a <see cref="Dictionary{TKey, TValue}"/> or <see cref="HashSet{T}"/>.
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
27/// <para>This collection has the same performance characteristics as <see cref="Dictionary{TKey, TValue}"/>, but
src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
516internal Dictionary<K, ImmutableArray<T>> ToDictionary<K>(Func<T, K> keySelector, IEqualityComparer<K>? comparer = null) 521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
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\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\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (2)
37public static ObjectPool<Dictionary<string, T>> StringIgnoreCaseDictionary<T>() 74public static readonly ObjectPool<Dictionary<string, T>> Instance =
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
MSBuildWorkspaceTestBase.cs (2)
171private static Dictionary<string, string> CreateProperties((string key, string value)[] additionalProperties) 173var properties = new Dictionary<string, string>();
NetCoreTests.cs (1)
34var environmentVariables = new Dictionary<string, string>()
NewlyCreatedProjectsFromDotNetNew.cs (1)
254Dictionary<string, string> additionalEnvironmentVars = new()
TestFiles\Resources.cs (3)
45private static Dictionary<string, byte[]> s_bytesCache; 46private static Dictionary<string, string> s_textCache; 48private static TResult GetOrLoadValue<TResult>(string name, Func<string, TResult> loader, ref Dictionary<string, TResult> cache)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (6)
MEF\TestComposition.cs (1)
26private static readonly Dictionary<CacheKey, IExportProviderFactory> s_factoryCache = [];
OptionsCollection.cs (1)
30private readonly Dictionary<OptionKey2, object?> _options = [];
Remote\InProcRemostHostClient.cs (2)
155private readonly Dictionary<ServiceMoniker, Func<object>> _inProcBrokeredServicesMap = []; 156private readonly Dictionary<ServiceMoniker, BrokeredServiceBase.IFactory> _remoteBrokeredServicesMap = [];
Workspaces\TestWorkspace`1.cs (2)
638var projectNameToTestHostProject = new Dictionary<string, TProject>(); 639var projectElementToProjectName = new Dictionary<XElement, string>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
FunctionIdTests.cs (1)
19var map = new Dictionary<FunctionId, string>();
Remote\ServiceDescriptorTests.cs (3)
55private static Dictionary<Type, MemberInfo> GetAllParameterTypesOfRemoteApis() 68var types = new Dictionary<Type, MemberInfo>(); 296var types = GetAllParameterTypesOfRemoteApis();
SolutionTests\ProjectDependencyGraphTests.cs (2)
678var references = new Dictionary<string, IEnumerable<string>>(); 718var referencesByTargetProject = new Dictionary<string, List<ProjectReference>>();
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
HandlerProvider.cs (1)
50var builder = new Dictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>();
RequestExecutionQueue.cs (2)
98var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 105var languages = new Dictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>();
Microsoft.CSharp (15)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
29private 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)
179private static readonly Dictionary<string, PredefinedType> s_typesByName = CreatePredefinedTypeFacts(); 181private static Dictionary<string, PredefinedType> CreatePredefinedTypeFacts() 183var 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)
65var groupings = df.GroupBy<int>("Tens").Groupings.ToDictionary(g => g.Key, g => g.ToList());
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
65var runtimeItems = new Dictionary<string, IEnumerable<KeyValuePair<string, string>>>();
Microsoft.DotNet.ArcadeLogging (6)
PipelinesLogger.cs (6)
21private readonly Dictionary<BuildEventContext, Guid> _buildEventContextMap = new Dictionary<BuildEventContext, Guid>(BuildEventContextComparer.Instance); 22private readonly Dictionary<Guid, ProjectInfo> _projectInfoMap = new Dictionary<Guid, ProjectInfo>(); 23private readonly Dictionary<Guid, TelemetryTaskInfo> _taskTelemetryInfoMap = new Dictionary<Guid, TelemetryTaskInfo>(); 321private readonly Dictionary<string, string> _parameters; 325public LoggerParameters(Dictionary<string, string> parameters) 339var parameters = new Dictionary<string, string>(Comparer);
Microsoft.DotNet.AsmDiff (1)
MefHelpers.cs (1)
47var subsetOfConstraints = contract.MetadataConstraints.Where(c => Metadata.ContainsKey(c.Key)).ToDictionary(c => c.Key, c => Metadata[c.Key]);
Microsoft.DotNet.Build.Tasks.Feed (4)
src\common\AzureStorageUtils.cs (2)
27private static readonly Dictionary<string, string> MimeMappings = new Dictionary<string, string>() 33private static readonly Dictionary<string, string> CacheMappings = new Dictionary<string, string>()
src\common\GeneralUtils.cs (1)
197var whichCategory = new Dictionary<string, string>()
src\common\MSBuildListSplitter.cs (1)
23var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.Build.Tasks.Feed.Tests (2)
PublishToSymbolServerTest.cs (2)
46Dictionary<string, string> test = 80Dictionary<string, string> test =
Microsoft.DotNet.Build.Tasks.Installers (1)
src\BuildFPMToolPreReqs.cs (1)
158.ToObject<Dictionary<string, string>>()
Microsoft.DotNet.Build.Tasks.Packaging (45)
ApplyBaseLine.cs (1)
61Dictionary<string, SortedSet<Version>> baseLineVersions = new Dictionary<string, SortedSet<Version>>();
ApplyMetaPackages.cs (3)
59var suppressMetaPackages = new Dictionary<string, HashSet<string>>(); 92Dictionary<string, HashSet<NuGetFramework>> metaPackagesToAdd = new Dictionary<string, HashSet<NuGetFramework>>(); 126private 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; 282var 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)
272Dictionary<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)
48var refSets = dependencies.Where(d => d.Id != "_._").Where(d => d.IsReference).GroupBy(d => NuGetFramework.Parse(d.TargetFramework)).ToDictionary(g => g.Key, g => g.ToArray()); 53var libSets = dependencies.Where(d => !d.IsReference).GroupBy(d => NuGetFramework.Parse(d.TargetFramework)).ToDictionary(g => g.Key, g => g.ToArray());
SplitReferences.cs (3)
62Dictionary<string, ITaskItem> packageReferences = new Dictionary<string, ITaskItem>(); 63Dictionary<string, ITaskItem> assemblyReferences = new Dictionary<string, ITaskItem>(); 104private 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)
47private Dictionary<Suppression, HashSet<string>> _suppressions;
Microsoft.DotNet.Build.Tasks.Packaging.Tests (5)
NugetPropertyStringProviderTests.cs (5)
18var expectedDictionary = new Dictionary<string, string>{ {"a", "b"} }; 26var expectedDictionary = new Dictionary<string, string> { { "a", "=b=" } }; 35var expectedDictionary = new Dictionary<string, string> { { "a", multiLineString } }; 54var expectedDictionary = new Dictionary<string, string>(); 86private static void AssertPropertyStringsParseToDictionary(string[] propertyStrings, Dictionary<string, string> expectedDictionary)
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 (16)
BuildData.wix.cs (1)
26public Dictionary<string, HashSet<ReleaseVersion>> FeatureBands = new();
CreateVisualStudioWorkload.wix.cs (5)
27private Dictionary<ReleaseVersion, bool> _supportsMachineArch = new(); 158Dictionary<string, BuildData> buildData = new(); 159Dictionary<string, WorkloadPackGroupPackage> packGroupPackages = new(); 184Dictionary<string, WorkloadManifestMsi> manifestMsisByPlatform = new(); 222Dictionary<string, List<WorkloadPackPackage>> packsInWorkloadByPlatform = new();
EmbeddedTemplates.cs (1)
12private static readonly Dictionary<string, string> s_templateResources = new();
Msi\MsiBase.wix.cs (1)
118public Dictionary<string, string> NuGetPackageFiles { get; set; } = new();
Msi\MsiPayloadPackageProject.wix.cs (2)
31public Dictionary<string, string> PackageContents { get; set; } = new(); 33public MsiPayloadPackageProject(MsiMetadata package, ITaskItem msi, string baseIntermediateOutputPath, string baseOutputPath, Dictionary<string, string> packageContents) :
Msi\WorkloadPackGroupMsi.wix.cs (2)
36Dictionary<string, string> sourceDirectoryNamesAndValues = new(); 157public Dictionary<string, MsiDirectory> Subdirectories { get; } = new();
ProjectTemplateBase.cs (1)
54protected Dictionary<string, string> ReplacementTokens
Utils.cs (1)
98internal static void StringReplace(string fileName, Dictionary<string, string> tokenReplacements, Encoding encoding)
Wix\HarvesterToolTask.cs (1)
20private static readonly Dictionary<HeatSuppressions, string> s_SuppressionArguments = new()
WorkloadPackGroupPackage.wix.cs (1)
17public Dictionary<string, List<WorkloadManifestPackage>> ManifestsPerPlatform { get; } = new();
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.Helix.Client (1)
generated-code\PagedResponse.cs (1)
107var props = new Dictionary<string, string>();
Microsoft.DotNet.Helix.JobSender (3)
JobDefinition.cs (2)
24private readonly Dictionary<string, string> _properties; 180Dictionary<string, string> correlationPayloadUris =
JobListEntry.cs (1)
11public Dictionary<string, string> CorrelationPayloadUrisWithDestinations { get; set; } = new Dictionary<string, string>();
Microsoft.DotNet.Helix.Sdk (1)
ProvisioningProfileProvider.cs (1)
59private readonly Dictionary<ApplePlatform, string> _downloadedProfiles = new();
Microsoft.DotNet.Helix.Sdk.Tests (2)
FindDotNetCliPackageTests.cs (2)
86Dictionary<string, string> metadata = new Dictionary<string, string>() 137Dictionary<string, string> metadata = new Dictionary<string, string>()
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) 348private static void SavePackages(Dictionary<string, PackageInfo> packages, string outDirectory)
src\ReplacePackageParts.cs (3)
86private Dictionary<string, string> GetPartReplacementMap() 96var map = new Dictionary<string, string>(partCount); 115var replacementMap = GetPartReplacementMap();
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
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.SharedFramework.Sdk (9)
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\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\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.SignCheckLibrary (5)
Verification\ArchiveVerifier.cs (1)
33Dictionary<string, string> archiveMap = new Dictionary<string, string>();
Verification\MsiVerifier.cs (1)
33var originalFiles = new Dictionary<string, string>();
Verification\SignatureVerificationManager.cs (1)
17private static Dictionary<string, FileVerifier> _fileVerifiers = null;
Verification\SignatureVerificationResult.cs (2)
14private Dictionary<string, string> _detail; 23public Dictionary<string, string> Detail
Microsoft.DotNet.SignTool (26)
src\BatchSignUtil.cs (3)
24private readonly Dictionary<SignedFileContentKey, string> _hashToCollisionIdMap; 36Dictionary<SignedFileContentKey, string> hashToCollisionIdMap, 163Dictionary<SignedFileContentKey, FileSignInfo> engines = new Dictionary<SignedFileContentKey, FileSignInfo>();
src\Configuration.cs (12)
29private readonly Dictionary<SignedFileContentKey, ZipData> _zipDataMap; 41private readonly Dictionary<ExplicitCertificateKey, string> _fileSignInfo; 46private readonly Dictionary<string, List<SignInfo>> _strongNameInfo; 61private readonly Dictionary<string, List<SignInfo>> _fileExtensionSignInfo; 63private readonly Dictionary<SignedFileContentKey, FileSignInfo> _filesByContentKey; 68private readonly Dictionary<SignedFileContentKey, HashSet<string>> _whichPackagesTheFileIsIn; 73private readonly Dictionary<SigningToolErrorCode, HashSet<SignedFileContentKey>> _errors; 97internal Dictionary<SignedFileContentKey, string> _hashToCollisionIdMap; 106Dictionary<string, List<SignInfo>> strongNameInfo, 107Dictionary<ExplicitCertificateKey, string> fileSignInfo, 108Dictionary<string, List<SignInfo>> extensionSignInfo, 676var nestedParts = new Dictionary<string, ZipPart>();
src\SignToolTask.cs (9)
237var strongNameInfo = ParseStrongNameSignInfo(); 238var fileSignInfo = ParseFileSignInfo(); 239var extensionSignInfo = ParseFileExtensionSignInfo(); 363private Dictionary<string, List<SignInfo>> ParseFileExtensionSignInfo() 365var map = new Dictionary<string, List<SignInfo>>(StringComparer.OrdinalIgnoreCase); 409private Dictionary<string, List<SignInfo>> ParseStrongNameSignInfo() 411var map = new Dictionary<string, List<SignInfo>>(StringComparer.OrdinalIgnoreCase); 465private Dictionary<ExplicitCertificateKey, string> ParseFileSignInfo() 467var map = new Dictionary<ExplicitCertificateKey, string>();
src\Telemetry.cs (2)
14private Dictionary<string, double> _metrics; 15private static readonly Dictionary<string, string> s_properties = new Dictionary<string, string>()
Microsoft.DotNet.SignTool.Tests (77)
SignToolTests.cs (77)
25private static readonly Dictionary<string, List<SignInfo>> s_fileExtensionSignInfo = new Dictionary<string, List<SignInfo>>() 44private static readonly Dictionary<string, List<SignInfo>> s_fileExtensionSignInfoWithCollisionId = 303Dictionary<string, List<SignInfo>> strongNameSignInfo, 304Dictionary<ExplicitCertificateKey, string> fileSignInfo, 305Dictionary<string, List<SignInfo>> extensionsSignInfo, 355Dictionary<string, List<SignInfo>> strongNameSignInfo, 356Dictionary<ExplicitCertificateKey, string> fileSignInfo, 357Dictionary<string, List<SignInfo>> extensionsSignInfo, 379var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 381var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 443var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 449var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 478var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 484var fileSignInfo = new Dictionary<ExplicitCertificateKey, string> 517var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 523var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 550var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 556var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 595var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 601var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 635var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 641var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 669var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 676var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 710var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 715var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 735var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 740var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 760var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() { }; 761var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 791var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 797var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 844var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 850var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 925var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 932var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 1008var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1014var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1060var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1066var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1112var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1118var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1164var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1170var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1171var tempFileExtensionSignInfo = s_fileExtensionSignInfo.Where(s => s.Key != ".symbols.nupkg").ToDictionary(e => e.Key, e => e.Value); 1218var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1221var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1261var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1264var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1286var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1292var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1339var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1345var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1404var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1410var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1445var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1451var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1512var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1518var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1573var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1579var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1640var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1646var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1700var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1706var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1766var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1769var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1991var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1996var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2018var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2024var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2050var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2056var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2129var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2135var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 2188var needContent = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 2224var needContent = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\WriteUsageReports.cs (2)
68var prodConPackageOrigin = new Dictionary<string, string>( 225Dictionary<string, string> packageOrigin,
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (4)
Languages\Language.cs (1)
52private static readonly Dictionary<string, Language> _languages;
Modeler\ServiceClientModelFactory.cs (2)
36private readonly Dictionary<string, EnumTypeModel> _enumTypeModels = new Dictionary<string, EnumTypeModel>(); 45private readonly Dictionary<string, TypeModel> _types = new Dictionary<string, TypeModel>();
ServiceClientCodeFactory.cs (1)
18private Dictionary<string, CodeFile> _files = new Dictionary<string, CodeFile>();
Microsoft.DotNet.VersionTools (22)
Automation\GitHubVersionsRepoUpdater.cs (2)
72Dictionary<string, string> packageDictionary = CreatePackageInfoDictionary(packages); 100var allPackages = new Dictionary<string, string>(packageDictionary);
Automation\LocalVersionsRepoUpdater.cs (1)
49Dictionary<string, string> packageDictionary = CreatePackageInfoDictionary(packages);
Automation\VersionsRepoUpdater.cs (5)
31protected static Dictionary<string, string> CreatePackageInfoDictionary(IEnumerable<NupkgInfo> infos) 36protected static string CreatePackageListContent(Dictionary<string, string> packages) 49Dictionary<string, string> packages) 51Dictionary<string, string> existingPackages = await GetPackagesAsync( 75private static async Task<Dictionary<string, string>> GetPackagesAsync(
Automation\VstsApi\VstsApiModel.cs (1)
12public Dictionary<string, VstsCoreProfileAttribute> CoreAttributes { get; set; }
BuildInfo.cs (5)
25public Dictionary<string, string> LatestPackages { get; set; } 50Dictionary<string, string> packages; 145Dictionary<string, string> packages = await ReadPackageListAsync(packageReader); 172public static async Task<Dictionary<string, string>> ReadPackageListAsync(TextReader reader) 174var packages = new Dictionary<string, string>();
BuildManifest\Model\EndpointModel.cs (1)
23public Dictionary<string, string> Attributes { get; set; } = new Dictionary<string, string>();
BuildManifest\Model\SigningInformationParsingExtensions.cs (4)
27Dictionary<string, HashSet<string>> extensionToCertMapping = new Dictionary<string, HashSet<string>>( 79Dictionary<string, HashSet<string>> keyToCertMapping = new Dictionary<string, HashSet<string>>( 154Dictionary<string, HashSet<bool>> extensionToCertMapping = new Dictionary<string, HashSet<bool>>(); 190Dictionary<string, HashSet<string>> pktMapping = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase);
BuildManifest\Model\XElementParsingExtensions.cs (1)
24public static Dictionary<string, string> CreateAttributeDictionary(this XElement element)
BuildManifest\VersionIdentifier.cs (1)
102Dictionary<int,string> majorMinorPatchDictionary = new Dictionary<int, string>();
Dependencies\BuildOutput\BuildDependencyInfo.cs (1)
26public Dictionary<string, string> RawPackages { get; }
Microsoft.DotNet.VersionTools.Tasks (1)
BaseDependenciesTask.cs (1)
62protected Dictionary<IDependencyInfo, ITaskItem> DependencyInfoConfigItems { get; } =
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")); 93Dictionary<string, string> defaultTranslation = document.Nodes.ToDictionary(node => node.Id, node => node.Source);
Microsoft.DotNet.XliffTasks.Tests (9)
JsonDocumentTests.cs (1)
23Dictionary<string, string> translations = new()
ResxDocumentTests.cs (1)
26Dictionary<string, string> translations = new()
UnstructuredDocumentTests.cs (2)
22Dictionary<string, string> translations = new() 48Dictionary<string, string> translations = new()
VsctDocumentTests.cs (2)
36Dictionary<string, string> translations = new() 154Dictionary<string, string> translations = new()
XamlRuleDocumentTests.cs (3)
125Dictionary<string, string> translations = new() 293Dictionary<string, string> translations = new() 343private static void RunXamlTranslationTest(string source, Dictionary<string, string> translations, string expectedTranslation, string expectedXlf)
Microsoft.DotNet.XUnitAssert.Tests (98)
CollectionAssertsTests.cs (52)
1254 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1255 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1263 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1264 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } }; 1272 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1273 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1289 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1290 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1306 var expected = new Dictionary<string, int> 1315 var actual = new Dictionary<string, int> 1340 var expected = new Dictionary<string, IEnumerable<string>> 1345 var actual = new Dictionary<string, IEnumerable<string>> 1358 var expected = new Dictionary<string, IEnumerable<string>> 1363 var actual = new Dictionary<string, IEnumerable<string>> 1387 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1388 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1396 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 1397 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } }; 1421 var expected = new Dictionary<string, object>() 1425 ["key"] = new List<Dictionary<string, object>>() 1434 var actual = new Dictionary<string, object>() 1438 ["key"] = new List<Dictionary<string, object>>() 1454 var expected = new Dictionary<string, object>() 1458 ["key"] = new List<Dictionary<string, object>>() 1467 var actual = new Dictionary<string, object>() 1471 ["key"] = new List<Dictionary<string, object>>() 1929 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1930 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1946 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1947 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } }; 1963 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1964 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1972 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } }; 1973 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } }; 1981 var expected = new Dictionary<string, int> 1990 var actual = new Dictionary<string, int> 2007 var expected = new Dictionary<string, IEnumerable<string>> 2012 var actual = new Dictionary<string, IEnumerable<string>> 2033 var expected = new Dictionary<string, IEnumerable<string>> 2038 var actual = new Dictionary<string, IEnumerable<string>> 2054 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2055 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2071 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } }; 2072 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } }; 2088 var expected = new Dictionary<string, object>() 2092 ["key"] = new List<Dictionary<string, object>>() 2101 var actual = new Dictionary<string, object>() 2105 ["key"] = new List<Dictionary<string, object>>() 2129 var expected = new Dictionary<string, object>() 2133 ["key"] = new List<Dictionary<string, object>>() 2142 var actual = new Dictionary<string, object>() 2146 ["key"] = new List<Dictionary<string, object>>()
DictionaryAssertsTests.cs (4)
18 var dictionary = new Dictionary<string, int>(StringComparer.InvariantCultureIgnoreCase) 36 var dictionary = new Dictionary<string, int>() 70 var dictionary = new Dictionary<string, int>() 88 var dictionary = new Dictionary<string, int>(StringComparer.InvariantCultureIgnoreCase)
EqualityAssertsTests.cs (20)
1124 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1125 var actual = new Dictionary<string, string> { ["foo"] = "bar" }; 1135 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1136 var actual = new Dictionary<string, string> { ["foo"] = "baz" }; 1159 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1169 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 1192 var expected = new Dictionary<string, int?> { { "two", null } }; 1193 var actual = new Dictionary<string, int?> { { "two", null } }; 1201 var expected = new Dictionary<string, int?> { { "two", null } }; 1202 var actual = new Dictionary<string, int?> { { "two", 1 } }; 3353 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3354 var actual = new Dictionary<string, string> { ["foo"] = "bar" }; 3377 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3378 var actual = new Dictionary<string, string> { ["foo"] = "baz" }; 3388 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3411 var expected = new Dictionary<string, string> { ["foo"] = "bar" }; 3421 var expected = new Dictionary<string, int?> { { "two", null } }; 3422 var actual = new Dictionary<string, int?> { { "two", null } }; 3438 var expected = new Dictionary<string, int?> { { "two", null } }; 3439 var actual = new Dictionary<string, int?> { { "two", 1 } };
EquivalenceAssertsTests.cs (18)
1158 var expected = new Dictionary<string, int> { ["Foo"] = 42 }; 1159 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1167 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 } }; 1168 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } }; 1176 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 } }; 1177 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } }; 1194 var expected = new Dictionary<string, int> { ["Foo"] = 16 }; 1195 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1211 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 16 } }; 1212 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } }; 1228 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 16 } }; 1229 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } }; 1265 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 }; 1266 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1283 var expected = new Dictionary<string, int> { ["Foo"] = 16 }; 1284 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 }; 1300 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 }; 1301 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 };
Sdk\ArgumentFormatterTests.cs (4)
329 var value = new Dictionary<object, List<object>> 519 { typeof(Dictionary<int, string>), "typeof(System.Collections.Generic.Dictionary<int, string>)" }, 521 { typeof(Dictionary<,>), "typeof(System.Collections.Generic.Dictionary<,>)" } 543 var genericTypeParameters = typeof(Dictionary<,>).GetGenericArguments();
Microsoft.DotNet.XUnitExtensions (1)
Discoverers\ConditionalTheoryDiscoverer.cs (1)
13private readonly Dictionary<IMethodInfo, string> _conditionCache;
Microsoft.Extensions.AI (7)
ChatCompletion\OpenTelemetryChatClient.cs (3)
235private static Dictionary<int, List<StreamingChatCompletionUpdate>> OrganizeStreamingContent(IEnumerable<StreamingChatCompletionUpdate>? contents) 237Dictionary<int, List<StreamingChatCompletionUpdate>> choices = []; 434Dictionary<int, List<StreamingChatCompletionUpdate>> choices,
JsonDefaults.cs (1)
62[JsonSerializable(typeof(Dictionary<string, object>))]
src\Libraries\Microsoft.Extensions.AI.Abstractions\Contents\FunctionCallHelpers.cs (3)
43public static Dictionary<string, object?>? ParseFunctionCallArguments(string json, out Exception? parsingException) 63public static Dictionary<string, object?>? ParseFunctionCallArguments(ReadOnlySpan<byte> utf8Json, out Exception? parsingException) 373[JsonSerializable(typeof(Dictionary<string, object?>))]
Microsoft.Extensions.AI.Abstractions (6)
AdditionalPropertiesDictionary.cs (1)
17private readonly Dictionary<string, object?> _dictionary;
Contents\FunctionCallHelpers.cs (3)
43public static Dictionary<string, object?>? ParseFunctionCallArguments(string json, out Exception? parsingException) 63public static Dictionary<string, object?>? ParseFunctionCallArguments(ReadOnlySpan<byte> utf8Json, out Exception? parsingException) 373[JsonSerializable(typeof(Dictionary<string, object?>))]
Functions\AIFunctionMetadata.cs (2)
35private Dictionary<string, AIFunctionParameterMetadata>? _parametersByName; 88Dictionary<string, AIFunctionParameterMetadata>? parametersByName = _parametersByName ??= _parameters.ToDictionary(p => p.Name);
Microsoft.Extensions.AI.Abstractions.Tests (22)
Contents\FunctionCallContentTests..cs (18)
37Dictionary<string, object?> args = []; 107Dictionary<string, object?> arguments = new() 119AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 127Dictionary<string, object?> arguments = JsonSerializer.Deserialize<Dictionary<string, object?>>(""" 141AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 161var arguments = JsonSerializer.Deserialize<Dictionary<string, JsonDocument>>(""" 174AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 182var arguments = JsonSerializer.Deserialize<Dictionary<string, JsonNode>>(""" 195AIFunction function = AIFunctionFactory.Create((DayOfWeek[] a, double b, Guid c, Dictionary<string, string> d) => b, serializerOptions: TestJsonSerializerContext.Default.Options); 203var arguments = JsonSerializer.Deserialize<Dictionary<string, JsonDocument>>(""" 221Dictionary<string, object?> arguments = JsonSerializer.Deserialize<Dictionary<string, object?>>(""" 239var arguments = JsonSerializer.Deserialize<Dictionary<string, JsonNode>>("""
TestJsonSerializerContext.cs (4)
21[JsonSerializable(typeof(Dictionary<string, object?>))] 24[JsonSerializable(typeof(Dictionary<string, JsonDocument>))] // Used in Content tests 25[JsonSerializable(typeof(Dictionary<string, JsonNode>))] // Used in Content tests 26[JsonSerializable(typeof(Dictionary<string, string>))] // Used in Content tests
Microsoft.Extensions.AI.AzureAIInference (8)
AzureAIInferenceChatClient.cs (5)
96Dictionary<string, object?>? arguments = FunctionCallHelpers.ParseFunctionCallArguments(ftc.Arguments, out Exception? parsingException); 149Dictionary<int, FunctionCallInfo>? functionCallInfos = null; 229var arguments = FunctionCallHelpers.ParseFunctionCallArguments( 407public Dictionary<string, JsonElement> Properties { get; set; } = []; 458Dictionary<string, ChatCompletionsToolCall>? toolCalls = null;
src\Libraries\Microsoft.Extensions.AI.Abstractions\Contents\FunctionCallHelpers.cs (3)
43public static Dictionary<string, object?>? ParseFunctionCallArguments(string json, out Exception? parsingException) 63public static Dictionary<string, object?>? ParseFunctionCallArguments(ReadOnlySpan<byte> utf8Json, out Exception? parsingException) 373[JsonSerializable(typeof(Dictionary<string, object?>))]
Microsoft.Extensions.AI.Ollama (3)
src\Libraries\Microsoft.Extensions.AI.Abstractions\Contents\FunctionCallHelpers.cs (3)
43public static Dictionary<string, object?>? ParseFunctionCallArguments(string json, out Exception? parsingException) 63public static Dictionary<string, object?>? ParseFunctionCallArguments(ReadOnlySpan<byte> utf8Json, out Exception? parsingException) 373[JsonSerializable(typeof(Dictionary<string, object?>))]
Microsoft.Extensions.AI.OpenAI (8)
OpenAIChatClient.cs (5)
126Dictionary<string, object?>? arguments = FunctionCallHelpers.ParseFunctionCallArguments(toolCall.FunctionArguments, out Exception? parsingException); 192Dictionary<int, FunctionCallInfo>? functionCallInfos = null; 323var arguments = FunctionCallHelpers.ParseFunctionCallArguments( 534public Dictionary<string, JsonElement> Properties { get; set; } = []; 629Dictionary<string, ChatToolCall>? toolCalls = null;
src\Libraries\Microsoft.Extensions.AI.Abstractions\Contents\FunctionCallHelpers.cs (3)
43public static Dictionary<string, object?>? ParseFunctionCallArguments(string json, out Exception? parsingException) 63public static Dictionary<string, object?>? ParseFunctionCallArguments(ReadOnlySpan<byte> utf8Json, out Exception? parsingException) 373[JsonSerializable(typeof(Dictionary<string, object?>))]
Microsoft.Extensions.AI.Tests (4)
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.ApiDescription.Client.Tests (14)
GetOpenApiReferenceMetadataTest.cs (13)
21var inputMetadata = new Dictionary<string, string> { { "CodeGenerator", "NSwagCSharp" } }; 74var inputMetadata = new Dictionary<string, string> 132var inputMetadata = new Dictionary<string, string> 190var inputMetadata = new Dictionary<string, string> 249var inputMetadata1 = new Dictionary<string, string> 253var inputMetadata2 = new Dictionary<string, string> 294var inputMetadata1 = new Dictionary<string, string> 299var inputMetadata2 = new Dictionary<string, string> 340var inputMetadata = new Dictionary<string, string> 403var inputMetadata = new Dictionary<string, string> 463var inputMetadata1 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } }; 464var inputMetadata2 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator2 } }; 465var inputMetadata3 = new Dictionary<string, string> { { "CodeGenerator", codeGenerator13 } };
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.AsyncState (5)
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)
src\Shared\Pools\PoolFactory.cs (2)
122/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 133public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
StampedeTests.cs (1)
435Dictionary<object, int> counts = [];
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheWithDatabaseTest.cs (1)
36var memoryConfigurationData = new Dictionary<string, string>
Microsoft.Extensions.Compliance.Abstractions (5)
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)
src\Shared\Pools\PoolFactory.cs (2)
122/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 133public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
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)
640dictionaryType = typeof(Dictionary<,>).MakeGenericType(keyType, valueType); 688(dictionaryType.GetGenericTypeDefinition() == typeof(IDictionary<,>) || dictionaryType.GetGenericTypeDefinition() == typeof(Dictionary<,>)));
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)
64var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 104private void HandleMatchedConnectionStringPrefix(Dictionary<string, string?> data, string connectionStringPrefix, string? provider, string fullKey, string? value) 116private 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.DependencyInjection (5)
ServiceLookup\CallSiteChain.cs (1)
13private readonly Dictionary<ServiceIdentifier, ChainItemInfo> _callSiteChain;
ServiceLookup\CallSiteFactory.cs (1)
19private readonly Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem> _descriptorLookup = new Dictionary<ServiceIdentifier, ServiceDescriptorCacheItem>();
ServiceLookup\CallSiteRuntimeResolver.cs (1)
116Dictionary<ServiceCacheKey, object?> resolvedServices = serviceProviderEngine.ResolvedServices;
ServiceLookup\ServiceProviderEngineScope.cs (1)
30internal Dictionary<ServiceCacheKey, object?> ResolvedServices { get; }
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; 634private Dictionary<string, LibraryStub> ReadLibraries(ref Utf8JsonReader reader) 636var libraries = new Dictionary<string, LibraryStub>(); 738private IEnumerable<Library> CreateLibraries(IEnumerable<TargetLibrary>? libraries, bool runtime, Dictionary<string, LibraryStub>? libraryStubs) 747IEnumerable<Library> CreateLibrariesNotNull(IEnumerable<TargetLibrary> libraries, bool runtime, Dictionary<string, LibraryStub>? libraryStubs) 758private 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 (2)
Metrics\DefaultMeterFactory.cs (1)
14private readonly Dictionary<string, List<FactoryMeter>> _cachedMeters = new();
Metrics\ListenerSubscription.cs (1)
16private readonly Dictionary<Instrument, object?> _instruments = new();
Microsoft.Extensions.Diagnostics.Abstractions (1)
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)
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)
src\Shared\Pools\PoolFactory.cs (2)
122/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 133public 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.Tests (3)
DefaultHealthCheckServiceTest.cs (3)
67var data = new Dictionary<string, object>() 170var data = new Dictionary<string, object> 700var data = new Dictionary<string, object>()
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
MockHealthCheckService.cs (1)
26var healthStatusRecords = new Dictionary<string, HealthReportEntry> { { "id", entry } };
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
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)
src\Shared\Pools\PoolFactory.cs (2)
122/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 133public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Linux\Resources\HardcodedValueFileSystem.cs (2)
16private readonly Dictionary<string, string> _fileContent; 25public HardcodedValueFileSystem(Dictionary<FileInfo, string> fileContent, string fallback = "")
Linux\Resources\TestResources.cs (1)
15private static readonly Dictionary<string, string> _files = new(StringComparer.OrdinalIgnoreCase)
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)
88var ss = logger.LatestRecord.StructuredState!.ToDictionary(x => x.Key, x => x.Value);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
ManifestEmbeddedFileProviderTests.cs (1)
392var root = provider.GetDirectoryContents("/").ToDictionary(f => f.Name);
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
84var 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\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Http.Diagnostics (12)
Http\DownstreamDependencyMetadataManager.cs (6)
32Dictionary<string, RequestMetadataTrieNode> dependencyTrieMap = []; 92private static void AddRouteToTrie(RequestMetadata routeMetadata, Dictionary<string, RequestMetadataTrieNode> dependencyTrieMap) 171private static Dictionary<string, ProcessedMetadata> ProcessDownstreamDependencyMetadata(Dictionary<string, RequestMetadataTrieNode> dependencyTrieMap) 173Dictionary<string, ProcessedMetadata> finalArrayDict = []; 276private void AddDependency(IDownstreamDependencyMetadata downstreamDependencyMetadata, Dictionary<string, RequestMetadataTrieNode> dependencyTrieMap)
Latency\Internal\HttpRequestLatencyListener.cs (6)
94private static readonly Dictionary<string, string> _socketMap = new() 100private static readonly Dictionary<string, string> _nameResolutionMap = new() 106private static readonly Dictionary<string, string> _httpMap = new() 124Dictionary<string, CheckpointToken> socket = []; 130Dictionary<string, CheckpointToken> nameResolution = []; 136Dictionary<string, CheckpointToken> http = [];
Microsoft.Extensions.Http.Diagnostics.Tests (11)
Logging\HttpClientLoggerTest.cs (7)
242var logRecordState = logRecord.GetStructuredState(); 339var logRecordRequest = logRecords[0].GetStructuredState(); 348var logRecordFull = logRecords[1].GetStructuredState(); 444var logRecordState = logRecord.GetStructuredState(); 559var logRecordState = logRecord.GetStructuredState(); 649var logRecordState = logRecord.GetStructuredState(); 921var logRecord = Assert.Single(logRecords).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)
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)
src\Shared\Pools\PoolFactory.cs (2)
122/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 133public 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)
293public 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)
43private readonly Dictionary<string, IUserTwoFactorTokenProvider<TUser>> _tokenProviders =
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\Extensions\TypeNameHelper\TypeNameHelper.cs (1)
15private static readonly Dictionary<Type, string> _builtInTypeNames = new Dictionary<Type, string>
Microsoft.Extensions.Logging.Generators (3)
LoggerMessageGenerator.Parser.cs (3)
575var methods = new Dictionary<string, int>(lc.Methods.Count); 738private static bool ExtractTemplates(string? message, Dictionary<string, string> templateMap, List<string> templateList) 876public readonly Dictionary<string, string> TemplateMap = new(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
60public Dictionary<string, Type> ConfigTypes { get; }
Microsoft.Extensions.Options (1)
StartupValidatorOptions.cs (1)
12public Dictionary<(Type, string), Action> _validators { get; } = new Dictionary<(Type, string), Action>();
Microsoft.Extensions.Options.SourceGeneration (14)
Emitter.cs (11)
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) 670ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, 671ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 730private void GenMemberValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, bool cleanListsBeforeUse) 753private StaticFieldInfo GetOrAddStaticValidationAttribute(ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, ValidationAttributeInfo attr) 813private void GenTransitiveValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 844private void GenEnumerationValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict) 901private 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 (1)
29private readonly Dictionary<ITypeSymbol, ValidatorType> _synthesizedValidators = new(SymbolEqualityComparer.Default);
Microsoft.Extensions.SecretManager.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
16private readonly Dictionary<string, string> _files = new Dictionary<string, string>();
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsSrvServiceEndpointProvider.cs (1)
44var lookupMapping = new Dictionary<string, DnsResourceRecord>();
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)
38var destinationConfigs = new Dictionary<string, DestinationConfig> 69var destinationConfigs = new Dictionary<string, DestinationConfig> 99var destinationConfigs = new Dictionary<string, DestinationConfig> 133var destinationConfigs = new Dictionary<string, DestinationConfig> 218var destinationConfigs = new Dictionary<string, DestinationConfig> 241var destinationConfigs = new Dictionary<string, DestinationConfig> 300var 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)
18private readonly Dictionary<string, ExtendedLogger> _loggers = new(StringComparer.Ordinal);
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)
src\Shared\Pools\PoolFactory.cs (2)
122/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 133public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Microsoft.Extensions.Telemetry.Abstractions (5)
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)
src\Shared\Pools\PoolFactory.cs (2)
122/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 133public 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 (25)
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 (9)
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()
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.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)
56Dictionary<string, string>? options = useExplicitReportPath 121var options = new Dictionary<string, string> 148var options = new Dictionary<string, string> 164private static async Task<IReadOnlyList<Diagnostic>> RunGenerator(string code, string? outputFile = null, Dictionary<string, string>? options = null) 186private readonly Dictionary<string, string> _options; 188public Options(Dictionary<string, string>? analyzerOptions) 199private 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)
Emission\Emitter.cs (1)
19private readonly Dictionary<string, string> _classificationMap = [];
Parsing\Parser.cs (2)
48var parameterSymbols = new Dictionary<LoggingMethodParameter, IParameterSymbol>(); 479private void CheckTagNamesAreUnique(LoggingMethod lm, Dictionary<LoggingMethodParameter, IParameterSymbol> parameterSymbols)
Parsing\Parser.LogProperties.cs (1)
105var sensitivePropsFromCtor = new Dictionary<string, List<INamedTypeSymbol>>();
Microsoft.Gen.Logging.Generated.Tests (39)
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 (15)
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?>
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?>
test\Generators\Microsoft.Gen.Logging\TestClasses\EnumerableTestExtensions.cs (1)
45public static partial void M10(ILogger logger, IEnumerable<int> p1, int[] p2, Dictionary<string, int> p3);
TransitiveTests.cs (2)
22var expectedState = new Dictionary<string, string?> 49var expectedState = new Dictionary<string, string?>
Microsoft.Gen.Metrics (10)
Emitter.cs (1)
23Dictionary<string, List<MetricType>> metricClassesDict = [];
MetricFactoryEmitter.cs (1)
19Dictionary<string, List<MetricType>> metricClassesDict = [];
Model\MetricMethod.cs (1)
12public Dictionary<string, string> TagDescriptionDictionary = [];
Parser.cs (6)
276private (string metricName, HashSet<string> tagNames, Dictionary<string, string> dimensionDescriptions) ExtractAttributeParameters( 281var tagDescriptionMap = new Dictionary<string, string>(); 369Dictionary<string, string> tagDescriptionDictionary) 679Dictionary<string, string> tagDescriptionDictionary, 857Dictionary<string, string> tagDescriptionDictionary, 896Dictionary<string, string> tagDescriptionDictionary,
StrongTypeAttributeParameters.cs (1)
13public Dictionary<string, string> TagDescriptionDictionary = [];
Microsoft.Gen.MetricsReports (9)
ReportedMetricClass.cs (1)
11internal readonly record struct ReportedMetricMethod(string MetricName, string Summary, InstrumentKind Kind, HashSet<string> Dimensions, Dictionary<string, string> DimensionsDescriptions);
src\Generators\Microsoft.Gen.Metrics\Model\MetricMethod.cs (1)
12public Dictionary<string, string> TagDescriptionDictionary = [];
src\Generators\Microsoft.Gen.Metrics\Parser.cs (6)
276private (string metricName, HashSet<string> tagNames, Dictionary<string, string> dimensionDescriptions) ExtractAttributeParameters( 281var tagDescriptionMap = new Dictionary<string, string>(); 369Dictionary<string, string> tagDescriptionDictionary) 679Dictionary<string, string> tagDescriptionDictionary, 857Dictionary<string, string> tagDescriptionDictionary, 896Dictionary<string, string> tagDescriptionDictionary,
src\Generators\Microsoft.Gen.Metrics\StrongTypeAttributeParameters.cs (1)
13public Dictionary<string, string> TagDescriptionDictionary = [];
Microsoft.Gen.MetricsReports.Unit.Tests (8)
GeneratorTests.cs (8)
38Dictionary<string, string>? options = useExplicitReportPath 86var options = new Dictionary<string, string> 102var options = new Dictionary<string, string> 129var options = new Dictionary<string, string> 147Dictionary<string, string>? analyzerOptions = null, 176private readonly Dictionary<string, string> _options; 178public Options(Dictionary<string, string>? analyzerOptions) 189private sealed class OptionsProvider(Dictionary<string, string>? analyzerOptions) : AnalyzerConfigOptionsProvider
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();
ComMethodContext.cs (2)
158var ifaceToDeclaredMethodsMap = ifaceAndDeclaredMethods.ToDictionary(static pair => pair.Item1, static pair => pair.Item2); 159var 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)
163Dictionary<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); 431private static Dictionary<string, (MethodInfo, Type[])> ScanAssemblyForCallableMethods(AssemblyKey assemblyKey) 435var result = new Dictionary<string, (MethodInfo, Type[])>(StringComparer.Ordinal);
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 (29)
CommandLine\CmdParser.cs (3)
467var map = new Dictionary<string, Argument>(); 1335public readonly Dictionary<string, Argument> Map; 1339public 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)
448private 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\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)
35private static Dictionary<string, string> _disableAvxEnvironmentVariables; 36private static Dictionary<string, string> _disableAvxAndSseEnvironmentVariables; 142public static TheoryData<string, string, Dictionary<string, string>> AddData() 146return new TheoryData<string, string, Dictionary<string, string>>() 154return new TheoryData<string, string, Dictionary<string, string>>() 170public static TheoryData<string, string, string, Dictionary<string, string>> AddScaleData() 174return new TheoryData<string, string, string, Dictionary<string, string>>() 184return new TheoryData<string, string, string, Dictionary<string, string>>() 207public static TheoryData<string, string, string, string, Dictionary<string, string>> MatMulData() 211return new TheoryData<string, string, string, string, Dictionary<string, string>>() 220return new TheoryData<string, string, string, string, Dictionary<string, string>>() 240public void MatMulTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables) 275public void MatMulTranTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables) 308public void MatTimesSrcSparseTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables) 346public void AddScalarUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 372public void ScaleTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 398public void ScaleSrcUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 425public void ScaleAddUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 452public void AddScaleUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 479public void AddScaleSUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 508public void AddScaleCopyUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 536public void AddUTest(string mode, string test, Dictionary<string, string> environmentVariables) 569public void AddSUTest(string mode, string test, Dictionary<string, string> environmentVariables) 598public void MulElementWiseUTest(string mode, string test, Dictionary<string, string> environmentVariables) 632public void SumTest(string mode, string test, Dictionary<string, string> environmentVariables) 655public void SumSqUTest(string mode, string test, Dictionary<string, string> environmentVariables) 678public void SumSqDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 703public void SumAbsUTest(string mode, string test, Dictionary<string, string> environmentVariables) 726public void SumAbsDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 751public void MaxAbsUTest(string mode, string test, Dictionary<string, string> environmentVariables) 779public void MaxAbsDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 807public void DotUTest(string mode, string test, Dictionary<string, string> environmentVariables) 837public void DotSUTest(string mode, string test, Dictionary<string, string> environmentVariables) 871public void Dist2Test(string mode, string test, Dictionary<string, string> environmentVariables) 931public void SdcaL1UpdateUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 961public void SdcaL1UpdateSUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables) 991private void UpdateEnvVars(RemoteOptions 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 (2)
LlamaForCausalLM.cs (1)
53var embeddingWeight = model.Embedding.state_dict();
LlamaTokenizerHelper.cs (1)
27private static readonly Dictionary<string, int> _specialTokens = new()
Microsoft.ML.GenAI.Mistral (4)
Mistral_7B_0_3ChatTemplateBuilder.cs (1)
171var propertiesSchemas = new Dictionary<string, JsonSchema>();
MistralTokenizerHelper.cs (3)
61Dictionary<string, int>? additionalSpecialTokens = null) 63var specialTokens = new Dictionary<string, int> 94Dictionary<string, int> specialTokens,
Microsoft.ML.GenAI.Phi (2)
Phi2\Phi2ForCasualLM.cs (1)
62var loadedParameters = new Dictionary<string, bool>();
Phi3\Config.cs (1)
128public Dictionary<string, object>? RopeScaling { get; set; }
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.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)
427private 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>();
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>() 260internal virtual Dictionary<string, object> ToDictionary(IHost host) 263Dictionary<string, object> res = new Dictionary<string, object>(); 306private protected readonly Dictionary<string, object> GbmOptions; 391var modelParameters = Booster.GetParameters(modelText); 473var otherParams = ParallelTraining.AdditionalParams(); 525internal Dictionary<string, object> GetGbmParameters() => GbmOptions; 867Dictionary<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)
249public 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)
227var inputTypePool = new Dictionary<string, DataViewType>(); 231var initializerTypePool = new Dictionary<string, DataViewType>(); 235var outputTypePool = new Dictionary<string, DataViewType>(); 237var casterPool = new Dictionary<string, Func<NamedOnnxValue, object>>(); 263Dictionary<string, DataViewType> typePool, 264Dictionary<string, Func<NamedOnnxValue, object>> casterPool) 475private static readonly Dictionary<Type, InternalDataKind> _typeToKindMap =
Microsoft.ML.OnnxTransformerTest (5)
OnnxTransformTests.cs (5)
808var inputDict0 = new Dictionary<int, float> { { 0, 94.17f }, { 1, 17.36f } }; 809var inputDict1 = new Dictionary<int, float> { { 0, 12.28f }, { 1, 75.12f } }; 863var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } }; 948var shapeDictionary = new Dictionary<string, int[]>() { 1033var 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.TestFramework (1)
RemoteExecutor.cs (1)
187public RemoteInvokeOptions(Dictionary<string, string> environmentVariables = null)
Microsoft.ML.Tests (3)
TextLoaderTests.cs (2)
735var irisFirstRow = new Dictionary<string, float>(); 844var irisFirstRow = new Dictionary<string, float>();
TrainerEstimators\TreeEstimators.cs (1)
517var 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 (90)
Model\BPETokenizer.cs (15)
32private readonly Dictionary<StringSpanOrdinalKey, (int, string)>? _addedTokens; 33private readonly Dictionary<int, string>? _addedTokensReverse; 123(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = ReadModelDataAsync(vocabStream, mergesStream, useAsync: false).GetAwaiter().GetResult(); 164(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = ReadModelDataAsync(vocabStream, mergesStream, useAsync: false).GetAwaiter().GetResult(); 197(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = await ReadModelDataAsync(vocabStream, mergesStream, useAsync: true).ConfigureAwait(false); 215Dictionary<StringSpanOrdinalKey, int>? vocab, 758internal static async ValueTask<(Dictionary<StringSpanOrdinalKey, int>?, Vec<(string, string)>)> ReadModelDataAsync(Stream vocab, Stream? merges, bool useAsync, CancellationToken cancellationToken = default) 762Dictionary<StringSpanOrdinalKey, int>? dic = useAsync ? 763await JsonSerializer.DeserializeAsync<Dictionary<StringSpanOrdinalKey, int>>(vocab, options, cancellationToken).ConfigureAwait(false) as Dictionary<StringSpanOrdinalKey, int> : 764JsonSerializer.Deserialize<Dictionary<StringSpanOrdinalKey, int>>(vocab, options) as Dictionary<StringSpanOrdinalKey, int>; 773private readonly Dictionary<StringSpanOrdinalKey, int> _vocab; 778internal Dictionary<Pair<int>, (int, int)> Merges { get; } 835private readonly Dictionary<char, string> _charToString = new Dictionary<char, string>();
Model\Cache.cs (1)
13private readonly Dictionary<TKey, TValue> _map;
Model\CodeGenTokenizer.cs (11)
25private readonly Dictionary<StringSpanOrdinalKey, (int Id, string Token)> _vocab; 28private readonly Dictionary<StringSpanOrdinalKey, (int, string)>? _addedTokens; 29private readonly Dictionary<int, string>? _addedTokensReverse; 30private readonly Dictionary<StringSpanOrdinalKeyPair, int> _mergeRanks; 1722internal static readonly Dictionary<string, int> CodeGenAddedTokens = new() 1765private static Dictionary<StringSpanOrdinalKey, (int, string)> GetVocabulary(Stream vocabularyStream) 1767Dictionary<StringSpanOrdinalKey, (int, string)>? vocab; 1771vocab = JsonSerializer.Deserialize<Dictionary<StringSpanOrdinalKey, (int, string)>>(vocabularyStream, options) as Dictionary<StringSpanOrdinalKey, (int, string)>; 1786internal static Dictionary<StringSpanOrdinalKeyPair, int> GetMergeRanks(Stream mergeStream) 1788var mergeRanks = new Dictionary<StringSpanOrdinalKeyPair, int>();
Model\EnglishRobertaTokenizer.cs (11)
23private readonly Dictionary<StringSpanOrdinalKey, int> _vocab; 24private Dictionary<string, int>? _vocabOriginal; 167private static Dictionary<StringSpanOrdinalKey, int> GetVocabulary(Stream vocabularyStream) 169Dictionary<StringSpanOrdinalKey, int>? vocab; 173vocab = JsonSerializer.Deserialize<Dictionary<StringSpanOrdinalKey, int>>(vocabularyStream, options) as Dictionary<StringSpanOrdinalKey, int>; 223private Dictionary<string, int> GetVocab() 225Dictionary<string, int>? publicVocab = Volatile.Read(ref _vocabOriginal); 228var vocab = new Dictionary<string, int>(); 1096private readonly Dictionary<int, int> _idToIndex; 1097private readonly Dictionary<string, int> _stringSymbolToIndexMapping;
Model\SentencePieceTokenizer.cs (11)
28private readonly Dictionary<StringSpanOrdinalKey, (int Id, float Score, byte Type)> _vocab = new(); 29private readonly Dictionary<int, string> _vocabReverse = new(); 36private readonly Dictionary<StringSpanOrdinalKey, int>? _specialTokens; 37private readonly Dictionary<int, string>? _specialTokensReverse; 175var vocab = new Dictionary<string, int>(); 318Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols); 672Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols); 996Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols); 1369Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols); 2171private Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? Encode(ReadOnlySpan<char> text, BpeSymbol[] symbols) 2195Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = null;
Model\TiktokenTokenizer.cs (27)
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; 1035private static readonly Dictionary<string, ModelEncoding> _modelToEncoding = 1116private static (Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) GetTiktokenConfigurations(string modelName) => GetTiktokenConfigurations(GetModelEncoding(modelName), modelName); 1118private static (Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) GetTiktokenConfigurations(ModelEncoding modelEncoding, string? modelName = null) 1197private 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); 1209(Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) tiktokenConfiguration = GetTiktokenConfigurations(modelEncoding, modelName); 1221out (Dictionary<ReadOnlyMemory<byte>, int> encoder, Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, Dictionary<int, ReadOnlyMemory<byte>> decoder) cache)) 1303(Dictionary<ReadOnlyMemory<byte>, int> encoder, Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, Dictionary<int, ReadOnlyMemory<byte>> decoder) = 1357(Dictionary<string, int> SpecialTokens, Regex Regex, string _, Type? __, string ___) tiktokenConfiguration = GetTiktokenConfigurations(modelName); 1397(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)
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 (9)
76private readonly Dictionary<StringSpanOrdinalKey, TValue> _map; 143internal class StringSpanOrdinalKeyCustomConverter : JsonConverter<Dictionary<StringSpanOrdinalKey, (int, string)>> 147public override Dictionary<StringSpanOrdinalKey, (int, string)> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 149var dictionary = new Dictionary<StringSpanOrdinalKey, (int, string)>(); 168public override void Write(Utf8JsonWriter writer, Dictionary<StringSpanOrdinalKey, (int, string)> value, JsonSerializerOptions options) => throw new NotImplementedException(); 176public static unsafe bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKey, TValue> map, ReadOnlySpan<char> key, out TValue value) 184public static bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKey, TValue> map, string key, out TValue value) => 187public static unsafe bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKeyPair, TValue> map, ReadOnlySpan<char> key1, ReadOnlySpan<char> key2, out TValue value) 196public 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 (10)
BpeTests.cs (5)
24private static readonly Dictionary<string, int> _vocabDataWithWordPrefixAndEndOfWordSuffix = 236Dictionary<string, int> vocab, 272var reverseVocabulary = bpe.Vocabulary.ToDictionary(kvp => kvp.Value, kvp => kvp.Key); 543private static string WriteToVocabFile(Dictionary<string, int> dic) 546File.WriteAllText(fileName, JsonSerializer.Serialize<Dictionary<string, int>>(dic), Encoding.UTF8);
CodeGenTests.cs (2)
498var reverseVocab = codeGenTokenizer.Vocabulary.ToDictionary(kvp => kvp.Value, kvp => kvp.Key); 499var reverseAddedTokens = codeGenTokenizer.AddedTokens?.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);
TiktokenTests.cs (1)
25private static readonly Dictionary<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 (64)
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 (6)
137private static volatile Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> _langsDictionary; 164private static Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> LangsDictionary 168Dictionary<ReadOnlyMemory<char>, StopWordsRemovingEstimator.Language> result = _langsDictionary; 353private readonly Dictionary<int, int> _colMapNewToOld; 672var result = inputSchema.ToDictionary(x => x.Name); 1240var result = inputSchema.ToDictionary(x => x.Name);
Text\TextFeaturizingEstimator.cs (1)
634var result = inputSchema.ToDictionary(x => x.Name);
Text\TextNormalizing.cs (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)
59private readonly Dictionary<string, string> _idvToTfMapping; 848public Dictionary<string, Tensor> Outputs; 1256var result = inputSchema.ToDictionary(x => x.Name); 1257var resultDic = inputSchema.ToDictionary(x => x.Name);
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
59private Dictionary<string, int>? _internCallCountsByString;
Microsoft.NET.StringTools.net35 (2)
WeakStringCache.Locking.cs (1)
14private readonly Dictionary<int, StringWeakHandle> _stringsByHashCode;
WeakStringCacheInterner.cs (1)
59private Dictionary<string, int>? _internCallCountsByString;
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.LanguageServices (44)
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
110var parameterNameOverlapMap = new Dictionary<string, List<ParameterViewModel>>();
Extensions\VisualStudioWorkspaceImplExtensions.cs (2)
22private static readonly ConditionalWeakTable<IVsHierarchy, Dictionary<uint, IImageHandle>> s_hierarchyToItemIdToImageHandle = new(); 26var itemIdToImageHandle = s_hierarchyToItemIdToImageHandle.GetValue(hierarchy, static _ => new Dictionary<uint, IImageHandle>());
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
102private readonly Dictionary<DefinitionItem, RoslynDefinitionBucket> _definitionToBucket = [];
FindReferences\RoslynDefinitionBucket.cs (1)
37private readonly Dictionary<(string? filePath, TextSpan span), DocumentSpanEntry> _locationToEntry = [];
GenerateType\GenerateTypeDialogViewModel.cs (2)
34private Dictionary<string, Accessibility> _accessListMap; 35private Dictionary<string, TypeKind> _typeKindMap;
Implementation\VsRefactorNotifyService.cs (6)
39if (TryGetRenameAPIRequiredArguments(workspace, changedDocumentIDs, symbol, out var hierarchyToItemIDsMap, out var rqnames)) 76if (TryGetRenameAPIRequiredArguments(workspace, changedDocumentIDs, symbol, out var hierarchyToItemIDsMap, out var rqnames)) 113out Dictionary<IVsHierarchy, List<uint>> hierarchyToItemIDsMap, 132out Dictionary<IVsHierarchy, List<uint>> hierarchyToItemIDsMap, 176private Dictionary<IVsHierarchy, List<uint>> GetHierarchiesAndItemIDsFromDocumentIDs(VisualStudioWorkspace visualStudioWorkspace, IEnumerable<DocumentId> changedDocumentIDs) 180var hierarchyToItemIDsMap = new Dictionary<IVsHierarchy, List<uint>>();
Interactive\VsInteractiveWindowProvider.cs (1)
162var interactiveCommandMap = new Dictionary<string, int>();
Interop\CleanableWeakComHandleTable.cs (1)
30private readonly Dictionary<TKey, WeakComHandle<TValue, TValue>> _table;
LanguageService\AbstractLanguageService`2.IVsImmediateStatementCompletion2.cs (1)
22protected Dictionary<IVsTextView, DebuggerIntelliSenseFilter> filters = [];
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
597var visitedAssemblies = new Dictionary<string, AssemblyIdentity>();
Progression\GraphBuilder.cs (3)
36private readonly Dictionary<GraphNode, Project> _nodeToContextProjectMap = []; 37private readonly Dictionary<GraphNode, Document> _nodeToContextDocumentMap = []; 38private readonly Dictionary<GraphNode, ISymbol> _nodeToSymbolMap = [];
Progression\IconHelper.cs (2)
46var supportedGlyphGroups = new Dictionary<StandardGlyphGroup, string> 69var supportedGlyphItems = new Dictionary<StandardGlyphItem, string>
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
308private readonly Dictionary<uint, ImmutableArray<string>> _folderNameMap = [];
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
55private readonly Dictionary<string, (DateTime lastWriteTime, AssemblyMetadata metadata)> _metadataCache = new(StringComparer.OrdinalIgnoreCase);
ProjectSystem\MiscellaneousFilesWorkspace.cs (2)
39private readonly Dictionary<Guid, LanguageInformation> _languageInformationByLanguageGuid = []; 51private readonly Dictionary<string, (ProjectId projectId, SourceTextContainer textContainer)> _monikersToProjectIdAndContainer = new Dictionary<string, (ProjectId, SourceTextContainer)>();
ProjectSystem\RuleSets\RuleSetEventHandler.cs (1)
87var ruleSetRenames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
127var specificDiagnosticOptions = new Dictionary<string, ReportDiagnostic>();
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
95private readonly Dictionary<string, List<ProjectSystemProject>> _projectSystemNameToProjectsMap = []; 100private readonly Dictionary<string, UIContext?> _languageToProjectExistsUIContext = [];
SolutionEventMonitor.cs (1)
25private readonly Dictionary<string, IDisposable> _operations = [];
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
28private readonly Dictionary<K, CacheValue> _cache;
StackTraceExplorer\StackFrameViewModel.cs (1)
37private readonly Dictionary<StackFrameSymbolPart, DefinitionItem?> _definitionCache = [];
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
195Dictionary<string, Project>? projectNameToProjectMap = null; 196Dictionary<Project, ImmutableDictionary<string, Document>>? filePathToDocumentMap = null;
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
488var latestDocumentDiagnosticsMap = filterStaleDiagnostics ? new Dictionary<DocumentId, ImmutableHashSet<DiagnosticData>>() : null;
TaskList\ExternalErrorDiagnosticUpdateSource.cs (2)
321private readonly Dictionary<ProjectId, ImmutableHashSet<string>> _allDiagnosticIdMap = []; 336Dictionary<ProjectId, ImmutableHashSet<string>> diagnosticIdMap,
Telemetry\CodeMarkerLogger.cs (3)
20private static readonly Dictionary<FunctionId, List<Tuple<CodeMarkerId, CodeMarkerId>>> s_blockMap 115private static readonly Dictionary<FunctionId, List<CodeMarkerId>> s_map 152private static void FireCodeMarkers<T>(Dictionary<FunctionId, List<T>> map, FunctionId functionId, Func<T, int> getter)
Utilities\VsCodeWindowViewTracker.cs (1)
38private readonly Dictionary<IVsTextView, ITextView> _trackedTextViews = [];
Workspace\SourceGeneratedFileManager.cs (2)
61private readonly Dictionary<string, OpenSourceGeneratedFile> _openFiles = []; 72private readonly Dictionary<Guid, SourceGeneratedDocumentIdentity> _directoryInfoOnDiskByContainingDirectoryId = [];
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
ReferenceCodeLensProvider.cs (1)
48private readonly Dictionary<Guid, (string version, HashSet<DataPoint> dataPoints)> _dataPoints = [];
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
89var diagnosticOptions = new Dictionary<string, ReportDiagnostic>(ruleSetSpecificDiagnosticOptions);
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Logging\VSCodeTelemetryLogger.cs (1)
151var kvp = new Dictionary<string, string>
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\Razor\CSharpLspRazorProjectFactory.cs (1)
17private readonly Dictionary<string, ProjectId> _projects = [];
Microsoft.VisualStudio.LanguageServices.Xaml (5)
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (3)
74var commitCharactersCache = new Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>>(); 82private static CompletionItem CreateCompletionItem(XamlCompletionItem xamlCompletion, DocumentId documentId, SourceText text, Position position, TextDocumentIdentifier textDocument, Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>> commitCharactersCach) 127private static SumType<string[], VSInternalCommitCharacter[]> GetCommitCharacters(XamlCompletionItem completionItem, Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>> commitCharactersCache)
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (1)
71var documentToPreviousResultId = new Dictionary<Document, string?>();
Implementation\XamlProjectService.cs (1)
37private readonly Dictionary<IVsHierarchy, ProjectSystemProject> _xamlProjects = [];
MinimalSample (2)
Program.cs (2)
79var extensions = new Dictionary<string, object?>() { { "traceId", "traceId123" } }; 81var errors = new Dictionary<string, string[]>() { { "Title", new[] { "The Title field is required." } } };
MSBuild (46)
CollectionHelpers.cs (1)
41internal static bool ContainsValueAndIsEqual(this Dictionary<string, string> dictionary, string key, string value, StringComparison comparer)
CommunicationsUtilities.cs (3)
399internal static Dictionary<string, string> GetEnvironmentVariables() 403Dictionary<string, string> table = new Dictionary<string, string>(vars.Count, StringComparer.OrdinalIgnoreCase); 420Dictionary<string, string> currentEnvironment = GetEnvironmentVariables();
CoreCLRAssemblyLoader.cs (2)
22private readonly Dictionary<string, Assembly> _pathsToAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase); 23private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
LogMessagePacketBase.cs (2)
271private static Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 276private static Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
19private Dictionary<NodePacketType, PacketFactoryRecord> _packetFactories;
ReadOnlyEmptyDictionary.cs (1)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>();
TaskHostConfiguration.cs (8)
34private Dictionary<string, string> _buildProcessEnvironment; 91private Dictionary<string, TaskParameter> _taskParameters; 93private Dictionary<string, string> _globalParameters; 161Dictionary<string, string> globalParameters, 174_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 241public Dictionary<string, string> BuildProcessEnvironment 354public Dictionary<string, TaskParameter> TaskParameters 364public Dictionary<string, string> GlobalProperties
TaskHostTaskComplete.cs (5)
85private Dictionary<string, TaskParameter> _taskOutputParameters = null; 90private Dictionary<string, string> _buildProcessEnvironment = null; 129_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 191public Dictionary<string, TaskParameter> TaskOutputParameters 208public Dictionary<string, string> BuildProcessEnvironment
TaskParameter.cs (7)
294Dictionary<string, string> escapedMetadata; 301escapedMetadata = nonGenericEscapedMetadata as Dictionary<string, string>; 427Dictionary<string, string> escapedGenericWrappedMetadata = wrappedMetadata as Dictionary<string, string>; 472Dictionary<string, string> escapedMetadata = null; 745private Dictionary<string, string> _customEscapedMetadata = null; 755public TaskParameterTaskItem(string escapedItemSpec, string escapedDefiningProject, Dictionary<string, string> escapedMetadata)
TerminalLogger\TerminalLogger.cs (1)
94private readonly Dictionary<ProjectContext, Project> _projects = new();
TranslatorHelpers.cs (1)
85ref Dictionary<string, T> dictionary,
TypeLoader.cs (2)
195Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length); 288private Dictionary<string, Type> _publicTypeNameToType;
XMake.cs (11)
700Dictionary<string, string> globalProperties = null; 701Dictionary<string, string> restoreProperties = null; 1265Dictionary<string, string> globalProperties, 1266Dictionary<string, string> restoreProperties, 1710private static bool PrintTargets(string projectFile, string toolsVersion, Dictionary<string, string> globalProperties, TextWriter targetsWriter, ProjectCollection projectCollection) 1838private static BuildResult ExecuteRestore(string projectFile, string toolsVersion, BuildManager buildManager, Dictionary<string, string> globalProperties, bool saveProjectResult = false) 1841Dictionary<string, string> restoreGlobalProperties = new Dictionary<string, string>(globalProperties); 2480ref Dictionary<string, string> globalProperties, 2501ref Dictionary<string, string> restoreProperties, 3757internal static Dictionary<string, string> ProcessPropertySwitch(string[] parameters) 3759Dictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MSBuildTaskHost (52)
BinaryTranslator.cs (11)
590public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer) 598dictionary = (Dictionary<string, string>)copy; 612public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys) 699public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator) 779public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer) 1317public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer) 1334public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys) 1438public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator) 1520public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer)
BuildExceptionSerializationHelper.cs (2)
24private static Dictionary<string, Func<string, Exception?, BuildExceptionBase>>? s_exceptionFactories; 49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
CollectionHelpers.cs (1)
41internal static bool ContainsValueAndIsEqual(this Dictionary<string, string> dictionary, string key, string value, StringComparison comparer)
CommunicationsUtilities.cs (3)
285internal static Dictionary<string, string> GetEnvironmentVariables() 294Dictionary<string, string> table = new Dictionary<string, string>(200, StringComparer.OrdinalIgnoreCase); // Razzle has 150 environment variables 420Dictionary<string, string> currentEnvironment = GetEnvironmentVariables();
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
IExtendedBuildEventArgs.cs (1)
25Dictionary<string, string?>? ExtendedMetadata { get; set; }
Immutable\ImmutableDictionary.cs (2)
37private Dictionary<K, V> _backing; 211var n = new Dictionary<K, V>(_backing, _backing.Comparer);
ITranslator.cs (5)
320void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer); 333void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys); 337void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer); 348void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator)
LogMessagePacketBase.cs (2)
271private static Dictionary<LoggingEventType, MethodInfo> s_readMethodCache = new Dictionary<LoggingEventType, MethodInfo>(); 276private static Dictionary<LoggingEventType, MethodInfo> s_writeMethodCache = new Dictionary<LoggingEventType, MethodInfo>();
NodePacketFactory.cs (1)
19private Dictionary<NodePacketType, PacketFactoryRecord> _packetFactories;
ReadOnlyEmptyDictionary.cs (1)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>();
TaskHostConfiguration.cs (8)
34private Dictionary<string, string> _buildProcessEnvironment; 91private Dictionary<string, TaskParameter> _taskParameters; 93private Dictionary<string, string> _globalParameters; 161Dictionary<string, string> globalParameters, 174_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 241public Dictionary<string, string> BuildProcessEnvironment 354public Dictionary<string, TaskParameter> TaskParameters 364public Dictionary<string, string> GlobalProperties
TaskHostTaskComplete.cs (5)
85private Dictionary<string, TaskParameter> _taskOutputParameters = null; 90private Dictionary<string, string> _buildProcessEnvironment = null; 129_buildProcessEnvironment = buildProcessEnvironment as Dictionary<string, string>; 191public Dictionary<string, TaskParameter> TaskOutputParameters 208public Dictionary<string, string> BuildProcessEnvironment
TaskParameter.cs (7)
294Dictionary<string, string> escapedMetadata; 301escapedMetadata = nonGenericEscapedMetadata as Dictionary<string, string>; 427Dictionary<string, string> escapedGenericWrappedMetadata = wrappedMetadata as Dictionary<string, string>; 472Dictionary<string, string> escapedMetadata = null; 745private Dictionary<string, string> _customEscapedMetadata = null; 755public TaskParameterTaskItem(string escapedItemSpec, string escapedDefiningProject, Dictionary<string, string> escapedMetadata)
TranslatorHelpers.cs (1)
85ref Dictionary<string, T> dictionary,
TypeLoader.cs (1)
204private Dictionary<string, Type> _publicTypeNameToType;
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
88[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.Dictionary<,>))]
Mvc.RoutingWebSite (3)
Controllers\ItemsController.cs (2)
11public ActionResult<Dictionary<object, object>> Index() 22public ActionResult<Dictionary<object, object>> IndexWithArgument(string arg)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
30var values = query
netstandard (1)
netstandard.cs (1)
107[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.Dictionary<,>))]
OpenIdConnectSample (1)
Startup.cs (1)
253var pairs = new Dictionary<string, string>()
PrepareTests (2)
MinimizeUtil.cs (2)
47var idToFilePathMap = initialWalk(); 54Dictionary<Guid, List<FilePathInfo>> initialWalk()
PresentationBuildTasks (29)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
187Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>(); 302Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static Dictionary<string, bool> s_switchMap = new Dictionary<string, bool>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (2)
934Dictionary<string, SpecialBracketCharacters> bracketCharacterCache = _parserContext.InitBracketCharacterCacheForType(extensionType); 1481private SpecialBracketCharacters GetBracketCharacterForProperty(string propertyName, Dictionary<string, SpecialBracketCharacters> bracketCharacterCache)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (9)
199internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(Type type) 203Dictionary<string, SpecialBracketCharacters> map = BuildBracketCharacterCacheForType(type); 701internal Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> MasterBracketCharacterCache 707_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 829private Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> _masterBracketCharacterCache; 849private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(Type extensionType) 851Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
4179Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
416private Dictionary<string, string> _compatTable = null; 419private Dictionary<string, string> _compatTableReverse = null;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
56private static Dictionary<string, Assembly> _cachedMetadataLoadContextAssemblies = null; 57private static Dictionary<string, Assembly> _cachedMetadataLoadContextAssembliesByNameNoExtension = null;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
1629Dictionary<string, object> _ignorables; 1630Dictionary<string, ProcessContentSet> _processContents; 1631Dictionary<string, PreserveItemSet> _preserveElements; 1632Dictionary<string, PreserveItemSet> _preserveAttributes; 1971Dictionary<string, string> _names; 2026private Dictionary<string, object> _knownNamespaces; 2027private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2028private Dictionary<string, object> _subsumingNamespaces; 2029private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2030private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (76)
MS\Internal\Automation\EventMap.cs (1)
286private static Dictionary<int, EventInfo> _eventsTable; // key=event id, data=listener count
MS\Internal\DeferredElementTreeState.cs (2)
124private Dictionary<DependencyObject, DependencyObject> _oldCoreParents = new Dictionary<DependencyObject, DependencyObject>(); 125private Dictionary<DependencyObject, DependencyObject> _oldLogicalParents = new Dictionary<DependencyObject, DependencyObject>();
MS\Internal\FontCache\FamilyCollection.cs (1)
487Dictionary<string, Text.TextInterface.Font> faces = new Dictionary<string, Text.TextInterface.Font>(StringComparer.OrdinalIgnoreCase);
MS\Internal\FontCache\FontFaceLayoutInfo.cs (2)
590private Dictionary<int, ushort> _cmap; 598private Dictionary<int, ushort> CMap
MS\Internal\FontCache\FontResourceCache.cs (6)
28private static void ConstructFontResourceCache(Assembly entryAssembly, Dictionary<string, List<string>> folderResourceMap) 80Dictionary<string, List<string>> folderResourceMap; 112private static void AddResourceToFolderMap(Dictionary<string, List<string>> folderResourceMap, string resourceFullName) 149private static Dictionary<Assembly, Dictionary<string, List<string>>> _assemblyCaches 150= new Dictionary<Assembly, Dictionary<string, List<string>>>(1);
MS\Internal\FontFace\CompositeFontInfo.cs (2)
37private Dictionary<XmlLanguage, ushort[]> _familyMapRangesByLanguage; 161Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count);
MS\Internal\FontFace\FontDifferentiator.cs (1)
34Dictionary<XmlLanguage, string> faceNames = new Dictionary<XmlLanguage, string>(1);
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
51Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>();
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
2719System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry> _strokeLookupTable = null;
MS\Internal\Ink\Renderer.cs (2)
698private Dictionary<Stroke, StrokeVisual> _visuals; 701private Dictionary<Color, HighlighterContainerVisual> _highlighters = null;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (3)
271Dictionary<Edge, EdgeInfo> adjInformation = new Dictionary<Edge, EdgeInfo>(); 448Dictionary<Edge, EdgeInfo> adjInformation, 841Dictionary<Edge, EdgeInfo> adjInformation)
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static Dictionary<string, bool> s_switchMap = new Dictionary<string, bool>();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
160private static readonly Dictionary<string, ContentType> _fileExtensionToMimeType = new Dictionary<string, ContentType>(4);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
124static Dictionary<object, AssemblyName> _assemblies; // get key via GetKeyForAssembly
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
333private Dictionary<K, Node> _nodeLookup;
System\Windows\BinaryFormat\StringRecordsCollection.cs (2)
16private readonly Dictionary<string, int> _strings = new(); 17private readonly Dictionary<int, MemberReference> _memberReferences = new();
System\Windows\Ink\StrokeCollection2.cs (1)
376Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>();
System\Windows\Input\ManipulationDevice.cs (1)
533private static Dictionary<UIElement, ManipulationDevice> _manipulationDevices;
System\Windows\Input\ManipulationLogic.cs (3)
527var temp = _removedManipulators; 715private Dictionary<int, Manipulator2D> _currentManipulators = new Dictionary<int, Manipulator2D>(2); 718private Dictionary<int, Manipulator2D> _removedManipulators = new Dictionary<int, Manipulator2D>(2);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
183private readonly Dictionary<DpiScale2, Matrix> _transformToDeviceMatrices = new Dictionary<DpiScale2, Matrix>();
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (4)
203private static Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>> _hidToGuidMap = new Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>>() 252Dictionary<HidUsage, Guid> pageMap = null;
System\Windows\Input\Stylus\Common\StylusPointPropertyUnit.cs (1)
71private static Dictionary<uint, StylusPointPropertyUnit> _pointerUnitMap = new Dictionary<uint, StylusPointPropertyUnit>()
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
126internal Dictionary<PresentationSource, PointerStylusPlugInManager> PlugInManagers
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
37private static Dictionary<byte, short> _hidExponentMap = new Dictionary<byte, short>()
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
34private Dictionary<uint, PointerStylusDevice> _stylusDeviceMap = new Dictionary<uint, PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (2)
27private Dictionary<IntPtr, PointerTabletDevice> _tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>(); 81Dictionary<IntPtr, PointerTabletDevice> oldTablets = _tabletDeviceMap;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (4)
3697Dictionary<object, PenContexts> __penContextsMap = new Dictionary<object, PenContexts>(2); 3700Dictionary<int, StylusDevice> __stylusDeviceMap = new Dictionary<int, StylusDevice>(2); 3723Dictionary<StylusDeviceBase, RawStylusInputReport> _lastMovesQueued = new Dictionary<StylusDeviceBase, RawStylusInputReport>(); 3727Dictionary<StylusDeviceBase, RawStylusInputReport> _coalescedMoves = new Dictionary<StylusDeviceBase, RawStylusInputReport>();
System\Windows\Media\FontEmbeddingManager.cs (5)
54_collectedGlyphTypefaces = new Dictionary<Uri, Dictionary<ushort, bool>>(_uriComparer); 80Dictionary<ushort, bool> glyphSet; 117Dictionary<ushort, bool> glyphsUsed = _collectedGlyphTypefaces[glyphTypeface]; 158private Dictionary<Uri, Dictionary<ushort, bool>> _collectedGlyphTypefaces;
System\Windows\Media\HostVisual.cs (1)
574private Dictionary<DUCE.Channel, Dispatcher> _connectedChannels = new Dictionary<DUCE.Channel, Dispatcher>();
System\Windows\Media\Knowncolors.cs (2)
690private static Dictionary<uint, SolidColorBrush> s_solidColorBrushCache = new Dictionary<uint, SolidColorBrush>(); 691private static Dictionary<string, KnownColor> s_knownArgbColors = new Dictionary<string, KnownColor>();
System\Windows\Media\SolidColorBrush.cs (3)
319public Dictionary<TKey, TValue>.Enumerator GetEnumerator() 327private Dictionary<TKey, TValue> fwdDictionary; 328private Dictionary<TValue, List<TKey>> revDictionary;
System\Windows\Media\textformatting\TextFormatterContext.cs (3)
52private static Dictionary<char,bool> _specialCharacters; // special characters 429Dictionary<char,bool> dict = new Dictionary<char,bool>(); 485System.Threading.Interlocked.CompareExchange<Dictionary<char,bool>>(ref _specialCharacters, dict, null);
System\Windows\Media\UniqueEventHelper.cs (3)
84protected Dictionary<TEventHandler, int> _delegates; 96if (_delegates is Dictionary<TEventHandler, int> delegates) 116if (_delegates is Dictionary<TEventHandler, int> delegates &&
System\Windows\Media\Visual.cs (10)
666Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap = 838Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap = 868Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap = 905Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap = 929Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap = 5238Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap = 5348private static readonly UncommonField<Dictionary<ICyclicBrush, int>> CyclicBrushToChannelsMapField 5349= new UncommonField<Dictionary<ICyclicBrush, int>>(); 5355private static readonly UncommonField<Dictionary<DUCE.Channel, int>> ChannelsToCyclicBrushMapField 5356= new UncommonField<Dictionary<DUCE.Channel, int>>();
System\Windows\Media3D\Visual3DCollection.cs (1)
556Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>();
PresentationFramework (146)
MS\Internal\Annotations\AnnotationMap.cs (1)
112private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>();
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
558private static readonly Dictionary<Type, int> s_ZLevel = new(); 563private static readonly Dictionary<int, ZRange> s_ZRanges = new();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
294private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\ObservableDictionary.cs (1)
371private Dictionary<string, string> _nameValues;
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (6)
112public Dictionary<Guid, Annotation> FindAnnotations(ContentLocator anchorLocator) 116Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 121Dictionary<Guid, CachedAnnotation>.ValueCollection.Enumerator annotationsEnumerator = _currentAnnotations.Values.GetEnumerator(); 175public Dictionary<Guid, Annotation> FindAnnotations() 177Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 290private Dictionary<Guid, CachedAnnotation> _currentAnnotations = new Dictionary<Guid, CachedAnnotation>();
MS\Internal\Annotations\XmlElementCollection.cs (1)
259Dictionary<XmlDocument, int> _xmlDocsRefCounts;
MS\Internal\AppModel\MimeObjectFactory.cs (2)
81private static readonly Dictionary<ContentType, StreamToObjectFactoryDelegate> _objectConverters = new Dictionary<ContentType, StreamToObjectFactoryDelegate>(9, new ContentType.WeakComparer()); 82private static readonly Dictionary<ContentType, StreamToObjectFactoryDelegateCore> _objectConvertersCore = new Dictionary<ContentType, StreamToObjectFactoryDelegateCore>(9, new ContentType.WeakComparer());
MS\Internal\AppModel\ResourceContainer.cs (1)
394private static Dictionary<string, ResourceManagerWrapper> _registeredResourceManagers = new Dictionary<string, ResourceManagerWrapper>();
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
889private static Dictionary<XmlToken, string> s_xmlTokeFullNames; // A dictionary for the names of the xml elements 891private Dictionary<XmlToken, object> _cachedXmlElements; // A dictionary for caching the data object
MS\Internal\Data\AccessorTable.cs (1)
176private readonly Dictionary<AccessorTableKey, AccessorInfo> _table = new Dictionary<AccessorTableKey, AccessorInfo>();
MS\Internal\Data\DataBindEngine.cs (1)
708private Dictionary<ValueConverterTableKey, IValueConverter> _valueConverterTable = new Dictionary<ValueConverterTableKey, IValueConverter>();
MS\Internal\Data\LiveShapingList.cs (1)
101internal Dictionary<string, DependencyProperty> ObservedProperties
MS\Internal\Globalization\BamlResourceDeserializer.cs (1)
406private Dictionary<string, Stack<ILocalizabilityInheritable>> _propertyInheritanceTreeStack
MS\Internal\Globalization\BamlTreeMap.cs (2)
305private Dictionary<string, ElementLocalizability> _classAttributeTable; 306private Dictionary<string, LocalizabilityAttribute> _propertyAttributeTable;
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
716private Dictionary<String, string> _contentPropertyTable;
MS\Internal\Ink\ClipboardProcessor.cs (2)
270Dictionary<InkCanvasClipboardFormat, ClipboardData> preferredData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>(); 449private Dictionary<InkCanvasClipboardFormat, ClipboardData> _preferredClipboardData;
MS\Internal\Interop\InternalDispatchObject.cs (1)
57private Dictionary<int, MethodInfo> _dispId2MethodMap;
MS\Internal\IO\Packaging\XamlFilter.cs (1)
1036private Dictionary<string, uint> _lcidDictionary;
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
116static Dictionary<string, DllModule> _cache = new System.Collections.Generic.Dictionary<string, DllModule>();
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (4)
19private static readonly Dictionary<Type, Type> CustomTypeToHelperTypeMappings = new Dictionary<Type, Type>(); 20private static readonly Dictionary<Type, Type> CustomAbiTypeToTypeMappings = new Dictionary<Type, Type>(); 21private static readonly Dictionary<string, Type> CustomAbiTypeNameToTypeMappings = new Dictionary<string, Type>(); 22private static readonly Dictionary<Type, string> CustomTypeToAbiTypeNameMappings = new Dictionary<Type, string>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
16private static Dictionary<string, bool> s_switchMap = new Dictionary<string, bool>();
System\Windows\Annotations\Storage\XmlStreamStore.cs (3)
657private IList<Annotation> MergeAndCacheAnnotations(Dictionary<Guid, Annotation> mapAnnotations, List<Guid> storeAnnotationsId) 701Dictionary<Guid, Annotation> annotations = null; 1054private static readonly Dictionary<Uri, IList<Uri>> _predefinedNamespaces;
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (5)
117Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> newChildren = new Dictionary<DateTimeCalendarModePair,DateTimeAutomationPeer>(); 662private Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> DateTimePeers 669private Dictionary<DateTimeCalendarModePair, WeakReference> WeakRefElementProxyStorage 675private Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> _dataChildren = new Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer>(); 676private Dictionary<DateTimeCalendarModePair, WeakReference> _weakRefElementProxyStorage = new Dictionary<DateTimeCalendarModePair, WeakReference>();
System\Windows\Controls\DataGrid.cs (2)
8282Dictionary<string, StringBuilder> dataGridStringBuilders = new Dictionary<string, StringBuilder>(formats.Count); 8676private Dictionary<DataGridColumn, CellAutomationValueHolder> _editingCellAutomationValueHolders
System\Windows\Controls\DataGridColumnCollection.cs (2)
477Dictionary<int, int> assignedDisplayIndexMap = new Dictionary<int, int>(); // <DisplayIndex, ColumnIndex> 2544private Dictionary<DataGridColumn, DataGridLength> _originalWidthsForResize; // Dictionary to hold the original widths of columns for resize operation
System\Windows\Controls\DataGridHelper.cs (6)
431var transferEnabledMap = GetPropertyTransferEnabledMapForObject(d); 437private static Dictionary<DependencyProperty, bool> GetPropertyTransferEnabledMapForObject(DependencyObject d) 439Dictionary<DependencyProperty, bool> propertyTransferEnabledForObject; 452Dictionary<DependencyProperty, bool> propertyTransferEnabledForObject; 470private static ConditionalWeakTable<DependencyObject, Dictionary<DependencyProperty, bool>> _propertyTransferEnabledMap = new ConditionalWeakTable<DependencyObject, Dictionary<DependencyProperty, bool>>();
System\Windows\Controls\DataGridItemAttachedStorage.cs (8)
19var map = EnsureItem(item); 26Dictionary<DependencyProperty, object> map; 39Dictionary<DependencyProperty, object> map; 63_itemStorageMap = new Dictionary<object, Dictionary<DependencyProperty, object>>(); 67private Dictionary<DependencyProperty, object> EnsureItem(object item) 69Dictionary<DependencyProperty, object> map; 84private Dictionary<object, Dictionary<DependencyProperty, object>> _itemStorageMap;
System\Windows\Controls\Primitives\Selector.cs (1)
2916private Dictionary<ItemInfo, ItemInfo> _set;
System\Windows\Data\BindingGroup.cs (1)
1565Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (2)
275private static Dictionary<Uri, List<WeakReference<ResourceDictionary>>> _dictionariesFromUri; 541private static Dictionary<WeakReferenceKey<StaticResourceExtension>, WeakReference<ResourceDictionary>>
System\Windows\Documents\FixedDocument.cs (2)
802internal Dictionary<FixedPage, ArrayList> Highlights 1300private Dictionary<FixedPage, ArrayList> _highlights;
System\Windows\Documents\FixedDSBuilder.cs (1)
262private Dictionary<String, NameHashFixedNode> _nameHashTable;
System\Windows\Documents\FixedSchema.cs (1)
338static private readonly Dictionary<ContentType, XpsSchema> _schemas = new Dictionary<ContentType, XpsSchema>(new ContentType.StrongComparer());
System\Windows\Documents\FixedTextContainer.cs (1)
407internal void GetMultiHighlights(FixedTextPointer start, FixedTextPointer end, Dictionary<FixedPage, ArrayList> highlights, FixedHighlightType t,
System\Windows\Documents\FixedTextView.cs (1)
250Dictionary<FixedPage, ArrayList> highlights = new Dictionary<FixedPage,ArrayList>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
646private static readonly Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
40private static Dictionary<string, SpellCheckerCreationHelper> _instances =
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (1)
57private static Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\Speller.cs (2)
421private Dictionary<Uri, DictionaryInfo> UriMap 2044private Dictionary<Uri, DictionaryInfo> _uriMap;
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (3)
88private static readonly Dictionary<Actions, long> _timeLimits100Ns = new Dictionary<Actions, long> 102public Dictionary<Actions, long> CumulativeCallTime100Ns { get; set; } 103public Dictionary<Actions, long> NumCallsMeasured { get; set; }
System\Windows\Documents\WinRTSpellerInterop.cs (2)
833private Dictionary<CultureInfo, Tuple<WordsSegmenter, SpellChecker>> _spellCheckers; 843private Dictionary<string, List<string>> _customDictionaryFiles;
System\Windows\FrameworkTemplate.cs (2)
1495internal Dictionary<int, Type> ChildTypeFromChildIndex 1533private Dictionary<int, Type> _childTypeFromChildIndex = new Dictionary<int, Type>();
System\Windows\Interop\DynamicScriptObject.cs (1)
656private Dictionary<string, int> _dispIdCache = new Dictionary<string, int>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
37private Dictionary<int, TypeConverter> _typeConverterMap = new Dictionary<int, TypeConverter>(); 38private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 39private Dictionary<string, Freezable> _freezeCache;
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (2)
15protected Dictionary<string, string> _namespaces; 53public void SetNamespaces(Dictionary<string, string> namespaces)
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
670private readonly Dictionary<string, short[]> _bamlXmlnsMappings = new Dictionary<string, short[]>();
System\Windows\Markup\Baml2006\WpfKnownType.cs (2)
317private Dictionary<int, Baml6ConstructorInfo> _constructors; 319public Dictionary<int, Baml6ConstructorInfo> Constructors
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
39private Dictionary<Type, XamlType> _masterTypeTable;
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
63private Dictionary<Type, XamlType> _masterTypeTable = new Dictionary<Type, XamlType>();
System\Windows\Markup\BamlReader.cs (1)
2858private Dictionary<String, List<String>> _reverseXmlnsTable;
System\Windows\Markup\MarkupExtensionParser.cs (2)
934Dictionary<string, SpecialBracketCharacters> bracketCharacterCache = _parserContext.InitBracketCharacterCacheForType(extensionType); 1481private SpecialBracketCharacters GetBracketCharacterForProperty(string propertyName, Dictionary<string, SpecialBracketCharacters> bracketCharacterCache)
System\Windows\Markup\ParserContext.cs (10)
199internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(Type type) 203Dictionary<string, SpecialBracketCharacters> map = BuildBracketCharacterCacheForType(type); 701internal Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> MasterBracketCharacterCache 707_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 829private Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> _masterBracketCharacterCache; 849private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(Type extensionType) 851Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase); 955private Dictionary<string, Freezable> _freezeCache;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
81Dictionary<string, string> constructorArguments = null; 692private static Dictionary<Type, Type> _keyTypeMap;
System\Windows\Markup\Primitives\MarkupWriter.cs (12)
495Dictionary<string, string> writtenAttributes = new Dictionary<string, string>(); 932private bool IsDeferredProperty (MarkupProperty property, Dictionary<string, string> writtenAttributes, 1310private Dictionary<string, string> _uriToPrefix; 1311private Dictionary<string, string> _prefixToUri; 1555private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>(); 1556private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>(); 1559static Dictionary<string, string> GetMappingsFor(Assembly assembly) 1561Dictionary<string, string> namespaceToUri; 1601Dictionary<string, string> assembliesNamespacetoUri = GetMappingsFor(referencedAssembly); 1622Dictionary<string, string> namespaceToUri = GetMappingsFor(type.Assembly);
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
41static Dictionary<Type, Type> initializedTypes = new Dictionary<Type, Type>();
System\Windows\Markup\XamlTypeMapper.cs (4)
327private Dictionary<string, string> CloneStringDictionary(Dictionary<string, string> dict) 329Dictionary<string, string> newDict = new Dictionary<string, string>(); 4179Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (3)
22Dictionary<string, FrugalObjectList<string>> _nsDefinitions; 28Dictionary<string, string> _piNamespaces; 30Dictionary<Type, XamlType> _allowedInternalTypes;
System\Windows\Markup\XmlnsCache.cs (2)
416private Dictionary<string, string> _compatTable = null; 419private Dictionary<string, string> _compatTableReverse = null;
System\Windows\Shell\JumpList.cs (1)
268private static readonly Dictionary<Application, JumpList> s_applicationMap = new Dictionary<Application, JumpList>();
System\Windows\Standard\MessageWindow.cs (1)
27private static readonly Dictionary<IntPtr, MessageWindow> s_windowLookup = new Dictionary<IntPtr, MessageWindow>();
System\Windows\SystemResources.cs (4)
1687[ThreadStatic] private static Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper> _hwndNotify; 1688[ThreadStatic] private static Dictionary<DpiUtil.HwndDpiInfo, HwndWrapperHook> _hwndNotifyHook; 1692private static Dictionary<Assembly, ResourceDictionaries> _dictionaries; 2059private readonly Dictionary<object, WeakReference<DeferredResourceReference>> _entries = new();
System\Windows\TemplateContent.cs (2)
1535internal Dictionary<string, XamlType> _namedTypes; 1536internal Dictionary<string, XamlType> NamedTypes
System\Windows\VisualStateManager.cs (8)
381Dictionary<TimelineDataToken, Timeline> currentAnimations = FlattenTimelines(group.CurrentStoryboards); 382Dictionary<TimelineDataToken, Timeline> transitionAnimations = FlattenTimelines(transition != null ? transition.Storyboard : null); 383Dictionary<TimelineDataToken, Timeline> newStateAnimations = FlattenTimelines(newState.Storyboard); 671private static Dictionary<TimelineDataToken, Timeline> FlattenTimelines(Storyboard storyboard) 673Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>(); 680private static Dictionary<TimelineDataToken, Timeline> FlattenTimelines(Collection<Storyboard> storyboards) 682Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>(); 692private static void FlattenTimelines(Storyboard storyboard, Dictionary<TimelineDataToken, Timeline> result)
PresentationUI (3)
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
581private Dictionary<Uri, WriteableOnDemandPackagePart> _activeParts =
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
338Dictionary<X509Certificate2, CertificatePriorityStatus> certificateStatusTable =
MS\Internal\Documents\RightsManagementProvider.cs (1)
684Dictionary<RightsManagementUser, RightsManagementLicense> rights =
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
15private readonly Dictionary<string, TestFileInfo> _content = new Dictionary<string, TestFileInfo>()
ReachFramework (49)
packaging\XpsDigitalSignature.cs (9)
75Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>(); 325Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>(); 374Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>(); 380Dictionary<string, int> relHash = null; 414Dictionary<string, int> relHash = uriHashTable[selector.SourceUri]; 425Dictionary<string, string> OptionalSignedParts 453static private Dictionary<string, string> _optionalSignedTypes;
Packaging\XpsDocument.cs (2)
746Dictionary<Uri,Uri> dependentList, 863Dictionary<Uri,Uri> dependentList = new Dictionary<Uri,Uri> ();
Packaging\XpsFixedDocumentReaderWriter.cs (2)
709Dictionary<Uri,Uri> dependentList, 813Dictionary<Uri,Uri> dependents,
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (2)
441Dictionary<Uri,Uri> dependentList, 579Dictionary<Uri,Uri> dependents,
Packaging\XpsFixedPageReaderWriter.cs (8)
1362Dictionary<Uri,Uri> dependentList, 1413Dictionary<Uri,Uri> dependents 1527Dictionary<Uri,PackageRelationship> restictedFontRels = new Dictionary<Uri,PackageRelationship>(MS.Internal.UriComparer.Default); 1972private Dictionary<Uri,XpsImage> _imageCache; 1973private Dictionary<Uri,XpsFont> _fontCache; 1974private Dictionary<Uri,XpsColorContext> _colorContextCache; 1975private Dictionary<Uri,XpsResourceDictionary> _resourceDictionaryCache; 1976private Dictionary<Uri,XpsResource> _resourceCache;
Packaging\XpsManager.cs (4)
781Dictionary<Uri,Uri> dependents, 1334private Dictionary<string, int> _contentTypes; 1335private Dictionary<Uri, PackagePart> _cachedParts; 1339internal static Dictionary<Uri, int> _packageCache;
Packaging\XpsResourcePolicy.cs (15)
184Dictionary<UInt32, Uri> 198Dictionary<int, Uri> 215Dictionary<int, Uri> 229Dictionary<int, Uri> 243Dictionary<int, Uri> 257Dictionary<int, Uri> 271Dictionary<int, Uri> 289Dictionary<UInt32, Uri> _imageCrcTable; 292Dictionary<int,Uri> _imageUriHashTable; 295Dictionary<int, Uri> _currentPageImageTable; 298Dictionary<int, Uri> _colorContextTable; 301Dictionary<int, Uri> _currentPageColorContextTable; 304Dictionary<int, Uri> _resourceDictionaryTable; 307Dictionary<int, Uri> _currentPageResourceDictionaryTable; 313Dictionary<Type, object> _objDict = new Dictionary<Type, object>();
PrintConfig\PrtTicket_Public_Simple.cs (1)
1651private Dictionary<CapabilityName, object> _setterCache;
Serialization\ColorTypeConverter.cs (2)
288Dictionary<int, Uri> colorContextTable = manager.ResourcePolicy.ColorContextTable; 289Dictionary<int, Uri> currentPageColorContextTable = manager.ResourcePolicy.CurrentPageColorContextTable;
Serialization\ImageSourceTypeConverter.cs (3)
185Dictionary<int, Uri> currentPageImageTable = manager.ResourcePolicy.CurrentPageImageTable; 461Dictionary<int, Uri> imageUriHashTable = manager.ResourcePolicy.ImageUriHashTable; 481Dictionary<UInt32, Uri> imageCrcTable = manager.ResourcePolicy.ImageCrcTable;
Serialization\VisualTreeFlattener.cs (1)
308Dictionary<String, int> _nameList;
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
68var filesToWrite = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Roslyn.Test.PdbUtilities (6)
Reader\Token2SourceLineExporter.cs (6)
1197private static Dictionary<uint, PdbTokenLine> LoadTokenToSourceMapping(Stream read) 1199var tokenToSourceMapping = new Dictionary<uint, PdbTokenLine>(); 1206Dictionary<string, int> nameIndex = LoadNameIndex(bits); 1237private static Dictionary<string, int> LoadNameIndex(BitAccess bits) 1239Dictionary<string, int> result = []; 1292BitAccess bits, DbiModuleInfo module, IntHashTable names, Dictionary<uint, PdbTokenLine> tokenToSourceMapping)
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\DataModel.cs (1)
27var features = new Dictionary<string, ActivityLevel>();
Roslyn.VisualStudio.Next.UnitTests (16)
Services\PerformanceTrackerServiceTests.cs (3)
173private static IEnumerable<AnalyzerPerformanceInfo> CreateSnapshots(Dictionary<string, double[]> matrix, int index) 187private static (Dictionary<string, double[]> matrix, int dataCount) CreateMatrix(string testFile) 189var matrix = new Dictionary<string, double[]>();
Services\ServiceHubServicesTests.cs (1)
106private static async Task<AssetProvider> GetAssetProviderAsync(Workspace workspace, Workspace remoteWorkspace, Solution solution, Dictionary<Checksum, object> map = null)
Services\SolutionServiceTests.cs (12)
553var map = new Dictionary<Checksum, object>(); 594var map = new Dictionary<Checksum, object>(); 636var map = new Dictionary<Checksum, object>(); 669var map = new Dictionary<Checksum, object>(); 711var map = new Dictionary<Checksum, object>(); 751var map = new Dictionary<Checksum, object>(); 789var map = new Dictionary<Checksum, object>(); 822var map = new Dictionary<Checksum, object>(); 877var map = new Dictionary<Checksum, object>(); 946var map = new Dictionary<Checksum, object>(); 1239var map = new Dictionary<Checksum, object>(); 1272private static async Task<AssetProvider> GetAssetProviderAsync(Workspace workspace, RemoteWorkspace remoteWorkspace, Solution solution, Dictionary<Checksum, object>? map = null)
RunTests (4)
ProcessRunner.cs (2)
64Dictionary<string, string>? environmentVariables = null, 186Dictionary<string, string>? environmentVariables = null)
ProcessTestExecutor.cs (1)
130var environmentVariables = new Dictionary<string, string>();
TestHistoryManager.cs (1)
82Dictionary<string, TimeSpan> testInfos = new();
Sample (1)
Transformers\AddBearerSecuritySchemeTransformer.cs (1)
17var requirements = new Dictionary<string, OpenApiSecurityScheme>
ScenarioTests.Common.Tests (5)
ScenarioTestTypes.cs (2)
590private Dictionary<string, string> _headers; 619public Dictionary<string, string> Headers
ServiceInterfaces.cs (3)
70Dictionary<string, string> GetIncomingMessageHeaders(); 91Dictionary<string, string> GetRequestHttpHeaders(); 289Dictionary<string, string> ValidateMessagePropertyHeaders();
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();
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
87var referencesByName = References.ToDictionary(r => Path.GetFileNameWithoutExtension(r.ItemSpec), r => r.ItemSpec);
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)
122/// Creates an object pool of <see cref="Dictionary{TKey, TValue}"/> instances. 133public static ObjectPool<Dictionary<TKey, TValue>> CreateDictionaryPool<TKey, TValue>(IEqualityComparer<TKey>? comparer = null, int maxCapacity = DefaultCapacity)
Shared.Tests (3)
EmptyCollections\EmptyCollectionExtensionsTests.cs (1)
49var dictionary = new Dictionary<T, T>();
Pools\PoolTests.cs (2)
166var d = pool.Get(); 170var d2 = pool.Get();
SocialSample (1)
Startup.cs (1)
322var pairs = new Dictionary<string, string>()
SocialWeather (5)
FormatterResolver.cs (5)
10private readonly Dictionary<string, Dictionary<Type, Type>> _formatters 11= new Dictionary<string, Dictionary<Type, Type>>(); 21Dictionary<Type, Type> typeFormatters; 31Dictionary<Type, Type> typeFormatters;
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (1)
49public static Dictionary<string, Func<ListenOptions>> ConnectionMiddlewareData { get; } = new Dictionary<string, Func<ListenOptions>>
Swaggatherer (2)
SwaggathererApplication.cs (1)
82var routesByPrecedence = new Dictionary<decimal, List<RouteEntry>>();
Template.cs (1)
15var templatesVisited = new Dictionary<string, (int ControllerIndex, int ActionIndex)>(
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)
artifacts\obj\System.Collections\Debug\net10.0\System.Collections.Forwards.cs (1)
5[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.Dictionary<,>))]
System\Collections\Generic\OrderedDictionary.cs (2)
25/// class, except with lookups by key similar in complexity to that of <see cref="Dictionary{TKey, TValue}"/>. 45/// Unlike <see cref="Dictionary{TKey, TValue}"/>, removed entries are actually removed rather than left as holes
System.Collections.Concurrent (2)
System\Collections\Concurrent\ConcurrentDictionary.cs (2)
2595/// Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>, 2606/// Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>,
System.Collections.Immutable (19)
System\Collections\Frozen\DefaultFrozenDictionary.cs (1)
15internal DefaultFrozenDictionary(Dictionary<TKey, TValue> source)
System\Collections\Frozen\FrozenDictionary.cs (6)
31GetExistingFrozenOrNewDictionary(source, comparer, out Dictionary<TKey, TValue>? uniqueValues) ?? 61/// Extracts from the source either an existing <see cref="FrozenDictionary{TKey,TValue}"/> instance or a <see cref="Dictionary{TKey,TValue}"/> 72out Dictionary<TKey, TValue>? newDictionary) 87newDictionary = source as Dictionary<TKey, TValue>; 113private static FrozenDictionary<TKey, TValue> CreateFromDictionary<TKey, TValue>(Dictionary<TKey, TValue> source) 143return (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\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)
545public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector) where TKey : notnull 560public static Dictionary<TKey, TElement> ToDictionary<TKey, TElement, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, Func<T, TElement> elementSelector) where TKey : notnull 574public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 578var result = new Dictionary<TKey, T>(immutableArray.Length, comparer); 598public 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 603var result = new Dictionary<TKey, TElement>(immutableArray.Length, comparer);
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 (43)
System\ComponentModel\Composition\AttributedModelServices.cs (1)
120var metadata = new Dictionary<string, object?>();
System\ComponentModel\Composition\ContractNameServices.cs (2)
29private static Dictionary<Type, string>? typeIdentityCache; 31private static Dictionary<Type, string> TypeIdentityCache
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); 159Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = BuildMembersTable(members!); 160Dictionary<Lazy<ParameterInfo>, ParameterInfo>? parametersTable = BuildParametersTable(parameters); 177private Dictionary<LazyMemberInfo, MemberInfo[]> BuildMembersTable(List<LazyMemberInfo> members) 181Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = new Dictionary<LazyMemberInfo, MemberInfo[]>(); 182Dictionary<int, MemberInfo> specializedPartMembers = new Dictionary<int, MemberInfo>(); 242private Dictionary<Lazy<ParameterInfo>, ParameterInfo>? BuildParametersTable(List<Lazy<ParameterInfo>>? parameters) 246Dictionary<Lazy<ParameterInfo>, ParameterInfo> parametersTable = new Dictionary<Lazy<ParameterInfo>, ParameterInfo>(); 443Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalImport.Metadata, StringComparers.MetadataKeyNames); 458private Dictionary<string, object?> TranslateExportMetadata(ReflectionMemberExportDefinition originalExport) 460Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalExport.Metadata, StringComparers.MetadataKeyNames);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (2)
25internal static Dictionary<Type, Func<Export, object>?>? _castSingleValueCache; 27private static Dictionary<Type, Func<Export, object>?> CastSingleValueCache
System\ComponentModel\Composition\ReflectionModel\PartCreatorExportDefinition.cs (1)
35var metadata = new Dictionary<string, object?>(_productDefinition.Metadata);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (7)
19private volatile Dictionary<ImportDefinition, object?>? _importValues; 20private volatile Dictionary<ImportDefinition, ImportingItem>? _importsCache; 21private volatile 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)
76private 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\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)
37private static Dictionary<object, IntrinsicTypeConverterData>? s_intrinsicTypeConverters; 145private 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)
135private Dictionary<ParameterInfo, Action<ImportConventionBuilder>> _importBuilders;
System.Composition.Hosting (3)
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (2)
13private volatile 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)
167var 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)
386Dictionary<string, List<SectionInput>> indirectLocationInputs = null;
System\Configuration\ConfigurationElement.cs (1)
43private static volatile 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\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (10)
100private readonly Dictionary<string, string?> _parsetable; 154static partial void DebugTraceKeyValuePair(string keyname, string? keyvalue, Dictionary<string, string>? synonyms); 432private static Dictionary<string, string> SplitConnectionString(string connectionString, Dictionary<string, string>? synonyms, bool firstKey) 434var parsetable = new Dictionary<string, string>(); 493private static void ParseComparison(Dictionary<string, string?> parsetable, string connectionString, Dictionary<string, string>? synonyms, bool firstKey, Exception? e) 497var parsedvalues = SplitConnectionString(connectionString, synonyms, firstKey); 545private 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); 825private 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; 166static partial void DebugTraceKeyValuePair(string keyname, string? keyvalue, Dictionary<string, string>? synonyms)
System\Data\Common\DbConnectionStringBuilder.cs (3)
25private Dictionary<string, object>? _currentValues; 55private Dictionary<string, object> CurrentValues 59Dictionary<string, object>? values = _currentValues;
System\Data\Common\ObjectStorage.cs (3)
548private static Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? s_tempAssemblyCache; 586Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>? cache = s_tempAssemblyCache; 603Dictionary<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\libraries\Common\src\System\Data\Common\BasicFieldNameLookup.cs (2)
14private Dictionary<string, int>? _fieldNameLookup; 130Dictionary<string, int> hash = new Dictionary<string, int>(length);
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (10)
100private readonly Dictionary<string, string?> _parsetable; 154static partial void DebugTraceKeyValuePair(string keyname, string? keyvalue, Dictionary<string, string>? synonyms); 432private static Dictionary<string, string> SplitConnectionString(string connectionString, Dictionary<string, string>? synonyms, bool firstKey) 434var parsetable = new Dictionary<string, string>(); 493private static void ParseComparison(Dictionary<string, string?> parsetable, string connectionString, Dictionary<string, string>? synonyms, bool firstKey, Exception? e) 497var parsedvalues = SplitConnectionString(connectionString, synonyms, firstKey); 545private static NameValuePair? ParseInternal(Dictionary<string, string?> parsetable, string connectionString, bool buildChain, Dictionary<string, string>? synonyms, bool firstKey)
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.Diagnostics.DiagnosticSource (6)
System\Diagnostics\Activity.cs (1)
113private 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)
28private 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.Process (5)
System\Collections\Specialized\DictionaryWrapper.cs (2)
10private readonly Dictionary<string, string?> _contents; 12public DictionaryWrapper(Dictionary<string, string?> contents)
System\Diagnostics\ProcessWaitState.Unix.cs (3)
86private static readonly Dictionary<int, ProcessWaitState> s_processWaitStates = 92private static readonly Dictionary<int, ProcessWaitState> s_childProcessWaitStates = 164Dictionary<int, ProcessWaitState> waitStates = _isChild ? s_childProcessWaitStates : s_processWaitStates;
System.Drawing.Common.Tests (5)
System\Drawing\ImageAnimator.ManualTests.cs (3)
39Dictionary<string, EventHandler> handlers = []; 40Dictionary<string, int> frameIndexes = []; 41Dictionary<string, Bitmap> bitmaps = [];
System\Drawing\Imaging\ImageCodecInfoTests.cs (2)
45private readonly Dictionary<Guid, ImageCodecInfo> _decoders; 46private readonly Dictionary<Guid, ImageCodecInfo> _encoders;
System.Drawing.Primitives (7)
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 (4)
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.Tar (11)
System\Formats\Tar\TarHeader.cs (2)
77private Dictionary<string, string>? _ea; 78internal Dictionary<string, string> ExtendedAttributes => _ea ??= new Dictionary<string, string>();
System\Formats\Tar\TarHeader.Read.cs (1)
100internal void ReplaceNormalAttributesWithExtended(Dictionary<string, string>? dictionaryFromExtendedAttributesHeader)
System\Formats\Tar\TarHeader.Write.cs (5)
459private void WriteAsPaxExtendedAttributes(Stream archiveStream, Span<byte> buffer, Dictionary<string, string> extendedAttributes, bool isGea, int globalExtendedAttributesEntryNumber) 467private Task WriteAsPaxExtendedAttributesAsync(Stream archiveStream, Memory<byte> buffer, Dictionary<string, string> extendedAttributes, bool isGea, int globalExtendedAttributesEntryNumber, CancellationToken cancellationToken) 476private void WriteAsPaxExtendedAttributesShared(bool isGea, int globalExtendedAttributesEntryNumber, Dictionary<string, string> extendedAttributes) 829private static MemoryStream? GenerateExtendedAttributesDataStream(Dictionary<string, string> extendedAttributes) 968static void TryAddStringField(Dictionary<string, string> extendedAttributes, string key, string? value, int maxLength)
System\Formats\Tar\TarHelpers.cs (1)
149internal static bool TryGetDateTimeOffsetFromTimestampString(Dictionary<string, string>? dict, string fieldName, out DateTimeOffset dateTimeOffset)
System\Formats\Tar\TarWriter.Unix.cs (2)
15private readonly Dictionary<uint, string> _userIdentifiers = new Dictionary<uint, string>(); 16private readonly Dictionary<uint, string> _groupIdentifiers = new Dictionary<uint, string>();
System.IO.Compression (1)
System\IO\Compression\ZipArchive.cs (1)
23private readonly Dictionary<string, ZipArchiveEntry> _entriesDictionary;
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
267private readonly Dictionary<int, WatchedDirectory> _wdToPathMap = new Dictionary<int, WatchedDirectory>();
System.IO.Packaging (20)
System\IO\Packaging\ContentType.cs (3)
146internal Dictionary<string, string>.Enumerator ParameterValuePairs => 194Dictionary<string, string>.Enumerator contentTypeEnumerator; 512private 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); 1209private 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)
1293private Dictionary<PackUriHelper.ValidatedPartUri, ContentType>? _overrideDictionary; 1294private readonly Dictionary<string, ContentType> _defaultDictionary; 1353private readonly Dictionary<string, List<string>> _ignoredItemDictionary; 1358private readonly Dictionary<string, List<string>> _extensionDictionary;
System.IO.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
239private 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)
78/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to the default comparer for the key type. 82/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 83/// <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> 86public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source) where TKey : notnull => 90/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to specified key comparer. 94/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 96/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/>.</returns> 102public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey>? comparer) where TKey : notnull 113/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to the default comparer for the key type. 117/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 118/// <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> 121public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey Key, TValue Value)> source) where TKey : notnull => 125/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to specified key comparer. 129/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param> 131/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/>.</returns> 137public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey Key, TValue Value)> source, IEqualityComparer<TKey>? comparer) where TKey : notnull => 140public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) where TKey : notnull => 143public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 174Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(capacity, comparer); 183private static Dictionary<TKey, TSource> SpanToDictionary<TSource, TKey>(ReadOnlySpan<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull 185Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(source.Length, comparer); 193public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) where TKey : notnull => 196public 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 232Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(capacity, comparer); 241private 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 243Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(source.Length, 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)
83s_DictionaryOfStringInt32_Add_String_Int32 ??= typeof(Dictionary<string, int>).GetMethod(nameof(Dictionary<string, int>.Add), new[] { typeof(string), typeof(int) })!; 87s_DictionaryOfStringInt32_Ctor_Int32 ??= 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)
741private readonly Dictionary<T, int> _cases; 743internal IntSwitchInstruction(Dictionary<T, int> cases) 761private readonly Dictionary<string, int> _cases; 764internal 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)
1634var caseDict = new Dictionary<T, int>(); 1676var caseDict = new Dictionary<string, int>(); 2775var mapping = new Dictionary<ParameterExpression, LocalVariable>(); 2788private 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; 211var 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 (20)
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\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
104public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\H3StaticTable.Http3.cs (1)
11private static readonly Dictionary<HttpMethod, int> s_methodIndex = new Dictionary<HttpMethod, int>
System\Net\Http\Headers\HttpHeaders.cs (8)
354: ref CollectionsMarshal.GetValueRefOrNullRef((Dictionary<HeaderDescriptor, object>)_headerStore, entry.Key); 1389var dictionary = (Dictionary<HeaderDescriptor, object>)_headerStore!; 1431valueRef = ref CollectionsMarshal.GetValueRefOrNullRef(Unsafe.As<Dictionary<HeaderDescriptor, object>>(store), key); 1494var dictionary = new Dictionary<HeaderDescriptor, object>(ArrayThreshold); 1506var dictionary = (Dictionary<HeaderDescriptor, object>)_headerStore!; 1576removed = Unsafe.As<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)
58private volatile Dictionary<HttpAuthority, Exception?>? _altSvcBlocklist; 800Dictionary<HttpAuthority, Exception?>? altSvcBlocklist = _altSvcBlocklist;
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
41private readonly Dictionary<int, Http2Stream> _httpStreams;
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
28private 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 (14)
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()
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\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 (1)
System\Net\Dns.cs (1)
664private static readonly Dictionary<object, Task> s_tasks = new Dictionary<object, Task>();
System.Net.NetworkInformation (5)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
92Dictionary<int, LinuxNetworkInterface> interfacesByIndex = new Dictionary<int, LinuxNetworkInterface>(interfaceCount);
System\Net\NetworkInformation\NetworkAddressChange.cs (2)
13private static readonly Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?> s_addressChangedSubscribers = 17private static readonly Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?> s_availabilityChangedSubscribers =
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (2)
264Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>? addressChangedSubscribers = null; 296Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>? availabilityChangedSubscribers = null;
System.Net.Ping (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
System.Net.Primitives (9)
src\libraries\Common\src\System\Net\CredentialCacheKey.cs (1)
104public static bool TryGetCredential(Dictionary<CredentialCacheKey, NetworkCredential> cache, Uri uriPrefix, string authType, [NotNullWhen(true)] out Uri? mostSpecificMatchUri, [NotNullWhen(true)] out NetworkCredential? mostSpecificMatch)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
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\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
73private Dictionary<string, IntPtr>? _sslSessions;
System.Net.Sockets (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
19private Dictionary<TKey, TItem>? dict; // Do not rename (binary serialization)
System.Private.CoreLib (159)
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\libraries\System.Private.CoreLib\src\System\AppContext.AnyOS.cs (1)
70static void LogDataStore(RuntimeEventSource ev, Dictionary<string, bool>? switches)
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
18private static Dictionary<string, object?>? s_dataStore 23private static Dictionary<string, bool>? s_switches;
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; 639/// Gets an instance of a type that may be used to perform operations on the current <see cref="Dictionary{TKey, TValue}"/> 661/// Gets an instance of a type that may be used to perform operations on the current <see cref="Dictionary{TKey, TValue}"/> 686/// Provides a type that may be used to perform operations on a <see cref="Dictionary{TKey, TValue}"/> 693internal AlternateLookup(Dictionary<TKey, TValue> dictionary) 700/// <summary>Gets the <see cref="Dictionary{TKey, TValue}"/> against which this instance performs operations.</summary> 701public Dictionary<TKey, TValue> Dictionary { get; } 728internal static bool IsCompatibleKey(Dictionary<TKey, TValue> dictionary) 736internal static IAlternateEqualityComparer<TAlternateKey, TKey> GetAlternateComparer(Dictionary<TKey, TValue> dictionary) 789/// <summary>Determines whether the <see cref="Dictionary{TKey, TValue}"/> contains the specified alternate key.</summary> 802Dictionary<TKey, TValue> dictionary = Dictionary; 855/// <summary>Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>.</summary> 863/// Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>, 873Dictionary<TKey, TValue> dictionary = Dictionary; 958/// <inheritdoc cref="CollectionsMarshal.GetValueRefOrAddDefault{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/> 963Dictionary<TKey, TValue> dictionary = Dictionary; 1065/// the additional overhead on each <see cref="Dictionary{TKey, TValue}"/> instantiation, especially in AOT scenarios. 1069/// <inheritdoc cref="CollectionsMarshal.GetValueRefOrAddDefault{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/> 1070public static ref TValue? GetValueRefOrAddDefault(Dictionary<TKey, TValue> dictionary, TKey key, out bool exists) 1767private readonly Dictionary<TKey, TValue> _dictionary; 1776internal Enumerator(Dictionary<TKey, TValue> dictionary, int getEnumeratorRetType) 1887private readonly Dictionary<TKey, TValue> _dictionary; 1889public KeyCollection(Dictionary<TKey, TValue> dictionary) 2012private readonly Dictionary<TKey, TValue> _dictionary; 2017internal Enumerator(Dictionary<TKey, TValue> dictionary) 2082private readonly Dictionary<TKey, TValue> _dictionary; 2084public ValueCollection(Dictionary<TKey, TValue> dictionary) 2206private readonly Dictionary<TKey, TValue> _dictionary; 2211internal Enumerator(Dictionary<TKey, TValue> dictionary)
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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\DiagnosticCounter.cs (2)
108private Dictionary<string, string?>? _metadata; 128Dictionary<string, string?>.Enumerator enumerator = _metadata.GetEnumerator();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
36private readonly Dictionary<EventListener, EventListenerSubscription> m_subscriptions = new Dictionary<EventListener, EventListenerSubscription>();
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1325Dictionary<string, string?>? args = null;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (12)
3153Dictionary<string, string>? eventsByName = null; 3601private static void DebugCheckEvent(ref Dictionary<string, string>? eventsByName, 3915private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>(); 3917private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>(); 4533Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>(); 6196private readonly Dictionary<int, string> opcodeTab; 6197private Dictionary<int, string>? taskTab; 6198private Dictionary<int, ChannelInfo>? channelTab; 6199private Dictionary<ulong, string>? keywordTab; 6200private Dictionary<string, Type>? mapsTab; 6201private readonly Dictionary<string, string> stringTab; // Maps unlocalized strings to localized ones 6219private readonly Dictionary<string, List<int>> perEventByteArrayArgIndices; // "event_name" -> List_of_Indices_of_Byte[]_Arg
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\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
51private static readonly Dictionary<char, string> seq_mapping = new Dictionary<char, string>()
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (1)
997private static readonly Dictionary<string, IntPtr> s_sortNameToSortHandleCache = new Dictionary<string, IntPtr>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (6)
150private static Dictionary<string, string> RegionNames => 412private static volatile Dictionary<string, CultureData>? s_cachedRegions; 413private static Dictionary<string, string>? s_regionNames; 441Dictionary<string, CultureData>? tempHashTable = s_cachedRegions; 665private static volatile Dictionary<string, CultureData>? s_cachedCultures; 684Dictionary<string, CultureData>? tempHashTable = s_cachedCultures;
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; 997Dictionary<int, CultureInfo> lcidTable = CachedCulturesByLcid; 1034Dictionary<string, CultureInfo> nameTable = CachedCulturesByName; 1073Dictionary<string, CultureInfo> nameTable = CachedCulturesByName; 1119private static Dictionary<string, CultureInfo> CachedCulturesByName 1123Dictionary<string, CultureInfo>? cache = s_cachedCulturesByName; 1134private static Dictionary<int, CultureInfo> CachedCulturesByLcid 1138Dictionary<int, CultureInfo>? cache = s_cachedCulturesByLcid;
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\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
19private static readonly Dictionary<string, Assembly> s_loadfile = new Dictionary<string, Assembly>();
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\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (1)
27public ResourceSet? GrovelForResourceSet(CultureInfo culture, Dictionary<string, ResourceSet> localResourceSets, bool tryParents, bool createIfNotExists)
src\libraries\System.Private.CoreLib\src\System\Resources\IResourceGroveler.cs (1)
14ResourceSet? GrovelForResourceSet(CultureInfo culture, Dictionary<string, ResourceSet> localResourceSets, bool tryParents,
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\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\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs (1)
32internal ResourceReader(Stream stream, Dictionary<string, ResourceLocator> resCache, bool permitDeserialization)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
69internal Dictionary<string, ResourceLocator>? _resCache;
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\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (4)
163private Dictionary<string, ResourceLocator>? _resCache; 175private Dictionary<string, ResourceLocator>? _caseInsensitiveTable; 278Dictionary<string, ResourceLocator>? cache = _resCache; 320Dictionary<string, ResourceLocator>? caseInsensitiveTable = _caseInsensitiveTable;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (13)
45/// 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"/>. 52/// Items should not be added or removed from the <see cref="Dictionary{TKey, TValue}"/> while the ref <typeparamref name="TValue"/> is in use. 55public static ref TValue GetValueRefOrNullRef<TKey, TValue>(Dictionary<TKey, TValue> dictionary, TKey key) where TKey : notnull 59/// 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"/>. 67/// Items should not be added or removed from the <see cref="Dictionary{TKey, TValue}"/> while the ref <typeparamref name="TValue"/> is in use. 70public static ref TValue GetValueRefOrNullRef<TKey, TValue, TAlternateKey>(Dictionary<TKey, TValue>.AlternateLookup<TAlternateKey> dictionary, TAlternateKey key) 76/// 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"/>. 83/// <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> 84public static ref TValue? GetValueRefOrAddDefault<TKey, TValue>(Dictionary<TKey, TValue> dictionary, TKey key, out bool exists) where TKey : notnull 85=> ref Dictionary<TKey, TValue>.CollectionsMarshalHelper.GetValueRefOrAddDefault(dictionary, key, out exists); 88/// 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"/>. 96/// <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> 97public static ref TValue? GetValueRefOrAddDefault<TKey, TValue, TAlternateKey>(Dictionary<TKey, TValue>.AlternateLookup<TAlternateKey> dictionary, TAlternateKey key, out bool exists)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (2)
12private static readonly Dictionary<int, HashSet<Token>> s_registrations = Initialize(); 14private static unsafe Dictionary<int, HashSet<Token>> Initialize()
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
29private readonly Dictionary<string, string> _assemblyPaths;
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (6)
33private static Dictionary<long, WeakReference<AssemblyLoadContext>>? s_allContexts; 37private static Dictionary<long, WeakReference<AssemblyLoadContext>> AllContexts => 106Dictionary<long, WeakReference<AssemblyLoadContext>> allContexts = AllContexts; 159Dictionary<long, WeakReference<AssemblyLoadContext>> allContexts = AllContexts; 278Dictionary<long, WeakReference<AssemblyLoadContext>>? allContexts = s_allContexts; 472Dictionary<long, WeakReference<AssemblyLoadContext>>? allContexts = s_allContexts;
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
22private readonly Dictionary<string, int> _nameToIndex;
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\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
86Dictionary<int, int> prefixToBucket = new(bucketCount);
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\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (1)
319Dictionary<int, EncodingInfo>? result = EncodingProvider.GetEncodingListFromProviders();
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\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
135internal static EncodingInfo[] GetEncodings(Dictionary<int, EncodingInfo> encodingInfoList)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
181private static Dictionary<int, Task>? s_currentActiveTasks; 189Dictionary<int, Task> activeTasks = 205Dictionary<int, Task>? activeTasks = s_currentActiveTasks;
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (6)
646private static Dictionary<string, LocalDataStoreSlot>? s_nameToSlotMap; 653private static Dictionary<string, LocalDataStoreSlot> EnsureNameToSlotMap() 655Dictionary<string, LocalDataStoreSlot>? nameToSlotMap = s_nameToSlotMap; 668Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap(); 678Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap(); 692Dictionary<string, LocalDataStoreSlot> nameToSlotMap = EnsureNameToSlotMap();
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
618private readonly Dictionary<int, bool> _usedIdToTracksAllValuesMap = new Dictionary<int, bool>();
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (2)
132public Dictionary<string, TimeZoneInfo>? _systemTimeZones; 135public Dictionary<string, TimeZoneInfo>? _timeZonesUsingAlternativeIds;
src\System\Attribute.CoreCLR.cs (4)
35Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11); 141Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11); 367private static void CopyToAttributeList(List<Attribute> attributeList, Attribute[] attributes, Dictionary<Type, AttributeUsageAttribute> types) 397private static void AddAttributesToList(List<Attribute> attributeList, Attribute[] attributes, Dictionary<Type, AttributeUsageAttribute> types)
src\System\GC.CoreCLR.cs (2)
853internal Dictionary<string, object> Configurations; 871Dictionary<string, object> configurationDictionary = context.Configurations!;
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
49private readonly Dictionary<string, Type> _typeBuilderDict;
src\System\RuntimeType.CoreCLR.cs (4)
1143Dictionary<string, RuntimeEventInfo>? csEventInfos = filter.CaseSensitive() ? null : 1171Filter filter, RuntimeType declaringType, Dictionary<string, RuntimeEventInfo>? csEventInfos, ref ListBuilder<RuntimeEventInfo> list) 1247Dictionary<string, List<RuntimePropertyInfo>>? csPropertyInfos = filter.CaseSensitive() ? null : 1282Dictionary<string, List<RuntimePropertyInfo>>? csPropertyInfos,
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) 596private DataContractDictionary? _knownDataContracts; 804Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 1206internal override DataContractDictionary? KnownDataContracts 1314internal override DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null) 1421Dictionary<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 1379internal 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>; 226public virtual DataContractDictionary? KnownDataContracts 284internal virtual DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null) 305private static Dictionary<XmlQualifiedName, DataContract?>? s_nameToBuiltInContract; 306private static Dictionary<string, DataContract?>? s_typeNameToBuiltInContract; 308private static Dictionary<string, XmlDictionaryString>? s_clrTypeStrings; 992internal virtual DataContractDictionary? KnownDataContracts 1932internal static DataContractDictionary? ImportKnownTypeAttributes(Type type) 1934DataContractDictionary? knownDataContracts = null; 1935Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>(); 1942private static void ImportKnownTypeAttributes(Type? type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary? knownDataContracts) 2048internal 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; 22private DataContractDictionary? _knownTypesForObject; 58public DataContractDictionary Contracts => 61public Dictionary<DataContract, object> ProcessedContracts => 66public DataContractDictionary? KnownTypesForObject 203private void AddKnownDataContracts(DataContractDictionary? knownDataContracts) 309private Dictionary<XmlQualifiedName, object>? _referencedTypesDictionary; 310private Dictionary<XmlQualifiedName, object>? _referencedCollectionTypesDictionary; 314private Dictionary<XmlQualifiedName, object> GetReferencedTypes() 338private Dictionary<XmlQualifiedName, object> GetReferencedCollectionTypes() 361private void AddReferencedType(Dictionary<XmlQualifiedName, object> referencedTypes, Type type) 576Dictionary<XmlQualifiedName, object> referencedTypes = useReferencedCollectionTypes ? GetReferencedCollectionTypes() : GetReferencedTypes();
System\Runtime\Serialization\DataMember.cs (1)
293internal 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)
298s_typeOfDictionaryGeneric ??= 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. 151private SchemaObjectDictionary SchemaObjects 187Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>(); 225DataContractDictionary knownDataContracts = new DataContractDictionary(); 241internal SchemaObjectDictionary CreateSchemaObjects() 243SchemaObjectDictionary schemaObjects = new SchemaObjectDictionary(); 912DataContractDictionary 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>; 199private 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)
19private readonly Dictionary<string, XmlDictionaryString> _lookup;
System.Private.Windows.Core (3)
System\Private\Windows\Core\BinaryFormat\RecordMap.cs (1)
11private readonly Dictionary<int, IRecord> _recordMap = [];
System\Private\Windows\Core\BinaryFormat\Support\StringRecordsCollection.cs (2)
12private readonly Dictionary<string, int> _strings = []; 13private readonly Dictionary<int, MemberReference> _memberReferences = [];
System.Private.Xml (127)
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)
2087Dictionary<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>(); 1528private readonly Dictionary<string, LocalBuilder> _locals; 1578public void AddToFreeLocals(Dictionary<(Type, string), Queue<LocalBuilder>> freeLocals)
System\Xml\Serialization\Compilation.cs (8)
440var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 511var serializers = new Dictionary<string, string>(); 690private readonly ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>> _collectibleCaches = new ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>>(); 691private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 703if (_collectibleCaches.TryGetValue(t.Assembly, out var cCache)) 720Dictionary<TempAssemblyCacheKey, TempAssembly>? cache; 724cache = _collectibleCaches.TryGetValue(t.Assembly, out var c) // Clone or create
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)
1056internal static MemberMapping[] GetAllMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1106internal static MemberMapping[] GetSettableMembers(StructMapping mapping, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1113private static void PopulateMemberInfos(StructMapping structMapping, MemberMapping[] mappings, System.Collections.Generic.Dictionary<string, MemberInfo> memberInfos) 1133Dictionary<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)
17private readonly Dictionary<TypeMapping, string> _methodNames = new Dictionary<TypeMapping, string>(); 19private readonly 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>(); 58internal Dictionary<TypeMapping, string> MethodNames { get { return _methodNames; } } 415private FieldBuilder GenerateTypedSerializers(Dictionary<string, string> serializers, TypeBuilder serializerContractTypeBuilder) 442private void GenerateGetSerializer(Dictionary<string, string> serializers, XmlMapping[] xmlMappings, TypeBuilder serializerContractTypeBuilder) 488internal void GenerateSerializerContract(XmlMapping[] xmlMappings, Type[] types, string readerType, string[] readMethods, string writerType, string[] writerMethods, Dictionary<string, string> serializers)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
21private readonly Dictionary<string, string> _idNames = new Dictionary<string, string>(); 23private readonly Dictionary<string, FieldBuilder> _idNameFields = new Dictionary<string, FieldBuilder>(); 24private Dictionary<string, EnumMapping>? _enums; 27internal Dictionary<string, EnumMapping> Enums => _enums ??= new Dictionary<string, EnumMapping>();
System\Xml\Serialization\XmlSerializer.cs (4)
164private static readonly ContextAwareTables<Dictionary<XmlSerializerMappingKey, XmlSerializer>> s_xmlSerializerTable = new ContextAwareTables<Dictionary<XmlSerializerMappingKey, XmlSerializer>>(); 676Dictionary<XmlSerializerMappingKey, XmlSerializer>? typedMappingTable = null; 683var 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)
54public Dictionary<QilName, VarPar> AllGlobalVarPars = new Dictionary<QilName, VarPar>(); 55public Dictionary<QilName, Template> NamedTemplates = new Dictionary<QilName, Template>(); 56public Dictionary<QilName, AttributeSet> AttributeSets = new Dictionary<QilName, AttributeSet>(); 57public Dictionary<string, NsAlias> NsAliases = new Dictionary<string, NsAlias>(); 59private 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)
473Dictionary<VarPar, Template>? paramToTemplate = null; 474Dictionary<VarPar, QilFunction>? paramToFunction = null;
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (3)
300public static Dictionary<string, FunctionInfo> FunctionTable = CreateFunctionTable(); 301private static Dictionary<string, FunctionInfo> CreateFunctionTable() 303Dictionary<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)) 327var propertyMap = new Dictionary<MethodInfo, PropertyAccessorInfo>(); 337var 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(); 422Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator = il.DocumentToSequencePoints.GetEnumerator(); 446private BlobHandle PopulateMultiDocSequencePointsBlob(Dictionary<SymbolDocumentWriter, List<SequencePoint>>.Enumerator enumerator, StandaloneSignatureHandle localSignature)
System\Reflection\Emit\TypeBuilderImpl.cs (1)
42internal 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)
35private readonly Dictionary<string, UserStringHandle> _userStrings = new Dictionary<string, UserStringHandle>(256); 40private readonly Dictionary<string, StringHandle> _strings = new Dictionary<string, StringHandle>(256); 50private readonly Dictionary<Guid, GuidHandle> _guids = new Dictionary<Guid, GuidHandle>(); 536Dictionary<string, StringHandle> strings,
System\Reflection\Metadata\Internal\NamespaceCache.cs (11)
15private volatile 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>(); 243private void LinkChildToParentNamespace(Dictionary<string, NamespaceDataBuilder> existingNamespaces, 313private void ResolveParentChildRelationships(Dictionary<string, NamespaceDataBuilder> namespaces, out List<NamespaceDataBuilder>? virtualNamespaces) 325private void PopulateTableWithTypeDefinitions(Dictionary<NamespaceDefinitionHandle, NamespaceDataBuilder> table) 357private 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; 1419var groupedNestedTypes = new Dictionary<TypeDefinitionHandle, ImmutableArray<TypeDefinitionHandle>.Builder>(); 1449var 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\libraries\Common\src\System\Resources\ResourceWriter.cs (2)
41private Dictionary<string, object?> _caseInsensitiveDups; 42private Dictionary<string, PrecannedResource>? _preserializedData;
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
69internal Dictionary<string, ResourceLocator>? _resCache;
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (4)
163private Dictionary<string, ResourceLocator>? _resCache; 175private Dictionary<string, ResourceLocator>? _caseInsensitiveTable; 278Dictionary<string, ResourceLocator>? cache = _resCache; 320Dictionary<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\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)
512Dictionary<string, object> h = new Dictionary<string, object>(); 817Dictionary<string, object> values = null;
System\Runtime\Caching\MemoryCacheEntry.cs (2)
35internal Dictionary<MemoryCacheEntryChangeMonitor, MemoryCacheEntryChangeMonitor> _dependents; // dependents must be notified when this entry is removed 247Dictionary<MemoryCacheEntryChangeMonitor, MemoryCacheEntryChangeMonitor>.KeyCollection deps = null;
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<,>)); } 655Type? type = _dataContractSet.GetReferencedType(GenericDictionaryName, GenericDictionaryContract, out DataContract? _, out object[]? _) ?? typeof(Dictionary<,>); 898DataContractDictionary? knownTypeDictionary = GetKnownTypeContracts(dataContract); 902DataContractDictionary.ValueCollection? knownTypeContracts = knownTypeDictionary.Values; 915private DataContractDictionary? GetKnownTypeContracts(DataContract dataContract) 933private DataContractDictionary? GetKnownTypeContracts(DataContract classDataContract, Dictionary<DataContract, object?> handledContracts) 966private static void AddKnownTypeContracts(DataContract classDataContract, DataContractDictionary? knownContracts) 987DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>()); 1519Dictionary<string, object?> fragments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 1550private static void AddToNamespace(StringBuilder builder, string? fragment, Dictionary<string, object?> fragments) 1584int fragmentLength, Dictionary<string, object?> fragments) 1612Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System.Security.Claims (1)
System\Security\Claims\Claim.cs (1)
34private Dictionary<string, string>? _properties;
System.Security.Cryptography (16)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\ECDomainParameters.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
27var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\CryptoConfig.cs (6)
34private static volatile Dictionary<string, string>? s_defaultOidHT; 35private static volatile Dictionary<string, object>? s_defaultNameHT; 39private static Dictionary<string, string> DefaultOidHT 49Dictionary<string, string> ht = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase); 102private static Dictionary<string, object> DefaultNameHT 113Dictionary<string, object> ht = new Dictionary<string, object>(capacity: capacity, comparer: StringComparer.OrdinalIgnoreCase);
System\Security\Cryptography\OidLookup.cs (3)
98private static readonly Dictionary<string, string> s_friendlyNameToOid = 101private static readonly Dictionary<string, string> s_oidToFriendlyName = 104private static readonly Dictionary<string, string> s_compatOids =
System\Security\Cryptography\X509Certificates\Asn1\DistributionPointNameAsn.xml.cs (1)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\X509Certificates\Asn1\TimeAsn.xml.cs (1)
20var 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 (17)
src\libraries\Common\src\System\Security\Cryptography\Asn1\DirectoryStringAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\GeneralNameAsn.xml.cs (1)
27var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
src\libraries\Common\src\System\Security\Cryptography\Asn1\Pbkdf2SaltChoice.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\CertificateChoiceAsn.xml.cs (1)
23var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\KeyAgreeRecipientIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\OriginatorIdentifierOrKeyAsn.xml.cs (1)
21var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\RecipientInfoAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\SignedAttributesSet.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\Asn1\SignerIdentifierAsn.xml.cs (1)
20var usedTags = new System.Collections.Generic.Dictionary<Asn1Tag, string>();
System\Security\Cryptography\Pkcs\CmsSignature.cs (4)
15private static readonly Dictionary<string, CmsSignature> s_lookup = 25static partial void PrepareRegistrationRsa(Dictionary<string, CmsSignature> lookup); 26static partial void PrepareRegistrationDsa(Dictionary<string, CmsSignature> lookup); 27static partial void PrepareRegistrationECDsa(Dictionary<string, CmsSignature> lookup);
System\Security\Cryptography\Pkcs\CmsSignature.DSA.cs (1)
15static 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.RSA.cs (1)
16static partial void PrepareRegistrationRsa(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)
332Dictionary<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)
564Dictionary<XmlQualifiedName, string> attrs = null;
System\ServiceModel\Syndication\CategoriesDocument.cs (1)
18public 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)
72public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\ServiceDocument.cs (1)
31public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationCategory.cs (1)
42public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationContent.cs (2)
13private Dictionary<XmlQualifiedName, string> _attributeExtensions; 21public Dictionary<XmlQualifiedName, string> AttributeExtensions
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
111public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationItem.cs (1)
78public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationLink.cs (1)
54public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\SyndicationPerson.cs (1)
43public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System\ServiceModel\Syndication\Workspace.cs (1)
36public Dictionary<XmlQualifiedName, string> AttributeExtensions => _extensions.AttributeExtensions;
System.Text.Encoding.CodePages (5)
System\Text\CodePagesEncodingProvider.cs (1)
14private readonly Dictionary<int, Encoding> _encodings = new Dictionary<int, Encoding>();
System\Text\EncodingTable.cs (4)
12private static readonly Dictionary<string, int> s_nameToCodePageCache = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 13private static readonly Dictionary<int, string> s_codePageToWebNameCache = new Dictionary<int, string>(); 14private static readonly Dictionary<int, string> s_codePageToEnglishNameCache = new Dictionary<int, string>(); 141private static string? GetNameFromCodePage(int codePage, string names, ReadOnlySpan<int> indices, Dictionary<int, string> cache)
System.Text.Json (36)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
100var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System\Text\Json\Document\JsonElement.cs (1)
1373Dictionary<string, ValueQueue<JsonElement>> properties2 = new(capacity: remainingProps, StringComparer.Ordinal);
System\Text\Json\JsonHelpers.cs (3)
218this Dictionary<string, TValue> dictionary, 225Dictionary<string, TValue>.AlternateLookup<ReadOnlySpan<char>> spanLookup = 255public static Dictionary<TKey, TValue> CreateDictionaryFromCollection<TKey, TValue>(
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
411private readonly Dictionary<(JsonTypeInfo, JsonPropertyInfo?), string[]> _generated = new();
System\Text\Json\Serialization\Converters\Collection\DictionaryOfTKeyTValueConverter.cs (3)
15where TCollection : Dictionary<TKey, TValue> 31Dictionary<TKey, TValue>.Enumerator enumerator; 43enumerator = (Dictionary<TKey, TValue>.Enumerator)state.Current.CollectionEnumerator;
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
102if (jsonTypeInfo.CreateObject is null && Type.IsAssignableFrom(typeof(Dictionary<string, object?>)))
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (1)
45if (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 (2)
17((Dictionary<TKey, TValue>)state.Current.ReturnValue!)[key] = value; 34state.Current.ReturnValue = creator((Dictionary<TKey, TValue>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Converters\Collection\IReadOnlyDictionaryOfTKeyTValueConverter.cs (2)
14private readonly bool _isDeserializable = typeof(TDictionary).IsAssignableFrom(typeof(Dictionary<TKey, TValue>)); 18((Dictionary<TKey, TValue>)state.Current.ReturnValue!)[key] = value;
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (3)
39private readonly Dictionary<string, EnumFieldInfo> _enumFieldInfoIndex; 307Dictionary<string, EnumFieldInfo>.AlternateLookup<ReadOnlySpan<char>> lookup = _enumFieldInfoIndex.GetAlternateLookup<ReadOnlySpan<char>>(); 534Dictionary<string, string>? enumMemberAttributes = null;
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (3)
15private static Dictionary<Type, JsonConverter>? s_defaultSimpleConverters; 41private static Dictionary<Type, JsonConverter> GetDefaultSimpleConverters() 44var converters = new Dictionary<Type, JsonConverter>(NumberOfSimpleConverters);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
276private static bool PropertyIsOverriddenAndIgnored(PropertyInfo propertyInfo, Dictionary<string, JsonPropertyInfo>? ignoredMembers)
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 (6)
1050private protected Dictionary<ParameterLookupKey, JsonParameterInfoValues>? _parameterInfoValuesIndex; 1066public Dictionary<string, (JsonPropertyInfo, int index)> AddedProperties = new(options.PropertyNameCaseInsensitive ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 1067public Dictionary<string, JsonPropertyInfo>? IgnoredProperties; 1089Dictionary<string, JsonPropertyInfo> propertyIndex = new(properties.Count, comparer); 1164Dictionary<ParameterLookupKey, JsonParameterInfoValues> parameterIndex = new(parameterInfoValues.Length); 1202Dictionary<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 (9)
Helpers\KnownTypeSymbols.cs (1)
40public INamedTypeSymbol? DictionaryOfTKeyTValueType => GetOrResolveType(typeof(Dictionary<,>), ref _DictionaryOfTKeyTValueType);
JsonSourceGenerator.Emitter.cs (2)
78private readonly Dictionary<TypeRef, TypeGenerationSpec> _typeIndex = new(); 85private readonly Dictionary<string, string> _propertyNames = new();
JsonSourceGenerator.Parser.cs (4)
47private readonly Dictionary<ITypeSymbol, TypeGenerationSpec> _generatedTypes = new(SymbolEqualityComparer.Default); 1011bool PropertyIsOverriddenAndIgnored(IPropertySymbol property, Dictionary<string, ISymbol>? ignoredMembers) 1023public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); 1024public Dictionary<string, ISymbol>? IgnoredMembers;
src\libraries\System.Text.Json\Common\JsonHelpers.cs (2)
18public static bool TryAdd<TKey, TValue>(this Dictionary<TKey, TValue> dictionary, TKey key, TValue value) where TKey : notnull 100var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System.Text.RegularExpressions (20)
System\Text\RegularExpressions\RegexCharClass.cs (1)
116private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
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)
33private readonly Dictionary<(int ordinal, BDD? one, BDD? zero), BDD> _bddCache = new(); 39private readonly Dictionary<(int op, BDD a, BDD? b), BDD> _operationCache = new(); // op is BooleanOperation; using int to reuse generic instantiation with _bddCache 369BDD 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 (5)
57private readonly Dictionary<TSet, SymbolicRegexNode<TSet>> _singletonCache = new(); 64internal readonly Dictionary<NodeCacheKey, SymbolicRegexNode<TSet>> _nodeCache = new(); 112internal readonly Dictionary<(SymbolicRegexNode<TSet>, TSet elem, uint context), SymbolicRegexNode<TSet>> _derivativeCache = new(); 120internal readonly Dictionary<(SymbolicRegexNode<TSet>, uint), SymbolicRegexNode<TSet>> _pruneLowerPriorityThanNullabilityCache = new(); 128internal 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 (20)
RegexGenerator.cs (5)
104Dictionary<string, string[]> requiredHelpers = new(); 165var emittedExpressions = new Dictionary<(string Pattern, RegexOptions Options, int? Timeout), RegexMethod>(); 171Dictionary<string, string[]> requiredHelpers = new(); 180else if (result is ValueTuple<RegexMethod, string, Dictionary<string, string[]>, CompilationData> regexImpl) 245else if (result is ValueTuple<RegexMethod, string, Dictionary<string, string[]>, CompilationData> regexImpl)
RegexGenerator.Emitter.cs (13)
205private static void EmitRegexDerivedTypeRunnerFactory(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 306private static void AddIsWordCharHelper(Dictionary<string, string[]> requiredHelpers) 346private static void AddIsBoundaryHelper(Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 371private static void AddIsECMABoundaryHelper(Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 397private static string EmitSearchValuesOrLiteral(ReadOnlySpan<char> chars, Dictionary<string, string[]> requiredHelpers) 411private static string EmitSearchValues(char[] chars, Dictionary<string, string[]> requiredHelpers, string? fieldName = null) 506private static string EmitIndexOfAnyCustomHelper(string set, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 713private static void EmitTryFindNextPossibleStartingPosition(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 1448private static void EmitTryMatchAtCurrentPosition(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow) 1479Dictionary<string, int> usedNames = new(); 1492Dictionary<string, string[]> additionalLocalFunctions = new(); 4924Dictionary<string, string[]> requiredHelpers, 4999private static string MatchCharacterClass(string chExpr, string charClass, bool negate, HashSet<string> additionalDeclarations, Dictionary<string, string[]> requiredHelpers)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
116private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
19private readonly Dictionary<TKey, Lazy<RateLimiter>> _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)
113var transferEnabledMap = GetPropertyTransferEnabledMapForObject(d); 119private static Dictionary<DependencyProperty, bool> GetPropertyTransferEnabledMapForObject(DependencyObject d) 121var propertyTransferEnabledForObject = _propertyTransferEnabledMap[d] as Dictionary<DependencyProperty, bool>; 134var propertyTransferEnabledForObject = _propertyTransferEnabledMap[d] as Dictionary<DependencyProperty, bool>;
Microsoft\Windows\Controls\KeyTipService.cs (5)
275Dictionary<DependencyObject, bool> processedElements = new Dictionary<DependencyObject, bool>(); 326private void ReevaluateScopes(DependencyObject scopedParent, Dictionary<DependencyObject, bool> processedElements) 337Dictionary<DependencyObject, DependencyObject> elementToScopeMap = null; 914Dictionary<XmlLanguage, CultureInfo> cultureCache = Current._cultureCache; 1760private Dictionary<XmlLanguage, CultureInfo> _cultureCache = null; // cache of culture infos.
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
471Dictionary<int, int> _childIndexToStarLayoutIndexMap = new Dictionary<int, int>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
185Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders = new Dictionary<object, List<RibbonTabHeaderAndIndex>>(); 667Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders, 713Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders,
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
66private Dictionary<int, int> _tabIndexToDisplayIndexMap = new Dictionary<int, int>(); // A map from collection index to display index of tab items. 67private Dictionary<int, int> _tabDisplayIndexToIndexMap = new Dictionary<int, int>(); // A map from display index to collection index of tab items. 693internal Dictionary<int, int> TabIndexToDisplayIndexMap 704internal Dictionary<int, int> TabDisplayIndexToIndexMap
System.Windows.Forms (80)
System\Resources\ResXResourceReader.cs (2)
29private Dictionary<string, object>? _resData; 30private 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)
126private Dictionary<string, PropertyDescriptor>? _properties; 127private Dictionary<string, PropertyInfo>? _propertyInfos; 163private 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\Application.ThreadContext.cs (1)
25private static readonly Dictionary<uint, ThreadContext> s_contextHash = [];
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (3)
53private static Dictionary<string, Type>? s_builtEnums; 54private static Dictionary<Guid, CachedProperties>? s_processedLibraries; 404Dictionary<string, PropertyInfo> propertyInfo = [];
System\Windows\Forms\Control.cs (1)
288private 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)
52private Dictionary<Keys, ToolStripMenuItem>? _shortcuts; 1683internal 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\ErrorProvider\ErrorProvider.cs (3)
25private readonly Dictionary<Control, ControlItem> _items = []; 26private readonly Dictionary<Control, ErrorWindow> _windows = []; 473Dictionary<Control, string> controlError = new(bindingsCount);
System\Windows\Forms\Form.cs (1)
166private Dictionary<int, Size>? _dpiFormSizes;
System\Windows\Forms\Help\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\Input\KeysConverter.cs (11)
17private Dictionary<CultureInfo, List<string>>? _cultureToDisplayOrder; 18private Dictionary<CultureInfo, Dictionary<string, Keys>>? _cultureToKeyName; 38Dictionary<string, Keys> localizedNames = new(34); 100private Dictionary<CultureInfo, Dictionary<string, Keys>> CultureToKeyName 113private Dictionary<CultureInfo, List<string>> CultureToDisplayOrder 160Dictionary<string, Keys> keyNames = GetKeyNames(culture); 239Dictionary<string, Keys> keyNames = GetKeyNames(culture); 287Dictionary<string, Keys> keyNames = GetKeyNames(culture); 345private Dictionary<string, Keys> GetKeyNames(CultureInfo? culture)
System\Windows\Forms\Layout\TableLayout.cs (1)
1393Dictionary<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\OLE\DataObject.DataStore.cs (1)
26private readonly Dictionary<string, DataStoreEntry> _data = new(BackCompatibleStringComparer.Default);
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.Analyzers.CSharp.Tests (7)
Generators\ProjectFileReaderTests.cs (7)
45Dictionary<string, string> properties = new() 71Dictionary<string, string> properties = new() 109Dictionary<string, string> properties = new() 146Dictionary<string, string> properties = new() 168Dictionary<string, string> properties = new() 188Dictionary<string, string> properties = new() 206Dictionary<string, string> properties = new()
System.Windows.Forms.Design (103)
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)) 549private void ProcessLists(DesignerActionListCollection? lists, Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories) 817Dictionary<string, Dictionary<DesignerActionList, List<LineInfo>>> categories = []; 827foreach (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; 259Dictionary<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)
2607internal static void FillStatementTable(IDesignerSerializationManager manager, IDictionary table, Dictionary<string, string>? names, CodeStatementCollection statements, string? className) 2790internal 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)) 472ResourceTable.TryGetValue(CultureInfo.InvariantCulture, out Dictionary<string, object?>? resourceSet); 548Dictionary<string, object?> invariant = GetResourceSet(CultureInfo.InvariantCulture)!; 549Dictionary<string, object?>? metadata; 622Dictionary<string, object?>? resourceSet = GetResourceSet(CultureInfo.InvariantCulture); 652Dictionary<string, object?>? resourceSet = GetResourceSet(CultureInfo.InvariantCulture); 690Dictionary<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\ToolboxItem.cs (1)
550Dictionary<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 = []; 1281Dictionary<string, PropertyDescriptor> hash = [];
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1960private 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 397Dictionary<object, SelectionUIItem> newSelection = new(selection.Count);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1391private Dictionary<string, bool> _extenderProperties; 1393private 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.Design.Tests (22)
System\ComponentModel\Design\ComponentDesignerTests.cs (9)
72Dictionary<string, PropertyDescriptor> properties = new() 2307Dictionary<string, PropertyDescriptor> properties = new() 2327Dictionary<string, PropertyDescriptor> properties = new() 2360Dictionary<string, PropertyDescriptor> properties = new() 2434Dictionary<object, object> events = new() { { "key1", descriptor }, { "Key2", null } }; 2737Dictionary<string, PropertyDescriptor> properties = new() 2758Dictionary<string, PropertyDescriptor> properties = new() 2793Dictionary<string, PropertyDescriptor> properties = new() 2873Dictionary<object, object> events = new() { { "key1", descriptor }, { "Key2", null } };
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (12)
53private static Dictionary<string, CodeDomComponentSerializationState> GetState(SerializationInfo info) 55return Assert.IsType<Dictionary<string, CodeDomComponentSerializationState>>(info.GetValue("State", typeof(Dictionary<string, CodeDomComponentSerializationService.CodeDomComponentSerializationState>))); 60Assert.Null(info.GetValue("State", typeof(Dictionary<string, CodeDomComponentSerializationState>))); 138Dictionary<string, CodeDomComponentSerializationState> state = GetState(info); 241Dictionary<string, CodeDomComponentSerializationState> state = GetState(info); 343Dictionary<string, CodeDomComponentSerializationState> state = GetState(info); 388Dictionary<string, CodeDomComponentSerializationState> state = GetState(info); 439Dictionary<string, CodeDomComponentSerializationState> state = GetState(info); 485Dictionary<string, CodeDomComponentSerializationState> state = GetState(info); 529Dictionary<string, CodeDomComponentSerializationState> state = GetState(info); 578Dictionary<string, CodeDomComponentSerializationState> state = GetState(info);
ToolStripMenuItemDesignerTest.cs (1)
114Dictionary<string, PropertyDescriptor> property = new()
System.Windows.Forms.Primitives (2)
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.Primitives.TestUtilities (5)
Extensions\AssertExtensions.cs (1)
427var actualItemCountMapping = new Dictionary<T, ItemCount>(comparer);
SystemCOLORs.cs (4)
8private static readonly Dictionary<COLORREF, List<SYS_COLOR_INDEX>> s_systemColors = CreateColorDictionary(); 10private static readonly Dictionary<SYS_COLOR_INDEX, string> s_names = new() 60private static Dictionary<COLORREF, List<SYS_COLOR_INDEX>> CreateColorDictionary() 62Dictionary<COLORREF, List<SYS_COLOR_INDEX>> dictionary = [];
System.Windows.Forms.PrivateSourceGenerators (1)
System\Windows\Forms\SourceGenerators\EnumValidationGenerator.cs (1)
203var semanticModelCache = new Dictionary<SyntaxTree, SemanticModel>();
System.Windows.Forms.Tests (19)
misc\CollectionHelperTests.cs (9)
13Dictionary<string, string> source = []; 20Dictionary<string, string> source = []; 29Dictionary<string, string> source = []; 38Dictionary<string, string> source = []; 47Dictionary<string, string> source = []; 56Dictionary<string, string> source = new() 69Dictionary<string, string> source = new() 92Dictionary<string, string> source = new() 115Dictionary<string, string> source = new()
System\Resources\ResXResourceWriterTests.cs (1)
32var dictionary = new Dictionary<object, object>();
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1340var typeDefaultValues = new Dictionary<Type, string>
System\Windows\Forms\ApplicationTests.cs (2)
391Dictionary<object, int> formClosingProcessed = new(mainMDIFormCount); 392Dictionary<object, int> formClosedProcessed = new(mainMDIFormCount);
System\Windows\Forms\ListBindingHelperTests.cs (2)
134yield return new object[] { typeof(Dictionary<int, string>), typeof(Dictionary<int, string>) };
System\Windows\Forms\PaddingConverterTests.cs (1)
378var propertyValues = new Dictionary<string, object>
System\Windows\Forms\PropertyGridInternal\TestAccessors.PropertyGridTestAccessor.cs (1)
18internal Dictionary<int, int> _designerSelections => Dynamic._designerSelections;
System\Windows\Forms\PropertyGridTests.cs (2)
2748Dictionary<int, int> _designerSelections = propertyGridTestAccessor._designerSelections; 2780Dictionary<int, int> _designerSelections = propertyGridTestAccessor._designerSelections;
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
46private Dictionary<int, ManipulatorState> manipulatorStates;
System.Xaml (100)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
124static Dictionary<object, AssemblyName> _assemblies; // get key via GetKeyForAssembly
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
1629Dictionary<string, object> _ignorables; 1630Dictionary<string, ProcessContentSet> _processContents; 1631Dictionary<string, PreserveItemSet> _preserveElements; 1632Dictionary<string, PreserveItemSet> _preserveAttributes; 1971Dictionary<string, string> _names; 2026private Dictionary<string, object> _knownNamespaces; 2027private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2028private Dictionary<string, object> _subsumingNamespaces; 2029private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2030private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\Xaml\AttachablePropertyServices.cs (7)
126Lazy<ConditionalWeakTable<object, Dictionary<AttachableMemberIdentifier, object>>> instanceStorage = 127new Lazy<ConditionalWeakTable<object, Dictionary<AttachableMemberIdentifier, object>>>(); 133Dictionary<AttachableMemberIdentifier, object> instanceProperties; 148Dictionary<AttachableMemberIdentifier, object> instanceProperties; 167Dictionary<AttachableMemberIdentifier, object> instanceProperties; 184Dictionary<AttachableMemberIdentifier, object> instanceProperties; 220Dictionary<AttachableMemberIdentifier, object> instanceProperties;
System\Xaml\Context\NameFixupGraph.cs (4)
23Dictionary<object, FrugalObjectList<NameFixupToken>> _dependenciesByParentObject; 26Dictionary<object, NameFixupToken> _dependenciesByChildObject; 29Dictionary<string, FrugalObjectList<NameFixupToken>> _dependenciesByName; 463private static void AddToMultiDict<TKey>(Dictionary<TKey, FrugalObjectList<NameFixupToken>> dict,
System\Xaml\Context\ObjectWriterContext.cs (2)
610public Dictionary<XamlMember, object> CurrentPreconstructionPropertyValues 620public Dictionary<XamlMember, object> ParentPreconstructionPropertyValues
System\Xaml\Context\ObjectWriterFrame.cs (2)
20private Dictionary<XamlMember, object> _preconstructionPropertyValues; 168public Dictionary<XamlMember, object> PreconstructionPropertyValues
System\Xaml\Context\XamlCommonFrame.cs (3)
14internal Dictionary<string, string> _namespaces; 16public Dictionary<string, string> Namespaces 59public void SetNamespaces(Dictionary<string, string> namespaces)
System\Xaml\Context\XamlParserContext.cs (2)
18private Dictionary<string, string> _prescopeNamespaces; 209internal Dictionary<string, SpecialBracketCharacters> CurrentEscapeCharacterMapForMarkupExtension
System\Xaml\Context\XamlParserFrame.cs (1)
39public Dictionary<string, SpecialBracketCharacters> EscapeCharacterMapForMarkupExtension { get; set; }
System\Xaml\InfosetObjects\XamlObjectWriter.cs (6)
38private Dictionary<object, List<PendingCollectionAdd>> _pendingCollectionAdds; 43private Dictionary<object, ObjectWriterContext> _pendingKeyConversionContexts; 210private Dictionary<object, List<PendingCollectionAdd>> PendingCollectionAdds 220private Dictionary<object, ObjectWriterContext> PendingKeyConversionContexts 1421return openGeneric == typeof(Dictionary<,>) || 1507Dictionary<XamlMember, object> propertyValues = ctx.CurrentPreconstructionPropertyValues;
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
198Dictionary<string, string> xmlnsDictionary = null;
System\Xaml\InfosetObjects\XamlXmlReaderSettings.cs (1)
18internal Dictionary<string, string> _xmlnsDictionary;
System\Xaml\MS\Impl\XmlNsInfo.cs (10)
69private Dictionary<string, string> _oldToNewNs; 70internal Dictionary<string, string> OldToNewNs 82private Dictionary<string, string> _prefixes; 83internal Dictionary<string, string> Prefixes 288Dictionary<string, string> LoadOldToNewNs() 290Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 325void LoadOldToNewNsHelper(Dictionary<string, string> result, string oldns, string newns, Assembly assembly) 339Dictionary<string, string> LoadPrefixes() 341Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 374void LoadPrefixesHelper(Dictionary<string, string> result, string xmlns, string prefix, Assembly assembly)
System\Xaml\Parser\NodeStreamSorter.cs (2)
29Dictionary<string, string> _xmlnsDictionary; 94public NodeStreamSorter(XamlParserContext context, XamlPullParser parser, XamlXmlReaderSettings settings, Dictionary<string, string> xmlnsDictionary)
System\Xaml\Runtime\DynamicMethodRuntime.cs (10)
60Dictionary<MethodInfo, PropertyGetDelegate> _propertyGetDelegates; 61Dictionary<MethodInfo, PropertySetDelegate> _propertySetDelegates; 62Dictionary<MethodBase, FactoryDelegate> _factoryDelegates; 63Dictionary<Type, object> _converterInstances; 64Dictionary<Type, DelegateCreator> _delegateCreators; 67private Dictionary<MethodInfo, PropertyGetDelegate> PropertyGetDelegates 79private Dictionary<MethodInfo, PropertySetDelegate> PropertySetDelegates 91private Dictionary<MethodBase, FactoryDelegate> FactoryDelegates 103private Dictionary<Type, object> ConverterInstances 115private Dictionary<Type, DelegateCreator> DelegateCreators
System\Xaml\Schema\Reflector.cs (2)
142Dictionary<char, char> bracketCharacterAttributeList = new Dictionary<char, char>(); 398Dictionary<char, char> bracketCharacterList = new Dictionary<char, char>();
System\Xaml\Schema\TypeReflector.cs (16)
252internal Dictionary<int, IList<XamlType>> ReflectedPositionalParameters { get; set; } 473Dictionary<string, PropertyInfo> result = new Dictionary<string, PropertyInfo>(propList.Length); 534Dictionary<string, EventInfo> result = new Dictionary<string, EventInfo>(eventList.Length); 711private void LookupAllStaticAccessors(out Dictionary<string, List<MethodInfo>> getters, 712out Dictionary<string, List<MethodInfo>> setters, out Dictionary<string, List<MethodInfo>> adders) 730private void LookupAllStaticAccessorsHelper(MethodInfo[] allMethods, Dictionary<string,List<MethodInfo>> getters, 731Dictionary<string, List<MethodInfo>> setters, Dictionary<string, List<MethodInfo>> adders, bool isUnderlyingTypePublic) 839private static void AddToMultiDict(Dictionary<string, List<MethodInfo>> dict, string name, MethodInfo value, bool isUnderlyingTypePublic) 957Dictionary<string, List<MethodInfo>> getters; 958Dictionary<string, List<MethodInfo>> setters; 959Dictionary<string, List<MethodInfo>> adders; 968Dictionary<string, List<MethodInfo>> getters, Dictionary<string, List<MethodInfo>> setters) 1009List<XamlMember> result, Dictionary<string, List<MethodInfo>> adders)
System\Xaml\Schema\XamlTypeInvoker.cs (2)
22private Dictionary<XamlType, MethodInfo> _addMethods; 168Dictionary<XamlType, MethodInfo> addMethods = new Dictionary<XamlType, MethodInfo>();
System\Xaml\XamlObjectReader.cs (4)
2419Dictionary<object, ObjectMarkupInfo> objectGraphTable; 2423Dictionary<object, string> serviceProviderTable; 2477Dictionary<string, string> namespaceToPrefixMap; 2478Dictionary<string, string> prefixToNamespaceMap;
System\Xaml\XamlSchemaContext.cs (7)
470private ConcurrentDictionary<XamlType, Dictionary<string,SpecialBracketCharacters> > _masterBracketCharacterCache; 479private ConcurrentDictionary<XamlType, Dictionary<string, SpecialBracketCharacters> > MasterBracketCharacterCache 484Interlocked.CompareExchange(ref _masterBracketCharacterCache, CreateDictionary<XamlType, Dictionary<string, SpecialBracketCharacters>>(), null); 546internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(XamlType type) 550Dictionary<string, SpecialBracketCharacters> bracketCharacterCache = null; 567private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(XamlType type) 569Dictionary<string, SpecialBracketCharacters> map = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
System\Xaml\XamlType.cs (3)
1566private Dictionary<int, IList<XamlType>> LookupAllPositionalParameters() 1573Dictionary<int, IList<XamlType>> result = new Dictionary<int,IList<XamlType>>(); 1580Dictionary<int, IList<XamlType>> ctorDict = new Dictionary<int, IList<XamlType>>();
System\Xaml\XamlXmlWriter.cs (4)
46Dictionary<string, string> prefixAssignmentHistory; 671Dictionary<string, string> namespaceMap = new Dictionary<string, string>(); //namespace to prefix map 672Dictionary<string, string> prefixMap = new Dictionary<string, string>(); //prefix to namespace map 2168Dictionary<XamlMember, bool> dictionary = new Dictionary<XamlMember, bool>();
TagHelpersWebSite (4)
Components\CopyrightViewComponent.cs (1)
12var dict = new Dictionary<string, object>
Components\GenericViewComponent.cs (1)
10public IViewComponentResult Invoke(Dictionary<string, List<string>> items)
TagHelpers\ATagHelper.cs (1)
34var methodParameters = output.Attributes.ToDictionary(attribute => attribute.Name,
TagHelpers\PrettyTagHelper.cs (1)
13private static readonly Dictionary<string, string> PrettyTagStyles =
TaskUsageLogger (5)
TaskUsageLogger.cs (5)
52private Dictionary<int, string> _targetIdsToNames; 56private Dictionary<int, string> _toolsVersionsByProjectContextId; 57private Dictionary<string, HashSet<UsingTaskData>> _defaultTasksByToolset; 58private Dictionary<int, HashSet<UsingTaskData>> _tasksByProjectContextId; 59private Dictionary<string, string> _assemblyLocationsByName;
Templates.Blazor.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (2)
198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
Templates.Blazor.WebAssembly.Auth.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (2)
198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
src\Shared\E2ETesting\E2ETestOptions.cs (1)
24var metadataAttributes = Assembly.GetExecutingAssembly()
Templates.Blazor.WebAssembly.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (2)
198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
src\Shared\E2ETesting\E2ETestOptions.cs (1)
24var metadataAttributes = Assembly.GetExecutingAssembly()
Templates.Mvc.Tests (4)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (2)
198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
src\Shared\E2ETesting\E2ETestOptions.cs (1)
24var metadataAttributes = Assembly.GetExecutingAssembly()
Templates.Tests (5)
IdentityUIPackageTest.cs (1)
104var packageOptions = new Dictionary<string, string>();
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
85var finalEnvironmentVariables = new Dictionary<string, string>(environmentVariables)
src\ProjectTemplates\Shared\Project.cs (2)
198var environment = new Dictionary<string, string> 214var environment = new Dictionary<string, string>
src\Shared\E2ETesting\E2ETestOptions.cs (1)
24var metadataAttributes = Assembly.GetExecutingAssembly()
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
VBCSCompiler.UnitTests (15)
CompilerServerTests.cs (15)
129var resetVariables = new Dictionary<string, string>(); 329var files = new Dictionary<string, string> { { "hello.cs", "♕" } }; 471var files = new Dictionary<string, string> { { "c.cs", "class C {}" } }; 486var files = new Dictionary<string, string> { { "c.vb", "Class C\nEnd Class" } }; 543Dictionary<string, string> files = 571Dictionary<string, string> files = 637Dictionary<string, string> files = 679Dictionary<string, string> files = 709Dictionary<string, string> files = 739Dictionary<string, string> files = 859Dictionary<string, string> files = 1000var filesInDirectory = new Dictionary<string, string>() 1050Dictionary<string, string> files = 1099Dictionary<string, string> files = 1250Dictionary<string, string> files =
VersioningWebSite (1)
src\Mvc\test\WebSites\Common\TestResponseGenerator.cs (1)
30var values = query
Wasm.Performance.TestApp (1)
Person.cs (1)
14public Dictionary<string, bool> SecurityClearances { get; set; }
WindowsFormsIntegration (7)
System\Windows\Integration\Convert.cs (4)
29private static Dictionary<SWF.Cursor, SWI.Cursor> _toSystemWindowsInputCursorDictionary; 30private static Dictionary<SWF.Cursor, SWI.Cursor> ToSystemWindowsInputCursorDictionary 69private static Dictionary<SWI.Cursor, SWF.Cursor> _toSystemWindowsFormsCursorDictionary; 70private static Dictionary<SWI.Cursor, SWF.Cursor> ToSystemWindowsFormsCursorDictionary
System\Windows\Integration\PropertyMap.cs (3)
46private Dictionary<string, PropertyTranslator> _defaultTranslators; 47private Dictionary<String, PropertyTranslator> _wrappedDictionary; 237protected Dictionary<string, PropertyTranslator> DefaultTranslators
XmlFileLogger (2)
LogProcessNode.cs (1)
23private readonly Dictionary<Type, List<ILogNode>> _childNodes;
PropertyBag.cs (1)
27private readonly Dictionary<string, string> _properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
xunit.assert (15)
DictionaryAsserts.cs (2)
136 Dictionary<TKey, TValue> collection) 279 Dictionary<TKey, TValue> collection)
EqualityAsserts.cs (2)
31 static Type typeofDictionary = typeof(Dictionary<,>); 296 [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(Dictionary<,>))]
Sdk\ArgumentFormatter.cs (1)
70 static readonly Dictionary<TypeInfo, string> TypeMappings = new Dictionary<TypeInfo, string>
Sdk\AssertHelper.cs (6)
36 static readonly Dictionary<char, string> encodings = new Dictionary<char, string> 50 static ConcurrentDictionary<Type, Dictionary<string, Func<object?, object?>>> gettersByType = new ConcurrentDictionary<Type, Dictionary<string, Func<object?, object?>>>(); 98 static Dictionary<string, Func<object?, object?>> GetGettersForType([DynamicallyAccessedMembers( 577 var expectedGetters = GetGettersForType(expected.GetType()); 578 var actualGetters = GetGettersForType(actual.GetType());
Sdk\CollectionTracker.cs (4)
580 var items = new Dictionary<int, T>(); 598 Dictionary<int, T> items, 823 public Dictionary<int, T> CurrentItems 827 var result = new Dictionary<int, T>();
xunit.console (11)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (2)
33readonly Dictionary<string, Tuple<RuntimeLibrary, RuntimeAssetGroup>> managedAssemblyMap; 37readonly Dictionary<string, Tuple<RuntimeLibrary, RuntimeAssetGroup>> unmanagedAssemblyMap;
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (5)
65var libraryStubs = ReadLibraries(root.ValueAsJsonObject(DependencyContextStrings.LibrariesPropertyName)); 299private Dictionary<string, LibraryStub> ReadLibraries(JsonObject librariesJson) 303var libraries = new Dictionary<string, LibraryStub>(); 354private IEnumerable<Library> CreateLibraries(IEnumerable<TargetLibrary> libraries, bool runtime, Dictionary<string, LibraryStub> libraryStubs) 363private Library CreateLibrary(TargetLibrary targetLibrary, bool runtime, Dictionary<string, LibraryStub> libraryStubs)
common\DictionaryExtensions.cs (2)
34public static Dictionary<TKey, TValue> ToDictionaryIgnoringDuplicateKeys<TInput, TKey, TValue>(this IEnumerable<TInput> inputValues, 39var result = new Dictionary<TKey, TValue>(comparer);
common\Json.cs (1)
481var dictionary = new Dictionary<string, JsonValue>();
Utility\TransformFactory.cs (1)
18readonly Dictionary<string, Transform> availableTransforms = new Dictionary<string, Transform>(StringComparer.OrdinalIgnoreCase);
Xunit.NetCore.Extensions (6)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (1)
18private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();
AssemblyFixtureSupport\XunitTestClassRunnerWithAssemblyFixture.cs (1)
18private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();
AssemblyFixtureSupport\XunitTestCollectionRunnerWithAssemblyFixture.cs (3)
17private readonly Dictionary<Type, object> assemblyFixtureMappings; 21public XunitTestCollectionRunnerWithAssemblyFixture(Dictionary<Type, object> assemblyFixtureMappings, 41var combinedFixtures = new Dictionary<Type, object>(assemblyFixtureMappings);
AssemblyFixtureSupport\XunitTestMethodRunnerWithAssemblyFixture.cs (1)
17private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();