5988 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.Confluent.Kafka (1)
MetricsService.cs (1)
15private readonly Dictionary<string, Statistics> _state = new();
Aspire.Dashboard (17)
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();
DashboardWebApplication.cs (1)
477var initialValues = new Dictionary<string, string?>();
Model\TraceHelpers.cs (1)
48var appFirstTimes = new Dictionary<OtlpApplication, OrderedApplication>();
Otlp\Model\OtlpApplication.cs (2)
29private readonly Dictionary<string, OtlpMeter> _meters = new(); 30private readonly Dictionary<OtlpInstrumentKey, OtlpInstrument> _instruments = new();
Otlp\Model\OtlpInstrument.cs (1)
40public Dictionary<string, List<string?>> KnownAttributeValues { get; } = new();
Otlp\Storage\TelemetryRepository.cs (4)
37private readonly Dictionary<string, OtlpScope> _logScopes = new(); 41private readonly Dictionary<ApplicationKey, int> _applicationUnviewedErrorLogs = new(); 44private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 1083var allKnownAttributes = new Dictionary<string, List<string?>>();
Aspire.Dashboard.Tests (17)
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>();
Model\ResourceSourceViewModelTests.cs (1)
18var properties = new Dictionary<string, ResourcePropertyViewModel>();
Model\ResourceStateViewModelTests.cs (1)
65var propertiesDictionary = new Dictionary<string, ResourcePropertyViewModel>();
ResourceOutgoingPeerResolverTests.cs (9)
27var resources = new Dictionary<string, ResourceViewModel> 40var resources = new Dictionary<string, ResourceViewModel> 53var resources = new Dictionary<string, ResourceViewModel> 66var resources = new Dictionary<string, ResourceViewModel> 80var resources = new Dictionary<string, ResourceViewModel> 94var resources = new Dictionary<string, ResourceViewModel> 108var resources = new Dictionary<string, ResourceViewModel> 167var resources = new Dictionary<string, ResourceViewModel> 181var resources = new Dictionary<string, ResourceViewModel>
Aspire.EndToEnd.Tests (2)
tests\Shared\WorkloadTesting\BuildEnvironment.cs (1)
143EnvVars = new Dictionary<string, string>();
tests\Shared\WorkloadTesting\ToolCommand.cs (1)
21public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
Aspire.Hosting (24)
ApplicationModel\ProjectResource.cs (1)
13internal Dictionary<EndpointAnnotation, string> KestrelEndpointAnnotationHosts { get; } = new();
ApplicationModel\ResourceExtensions.cs (2)
188var environmentVariables = new Dictionary<string, string>(); 192var config = new Dictionary<string, object>();
Dashboard\DashboardLifecycleHook.cs (1)
313var dashboardResourceTasks = new Dictionary<string, Task>();
Dcp\ApplicationExecutor.cs (3)
283var resourceLogState = new Dictionary<string, (bool logsAvailable, bool hasSubscribers)>(); 1364var config = new Dictionary<string, object>(); 1612var 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>();
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
38remappedUrls ??= new();
DistributedApplicationBuilder.cs (7)
160_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 196_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 223new Dictionary<string, string?> 237new Dictionary<string, string?> 251new Dictionary<string, string?> 262new Dictionary<string, string?> 384var 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.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (1)
499var 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)
271var endpointIndexMap = new Dictionary<string, int>();
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
65var topicDictionary = new Dictionary<string, ServiceBusTopic>();
Aspire.Hosting.Azure.Tests (7)
AzureCosmosDBEmulatorFunctionalTests.cs (2)
166hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 212hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
AzureFunctionsTests.cs (5)
170Profiles = new Dictionary<string, LaunchProfile> 187Profiles = new Dictionary<string, LaunchProfile> 204Profiles = new Dictionary<string, LaunchProfile> 221Profiles = new Dictionary<string, LaunchProfile> 237Profiles = new Dictionary<string, LaunchProfile>
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
371var 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.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.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)
103hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 314hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 350hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 400hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 435hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 484hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 514hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
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)
101appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 128appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 178appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 240appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 298appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dashboard\DashboardResourceTests.cs (7)
30builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 89builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 195builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 232builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 264builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 299builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 342builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ApplicationExecutorTests.cs (1)
1057builder.AddInMemoryCollection(new Dictionary<string, string?>
ExpressionResolverTests.cs (1)
131Expressions = new()
KestrelConfigTests.cs (1)
385Profiles = new()
ProjectResourceTests.cs (7)
667protected Dictionary<string, LaunchProfile>? Profiles { get; set; } = new(); 681Profiles = new() 689EnvironmentVariables = new() 702Profiles = new() 710EnvironmentVariables = new() 723Profiles = new() 731EnvironmentVariables = 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)
97cfg.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)
153resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/garnet/ping", "/garnet/get", "/garnet/set", "/redis/ping", "/redis/get", "/redis/set", "/valkey/ping", "/valkey/get", "/valkey/set"] } }, 161resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 166resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/create", "/search"] } }, 179resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }), 181resourceEndpoints: new() { { "api", ["/alive", "/health", "/"] } }, 188resourceEndpoints: new() { { "apiservice", ["/alive", "/health", "/catalog"] } }, 194resourceEndpoints: new() { 203resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 208resourceEndpoints: new() { 222resourceEndpoints: new() { { "api", ["/alive", "/health", "/redis"] } }, 229resourceEndpoints: new() { { "apiservice", ["/alive", "/health"] } }, 235resourceEndpoints: new() { { "api", ["/alive", "/health"] } }, 242resourceEndpoints: new() { { "api", ["/", "/alive", "/health"] } }, 248resourceEndpoints: new() {
Infrastructure\DistributedApplicationExtensions.cs (1)
58var renamedVolumes = new Dictionary<string, string>();
Aspire.Workload.Tests (2)
tests\Shared\WorkloadTesting\BuildEnvironment.cs (1)
143EnvVars = new Dictionary<string, string>();
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 (1)
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 (5)
LocalReferenceResolver.cs (3)
31private readonly Dictionary<Guid, AssemblyInfo> _mvidMap = new(); 37private readonly Dictionary<string, List<string>> _nameToLocationsMap = new(); 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 (3)
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 (2)
Commands\BaseCommand.cs (2)
174var metadata = new Dictionary<string, string>(); 489var result = new Dictionary<string, string>();
dotnet-svcutil-lib (189)
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>();
FrameworkFork\Microsoft.CodeDom\Configuration\CodeDomCompilationConfiguration.cs (1)
38compilerInfo._providerOptions = new Dictionary<string, string>();
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
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\Dom\XmlNodeReader.cs (1)
996Dictionary<string, string> dict = new Dictionary<string, string>();
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\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\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 (6)
52_namespaces = new Dictionary<string, string>(); 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>());
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\DataContract.cs (8)
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 (1)
36_lookup = new Dictionary<string, XmlDictionaryString>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
43_items = new Dictionary<TKey, CacheEntry>();
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\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 (3)
18private Dictionary<OperationDescription, DataContractFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, DataContractFormatAttribute>(); 39_isNonNillableReferenceTypes = new Dictionary<MessagePartDescription, bool>(); 59_knownTypes = new Dictionary<MessagePartDescription, ICollection<CodeTypeReference>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (3)
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>();
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 (4)
46_generatedTypes = new Dictionary<ContractDescription, ServiceContractGenerationContext>(); 47_generatedOperations = new Dictionary<OperationDescription, OperationContractGenerationContext>(); 48_referencedTypes = new Dictionary<ContractDescription, Type>(); 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 (13)
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>(); 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 (2)
124_scopedSupportingTokenAuthenticatorSpecification = new Dictionary<string, ICollection<SupportingTokenAuthenticatorSpecification>>(); 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>();
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>
HealthChecksSample (1)
GCInfoHealthCheck.cs (1)
58var data = new Dictionary<string, object>()
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[]>
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.LongTests (3)
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>>();
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
IIS.NewHandler.FunctionalTests (3)
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>>();
IIS.NewShim.FunctionalTests (3)
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>>();
IISExpress.FunctionalTests (3)
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>>();
illink (64)
ILLink.RoslynAnalyzer (16)
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 (2)
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 (1)
TestEventListener.cs (1)
15private Dictionary<string, bool> _targetSourceName = new Dictionary<string, bool>();
InMemory.FunctionalTests (6)
BadHttpRequestTests.cs (1)
57public static Dictionary<string, (string header, string errorMessage)> BadHeaderData => new Dictionary<string, (string, string)>
HttpsConnectionMiddlewareTests.cs (1)
73var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
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>();
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 (4)
CallAnalysis\Arrays.cs (1)
31private static readonly Dictionary<string, string[]> _collectionFactories = new()
CallAnalysis\CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
CallAnalysis\StaticTime.cs (2)
16private static readonly Dictionary<string, string[]> _timeMethods = new() 29private static readonly Dictionary<string, string[]> _timeProperties = new()
Microsoft.Analyzers.Local (2)
ApiLifecycle\Json\JsonObject.cs (1)
26_properties = new Dictionary<string, JsonValue>();
CallAnalysis\CallAnalyzer.Registrar.cs (1)
52var dict = new Dictionary<string, string[]>
Microsoft.Arcade.Test.Common (1)
MockFileSystem.cs (1)
28Files = files ?? new();
Microsoft.AspNetCore.Analyzer.Testing (1)
DiagnosticProject.cs (1)
29private static readonly Dictionary<Assembly, Solution> _solutionCache = new Dictionary<Assembly, Solution>();
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.Test (2)
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.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.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.BrowserTesting (3)
BrowserManagerConfiguration.cs (2)
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 (16)
NavigationManagerExtensions.cs (1)
26private static readonly Dictionary<Type, QueryParameterFormatter<object>> _queryParameterFormatters = new()
ParameterView.cs (1)
108var result = new Dictionary<string, object?>();
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>());
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();
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 (2)
34new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>()); 37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>());
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
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 (14)
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 (1)
17private readonly Dictionary<(int ComponentId, int FrameIndex), string> _namedSubmitEventsByLocation = new();
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (1)
265public Dictionary<string, byte[]> Saved { get; private set; } = new();
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();
Microsoft.AspNetCore.Components.Endpoints.Tests (147)
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 (66)
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) }; 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" }) }; 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>() { }; 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 (1)
13new Dictionary<string, IDirectoryContents>();
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 (5)
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();
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 (126)
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 (3)
331builder.AddMultipleAttributes(1, new Dictionary<string, object>() 354var attributes = new Dictionary<string, object> 368var attributes = new Dictionary<string, object>
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 (5)
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>();
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 (3)
Hosting\WebAssemblyHostConfiguration.cs (1)
41IDictionary<string, object> IConfigurationBuilder.Properties { get; } = new Dictionary<string, object>();
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.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 (3)
src\Components\Shared\src\RenderBatchWriter.cs (1)
43_deduplicatedStringIndices = new Dictionary<string, int>();
StaticContentProvider.cs (1)
89=> new Dictionary<string, string>()
WebViewManager.cs (1)
29private readonly Dictionary<string, RootComponent> _rootComponentsBySelector = new();
Microsoft.AspNetCore.Components.WebView.Maui (2)
Android\BlazorWebChromeClient.cs (1)
91 FileTypes = new FilePickerFileType(new Dictionary<DevicePlatform, IEnumerable<string>>
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
27 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestDocument.cs (1)
14private readonly Dictionary<long, ComponentNode> _componentsById = new();
StaticContentProviderTests.cs (1)
19new Dictionary<string, string>
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
27 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
27 private static readonly Dictionary<(string AssemblyName, string RelativePath), (string? ContentType, byte[] Content)> _updatedContent = new()
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.DataProtection (3)
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>();
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 (1)
HealthCheckOptions.cs (1)
27private static readonly IReadOnlyDictionary<HealthStatus, int> DefaultStatusCodesMapping = new Dictionary<HealthStatus, int>
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 (1)
Logging\IncomingHttpRouteUtility.cs (1)
36var parametersToRedact = new Dictionary<string, DataClassification>();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (17)
Latency\RequestLatencyTelemetryExtensionsTests.cs (1)
70.AddInMemoryCollection(new Dictionary<string, string?>
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 (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\RequestHeadersEnricherTests.cs (1)
265HeadersDataClasses = new Dictionary<string, DataClassification>
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
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\ServiceDescriptorHelpers.cs (2)
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 (3)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
68RouteValues = new Dictionary<string, string?>
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
500return new Dictionary<string, FieldDescriptor>(); 504var queryParameters = new Dictionary<string, FieldDescriptor>();
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.Hosting (1)
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)
48new Dictionary<string, string> 152new Dictionary<string, string>
HostingEnvironmentExtensionsTests.cs (2)
19.AddInMemoryCollection(new Dictionary<string, string>() 66.AddInMemoryCollection(new Dictionary<string, string>()
Internal\HostingEventSourceTests.cs (1)
201new 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 (4)
Internal\ItemsDictionary.cs (2)
134_items = new Dictionary<object, object?>(); 163public static readonly IDictionary<object, object?> Dictionary = new Dictionary<object, object?>();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
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.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 (8)
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\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 (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
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)
141var 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 (4)
DefaultHttpContextTests.cs (1)
140var items = new Dictionary<object, object>();
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 (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
425TypedResults.ValidationProblem(new Dictionary<string, string[]> {
Microsoft.AspNetCore.Identity.FunctionalTests (23)
Extensions\HttpClientExtensions.cs (1)
16return client.SendAsync(form, submitButton, new Dictionary<string, string>());
Infrastructure\HtmlPageContext.cs (1)
10protected HtmlPageContext() : this(new Dictionary<string, object>())
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 (2)
AssemblyTestLog.cs (1)
30private static readonly Dictionary<Assembly, AssemblyTestLog> _logs = new();
xunit\AspNetTestAssemblyRunner.cs (1)
18private readonly Dictionary<Type, object> _assemblyFixtureMappings = new();
Microsoft.AspNetCore.JsonPatch.Tests (14)
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 (7)
42var dictionary = new Dictionary<int, object>(); 64var dictionary = new Dictionary<int, object>(); 164var dictionary = new Dictionary<Guid, object>(); 184var dictionary = new Dictionary<Guid, int>(); 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 (5)
Abstractions\ActionDescriptor.cs (1)
21Properties = new Dictionary<object, object?>();
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>();
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 (2)
ApiResponseTypeProvider.cs (2)
145var results = new Dictionary<int, ApiResponseType>(); 230var results = new Dictionary<int, ApiResponseType>();
Microsoft.AspNetCore.Mvc.Core (16)
ApiBehaviorOptions.cs (1)
92public IDictionary<int, ClientErrorData> ClientErrorMapping { get; } = new Dictionary<int, ClientErrorData>();
ApplicationModels\ActionModel.cs (1)
39Properties = new Dictionary<object, object?>();
ApplicationModels\ApplicationModel.cs (1)
23Properties = new Dictionary<object, object?>();
ApplicationModels\ApplicationModelFactory.cs (2)
60var actionsByMethod = new Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>>(); 86var attributeRoutingConfigurationErrors = new Dictionary<MethodInfo, string>();
ApplicationModels\ControllerModel.cs (1)
38Properties = new Dictionary<object, object?>();
ApplicationModels\ParameterModelBase.cs (1)
28Properties = new Dictionary<object, object?>();
Formatters\TextOutputFormatter.cs (1)
41var cache = new Dictionary<string, string>();
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 (1)
245return new Dictionary<TKey, TValue>();
ModelBinding\Metadata\DisplayMetadata.cs (1)
20public IDictionary<object, object> AdditionalValues { get; } = new Dictionary<object, object>();
ModelBinding\ModelBinderFactory.cs (1)
224Visited = new Dictionary<Key, IModelBinder?>();
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
11public static readonly Dictionary<int, (string Type, string Title)> Defaults = new()
Microsoft.AspNetCore.Mvc.Core.Test (176)
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\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 (2)
990var boundPropertyTypes = new Dictionary<string, Type> 998var inputPropertyValues = new Dictionary<string, object>
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\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 (12)
21var values = new Dictionary<string, string>() 61var values = new Dictionary<string, string>() 72var dictionary = new Dictionary<int, string>(); 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\DefaultModelBindingContextTest.cs (1)
179new FormCollection(new Dictionary<string, StringValues>()),
ModelBinding\EnumerableValueProviderTest.cs (6)
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>
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\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 (1)
23var dictionary = new Dictionary<string, StringValues>();
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 (1)
23var dictionary = new Dictionary<string, StringValues>();
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\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 (30)
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>
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.Test (34)
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>()
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.RuntimeCompilation (1)
CSharpCompiler.cs (1)
170new Dictionary<string, ReportDiagnostic>
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 (3)
ApplicationModels\PageHandlerModel.cs (1)
29Properties = new Dictionary<object, object?>();
ApplicationModels\PageRouteModel.cs (1)
37Properties = new Dictionary<object, object?>();
Builder\PageActionEndpointConventionBuilder.cs (1)
26internal IDictionary<string, object> Items { get; set; } = new Dictionary<string, object>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (35)
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\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.Test (166)
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 (9)
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 (5)
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>(),
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 (5)
Filters\SaveTempDataPropertyFilterBase.cs (1)
33public IDictionary<PropertyInfo, object> OriginalValues { get; } = new Dictionary<PropertyInfo, object>();
HtmlHelper.cs (1)
1382var groupList = new Dictionary<string, SelectListGroup>();
Infrastructure\DefaultTempDataSerializer.cs (1)
17return new Dictionary<string, object>();
Rendering\ViewContext.cs (1)
207internal Dictionary<object, object?> Items => _items ??= new Dictionary<object, object?>();
TryGetValueProvider.cs (1)
16new Dictionary<Type, TryGetValueDelegate>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (103)
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 (5)
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>
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 (1)
TestFileProvider.cs (1)
13new Dictionary<string, IDirectoryContents>();
Microsoft.AspNetCore.OpenApi (18)
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 (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>(); 362Content = new Dictionary<string, OpenApiMediaType>() 499Content = new Dictionary<string, OpenApiMediaType>() 502var schema = new OpenApiSchema { Type = "object", Properties = new Dictionary<string, OpenApiSchema>() }; 536Properties = new Dictionary<string, OpenApiSchema> 572Properties = new Dictionary<string, OpenApiSchema> 600var propertySchema = new OpenApiSchema { Type = "object", Properties = new Dictionary<string, OpenApiSchema>() }; 655Content = 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\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 (2)
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();
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 (2)
OwinEnvironment.cs (1)
50_entries = new Dictionary<string, FeatureMap>()
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.Razor.Runtime (5)
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\CopyOnWriteDictionaryHolder.cs (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
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> 272items: new Dictionary<object, object>(), 300items: new Dictionary<object, object>(), 322items: new Dictionary<object, object>(), 349items: new Dictionary<object, object>(), 376items: new Dictionary<object, object>(), 406items: new Dictionary<object, object>(), 433items: new Dictionary<object, object>(),
Runtime\TagHelpers\TestTagHelpers\TagHelperDescriptorFactoryTagHelpers.cs (1)
403: base()
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)
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 (3)
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 (8)
Internal\DfaGraphWriter.cs (1)
54var visited = new Dictionary<DfaNode, int>();
Matching\DataSourceDependentMatcher.cs (1)
41var seenEndpointNames = new Dictionary<string, string?>();
Matching\DfaNode.cs (1)
42PolicyEdges = new Dictionary<object, DfaNode>();
Matching\HostMatcherPolicy.cs (1)
198var edges = new Dictionary<EdgeKey, List<Endpoint>>();
Matching\HttpMethodMatcherPolicy.cs (1)
175var edges = new Dictionary<EdgeKey, List<Endpoint>>();
Patterns\RoutePatternFactory.cs (2)
34new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>()); 37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>());
Tree\TreeRouteBuilder.cs (1)
268var trees = new Dictionary<int, UrlMatchingTree>();
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 (24)
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>
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)
804var values = new Dictionary<string, object> 861var values = new Dictionary<string, object> 893var 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 (1)
StandardFeatureCollection.cs (1)
14private static readonly Dictionary<Type, Func<RequestContext, object?>> _featureFuncLookup = new()
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
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>
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
Microsoft.AspNetCore.Server.IIS (1)
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 (7)
Internal\CertificatePathWatcher.cs (2)
23private readonly Dictionary<string, DirectoryWatchMetadata> _metadataForDirectory = new(); 25private readonly Dictionary<string, FileWatchMetadata> _metadataForFile = new();
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();
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 (33)
CertificatePathWatcherTests.cs (2)
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 (22)
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> 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 (3)
InMemoryTransportBenchmark.cs (1)
109new Dictionary<EndPoint, IReadOnlyList<InMemoryConnection>>();
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
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 (10)
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 (2)
48_copy = new Dictionary<TKey, TValue>(); 61_copy = new Dictionary<TKey, TValue>();
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 (2)
HubConnection.cs (2)
780readers = new Dictionary<string, object>(); 1195invocationMessage.Headers ??= new Dictionary<string, string>();
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.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
25ConfigTypes = new Dictionary<string, Type>()
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.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 (2)
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 (92)
BackEnd\BuildManager\BuildManager.cs (6)
294_buildSubmissions = new Dictionary<int, BuildSubmissionBase>(); 298_nodeIdToKnownConfigurations = new Dictionary<int, HashSet<int>>(); 299_unnamedProjectInstanceToNames = new Dictionary<ProjectInstance, string>(); 304_projectStartedEvents = new Dictionary<int, BuildEventArgs>(); 1969new ReadOnlyDictionary<ProjectGraphNode, BuildResult>(resultsPerNode ?? new Dictionary<ProjectGraphNode, BuildResult>()))); 1999var buildingNodes = new Dictionary<BuildSubmissionBase, ProjectGraphNode>();
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\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 (3)
365_outstandingResults ??= new Dictionary<int, BuildResult>(); 504_outstandingRequests ??= new Dictionary<int, BuildRequest>(); 512_unresolvedConfigurations ??= new Dictionary<int, List<BuildRequest>>();
BackEnd\Components\Caching\ConfigCache.cs (6)
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>();
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 (1)
807Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties)
BackEnd\Components\RequestBuilder\Lookup.cs (2)
782modifiesOfType = new Dictionary<ProjectItemInstance, MetadataModifications>(); 815_cloneTable ??= new Dictionary<ProjectItemInstance, ProjectItemInstance>();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1016results = new Dictionary<int, BuildResult>();
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
137_requestsWeAreBlockedBy = new Dictionary<BlockingRequestKey, SchedulableRequest>();
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)
421_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 479_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>();
BackEnd\Shared\BuildAbortedException.cs (1)
79return new Dictionary<string, string>()
BackEnd\Shared\BuildResult.cs (1)
647Dictionary<string, string> additionalEntries = new();
BuildCheck\Infrastructure\BuildCheckBuildEventHandler.cs (2)
29_eventHandlersFull = new() 47_eventHandlersRestore = new()
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
508private readonly Dictionary<int, HashSet<string>> _deferredProjectEvalIdToImportedProjects = new(); 622private readonly Dictionary<int, List<BuildEventArgs>> _deferredEvalDiagnostics = new();
BuildCheck\Infrastructure\BuildEventsProcessor.cs (2)
53Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(); 152Dictionary<string, TaskInvocationCheckData.TaskParameter> taskParameters = new();
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
164var filteredConfig = new Dictionary<string, string>();
BuildCheck\Infrastructure\TracingReporter.cs (1)
32=> new Dictionary<string, TimeSpan>()
Collections\ItemDictionary.cs (2)
57_nodes = new Dictionary<T, LinkedListNode<T>>(); 78_nodes = new Dictionary<T, LinkedListNode<T>>();
Collections\MultiDictionary.cs (1)
158_backing = new Dictionary<K, SmallList<V>>();
Construction\Solution\SolutionFile.cs (2)
345_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>(); 750_solutionConfigurationsByFullName = new Dictionary<string, SolutionConfigurationInSolution>();
Construction\Solution\SolutionProjectGenerator.cs (1)
249new Dictionary<string, string>
Definition\ToolsetConfigurationReader.cs (2)
217kindToPathsCache = new Dictionary<string, ProjectImportPathMatch>(); 235var pathsTable = new Dictionary<string, ProjectImportPathMatch>();
Definition\ToolsetLocalReader.cs (1)
54return new Dictionary<string, ProjectImportPathMatch>();
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>()
Evaluation\Evaluator.cs (1)
251_projectSupportsReturnsAttribute = new Dictionary<ProjectRootElement, bool>();
Evaluation\LazyItemEvaluator.cs (2)
43new Dictionary<string, LazyItemList>() : 239_cache = new Dictionary<ISet<string>, OrderedItemDataCollection>();
Evaluation\Preprocessor.cs (1)
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>();
Graph\GraphBuilder.cs (3)
202var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>(); 312Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new(); 444var nodeStates = new Dictionary<ProjectGraphNode, NodeVisitationState>();
Instance\HostServices.cs (1)
313var hostObjectMap = new Dictionary<string, HostObjects>();
Instance\ProjectInstance.cs (2)
561thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>(); 562thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>();
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
49private Dictionary<ITask, AppDomain> _tasksAndAppDomains = new Dictionary<ITask, AppDomain>();
Instance\TaskFactories\TaskHostTask.cs (1)
163_setParameters = new Dictionary<string, object>();
Instance\TaskRegistry.cs (1)
163private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>();
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
640globalProperties = ReadStringDictionary() ?? new Dictionary<string, string>(); 1253var rawTracingData = ReadStringDictionary() ?? new Dictionary<string, string>();
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\ParallelLogger\ParallelConsoleLogger.cs (4)
30internal Dictionary<(int nodeId, int contextId), string> propertyOutputMap = new Dictionary<(int nodeId, int contextId), string>(); 207propertyOutputMap = new Dictionary<(int, int), string>(); 424var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>(); 1721? new Dictionary<BuildEventContext, object>()
Logging\ProfilerLogger.cs (2)
132var mergeMap = new Dictionary<long, long>(); 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>();
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
TaskHostConfiguration.cs (1)
208_globalParameters = globalParameters ?? new Dictionary<string, string>();
Tracing.cs (1)
58s_counts = new Dictionary<string, int>();
Microsoft.Build.BuildCheck.UnitTests (26)
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 (7)
33evaluatedProperties ?? new Dictionary<string, string>(), 34new Dictionary<string, string>()); 44new Dictionary<string, string> { 54new Dictionary<string, string> { 73new Dictionary<string, string> { 81new Dictionary<string, string> { 112var evaluatedProperties = new Dictionary<string, string> {
TaskInvocationAnalysisDataTests.cs (1)
89var request = new BuildRequestData(testProject.ProjectFile, new Dictionary<string, string?>(), MSBuildConstants.CurrentToolsVersion, [], null, BuildRequestDataFlags.None);
Microsoft.Build.CommandLine.UnitTests (9)
TerminalLogger_Tests.cs (6)
136return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>()) 511new Dictionary<string, string?>() { { "displayName", "testName1" }, { "localizedResult", "passed" } })); 516new Dictionary<string, string?>() { { "displayName", "testName2" }, { "localizedResult", "skipped" } })); 521new Dictionary<string, string?>() { { "total", "10" }, { "passed", "7" }, { "skipped", "2" }, { "failed", "1" } })); 685pse.GlobalProperties = new Dictionary<string, string>() { ["TargetFramework"] = "tfName" }; 698pse2.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.Engine.OM.UnitTests (75)
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 (5)
1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection); 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 (2)
395var globals = new Dictionary<string, string> { { "Configuration", "Debug" } }; 456new Dictionary<string, string> { { "Configuration", "Release" }, { "Platform", "Win32" } };
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>
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\ProjectElemetExportHelper.cs (1)
84private static Dictionary<Type, ExporterFactory> knownTypes = new Dictionary<Type, ExporterFactory>();
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
153private Dictionary<UInt32, ExternalConnection> imported = new Dictionary<UInt32, ExternalConnection>();
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>();
Microsoft.Build.Engine.UnitTests (473)
BackEnd\AssemblyTaskFactory_Tests.cs (7)
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); 691_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\BinaryTranslator_Tests.cs (1)
511Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>();
BackEnd\BuildManager_Logging_Tests.cs (1)
119new Dictionary<string, string>(),
BackEnd\BuildManager_Tests.cs (41)
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); 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 (19)
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); 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"); 310BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0");
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 (5)
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);
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 (3)
3958BuildRequestEntry 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")); 3988var project = new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c); 3993var 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 (3)
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),
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\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 (1)
1286_bucket = new ItemBucket(Array.Empty<string>(), new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
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 (3)
671new Dictionary<string, string>(), 1894new Dictionary<string, SubToolset> 1901new Dictionary<string, ProjectImportPathMatch>
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))
BuildEventArgsDataEnumeration.cs (6)
29GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 56GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 63new Dictionary<string, string>() { { "metadat1", "val1" }, { "metadat2", "val2" } })), 94GlobalProperties = new Dictionary<string, string>() { { "GlobalKey", "GlobalValue" } }, 101new Dictionary<string, string>() { { "metadat1", "val1" }, { "metadat2", "val2" } })), 105new Dictionary<string, string>() { { "metadat41", "val41" }, { "metadat42", "val42" } })),
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 (3)
253var backing = new Dictionary<string, string>(); 269Dictionary<string, string> values = new Dictionary<string, string>(); 274Dictionary<string, int> convertedValues = new Dictionary<string, int>();
ConsoleLogger_Tests.cs (1)
127_environment = new Dictionary<string, string>();
Construction\SolutionFilter_Tests.cs (1)
131ProjectGraphEntryPoint entryPoint = new(filterFile.Path, new Dictionary<string, string>());
Construction\SolutionProjectGenerator_Tests.cs (11)
1602IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1664Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 1715IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1733IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 1850IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 2033Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2127Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2215Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2292Dictionary<string, string> globalProperties = new Dictionary<string, string>(); 2460var globalProperties = new Dictionary<string, string> { { "ImportByWildcardBeforeSolution", "false" } }; 2700Dictionary<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 (9)
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>();
EscapingInProjects_Tests.cs (1)
846ProjectItem item = project.AddItem("None", "MetadataTests", new Dictionary<string, string> {
Evaluation\Evaluator_Tests.cs (4)
65using ProjectCollection collection = new(new Dictionary<string, string>(), [logger], ToolsetDefinitionLocations.Default); 4140IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 4200IDictionary<string, string> globalProperties = new Dictionary<string, string>(); 4252IDictionary<string, string> globalProperties = new Dictionary<string, string>();
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)
61var mI2_1 = new Dictionary<string, string> 70var mI2_2 = new Dictionary<string, string> 110var expectedMetadata = new Dictionary<string, string> 154new Dictionary<string, string>(), 155new Dictionary<string, string> { ["m1"] = "m1_updated" }, 156new Dictionary<string, string>(), 184var a = new Dictionary<string, string> 192var b = new Dictionary<string, string> 200var c = new Dictionary<string, string> 211var metadataForI2 = new Dictionary<string, string> 249new Dictionary<string, string> 278new Dictionary<string, string> 305new Dictionary<string, string>() 328new Dictionary<string, string>() 353new Dictionary<string, string> 422new Dictionary<string, string>(), 423new Dictionary<string, string> 428new Dictionary<string, string> 433new Dictionary<string, string> 490var i1BaseMetadata = new Dictionary<string, string> 501new Dictionary<string, string>() 510new Dictionary<string, string> 719new 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 (2)
852var projectOptions = SdkUtilities.CreateProjectOptionsWithResolver(new SdkUtilities.FileBasedMockSdkResolver(new Dictionary<string, string> 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 (3)
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>>();
Graph\GetCompatiblePlatformGraph_Tests.cs (1)
442ProjectGraphEntryPoint entryPoint = new(solutionFile.Path, new Dictionary<string, string>());
Graph\GraphLoadedFromSolution_tests.cs (33)
96new Dictionary<int, int[]>() 101new Dictionary<int, int[]> 109new Dictionary<int, int[]> 118new Dictionary<int, int[]> 126new Dictionary<int, int[]> 135new Dictionary<int, int[]> 143new Dictionary<int, int[]> 152new Dictionary<int, int[]> 162new Dictionary<int, int[]> 229Projects = new Dictionary<string, string> 234ProjectConfigurations = new Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>> 237"1", new Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution> 265new Dictionary<int, int[]> // graph nodes and ProjectReference edges 277new Dictionary<int, int[]> 289new Dictionary<int, int[]> 304new Dictionary<int, int[]> 319new Dictionary<int, int[]> 334new Dictionary<int, int[]> 345new Dictionary<int, int[]> 356new Dictionary<int, int[]> 367new Dictionary<int, int[]> 382new Dictionary<int, int[]> 397new Dictionary<int, int[]> 412new Dictionary<int, int[]> 427new Dictionary<int, int[]> 440new Dictionary<int, int[]> 453new Dictionary<int, int[]> 466new Dictionary<int, int[]> 487new Dictionary<string, string>() 591new Dictionary<int, int[]>() 610Projects = new Dictionary<string, string> 675? new Dictionary<string, string> 681: new Dictionary<string, string>();
Graph\GraphTestingUtilities.cs (2)
20public static readonly ImmutableDictionary<string, string> EmptyGlobalProperties = new Dictionary<string, string> { { PropertyNames.IsGraphBuild, "true" } }.ToImmutableDictionary(); 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 (4)
130ExpectedCompletedWork = new Dictionary<string, string> 162ExpectedCompletedWork = new Dictionary<string, string> 195ExpectedCompletedWork = new Dictionary<string, string> 228ExpectedCompletedWork = new Dictionary<string, string>
Graph\ProjectGraph_Tests.cs (91)
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[]> 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 (19)
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();
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)
483using ProjectFromString projectFromString = new(contents, new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion);
Instance\ProjectTaskInstance_Internal_Tests.cs (4)
32new Dictionary<string, (string, MockElementLocation)>(), 38new Dictionary<string, (string, MockElementLocation)> 50new Dictionary<string, (string, MockElementLocation)> 70parameters ??= new Dictionary<string, (string, MockElementLocation)>();
InternalEngineHelpers.cs (1)
48_resultMap = new Dictionary<string, SdkResult> { [result.SdkReference.Name] = result };
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 } })));
WarningsAsMessagesAndErrors_Tests.cs (2)
85customProperties: new Dictionary<string, string> 171customProperties: new Dictionary<string, string>
Microsoft.Build.Framework (17)
BinaryReaderExtensions.cs (1)
112data.ExtendedMetadata = new Dictionary<string, string?>();
BinaryTranslator.cs (1)
621additionalEntries = new();
BuildCheck\BuildCheckTracingData.cs (2)
26: this(new Dictionary<string, BuildCheckRuleTelemetryData>(), []) 30: this(new Dictionary<string, BuildCheckRuleTelemetryData>(), executionData)
BuildException\BuildExceptionSerializationHelper.cs (1)
49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
BuildSubmissionStartedEventArgs.cs (1)
21GlobalProperties = new Dictionary<string, string?>();
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>
TaskItemData.cs (2)
19private static readonly Dictionary<string, string> _emptyMetadata = new Dictionary<string, string>(); 41var dictionary = new Dictionary<string, string>();
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?>();
Microsoft.Build.Framework.UnitTests (11)
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 } } };
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 (51)
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>()
Microsoft.Build.Tasks.Core (24)
AssemblyDependency\GenerateBindingRedirects.cs (1)
363var map = new Dictionary<AssemblyName, string>();
AssemblyDependency\ReferenceTable.cs (2)
1374var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>(); 3022Dictionary<string, string> removedMetadata = new Dictionary<string, string>();
AssemblyDependency\ResolveAssemblyReference.cs (1)
1148_unresolvedConflicts.Add(new TaskItem(assemblyName.Name, new Dictionary<string, string>()
BootstrapperUtil\BootstrapperBuilder.cs (2)
272var builtProducts = new Dictionary<string, ProductBuilder>(); 273var productsAndIncludes = new Dictionary<string, Product>();
ManifestUtil\ApplicationManifest.cs (3)
434var clsidList = new Dictionary<string, ComInfo>(); 435var tlbidList = new Dictionary<string, ComInfo>(); 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>();
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
ResGenDependencies.cs (2)
32internal IDictionary<string, ResXFile> resXFiles = new Dictionary<string, ResXFile>(); 37internal IDictionary<string, PortableLibraryFile> portableLibraries = new Dictionary<string, PortableLibraryFile>();
ResolveManifestFiles.cs (3)
830private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(); 831private readonly Dictionary<string, MapEntry> _simpleNameDictionary = new Dictionary<string, MapEntry>(); 943private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
ResourceHandling\MSBuildResXReader.cs (1)
23var aliases = new Dictionary<string, string>();
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 (34)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (3)
102Dictionary<string, SystemState.FileState> cache = new() { 145Dictionary<string, SystemState.FileState> cache = new() { 174Dictionary<string, SystemState.FileState> cache = new() {
AssemblyDependency\SuggestedRedirects.cs (2)
361new TaskItem("A", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }), 362new TaskItem("B", new Dictionary<string, string> { ["ExternallyResolved"] = "true" }),
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 (1)
289Dictionary<string, string> sdksAndVersions = new Dictionary<string, string>();
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 (9)
ObjectModelHelpers.cs (8)
126return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c) 261expectedDirectMetadata = new Dictionary<string, string>(); 471expected ??= new Dictionary<string, string>(); 1020BuildRequestData data = new BuildRequestData(projectFileFullPath, globalProperties ?? new Dictionary<string, string>(), null, targets, null); 1429new Dictionary<string, string>(), 1756var nodes = new Dictionary<int, (bool IsRoot, string ProjectPath)>(); 1805globalProperties ?? new Dictionary<string, string>(), 2110globalProperties ?? new Dictionary<string, string>(),
TestEnvironment.cs (1)
598var tempPaths = new TempPaths
Microsoft.Build.Utilities.Core (10)
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>();
ToolLocationHelper.cs (3)
619var filteredExtensionSdks = new Dictionary<string, string>(); 1414s_vsInstallFolders = new Dictionary<string, string[]>(); 2460var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>();
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 (6)
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 (1)
30_properties = new Dictionary<string, ElementMapping<AssemblyProperty>>();
Mappings\AttributesMapping.cs (1)
29_attributes = new Dictionary<string, ElementMapping<AttributeGroup>>();
SRMetadataPEReaderCache.cs (1)
25_cache = new Dictionary<string, (FileStream, PEReader)>();
Traversers\DocIdToTypeMappingTraverser.cs (1)
15_typesIdMap = new Dictionary<string, ITypeDefinition>();
Microsoft.CodeAnalysis (69)
CodeGen\CompilationTestData.cs (1)
68var map = new Dictionary<string, MethodData>();
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\SarifV1ErrorLogger.cs (1)
235private readonly Dictionary<string, int> _counters = new Dictionary<string, int>();
Compilation\CommonModuleCompilationState.cs (1)
48Interlocked.CompareExchange(ref _lazyStateMachineTypes, new Dictionary<TMethodSymbol, TNamedTypeSymbol>(), null);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (6)
45_completedSyntaxAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>(); 46_completedSemanticAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>(); 47_completedSyntaxAnalyzersByAdditionalFile = new Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>>(); 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.cs (2)
51private readonly Dictionary<string, (AssemblyName? AssemblyName, string RealAssemblyPath)?> _analyzerAssemblyInfoMap = new(); 61private readonly Dictionary<(string OriginalAnalyzerPath, CultureInfo CultureInfo), string?> _analyzerSatelliteAssemblyRealPaths = new();
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
419_lazyGeneratedCodeSymbolsForTreeMap = new Dictionary<SyntaxTree, ImmutableHashSet<ISymbol>>();
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\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 (3)
67var mappedMethods = new Dictionary<IMethodSymbolInternal, EncMappedMethod>(); 190var declaratorToIndex = new Dictionary<SyntaxNode, int>(); 499var hoistedLocals = new Dictionary<EncHoistedLocalInfo, int>();
Emit\EditAndContinue\DeltaMetadataWriter.cs (4)
117_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>(); 120_firstParamRowMap = new Dictionary<MethodDefinitionHandle, int>(); 172var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>(); 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 (1)
98var result = new Dictionary<int, AddedOrChangedMethodInfo>();
InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
MetadataReader\PEModule.cs (4)
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>>(); 3866typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
NativePdbWriter\PdbWriter.cs (1)
49_documentIndex = new Dictionary<DebugSourceDocument, int>();
PEWriter\MetadataWriter.cs (3)
439private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>(); 448private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>(); 4247: this(writer, new Dictionary<T, int>(), lastRowId)
PEWriter\MetadataWriter.PortablePdb.cs (1)
54private readonly Dictionary<DebugSourceDocument, DocumentHandle> _documentIndex = new Dictionary<DebugSourceDocument, DocumentHandle>();
ReferenceManager\CommonReferenceManager.Resolution.cs (2)
619lazyAliasMap = new Dictionary<MetadataReference, MergedAliases>(); 828localBoundReferenceDirectives = new Dictionary<(string, string), MetadataReference>();
ReferenceManager\CommonReferenceManager.State.cs (2)
202this.ObservedMetadata = observedMetadata ?? new Dictionary<MetadataReference, MetadataOrDiagnostic>(); 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>>();
Microsoft.CodeAnalysis.CodeStyle (15)
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\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
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)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var 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 (1)
23var ruleNamesAndPriorities = new Dictionary<(Guid symbolSpecificationID, Guid namingStyleID, ReportDiagnostic enforcementLevel), (string title, int priority)>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
82var typeToNameSegments = new Dictionary<ITypeSymbol, ImmutableArray<string>>();
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\SyntaxGeneratorExtensions_Negate.cs (1)
21new Dictionary<BinaryOperatorKind, BinaryOperatorKind>
Microsoft.CodeAnalysis.CSharp (50)
Binder\Binder.QueryTranslationState.cs (1)
50public readonly Dictionary<RangeVariableSymbol, ArrayBuilder<string>> allRangeVariables = new Dictionary<RangeVariableSymbol, ArrayBuilder<string>>();
Binder\OpenTypeVisitor.cs (1)
45_allowedMap ??= new Dictionary<GenericNameSyntax, bool>();
Binder\PatternExplainer.cs (3)
248constraints = new Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>>(); 249evaluations = new Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>>(); 533var properties = new Dictionary<Symbol, string>();
Binder\RefSafetyAnalysis.cs (2)
199_placeholderScopes ??= new Dictionary<BoundValuePlaceholderBase, SafeContext>(); 464_localEscapeScopes ??= new Dictionary<LocalSymbol, (SafeContext RefEscapeScope, SafeContext ValEscapeScope)>();
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>();
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>();
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 (1)
1467Interlocked.CompareExchange(ref _fixedImplementationTypes, new Dictionary<FieldSymbol, NamedTypeSymbol>(), null);
Errors\ErrorFacts.cs (1)
98var map = new Dictionary<ErrorCode, string>()
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 (1)
98_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\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 (3)
64private Dictionary<LabelSymbol, List<StateMachineState>> _dispatches = new Dictionary<LabelSymbol, List<StateMachineState>>(); 234_dispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>(); 893oldDispatches ??= new Dictionary<LabelSymbol, List<StateMachineState>>();
Lowering\StateMachineRewriter\StateMachineRewriter.cs (2)
114initialParameters = new Dictionary<Symbol, CapturedSymbolReplacement>(); 142var proxiesBuilder = new Dictionary<Symbol, CapturedSymbolReplacement>();
Lowering\SynthesizedSubmissionFields.cs (1)
77_previousSubmissionFieldMap = new Dictionary<ImplicitNamedTypeSymbol, FieldSymbol>();
Symbols\ReferenceManager.cs (1)
850missingAssemblies = new Dictionary<AssemblyIdentity, MissingAssemblySymbol>();
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
50new Dictionary<AssemblySymbol, DestinationData>();
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1321var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
664var result = new Dictionary<ITypeParameterSymbol, ITypeSymbol>();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (9)
CommandLineTests.cs (9)
480var parser = new TestCommandLineParser(responseFiles: new Dictionary<string, string>() 594patterns: new Dictionary<string, string[]>() 598recursivePatterns: new Dictionary<string, string[]>() 2437var expectedEmbeddedMap = new Dictionary<string, string>(); 9873Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "false" }, { "Key", "value" } })); 9877Assert.True(args.ParseOptions.Features.SetEquals(new Dictionary<string, string> { { "Test", "true" } })); 13933ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, $"generatedSource.cs"), generatedSource } }, dir, true); 13974ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.Path, generatorPrefix, "generatedSource.cs"), generatedSource } }, dir, true); 14015ValidateEmbeddedSources_Portable(new Dictionary<string, string>
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (48)
CodeActions\AddUsing\AddUsingTests.cs (1)
2050var resolver = new TestMetadataReferenceResolver(assemblyNames: new Dictionary<string, PortableExecutableReference>()
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (19)
24var dictionary = new Dictionary<string, string>() 72var dictionary = new Dictionary<string, string>() 93var dictionary = new Dictionary<string, string>() 135var dictionary = new Dictionary<string, string>() 152var dictionary = new Dictionary<string, string>() 200var dictionary = new Dictionary<string, string>() 242var dictionary = new Dictionary<string, string>() 285var dictionary = new Dictionary<string, string>() 324var dictionary = new Dictionary<string, string>() 349var rule = new Dictionary<string, string>() 380var rule = new Dictionary<string, string>() 400var charpRule = new Dictionary<string, string>() 408var vbRule = new Dictionary<string, string>() 429var rule = new Dictionary<string, string>() 486var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>() 522var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>() 558var namingStylePreferences = OptionsTestHelpers.ParseNamingStylePreferences(new Dictionary<string, string>() 583var dictionary = new Dictionary<string, string>() 652var dictionary = new Dictionary<string, string>()
Formatting\CodeCleanupTests.cs (1)
799var map = new Dictionary<string, ImmutableArray<DiagnosticAnalyzer>>{
MoveToNamespace\MoveToNamespaceTests.cs (26)
106expectedSymbolChanges: new Dictionary<string, string>() 133expectedSymbolChanges: new Dictionary<string, string>() 160expectedSymbolChanges: new Dictionary<string, string>() 187expectedSymbolChanges: new Dictionary<string, string>() 215expectedSymbolChanges: new Dictionary<string, string>() 293expectedSymbolChanges: new Dictionary<string, string>() 361expectedSymbolChanges: new Dictionary<string, string>() 441expectedSymbolChanges: new Dictionary<string, string>() 467expectedSymbolChanges: new Dictionary<string, string>() 503expectedSymbolChanges: new Dictionary<string, string>() 541expectedSymbolChanges: new Dictionary<string, string>() 577expectedSymbolChanges: new Dictionary<string, string>() 615expectedSymbolChanges: new Dictionary<string, string>() 662expectedSymbolChanges: new Dictionary<string, string>() 709expectedSymbolChanges: new Dictionary<string, string>() 756expectedSymbolChanges: new Dictionary<string, string>() 803expectedSymbolChanges: new Dictionary<string, string>() 870expectedSymbolChanges: new Dictionary<string, string>() 927expectedSymbolChanges: new Dictionary<string, string>() 1048expectedSymbolChanges: new Dictionary<string, string>() 1105expectedSymbolChanges: new Dictionary<string, string>() 1162expectedSymbolChanges: new Dictionary<string, string>() 1259expectedSymbolChanges: new Dictionary<string, string>() 1307expectedSymbolChanges: new Dictionary<string, string>() 1487expectedSymbolChanges: new Dictionary<string, string>() 1531expectedSymbolChanges: 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 (2)
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
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)
809var 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)
433var 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)
1154var 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)
572IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 616IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 676IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 727IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 783IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 839IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 897IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 955IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1014IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1084IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1155IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1220IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1273IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1327IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1377IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1428var warnings = new Dictionary<string, ReportDiagnostic>(); 1484IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1501warnings = new Dictionary<string, ReportDiagnostic>(); 1551IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1601IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1657IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1704IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1741IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1774IDictionary<string, ReportDiagnostic> warnings = new Dictionary<string, ReportDiagnostic>(); 1823var warnings = new Dictionary<string, ReportDiagnostic>(); 2247var 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)
4022var tests = new Dictionary<string, string>
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
63public static readonly CSharpParseOptions Regular6WithV7SwitchBinder = Regular6.WithFeatures(new Dictionary<string, string>() { { "testV7SwitchBinder", "true" } });
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
664var 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)
603var bufferToChanges = new Dictionary<ITextBuffer, DiffResult>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
457var 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 (2)
EEMetadataReferenceResolver.cs (1)
18new Dictionary<AssemblyIdentity, (AssemblyIdentity? Identity, int Count)>();
MetadataUtilities.cs (1)
104modulesByName ??= new Dictionary<string, ModuleMetadata?>(); // Requires case-insensitive comparison?
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Resolver.cs (1)
31_requests = new Dictionary<Process, List<Request>>();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\MemberExpansion.cs (1)
83var favoritesMembersByName = new Dictionary<string, MemberAndDeclarationInfo>();
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (2)
47var previousDeclarationMap = includeInherited ? new Dictionary<string, DeclarationInfo>() : null; 575result ??= new Dictionary<string, DkmClrDebuggerBrowsableAttributeState>();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
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 (2)
47var previousDeclarationMap = includeInherited ? new Dictionary<string, DeclarationInfo>() : null; 575result ??= new Dictionary<string, DkmClrDebuggerBrowsableAttributeState>();
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\CodeMapper\CopilotCSharpMapCodeService.cs (1)
32var options = new Dictionary<string, object>();
Microsoft.CodeAnalysis.Features (32)
ChangeSignature\AbstractChangeSignatureService.cs (5)
254var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>(); 255var definitionToUse = new Dictionary<SyntaxNode, ISymbol>(); 376var updatedRoots = new Dictionary<DocumentId, SyntaxNode>(); 482var argumentToParameterMap = new Dictionary<IUnifiedArgumentSyntax, IParameterSymbol>(); 483var parameterToIndexMap = new Dictionary<IParameterSymbol, int>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
50var currentDiagnosticSpans = new Dictionary<Diagnostic, TextSpan>();
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
31new Dictionary<string, (string tagOpen, string textBeforeCaret, string textAfterCaret, string? tagClose)>()
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
339var result = new Dictionary<SymbolAndSelectionInfo, TSyntaxContext>();
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
382var parameterToPropMap = new Dictionary<string, ISymbol>();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
302var documentToEditorMap = new Dictionary<Document, SyntaxEditor>();
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1452var map = new Dictionary<SyntaxNode, SyntaxNode>();
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)>();
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>>();
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (1)
59var builtReferences = new Dictionary<string, ReferenceInfo?>();
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
154var canEdit = new Dictionary<DocumentId, bool>();
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
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)>();
Options\NamingStyleTestUtilities.cs (1)
50var guidMap = new Dictionary<Guid, int>();
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.LanguageServer (3)
BrokeredServices\Services\Descriptors.cs (1)
40public static ImmutableDictionary<ServiceMoniker, ServiceRegistration> RemoteServicesToRegister = new Dictionary<ServiceMoniker, ServiceRegistration>
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
109var fileCounts = new Dictionary<string, int>();
Testing\RunTestsHandler.cs (1)
58EnvironmentVariables = new()
Microsoft.CodeAnalysis.LanguageServer.Protocol (19)
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 (1)
262var commitCharacterReferences = new Dictionary<object, int>();
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
35private readonly Dictionary<string, bool> _categoryToLspChanged = new();
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
267var 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)
142var 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>>();
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)
38new WorkspaceProjectCreationInfo(LanguageNames.CSharp, "DisplayName", FilePath: null, new Dictionary<string, string>()),
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 (5)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (3)
89_assembliesLoadedFromLocationByFullPath = new Dictionary<string, AssemblyAndLocation>(); 90_assembliesLoadedFromLocation = new Dictionary<Assembly, LoadedAssembly>(); 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>>();
Microsoft.CodeAnalysis.Test.Utilities (18)
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>();
CompilationVerifier.cs (1)
110var map = new Dictionary<string, ICSharpCode.Decompiler.TypeSystem.IMethod>();
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>();
TestableFileSystem.cs (1)
72public static TestableFileSystem CreateForMap() => CreateForMap(new());
Microsoft.CodeAnalysis.UnitTests (13)
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 (16)
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 (1)
1122namespaces = New Dictionary(Of String, String)
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 (1)
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 (42)
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(); 107var result = new Dictionary<IAssemblySymbol, (Project? sourceProject, SymbolVisibility visibility)>(); 140var dictionary = s_solutionToDependentProjectMap.GetValue(solution, static _ => new());
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>();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
77private static readonly Dictionary<K, ValueSet> s_emptyDictionary = new();
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (2)
51private readonly Dictionary<string, (AssemblyName? AssemblyName, string RealAssemblyPath)?> _analyzerAssemblyInfoMap = new(); 61private readonly Dictionary<(string OriginalAnalyzerPath, CultureInfo CultureInfo), string?> _analyzerSatelliteAssemblyRealPaths = new();
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (3)
403var nodeReplacements = new Dictionary<SyntaxNode, SyntaxNode>(); 404var tokenReplacements = new Dictionary<SyntaxToken, SyntaxToken>(); 405var triviaReplacements = new Dictionary<SyntaxTrivia, SyntaxTrivia>();
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)
354var previousChangesMap = new Dictionary<SyntaxToken, int>(); 381var 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 (1)
23var ruleNamesAndPriorities = new Dictionary<(Guid symbolSpecificationID, Guid namingStyleID, ReportDiagnostic enforcementLevel), (string title, int priority)>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Builder.cs (1)
243var spilloverEdges = new Dictionary<int, int>();
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\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\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\Workspace.cs (1)
1450var outputAssemblyToProjectIdMap = new Dictionary<string, ProjectId>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
Build\ProjectBuildManager.cs (1)
27private static readonly ImmutableDictionary<string, string> s_defaultGlobalProperties = new Dictionary<string, string>()
MSBuild\ProjectFile\ProjectFile.cs (4)
306_documents = new Dictionary<string, MSB.Evaluation.ProjectItem>(); 371metadata = new Dictionary<string, string> 407var metadata = new Dictionary<string, string>(); 481var metadata = new Dictionary<string, string>
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
231_dictionary = new Dictionary<K, ValueSet>();
src\Compilers\Core\Portable\InternalUtilities\OrderedMultiDictionary.cs (1)
34_dictionary = new Dictionary<K, SetWithInsertionOrder<V>>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
BuildHostProcessManagerTests.cs (1)
127var 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 (9)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (1)
39_DictionaryOfParameters = new Dictionary<ExprCall, Expression>();
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\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 (3)
DataFrame.IO.cs (1)
394var names = new Dictionary<string, int>();
DataFrame.Join.cs (1)
255var shrinkedOccurences = new Dictionary<long, ICollection<long>>();
DataFrameColumn.cs (1)
280var ret = new Dictionary<long, ICollection<long>>();
Microsoft.Data.Analysis.Interactive.Tests (1)
DataFrameInteractiveTests.cs (1)
80data.Add(new Dictionary<string, object>
Microsoft.Data.Analysis.Tests (7)
DataFrameTests.cs (7)
1120df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: true); 1124ret = df.Append(new Dictionary<string, object> { { "Column1", (object)5 }, { "Column2", false } }, inPlace: false); 1129df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: true); 1136ret = df.Append(new Dictionary<string, object> { { "Column1", 5 } }, inPlace: false); 1144df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: true); 1150ret = df.Append(new Dictionary<string, object> { { "Column2", false } }, inPlace: false); 1172Assert.Throws<FormatException>(() => df.Append(new Dictionary<string, object> { { "Column2", "str" } }, inPlace: true));
Microsoft.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 (2)
PipelinesLogger.cs (2)
22private readonly Dictionary<Guid, ProjectInfo> _projectInfoMap = new Dictionary<Guid, ProjectInfo>(); 23private readonly Dictionary<Guid, TelemetryTaskInfo> _taskTelemetryInfoMap = new Dictionary<Guid, TelemetryTaskInfo>();
Microsoft.DotNet.AsmDiff (1)
MefHelpers.cs (1)
36Metadata = metadata ?? new Dictionary<string, object>();
Microsoft.DotNet.Build.Tasks.Feed (3)
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>()
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)
189var symbolPackages = new Dictionary<string, Asset>()
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 (30)
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 (3)
87SupportedFrameworks = new Dictionary<string, string>() 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 (1)
116private Dictionary<string, string> _packageFolders = new Dictionary<string, string>();
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.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(); 140Dictionary<string, BuildData> buildData = new(); 141Dictionary<string, WorkloadPackGroupPackage> packGroupPackages = new(); 166Dictionary<string, WorkloadManifestMsi> manifestMsisByPlatform = new(); 204Dictionary<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)
105new TaskItem("Microsoft.NET.Runtime", new Dictionary<string, string> { { Metadata.Replacement, "MSFT" } }) 147new TaskItem("microsoft-net-sdk-blazorwebassembly-aot", new Dictionary<string, string> {
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
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 (1)
src\NuGetVersionUpdater.cs (1)
74var packages = new Dictionary<string, PackageInfo>();
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 (5)
GetCompatiblePackageTargetFrameworks.cs (1)
17private static Dictionary<NuGetFramework, HashSet<NuGetFramework>> packageTfmMapping = new();
VerifyClosure.cs (2)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 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 (4)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
41private Dictionary<string, AssemblyInfo> assemblies = new Dictionary<string, AssemblyInfo>(); 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>();
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 (10)
src\BatchSignUtil.cs (1)
164Dictionary<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>(); 696var nestedParts = new Dictionary<string, ZipPart>();
src\SignToolTask.cs (1)
476var 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 (165)
SignToolTests.cs (165)
25private static readonly Dictionary<string, List<SignInfo>> s_fileExtensionSignInfo = new Dictionary<string, List<SignInfo>>() 47new Dictionary<string, List<SignInfo>>() 75new TaskItem(".js", new Dictionary<string, string> { 79new TaskItem(".jar", new Dictionary<string, string> { 83new TaskItem(".ps1", new Dictionary<string, string> { 87new TaskItem(".psd1", new Dictionary<string, string> { 91new TaskItem(".psm1", new Dictionary<string, string> { 95new TaskItem(".psc1", new Dictionary<string, string> { 99new TaskItem(".dylib", new Dictionary<string, string> { 103new TaskItem(".deb", new Dictionary<string, string> { 107new TaskItem(".dll", new Dictionary<string, string> { 111new TaskItem(".exe", new Dictionary<string, string> { 115new TaskItem(".zip", new Dictionary<string, string> { 119new TaskItem(".tgz", new Dictionary<string, string> { 123new TaskItem(".nupkg", new Dictionary<string, string> { 127new TaskItem(".vsix", new Dictionary<string, string> { 131new TaskItem(".js", new Dictionary<string, string> { 135new TaskItem(".jar", new Dictionary<string, string> { 139new TaskItem(".ps1", new Dictionary<string, string> { 143new TaskItem(".psd1", new Dictionary<string, string> { 147new TaskItem(".dll", new Dictionary<string, string> { 151new TaskItem(".nupkg", new Dictionary<string, string> { 155new TaskItem(".vsix", new Dictionary<string, string> { 388var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 390var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 447new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 454var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 460var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 489var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 495var fileSignInfo = new Dictionary<ExplicitCertificateKey, string> 521new TaskItem(GetResourcePath(fileToTest), new Dictionary<string, string> 528var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 534var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 536ValidateFileSignInfos(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 541ValidateGeneratedProject(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 561var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 567var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 599new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 606var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 612var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 646var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 652var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 669new TaskItem(GetResourcePath("CoreLibCrossARM.dll"), new Dictionary<string, string> 673new TaskItem(GetResourcePath("AspNetCoreCrossLib.dll"), new Dictionary<string, string> 680var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 687var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 692ValidateFileSignInfos(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 698ValidateGeneratedProject(itemsToSign, strongNameSignInfo, fileSignInfo, new Dictionary<string, List<SignInfo>>(), new[] 715new TaskItem(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string> 721var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 726var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 740new TaskItem(GetResourcePath("CustomTargetFrameworkAttribute.dll"), new Dictionary<string, string> 746var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 751var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 771var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() { }; 772var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() { }; 791new TaskItem(GetResourcePath("PackageWithWix.nupkg"), new Dictionary<string, string> 795new TaskItem(GetResourcePath("MsiBootstrapper.exe.wixpack.zip"), new Dictionary<string, string> 802var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 808var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 848new TaskItem(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string> 855var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 861var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 929new TaskItem(GetResourcePath("NestedContainer.1.0.0.nupkg"), new Dictionary<string, string> 936var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 943var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 1019var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1025var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1071var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1077var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1123var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1129var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1175var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1181var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1228var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1231var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1259var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1262var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1285new Dictionary<string, List<SignInfo>>(), 1286new Dictionary<ExplicitCertificateKey, string>(), 1302var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1305var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1327var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1333var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1369new TaskItem(GetResourcePath("MsiSetup.msi"), new Dictionary<string, string> 1373new TaskItem(GetResourcePath("MsiSetup.msi.wixpack.zip"), new Dictionary<string, string> 1380var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1386var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1446var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1452var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1476new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 1480new TaskItem(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string> 1487var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1493var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1543new TaskItem(GetResourcePath("TestSpaces.vsix"), new Dictionary<string, string> 1547new TaskItem(GetResourcePath("PackageWithRelationships.vsix"), new Dictionary<string, string> 1554var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1560var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1615var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1621var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1667new TaskItem(GetResourcePath("PackageWithRelationships.vsix", relativePath: "A"), new Dictionary<string, string> 1671new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 1675new TaskItem(GetResourcePath("PackageWithRelationships.vsix", relativePath: "B"), new Dictionary<string, string> 1682var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1688var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1742var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 1748var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1780var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1782var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 1795new TaskItem(CreateTestResource("dynalib.dylib"), new Dictionary<string, string> 1799new TaskItem(CreateTestResource("javascript.js"), new Dictionary<string, string> 1803new TaskItem(CreateTestResource("javatest.jar"), new Dictionary<string, string> 1807new TaskItem(CreateTestResource("power.ps1"), new Dictionary<string, string> 1811new TaskItem(CreateTestResource("powerc.psc1"), new Dictionary<string, string> 1815new TaskItem(CreateTestResource("powerd.psd1"), new Dictionary<string, string> 1819new TaskItem(CreateTestResource("powerm.psm1"), new Dictionary<string, string> 1826var strongNameSignInfo = new Dictionary<string, List<SignInfo>>(); 1829var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 1849fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1854fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string>{ 1868fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1873fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string>{ 1876fileExtensionSignInfo.Add(new TaskItem(".js", new Dictionary<string, string> 1890fileExtensionSignInfo.Add(new TaskItem(".tar.gz", new Dictionary<string, string> 1912new TaskItem(GetResourcePath("SameFiles1.zip"), new Dictionary<string, string> 1916new TaskItem(GetResourcePath("SameFiles2.zip"), new Dictionary<string, string> 1922ValidateFileSignInfos(itemsToSign, new Dictionary<string, List<SignInfo>>(), new Dictionary<ExplicitCertificateKey, string>(), s_fileExtensionSignInfoWithCollisionId, new[] 1948new TaskItem(GetResourcePath("ContainerOne.1.0.0.nupkg"), new Dictionary<string, string> 1953new TaskItem(GetResourcePath("SignedLibrary.dll"), new Dictionary<string, string> 1961new TaskItem("ArcadeStrongTest", new Dictionary<string, string> 1972new TaskItem("ProjectOne.dll", new Dictionary<string, string> 1979new TaskItem("SignedLibrary.dll", new Dictionary<string, string> 1991new TaskItem("DualSignCertificate", new Dictionary<string, string> 2066var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2071var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2086new TaskItem( GetResourcePath("PackageWithZip.nupkg"), new Dictionary<string, string> 2093var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2099var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2125var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2131var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>(); 2156new TaskItem(CreateTestResource("test.js"), new Dictionary<string, string> 2160new TaskItem(CreateTestResource("test.jar"), new Dictionary<string, string> 2164new TaskItem(CreateTestResource("test.ps1"), new Dictionary<string, string> 2168new TaskItem(CreateTestResource("test.psd1"), new Dictionary<string, string> 2172new TaskItem(CreateTestResource("test.psm1"), new Dictionary<string, string> 2176new TaskItem(CreateTestResource("test.psc1"), new Dictionary<string, string> 2180new TaskItem(CreateTestResource("test.dylib"), new Dictionary<string, string> 2184new TaskItem(GetResourcePath("EmptyPKT.dll"), new Dictionary<string, string> 2188new TaskItem(GetResourcePath("test.vsix"), new Dictionary<string, string> 2192new TaskItem(GetResourcePath("Simple.nupkg"), new Dictionary<string, string> 2198new TaskItem(GetResourcePath("Simple.symbols.nupkg"), new Dictionary<string, string> 2204var strongNameSignInfo = new Dictionary<string, List<SignInfo>>() 2210var fileSignInfo = new Dictionary<ExplicitCertificateKey, string>() 2284new Dictionary<string, List<SignInfo>>(), 2285new Dictionary<ExplicitCertificateKey, string>(), 2286new Dictionary<string, List<SignInfo>>(), 2320new Dictionary<string, List<SignInfo>>(), 2321new Dictionary<ExplicitCertificateKey, string>(), 2322new Dictionary<string, List<SignInfo>>() { { extension, new List<SignInfo> { SignInfo.Ignore } } }, 2336new TaskItem(GetResourcePath("SPCNoPKT.dll"), new Dictionary<string, string> 2344new Dictionary<string, List<SignInfo>>(), 2345new Dictionary<ExplicitCertificateKey, 2352new Dictionary<string, List<SignInfo>>(), 2353new Dictionary<ExplicitCertificateKey, string>(),
Microsoft.DotNet.SourceBuild.Tasks (1)
src\ReadNuGetPackageInfos.cs (1)
34new Dictionary<string, string>
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (3)
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 (12)
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 (1)
155Dictionary<string, HashSet<bool>> extensionToCertMapping = new Dictionary<string, HashSet<bool>>();
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 (16)
BuildManifest\ManifestModelTests.cs (16)
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> 582Attributes = new Dictionary<string, string> 596Attributes = new Dictionary<string, string> 605Attributes = new Dictionary<string, string> 620Attributes = new Dictionary<string, string> 629Attributes = new Dictionary<string, string> 644Attributes = new Dictionary<string, string> 653Attributes = new Dictionary<string, string> 668Attributes = new Dictionary<string, string> 688Attributes = 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 (111)
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 (2)
36 var dictionary = new Dictionary<string, int>() 70 var dictionary = new Dictionary<string, int>()
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.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.Caching.SqlServer.Tests (1)
SqlServerCacheWithDatabaseTest.cs (1)
36var memoryConfigurationData = new Dictionary<string, string>
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 (2)
ConfigurationBuilder.cs (1)
25public IDictionary<string, object> Properties { get; } = new Dictionary<string, object>();
ConfigurationManager.cs (1)
265private readonly Dictionary<string, object> _properties = new();
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.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.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.Tests (49)
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>
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.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.Tests (15)
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" } });
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\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.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 (4)
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>?>();
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> 199var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 217var destinationConfigs = new Dictionary<string, DestinationConfig> 240var destinationConfigs = new Dictionary<string, DestinationConfig> 299var destinationConfigs = new Dictionary<string, DestinationConfig>
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 (3)
ComInterfaceContext.cs (2)
32Dictionary<string, ComInterfaceInfo> nameToInterfaceInfoMap = new(); 38Dictionary<string, DiagnosticOr<ComInterfaceContext>> nameToContextCache = new();
ComMethodContext.cs (1)
164var allMethodsCache = new Dictionary<ComInterfaceContext, ImmutableArray<Builder>>();
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\CustomMarshallerAttributeFixer.cs (1)
32Dictionary<(INamedTypeSymbol marshallerType, ITypeSymbol managedType, bool isLinearCollectionMarshaller), HashSet<string>> uniqueMarshallersToFix = new();
Microsoft.Interop.SourceGeneration (2)
ManualTypeMarshallingHelper.cs (1)
163Dictionary<MarshalMode, CustomTypeMarshallerData> modes = new();
Marshalling\NoMarshallingInfoErrorResolver.cs (1)
41=> ImmutableDictionary.CreateRange(new Dictionary<ManagedTypeInfo, string>
Microsoft.JSInterop.Tests (2)
JSInProcessRuntimeTest.cs (1)
43new Dictionary<string, object>
JSRuntimeTest.cs (1)
275new Dictionary<string, object>
Microsoft.Maui (11)
Animations\Lerp.cs (1)
9 public static readonly Dictionary<Type, Lerp> Lerps = new Dictionary<Type, Lerp>()
Extensions\EnumerableExtensions.cs (1)
39 var result = new Dictionary<TKey, List<TSource>>();
Handlers\HybridWebView\HybridWebViewQueryStringHelper.cs (1)
32 var result = new Dictionary<string, string>();
Handlers\MenuFlyoutItem\MenuFlyoutItemHandler.iOS.cs (1)
11 internal static Dictionary<int, IMenuElement> menus = new Dictionary<int, IMenuElement>();
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (2)
15 private readonly Dictionary<Type, Type> _concreteTypeMapping = new(); 16 private readonly Dictionary<Type, Type> _interfaceTypeMapping = new();
Hosting\Internal\MauiServiceCollection.cs (1)
12 readonly Dictionary<Type, ServiceDescriptor> _descriptorDictionary = new Dictionary<Type, ServiceDescriptor>();
HotReload\HotReloadHelper.cs (1)
118 static Dictionary<IHotReloadableView, object[]> currentViews = new Dictionary<IHotReloadableView, object[]>();
Layouts\GridLayoutManager.cs (1)
83 readonly Dictionary<SpanKey, Span> _spans = new();
Platform\iOS\MauiSwipeView.cs (1)
51 _swipeItems = new Dictionary<ISwipeItem, object>();
VisualDiagnostics\VisualDiagnosticsOverlay.iOS.cs (1)
14 readonly Dictionary<IScrollView, IDisposable> _scrollViews = new();
Microsoft.Maui.Controls (44)
AnimationExtensions.cs (2)
60 s_animations = new Dictionary<AnimatableKey, Info>(); 61 s_kinetics = new Dictionary<AnimatableKey, int>();
BindableObject.cs (1)
41 internal Dictionary<TriggerBase, SetterSpecificity> _triggerSpecificity = new Dictionary<TriggerBase, SetterSpecificity>();
BindableProperty.cs (3)
43 internal static readonly Dictionary<Type, TypeConverter> KnownTypeConverters = new Dictionary<Type, TypeConverter> 51 internal static readonly Dictionary<Type, IValueConverter> KnownIValueConverters = new Dictionary<Type, IValueConverter> 58 internal static readonly Dictionary<Type, Type[]> SimpleConvertTypes = new Dictionary<Type, Type[]>
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (4)
805 Dictionary<object, Cell> _prototypicalCellByTypeOrDataTemplate = new Dictionary<object, Cell>(); 985 Dictionary<DataTemplate, int> _templateToId = new Dictionary<DataTemplate, int>(); 1006 Counts = new Dictionary<int, int>(); 1018 Counts = new Dictionary<int, int>();
Compatibility\Handlers\Shell\iOS\ShellItemRenderer.cs (1)
50 readonly Dictionary<UIViewController, IShellSectionRenderer> _sectionRenderers = new Dictionary<UIViewController, IShellSectionRenderer>();
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (2)
58 new Dictionary<Element, IShellPageRendererTracker>(); 63 new Dictionary<UIViewController, TaskCompletionSource<bool>>();
Compatibility\Handlers\Shell\iOS\ShellSectionRootRenderer.cs (2)
33 Dictionary<ShellContent, IPlatformViewHandler> _renderers = new Dictionary<ShellContent, IPlatformViewHandler>(); 267 Dictionary<ShellContent, Page> createdPages = new Dictionary<ShellContent, Page>();
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (4)
42 _cells = new Dictionary<Element, UIContainerCell>(); 63 _cells = new Dictionary<Element, UIContainerCell>(); 68 _cells = new Dictionary<Element, UIContainerCell>(); 100 _cells = new Dictionary<Element, UIContainerCell>();
Compatibility\Handlers\TableView\iOS\TableViewModelRenderer.cs (1)
13 readonly Dictionary<nint, Cell> _headerCells = new Dictionary<nint, Cell>();
DataTemplate.cs (2)
41 public IDictionary<BindableProperty, BindingBase> Bindings { get; } = new Dictionary<BindableProperty, BindingBase>(); 44 public IDictionary<BindableProperty, object> Values { get; } = new Dictionary<BindableProperty, object>();
DataTemplateSelector.cs (1)
10 Dictionary<Type, DataTemplate> _dataTemplates = new Dictionary<Type, DataTemplate>();
DependencyService.cs (1)
20 static readonly Dictionary<Type, DependencyData> DependencyImplementations = new Dictionary<Type, DependencyData>();
Element\Element.cs (1)
369 Dictionary<BindableProperty, (string, SetterSpecificity)> DynamicResources => _dynamicResources ?? (_dynamicResources = new Dictionary<BindableProperty, (string, SetterSpecificity)>());
Handlers\Items\iOS\ItemsViewController.cs (1)
46 Dictionary<object, TemplatedCell> _measurementCells = new Dictionary<object, TemplatedCell>();
Handlers\Items\iOS\ItemsViewLayout.cs (1)
24 readonly Dictionary<object, CGSize> _cellSizeCache = new();
Hosting\Effects\AppHostBuilderExtensions.cs (1)
72 internal Dictionary<Type, Func<PlatformEffect>> RegisteredEffects { get; } = new Dictionary<Type, Func<PlatformEffect>>();
Internals\NameScope.cs (1)
18 readonly Dictionary<object, string> _values = new Dictionary<object, string>();
Layout\AbsoluteLayout.cs (1)
12 readonly Dictionary<IView, AbsoluteLayoutInfo> _viewInfo = new();
Layout\FlexLayout.cs (1)
256 readonly Dictionary<IView, FlexInfo> _viewInfo = new();
Layout\Grid.cs (1)
12 readonly Dictionary<IView, GridInfo> _viewInfo = new();
LegacyLayouts\RelativeLayout.cs (1)
70 var solveTable = new Dictionary<View, bool>();
ListProxy.cs (1)
316 _items = new Dictionary<int, object>();
MessagingCenter.cs (1)
108 new Dictionary<Sender, List<Subscription>>();
Platform\GestureManager\GesturePlatformManager.iOS.cs (1)
23 readonly Dictionary<IGestureRecognizer, List<UIGestureRecognizer?>> _gestureRecognizers = new Dictionary<IGestureRecognizer, List<UIGestureRecognizer?>>();
PlatformConfigurationRegistry.cs (1)
12 readonly Dictionary<Type, object> _platformSpecifics = new Dictionary<Type, object>();
Registrar.cs (2)
45 readonly Dictionary<Type, Dictionary<Type, HandlerType>> _handlers = new Dictionary<Type, Dictionary<Type, HandlerType>>(); 64 visualRenderers = new Dictionary<Type, HandlerType>();
Shell\ShellNavigationQueryParameters.cs (1)
10 Dictionary<string, object> _internal = new Dictionary<string, object>();
StyleSheets\Style.cs (1)
18 Dictionary<KeyValuePair<string, string>, object> convertedValues = new Dictionary<KeyValuePair<string, string>, object>();
StyleSheets\StyleSheet.cs (1)
21 internal IDictionary<Selector, Style> Styles { get; set; } = new Dictionary<Selector, Style>();
TemplatedItemsList.cs (1)
1231 readonly Dictionary<TemplatedItemsList<TView, TItem>, string> _oldNames = new Dictionary<TemplatedItemsList<TView, TItem>, string>();
VisualElement\VisualElement.cs (1)
496 readonly Dictionary<Size, SizeRequest> _measureCache = new Dictionary<Size, SizeRequest>();
Microsoft.Maui.Controls.Build.Tasks (14)
ILContext.cs (4)
16 Values = new Dictionary<IValueNode, object>(); 17 Variables = new Dictionary<IElementNode, VariableDefinition>(); 18 Scopes = new Dictionary<INode, Tuple<VariableDefinition, IList<string>>>(); 19 TypeExtensions = new Dictionary<INode, TypeReference>();
SetPropertiesVisitor.cs (3)
799 var locs = new Dictionary<TypeReference, VariableDefinition>(); 895 var locs = new Dictionary<TypeReference, VariableDefinition>(); 1028 var locs = new Dictionary<TypeReference, VariableDefinition>();
XamlCache.cs (7)
14 readonly Dictionary<ModuleDefinition, IList<XmlnsDefinitionAttribute>> _xmlnsDefinitions = new(); 15 readonly Dictionary<TypeReference, TypeDefinition> _resolvedTypes = new(); 16 readonly Dictionary<(ModuleDefinition module, string fieldRefKey), FieldReference> _fieldReferenceCache = new(); 17 readonly Dictionary<(ModuleDefinition module, string typeKey), TypeReference> _typeReferenceCache = new(); 18 readonly Dictionary<(ModuleDefinition module, string methodRefKey), MethodReference> _methodReferenceCache = new(); 19 readonly Dictionary<(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName)), TypeDefinition> _typeDefinitionCache = new(); 20 readonly Dictionary<VariableDefinition, ICollection<string>> _resourceNamesInUse = new();
Microsoft.Maui.Controls.Compatibility (11)
iOS\CollectionView\ItemsViewController.cs (1)
28 Dictionary<object, TemplatedCell> _measurementCells = new Dictionary<object, TemplatedCell>();
iOS\CollectionView\ItemsViewLayout.cs (1)
25 Dictionary<object, CGSize> _cellSizeCache = new Dictionary<object, CGSize>();
iOS\EventTracker.cs (1)
33 readonly Dictionary<IGestureRecognizer, NativeGestureRecognizer> _gestureRecognizers = new Dictionary<IGestureRecognizer, NativeGestureRecognizer>();
iOS\RendererPool.cs (1)
15 new Dictionary<Type, Stack<IVisualElementRenderer>>();
iOS\Renderers\CarouselPageRenderer.cs (1)
67 _containerMap = new Dictionary<Page, UIView>();
iOS\Renderers\ListViewRenderer.cs (4)
828 Dictionary<object, Cell> _prototypicalCellByTypeOrDataTemplate = new Dictionary<object, Cell>(); 1011 Dictionary<DataTemplate, int> _templateToId = new Dictionary<DataTemplate, int>(); 1033 Counts = new Dictionary<int, int>(); 1045 Counts = new Dictionary<int, int>();
iOS\Renderers\SwipeViewRenderer.cs (1)
56 _swipeItems = new Dictionary<ISwipeItem, object>();
iOS\Renderers\TableViewModelRenderer.cs (1)
12 readonly Dictionary<nint, Cell> _headerCells = new Dictionary<nint, Cell>();
Microsoft.Maui.Controls.SourceGen (2)
CodeBehindGenerator.cs (1)
244 return new Dictionary<XmlType, string>();
src\Controls\src\Xaml\XamlNode.cs (1)
161 Properties = new Dictionary<XmlName, INode>();
Microsoft.Maui.Controls.Xaml (6)
HydrationContext.cs (2)
11 Values = new Dictionary<INode, object>(); 12 Types = new Dictionary<IElementNode, Type>();
NamescopingVisitor.cs (1)
8 readonly Dictionary<INode, NameScopeRef> _scopes = new Dictionary<INode, NameScopeRef>();
XamlLoader.cs (1)
259 static readonly Dictionary<Type, string> XamlResources = new Dictionary<Type, string>();
XamlNode.cs (1)
161 Properties = new Dictionary<XmlName, INode>();
XamlServiceProvider.cs (1)
14 readonly Dictionary<Type, object> services = new Dictionary<Type, object>();
Microsoft.Maui.Essentials (1)
FilePicker\FilePicker.shared.cs (1)
140 fileTypes = new Dictionary<DevicePlatform, IEnumerable<string>>();
Microsoft.Maui.Resizetizer (3)
DetectInvalidResourceOutputFilenamesTask.cs (1)
25 var tempInvalidItems = new Dictionary<ITaskItem, string>();
ResizetizeImages.cs (1)
132 var imagesPairs = new Dictionary<string, ResizeImageInfo>();
TizenSplashUpdater.cs (1)
19 static public Dictionary<(string Resolution, string Orientation), string> splashDpiMap = new Dictionary<(string, string), string>();
Microsoft.ML.AutoML (21)
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 (1)
85_parameterValues = new Dictionary<string, IParameterValue>();
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 (12)
CommandLine\CmdParser.cs (1)
468var map = new Dictionary<string, Argument>();
ComponentModel\ComponentCatalog.cs (5)
77_classesByKey = new Dictionary<LoadableClassInfo.Key, LoadableClassInfo>(); 79_signatures = new Dictionary<Type, bool>(); 82_entryPointMap = new Dictionary<string, EntryPointInfo>(); 83_componentMap = new Dictionary<string, ComponentInfo>(); 86_extensionsMap = new Dictionary<(Type AttributeType, string ContractName), Type>();
Data\Repository.cs (1)
469_entries = new Dictionary<string, ZipArchiveEntry>();
Data\RoleMappedSchema.cs (1)
219var map = new Dictionary<string, List<DataViewSchema.Column>>();
Data\ServerChannel.cs (1)
134_toPublish = new Dictionary<string, Delegate>();
Utilities\Tree.cs (1)
88_children = new Dictionary<TKey, Tree<TKey, TValue>>();
Utilities\Utils.cs (2)
161map = new Dictionary<TKey, TValue>(); 169map = new Dictionary<TKey, TValue>();
Microsoft.ML.Core.Tests (5)
UnitTests\ColumnTypes.cs (1)
23var dict = new Dictionary<DataViewType, string>();
UnitTests\TestEntryPoints.cs (4)
3350var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3351var inputMap = new Dictionary<ParameterBinding, VariableBinding>(); 3402var inputBindingMap = new Dictionary<string, List<ParameterBinding>>(); 3403var inputMap = new Dictionary<ParameterBinding, VariableBinding>();
Microsoft.ML.CpuMath.UnitTests (2)
UnitTests.cs (2)
100_disableAvxEnvironmentVariables = new Dictionary<string, string>() 105_disableAvxAndSseEnvironmentVariables = new Dictionary<string, string>()
Microsoft.ML.Data (58)
Commands\DataCommand.cs (2)
155Dictionary<string, double> averageMetric = new Dictionary<string, double>(); 196Dictionary<string, double> newAverageMetric = new Dictionary<string, double>();
Commands\TypeInfoCommand.cs (1)
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\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\ColumnSelecting.cs (1)
566var columnDict = new Dictionary<string, List<int>>();
Transforms\InvertHashUtils.cs (1)
182_slotToValueSet = new Dictionary<int, HashSet<Pair>>();
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 (10)
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>();
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)
23public IReadOnlyDictionary<string, object?> Attributes => new Dictionary<string, object?>()
Phi3\Phi3TokenizerHelper.cs (1)
40specialTokens: new Dictionary<string, int>
Microsoft.ML.GenAI.Samples (1)
Mistral\Mistral_7B_Instruct.cs (1)
135functionMap: new Dictionary<string, Func<string, Task<string>>>
Microsoft.ML.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)
262var inputTypePool = new Dictionary<string, DataViewType>(); 266var initializerTypePool = new Dictionary<string, DataViewType>(); 270var outputTypePool = new Dictionary<string, DataViewType>(); 272var casterPool = new Dictionary<string, Func<NamedOnnxValue, object>>(); 511new Dictionary<Type, InternalDataKind>
Microsoft.ML.OnnxTransformerTest (9)
OnnxTransformTests.cs (9)
843var inputDict0 = new Dictionary<int, float> { { 0, 94.17f }, { 1, 17.36f } }; 844var inputDict1 = new Dictionary<int, float> { { 0, 12.28f }, { 1, 75.12f } }; 853output.Output = new Dictionary<int, float>(); 898var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } }; 983var shapeDictionary = new Dictionary<string, int[]>() { 998shapeDictionary = new Dictionary<string, int[]>() { 1014shapeDictionary = new Dictionary<string, int[]>() { 1029shapeDictionary = new Dictionary<string, int[]>() { 1068var shapeDictionary = new Dictionary<string, int[]>() { { nameof(InputWithCustomShape.input), new int[] { 3, 3 } } };
Microsoft.ML.ResultProcessor (9)
ResultProcessor.cs (9)
62public static Dictionary<string, Dictionary<string, string>> MapDefaultSettingToLearner = new Dictionary<string, Dictionary<string, string>>(); 70SameHeaderValues = new Dictionary<string, object>(); 162return new Dictionary<string, string>(); 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.Sweeper (3)
Algorithms\KdoSweeper.cs (2)
356Dictionary<string, int> labelToIndex = new Dictionary<string, int>(); 399Dictionary<string, int> labelToIndex = new Dictionary<string, int>();
ISweeper.cs (1)
114_parameterValues = new Dictionary<string, IParameterValue>();
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 (9)
PolynomialUtils.cs (1)
285var hash = new Dictionary<Complex, FactorMultiplicity>();
RootCauseAnalyzer.cs (6)
202Dictionary<string, int> pointDistribution = new Dictionary<string, int>(); 251Dictionary<BestDimension, double> entroyGainRatioMap = new Dictionary<BestDimension, double>(); 293Dictionary<BestDimension, double> entropyRatioMap = new Dictionary<BestDimension, double>(); 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 (24)
Model\BPETokenizer.cs (3)
246_vocab = vocab ?? new Dictionary<StringSpanOrdinalKey, int>(); 267Merges = new(); 849private readonly Dictionary<char, string> _charToString = new Dictionary<char, string>();
Model\CodeGenTokenizer.cs (2)
1722internal static readonly Dictionary<string, int> CodeGenSpecialTokens = new() 1787var mergeRanks = new Dictionary<StringSpanOrdinalKeyPair, int>();
Model\EnglishRobertaTokenizer.cs (3)
239var vocab = new Dictionary<string, int>(); 1113_idToIndex = new Dictionary<int, int>(); 1115_stringSymbolToIndexMapping = new Dictionary<string, int>();
Model\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>(); 176var vocab = new Dictionary<string, int>(); 2253revMerge ??= new();
Model\TiktokenTokenizer.cs (6)
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);
Model\WordPieceTokenizer.cs (2)
99Dictionary<StringSpanOrdinalKey, int> vocab = new Dictionary<StringSpanOrdinalKey, int>(); 100Dictionary<int, string> vocabReverse = new Dictionary<int, string>();
Utils\LruCache.cs (1)
17private readonly Dictionary<StringSpanOrdinalKey, LinkedListNode<KeyValuePair<string, TValue>>> _cache = new();
Utils\TokenizerExtensions.cs (1)
37Dictionary<TValue, TKey> dictionary = new Dictionary<TValue, TKey>();
Microsoft.ML.Tokenizers.Tests (16)
BertTokenizerTests.cs (1)
26Dictionary<string, int> specialTokens = new() {
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> specialTokens = 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>
WordPieceTests.cs (1)
184Dictionary<string, int> specialTokens = new Dictionary<string, int>
Microsoft.ML.TorchSharp (10)
AutoFormerV2\Attention.cs (1)
73var attentionOffsets = new Dictionary<Tuple<int, int>, int>();
AutoFormerV2\ObjectDetectionMetrics.cs (2)
99Dictionary<string, List<Tuple<float, float>>> iouDic = new(); 100Dictionary<string, int> groundTruthBoxes = new();
NasBert\Models\NasBertEncoder.cs (1)
207new Dictionary<string, object> { { PositionalEmbedding.PositionKey, positions } });
NasBert\Modules\IncrementalState.cs (1)
51private static Dictionary<string, torch.Tensor> EmptyIncrementalState => new Dictionary<string, torch.Tensor>();
NasBert\Modules\MultiHeadAttention.cs (1)
316return GetIncrementalState(this, incrementalState, AttentionStateKey) ?? new Dictionary<string, torch.Tensor>();
NasBert\Modules\TransformerCell.cs (2)
65return (Operations[arch] as Layer)!.forward(x, new Dictionary<string, object> 130return Operation.forward(x, new Dictionary<string, object>
Roberta\QATrainer.cs (1)
443var mapping = new Dictionary<int, int>();
Utils\DefaultDictionary.cs (1)
27_dictionary = new Dictionary<TKey, TValue>();
Microsoft.ML.Transforms (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 (1)
WeakStringCacheInterner.cs (1)
126_internCallCountsByString = new Dictionary<string, int>();
Microsoft.VisualBasic.Core (2)
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 (13)
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
110var parameterNameOverlapMap = new Dictionary<string, List<ParameterViewModel>>();
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)
595var 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\MiscellaneousFilesWorkspace.cs (1)
51private readonly Dictionary<string, (ProjectId projectId, SourceTextContainer textContainer)> _monikersToProjectIdAndContainer = new Dictionary<string, (ProjectId, SourceTextContainer)>();
ProjectSystem\RuleSets\VisualStudioRuleSetManager.RuleSetFile.cs (1)
127var specificDiagnosticOptions = new Dictionary<string, ReportDiagnostic>();
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
474var 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 (1)
ProjectSystemShim\CSharpProjectShim.OptionsProcessor.cs (1)
70ruleSetSpecificDiagnosticOptions = new Dictionary<string, ReportDiagnostic>();
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 (8)
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>();
OutOfProcTaskHostNode.cs (1)
482Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties),
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
TaskHostConfiguration.cs (1)
208_globalParameters = globalParameters ?? new Dictionary<string, string>();
TerminalLogger\TerminalLogger.cs (1)
94private readonly Dictionary<ProjectContext, Project> _projects = new();
MSBuildTaskHost (10)
BinaryReaderExtensions.cs (1)
112data.ExtendedMetadata = new Dictionary<string, string?>();
BinaryTranslator.cs (1)
621additionalEntries = new();
BuildExceptionSerializationHelper.cs (1)
49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>();
Immutable\ImmutableDictionary.cs (1)
174_backing = new Dictionary<K, V>();
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>();
ReadOnlyEmptyDictionary.cs (2)
24private static readonly Dictionary<K, V> s_backing = new Dictionary<K, V>(); 171return new Dictionary<K, V>()[key];
TaskHostConfiguration.cs (1)
208_globalParameters = globalParameters ?? new Dictionary<string, string>();
OpenIdConnectSample (1)
Startup.cs (1)
253var pairs = new Dictionary<string, string>()
PresentationBuildTasks (17)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
182Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>(); 297Dictionary<string, ITaskItem[]> targetOutputs = new Dictionary<string, ITaskItem[]>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
17private static readonly Dictionary<string, bool> s_switchMap = new();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
704_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
4169Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
65_compatTable = new Dictionary<string,string>(); 66_compatTableReverse = new Dictionary<string,string>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
876_subsumingNamespaces = new Dictionary<string, object>(); 903_knownNamespaces = new Dictionary<string, object>(); 1805_ignorables = new Dictionary<string, object>(); 1814_processContents = new Dictionary<string, ProcessContentSet>(); 1829_preserveElements = new Dictionary<string, PreserveItemSet>(); 1844_preserveAttributes = new Dictionary<string, PreserveItemSet>(); 2011_names = new Dictionary<string, string>(); 2025private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2027private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2028private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (35)
MS\Internal\DeferredElementTreeState.cs (2)
123private Dictionary<DependencyObject, DependencyObject> _oldCoreParents = new Dictionary<DependencyObject, DependencyObject>(); 124private Dictionary<DependencyObject, DependencyObject> _oldLogicalParents = new Dictionary<DependencyObject, DependencyObject>();
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
596_cmap = new Dictionary<int, ushort>();
MS\Internal\FontFace\PhysicalFontFamily.cs (1)
42Dictionary<XmlLanguage, string> convertedDictionary = new Dictionary<XmlLanguage, string>();
MS\Internal\Ink\Renderer.cs (2)
187_visuals = new Dictionary<Stroke, StrokeVisual>(); 658_highlighters = new Dictionary<Color, HighlighterContainerVisual>();
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
255Dictionary<Edge, EdgeInfo> adjInformation = new Dictionary<Edge, EdgeInfo>();
MS\Internal\Shaping\TypefaceMap.cs (1)
39private IDictionary<CultureInfo, IntMap> _intMaps = new Dictionary<CultureInfo, IntMap>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
17private static readonly Dictionary<string, bool> s_switchMap = new();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
165_assemblies = new Dictionary<object, AssemblyName>();
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
49_nodeLookup = new Dictionary<K, Node>();
System\Windows\BinaryFormat\StringRecordsCollection.cs (2)
14private readonly Dictionary<string, int> _strings = new(); 15private readonly Dictionary<int, MemberReference> _memberReferences = new();
System\Windows\Ink\StrokeCollection2.cs (1)
369Dictionary<Color, List<Stroke>> highLighters = new Dictionary<Color, List<Stroke>>();
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
173private readonly Dictionary<DpiScale2, Matrix> _transformToDeviceMatrices = new Dictionary<DpiScale2, Matrix>();
System\Windows\Input\Stylus\Common\StylusPointPropertyId.cs (3)
196private static Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>> _hidToGuidMap = new Dictionary<HidUsagePage, Dictionary<HidUsage, Guid>>() 199new Dictionary<HidUsage, Guid>() 207new Dictionary<HidUsage, Guid>()
System\Windows\Input\Stylus\Common\StylusPointPropertyUnit.cs (1)
64private static Dictionary<uint, StylusPointPropertyUnit> _pointerUnitMap = new Dictionary<uint, StylusPointPropertyUnit>()
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
113} = new Dictionary<PresentationSource, PointerStylusPlugInManager>();
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
28private static Dictionary<byte, short> _hidExponentMap = new Dictionary<byte, short>()
System\Windows\Input\Stylus\Pointer\PointerTabletDevice.cs (1)
30private Dictionary<uint, PointerStylusDevice> _stylusDeviceMap = new Dictionary<uint, PointerStylusDevice>();
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (2)
22private Dictionary<IntPtr, PointerTabletDevice> _tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>(); 78_tabletDeviceMap = new Dictionary<IntPtr, PointerTabletDevice>();
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
3714Dictionary<StylusDeviceBase, RawStylusInputReport> _lastMovesQueued = new Dictionary<StylusDeviceBase, RawStylusInputReport>(); 3718Dictionary<StylusDeviceBase, RawStylusInputReport> _coalescedMoves = new Dictionary<StylusDeviceBase, RawStylusInputReport>();
System\Windows\Media\FontEmbeddingManager.cs (1)
59glyphSet = _collectedGlyphTypefaces[glyphTypeface] = new Dictionary<ushort, bool>();
System\Windows\Media\HostVisual.cs (1)
558private 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\textformatting\TextFormatterContext.cs (1)
405Dictionary<char,bool> dict = new Dictionary<char,bool>();
System\Windows\Media\UniqueEventHelper.cs (1)
100_delegates = new Dictionary<TEventHandler, int>() { { handler, 1 } };
System\Windows\Media\Visual.cs (2)
826channelsToCyclicBrushMap = new Dictionary<DUCE.Channel, int>(); 857cyclicBrushToChannelsMap = new Dictionary<ICyclicBrush, int>();
System\Windows\Media3D\Visual3DCollection.cs (1)
545Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>();
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
49new Dictionary<int, string>(),
PresentationFramework (85)
MS\Internal\Annotations\AnnotationMap.cs (1)
106private Dictionary<Guid, List<IAttachedAnnotation>> _annotationIdToAttachedAnnotations = new Dictionary<Guid, List<IAttachedAnnotation>>();
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
554private static readonly Dictionary<Type, int> s_ZLevel = new(); 559private static readonly Dictionary<int, ZRange> s_ZRanges = new();
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
290private Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>> _attachedAnnotations = new Dictionary<IAttachedAnnotation, IList<IAnnotationComponent>>();
MS\Internal\Annotations\ObservableDictionary.cs (1)
41_nameValues = new Dictionary<string, string>();
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
109Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 170Dictionary<Guid, Annotation> annotations = new Dictionary<Guid, Annotation>(); 283private Dictionary<Guid, CachedAnnotation> _currentAnnotations = new Dictionary<Guid, CachedAnnotation>();
MS\Internal\Annotations\XmlElementCollection.cs (1)
40_xmlDocsRefCounts = new Dictionary<XmlDocument, int>();
MS\Internal\AppModel\ResourceContainer.cs (1)
387private static Dictionary<string, ResourceManagerWrapper> _registeredResourceManagers = new Dictionary<string, ResourceManagerWrapper>();
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
68s_xmlTokeFullNames = new Dictionary<XmlToken, string>(); 85_cachedXmlElements = new Dictionary<XmlToken, object>();
MS\Internal\Data\AccessorTable.cs (1)
168private readonly Dictionary<AccessorTableKey, AccessorInfo> _table = new Dictionary<AccessorTableKey, AccessorInfo>();
MS\Internal\Data\CommitManager.cs (1)
154: base()
MS\Internal\Data\DataBindEngine.cs (1)
700private Dictionary<ValueConverterTableKey, IValueConverter> _valueConverterTable = new Dictionary<ValueConverterTableKey, IValueConverter>();
MS\Internal\Ink\ClipboardProcessor.cs (2)
58_preferredClipboardData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>(); 264Dictionary<InkCanvasClipboardFormat, ClipboardData> preferredData = new Dictionary<InkCanvasClipboardFormat, ClipboardData>();
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
103static Dictionary<string, DllModule> _cache = new System.Collections.Generic.Dictionary<string, DllModule>();
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (4)
12private static readonly Dictionary<Type, Type> CustomTypeToHelperTypeMappings = new Dictionary<Type, Type>(); 13private static readonly Dictionary<Type, Type> CustomAbiTypeToTypeMappings = new Dictionary<Type, Type>(); 14private static readonly Dictionary<string, Type> CustomAbiTypeNameToTypeMappings = new Dictionary<string, Type>(); 15private static readonly Dictionary<Type, string> CustomTypeToAbiTypeNameMappings = new Dictionary<Type, string>();
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
17private static readonly Dictionary<string, bool> s_switchMap = new();
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
111Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> newChildren = new Dictionary<DateTimeCalendarModePair,DateTimeAutomationPeer>(); 669private Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer> _dataChildren = new Dictionary<DateTimeCalendarModePair, DateTimeAutomationPeer>(); 670private Dictionary<DateTimeCalendarModePair, WeakReference> _weakRefElementProxyStorage = new Dictionary<DateTimeCalendarModePair, WeakReference>();
System\Windows\Controls\DataGrid.cs (1)
8674= new Dictionary<DataGridColumn, CellAutomationValueHolder>(); // Holds the content of edited cells. Required for raising Automation events.
System\Windows\Controls\DataGridColumnCollection.cs (2)
472Dictionary<int, int> assignedDisplayIndexMap = new Dictionary<int, int>(); // <DisplayIndex, ColumnIndex> 1469_originalWidthsForResize = new Dictionary<DataGridColumn, DataGridLength>();
System\Windows\Controls\DataGridHelper.cs (1)
437propertyTransferEnabledForObject = new Dictionary<DependencyProperty, bool>();
System\Windows\Controls\DataGridItemAttachedStorage.cs (2)
58_itemStorageMap = new Dictionary<object, Dictionary<DependencyProperty, object>>(); 69map = new Dictionary<DependencyProperty, object>();
System\Windows\Data\BindingGroup.cs (1)
1560Dictionary<WeakReference, List<ValidationError>> _notifyDataErrors = new Dictionary<WeakReference, List<ValidationError>>();
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (2)
207_dictionariesFromUri = new Dictionary<Uri, List<WeakReference<ResourceDictionary>>>(); 435_resultCache = new Dictionary<WeakReferenceKey<StaticResourceExtension>, WeakReference<ResourceDictionary>>();
System\Windows\Documents\DocumentSequence.cs (1)
667_asyncOps = new Dictionary<Object,GetPageAsyncRequest>();
System\Windows\Documents\FixedDocument.cs (2)
828_highlights = new Dictionary<FixedPage, ArrayList>(); 829_asyncOps = new Dictionary<Object, GetPageAsyncRequest>();
System\Windows\Documents\FixedDSBuilder.cs (1)
40_nameHashTable = new Dictionary<String, NameHashFixedNode>();
System\Windows\Documents\FixedTextView.cs (1)
242Dictionary<FixedPage, ArrayList> highlights = new Dictionary<FixedPage,ArrayList>();
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
643private static readonly Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
39new Dictionary<string, SpellCheckerCreationHelper>();
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (1)
53private static Dictionary<bool, List<Type>> SuppressedExceptions = new Dictionary<bool, List<Type>>
System\Windows\Documents\Speller.cs (1)
423_uriMap = new Dictionary<Uri, DictionaryInfo>();
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (3)
86private static readonly Dictionary<Actions, long> _timeLimits100Ns = new Dictionary<Actions, long> 154CumulativeCallTime100Ns = new Dictionary<Actions, long>(), 155NumCallsMeasured = new Dictionary<Actions, long>()
System\Windows\Documents\WinRTSpellerInterop.cs (2)
52_spellCheckers = new Dictionary<CultureInfo, Tuple<WordsSegmenter, SpellChecker>>(); 53_customDictionaryFiles = new Dictionary<string, List<string>>();
System\Windows\FrameworkTemplate.cs (1)
1524private Dictionary<int, Type> _childTypeFromChildIndex = new Dictionary<int, Type>();
System\Windows\Markup\Baml2006\Baml2006Reader.cs (3)
33private Dictionary<int, TypeConverter> _typeConverterMap = new Dictionary<int, TypeConverter>(); 34private Dictionary<Type, TypeConverter> _enumTypeConverterMap = new Dictionary<Type, TypeConverter>(); 2743_freezeCache = new Dictionary<string, Freezable>();
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
45_namespaces = new Dictionary<string, string>();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
657private readonly Dictionary<string, short[]> _bamlXmlnsMappings = new Dictionary<string, short[]>();
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
322_constructors = new Dictionary<int, Baml6ConstructorInfo>();
System\Windows\Markup\Baml2006\WpfSharedXamlSchemaContext.cs (1)
60private Dictionary<Type, XamlType> _masterTypeTable = new Dictionary<Type, XamlType>();
System\Windows\Markup\BamlReader.cs (1)
176_reverseXmlnsTable = new Dictionary<String, List<String>>();
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
129_dictionary = new Dictionary<BamlLocalizableResourceKey, BamlLocalizableResource>();
System\Windows\Markup\ParserContext.cs (2)
704_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>(); 791_freezeCache = new Dictionary<string, Freezable>();
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
86constructorArguments = new Dictionary<string, string>(); 689_keyTypeMap = new Dictionary<Type, Type>();
System\Windows\Markup\Primitives\MarkupWriter.cs (6)
488Dictionary<string, string> writtenAttributes = new Dictionary<string, string>(); 1388_uriToPrefix = new Dictionary<string, string>(); 1390_prefixToUri = new Dictionary<string, string>(); 1548private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>(); 1549private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>(); 1562namespaceToUri = new Dictionary<string, string>();
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
39static Dictionary<Type, Type> initializedTypes = new Dictionary<Type, Type>();
System\Windows\Markup\XamlTypeMapper.cs (2)
319Dictionary<string, string> newDict = new Dictionary<string, string>(); 4169Dictionary<string, string> _piReverseTable = new Dictionary<string, string>();
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (3)
39_nsDefinitions = new Dictionary<string, FrugalObjectList<string>>(); 202_piNamespaces = new Dictionary<string, string>(); 312_allowedInternalTypes = new Dictionary<Type, XamlType>();
System\Windows\Markup\XmlnsCache.cs (2)
134_compatTable = new Dictionary<string, string>(); 135_compatTableReverse = new Dictionary<string, string>();
System\Windows\Shell\JumpList.cs (1)
259private static readonly Dictionary<Application, JumpList> s_applicationMap = new Dictionary<Application, JumpList>();
System\Windows\Standard\MessageWindow.cs (1)
24private static readonly Dictionary<IntPtr, MessageWindow> s_windowLookup = new Dictionary<IntPtr, MessageWindow>();
System\Windows\SystemResources.cs (3)
1042_hwndNotify = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapper>(); 1043_hwndNotifyHook = new Dictionary<DpiUtil.HwndDpiInfo, HwndWrapperHook>(); 2053private readonly Dictionary<object, WeakReference<DeferredResourceReference>> _entries = new();
System\Windows\TemplateContent.cs (1)
1538_namedTypes = new Dictionary<string, XamlType>();
System\Windows\VisualStateManager.cs (2)
668Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>(); 677Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>();
PresentationUI (8)
MS\Internal\Documents\Application\TransactionalPackage.cs (1)
577new Dictionary<Uri, WriteableOnDemandPackagePart>();
MS\Internal\Documents\DigitalSignatureProvider.cs (2)
335new Dictionary<X509Certificate2, CertificatePriorityStatus>(); 391new Dictionary<Guid, XpsSignatureDefinition>();
MS\Internal\Documents\DocumentSignatureManager.cs (2)
45_digSigSigResources = new Dictionary<SignatureResources, DigitalSignature>(); 216new Dictionary<X509Certificate2, CertificatePriorityStatus>();
MS\Internal\Documents\RightsManagementManager.cs (1)
50_userMap = new Dictionary<string, RightsManagementUser>();
MS\Internal\Documents\RightsManagementProvider.cs (2)
503new Dictionary<RightsManagementUser, IList<ContentGrant>>(); 683new Dictionary<RightsManagementUser, RightsManagementLicense>();
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
15private readonly Dictionary<string, TestFileInfo> _content = new Dictionary<string, TestFileInfo>()
ReachFramework (71)
packaging\XpsDigitalSignature.cs (5)
66Dictionary<Uri, Uri> dependentList = new Dictionary<Uri,Uri>(); 316Dictionary<Uri, Uri> hashTable = new Dictionary<Uri, Uri>(); 365Dictionary<Uri, Dictionary<string, int>> uriHashTable = new Dictionary<Uri, Dictionary<string, int>>(); 381relHash = new Dictionary<string, int>(); 422_optionalSignedTypes = new Dictionary<string, string>();
Packaging\XpsDocument.cs (1)
854Dictionary<Uri,Uri> dependentList = new Dictionary<Uri,Uri> ();
Packaging\XpsFixedPageReaderWriter.cs (4)
471_colorContextCache = new Dictionary<Uri, XpsColorContext>(); 472_resourceDictionaryCache = new Dictionary<Uri, XpsResourceDictionary>(); 473_imageCache = new Dictionary<Uri, XpsImage>(); 474_resourceCache = new Dictionary<Uri, XpsResource>();
Packaging\XpsManager.cs (1)
172_packageCache = new Dictionary<Uri,int>();
Packaging\XpsResourcePolicy.cs (1)
311Dictionary<Type, object> _objDict = new Dictionary<Type, object>();
PrintConfig\PrintSchemaShim.cs (3)
682private static IDictionary<short, PaperSourceOption> paperSourceOptions = new Dictionary<short, PaperSourceOption>() { 917private static IDictionary<uint, MediaTypeOption> mediaTypeOptions = new Dictionary<uint, MediaTypeOption>() { 1036private static IDictionary<short, OutputQualityOption> outputQualityOptions = new Dictionary<short, OutputQualityOption>() {
PrintConfig\PrtTicket_Public_Simple.cs (2)
251_setterCache = new Dictionary<CapabilityName, object>(); 275_setterCache = new Dictionary<CapabilityName, object>();
Serialization\Manager\ReachDocumentPageSerializer.cs (4)
46((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 51((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 70((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 75((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (2)
52((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 138((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializer.cs (6)
62((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 64((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 69((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 99((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 101((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 106((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (6)
91((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 93((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 98((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 128((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 130((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 135((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializer.cs (6)
70((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 75((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 80((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>(); 110((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 115((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 120((XpsSerializationManager)SerializationManager).ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachFixedPageSerializerAsync.cs (4)
107((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 112((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 142((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 147((XpsSerializationManagerAsync)SerializationManager).ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializer.cs (3)
43((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 45((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>(); 50((XpsSerializationManager)SerializationManager).ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\ReachIDocumentPaginatorSerializerAsync.cs (2)
80((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 82((XpsSerializationManager)SerializationManager).ResourcePolicy.ImageUriHashTable = new Dictionary<int,Uri>();
Serialization\Manager\ReachSerializationUtils.cs (5)
468_serializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 470_serializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 475_serializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>(); 555_serializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 559_serializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPageSerializer.cs (2)
69_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 74_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMDocumentPaginatorSerializer.cs (3)
52_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 54_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 59_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedDocumentSerializer.cs (3)
69_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 71_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 76_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
78_xpsOMSerializationManager.ResourcePolicy.CurrentPageImageTable = new Dictionary<int, Uri>(); 83_xpsOMSerializationManager.ResourcePolicy.CurrentPageColorContextTable = new Dictionary<int, Uri>(); 88_xpsOMSerializationManager.ResourcePolicy.CurrentPageResourceDictionaryTable = new Dictionary<int, Uri>();
Serialization\Manager\XpsOMHierarchySimulator.cs (3)
76_xpsOMSerializationManager.ResourcePolicy.ImageCrcTable = new Dictionary<UInt32, Uri>(); 78_xpsOMSerializationManager.ResourcePolicy.ImageUriHashTable = new Dictionary<int, Uri>(); 83_xpsOMSerializationManager.ResourcePolicy.ColorContextTable = new Dictionary<int, Uri>();
Serialization\TreeWalkProgress.cs (1)
44private IDictionary<ICyclicBrush, EmptyStruct> _cyclicBrushes = new Dictionary<ICyclicBrush, EmptyStruct>();
Serialization\VisualTreeFlattener.cs (1)
500_nameList = new Dictionary<String, int>();
Roslyn.Test.PdbUtilities (1)
Reader\Token2SourceLineExporter.cs (1)
1195var 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)
555var map = new Dictionary<Checksum, object>(); 596var map = new Dictionary<Checksum, object>(); 638var map = new Dictionary<Checksum, object>(); 671var map = new Dictionary<Checksum, object>(); 713var map = new Dictionary<Checksum, object>(); 753var map = new Dictionary<Checksum, object>(); 791var map = new Dictionary<Checksum, object>(); 824var map = new Dictionary<Checksum, object>(); 879var map = new Dictionary<Checksum, object>(); 948var map = new Dictionary<Checksum, object>(); 1283var 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)
112schemas.MapGet("/dictionary-of-ints", () => new Dictionary<string, int> { { "one", 1 }, { "two", 2 } }); 113schemas.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)
600_headers = new Dictionary<string, string>();
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 (1)
SwaggathererApplication.cs (1)
82var routesByPrecedence = new Dictionary<decimal, List<RouteEntry>>();
System.CodeDom (1)
System\CodeDom\Compiler\CompilerInfo.cs (1)
12internal readonly IDictionary<string, string> _providerOptions = new Dictionary<string, string>();
System.ComponentModel.Annotations (3)
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 (1)
97_items = items != null ? new Dictionary<object, object?>(items) : new Dictionary<object, object?>();
System.ComponentModel.Composition (20)
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 (3)
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\MetadataViewGenerator.cs (1)
69private static readonly Dictionary<Type, MetadataViewFactory> _metadataViewFactories = new Dictionary<Type, MetadataViewFactory>();
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (3)
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>();
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
31return _castSingleValueCache ??= new Dictionary<Type, Func<Export, object>?>();
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 (5)
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\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.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 (3)
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 (1)
13private volatile Dictionary<CompositionContract, ExportDescriptor[]> _partDefinitions = new Dictionary<CompositionContract, ExportDescriptor[]>();
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
15private readonly Dictionary<CompositionContract, UpdateResult> _updateResults = new Dictionary<CompositionContract, UpdateResult>();
System.Composition.Runtime (1)
System\Composition\CompositionContext.cs (1)
181new Dictionary<string, object> { { ImportManyImportMetadataConstraintName, true } });
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 (1)
System\Configuration\ConfigurationElement.cs (1)
793s_perTypeValidators ??= new Dictionary<Type, ConfigurationValidatorBase>();
System.Data.Common (5)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
434var parsetable = new Dictionary<string, string>();
System\Data\Common\DbConnectionOptions.cs (1)
39_parsetable = new Dictionary<string, string?>();
System\Data\DataColumnCollection.cs (1)
41_columnFromName = new Dictionary<string, DataColumn?>();
System\Data\DataView.cs (1)
911_findIndexes ??= new Dictionary<string, Index>();
System\Data\XMLSchema.cs (1)
690_tableDictionary = new Dictionary<DataTable, List<DataTable>>();
System.Data.Odbc (3)
Common\System\Data\Common\DbConnectionOptions.cs (1)
47_parsetable = new Dictionary<string, string?>();
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 (1)
31_connectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>();
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (1)
1139Interlocked.CompareExchange(ref _customProperties, new Dictionary<string, object>(), null);
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 (2)
System\Diagnostics\ProcessWaitState.Unix.cs (2)
87new Dictionary<int, ProcessWaitState>(); 93new Dictionary<int, ProcessWaitState>();
System.Drawing.Common.Tests (1)
System\Drawing\Printing\MarginsConverterTests.cs (1)
49IDictionary values = new Dictionary<string, int>
System.Formats.Nrbf (1)
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 (11)
System\IO\Packaging\ContentType.cs (2)
147(_parameterDictionary ??= new Dictionary<string, string>()).GetEnumerator(); 338(_parameterDictionary ??= new Dictionary<string, string>()).Add(
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.Pipes (1)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
239private static readonly Dictionary<string, SharedServer> s_servers = new Dictionary<string, SharedServer>();
System.Linq.Expressions (25)
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 (2)
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 (2)
64internal readonly Dictionary<ParameterExpression, VariableStorageKind> Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(); 94private readonly Dictionary<ParameterExpression, Storage> _locals = new Dictionary<ParameterExpression, Storage>();
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
72curTypeInfo.TypeChain ??= new Dictionary<Type, TypeInfo>();
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.Queryable (2)
System\Linq\EnumerableRewriter.cs (2)
152_equivalentTypeCache ??= new Dictionary<Type, Type> 422_targetCache = new Dictionary<LabelTarget, LabelTarget>();
System.Net.Http (7)
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\HttpRequestOptions.cs (1)
17private Dictionary<string, object?> Options { get; } = new Dictionary<string, object?>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
822altSvcBlocklist = 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 (5)
System\Net\Managed\HttpEndPointListener.cs (1)
72_prefixes = new Dictionary<ListenerPrefix, HttpListener>();
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 (7)
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 (2)
System\Net\NetworkInformation\NetworkAddressChange.cs (2)
14new Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>(); 18new Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>();
System.Net.Primitives (2)
System\Net\CredentialCache.cs (2)
44_cache ??= new Dictionary<CredentialCacheKey, NetworkCredential>(); 70_cacheForHosts ??= new Dictionary<CredentialHostKey, NetworkCredential>();
System.Net.Security (1)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (1)
161_sslSessions = new Dictionary<string, IntPtr>();
System.Private.CoreLib (44)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
25private static readonly Dictionary<IntPtr, Delegate> s_delegates = new Dictionary<IntPtr, Delegate>();
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
64Interlocked.CompareExchange(ref s_dataStore, new Dictionary<string, object?>(), null); 135Interlocked.CompareExchange(ref s_switches, new Dictionary<string, bool>(), null);
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\EventSource.cs (12)
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>(); 5553mapsTab ??= new Dictionary<string, Type>(); 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)
961private static readonly Dictionary<string, IntPtr> s_sortNameToSortHandleCache = new Dictionary<string, IntPtr>();
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
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\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\ResourceSet.cs (1)
30_table = new Dictionary<object, object?>();
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\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\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)
669nameToSlotMap = 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\System\GC.CoreCLR.cs (1)
912Configurations = new Dictionary<string, object>()
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
71_typeBuilderDict = new Dictionary<string, Type>();
src\System\RuntimeType.CoreCLR.cs (2)
1129new Dictionary<string, RuntimeEventInfo>(); 1234new Dictionary<string, List<RuntimePropertyInfo>>();
System.Private.DataContractSerialization (33)
System\Runtime\Serialization\ClassDataContract.cs (3)
804Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>(); 1222_knownDataContracts ??= new DataContractDictionary(); 1363boundContracts ??= new Dictionary<DataContract, DataContract>();
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\JsonDataContract.cs (2)
291_knownDataContracts ??= new DataContractDictionary(); 317private static readonly Dictionary<DataContract, JsonReadWriteDelegates> s_jsonDelegates = new Dictionary<DataContract, JsonReadWriteDelegates>();
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 (1)
27_lookup = new Dictionary<string, XmlDictionaryString>();
System.Private.Xml (73)
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\Schema\ContentValidator.cs (3)
50_names = new Dictionary<XmlQualifiedName, int>(); 117_wildcards ??= new Dictionary<string, int>(); 1445Dictionary<BitSet, int> stateTable = new();
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\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>(); 1535_locals = new Dictionary<string, LocalBuilder>();
System\Xml\Serialization\Compilation.cs (4)
442var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 513var serializers = new Dictionary<string, string>(); 693private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 728: new Dictionary<TempAssemblyCacheKey, TempAssembly>();
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)
1132replaceList ??= new Dictionary<string, MemberInfo>();
System\Xml\Serialization\XmlAttributeOverrides.cs (2)
19private readonly Dictionary<Type, Dictionary<string, XmlAttributes?>> _types = new Dictionary<Type, Dictionary<string, XmlAttributes?>>(); 37members = new Dictionary<string, XmlAttributes?>();
System\Xml\Serialization\XmlSerializationILGen.cs (4)
19private readonly Dictionary<TypeMapping, string> _methodNames = new Dictionary<TypeMapping, string>(); 21private readonly Dictionary<string, MethodBuilderInfo> _methodBuilders = new Dictionary<string, MethodBuilderInfo>(); 23internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>(); 25internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>();
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
23private readonly Dictionary<string, string> _idNames = new Dictionary<string, string>(); 25private readonly Dictionary<string, FieldBuilder> _idNameFields = new Dictionary<string, FieldBuilder>(); 29internal Dictionary<string, EnumMapping> Enums => _enums ??= new Dictionary<string, EnumMapping>();
System\Xml\Serialization\XmlSerializer.cs (2)
712typedMappingTable = s_xmlSerializerTable.GetOrCreateValue(type, _ => new Dictionary<XmlSerializerMappingKey, XmlSerializer>()); 716var pendingKeys = new Dictionary<XmlSerializerMappingKey, int>();
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
103private Dictionary<string, XmlQualifiedName> NamespacesInternal => _namespaces ??= new Dictionary<string, XmlQualifiedName>();
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\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 (1)
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)
165_decimalFormats ??= new Dictionary<XmlQualifiedName, DecimalFormat>();
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\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 (7)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
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 (7)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
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.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 (6)
System\Runtime\Serialization\Schema\CodeExporter.cs (5)
47_namespaces = new Dictionary<string, string>(); 226ExportClassDataContractHierarchy(dataContract.XmlName, dataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object?>()); 927return GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object?>()); 987DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>()); 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 (2)
System\Security\Claims\Claim.cs (2)
265_properties = new Dictionary<string, string>(); 344public IDictionary<string, string> Properties => _properties ??= new Dictionary<string, string>();
System.Security.Cryptography (7)
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\OidLookup.cs (1)
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.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.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.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 (3)
System\Text\CodePagesEncodingProvider.cs (1)
14private readonly Dictionary<int, Encoding> _encodings = new Dictionary<int, Encoding>();
System\Text\EncodingTable.cs (2)
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 (7)
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\Metadata\PolymorphicTypeResolver.cs (1)
55if (!(_discriminatorIdtoType ??= new()).TryAdd(typeDiscriminator, derivedTypeInfoHolder))
System\Text\Json\Serialization\PreserveReferenceResolver.cs (1)
27_referenceIdToObjectMap = new Dictionary<string, object>();
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Emitter.cs (2)
81private readonly Dictionary<TypeRef, TypeGenerationSpec> _typeIndex = new(); 88private readonly Dictionary<string, string> _propertyNames = new();
System.Text.RegularExpressions (15)
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 (6)
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\RegexPrefixAnalyzer.cs (1)
714var combined = new Dictionary<int, (RegexCharClass Set, int Count)>();
System.Threading.Tasks.Dataflow (3)
Internal\QueuedMap.cs (1)
162_mapKeyToIndex = new Dictionary<TKey, int>();
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)
273Dictionary<DependencyObject, bool> processedElements = new Dictionary<DependencyObject, bool>(); 345elementToScopeMap = new Dictionary<DependencyObject, DependencyObject>(); 925Current._cultureCache = cultureCache = new Dictionary<XmlLanguage, CultureInfo>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
469Dictionary<int, int> _childIndexToStarLayoutIndexMap = new Dictionary<int, int>();
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (1)
182Dictionary<object, List<RibbonTabHeaderAndIndex>> contextualTabHeaders = new Dictionary<object, List<RibbonTabHeaderAndIndex>>();
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
63private Dictionary<int, int> _tabIndexToDisplayIndexMap = new Dictionary<int, int>(); // A map from collection index to display index of tab items. 64private Dictionary<int, int> _tabDisplayIndexToIndexMap = new Dictionary<int, int>(); // A map from display index to collection index of tab items.
System.Windows.Forms (2)
System\Windows\Forms\Accessibility\AccessibleRoleControlTypeMap.cs (1)
13private static readonly Dictionary<AccessibleRole, UIA_CONTROLTYPE_ID> s_map = new()
System\Windows\Forms\Control.cs (1)
1868_dpiFonts ??= new Dictionary<int, Font>
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 (1)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
94defaultValues ??= new Dictionary<string, object>();
System.Windows.Forms.Design.Tests (51)
ButtonBaseDesignerTests.cs (1)
23new Dictionary<string, object>()
ControlDesignerTests.cs (2)
338Dictionary<string, object> defaultValues = new() 358Dictionary<string, object> defaultValues = new()
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.TestUtilities (1)
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 (42)
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\LinkAreaConverterTests.cs (7)
118null, new Dictionary<string, object> 137new Dictionary<string, object> 145new Dictionary<string, object> 153new Dictionary<string, object> 161new Dictionary<string, object> 169new Dictionary<string, object> 177new 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)
146mockContext.Object, new Dictionary<string, object> 163null, new Dictionary<string, object> 185new Dictionary<string, object> 196new Dictionary<string, object> 207new Dictionary<string, object> 218new Dictionary<string, object> 229new Dictionary<string, object> 240new Dictionary<string, object> 251new Dictionary<string, object> 262new Dictionary<string, object> 273new Dictionary<string, object> 284new Dictionary<string, object> 295new Dictionary<string, object> 306new Dictionary<string, object> 317new Dictionary<string, object> 328new Dictionary<string, object> 339new Dictionary<string, object> 377var propertyValues = new Dictionary<string, object>
System\Windows\Forms\TableLayoutPanelCellPositionTests.cs (9)
208TableLayoutPanelCellPosition position = Assert.IsType<TableLayoutPanelCellPosition>(converter.CreateInstance(null, new Dictionary<string, object> 227new Dictionary<string, object> 235new Dictionary<string, object> 243new Dictionary<string, object> 251new Dictionary<string, object> 259new Dictionary<string, object> 267new Dictionary<string, object> 286Assert.Throws<ArgumentOutOfRangeException>("column", () => converter.CreateInstance(null, new Dictionary<string, object> 297Assert.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 (38)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
165_assemblies = new Dictionary<object, AssemblyName>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
876_subsumingNamespaces = new Dictionary<string, object>(); 903_knownNamespaces = new Dictionary<string, object>(); 1805_ignorables = new Dictionary<string, object>(); 1814_processContents = new Dictionary<string, ProcessContentSet>(); 1829_preserveElements = new Dictionary<string, PreserveItemSet>(); 1844_preserveAttributes = new Dictionary<string, PreserveItemSet>(); 2011_names = new Dictionary<string, string>(); 2025private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>(); 2027private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>(); 2028private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\Xaml\AttachablePropertyServices.cs (1)
186instanceProperties = new Dictionary<AttachableMemberIdentifier, object>();
System\Xaml\Context\ObjectWriterFrame.cs (1)
170_preconstructionPropertyValues = new Dictionary<XamlMember, object>();
System\Xaml\Context\XamlCommonFrame.cs (1)
20_namespaces = new Dictionary<string, string>();
System\Xaml\Context\XamlParserContext.cs (2)
26_prescopeNamespaces = new Dictionary<string, string>(); 147_prescopeNamespaces = new Dictionary<string, string>();
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
213_pendingCollectionAdds = new Dictionary<object, List<PendingCollectionAdd>>(); 223_pendingKeyConversionContexts = new Dictionary<object, ObjectWriterContext>();
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
206xmlnsDictionary = new Dictionary<string, string>();
System\Xaml\Runtime\DynamicMethodRuntime.cs (5)
69_propertyGetDelegates = new Dictionary<MethodInfo, PropertyGetDelegate>(); 81_propertySetDelegates = new Dictionary<MethodInfo, PropertySetDelegate>(); 93_factoryDelegates = new Dictionary<MethodBase, FactoryDelegate>(); 105_converterInstances = new Dictionary<Type, object>(); 117_delegateCreators = new Dictionary<Type, DelegateCreator>();
System\Xaml\Schema\Reflector.cs (2)
140Dictionary<char, char> bracketCharacterAttributeList = new Dictionary<char, char>(); 396Dictionary<char, char> bracketCharacterList = new Dictionary<char, char>();
System\Xaml\Schema\TypeReflector.cs (3)
712getters = new Dictionary<string,List<MethodInfo>>(); 713setters = new Dictionary<string,List<MethodInfo>>(); 714adders = new Dictionary<string,List<MethodInfo>>();
System\Xaml\Schema\XamlTypeInvoker.cs (1)
160Dictionary<XamlType, MethodInfo> addMethods = new Dictionary<XamlType, MethodInfo>();
System\Xaml\XamlObjectReader.cs (2)
2484namespaceToPrefixMap = new Dictionary<string, string>(); 2485prefixToNamespaceMap = new Dictionary<string, string>();
System\Xaml\XamlType.cs (2)
1570Dictionary<int, IList<XamlType>> result = new Dictionary<int,IList<XamlType>>(); 1577Dictionary<int, IList<XamlType>> ctorDict = new Dictionary<int, IList<XamlType>>();
System\Xaml\XamlXmlWriter.cs (4)
108prefixAssignmentHistory = new Dictionary<string, string>() { {"xml", XamlLanguage.Xml1998Namespace} }; 669Dictionary<string, string> namespaceMap = new Dictionary<string, string>(); //namespace to prefix map 670Dictionary<string, string> prefixMap = new Dictionary<string, string>(); //prefix to namespace map 2166Dictionary<XamlMember, bool> dictionary = new Dictionary<XamlMember, bool>();
TagHelpersWebSite (3)
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\TagCloudViewComponentTagHelper.cs (1)
58new Dictionary<string, object>(),
TaskUsageLogger (4)
TaskUsageLogger.cs (4)
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>>();
Templates.Blazor.Tests (3)
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 (3)
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 (3)
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 (3)
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 (4)
IdentityUIPackageTest.cs (1)
104var packageOptions = new Dictionary<string, string>();
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 } });
WindowsFormsIntegration (4)
System\Windows\Integration\Convert.cs (2)
33_toSystemWindowsInputCursorDictionary = new Dictionary<SWF.Cursor, System.Windows.Input.Cursor>(); 73_toSystemWindowsFormsCursorDictionary = new Dictionary<SWI.Cursor, SWF.Cursor>();
System\Windows\Integration\PropertyMap.cs (2)
34_wrappedDictionary = new Dictionary<string, PropertyTranslator>(); 223_defaultTranslators = new Dictionary<string, PropertyTranslator>();
WinFormsControlsTest (1)
MainForm.cs (1)
54private IReadOnlyDictionary<MainFormControlsTabOrder, InitInfo> GetButtonsInitInfo() => new Dictionary<MainFormControlsTabOrder, InitInfo>
XmlFileLogger (1)
LogProcessNode.cs (1)
31_childNodes = new Dictionary<Type, List<ILogNode>>();
xunit.assert (4)
Sdk\ArgumentFormatter.cs (1)
98 static readonly Dictionary<TypeInfo, string> TypeMappings = new Dictionary<TypeInfo, string>
Sdk\AssertHelper.cs (1)
49 static readonly Dictionary<char, string> encodings = new Dictionary<char, string>
Sdk\CollectionTracker.cs (2)
597 var items = new Dictionary<int, T>(); 844 var result = new Dictionary<int, T>();
xunit.console (3)
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\Json.cs (1)
481var dictionary = new Dictionary<string, JsonValue>();
Xunit.NetCore.Extensions (3)
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\XunitTestMethodRunnerWithAssemblyFixture.cs (1)
17private readonly Dictionary<Type, object> assemblyFixtureMappings = new Dictionary<Type, object>();