38 types derived from Dictionary
ConfigurationSchemaGenerator.Tests (1)
dotnet-svcutil-lib (1)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
Microsoft.AspNetCore.Razor.Runtime.Test (4)
Microsoft.AspNetCore.Routing (1)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.SignCheckLibrary (1)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Microsoft.Maui (1)
Microsoft.Maui.Controls (1)
Microsoft.Maui.Graphics (1)
Microsoft.ML.FastTree (1)
Microsoft.ML.GenAI.Core (1)
Microsoft.ML.Tokenizers (1)
PresentationFramework (2)
System.ComponentModel.TypeConverter (1)
System.Private.CoreLib (1)
System.Private.Xml (2)
System.Windows.Forms (1)
System.Xaml (1)
7677 instantiations of Dictionary
AnalyzerRunner (5)
Aspire.Azure.Security.KeyVault.Tests (2)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (23)
Aspire.Dashboard.Tests (17)
Aspire.EndToEnd.Tests (4)
Aspire.Hosting (24)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Tests (7)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Dapr (1)
Aspire.Hosting.Dapr.Tests (2)
Aspire.Hosting.Milvus (1)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.MySql.Tests (5)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.PostgreSQL.Tests (4)
Aspire.Hosting.Qdrant.Tests (3)
Aspire.Hosting.Redis.Tests (7)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Tests (27)
Aspire.Hosting.Valkey.Tests (3)
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() {
Aspire.Workload.Tests (4)
AuthSamples.FunctionalTests (4)
BasicTestApp (2)
BasicWebSite (2)
blazor-devserver (1)
BuildActionTelemetryTable (1)
BuildBoss (2)
BuildValidator (6)
CodeGenerator (1)
ConfigurationSchemaGenerator (5)
ConfigurationSchemaGenerator.Tests (2)
Crossgen2Tasks (1)
dotnet-openapi (3)
dotnet-svcutil.xmlserializer (3)
dotnet-svcutil-lib (213)
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\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (8)
52_namespaces = new Dictionary<string, string>();
53_clrNamespaces = new Dictionary<string, string>(StringComparer.Ordinal);
277ExportClassDataContractHierarchy(classDataContract.StableName, classDataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object>());
746dataContract = DataContract.GetDataContract(type).BindGenericParameters(paramContracts, new Dictionary<DataContract, DataContract>());
937return GetKnownTypeContracts((ClassDataContract)dataContract, new Dictionary<DataContract, object>());
984dataContract.KnownDataContracts = new DataContractDictionary();
995DataContractDictionary knownContractDictionary = GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object>());
1427Dictionary<string, object> fragments = new Dictionary<string, object>(StringComparer.Ordinal);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\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.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (14)
23private readonly Dictionary<WsdlNS.NamedItem, WsdlImportException> _importErrors = new Dictionary<WsdlNS.NamedItem, WsdlImportException>();
26private readonly Dictionary<XmlQualifiedName, WsdlContractConversionContext> _importedPortTypes = new Dictionary<XmlQualifiedName, WsdlContractConversionContext>();
27private readonly Dictionary<XmlQualifiedName, WsdlEndpointConversionContext> _importedBindings = new Dictionary<XmlQualifiedName, WsdlEndpointConversionContext>();
28private readonly Dictionary<WsdlNS.Port, ServiceEndpoint> _importedPorts = new Dictionary<WsdlNS.Port, ServiceEndpoint>();
34private readonly Dictionary<string, XmlElement> _policyDocuments = new Dictionary<string, XmlElement>();
35private readonly Dictionary<string, string> _warnings = new Dictionary<string, string>();
1688Dictionary<XmlElement, XmlElement> unique = new Dictionary<XmlElement, XmlElement>();
2205policyAlternatives.OperationBindingAlternatives = new Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>>(endpointContext.Endpoint.Contract.Operations.Count);
2206policyAlternatives.MessageBindingAlternatives = new Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>>();
2207policyAlternatives.FaultBindingAlternatives = new Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>>();
2287private readonly Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>> _embeddedPolicyDictionary = new Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>>();
2288private readonly Dictionary<string, XmlElement> _externalPolicyDictionary = new Dictionary<string, XmlElement>();
2289private readonly Dictionary<XmlElement, WsdlNS.ServiceDescription> _policySourceTable = new Dictionary<XmlElement, WsdlNS.ServiceDescription>();
2334wsdlPolicyDictionary = new Dictionary<string, XmlElement>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\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>>());
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (5)
FilesWebSite (1)
FormatterWebSite (2)
GenericHostWebSite (1)
HealthChecksSample (2)
HelixTestRunner (1)
HtmlGenerationWebSite (1)
http2cat (1)
IdeCoreBenchmarks (4)
Identity.DefaultUI.WebSite (3)
IIS.FunctionalTests (1)
IIS.LongTests (4)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (4)
IIS.NewShim.FunctionalTests (4)
IISExpress.FunctionalTests (4)
illink (70)
Linker\Annotations.cs (11)
49 protected readonly Dictionary<AssemblyDefinition, AssemblyAction> assembly_actions = new Dictionary<AssemblyDefinition, AssemblyAction> ();
55 protected readonly Dictionary<IMetadataTokenProvider, MessageOrigin> marked_pending = new Dictionary<IMetadataTokenProvider, MessageOrigin> ();
57 protected readonly Dictionary<TypeDefinition, (TypePreserve preserve, bool applied)> preserved_types = new Dictionary<TypeDefinition, (TypePreserve, bool)> ();
59 protected readonly Dictionary<TypeDefinition, TypePreserveMembers> preserved_type_members = new ();
60 protected readonly Dictionary<ExportedType, TypePreserveMembers> preserved_exportedtype_members = new ();
61 protected readonly Dictionary<IMemberDefinition, List<MethodDefinition>> preserved_methods = new Dictionary<IMemberDefinition, List<MethodDefinition>> ();
64 protected readonly Dictionary<AssemblyDefinition, ISymbolReader> symbol_readers = new Dictionary<AssemblyDefinition, ISymbolReader> ();
65 readonly Dictionary<IMemberDefinition, LinkerAttributesInformation> linker_attributes = new Dictionary<IMemberDefinition, LinkerAttributesInformation> ();
66 readonly Dictionary<object, Dictionary<IMetadataTokenProvider, object>> custom_annotations = new Dictionary<object, Dictionary<IMetadataTokenProvider, object>> ();
67 protected readonly Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>> resources_to_remove = new Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>> ();
552 slots = new Dictionary<IMetadataTokenProvider, object> ();
Linker\LinkContext.cs (11)
207 _actions = new Dictionary<string, AssemblyAction> ();
208 _parameters = new Dictionary<string, string> (StringComparer.Ordinal);
212 _isTrimmable = new Dictionary<AssemblyDefinition, bool> ();
214 FeatureSettings = new Dictionary<string, bool> (StringComparer.Ordinal);
228 WarnAsError = new Dictionary<int, bool> ();
232 SingleWarn = new Dictionary<string, bool> ();
781 readonly Dictionary<MethodReference, MethodDefinition?> methodresolveCache = new ();
782 readonly Dictionary<FieldReference, FieldDefinition?> fieldresolveCache = new ();
783 readonly Dictionary<TypeReference, TypeDefinition?> typeresolveCache = new ();
784 readonly Dictionary<ExportedType, TypeDefinition?> exportedTypeResolveCache = new ();
1044 readonly Dictionary<string, Pair> perAssembly = new ();
ILLink.RoslynAnalyzer (17)
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
94 readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string> ();
95 readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string> ();
96 readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers> ();
97 readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new ();
199 featureSwitchMembers.Add (currentFeatureSwitch.Value, new Dictionary<string, ClassMembers> ());
Infrastructure.Common (4)
InMemory.FunctionalTests (12)
InProcessWebSite (1)
installer.tasks (1)
Interop.FunctionalTests (1)
KeyManagementSimulator (1)
Microsoft.Analyzers.Extra (9)
Microsoft.Analyzers.Local (9)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore.Analyzer.Testing (2)
Microsoft.AspNetCore.Analyzers (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.Antiforgery.Test (4)
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.App.Analyzers.Test (3)
Microsoft.AspNetCore.App.CodeFixes (1)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Abstractions (5)
Microsoft.AspNetCore.Authentication.Core (2)
Microsoft.AspNetCore.Authentication.Core.Test (8)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
Microsoft.AspNetCore.Authentication.OAuth (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Test (13)
Microsoft.AspNetCore.Authentication.Twitter (4)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.BrowserTesting (6)
Microsoft.AspNetCore.Components (33)
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>
Microsoft.AspNetCore.Components.Endpoints (19)
Microsoft.AspNetCore.Components.Endpoints.Tests (155)
Assets\ImportMapDefinitionTest.cs (14)
28new Dictionary<string, string>
56new Dictionary<string, IReadOnlyDictionary<string, string>>
58["/scoped/"] = new Dictionary<string, string>
85new Dictionary<string, string>
90new Dictionary<string, string>
136new Dictionary<string, string>
140new Dictionary<string, IReadOnlyDictionary<string, string>>
142["/legacy/"] = new Dictionary<string, string>
147new Dictionary<string, string>
153new Dictionary<string, string>
158new Dictionary<string, IReadOnlyDictionary<string, string>>
160["/scoped/"] = new Dictionary<string, string>
164["/legacy/"] = new Dictionary<string, string>
169new Dictionary<string, string>
Binding\FormDataMapperTests.cs (72)
26var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
46var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
66var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
80var dictionary = new Dictionary<FormKey, StringValues>(collection.Count);
97var collection = new Dictionary<string, StringValues>() { };
119var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") };
136var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") };
162var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
179var collection = new Dictionary<string, StringValues>() { };
196var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
213var collection = new Dictionary<string, StringValues>() { ["value.Slug"] = new StringValues(value) };
239var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") };
257var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") };
273var collection = new Dictionary<string, StringValues>() { };
290var data = new Dictionary<string, StringValues>() { };
306var data = new Dictionary<string, StringValues>() { ["[0]"] = "10" };
322var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "11" }) };
340var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) };
358var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) };
376var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a" }) };
401var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a", "11" }) };
431var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
462var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
508var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
569var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
609var collection = new Dictionary<string, StringValues>()
897var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
905var expected = new ConcurrentDictionary<int, int>(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
913var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
921var expected = ImmutableSortedDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
929var expected = ImmutableDictionary.CreateRange(new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, });
931var collection = new Dictionary<string, StringValues>()
960var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
984var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
985var collection = new Dictionary<string, StringValues>()
1014var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
1015var collection = new Dictionary<string, StringValues>()
1044var collection = new Dictionary<string, StringValues>() { };
1066var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
1105var expected = new Dictionary<int, int>
1118var collection = new Dictionary<string, StringValues>()
1166var expected = new Dictionary<int, int>
1177var collection = new Dictionary<string, StringValues>()
1226var collection = new Dictionary<string, StringValues>()
1254var collection = new Dictionary<string, StringValues>()
1290var data = new Dictionary<string, StringValues>()
1315var data = new Dictionary<string, StringValues>()
1356var data = new Dictionary<string, StringValues>()
1415var data = new Dictionary<string, StringValues>()
1486var data = new Dictionary<string, StringValues>()
1541Children = new Dictionary<int, RecursiveDictionaryTree>() { [0] = expected }
1545var data = new Dictionary<string, StringValues>()
1590var data = new Dictionary<string, StringValues>()
1629var data = new Dictionary<string, StringValues>()
1660var data = new Dictionary<string, StringValues>()
1679var data = new Dictionary<string, StringValues>()
1698var data = new Dictionary<string, StringValues>()
1717var data = new Dictionary<string, StringValues>()
1739var data = new Dictionary<string, StringValues>()
1761var data = new Dictionary<string, StringValues>()
1787var data = new Dictionary<string, StringValues>()
1812var data = new Dictionary<string, StringValues>()
1832var data = new Dictionary<string, StringValues>()
1852var data = new Dictionary<string, StringValues>() { };
1875var data = new Dictionary<string, StringValues>() { ["value"] = "20" };
1906var data = new Dictionary<string, StringValues>();
1934var data = new Dictionary<string, StringValues>();
1967var data = new Dictionary<string, StringValues>();
1989var data = new Dictionary<string, StringValues>();
2012var data = new Dictionary<string, StringValues>();
2045var data = new Dictionary<string, StringValues>();
2080var data = new Dictionary<string, StringValues>()
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>
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>
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Forms.Tests (3)
Microsoft.AspNetCore.Components.Performance (2)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (6)
Microsoft.AspNetCore.Components.Server.Tests (27)
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\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()
Microsoft.AspNetCore.Components.Tests (136)
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>());
RendererTest.cs (49)
238await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
240[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
257[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
282renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
298renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
397await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
399[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
416[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
441await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
443[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
460[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
485await renderer.Dispatcher.InvokeAsync(() => renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
487[EventActionsName] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
518[WhatToRenderName] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
2632ChildParameters = new Dictionary<string, object>
2759ChildParameters = new Dictionary<string, object>
3552var task = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3554[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3565[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3585var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3587[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3598[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3618var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3620[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3631[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3652var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3654[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3669[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3749var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3751[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3779[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3807var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3809[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3835[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3862var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3864[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3890[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
3916var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
3918[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
3946[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4046var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4048[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4059[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4080var renderTask = renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4082[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4093[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
4117await renderer.RenderRootComponentAsync(componentId, ParameterView.FromDictionary(new Dictionary<string, object>
4119[nameof(NestedAsyncComponent.EventActions)] = new Dictionary<int, IList<NestedAsyncComponent.ExecutionAction>>
4135[nameof(NestedAsyncComponent.WhatToRender)] = new Dictionary<int, Func<NestedAsyncComponent, RenderFragment>>
Rendering\RenderTreeBuilderTest.cs (13)
285builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
292builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
331builder.AddMultipleAttributes(1, new Dictionary<string, object>()
354var attributes = new Dictionary<string, object>
368var attributes = new Dictionary<string, object>
1842builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
1867builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
1892builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
1915builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
1939builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
1962builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
1993builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
2002builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
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>
Microsoft.AspNetCore.Components.Web (9)
Microsoft.AspNetCore.Components.Web.Tests (20)
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>
Microsoft.AspNetCore.Components.WebAssembly (5)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (10)
Hosting\WebAssemblyHostConfigurationTest.cs (10)
15var initialData = new Dictionary<string, string>() {
41var initialData = new Dictionary<string, string>() { { "color", "blue" } };
65var initialData = new Dictionary<string, string>() { { "color", "blue" } };
83var initialData = new Dictionary<string, string>() {
110var initialData = new Dictionary<string, string>() { { "color", "blue" } };
127var dic1 = new Dictionary<string, string>()
134var dic2 = new Dictionary<string, string>()
141var dic3 = new Dictionary<string, string>()
186var dic1 = new Dictionary<string, string>()
190var dic2 = new Dictionary<string, string>()
Microsoft.AspNetCore.Components.WebView (5)
Microsoft.AspNetCore.Components.WebView.Maui (2)
Microsoft.AspNetCore.Components.WebView.Test (5)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (3)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection (4)
Microsoft.AspNetCore.DataProtection.Tests (11)
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)
Microsoft.AspNetCore.Diagnostics.HealthChecks (3)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (3)
Microsoft.AspNetCore.Diagnostics.Middleware (5)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (22)
Logging\IncomingHttpRouteUtilityTests.cs (11)
57var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal));
95var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal));
135var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal));
177var d = new Dictionary<string, DataClassification>
220var d = new Dictionary<string, DataClassification>
267var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal));
306var d = new Dictionary<string, DataClassification>
354var d = new Dictionary<string, DataClassification>
399var d = new Dictionary<string, DataClassification>();
438var d = new Dictionary<string, DataClassification>
460var d = new Dictionary<string, DataClassification>
Microsoft.AspNetCore.Grpc.JsonTranscoding (8)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (32)
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)
Microsoft.AspNetCore.Grpc.Swagger (4)
Microsoft.AspNetCore.HeaderParsing (2)
Microsoft.AspNetCore.HeaderParsing.Tests (3)
Microsoft.AspNetCore.HeaderPropagation (1)
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Hosting.Tests (29)
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>
Microsoft.AspNetCore.Http (12)
Microsoft.AspNetCore.Http.Abstractions (6)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (18)
HttpConnectionDispatcherTests.cs (18)
228var values = new Dictionary<string, StringValues>();
308var values = new Dictionary<string, StringValues>();
350var values = new Dictionary<string, StringValues>();
388var values = new Dictionary<string, StringValues>();
427var values = new Dictionary<string, StringValues>();
467var values = new Dictionary<string, StringValues>();
530var values = new Dictionary<string, StringValues>();
598var values = new Dictionary<string, StringValues>();
661var values = new Dictionary<string, StringValues>();
765var values = new Dictionary<string, StringValues>();
907var values = new Dictionary<string, StringValues>();
1842var values = new Dictionary<string, StringValues>();
1894var values = new Dictionary<string, StringValues>();
2570var values = new Dictionary<string, StringValues>();
2630var values = new Dictionary<string, StringValues>();
2687var values = new Dictionary<string, StringValues>();
3699var values = new Dictionary<string, StringValues>();
3736var values = new Dictionary<string, StringValues>();
Microsoft.AspNetCore.Http.Extensions (9)
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>
Microsoft.AspNetCore.Http.Microbenchmarks (7)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Http.Results.Tests (32)
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>(),
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))
Microsoft.AspNetCore.Http.Tests (9)
Microsoft.AspNetCore.HttpOverrides.Tests (3)
Microsoft.AspNetCore.Identity (2)
Microsoft.AspNetCore.Identity.FunctionalTests (24)
Microsoft.AspNetCore.Identity.InMemory.Test (3)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.InternalTesting (3)
Microsoft.AspNetCore.JsonPatch.Tests (22)
Internal\DictionaryAdapterTest.cs (15)
22var dictionary = new Dictionary<string, int>(StringComparer.Ordinal);
42var dictionary = new Dictionary<int, object>();
64var dictionary = new Dictionary<int, object>();
92var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
119var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
144var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
164var dictionary = new Dictionary<Guid, object>();
184var dictionary = new Dictionary<Guid, int>();
203var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
221var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
239var dictionary = new Dictionary<string, Rectangle>(StringComparer.Ordinal);
262var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
281var dictionary = new Dictionary<Uri, object>();
300var dictionary = new Dictionary<string, List<object>>();
324var dictionary = new Dictionary<string, object>();
Microsoft.AspNetCore.Mvc.Abstractions (8)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.Core (41)
Microsoft.AspNetCore.Mvc.Core.Test (312)
ApplicationModels\AttributeRouteModelTests.cs (30)
183var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
495new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
506new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
517new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
528new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
539new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
550new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
561new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
572new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
583new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
594new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
605new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
616new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
627new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
638new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
649new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
660new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
677new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
684new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
691new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
698new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
705new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
715new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
722new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
729new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
736new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
747new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
758new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
769new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
780new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
ControllerBaseTest.cs (10)
1406var expected = new Dictionary<string, object>
1446var expected = new Dictionary<string, object>
1467var expected = new Dictionary<string, object>
1600var expected = new Dictionary<string, object>
1625var expected = new Dictionary<string, object>
1646var expected = new Dictionary<string, object>
2444var actionResult = controller.ValidationProblem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } });
2521var actionResult = controller.Problem(extensions: new Dictionary<string, object> { { "ext1", 1 }, { "ext2", 2 } });
2590new Dictionary<string, object> { { "hello", "world" } },
2594var expected2 = new Dictionary<string, object>
Controllers\ControllerBinderDelegateProviderTest.cs (24)
43var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
97var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
165var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
207var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
257var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
293var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
342var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
401var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
436var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
484var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
532var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
579var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
629var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
668var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
708var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
749var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
811var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
874var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
962var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
990var boundPropertyTypes = new Dictionary<string, Type>
998var inputPropertyValues = new Dictionary<string, object>
1021var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
1176var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
1228var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
Infrastructure\ActionSelectionTableTest.cs (25)
25RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
34RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
71RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
101RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
111RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
140RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
149RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
175RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
184RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
210RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
219RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
245RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
275RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
308RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
317RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
326RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
357RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
366RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
375RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
403RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
434RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
465RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
496RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
525RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\ActionSelectorTest.cs (20)
35RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
44RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
74RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
84RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
116RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
125RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
154RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
163RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
192RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
228RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
237RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
246RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
280RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
289RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
298RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
329RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
363RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
397RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
431RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
465RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\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>();
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (9)
292ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
298var binders = new Dictionary<ModelMetadata, IModelBinder>();
344ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
349new Dictionary<ModelMetadata, IModelBinder>(),
388ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
393new Dictionary<ModelMetadata, IModelBinder>(),
1108var valueProvider = new TestValueProvider(new Dictionary<string, object>());
1389public IDictionary<int, string> ReadOnlyDictionary { get; } = new Dictionary<int, string>();
1396public IDictionary<int, string> SettableDictionary { get; set; } = new Dictionary<int, string>
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (13)
352ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
358var binders = new Dictionary<ModelMetadata, IModelBinder>();
404ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
409new Dictionary<ModelMetadata, IModelBinder>(),
448ValueProvider = new TestValueProvider(new Dictionary<string, object>()),
453new Dictionary<ModelMetadata, IModelBinder>(),
1272var valueProvider = new TestValueProvider(new Dictionary<string, object>());
1564public IDictionary<int, string> ReadOnlyDictionary { get; } = new Dictionary<int, string>();
1571public IDictionary<int, string> SettableDictionary { get; set; } = new Dictionary<int, string>
1586var propertyBinders = new Dictionary<ModelMetadata, IModelBinder>();
1603: this(new Dictionary<ModelMetadata, IModelBinder>())
1608: this(new Dictionary<ModelMetadata, IModelBinder>(), allowValidatingTopLevelNodes)
1624public Dictionary<ModelMetadata, ModelBindingResult> Results { get; } = new Dictionary<ModelMetadata, ModelBindingResult>();
ModelBinding\Binders\DictionaryModelBinderTest.cs (16)
21var values = new Dictionary<string, string>()
61var values = new Dictionary<string, string>()
72var dictionary = new Dictionary<int, string>();
101var dictionaryWithOne = new Dictionary<string, string>(StringComparer.Ordinal)
105var dictionaryWithThree = new Dictionary<string, string>(StringComparer.Ordinal)
196var dictionary = new Dictionary<string, string>(StringComparer.Ordinal)
233var dictionary = new Dictionary<string, string>(StringComparer.Ordinal)
268var dictionaryWithOne = new Dictionary<long, int>
272var dictionaryWithThree = new Dictionary<long, int>
319var dictionary = new Dictionary<int, ModelWithProperties>
324var stringDictionary = new Dictionary<string, string>
346new ComplexObjectModelBinder(new Dictionary<ModelMetadata, IModelBinder>()
446bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
481bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
530bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
575bindingContext.ValueProvider = new TestValueProvider(new Dictionary<string, object>());
ModelBinding\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>
ResponseCacheAttributeTest.cs (8)
29var cacheProfiles = new Dictionary<string, CacheProfile>();
49var cacheProfiles = new Dictionary<string, CacheProfile>();
92new Dictionary<string, CacheProfile> { { "TestCacheProfile", new CacheProfile
111new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile
130new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile
148new Dictionary<string, CacheProfile>() { { "TestCacheProfile", new CacheProfile() } },
189var cacheProfiles = new Dictionary<string, CacheProfile>();
350new Dictionary<string, object>(),
Routing\AttributeRouteTest.cs (10)
126RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
170RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
214RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
261RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
275RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
329RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
372RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
415RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
463RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
477RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\ControllerActionEndpointDataSourceTest.cs (13)
28RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
69RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
140RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
148RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
222RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
230RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
309RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
317RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
390RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
399RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
491RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
499RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (45)
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)
Microsoft.AspNetCore.Mvc.FunctionalTests (33)
Microsoft.AspNetCore.Mvc.IntegrationTests (81)
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>
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>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (6)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (35)
BsonTempDataSerializerTest.cs (13)
22{ new Dictionary<string, TestItem>(), typeof(TestItem) },
47{ new Dictionary<int, string>(), typeof(int) },
48{ new Dictionary<Uri, Guid>(), typeof(Uri) },
49{ new Dictionary<object, string>(), typeof(object) },
50{ new Dictionary<TestItem, TestItem>(), typeof(TestItem) }
83{ new Dictionary<string, int>() },
97var input = new Dictionary<string, object>
118var input = new Dictionary<string, object>
139var input = new Dictionary<string, object>
161var input = new Dictionary<string, object>
182var input = new Dictionary<string, object>
212var input = new Dictionary<string, object>
239var input = new Dictionary<string, object>
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (17)
30var input = new Dictionary<string, object>
54var input = new Dictionary<string, object>
76var input = new Dictionary<string, object>
97var input = new Dictionary<string, object>
118var input = new Dictionary<string, object>
139var input = new Dictionary<string, object>
160var input = new Dictionary<string, object>
182var input = new Dictionary<string, object>
204var input = new Dictionary<string, object>
226var input = new Dictionary<string, object>
247var input = new Dictionary<string, object>
268var input = new Dictionary<string, object>
289var input = new Dictionary<string, object>
309var value = new Dictionary<string, string>
314var input = new Dictionary<string, object>
334var value = new Dictionary<string, int>
339var input = new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.Razor (5)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.Test (59)
RazorPageTest.cs (18)
424page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
464page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
487page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
524page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
548page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
572page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
596page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
620page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
697page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
722page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
745page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
770page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
804page.PreviousSectionWriters = new Dictionary<string, RenderAsyncDelegate>
983items: new Dictionary<object, object>(),
1025items: new Dictionary<object, object>(),
1071items: new Dictionary<object, object>(),
1114items: new Dictionary<object, object>(),
1144items: new Dictionary<object, object>(),
RazorViewEngineTest.cs (22)
23private static readonly Dictionary<string, object> _areaTestContext = new Dictionary<string, object>()
29private static readonly Dictionary<string, object> _controllerTestContext = new Dictionary<string, object>()
34private static readonly Dictionary<string, object> _pageTestContext = new Dictionary<string, object>()
546var areaContext = GetActionContext(new Dictionary<string, object>()
561var nonAreaContext = GetActionContext(new Dictionary<string, object>()
610var areaContext1 = GetActionContext(new Dictionary<string, object>()
625var areaContext2 = GetActionContext(new Dictionary<string, object>()
809var context = GetActionContext(new Dictionary<string, object>());
1283var routeValues = new Dictionary<string, object>
1295var routesInActionDescriptor = new Dictionary<string, string>()
1324var routeValues = new Dictionary<string, object>
1328var routesInActionDescriptor = new Dictionary<string, string>()
1358var routeValues = new Dictionary<string, object>
1363var routesInActionDescriptor = new Dictionary<string, string>()
1393var routeValues = new Dictionary<string, object>()
1401new Dictionary<string, string>());
1833var routeValues = new Dictionary<string, object>
1870var routeValues = new Dictionary<string, object>
1911var context = GetActionContext(new Dictionary<string, object>());
1929var context = GetActionContext(new Dictionary<string, object>());
1951var context = GetActionContext(new Dictionary<string, object>());
1969var context = GetActionContext(new Dictionary<string, object>());
TagHelpers\TagHelperComponentTagHelperTest.cs (8)
25items: new Dictionary<object, object>(),
74items: new Dictionary<object, object>(),
130items: new Dictionary<object, object>(),
161items: new Dictionary<object, object>(),
192items: new Dictionary<object, object>(),
227items: new Dictionary<object, object>(),
260items: new Dictionary<object, object>(),
291items: new Dictionary<object, object>(),
TagHelpers\UrlResolutionTagHelperTest.cs (8)
80items: new Dictionary<object, object>(),
122items: new Dictionary<object, object>(),
182items: new Dictionary<object, object>(),
240items: new Dictionary<object, object>(),
296items: new Dictionary<object, object>(),
327items: new Dictionary<object, object>(),
376items: new Dictionary<object, object>(),
422items: new Dictionary<object, object>(),
Microsoft.AspNetCore.Mvc.RazorPages (11)
Microsoft.AspNetCore.Mvc.RazorPages.Test (43)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (5)
27RouteValues = new Dictionary<string, string>(),
55RouteValues = new Dictionary<string, string>(),
106RouteValues = new Dictionary<string, string>(),
148RouteValues = new Dictionary<string, string>(),
410RouteValues = new Dictionary<string, string>(),
Filters\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\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>();
Microsoft.AspNetCore.Mvc.TagHelpers (12)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (175)
AnchorTagHelperTest.cs (16)
35items: new Dictionary<object, object>(),
95items: new Dictionary<object, object>(),
145items: new Dictionary<object, object>(),
197items: new Dictionary<object, object>(),
211var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } };
255items: new Dictionary<object, object>(),
269var expectedRouteValues = new Dictionary<string, object> { { "area", "Admin" } };
292RouteValues = new Dictionary<string, string> { { "area", "Home" } }
314items: new Dictionary<object, object>(),
328var expectedRouteValues = new Dictionary<string, object> { { "area", string.Empty } };
372items: new Dictionary<object, object>(),
423items: new Dictionary<object, object>(),
520items: new Dictionary<object, object>(),
560items: new Dictionary<object, object>(),
598items: new Dictionary<object, object>(),
636items: new Dictionary<object, object>(),
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>(),
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>(),
ScriptTagHelperTest.cs (9)
714new Dictionary<string, string>
719new Dictionary<string, IReadOnlyDictionary<string, string>>
721["development"] = new Dictionary<string, string>
727new Dictionary<string, string>
759new Dictionary<string, string>
764new Dictionary<string, IReadOnlyDictionary<string, string>>
766["development"] = new Dictionary<string, string>
772new Dictionary<string, string>
1099items: new Dictionary<object, object>(),
SelectTagHelperTest.cs (10)
107var attributeData = new Dictionary<string, string>(StringComparer.Ordinal)
202items: new Dictionary<object, object>(),
292items: new Dictionary<object, object>(),
383items: new Dictionary<object, object>(),
472items: new Dictionary<object, object>(),
560items: new Dictionary<object, object>(),
643items: new Dictionary<object, object>(),
723var context = new TagHelperContext(new TagHelperAttributeList(), new Dictionary<object, object>(), "test");
761var context = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
811var tagHelperContext = new TagHelperContext(attributes, new Dictionary<object, object>(), "test");
TagHelperOutputExtensionsTest.cs (12)
342items: new Dictionary<object, object>(),
444items: new Dictionary<object, object>(),
475items: new Dictionary<object, object>(),
511items: new Dictionary<object, object>(),
542items: new Dictionary<object, object>(),
641new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
656new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
671new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
686new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
701new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
716new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
737new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
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)
Microsoft.AspNetCore.Mvc.Testing (2)
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (21)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (104)
ControllerUnitTestabilityTests.cs (6)
324var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
360var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
397var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
436var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
474var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
508var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
DefaultHtmlGeneratorTest.cs (12)
116var htmlAttributes = new Dictionary<string, object>
171var htmlAttributes = new Dictionary<string, object>
201var htmlAttributes = new Dictionary<string, object>
225var htmlAttributes = new Dictionary<string, object>
249var htmlAttributes = new Dictionary<string, object>
271var htmlAttributes = new Dictionary<string, object>
293var htmlAttributes = new Dictionary<string, object>
316var htmlAttributes = new Dictionary<string, object>
369var htmlAttributes = new Dictionary<string, object>
399var htmlAttributes = new Dictionary<string, object>
424var htmlAttributes = new Dictionary<string, object>
471var htmlAttributes = new Dictionary<string, object>
Infrastructure\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\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>();
ViewDataDictionaryTest.cs (6)
229{ typeof(Dictionary<string, object>), new Dictionary<string, object>() },
471new { Foo = new Dictionary<string, object> { { "Bar", "Baz" } } },
673viewData.Add("Foo", new Dictionary<string, object> { { "Bar", "Baz" } });
687viewData.Add("Foo", new Dictionary<string, object> { { "NotBar", "Baz" } });
701var value = new Dictionary<string, object>
703["Bar"] = new Dictionary<string, string>
Microsoft.AspNetCore.Mvc.Views.TestCommon (3)
Microsoft.AspNetCore.OpenApi (21)
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>(),
Microsoft.AspNetCore.OpenApi.Microbenchmarks (3)
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>
Microsoft.AspNetCore.OutputCaching (4)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (5)
Microsoft.AspNetCore.Owin.Tests (5)
Microsoft.AspNetCore.RateLimiting (3)
Microsoft.AspNetCore.Razor.Runtime (7)
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>(),
Microsoft.AspNetCore.Razor.Test (4)
Microsoft.AspNetCore.RequestDecompression (1)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Rewrite (4)
Microsoft.AspNetCore.Rewrite.Tests (8)
Microsoft.AspNetCore.Routing (34)
Patterns\RoutePatternFactory.cs (7)
34new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>());
37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>());
461updatedDefaults = new Dictionary<string, object?>(defaults.Count, StringComparer.OrdinalIgnoreCase);
602updatedDefaults = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase);
653updatedParameterPolicies = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(parameterPolicies.Count, StringComparer.OrdinalIgnoreCase);
1050var combinedDictionary = new Dictionary<string, TValue>(leftDictionary.Count + rightDictionary.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Routing.Abstractions (2)
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Microsoft.AspNetCore.Routing.Tests (25)
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 } },
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (4)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (6)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (36)
SniOptionsSelectorTests.cs (24)
27var sniDictionary = new Dictionary<string, SniConfig>
94var sniDictionary = new Dictionary<string, SniConfig>
140var sniDictionary = new Dictionary<string, SniConfig>
188var sniDictionary = new Dictionary<string, SniConfig>
252var sniDictionary = new Dictionary<string, SniConfig>
297var sniDictionary = new Dictionary<string, SniConfig>
339new Dictionary<string, SniConfig>(),
355var sniDictionary = new Dictionary<string, SniConfig>
387var sniDictionary = new Dictionary<string, SniConfig>
414var sniDictionary = new Dictionary<string, SniConfig>
455var sniDictionary = new Dictionary<string, SniConfig>
508var sniDictionary = new Dictionary<string, SniConfig>
528var sniDictionary = new Dictionary<string, SniConfig>
552var sniDictionary = new Dictionary<string, SniConfig>
580var sniDictionary = new Dictionary<string, SniConfig>
611var sniDictionary = new Dictionary<string, SniConfig>
644var sniDictionary = new Dictionary<string, SniConfig>
674var sniDictionary = new Dictionary<string, SniConfig>
708var sniDictionary = new Dictionary<string, SniConfig>
737var sniDictionary = new Dictionary<string, SniConfig>
773var sniDictionary = new Dictionary<string, SniConfig>
915public Dictionary<object, string> CertToPathDictionary { get; } = new Dictionary<object, string>(ReferenceEqualityComparer.Instance);
916public Dictionary<object, X509Certificate2Collection> CertToFullChain { get; } = new Dictionary<object, X509Certificate2Collection>(ReferenceEqualityComparer.Instance);
942public override IDictionary<object, object> Items { get; set; } = new Dictionary<object, object>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (22)
Microsoft.AspNetCore.SignalR.Client.Core (3)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.StaticFiles (1)
Microsoft.AspNetCore.StaticFiles.Tests (1)
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)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities (5)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.Build (281)
BackEnd\Components\Caching\ConfigCache.cs (8)
43_configurations = new Dictionary<int, BuildRequestConfiguration>();
44_configurationIdsByMetadata = new Dictionary<ConfigurationMetadata, int>();
199_configurations = new Dictionary<int, BuildRequestConfiguration>();
200_configurationIdsByMetadata = new Dictionary<ConfigurationMetadata, int>();
227Dictionary<int, BuildRequestConfiguration> configurationsToKeep = new Dictionary<int, BuildRequestConfiguration>();
228Dictionary<ConfigurationMetadata, int> configurationIdsByMetadataToKeep = new Dictionary<ConfigurationMetadata, int>();
377capacity => new Dictionary<int, BuildRequestConfiguration>(capacity));
383capacity => new Dictionary<ConfigurationMetadata, int>(capacity));
BackEnd\Components\Scheduler\SchedulingData.cs (12)
24private readonly Dictionary<int, SchedulableRequest> _executingRequests = new Dictionary<int, SchedulableRequest>(32);
29private readonly Dictionary<int, SchedulableRequest> _blockedRequests = new Dictionary<int, SchedulableRequest>(32);
34private readonly Dictionary<int, SchedulableRequest> _yieldingRequests = new Dictionary<int, SchedulableRequest>(32);
39private readonly Dictionary<int, SchedulableRequest> _readyRequests = new Dictionary<int, SchedulableRequest>(32);
50private readonly Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>> _unscheduledRequestNodesByRequest = new Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>>(32);
59private readonly Dictionary<int, HashSet<SchedulableRequest>> _scheduledRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32);
64private readonly Dictionary<int, SchedulableRequest> _executingRequestByNode = new Dictionary<int, SchedulableRequest>(32);
69private readonly Dictionary<int, HashSet<SchedulableRequest>> _readyRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32);
74private readonly Dictionary<int, HashSet<int>> _configurationsByNode = new Dictionary<int, HashSet<int>>(32);
82private readonly Dictionary<int, int> _configurationToNode = new Dictionary<int, int>(32);
87private readonly Dictionary<int, HashSet<SchedulableRequest>> _configurationToRequests = new Dictionary<int, HashSet<SchedulableRequest>>(32);
105private readonly Dictionary<SchedulableRequest, List<SchedulableRequest>> _buildHierarchy = new Dictionary<SchedulableRequest, List<SchedulableRequest>>(32);
Evaluation\Evaluator.cs (6)
249_importsSeen = new Dictionary<string, ProjectImportElement>(StringComparer.OrdinalIgnoreCase);
251_projectSupportsReturnsAttribute = new Dictionary<ProjectRootElement, bool>();
754Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase);
755Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase);
757Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets = new Dictionary<string, LinkedListNode<ProjectTargetElement>>(StringComparer.OrdinalIgnoreCase);
1941escapedMetadata = new Dictionary<string, string>(item.Value.Metadata.Count, StringComparer.OrdinalIgnoreCase);
Instance\ProjectInstance.cs (9)
561thisAsIEvaluatorData.AfterTargets = new Dictionary<string, List<TargetSpecification>>();
562thisAsIEvaluatorData.BeforeTargets = new Dictionary<string, List<TargetSpecification>>();
1080Dictionary<string, string> dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default);
2463translator.TranslateDictionary(ref _beforeTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count));
2464translator.TranslateDictionary(ref _afterTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count));
2548Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase);
3017clone = new Dictionary<string, TValue>(0);
3021clone = new Dictionary<string, TValue>(dictionary, strComparer);
3312var projectItemToInstanceMap = keepEvaluationCache ? new Dictionary<ProjectItem, ProjectItemInstance>(items.Count) : null;
Instance\TaskFactories\AssemblyTaskFactory.cs (6)
49private Dictionary<ITask, AppDomain> _tasksAndAppDomains = new Dictionary<ITask, AppDomain>();
265_factoryIdentityParameters = new Dictionary<string, string>(taskFactoryIdentityParameters, StringComparer.OrdinalIgnoreCase);
349mergedParameters ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
558mergedParameters = new Dictionary<string, string>(taskIdentityParameters, StringComparer.OrdinalIgnoreCase);
562mergedParameters = new Dictionary<string, string>(factoryIdentityParameters, StringComparer.OrdinalIgnoreCase);
577mergedParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\TaskRegistry.cs (11)
163private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>();
450? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
451: new Dictionary<string, string>(initialCount.Value, StringComparer.OrdinalIgnoreCase);
754? new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(capacity.Value, RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact)
755: new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact);
807return new Dictionary<string, string>(initialState, StringComparer.OrdinalIgnoreCase);
812return new Dictionary<string, string>(initialCount.Value, StringComparer.OrdinalIgnoreCase);
815return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
1270_taskNamesCreatableByFactory = new Dictionary<RegisteredTaskIdentity, object>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact);
1678_usingTaskParameters ??= new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase);
1770translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase));
Logging\ParallelLogger\ParallelConsoleLogger.cs (8)
30internal Dictionary<(int nodeId, int contextId), string> propertyOutputMap = new Dictionary<(int nodeId, int contextId), string>();
68_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId);
207propertyOutputMap = new Dictionary<(int, int), string>();
209_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId);
424var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>();
1667table = new Dictionary<string, PerformanceCounter>(StringComparer.OrdinalIgnoreCase);
1721? new Dictionary<BuildEventContext, object>()
1722: new Dictionary<BuildEventContext, object>(comparer);
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase);
26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase);
29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.BuildCheck.UnitTests (26)
Microsoft.Build.CommandLine.UnitTests (11)
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" };
Microsoft.Build.Engine.OM.UnitTests (98)
Definition\Project_Tests.cs (17)
812var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
829var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
960Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
988Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
1071new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
1287IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
1316IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
1319IDictionary<string, string> projectCollectionGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
1609var project = new Project(projectRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
2420Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2434Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2458Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2528Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3254var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
3284var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
3575var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
3770var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection);
Definition\ProjectCollection_Tests.cs (5)
395var globals = new Dictionary<string, string> { { "Configuration", "Debug" } };
411var globalProperties1 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v1" } };
418var globalProperties2 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v2" } };
456new Dictionary<string, string> { { "Configuration", "Release" }, { "Platform", "Win32" } };
572var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v1" } };
Definition\ProjectItem_Tests.cs (52)
1155ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList());
1175ObjectModelHelpers.AssertItems(expectedInclude, new Project(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, projectCollection).Items.ToList());
2216var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection);
2276var project = new Project(testProject.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, env.CreateProjectCollection().Collection);
2725new Dictionary<string, string>
2735new Dictionary<string, string>
2762var expectedInitial = new Dictionary<string, string>
2767var expectedUpdateFromTrue = new Dictionary<string, string>
2804var expectedInitial = new Dictionary<string, string>
2809var expectedUpdateFromUnconditionedElement = new Dictionary<string, string>
2837var expectedUpdate = new Dictionary<string, string>
2873Dictionary<string, string> expectedUpdatei = new Dictionary<string, string>
2877Dictionary<string, string> expectedUpdatej = new Dictionary<string, string>
2944var expectedMetadata = new Dictionary<string, string>
2974var expectedMetadata = new Dictionary<string, string>
3028var expectedMetadataX = new Dictionary<string, string>
3033var expectedMetadataA = new Dictionary<string, string>
3040var expectedMetadataB = new Dictionary<string, string>
3074var expectedMetadataA = new Dictionary<string, string>
3081var expectedMetadataB = new Dictionary<string, string>
3088var expectedMetadataC = new Dictionary<string, string>
3140? new Dictionary<string, string>
3144: new Dictionary<string, string>
3168var expectedMetadataA = new Dictionary<string, string>
3187var expectedMetadataA = new Dictionary<string, string>
3214var expectedMetadataA = new Dictionary<string, string>
3254var expectedMetadataX = new Dictionary<string, string>
3262var expectedMetadata2 = new Dictionary<string, string>
3270var expectedMetadataCCC = new Dictionary<string, string>
3278var expectedMetadata1 = new Dictionary<string, string>
3287var expectedMetadataD = new Dictionary<string, string>
3295var expectedMetadataY = new Dictionary<string, string>
3345var expectedMetadataB = new Dictionary<string, string>
3350var expectedMetadataA = new Dictionary<string, string>()
3355var expectedMetadataC = new Dictionary<string, string>();
3410var expectedInitialMetadata = new Dictionary<string, string>
3416var expectedUpdatedMetadata = new Dictionary<string, string>
3452var expected_i1 = new Dictionary<string, string>
3458var expected_i2_a = new Dictionary<string, string>
3464var expected_i2_y = new Dictionary<string, string>
3501var expectedInitial = new Dictionary<string, string>
3507var expectedUpdated = new Dictionary<string, string>
3536var expectedUpdated = new Dictionary<string, string>
3551new Dictionary<string, string> {{"m", "contents"}},
3552new Dictionary<string, string> {{"m", "updated"}}
3620new Dictionary<string, string> {{"m", "contents"}},
3621new Dictionary<string, string> {{"m", "contents"}},
3622new Dictionary<string, string> {{"m", "contents"}},
3623new Dictionary<string, string> {{"m", "updated"}}
3660return new Project(p, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, c)
3689var expectedUpdated = new Dictionary<string, string>
3756var project = new Project(testFiles.ProjectFile, new Dictionary<string, string>(), null, projectCollection);
Microsoft.Build.Engine.UnitTests (595)
BackEnd\AssemblyTaskFactory_Tests.cs (25)
59taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
71taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
83taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
95taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, null, false, null, ElementLocation.Create("NONE"), String.Empty);
109taskFactory.Initialize(String.Empty, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null);
123taskFactory.Initialize(String.Empty, null, new Dictionary<string, TaskPropertyInfo>(), String.Empty, null);
175IDictionary<string, string> factoryIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
181IDictionary<string, string> taskIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
195IDictionary<string, string> factoryIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
201IDictionary<string, string> taskIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
275IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
306IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
337IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
370IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
403IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
408IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
438IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
471IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
502IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
507IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
566IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
601IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
630IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
658var taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
691_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, null, ElementLocation.Create("NONE"), String.Empty);
BackEnd\BuildManager_Tests.cs (43)
179new Dictionary<int, int[]>
202new Dictionary<string, string>(),
497ItemFilters = new Dictionary<string, List<string>>
651var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
704var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
774var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
834var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
901var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
932var data = new BuildRequestData(project.FullPath, new Dictionary<string, string>(),
1099BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1109GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1119BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1129GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1153var globalProperties = new Dictionary<string, string>();
1218BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1231GraphBuildRequestData data = new GraphBuildRequestData("foo", new Dictionary<string, string>(), Array.Empty<string>(), null);
1247new BuildRequestData("foo", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null);
1881var data = new BuildRequestData(projectFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
2412var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2473var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2531var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2579var data = new BuildRequestData(projA, new Dictionary<string, string>(), null, new[] { "Build" }, new HostServices());
2668var data = new BuildRequestData(projA, new Dictionary<string, string>(), "4.0", new[] { "Build" }, new HostServices());
2738var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
2835var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
2935var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3021var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3090var data = new BuildRequestData(projA, new Dictionary<string, string>(), null,
3375var data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "BaseTest" }, services);
3383data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "MovedTest" }, services);
3514BuildRequestData data = new BuildRequestData(fileName, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "One", "Two", "Three" }, services);
3544Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3651IDictionary<string, string> metadata = new Dictionary<string, string>(1);
3706var mainProject = new Project(mainRootElement, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection);
3730var p2pProject = new Project(p2pProjectPath, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, collection);
3800new Dictionary<string, string>(),
3857var project = new Project(root, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion,
3957new Dictionary<string, string>(),
4046var buildRequestData = new BuildRequestData(entryFile, new Dictionary<string, string>(), MSBuildDefaultToolsVersion, new[] { "EntryTarget" }, null);
4102var request1 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null);
4103var request2 = new BuildRequestData(testFiles.ProjectFile, new Dictionary<string, string>(), MSBuildConstants.CurrentToolsVersion, new[] { "Build" }, null);
4345var graph = Helpers.CreateProjectGraph(env: _env, dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } });
4354new Dictionary<string, string>() { {"property1", "value1" } }) },
BackEnd\BuildRequestConfiguration_Tests.cs (32)
44BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
58BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
66BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
74BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
81BuildRequestData config1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
90BuildRequestData config1 = new BuildRequestData(null, new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
105BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
109BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
113BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
121BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
125BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
129BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
139BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
147BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
157BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
165BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
173Dictionary<string, string> props = new Dictionary<string, string>();
182BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
196BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
204BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
205BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("File", new Dictionary<string, string>(), "ToolsVersion", Array.Empty<string>(), null), "2.0");
206BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
207BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
208BuildRequestConfiguration config5 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
219BuildRequestConfiguration config1 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
221BuildRequestConfiguration config2 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
224BuildRequestConfiguration config3 = new BuildRequestConfiguration(new BuildRequestData("file2", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null), "2.0");
227BuildRequestConfiguration config4 = new BuildRequestConfiguration(new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion2", Array.Empty<string>(), null), "2.0");
275Dictionary<string, string> globalProperties = new(StringComparer.OrdinalIgnoreCase);
310BuildRequestConfiguration configuration = new BuildRequestConfiguration(new BuildRequestData("path", new Dictionary<string, string>(), "2.0", Array.Empty<string>(), null), "2.0");
352new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
457Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\BuildRequestEngine_Tests.cs (5)
337BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
368BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
396BuildRequestData data = new BuildRequestData("TestFile", new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
449BuildRequestData data = new BuildRequestData(Path.GetFullPath("TestFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
455BuildRequestData data2 = new BuildRequestData(Path.GetFullPath("OtherFile"), new Dictionary<string, string>(), "TestToolsVersion", Array.Empty<string>(), null);
BackEnd\BuildRequestEntry_Tests.cs (10)
24BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
45BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
93BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
115BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
145BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
182BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
198BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
215BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null);
239BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
259BuildRequestConfiguration config = new BuildRequestConfiguration(1, new BuildRequestData("foo", new Dictionary<string, string?>(), "foo", Array.Empty<string>(), null), "2.0");
BackEnd\CacheAggregator_Tests.cs (11)
78configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
79configCache.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13"));
100configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
129configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
151configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
159configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
195configCache.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
213configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "a", "b" }, null), "13"));
214configCache1.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path2", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "c", "d" }, null), "13"));
225configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 1, new BuildRequestData("path3", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "e", "f" }, null), "13"));
226configCache2.AddConfiguration(new BuildRequestConfiguration(configId: 2, new BuildRequestData("path4", new Dictionary<string, string>() { ["p"] = "v" }, "13", new[] { "g", "h" }, null), "13"));
BackEnd\CacheSerialization_Tests.cs (3)
27new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1", "target2" }, null),
32new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null),
36new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
BackEnd\ConfigCache_Tests.cs (6)
27new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1" }, null),
37new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null),
46new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
74new BuildRequestData("path1", new Dictionary<string, string> { ["a1"] = "b1" }, Constants.defaultToolsVersion, new[] { "target1" }, null),
78new BuildRequestData("path2", new Dictionary<string, string> { ["a2"] = "b2" }, Constants.defaultToolsVersion, new[] { "target2" }, null),
82new BuildRequestData("path3", new Dictionary<string, string> { ["a3"] = "b3" }, Constants.defaultToolsVersion, new[] { "target3" }, null),
BackEnd\ConfigurationMetadata_Tests.cs (6)
62BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), "toolsVersion", Array.Empty<string>(), null);
88BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
104BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
113data = new BuildRequestData("file2", new Dictionary<string, string>(), ObjectModelHelpers.MSBuildDefaultToolsVersion, Array.Empty<string>(), null);
118data = new BuildRequestData("file", new Dictionary<string, string>(), "3.0", Array.Empty<string>(), null);
152Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\FullyQualifiedBuildRequest_Tests.cs (4)
19BuildRequestData data1 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
24BuildRequestData data3 = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
42FullyQualifiedBuildRequest request = new FullyQualifiedBuildRequest(new BuildRequestConfiguration(new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null), "2.0"), null, true);
48BuildRequestData data = new BuildRequestData("foo", new Dictionary<string, string>(), "tools", Array.Empty<string>(), null);
BackEnd\IntrinsicTask_Tests.cs (4)
1257Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
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\LoggingServicesLogMethod_Tests.cs (9)
841BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
867BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
906BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
947BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
1262properties: new Dictionary<string, string>());
1271IDictionary<string, string> eventProperties = new Dictionary<string, string>
1294Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties),
1420BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
BackEnd\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\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\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\TaskExecutionHost_Tests.cs (10)
143var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
159var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
169var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
608var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
624var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
642var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
1286_bucket = new ItemBucket(Array.Empty<string>(), new Dictionary<string, string>(), new Lookup(itemsByName, new PropertyDictionary<ProjectPropertyInstance>()), 0);
1290_parametersSetOnTask = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
1291_outputsReadFromTask = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
1494var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
BackEnd\TaskHostConfiguration_Tests.cs (8)
236IDictionary<string, object> parameters = new Dictionary<string, object>();
263IDictionary<string, object> parameters2 = new Dictionary<string, object>();
334var expectedGlobalProperties = new Dictionary<string, string>
457taskParameters: new Dictionary<string, object>(),
458globalParameters: new Dictionary<string, string>(),
485IDictionary<string, object> parameters = new Dictionary<string, object>();
535IDictionary<string, object> parameters = new Dictionary<string, object>();
583IDictionary<string, object> parameters = new Dictionary<string, object>();
BackEnd\TaskHostTaskComplete_Tests.cs (6)
73IDictionary<string, object> parameters = new Dictionary<string, object>();
81IDictionary<string, object> parameters2 = new Dictionary<string, object>();
136new OutOfProcTaskHostTaskResult(TaskCompleteType.Success, new Dictionary<string, object>()),
158IDictionary<string, object> parameters = new Dictionary<string, object>();
186IDictionary<string, object> parameters = new Dictionary<string, object>();
212IDictionary<string, object> parameters = new Dictionary<string, object>();
BackEnd\TaskRegistry_Tests.cs (7)
580Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
671new Dictionary<string, string>(),
1057Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
1081taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
1894new Dictionary<string, SubToolset>
1901new Dictionary<string, ProjectImportPathMatch>
2056parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
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 (8)
198var dictionary = new ObjectModel.ReadOnlyDictionary<string, string>(new Dictionary<string, string>(0));
208var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
225var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
253var backing = new Dictionary<string, string>();
269Dictionary<string, string> values = new Dictionary<string, string>();
274Dictionary<string, int> convertedValues = new Dictionary<string, int>();
340clone = new Dictionary<string, TValue>(0);
344clone = new Dictionary<string, TValue>(dictionary, strComparer);
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\Toolset_Tests.cs (12)
105Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
109subToolsets, "c:\\foo", "4.0", new Dictionary<string, ProjectImportPathMatch>
263IDictionary<string, string> globalProperties = new Dictionary<string, string>();
315IDictionary<string, string> globalProperties = new Dictionary<string, string>();
335IDictionary<string, string> globalProperties = new Dictionary<string, string>();
343IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>();
363IDictionary<string, string> globalProperties = new Dictionary<string, string>();
406IDictionary<string, string> globalProperties = new Dictionary<string, string>();
451IDictionary<string, string> globalProperties = new Dictionary<string, string>();
459IDictionary<string, string> explicitGlobalProperties = new Dictionary<string, string>();
509IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
513Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Evaluation\Evaluator_Tests.cs (27)
65using ProjectCollection collection = new(new Dictionary<string, string>(), [logger], ToolsetDefinitionLocations.Default);
1917IDictionary<string, ProjectProperty> allEvaluatedPropertiesWithNoBackingXmlAndNoDuplicates = new Dictionary<string, ProjectProperty>(StringComparer.OrdinalIgnoreCase);
2079IDictionary<string, ProjectProperty> allEvaluatedPropertiesWithNoBackingXmlAndNoDuplicates = new Dictionary<string, ProjectProperty>(StringComparer.OrdinalIgnoreCase);
2964IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2994IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3024IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3054IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3094IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3136IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3169IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3203IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3236IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3265IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3347IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3404IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3465IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3525IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3597IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3670IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3735IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3797IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
4140IDictionary<string, string> globalProperties = new Dictionary<string, string>();
4200IDictionary<string, string> globalProperties = new Dictionary<string, string>();
4252IDictionary<string, string> globalProperties = new Dictionary<string, string>();
4688new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
5128IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
5132Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Evaluation\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" } } }));
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\ProjectGraph_Tests.cs (92)
76new Dictionary<int, int[]>()
357var entryPoint1 = new ProjectGraphEntryPoint(entryFile1.Path, new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC" });
370var globalPropertiesFor1 = new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC", ["IsGraphBuild"] = "true" };
377var globalPropertiesFor2 = new Dictionary<string, string> { ["IsGraphBuild"] = "true" };
497new Dictionary<string, string> { { "Foo", "Bar" } });
598var entryPoint1 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x86" } });
599var entryPoint2 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x64" } });
637var entryPoint1 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x86" } });
638var entryPoint2 = new ProjectGraphEntryPoint(entryProject.Path, new Dictionary<string, string> { { "Platform", "x64" } });
919TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2, 3 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } });
920CreateProjectFile(env: env, projectNumber: 2, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "C" } } });
921CreateProjectFile(env: env, projectNumber: 3, projectReferences: new[] { 4 }, projectReferenceTargets: new Dictionary<string, string[]> { { "B", new[] { "D" } } });
939var projectReferenceTargets = new Dictionary<string, string[]>
966var projectReferenceTargets = new Dictionary<string, string[]>
1002TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A");
1020TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: "A");
1040TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { "B" } } }, defaultTargets: string.Empty);
1063TransientTestFile entryProject = CreateProjectFile(env: env, projectNumber: 1, projectReferences: new[] { 2 }, projectReferenceTargets: new Dictionary<string, string[]> { { "A", new[] { " ; ; " } } }, defaultTargets: string.Empty);
1391TransientTestFile entryProject = CreateProjectFile(env, 1, new[] { 2 }, new Dictionary<string, string[]> { { "A", new[] { ".default" } } }, defaultTargets: "A");
1413projectReferenceTargets: new Dictionary<string, string[]> { { "Build", new[] { "A", ".default" } } });
1430var projectReferenceTargets = new Dictionary<string, string[]>
1477projectReferenceTargets: new Dictionary<string, string[]> { { "Build", new[] { "Build" } } });
1483new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T2" } } },
1491new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T3" } } },
1499new Dictionary<string, string[]> { { "Build", new[] { MSBuildConstants.ProjectReferenceTargetsOrDefaultTargetsMarker, "T4" } } },
1522dependencyEdges: new Dictionary<int, int[]>
1526extraContentPerProjectNumber: new Dictionary<int, string>
1559expectedNodeBuildOutput: new Dictionary<ProjectGraphNode, string[]>(),
1560outputCaches: new Dictionary<ProjectGraphNode, string>(),
1574dependencyEdges: new Dictionary<int, int[]>
1578extraContentPerProjectNumber: new Dictionary<int, string>
1609expectedNodeBuildOutput: new Dictionary<ProjectGraphNode, string[]>(),
1610outputCaches: new Dictionary<ProjectGraphNode, string>(),
1644new Dictionary<int, int[]>()
1649new Dictionary<int, int[]>
1657new Dictionary<int, int[]>
1666new Dictionary<int, int[]>
1674new Dictionary<int, int[]>
1683new Dictionary<int, int[]>
1692new Dictionary<int, int[]>
1700new Dictionary<int, int[]>
1709new Dictionary<int, int[]>
1719new Dictionary<int, int[]>
1729new Dictionary<int, int[]>
1738new Dictionary<int, int[]>
1747new Dictionary<int, int[]>
1758new Dictionary<int, int[]>
1768new Dictionary<int, int[]>
1779new Dictionary<int, int[]>
1792new Dictionary<int, int[]>
1835globalProperties: new Dictionary<string, string> { { "a", "b" } },
1840projectReferenceTargets: new Dictionary<string, string[]>
2031AssertInnerBuildEvaluation(graph.GraphRoots.First(), false, new Dictionary<string, string>());
2044var graph = new ProjectGraph(root, new Dictionary<string, string> { { InnerBuildPropertyName, "foo" } });
2050AssertInnerBuildEvaluation(graph.GraphRoots.First(), true, new Dictionary<string, string>());
2125var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2164var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2191var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2245new Dictionary<string, string>(),
2246new Dictionary<string, string>
2253var graph1 = new Dictionary<int, int[]>
2261var graph2 = new Dictionary<int, int[]>
2275new Dictionary<int, int[]>(),
2282new Dictionary<int, int[]>
2331var expectedGlobalProperties = new Dictionary<string, string>(globalProperties);
2348new Dictionary<int, int[]> { { 1, null } },
2349new Dictionary<string, string> { { PropertyNames.IsGraphBuild, "xyz" } });
2378new Dictionary<int, int[]>
2384new Dictionary<int, string>(),
2385new Dictionary<int, int[]>
2394new Dictionary<int, int[]>
2400new Dictionary<int, string>
2404new Dictionary<int, int[]>
2415new Dictionary<int, int[]>
2421new Dictionary<int, string>
2425new Dictionary<int, int[]>
2434new Dictionary<int, int[]>
2440new Dictionary<int, string>
2445new Dictionary<int, int[]>
2453new Dictionary<int, int[]>
2461new Dictionary<int, string>
2467new Dictionary<int, int[]>
2500dependencyEdges: new Dictionary<int, int[]>
2508extraContentPerProjectNumber: new Dictionary<int, string>
2563dependencyEdges: new Dictionary<int, int[]>()
2568extraContentPerProjectNumber: new Dictionary<int, string>()
2669dependencyEdges: new Dictionary<int, int[]>()
2673extraContentPerProjectNumber: new Dictionary<int, string>()
2711dependencyEdges: new Dictionary<int, int[]>()
2715extraContentPerProjectNumber: new Dictionary<int, string>()
2754dependencyEdges: new Dictionary<int, int[]>()
2758globalProperties: new Dictionary<string, string> { { "BuildProjectReferences", "false" } },
Graph\ResultCacheBasedBuilds_Tests.cs (20)
183new Dictionary<int, int[]>
191new Dictionary<int, int[]>
200new Dictionary<int, int[]>
208new Dictionary<int, int[]>
217new Dictionary<int, int[]>
226new Dictionary<int, int[]>
234new Dictionary<int, int[]>
244new Dictionary<int, int[]>
254new Dictionary<int, int[]>
263new Dictionary<int, int[]>
272new Dictionary<int, int[]>
297var expectedOutput = new ExpectedNodeBuildOutput();
299var outputCaches = new OutputCacheDictionary();
339dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } },
344var expectedOutput = new ExpectedNodeBuildOutput();
346var outputCaches = new OutputCacheDictionary();
377dependencyEdges: new Dictionary<int, int[]> { { 1, new[] { 2, 3 } } },
382var expectedOutput = new ExpectedNodeBuildOutput();
384var outputCaches = new OutputCacheDictionary();
437var results = new Dictionary<string, (BuildResult Result, MockLogger Logger)>(topoSortedNodes.Count);
Instance\ProjectTaskInstance_Internal_Tests.cs (5)
32new Dictionary<string, (string, MockElementLocation)>(),
38new Dictionary<string, (string, MockElementLocation)>
50new Dictionary<string, (string, MockElementLocation)>
70parameters ??= new Dictionary<string, (string, MockElementLocation)>();
72var parametersCopy = new Dictionary<string, (string, ElementLocation)>(parameters.Count);
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 } })));
Microsoft.Build.Framework (29)
Microsoft.Build.Framework.UnitTests (12)
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)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (52)
GenerateMSBuildEditorConfigTests.cs (31)
37ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
38ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
57ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
77ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
78ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
79ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
106ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/{f*i?le1}.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
107ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/f,ile#2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
108ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/f;i!le[3].cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
134ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
135ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
156ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" } });
176ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { });
177ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" } });
178ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "MetadataName", "ToRetrieve" } });
197ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
198ITaskItem item2 = MSBuildUtil.CreateTaskItem("c:/file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
199ITaskItem item3 = MSBuildUtil.CreateTaskItem("c:/file3.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "ghi789" } });
200ITaskItem item4 = MSBuildUtil.CreateTaskItem("c:/file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFiles" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "jkl012" } });
202ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
203ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
233TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
234TaskItem item2 = new TaskItem("subDir\\file2.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
235TaskItem item3 = new TaskItem("someDir\\otherDir\\thirdDir\\..\\file3.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
267TaskItem item1 = new TaskItem("file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
268TaskItem item2 = new TaskItem("someDir\\..\\file1.cs", new Dictionary<string, string> { { "ItemType", "AdditionalFile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "def456" } });
310TaskItem property1 = new TaskItem("Property1", new Dictionary<string, string> { { "Value", longPropertyValue } });
311TaskItem property2 = new TaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
339ITaskItem item1 = MSBuildUtil.CreateTaskItem("c:\\file1.cs", new Dictionary<string, string> { { "ItemType", "Compile" }, { "MetadataName", "ToRetrieve" }, { "ToRetrieve", "abc123" } });
359ITaskItem property1 = MSBuildUtil.CreateTaskItem("Property1", new Dictionary<string, string> { { "Value", "abc123" } });
360ITaskItem property2 = MSBuildUtil.CreateTaskItem("Property2", new Dictionary<string, string> { { "Value", "def456" } });
MapSourceRootTests.cs (16)
39new TaskItem(@"c:\MyProjects\MyProject\", new Dictionary<string, string>
43new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
89new TaskItem(@"****/", new Dictionary<string, string>
93new TaskItem(@"****\|||:;\", new Dictionary<string, string>
161new TaskItem(@"c:\MyProjects\MyProject\a\a\", new Dictionary<string, string>
166new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
171new TaskItem(@"c:\MyProjects\MyProject\a\c\", new Dictionary<string, string>
250new TaskItem(path1, new Dictionary<string, string>
255new TaskItem(path2, new Dictionary<string, string>
293new TaskItem(path1, new Dictionary<string, string>
302new TaskItem(path1, new Dictionary<string, string>
311new TaskItem(path2, new Dictionary<string, string>
316new TaskItem(path2, new Dictionary<string, string>
365new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
395new TaskItem(@"c:\MyProjects\MyProject\a\b\", new Dictionary<string, string>
427new TaskItem(path1, new Dictionary<string, string>
Microsoft.Build.Tasks.Core (98)
AssemblyDependency\ReferenceTable.cs (9)
36private static readonly Dictionary<string, Tuple<RedistList, string>> s_monikerToHighestRedistList = new Dictionary<string, Tuple<RedistList, string>>(StringComparer.OrdinalIgnoreCase);
46private readonly Dictionary<string, AssemblyNameExtension> _externallyResolvedImmutableFiles = new Dictionary<string, AssemblyNameExtension>(StringComparer.OrdinalIgnoreCase);
325_resolvedSDKReferences = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
370internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer);
1368var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer);
1374var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>();
1860var fullNameToReference = new Dictionary<string, AssemblyNameReference>(References.Count, StringComparer.OrdinalIgnoreCase);
2177var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase);
3022Dictionary<string, string> removedMetadata = new Dictionary<string, string>();
BootstrapperUtil\BootstrapperBuilder.cs (8)
43private readonly Dictionary<string, XmlNode> _cultures = new Dictionary<string, XmlNode>(StringComparer.OrdinalIgnoreCase);
44private readonly Dictionary<string, ProductValidationResults> _validationResults = new Dictionary<string, ProductValidationResults>(StringComparer.Ordinal);
207var eulas = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.Ordinal);
272var builtProducts = new Dictionary<string, ProductBuilder>();
273var productsAndIncludes = new Dictionary<string, Product>();
618var availableProducts = new Dictionary<string, Product>(StringComparer.Ordinal);
620var buildQueue = new Dictionary<string, Product>(StringComparer.Ordinal);
2208var includedProducts = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase)
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase);
26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase);
29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
SystemState.cs (6)
31private Dictionary<string, FileState> upToDateLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase);
42internal Dictionary<string, FileState> instanceLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase);
47internal Dictionary<string, FileState> instanceLocalOutgoingFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase);
54private Dictionary<string, DateTime> instanceLocalLastModifiedCache = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase);
61private Dictionary<string, bool> instanceLocalDirectoryExists = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
68private Dictionary<string, string[]> instanceLocalDirectories = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.UnitTests (39)
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>();
Microsoft.Build.UnitTests.Shared (14)
ObjectModelHelpers.cs (9)
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);
1232Dictionary<string, V> dictionary = new Dictionary<string, V>(StringComparer.OrdinalIgnoreCase);
1429new Dictionary<string, string>(),
1756var nodes = new Dictionary<int, (bool IsRoot, string ProjectPath)>();
1805globalProperties ?? new Dictionary<string, string>(),
2110globalProperties ?? new Dictionary<string, string>(),
Microsoft.Build.Utilities.Core (48)
ToolLocationHelper.cs (13)
399var extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
445var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase);
619var filteredExtensionSdks = new Dictionary<string, string>();
884s_cachedTargetPlatformReferences = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
953s_cachedExtensionSdkReferences = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
1414s_vsInstallFolders = new Dictionary<string, string[]>();
2095s_cachedReferenceAssemblyPaths = new Dictionary<string, IList<string>>(StringComparer.OrdinalIgnoreCase);
2450s_cachedTargetPlatforms = new Dictionary<string, IEnumerable<TargetPlatformSDK>>(StringComparer.OrdinalIgnoreCase);
2455s_cachedExtensionSdks = new Dictionary<string, TargetPlatformSDK>(StringComparer.OrdinalIgnoreCase);
2460var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>();
3093s_chainedReferenceAssemblyPath ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3094s_cachedTargetFrameworkDisplayNames ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3674s_cachedHighestFrameworkNameForTargetFrameworkIdentifier = new Dictionary<string, FrameworkNameVersioning>(StringComparer.OrdinalIgnoreCase);
TrackedDependencies\CanonicalTrackedInputFiles.cs (8)
172DependencyTable = new Dictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase);
343var sourcesNeedingCompilation = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
687primaryFiles = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
713dependencies = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
776dependencies = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
834DependencyTable = new Dictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase);
1028Dictionary<string, bool> fileCache = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
1061var dependenciesWithoutMissingFiles = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TrackedDependencies\CanonicalTrackedOutputFiles.cs (8)
85DependencyTable = new Dictionary<string, Dictionary<string, DateTime>>(StringComparer.OrdinalIgnoreCase);
187dependencies = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase);
250DependencyTable = new Dictionary<string, Dictionary<string, DateTime>>(StringComparer.OrdinalIgnoreCase);
344var outputs = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
416var outputs = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
539dependencies = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase);
722Dictionary<string, bool> fileCache = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
755var dependenciesWithoutMissingFiles = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Utilities.UnitTests (7)
Microsoft.Cci.Extensions (14)
Microsoft.CodeAnalysis (130)
Emit\EditAndContinue\DeltaMetadataWriter.cs (12)
103_deletedTypeMembers = new Dictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>>(ReferenceEqualityComparer.Instance);
111_parameterDefList = new Dictionary<IParameterDefinition, IMethodDefinition>(Cci.SymbolEquivalentEqualityComparer.Instance);
117_customAttributesAdded = new Dictionary<EntityHandle, ImmutableArray<int>>();
120_firstParamRowMap = new Dictionary<MethodDefinitionHandle, int>();
121_existingParameterDefs = new Dictionary<IParameterDefinition, int>(ReferenceEqualityComparer.Instance);
131_addedOrChangedMethods = new Dictionary<IMethodDefinition, AddedOrChangedMethodInfo>(Cci.SymbolEquivalentEqualityComparer.Instance);
172var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>();
242var result = new Dictionary<K, V>(comparer);
497var result = new Dictionary<ITypeDefinition, ArrayBuilder<IMethodDefinition>>(ReferenceEqualityComparer.Instance);
498var typesUsedByDeletedMembers = new Dictionary<ITypeDefinition, DeletedSourceTypeDefinition>(ReferenceEqualityComparer.Instance);
1453this.added = new Dictionary<T, int>(comparer);
1546_map = new Dictionary<int, T>();
Emit\EditAndContinue\EmitBaseline.cs (15)
176generationOrdinals: new Dictionary<Cci.IDefinition, int>(),
177typesAdded: new Dictionary<Cci.ITypeDefinition, int>(),
178eventsAdded: new Dictionary<Cci.IEventDefinition, int>(),
179fieldsAdded: new Dictionary<Cci.IFieldDefinition, int>(),
180methodsAdded: new Dictionary<Cci.IMethodDefinition, int>(),
181firstParamRowMap: new Dictionary<MethodDefinitionHandle, int>(),
182propertiesAdded: new Dictionary<Cci.IPropertyDefinition, int>(),
183eventMapAdded: new Dictionary<int, int>(),
184propertyMapAdded: new Dictionary<int, int>(),
185methodImplsAdded: new Dictionary<MethodImplKey, int>(),
186customAttributesAdded: new Dictionary<EntityHandle, ImmutableArray<int>>(),
195methodsAddedOrChanged: new Dictionary<int, AddedOrChangedMethodInfo>(),
503var result = new Dictionary<int, int>();
518var result = new Dictionary<int, int>();
533var result = new Dictionary<MethodImplKey, int>();
MetadataReader\PEModule.cs (6)
49private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>();
50private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>();
673Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>>();
742var namespaceHandles = new Dictionary<NamespaceDefinitionHandle, ArrayBuilder<TypeDefinitionHandle>>(NamespaceHandleEqualityComparer.Singleton);
3798var caseInsensitiveMap = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(StringComparer.OrdinalIgnoreCase);
3866typesToAssemblyIndexMap ??= new Dictionary<string, (int FirstIndex, int SecondIndex)>();
PEWriter\MetadataWriter.cs (13)
114_signatureIndex = new Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(module.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures
123_smallMethodBodies = new Dictionary<(ImmutableArray<byte>, bool), int>(ByteSequenceBoolTupleComparer.Instance);
124_scopeIndex = new Dictionary<IImportScope, ImportScopeHandle>(new ImportScopeEqualityComparer(context));
439private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>();
440private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance);
441private readonly Dictionary<string, int> _fileRefIndex = new Dictionary<string, int>(32); // more than enough in most cases, value is a RowId
443private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(ReferenceEqualityComparer.Instance);
448private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>();
450private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(ReferenceEqualityComparer.Instance);
4247: this(writer, new Dictionary<T, int>(), lastRowId)
4274: this(writer, new Dictionary<ITypeReference, int>(ReferenceEqualityComparer.Instance), lastRowId)
4304_instanceIndex = new Dictionary<T, int>(ReferenceEqualityComparer.Instance);
4305_structuralIndex = new Dictionary<T, int>(structuralComparer);
Microsoft.CodeAnalysis.CodeStyle (29)
Microsoft.CodeAnalysis.CodeStyle.Fixes (15)
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>()
Microsoft.CodeAnalysis.CSharp (76)
Symbols\Source\SourceMemberContainerSymbol.cs (10)
210new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance);
1321var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>();
1607return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(1, ReadOnlyMemoryOfCharComparer.Instance)
1615return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(ReadOnlyMemoryOfCharComparer.Instance);
1948var methodsBySignature = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer);
1949var conversionsAsMethods = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer);
2188var indexersBySignature = new Dictionary<PropertySymbol, PropertySymbol>(MemberSignatureComparer.DuplicateSourceComparer);
2693var instanceMap = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>(ReferenceEqualityComparer.Instance);
3619var membersBySignature = new Dictionary<Symbol, Symbol>(MemberSignatureComparer.PartialMethodsComparer);
3774membersByName = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(membersByName, ReadOnlyMemoryOfCharComparer.Instance);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
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)
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>()
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>()
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (37)
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[]>
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 } };
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (32)
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>
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" } });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (5)
49var libraries = new Dictionary<string, ProjectAssetsLibrary>();
61var libraries = new Dictionary<string, ProjectAssetsTargetLibrary>();
68Compile = new Dictionary<string, ProjectAssetsTargetLibraryCompile>() { { Path.ChangeExtension(reference.ItemSpecification, "dll"), new ProjectAssetsTargetLibraryCompile() } },
74return new Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>>() { { targetFramework, libraries } };
98Frameworks = new Dictionary<string, ProjectAssetsProjectFramework>() { { targetFramework, new ProjectAssetsProjectFramework() } }
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (4)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.Features (47)
EmbeddedLanguages\RegularExpressions\RegexCharClass.cs (1)
27new()
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
Microsoft.CodeAnalysis.Features.UnitTests (4)
Microsoft.CodeAnalysis.InteractiveHost (4)
Microsoft.CodeAnalysis.LanguageServer (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol (21)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.PooledObjects.Package (4)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Microsoft.CodeAnalysis.Scripting (7)
Microsoft.CodeAnalysis.Test.Utilities (21)
Microsoft.CodeAnalysis.UnitTests (17)
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>
Microsoft.CodeAnalysis.VisualBasic (18)
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)
Microsoft.CodeAnalysis.Workspaces (66)
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>()
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (18)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.CSharp (11)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
52new Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType>();
55new Dictionary<KeyPair<CType, int>, ArrayType>();
58new Dictionary<KeyPair<CType, bool>, ParameterModifierType>();
61private static readonly Dictionary<CType, PointerType> s_pointerTable = new Dictionary<CType, PointerType>();
62private static readonly Dictionary<CType, NullableType> s_nullableTable = new Dictionary<CType, NullableType>();
Microsoft.Data.Analysis (8)
Microsoft.Data.Analysis.Interactive.Tests (1)
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)
Microsoft.DotNet.Arcade.Sdk.Tests (9)
GroupItemsByTests.cs (5)
21new TaskItem("A", new Dictionary<string, string> { { "Y", "A1.Y" }, { "Z", "A1.Z" }, { "W", "A1.W" } }),
22new TaskItem("B", new Dictionary<string, string> { { "Z", "B1.Z" } }),
23new TaskItem("A", new Dictionary<string, string> { { "X", "A2.X" }, { "Z", "A2.Z" }, { "W", "A2.W" } }),
24new TaskItem("C", new Dictionary<string, string> { { "X", "C1.X" }, { "Z", "C1.Z" } }),
25new TaskItem("C", new Dictionary<string, string> { { "Y", "C2.Y" }, { "Z", "C2.Z" } }),
Microsoft.DotNet.ArcadeLogging (5)
Microsoft.DotNet.AsmDiff (1)
Microsoft.DotNet.Build.Tasks.Feed (5)
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>()
PushToBuildStorageTests.cs (12)
33new TaskItem(PACKAGE_A, new Dictionary<string, string>
39new TaskItem(PACKAGE_B, new Dictionary<string, string>
45new TaskItem(SAMPLE_MANIFEST, new Dictionary<string, string>
458new TaskItem(".dll", new Dictionary<string, string>
462new TaskItem(".nupkg", new Dictionary<string, string>
466new TaskItem(".zip", new Dictionary<string, string>
473new TaskItem("Best.dll", new Dictionary<string, string>
477new TaskItem("Worst.dll", new Dictionary<string, string>
484new TaskItem("BestCert", new Dictionary<string, string>
488new TaskItem("WorstCert", new Dictionary<string, string>
495new TaskItem("VeryCoolStrongName", new Dictionary<string, string>
500new TaskItem("VeryTrashStrongName", new Dictionary<string, string>
Microsoft.DotNet.Build.Tasks.Packaging (32)
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>();
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
Microsoft.DotNet.Build.Tasks.Templating (1)
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)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (2)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.DotNet.GenFacades (2)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.Helix.JobSender (3)
Microsoft.DotNet.Helix.Sdk (6)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.NuGetRepack.Tasks (2)
Microsoft.DotNet.Open.Api.Tools.Tests (2)
Microsoft.DotNet.PackageTesting (6)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SharedFramework.Sdk (6)
Microsoft.DotNet.SignCheckLibrary (4)
Microsoft.DotNet.SignTool (12)
Microsoft.DotNet.SignTool.Tests (167)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (4)
Microsoft.DotNet.VersionTools (16)
Microsoft.DotNet.VersionTools.Tasks (2)
Microsoft.DotNet.VersionTools.Tests (16)
Microsoft.DotNet.XliffTasks (3)
Microsoft.DotNet.XliffTasks.Tests (8)
Microsoft.DotNet.XUnitAssert.Tests (113)
CollectionAssertsTests.cs (60)
1254 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1255 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1263 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1264 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } };
1272 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1273 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1289 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1290 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1306 var expected = new Dictionary<string, int>
1315 var actual = new Dictionary<string, int>
1340 var expected = new Dictionary<string, IEnumerable<string>>
1345 var actual = new Dictionary<string, IEnumerable<string>>
1358 var expected = new Dictionary<string, IEnumerable<string>>
1363 var actual = new Dictionary<string, IEnumerable<string>>
1387 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1388 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1396 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1397 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } };
1421 var expected = new Dictionary<string, object>()
1423 ["key"] = new Dictionary<string, object>()
1427 new Dictionary<string, object>()
1434 var actual = new Dictionary<string, object>()
1436 ["key"] = new Dictionary<string, object>()
1440 new Dictionary<string, object>()
1454 var expected = new Dictionary<string, object>()
1456 ["key"] = new Dictionary<string, object>()
1460 new Dictionary<string, object>()
1467 var actual = new Dictionary<string, object>()
1469 ["key"] = new Dictionary<string, object>()
1473 new Dictionary<string, object>()
1929 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1930 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1946 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1947 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } };
1963 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1964 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1972 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1973 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1981 var expected = new Dictionary<string, int>
1990 var actual = new Dictionary<string, int>
2007 var expected = new Dictionary<string, IEnumerable<string>>
2012 var actual = new Dictionary<string, IEnumerable<string>>
2033 var expected = new Dictionary<string, IEnumerable<string>>
2038 var actual = new Dictionary<string, IEnumerable<string>>
2054 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2055 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2071 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2072 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } };
2088 var expected = new Dictionary<string, object>()
2090 ["key"] = new Dictionary<string, object>()
2094 new Dictionary<string, object>()
2101 var actual = new Dictionary<string, object>()
2103 ["key"] = new Dictionary<string, object>()
2107 new Dictionary<string, object>()
2129 var expected = new Dictionary<string, object>()
2131 ["key"] = new Dictionary<string, object>()
2135 new Dictionary<string, object>()
2142 var actual = new Dictionary<string, object>()
2144 ["key"] = new Dictionary<string, object>()
2148 new Dictionary<string, object>()
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 } };
Microsoft.DotNet.XUnitExtensions (1)
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
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 } };
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Abstractions (1)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Microsoft.Extensions.Configuration (3)
Microsoft.Extensions.Configuration.CommandLine (2)
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
Microsoft.Extensions.Configuration.FileExtensions (2)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.KeyPerFile (1)
Microsoft.Extensions.Configuration.Xml (2)
Microsoft.Extensions.DependencyInjection (4)
Microsoft.Extensions.DependencyModel (2)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (6)
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (50)
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>
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Microsoft.Extensions.Features (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting (2)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http (3)
Microsoft.Extensions.Http.Diagnostics (7)
Microsoft.Extensions.Http.Diagnostics.Tests (44)
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\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 } },
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Http.Resilience.Tests (17)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.SourceGeneration (5)
Microsoft.Extensions.SecretManager.Tools.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (10)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
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 (3)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
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 } };
Microsoft.Gen.ComplianceReports.Unit.Tests (3)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Generated.Tests (42)
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?>
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?>
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Gen.MetricsReports.Unit.Tests (6)
Microsoft.Interop.ComInterfaceGenerator (4)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.SourceGeneration (3)
Microsoft.JSInterop (2)
Microsoft.JSInterop.Tests (2)
Microsoft.Maui (21)
Microsoft.Maui.Controls (61)
Microsoft.Maui.Controls.Build.Tasks (16)
XamlCache.cs (8)
14 readonly Dictionary<ModuleDefinition, IList<XmlnsDefinitionAttribute>> _xmlnsDefinitions = new();
15 readonly Dictionary<TypeReference, TypeDefinition> _resolvedTypes = new();
16 readonly Dictionary<(ModuleDefinition module, string fieldRefKey), FieldReference> _fieldReferenceCache = new();
17 readonly Dictionary<(ModuleDefinition module, string typeKey), TypeReference> _typeReferenceCache = new();
18 readonly Dictionary<(ModuleDefinition module, string methodRefKey), MethodReference> _methodReferenceCache = new();
19 readonly Dictionary<(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName)), TypeDefinition> _typeDefinitionCache = new();
20 readonly Dictionary<VariableDefinition, ICollection<string>> _resourceNamesInUse = new();
56 public Dictionary<TypeReference, Type> GetKnownCompiledTypeConverters(ModuleDefinition module) => _knownCompiledTypeConverters ??= new(TypeRefComparer.Default)
Microsoft.Maui.Controls.Compatibility (11)
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Controls.Xaml (7)
Microsoft.Maui.Essentials (5)
Microsoft.Maui.Graphics (1)
Microsoft.Maui.Graphics.Text.Markdig (1)
Microsoft.Maui.Resizetizer (6)
Microsoft.ML.AutoML (22)
Microsoft.ML.AutoML.Tests (9)
Microsoft.ML.CodeGenerator (15)
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)
TrainerGeneratorTests.cs (40)
30var elementProperties = new Dictionary<string, object>()
58var elementProperties = new Dictionary<string, object>()
79var elementProperties = new Dictionary<string, object>()
102var elementProperties = new Dictionary<string, object>();
119var elementProperties = new Dictionary<string, object>()
139var elementProperties = new Dictionary<string, object>();
156var elementProperties = new Dictionary<string, object>()
176var elementProperties = new Dictionary<string, object>();
193var elementProperties = new Dictionary<string, object>()
213var elementProperties = new Dictionary<string, object>();
230var elementProperties = new Dictionary<string, object>()
250var elementProperties = new Dictionary<string, object>();
267var elementProperties = new Dictionary<string, object>()
286var elementProperties = new Dictionary<string, object>();
300var elementProperties = new Dictionary<string, object>()
327var elementProperties = new Dictionary<string, object>();
344var elementProperties = new Dictionary<string, object>()
364var elementProperties = new Dictionary<string, object>();
381var elementProperties = new Dictionary<string, object>()
401var elementProperties = new Dictionary<string, object>();
418var elementProperties = new Dictionary<string, object>()
438var elementProperties = new Dictionary<string, object>();
455var elementProperties = new Dictionary<string, object>()
475var elementProperties = new Dictionary<string, object>();
492var elementProperties = new Dictionary<string, object>()
512var elementProperties = new Dictionary<string, object>();
529var elementProperties = new Dictionary<string, object>()
550var elementProperties = new Dictionary<string, object>();
567var elementProperties = new Dictionary<string, object>()
588var elementProperties = new Dictionary<string, object>();
605var elementProperties = new Dictionary<string, object>()
626var elementProperties = new Dictionary<string, object>();
643var elementProperties = new Dictionary<string, object>()
664var elementProperties = new Dictionary<string, object>();
680var elementProperties = new Dictionary<string, object>()
701var elementProperties = new Dictionary<string, object>();
718var elementProperties = new Dictionary<string, object>()
739var elementProperties = new Dictionary<string, object>();
756var elementProperties = new Dictionary<string, object>()
774var elementProperties = new Dictionary<string, object>();
TransformGeneratorTests.cs (11)
25var elementProperties = new Dictionary<string, object>();//categorical
39var elementProperties = new Dictionary<string, object>();//categorical
53var elementProperties = new Dictionary<string, object>();
67var elementProperties = new Dictionary<string, object>();
81var elementProperties = new Dictionary<string, object>();//nume to num feature 2
95var elementProperties = new Dictionary<string, object>();
109var elementProperties = new Dictionary<string, object>();//numeric feature
123var elementProperties = new Dictionary<string, object>();
137var elementProperties = new Dictionary<string, object>();
151var elementProperties = new Dictionary<string, object>();
165var elementProperties = new Dictionary<string, object>();
Microsoft.ML.Core (14)
Microsoft.ML.Core.Tests (5)
Microsoft.ML.CpuMath.UnitTests (2)
Microsoft.ML.Data (65)
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>();
Microsoft.ML.DataView (2)
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>();
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)
Microsoft.ML.FastTree (12)
Microsoft.ML.GenAI.Core (4)
Microsoft.ML.GenAI.Core.Tests (2)
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Mistral (2)
Microsoft.ML.GenAI.Phi (3)
Microsoft.ML.GenAI.Samples (1)
Microsoft.ML.ImageAnalytics (1)
Microsoft.ML.IntegrationTests (2)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.LightGbm (6)
Microsoft.ML.NugetPackageVersionUpdater (1)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.OnnxTransformer (7)
Microsoft.ML.OnnxTransformerTest (9)
Microsoft.ML.ResultProcessor (11)
ResultProcessor.cs (11)
62public static Dictionary<string, Dictionary<string, string>> MapDefaultSettingToLearner = new Dictionary<string, Dictionary<string, string>>();
70SameHeaderValues = new Dictionary<string, object>();
162return new Dictionary<string, string>();
169return new Dictionary<string, string>(0);
531predictorSettings = new Dictionary<string, string>(0);
792Dictionary<string, ResultMetric> runResults = new Dictionary<string, ResultMetric>();
890Dictionary<string, ResultMetric> perFoldMetrics = new Dictionary<string, ResultMetric>();
892Dictionary<int, Dictionary<string, float>> foldResults = new Dictionary<int, Dictionary<string, float>>();
927var metricToFoldValuesDict = new Dictionary<string, Dictionary<int, float>>();
938metricDict = new Dictionary<int, float>();
985Dictionary<string, float> valuesDict = new Dictionary<string, float>();
Microsoft.ML.Samples (27)
Dynamic\Transforms\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)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.Sweeper (4)
Microsoft.ML.TensorFlow (1)
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"));
Microsoft.ML.TimeSeries (12)
RootCauseAnalyzer.cs (9)
99Dictionary<Dictionary<string, object>, TimeSeriesPoint> dimPointMapping = new Dictionary<Dictionary<string, object>, TimeSeriesPoint>(dc);
130return new Dictionary<string, object>(keyList.Select(dim => new KeyValuePair<string, object>(dim, dimension[dim])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value));
202Dictionary<string, int> pointDistribution = new Dictionary<string, int>();
251Dictionary<BestDimension, double> entroyGainRatioMap = new Dictionary<BestDimension, double>();
293Dictionary<BestDimension, double> entropyRatioMap = new Dictionary<BestDimension, double>();
639Dictionary<string, Object> newDim = new Dictionary<string, Object>(dimension);
762ChildrenNodes = new Dictionary<string, List<TimeSeriesPoint>>();
776AnomalyDis = new Dictionary<string, int>();
777PointDis = new Dictionary<string, int>();
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 (30)
Model\TiktokenTokenizer.cs (10)
182encoder = new Dictionary<ReadOnlyMemory<byte>, int>(suggestedCapacity, ReadOnlyMemoryByteComparer.Instance);
183vocab = new Dictionary<StringSpanOrdinalKey, (int Id, string Token)>(suggestedCapacity);
184decoder = new Dictionary<int, ReadOnlyMemory<byte>>(suggestedCapacity);
1036new Dictionary<string, ModelEncoding>(StringComparer.OrdinalIgnoreCase)
1123return (new Dictionary<string, int>
1127return (new Dictionary<string, int> { { EndOfText, 50256 }, }, P50kBaseRegex(), GPT2File, Type.GetType(Gpt2TypeName), Gpt2PackageName);
1130return (new Dictionary<string, int> { { EndOfText, 199999 }, { EndOfPrompt, 200018 } }, O200kBaseRegex(), O200kBaseFile, Type.GetType(O200kBaseTypeName), O200kBasePackageName);
1133return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), P50RanksFile, Type.GetType(P50kBaseTypeName), P50kBasePackageName);
1136return (new Dictionary<string, int>
1140return (new Dictionary<string, int> { { EndOfText, 50256 } }, P50kBaseRegex(), R50RanksFile, Type.GetType(R50kBaseTypeName), R50kBasePackageName);
Microsoft.ML.Tokenizers.Tests (16)
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>()
Microsoft.ML.TorchSharp (10)
Microsoft.ML.Transforms (18)
Microsoft.ML.Vision (4)
Microsoft.NET.StringTools (1)
Microsoft.NET.StringTools.net35 (2)
Microsoft.VisualBasic.Core (4)
Microsoft.VisualStudio.LanguageServices (16)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Microsoft.VisualStudio.LanguageServices.Xaml (2)
MinimalSample (2)
MSBuild (31)
OutOfProcTaskHostNode.cs (6)
482Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties),
496return new Dictionary<string, string>(_currentConfiguration.GlobalProperties);
1041updatedEnvironment = new Dictionary<string, string>(environment, StringComparer.OrdinalIgnoreCase);
1101updatedEnvironment ??= new Dictionary<string, string>(environment, StringComparer.OrdinalIgnoreCase);
1140s_mismatchedEnvironmentValues = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.OrdinalIgnoreCase);
MSBuildTaskHost (37)
Mvc.RoutingWebSite (1)
OpenIdConnectSample (1)
PresentationBuildTasks (20)
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 (56)
PresentationCore.Tests (1)
PresentationFramework (101)
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>();
PresentationUI (9)
RazorBuildWebSite (1)
ReachFramework (87)
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>();
PrintConfig\PrintSchemaShim.cs (11)
520private static readonly IDictionary<DevModeCollate, Collation> dmCollateToQResolution = new Dictionary<DevModeCollate, Collation>(2) {
545private static readonly IDictionary<DevModeColor, OutputColor> dmColorToOutputColor = new Dictionary<DevModeColor, OutputColor>(2) {
578private static readonly IDictionary<DevModeDuplex, Duplexing> dmDuplexToDuplexing = new Dictionary<DevModeDuplex, Duplexing>(3) {
675private static readonly IDictionary<short, InputBin> dmPaperSourceToInputBin = new Dictionary<short, InputBin>(4) {
682private static IDictionary<short, PaperSourceOption> paperSourceOptions = new Dictionary<short, PaperSourceOption>() {
782private static readonly IDictionary<short, PageMediaSizeName> dmPaperSizeToPageMediaSize = new Dictionary<short, PageMediaSizeName>(101) {
911private static readonly IDictionary<uint, PageMediaType> dmMediaTypeToMediaType = new Dictionary<uint, PageMediaType>(3) {
917private static IDictionary<uint, MediaTypeOption> mediaTypeOptions = new Dictionary<uint, MediaTypeOption>() {
961private static readonly IDictionary<DevModeOrientation, PageOrientation> dmOrientationToOrientation = new Dictionary<DevModeOrientation, PageOrientation>(2) {
1029private static readonly IDictionary<short, PageQualitativeResolution> dmResToQResolution = new Dictionary<short, PageQualitativeResolution>(4) {
1036private static IDictionary<short, OutputQualityOption> outputQualityOptions = new Dictionary<short, OutputQualityOption>() {
Roslyn.Compilers.Extension (1)
Roslyn.Test.PdbUtilities (1)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (13)
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)
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 } }));
ScenarioTests.Common.Tests (1)
Shared (1)
Shared.Tests (1)
SimpleWebSite (1)
SocialSample (1)
SocialWeather (2)
Sockets.FunctionalTests (1)
Swaggatherer (2)
System.CodeDom (4)
System.Collections.Immutable (3)
System.ComponentModel.Annotations (4)
System.ComponentModel.Composition (28)
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (6)
100var originalMetadata = new Dictionary<string, object?>(_originalPartCreationInfo.GetMetadata()!, StringComparers.MetadataKeyNames);
181Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = new Dictionary<LazyMemberInfo, MemberInfo[]>();
182Dictionary<int, MemberInfo> specializedPartMembers = new Dictionary<int, MemberInfo>();
246Dictionary<Lazy<ParameterInfo>, ParameterInfo> parametersTable = new Dictionary<Lazy<ParameterInfo>, ParameterInfo>();
443Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalImport.Metadata, StringComparers.MetadataKeyNames);
460Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalExport.Metadata, StringComparers.MetadataKeyNames);
System.ComponentModel.Composition.Registration (3)
System.ComponentModel.TypeConverter (10)
System.Composition.Convention (3)
System.Composition.Hosting (4)
System.Composition.Runtime (2)
System.Composition.TypedParts (10)
System.Configuration.ConfigurationManager (2)
System.Console (2)
System.Data.Common (12)
System.Data.Odbc (8)
System.Diagnostics.DiagnosticSource (5)
System.Diagnostics.Process (3)
System.Drawing.Common.Tests (1)
System.Drawing.Primitives (2)
System.Formats.Nrbf (2)
System.Formats.Tar (4)
System.IO.Compression (1)
System.IO.FileSystem.Watcher (1)
System.IO.Packaging (18)
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.Linq (10)
System\Linq\ToCollection.cs (7)
109return new(source, comparer);
159return new Dictionary<TKey, TSource>(comparer);
174Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(capacity, comparer);
185Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(source.Length, comparer);
217return new Dictionary<TKey, TElement>(comparer);
232Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(capacity, comparer);
243Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(source.Length, comparer);
System.Linq.Expressions (28)
System.Linq.Parallel (7)
System.Linq.Queryable (2)
System.Net.Http (11)
System.Net.HttpListener (7)
System.Net.Mail (10)
System.Net.NameResolution (1)
System.Net.NetworkInformation (5)
System.Net.Ping (2)
System.Net.Primitives (4)
System.Net.Security (1)
System.Net.Sockets (2)
System.ObjectModel (1)
System.Private.CoreLib (63)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (15)
2677commandArgs.Arguments ??= new Dictionary<string, string?>();
3667eventsByName ??= new Dictionary<string, string>();
3915private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>();
3917private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>();
4533Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>();
5347opcodeTab = new Dictionary<int, string>();
5348stringTab = new Dictionary<string, string>();
5350perEventByteArrayArgIndices = new Dictionary<string, List<int>>();
5386taskTab ??= new Dictionary<int, string>();
5409keywordTab ??= new Dictionary<ulong, string>();
5434channelTab ??= new Dictionary<int, ChannelInfo>(4);
5553mapsTab ??= new Dictionary<string, Type>();
5601channelTab ??= new Dictionary<int, ChannelInfo>(4);
5927channelTab ??= new Dictionary<int, ChannelInfo>(4);
5951taskTab ??= new Dictionary<int, string>();
System.Private.DataContractSerialization (37)
System.Private.Xml (90)
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\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.Reflection.DispatchProxy (4)
System.Reflection.Emit (8)
System.Reflection.Metadata (10)
System.Reflection.MetadataLoadContext (1)
System.Resources.Extensions (8)
System.Resources.Writer (3)
System.Runtime.Caching (3)
System.Runtime.Serialization.Formatters (1)
System.Runtime.Serialization.Schema (8)
System\Runtime\Serialization\Schema\CodeExporter.cs (7)
47_namespaces = new Dictionary<string, string>();
48_clrNamespaces = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
226ExportClassDataContractHierarchy(dataContract.XmlName, dataContract, contractCodeDomInfo, new Dictionary<XmlQualifiedName, object?>());
927return GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object?>());
987DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>());
1519Dictionary<string, object?> fragments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
1612Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System.Security.Claims (3)
System.Security.Cryptography (13)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (11)
System.ServiceModel.NetFramingBase (5)
System.ServiceModel.Primitives.Tests (2)
System.ServiceModel.Syndication (4)
System.Text.Encoding.CodePages (4)
System.Text.Json (16)
System.Text.Json.SourceGeneration (5)
System.Text.RegularExpressions (16)
System.Text.RegularExpressions.Generator (7)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (4)
System.Windows.Controls.Ribbon (8)
System.Windows.Forms (15)
System.Windows.Forms.Analyzers.CSharp.Tests (7)
System.Windows.Forms.Design (18)
System.Windows.Forms.Design.Tests (51)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Primitives.TestUtilities (2)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Forms.Tests (44)
System.Windows.Input.Manipulations (1)
System.Xaml (51)
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>();
TagHelpersWebSite (4)
TaskUsageLogger (5)
Templates.Blazor.Tests (4)
Templates.Blazor.WebAssembly.Auth.Tests (4)
Templates.Blazor.WebAssembly.Tests (4)
Templates.Mvc.Tests (4)
Templates.Tests (5)
UnitTests.Common (1)
VBCSCompiler.UnitTests (30)
CompilerServerTests.cs (30)
129var resetVariables = new Dictionary<string, string>();
329var files = new Dictionary<string, string> { { "hello.cs", "♕" } };
471var files = new Dictionary<string, string> { { "c.cs", "class C {}" } };
486var files = new Dictionary<string, string> { { "c.vb", "Class C\nEnd Class" } };
544new Dictionary<string, string> {
572new Dictionary<string, string> {
638new Dictionary<string, string> {
680new Dictionary<string, string> {
710new Dictionary<string, string> {
740new Dictionary<string, string> {
761files = new Dictionary<string, string> {
780files = new Dictionary<string, string> {
798new Dictionary<string, string> {
818files = new Dictionary<string, string> {
860new Dictionary<string, string> {
876files = new Dictionary<string, string> {
896files = new Dictionary<string, string> {
913new Dictionary<string, string> {
932files = new Dictionary<string, string> {
1000var filesInDirectory = new Dictionary<string, string>()
1051new Dictionary<string, string> {
1072files = new Dictionary<string, string> {
1081additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } });
1100new Dictionary<string, string> {
1123files = new Dictionary<string, string> {
1133additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.Path } });
1251new Dictionary<string, string> {
1274files = new Dictionary<string, string> {
1403additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } });
1437additionalEnvironmentVars: new Dictionary<string, string> { { "TMP", tmp } });
VersioningWebSite (1)
WindowsFormsIntegration (4)
WinFormsControlsTest (1)
XmlFileLogger (2)
xunit.assert (4)
xunit.console (5)
Xunit.NetCore.Extensions (4)
9257 references to Dictionary
AnalyzerRunner (5)
Aspire.Azure.Security.KeyVault.Tests (2)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (38)
Components\Controls\Chart\ChartBase.cs (4)
60private Dictionary<SpanKey, OtlpSpan> _currentCache = new Dictionary<SpanKey, OtlpSpan>();
61private Dictionary<SpanKey, OtlpSpan> _newCache = new Dictionary<SpanKey, OtlpSpan>();
124var traces = new Dictionary<int, ChartTrace>
213internal bool TryCalculateHistogramPoints(List<DimensionScope> dimensions, DateTimeOffset start, DateTimeOffset end, Dictionary<int, ChartTrace> traces, List<ChartExemplar> exemplars)
Otlp\Storage\TelemetryRepository.cs (10)
37private readonly Dictionary<string, OtlpScope> _logScopes = new();
41private readonly Dictionary<ApplicationKey, int> _applicationUnviewedErrorLogs = new();
44private readonly Dictionary<string, OtlpScope> _traceScopes = new();
138public Dictionary<ApplicationKey, int> GetApplicationUnviewedErrorLogsCount()
290private bool TryAddScope(Dictionary<string, OtlpScope> scopes, InstrumentationScope? scope, [NotNullWhen(true)] out OtlpScope? s)
569public Dictionary<string, int> GetTraceFieldValues(string attributeName)
573var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute);
599public Dictionary<string, int> GetLogsFieldValues(string attributeName)
603var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute);
1083var allKnownAttributes = new Dictionary<string, List<string?>>();
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (25)
Aspire.EndToEnd.Tests (5)
Aspire.Hosting (32)
Aspire.Hosting.Azure (5)
Aspire.Hosting.Azure.AppContainers (8)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.PostgreSQL (2)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.Sql (2)
Aspire.Hosting.Azure.Tests (4)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Dapr (1)
Aspire.Hosting.Dapr.Tests (4)
Aspire.Hosting.Elasticsearch.Tests (2)
Aspire.Hosting.Kafka.Tests (2)
Aspire.Hosting.Milvus (1)
Aspire.Hosting.Milvus.Tests (2)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MongoDB.Tests (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.MySql.Tests (3)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.Oracle.Tests (3)
Aspire.Hosting.Orleans (4)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.PostgreSQL.Tests (3)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.Qdrant.Tests (4)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.SqlServer.Tests (1)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Tests (56)
Dashboard\DashboardResourceTests.cs (6)
107var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
211var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
246var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
278var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
319var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout();
357var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(dashboard, DistributedApplicationOperation.Run, app.Services).DefaultTimeout();
ExpressionResolverTests.cs (4)
65var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(source.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
97var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
116var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(test.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance, "ContainerHostName").DefaultTimeout();
126Dictionary<string, ReferenceExpression> Expressions { get; }
ProjectResourceTests.cs (9)
78var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
189var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
318var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Publish).DefaultTimeout();
361var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
383var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
408var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
435var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
622var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
667protected Dictionary<string, LaunchProfile>? Profiles { get; set; } = new();
WithEnvironmentTests.cs (13)
30var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(
53var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
66var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
82var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(project.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
98var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
115var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
130var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource,
170var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
197var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource).DefaultTimeout();
198var manifestConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout();
230var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(containerB.Resource).DefaultTimeout();
254var runConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.Run).DefaultTimeout();
260var publishConfig = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(targetBuilder.Resource, DistributedApplicationOperation.Publish).DefaultTimeout();
WithReferenceTests.cs (10)
29var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
52var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
77var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
100var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
121var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
172var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance);
191var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
207var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout();
223var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectB.Resource, DistributedApplicationOperation.Publish).DefaultTimeout();
296var config = await EnvironmentVariableEvaluator.GetEnvironmentVariablesAsync(projectA.Resource, DistributedApplicationOperation.Run, TestServiceProvider.Instance).DefaultTimeout();
Aspire.Playground.Tests (4)
Aspire.Workload.Tests (5)
BasicTestApp (2)
BasicWebSite (2)
Binding.Http.IntegrationTests (3)
blazor-devserver (1)
BoundTreeGenerator (1)
BuildBoss (8)
BuildValidator (9)
Client.ClientBase.IntegrationTests (5)
CodeGenerator (1)
ConfigurationSchemaGenerator (8)
CSharpSyntaxGenerator (1)
dotnet-openapi (3)
dotnet-svcutil.xmlserializer (10)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (9)
34private Dictionary<string, Type> _excludedTypes;
36private Dictionary<string, string> _namespaceMappings;
47internal Dictionary<string, string> NamespaceMappings { get { return _namespaceMappings; } }
339Dictionary<string, Type> foundCollectionTypes = AddSpecifiedTypesToDictionary(collectionTypesArgs, Options.Cmd.CollectionType);
382private Dictionary<string, Type> AddSpecifiedTypesToDictionary(IList<string> typeArgs, string cmd)
384Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count);
394private void AddReferencedTypesFromAssembly(Assembly assembly, Dictionary<string, Type> foundCollectionTypes)
406private void AddMscorlib(Dictionary<string, Type> foundCollectionTypes)
477internal static bool IsTypeSpecified(Type type, Dictionary<string, Type> specifiedTypes, string cmd)
dotnet-svcutil-lib (370)
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (5)
55Dictionary<string, string> methodNames = GenerateEventAsyncMethods(nameScope, _eventBasedDuplexClass, callbackInterface, _eventArgsList);
212private static Dictionary<string, string> GenerateEventAsyncMethods(CodeTypeNameScope nameScope, CodeTypeDeclaration parent, CodeTypeDeclaration callbackInterface, List<CodeTypeDeclaration> eventArgsList)
214Dictionary<string, string> methodNames = new Dictionary<string, string>();
393private static CodeTypeDeclaration CreateCallbackImplClass(CodeTypeNameScope nameScope, CodeTypeDeclaration parent, CodeTypeDeclaration callbackInterface, Dictionary<string, string> methodNames)
448private static void AddMethods(CodeTypeDeclaration callbackImpl, CodeTypeDeclaration callbackInterface, Dictionary<string, string> methodNames)
CommandProcessorOptions.cs (10)
805var foundCollectionTypes = AddSpecifiedTypesToDictionary(this.CollectionTypes, Switches.CollectionType.Name);
806var excludedTypes = AddSpecifiedTypesToDictionary(this.ExcludeTypes, Switches.ExcludeType.Name);
858private static Dictionary<string, Type> AddSpecifiedTypesToDictionary(IList<string> typeArgs, string cmd)
860Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count);
872private void AddReferencedTypesFromAssembly(Assembly assembly, Dictionary<string, Type> foundCollectionTypes, Dictionary<string, Type> excludedTypes)
892private void AddStdLibraries(Dictionary<string, Type> foundCollectionTypes, Dictionary<string, Type> excludedTypes)
911private static bool IsTypeSpecified(Type type, Dictionary<string, Type> specifiedTypes, string cmd)
945private void AddReferencedCollectionTypes(IList<string> collectionTypesArgs, Dictionary<string, Type> foundCollectionTypes)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (17)
32private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
33private Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
35private Dictionary<XmlQualifiedName, SchemaEntity> _generalEntities;
36private Dictionary<XmlQualifiedName, SchemaEntity> _parameterEntities;
43private Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>();
44private Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>();
47private Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
48private Dictionary<string, SchemaNotation> _notations;
68internal Dictionary<XmlQualifiedName, SchemaElementDecl> ElementDecls
73internal Dictionary<XmlQualifiedName, SchemaElementDecl> UndeclaredElementDecls
78internal Dictionary<XmlQualifiedName, SchemaEntity> GeneralEntities
90internal Dictionary<XmlQualifiedName, SchemaEntity> ParameterEntities
108internal Dictionary<string, bool> TargetNamespaces
113internal Dictionary<XmlQualifiedName, SchemaElementDecl> ElementDeclsByType
118internal Dictionary<XmlQualifiedName, SchemaAttDef> AttributeDecls
123internal Dictionary<string, SchemaNotation> Notations
391Dictionary<XmlQualifiedName, SchemaElementDecl> elements = _elementDecls;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (17)
19using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>;
26private Dictionary<string, string> _namespaces;
27private Dictionary<string, string> _clrNamespaces;
217private Dictionary<string, string> Namespaces
222private Dictionary<string, string> ClrNamespaces
304private void ExportClassDataContractHierarchy(XmlQualifiedName typeName, ClassDataContract classContract, ContractCodeDomInfo contractCodeDomInfo, Dictionary<XmlQualifiedName, object> contractNamesInHierarchy)
909DataContractDictionary knownTypeDictionary = GetKnownTypeContracts(dataContract);
925private DataContractDictionary GetKnownTypeContracts(DataContract dataContract)
942private DataContractDictionary GetKnownTypeContracts(ClassDataContract dataContract, Dictionary<DataContract, object> handledContracts)
978private void AddKnownTypeContracts(ClassDataContract dataContract, DataContractDictionary knownContracts)
995DataContractDictionary knownContractDictionary = GetKnownTypeContracts(dataContract, new Dictionary<DataContract, object>());
1314Dictionary<string, object> baseMemberNames = baseContractCodeDomInfo.GetMemberNames();
1315Dictionary<string, object> memberNames = contractCodeDomInfo.GetMemberNames();
1427Dictionary<string, object> fragments = new Dictionary<string, object>(StringComparer.Ordinal);
1458private static void AddToNamespace(StringBuilder builder, string fragment, Dictionary<string, object> fragments)
1492int fragmentLength, Dictionary<string, object> fragments)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (17)
14using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>;
381public virtual DataContractDictionary KnownDataContracts
499internal virtual DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract> boundContracts)
526private static Dictionary<TypeHandleRef, IntRef> s_typeToIDCache;
529private static Dictionary<Type, DataContract> s_typeToBuiltInContract;
530private static Dictionary<XmlQualifiedName, DataContract> s_nameToBuiltInContract;
531private static Dictionary<string, string> s_namespaces;
532private static Dictionary<string, XmlDictionaryString> s_clrTypeStrings;
1181internal virtual DataContractDictionary KnownDataContracts
2060internal static DataContractDictionary ImportKnownTypeAttributes(Type type)
2062DataContractDictionary knownDataContracts = null;
2063Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>();
2068private static void ImportKnownTypeAttributes(Type type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary knownDataContracts)
2168internal static void CheckAndAdd(Type type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary nameToDataContractTable)
2196internal virtual bool Equals(object other, Dictionary<DataContractPairKey, object> checkedContracts)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (14)
13using DataContractDictionary = System.Collections.Generic.Dictionary<Microsoft.Xml.XmlQualifiedName, DataContract>;
17private Dictionary<XmlQualifiedName, DataContract> _contracts;
18private Dictionary<DataContract, object> _processedContracts;
21private DataContractDictionary _knownTypesForObject;
24private Dictionary<XmlQualifiedName, object> _referencedTypesDictionary;
25private Dictionary<XmlQualifiedName, object> _referencedCollectionTypesDictionary;
57private Dictionary<XmlQualifiedName, DataContract> Contracts
69private Dictionary<DataContract, object> ProcessedContracts
91internal DataContractDictionary KnownTypesForObject
208private void AddKnownDataContracts(DataContractDictionary knownDataContracts)
348private Dictionary<XmlQualifiedName, object> GetReferencedTypes()
370private Dictionary<XmlQualifiedName, object> GetReferencedCollectionTypes()
391private void AddReferencedType(Dictionary<XmlQualifiedName, object> referencedTypes, Type type)
451Dictionary<XmlQualifiedName, object> referencedTypes = useReferencedCollectionTypes ? GetReferencedCollectionTypes() : GetReferencedTypes();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (18)
71public static Dictionary<string, string> EssentialExceptionFields
77public override Dictionary<XmlQualifiedName, DataContract> KnownDataContracts //inherited as internal
113private Dictionary<XmlQualifiedName, DataContract> _knownDataContracts;
114private static readonly Dictionary<string, string> s_essentialExceptionFields; //Contains the essential fields to serialize an Exception. Not all fields are serialized in an Exception. Some private fields
201public static Dictionary<string, string> EssentialExceptionFields
206internal override Dictionary<XmlQualifiedName, DataContract> KnownDataContracts // inherited as internal
269Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>();
308Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>();
393Dictionary<string, object> exceptionFields = GetExceptionFieldValues((Exception)value);
448private static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable)
467private Dictionary<string, object> GetExceptionFieldValues(Exception value)
487Dictionary<string, object> fieldToValueDictionary = new Dictionary<string, object>();
597private static Dictionary<string, string> ReverseDictionary(Dictionary<string, string> inDict)
599Dictionary<string, string> mapDict = new Dictionary<string, string>();
623private Dictionary<string, string> _elementNamesToMap;
626private ExceptionXmlParser(Dictionary<string, string> dictMap, string exceptionNamespace)
647public static string ParseExceptionXmlForClassDataContract(Dictionary<string, string> dictMap, string exceptionNamespace, string stringToParse)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (7)
18private Dictionary<OperationDescription, DataContractFormatAttribute> _operationAttributes = new Dictionary<OperationDescription, DataContractFormatAttribute>();
20private Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> _knownTypes;
21private Dictionary<MessagePartDescription, bool> _isNonNillableReferenceTypes;
49internal Dictionary<OperationDescription, DataContractFormatAttribute> OperationAttributes
54internal Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> KnownTypes
86Dictionary<CodeTypeReference, object> operationKnownTypes = new Dictionary<CodeTypeReference, object>(new CodeTypeReferenceComparer());
100private void AddKnownTypesForPart(OperationContractGenerationContext context, MessagePartDescription part, Dictionary<CodeTypeReference, object> operationKnownTypes)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (23)
32private readonly Dictionary<OperationDescription, PolicyAssertionCollection> _operationBindingAssertions = new Dictionary<OperationDescription, PolicyAssertionCollection>();
33private readonly Dictionary<MessageDescription, PolicyAssertionCollection> _messageBindingAssertions = new Dictionary<MessageDescription, PolicyAssertionCollection>();
34private readonly Dictionary<FaultDescription, PolicyAssertionCollection> _faultBindingAssertions = new Dictionary<FaultDescription, PolicyAssertionCollection>();
37Dictionary<OperationDescription, IEnumerable<XmlElement>> operationBindingAssertions,
38Dictionary<MessageDescription, IEnumerable<XmlElement>> messageBindingAssertions,
39Dictionary<FaultDescription, IEnumerable<XmlElement>> faultBindingAssertions,
117IEnumerable<Dictionary<MessageDescription, IEnumerable<XmlElement>>> messageAssertionEnumerator;
118IEnumerable<Dictionary<FaultDescription, IEnumerable<XmlElement>>> faultAssertionEnumerator;
119IEnumerable<Dictionary<OperationDescription, IEnumerable<XmlElement>>> operationAssertionEnumerator;
124foreach (Dictionary<FaultDescription, IEnumerable<XmlElement>> faultAssertionsSelection in faultAssertionEnumerator)
126foreach (Dictionary<MessageDescription, IEnumerable<XmlElement>> messageAssertionsSelection in messageAssertionEnumerator)
128foreach (Dictionary<OperationDescription, IEnumerable<XmlElement>> operationAssertionsSelection in operationAssertionEnumerator)
240internal static IEnumerable<Dictionary<K, V>> GetCartesianProduct<K, V>(Dictionary<K, IEnumerable<V>> sets)
242Dictionary<K, V> counterValue = new Dictionary<K, V>(sets.Count);
249yield return (Dictionary<K, V>)counterValue;
253private static KeyValuePair<K, IEnumerator<V>>[] InitializeCounter<K, V>(Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue)
274private static bool IncrementCounter<K, V>(KeyValuePair<K, IEnumerator<V>>[] digits, Dictionary<K, IEnumerable<V>> sets, Dictionary<K, V> counterValue)
310public Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>> OperationBindingAlternatives;
311public Dictionary<MessageDescription, IEnumerable<IEnumerable<XmlElement>>> MessageBindingAlternatives;
312public Dictionary<FaultDescription, IEnumerable<IEnumerable<XmlElement>>> FaultBindingAlternatives;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (9)
28private Dictionary<MessagePartDescription, CodeTypeReference> _parameterTypes;
29private Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection> _parameterAttributes;
30private Dictionary<MessagePartDescription, string> _specialPartName;
36internal Dictionary<MessagePartDescription, CodeAttributeDeclarationCollection> ParameterAttributes
46internal Dictionary<MessagePartDescription, CodeTypeReference> ParameterTypes
56internal Dictionary<MessagePartDescription, string> SpecialPartName
66internal void GenerateOperation(OperationContractGenerationContext context, ref OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes)
99private readonly Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> _knownTypes;
122internal MethodSignatureGenerator(OperationGenerator parent, OperationContractGenerationContext context, OperationFormatStyle style, bool isEncoded, IWrappedBodyTypeGenerator wrappedBodyTypeGenerator, Dictionary<MessagePartDescription, ICollection<CodeTypeReference>> knownTypes)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (15)
23private readonly Dictionary<WsdlNS.NamedItem, WsdlImportException> _importErrors = new Dictionary<WsdlNS.NamedItem, WsdlImportException>();
26private readonly Dictionary<XmlQualifiedName, WsdlContractConversionContext> _importedPortTypes = new Dictionary<XmlQualifiedName, WsdlContractConversionContext>();
27private readonly Dictionary<XmlQualifiedName, WsdlEndpointConversionContext> _importedBindings = new Dictionary<XmlQualifiedName, WsdlEndpointConversionContext>();
28private readonly Dictionary<WsdlNS.Port, ServiceEndpoint> _importedPorts = new Dictionary<WsdlNS.Port, ServiceEndpoint>();
34private readonly Dictionary<string, XmlElement> _policyDocuments = new Dictionary<string, XmlElement>();
35private readonly Dictionary<string, string> _warnings = new Dictionary<string, string>();
1688Dictionary<XmlElement, XmlElement> unique = new Dictionary<XmlElement, XmlElement>();
2287private readonly Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>> _embeddedPolicyDictionary = new Dictionary<WsdlNS.ServiceDescription, Dictionary<string, XmlElement>>();
2288private readonly Dictionary<string, XmlElement> _externalPolicyDictionary = new Dictionary<string, XmlElement>();
2289private readonly Dictionary<XmlElement, WsdlNS.ServiceDescription> _policySourceTable = new Dictionary<XmlElement, WsdlNS.ServiceDescription>();
2291internal Dictionary<XmlElement, WsdlNS.ServiceDescription> PolicySourceTable
2331Dictionary<string, XmlElement> wsdlPolicyDictionary;
2410Dictionary<string, XmlElement> wsdlPolicyDictionary;
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (3)
FilesWebSite (1)
FormatterWebSite (2)
GenericHostWebSite (1)
HealthChecksSample (2)
HelixTestRunner (1)
HtmlGenerationWebSite (1)
http2cat (4)
Identity.DefaultUI.WebSite (2)
IIS.FunctionalTests (3)
IIS.LongTests (12)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
548private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations();
572public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations()
574var dictionary = new Dictionary<string, (string, Action<XElement>)>();
593private static Dictionary<string, Func<IISDeploymentParameters, string>> PortableConfigTransformations = InitPortableWebConfigTransformations();
607public static Dictionary<string, Func<IISDeploymentParameters, string>> InitPortableWebConfigTransformations()
609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
662private static Dictionary<string, Func<IISDeploymentParameters, string>> StandaloneConfigTransformations = InitStandaloneConfigTransformations();
678public static Dictionary<string, Func<IISDeploymentParameters, string>> InitStandaloneConfigTransformations()
680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (12)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
548private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations();
572public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations()
574var dictionary = new Dictionary<string, (string, Action<XElement>)>();
593private static Dictionary<string, Func<IISDeploymentParameters, string>> PortableConfigTransformations = InitPortableWebConfigTransformations();
607public static Dictionary<string, Func<IISDeploymentParameters, string>> InitPortableWebConfigTransformations()
609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
662private static Dictionary<string, Func<IISDeploymentParameters, string>> StandaloneConfigTransformations = InitStandaloneConfigTransformations();
678public static Dictionary<string, Func<IISDeploymentParameters, string>> InitStandaloneConfigTransformations()
680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
IIS.NewShim.FunctionalTests (12)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
548private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations();
572public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations()
574var dictionary = new Dictionary<string, (string, Action<XElement>)>();
593private static Dictionary<string, Func<IISDeploymentParameters, string>> PortableConfigTransformations = InitPortableWebConfigTransformations();
607public static Dictionary<string, Func<IISDeploymentParameters, string>> InitPortableWebConfigTransformations()
609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
662private static Dictionary<string, Func<IISDeploymentParameters, string>> StandaloneConfigTransformations = InitStandaloneConfigTransformations();
678public static Dictionary<string, Func<IISDeploymentParameters, string>> InitStandaloneConfigTransformations()
680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (12)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
548private static Dictionary<string, (string, Action<XElement>)> InvalidConfigTransformations = InitInvalidConfigTransformations();
572public static Dictionary<string, (string, Action<XElement>)> InitInvalidConfigTransformations()
574var dictionary = new Dictionary<string, (string, Action<XElement>)>();
593private static Dictionary<string, Func<IISDeploymentParameters, string>> PortableConfigTransformations = InitPortableWebConfigTransformations();
607public static Dictionary<string, Func<IISDeploymentParameters, string>> InitPortableWebConfigTransformations()
609var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
662private static Dictionary<string, Func<IISDeploymentParameters, string>> StandaloneConfigTransformations = InitStandaloneConfigTransformations();
678public static Dictionary<string, Func<IISDeploymentParameters, string>> InitStandaloneConfigTransformations()
680var dictionary = new Dictionary<string, Func<IISDeploymentParameters, string>>();
illink (96)
Linker.Dataflow\CompilerGeneratedState.cs (9)
20 readonly Dictionary<TypeDefinition, MethodDefinition> _compilerGeneratedTypeToUserCodeMethod;
21 readonly Dictionary<TypeDefinition, TypeArgumentInfo> _generatedTypeToTypeArgumentInfo;
28 readonly Dictionary<MethodDefinition, MethodDefinition> _compilerGeneratedMethodToUserCodeMethod;
33 readonly Dictionary<TypeDefinition, Dictionary<MethodDefinition, List<IMemberDefinition>>?> _cachedTypeToCompilerGeneratedMembers;
41 _cachedTypeToCompilerGeneratedMembers = new Dictionary<TypeDefinition, Dictionary<MethodDefinition, List<IMemberDefinition>>?> ();
130 var generatedTypeToTypeArgs = new Dictionary<TypeDefinition, TypeArgumentInfo> ();
252 Dictionary<MethodDefinition, List<IMemberDefinition>>? compilerGeneratedCallees = null;
326 Dictionary<TypeDefinition, TypeArgumentInfo> generatedTypeToTypeArgs,
Linker.Dataflow\MethodBodyScanner.cs (15)
15using LocalVariableStore = System.Collections.Generic.Dictionary<
132 private static void NewKnownStack (Dictionary<int, Stack<StackSlot>> knownStacks, int newOffset, Stack<StackSlot> newStack)
181 static void ValidateNoReferenceToReference (LocalVariableStore locals, MethodDefinition method, int ilOffset)
199 Dictionary<KeyType, ValueBasicBlockPair> valueCollection,
281 LocalVariableStore locals = new (methodIL.Variables.Count);
283 Dictionary<int, Stack<StackSlot>> knownStacks = new Dictionary<int, Stack<StackSlot>> ();
703 private static void ScanExceptionInformation (Dictionary<int, Stack<StackSlot>> knownStacks, MethodIL methodIL)
762 LocalVariableStore locals)
825 LocalVariableStore locals,
842 LocalVariableStore locals,
861 protected void StoreInReference (MultiValue target, MultiValue source, MethodDefinition method, Instruction operation, LocalVariableStore locals, int curBasicBlock, ref InterproceduralState ipState, int? parameterIndex)
948 LocalVariableStore locals,
1011 internal MultiValue DereferenceValue (MultiValue maybeReferenceValue, LocalVariableStore locals, ref InterproceduralState interproceduralState)
1056 LocalVariableStore locals,
1085 LocalVariableStore locals,
Linker\Annotations.cs (14)
49 protected readonly Dictionary<AssemblyDefinition, AssemblyAction> assembly_actions = new Dictionary<AssemblyDefinition, AssemblyAction> ();
55 protected readonly Dictionary<IMetadataTokenProvider, MessageOrigin> marked_pending = new Dictionary<IMetadataTokenProvider, MessageOrigin> ();
57 protected readonly Dictionary<TypeDefinition, (TypePreserve preserve, bool applied)> preserved_types = new Dictionary<TypeDefinition, (TypePreserve, bool)> ();
59 protected readonly Dictionary<TypeDefinition, TypePreserveMembers> preserved_type_members = new ();
60 protected readonly Dictionary<ExportedType, TypePreserveMembers> preserved_exportedtype_members = new ();
61 protected readonly Dictionary<IMemberDefinition, List<MethodDefinition>> preserved_methods = new Dictionary<IMemberDefinition, List<MethodDefinition>> ();
64 protected readonly Dictionary<AssemblyDefinition, ISymbolReader> symbol_readers = new Dictionary<AssemblyDefinition, ISymbolReader> ();
65 readonly Dictionary<IMemberDefinition, LinkerAttributesInformation> linker_attributes = new Dictionary<IMemberDefinition, LinkerAttributesInformation> ();
66 readonly Dictionary<object, Dictionary<IMetadataTokenProvider, object>> custom_annotations = new Dictionary<object, Dictionary<IMetadataTokenProvider, object>> ();
67 protected readonly Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>> resources_to_remove = new Dictionary<AssemblyDefinition, HashSet<EmbeddedResource>> ();
540 if (!custom_annotations.TryGetValue (key, out Dictionary<IMetadataTokenProvider, object>? slots))
551 if (!custom_annotations.TryGetValue (key, out Dictionary<IMetadataTokenProvider, object>? slots)) {
Linker\LinkContext.cs (12)
66 readonly Dictionary<string, AssemblyAction> _actions;
67 readonly Dictionary<string, string> _parameters;
78 readonly Dictionary<AssemblyDefinition, bool> _isTrimmable;
133 public Dictionary<string, bool> FeatureSettings { get; init; }
141 public Dictionary<string, AssemblyAction> Actions {
166 public Dictionary<int, bool> WarnAsError { get; set; }
188 public Dictionary<string, bool> SingleWarn { get; set; }
781 readonly Dictionary<MethodReference, MethodDefinition?> methodresolveCache = new ();
782 readonly Dictionary<FieldReference, FieldDefinition?> fieldresolveCache = new ();
783 readonly Dictionary<TypeReference, TypeDefinition?> typeresolveCache = new ();
784 readonly Dictionary<ExportedType, TypeDefinition?> exportedTypeResolveCache = new ();
1044 readonly Dictionary<string, Pair> perAssembly = new ();
ILLink.RoslynAnalyzer (23)
DynamicallyAccessedMembersAnalyzer.cs (5)
189 (Location[]? sourceLocation, Dictionary<string, string?>? DAMArgs) = (!attributableSymbolLocation.IsInSource
211 (Location[]? sourceLocation, Dictionary<string, string?>? DAMArgs) = (!attributableSymbolLocation.IsInSource
235 (Location[]? sourceLocation, Dictionary<string, string?>? DAMArgs) = (!attributableSymbolLocation.IsInSource
317 private static (Location[]?, Dictionary<string, string?>?) CreateArguments (Location attributableSymbolLocation, DynamicallyAccessedMemberTypes mismatchedArgument)
319 Dictionary<string, string?>? DAMArgument = new ();
ILLink.Tasks (7)
CreateRuntimeRootDescriptorFile.cs (7)
94 readonly Dictionary<string, string> namespaceDictionary = new Dictionary<string, string> ();
95 readonly Dictionary<string, string> classIdsToClassNames = new Dictionary<string, string> ();
96 readonly Dictionary<string, ClassMembers> classNamesToClassMembers = new Dictionary<string, ClassMembers> ();
97 readonly Dictionary<FeatureSwitchMembers, Dictionary<string, ClassMembers>> featureSwitchMembers = new ();
312 foreach ((var fs, var members) in featureSwitchMembers.Select (kv => (kv.Key, kv.Value))) {
409 Dictionary<string, ClassMembers> currentFeatureSwitchMembers = featureSwitchMembers[featureSwitch.Value];
Infrastructure.Common (9)
InMemory.FunctionalTests (83)
InProcessWebSite (1)
installer.tasks (1)
Interop.FunctionalTests (5)
IOperationGenerator (2)
KeyManagementSimulator (1)
Microsoft.Analyzers.Extra (12)
Microsoft.Analyzers.Local (11)
CallAnalysis\CallAnalyzer.Registrar.cs (4)
52var dict = new Dictionary<string, string[]>
66public void RegisterMethods(Dictionary<string, string[]> methods, Action<OperationAnalysisContext, IInvocationOperation> action)
144public void RegisterProperties(Dictionary<string, string[]> props, Action<OperationAnalysisContext, IPropertyReferenceOperation> action)
200public void RegisterInterfaceMethods(Dictionary<string, string[]> methods, Action<OperationAnalysisContext, IInvocationOperation> action)
Microsoft.Arcade.Test.Common (2)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.App.CodeFixes (3)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Core.Test (7)
Microsoft.AspNetCore.Authentication.Google (1)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (3)
Microsoft.AspNetCore.Authentication.OAuth (2)
Microsoft.AspNetCore.Authentication.Test (27)
Microsoft.AspNetCore.Authentication.Twitter (4)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.BrowserTesting (7)
BrowserManagerConfiguration.cs (6)
205Env = configuration.GetValue<Dictionary<string, string>>(nameof(BrowserTypeLaunchOptions.Env)),
216private static T BindMultiValueMap<T>(IConfigurationSection processArgsMap, Func<Dictionary<string, HashSet<string>>, T> mapper)
235var argsMap = new Dictionary<string, HashSet<string>>();
249foreach (var (value, enabled) in arg.Get<Dictionary<string, bool>>())
284static HashSet<string> InitializeMapValue(Dictionary<string, HashSet<string>> argsMap, string argName)
299true => configuration.Get<Dictionary<string, bool>>().Where(kvp => kvp.Value == true).Select(kvp => kvp.Key).ToArray()
Microsoft.AspNetCore.Components (42)
Microsoft.AspNetCore.Components.Authorization.Tests (4)
Microsoft.AspNetCore.Components.Endpoints (31)
FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (8)
9: IDictionaryBufferAdapter<ReadOnlyDictionary<TKey, TValue>, Dictionary<TKey, TValue>, TKey, TValue>
12public static Dictionary<TKey, TValue> Add(ref Dictionary<TKey, TValue> buffer, TKey key, TValue value)
18public static Dictionary<TKey, TValue> CreateBuffer() =>
21public static ReadOnlyDictionary<TKey, TValue> ToResult(Dictionary<TKey, TValue> buffer) =>
31Dictionary<TKey, TValue>,
34Dictionary<TKey, TValue>,
43Dictionary<TKey, TValue>,
FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (7)
55var _ when type == (typeof(Dictionary<TKey, TValue>)) => true,
96Dictionary<TKey, TValue>,
97DictionaryBufferAdapter<Dictionary<TKey, TValue>, TKey, TValue>,
98Dictionary<TKey, TValue>,
101Dictionary<TKey, TValue>, TKey, TValue>(valueTypeConverter),
138var _ when type == (typeof(Dictionary<TKey, TValue>)) =>
139ConcreteTypeDictionaryConverterFactory<Dictionary<TKey, TValue>, TKey, TValue>.Instance.CreateConverter(type, options),
Microsoft.AspNetCore.Components.Endpoints.Tests (92)
Binding\FormDataMapperTests.cs (79)
26var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
46var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
66var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
78private FormDataReader CreateFormDataReader(Dictionary<string, StringValues> collection, CultureInfo invariantCulture, IFormFileCollection formFileCollection = null)
80var dictionary = new Dictionary<FormKey, StringValues>(collection.Count);
97var collection = new Dictionary<string, StringValues>() { };
119var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") };
136var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("abc") };
162var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
179var collection = new Dictionary<string, StringValues>() { };
196var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues(value) };
213var collection = new Dictionary<string, StringValues>() { ["value.Slug"] = new StringValues(value) };
239var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") };
257var collection = new Dictionary<string, StringValues>() { ["value"] = new StringValues("(1,1)") };
273var collection = new Dictionary<string, StringValues>() { };
290var data = new Dictionary<string, StringValues>() { };
306var data = new Dictionary<string, StringValues>() { ["[0]"] = "10" };
322var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "11" }) };
340var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) };
358var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "Red", "Blue" }) };
376var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a" }) };
401var data = new Dictionary<string, StringValues>() { ["values"] = new StringValues(new[] { "10", "a", "11" }) };
431var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
462var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
508var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
569var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
609var collection = new Dictionary<string, StringValues>()
897var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
898CanDeserialize_Dictionary<Dictionary<int, int>, Dictionary<int, int>, int, int>(expected);
931var collection = new Dictionary<string, StringValues>()
960var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
961CanDeserialize_Dictionary<IDictionary<int, int>, Dictionary<int, int>, int, int>(expected);
984var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
985var collection = new Dictionary<string, StringValues>()
1014var expected = new Dictionary<int, int>() { [0] = 10, [1] = 11, [2] = 12, [3] = 13, [4] = 14, [5] = 15, [6] = 16, [7] = 17, [8] = 18, [9] = 19, };
1015var collection = new Dictionary<string, StringValues>()
1044var collection = new Dictionary<string, StringValues>() { };
1066var data = new Dictionary<string, StringValues>(Enumerable.Range(0, size)
1084var result = FormDataMapper.Map<Dictionary<int, int>>(reader, options);
1105var expected = new Dictionary<int, int>
1118var collection = new Dictionary<string, StringValues>()
1141var result = FormDataMapper.Map<Dictionary<int, int>>(reader, options);
1144var dictionary = Assert.IsType<Dictionary<int, int>>(result);
1166var expected = new Dictionary<int, int>
1177var collection = new Dictionary<string, StringValues>()
1200var result = FormDataMapper.Map<Dictionary<int, int>>(reader, options);
1203var dictionary = Assert.IsType<Dictionary<int, int>>(result);
1226var collection = new Dictionary<string, StringValues>()
1254var collection = new Dictionary<string, StringValues>()
1290var data = new Dictionary<string, StringValues>()
1315var data = new Dictionary<string, StringValues>()
1356var data = new Dictionary<string, StringValues>()
1415var data = new Dictionary<string, StringValues>()
1486var data = new Dictionary<string, StringValues>()
1545var data = new Dictionary<string, StringValues>()
1590var data = new Dictionary<string, StringValues>()
1629var data = new Dictionary<string, StringValues>()
1660var data = new Dictionary<string, StringValues>()
1679var data = new Dictionary<string, StringValues>()
1698var data = new Dictionary<string, StringValues>()
1717var data = new Dictionary<string, StringValues>()
1739var data = new Dictionary<string, StringValues>()
1761var data = new Dictionary<string, StringValues>()
1787var data = new Dictionary<string, StringValues>()
1812var data = new Dictionary<string, StringValues>()
1832var data = new Dictionary<string, StringValues>()
1852var data = new Dictionary<string, StringValues>() { };
1875var data = new Dictionary<string, StringValues>() { ["value"] = "20" };
1906var data = new Dictionary<string, StringValues>();
1934var data = new Dictionary<string, StringValues>();
1967var data = new Dictionary<string, StringValues>();
1989var data = new Dictionary<string, StringValues>();
2012var data = new Dictionary<string, StringValues>();
2045var data = new Dictionary<string, StringValues>();
2080var data = new Dictionary<string, StringValues>()
2447public Dictionary<int, RecursiveDictionaryTree> Children { get; set; }
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Forms.Tests (4)
Microsoft.AspNetCore.Components.Performance (2)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (13)
Microsoft.AspNetCore.Components.Server.Tests (13)
Circuits\CircuitHostTest.cs (9)
422Dictionary<string, object> parameters = new()
448Dictionary<string, object> parameters = new()
473Dictionary<string, object> parameters = new()
506Dictionary<string, object> parameters = new()
543Dictionary<string, object> parameters = new()
573Dictionary<string, object> parameters = new()
587private async Task AddComponentAsync<TComponent>(CircuitHost circuitHost, int ssrComponentId, Dictionary<string, object> parameters = null, string componentKey = "")
604private async Task UpdateComponentAsync<TComponent>(CircuitHost circuitHost, int ssrComponentId, Dictionary<string, object> parameters = null, string componentKey = "")
671private ComponentMarker CreateMarker(Type type, string locationHash, Dictionary<string, object> parameters = null, string componentKey = "")
Microsoft.AspNetCore.Components.Tests (45)
Microsoft.AspNetCore.Components.Web (22)
Forms\Mapping\FormMappingContext.cs (11)
13private Dictionary<string, FormMappingError>? _errors;
15private Dictionary<string, Dictionary<string, FormMappingError>>? _errorsByFormName;
43_errorsByFormName?.TryGetValue(formName, out var formErrors) == true &&
55private static IEnumerable<FormMappingError> GetAllErrorsCore(Dictionary<string, FormMappingError>? errors)
72return _errorsByFormName?.TryGetValue(formName, out var formErrors) == true ?
92_errorsByFormName?.TryGetValue(formName, out var formErrors) == true &&
101private static void AddErrorCore(Dictionary<string, FormMappingError> errors, string key, FormattableString error, string? attemptedValue, ref List<KeyValuePair<string, FormMappingError>>? pendingErrors)
118_errorsByFormName ??= new Dictionary<string, Dictionary<string, FormMappingError>>();
119if (!_errorsByFormName.TryGetValue(formName, out var formErrors))
150if (_errorsByFormName == null || !_errorsByFormName.TryGetValue(formName, out var formErrors))
Microsoft.AspNetCore.Components.Web.Tests (7)
Microsoft.AspNetCore.Components.WebAssembly (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (14)
Hosting\WebAssemblyHostConfigurationTest.cs (14)
15var initialData = new Dictionary<string, string>() {
41var initialData = new Dictionary<string, string>() { { "color", "blue" } };
65var initialData = new Dictionary<string, string>() { { "color", "blue" } };
83var initialData = new Dictionary<string, string>() {
96var section = configuration.GetSection("wheels").AsEnumerable(makePathsRelative: true).ToDictionary(k => k.Key, v => v.Value);
110var initialData = new Dictionary<string, string>() { { "color", "blue" } };
127var dic1 = new Dictionary<string, string>()
134var dic2 = new Dictionary<string, string>()
141var dic3 = new Dictionary<string, string>()
161var dict = configuration.GetSection("Mem1").AsEnumerable(makePathsRelative: true).ToDictionary(k => k.Key, v => v.Value);
167var dict2 = configuration.GetSection("Mem2").AsEnumerable(makePathsRelative: true).ToDictionary(k => k.Key, v => v.Value);
173var dict3 = configuration.GetSection("Mem3").AsEnumerable(makePathsRelative: true).ToDictionary(k => k.Key, v => v.Value);
186var dic1 = new Dictionary<string, string>()
190var dic2 = new Dictionary<string, string>()
Microsoft.AspNetCore.Components.WebView (7)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.Test (4)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
Microsoft.AspNetCore.DataProtection (5)
Microsoft.AspNetCore.DataProtection.Tests (15)
RegistryPolicyResolverTests.cs (11)
21var registryEntries = new Dictionary<string, object>();
37var registryEntries = new Dictionary<string, object>()
58var registryEntries = new Dictionary<string, object>()
75var registryEntries = new Dictionary<string, object>()
92var registryEntries = new Dictionary<string, object>()
116var registryEntries = new Dictionary<string, object>()
152var registryEntries = new Dictionary<string, object>()
174var registryEntries = new Dictionary<string, object>()
204var registryEntries = new Dictionary<string, object>()
226var registryEntries = new Dictionary<string, object>()
251private static RegistryPolicy RunTestWithRegValues(Dictionary<string, object> regValues)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Microsoft.AspNetCore.Grpc.JsonTranscoding (24)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (6)
387public static Dictionary<string, RouteParameter> ResolveRouteParameterDescriptors(
391var routeParameterDescriptors = new Dictionary<string, RouteParameter>(StringComparer.Ordinal);
474public static Dictionary<string, FieldDescriptor> ResolveQueryParameterDescriptors(
475Dictionary<string, RouteParameter> routeParameters,
504var queryParameters = new Dictionary<string, FieldDescriptor>();
508static void RecursiveVisitMessages(Dictionary<string, FieldDescriptor> queryParameters, List<FieldDescriptor> existingParameters, MessageDescriptor messageDescriptor, List<FieldDescriptor> path)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (9)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (13)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (6)
387public static Dictionary<string, RouteParameter> ResolveRouteParameterDescriptors(
391var routeParameterDescriptors = new Dictionary<string, RouteParameter>(StringComparer.Ordinal);
474public static Dictionary<string, FieldDescriptor> ResolveQueryParameterDescriptors(
475Dictionary<string, RouteParameter> routeParameters,
504var queryParameters = new Dictionary<string, FieldDescriptor>();
508static void RecursiveVisitMessages(Dictionary<string, FieldDescriptor> queryParameters, List<FieldDescriptor> existingParameters, MessageDescriptor messageDescriptor, List<FieldDescriptor> path)
Microsoft.AspNetCore.HeaderParsing.Tests (2)
Microsoft.AspNetCore.Hosting (6)
Microsoft.AspNetCore.Hosting.Tests (23)
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>
Microsoft.AspNetCore.Http (24)
Microsoft.AspNetCore.Http.Abstractions (2)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Tests (18)
HttpConnectionDispatcherTests.cs (18)
228var values = new Dictionary<string, StringValues>();
308var values = new Dictionary<string, StringValues>();
350var values = new Dictionary<string, StringValues>();
388var values = new Dictionary<string, StringValues>();
427var values = new Dictionary<string, StringValues>();
467var values = new Dictionary<string, StringValues>();
530var values = new Dictionary<string, StringValues>();
598var values = new Dictionary<string, StringValues>();
661var values = new Dictionary<string, StringValues>();
765var values = new Dictionary<string, StringValues>();
907var values = new Dictionary<string, StringValues>();
1842var values = new Dictionary<string, StringValues>();
1894var values = new Dictionary<string, StringValues>();
2570var values = new Dictionary<string, StringValues>();
2630var values = new Dictionary<string, StringValues>();
2687var values = new Dictionary<string, StringValues>();
3699var values = new Dictionary<string, StringValues>();
3736var values = new Dictionary<string, StringValues>();
Microsoft.AspNetCore.Http.Extensions (23)
src\Components\Endpoints\src\FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (8)
9: IDictionaryBufferAdapter<ReadOnlyDictionary<TKey, TValue>, Dictionary<TKey, TValue>, TKey, TValue>
12public static Dictionary<TKey, TValue> Add(ref Dictionary<TKey, TValue> buffer, TKey key, TValue value)
18public static Dictionary<TKey, TValue> CreateBuffer() =>
21public static ReadOnlyDictionary<TKey, TValue> ToResult(Dictionary<TKey, TValue> buffer) =>
31Dictionary<TKey, TValue>,
34Dictionary<TKey, TValue>,
43Dictionary<TKey, TValue>,
src\Components\Endpoints\src\FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (7)
55var _ when type == (typeof(Dictionary<TKey, TValue>)) => true,
96Dictionary<TKey, TValue>,
97DictionaryBufferAdapter<Dictionary<TKey, TValue>, TKey, TValue>,
98Dictionary<TKey, TValue>,
101Dictionary<TKey, TValue>, TKey, TValue>(valueTypeConverter),
138var _ when type == (typeof(Dictionary<TKey, TValue>)) =>
139ConcreteTypeDictionaryConverterFactory<Dictionary<TKey, TValue>, TKey, TValue>.Instance.CreateConverter(type, options),
Microsoft.AspNetCore.Http.Extensions.Tests (14)
Microsoft.AspNetCore.Http.Microbenchmarks (4)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.Http.Results.Tests (6)
Microsoft.AspNetCore.Http.Tests (2)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.FunctionalTests (3)
Microsoft.AspNetCore.Identity.InMemory.Test (3)
Microsoft.AspNetCore.Identity.Test (1)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.JsonPatch.Tests (19)
Internal\DictionaryAdapterTest.cs (15)
22var dictionary = new Dictionary<string, int>(StringComparer.Ordinal);
42var dictionary = new Dictionary<int, object>();
64var dictionary = new Dictionary<int, object>();
92var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
119var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
144var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
164var dictionary = new Dictionary<Guid, object>();
184var dictionary = new Dictionary<Guid, int>();
203var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
221var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
239var dictionary = new Dictionary<string, Rectangle>(StringComparer.Ordinal);
262var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
281var dictionary = new Dictionary<Uri, object>();
300var dictionary = new Dictionary<string, List<object>>();
324var dictionary = new Dictionary<string, object>();
Microsoft.AspNetCore.Mvc.Abstractions (5)
Microsoft.AspNetCore.Mvc.Abstractions.Test (2)
Microsoft.AspNetCore.Mvc.Api.Analyzers (6)
Microsoft.AspNetCore.Mvc.ApiExplorer (9)
Microsoft.AspNetCore.Mvc.Core (42)
ApplicationModels\ApplicationModelFactory.cs (7)
60var actionsByMethod = new Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>>();
61var actionsByRouteName = new Dictionary<string, List<(ActionModel, SelectorModel)>>(StringComparer.OrdinalIgnoreCase);
86var attributeRoutingConfigurationErrors = new Dictionary<MethodInfo, string>();
131var routeValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase)
174Dictionary<MethodInfo, List<(ActionModel, SelectorModel)>> actionsByMethod,
188Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName,
219Dictionary<string, List<(ActionModel action, SelectorModel selector)>> actionsByRouteName)
Microsoft.AspNetCore.Mvc.Core.Test (138)
Controllers\ControllerBinderDelegateProviderTest.cs (24)
43var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
97var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
165var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
207var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
257var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
293var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
342var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
401var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
436var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
484var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
532var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
579var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
629var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
668var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
708var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
749var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
811var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
874var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
962var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
990var boundPropertyTypes = new Dictionary<string, Type>
998var inputPropertyValues = new Dictionary<string, object>
1021var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
1176var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
1228var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
Infrastructure\ControllerActionInvokerTest.cs (17)
858var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
883var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
909var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
932var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
955var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1134var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1162var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1192var actionParameters = new Dictionary<string, object> { { "i", inputParam1 }, { "s", inputParam2 } };
1215var actionParameters = new Dictionary<string, object> { ["value"] = 3 };
1241var actionParameters = new Dictionary<string, object> { ["value"] = 3 };
1271var actionParameters = new Dictionary<string, object> { { "s", inputParam2 }, { "i", inputParam1 } };
1301var actionParameters = new Dictionary<string, object> { { "value", inputParam } };
1330var actionParameters = new Dictionary<string, object> { { "i", "Some Invalid Value" }, { "s", inputParam2 } };
1453var actionParameters = new Dictionary<string, object> { { "input", inputParam }, };
1478var actionParameters = new Dictionary<string, object> { { "input", inputParam }, };
1502var actionParameters = new Dictionary<string, object>();
1526var actionParameters = new Dictionary<string, object>();
ModelBinding\Binders\DictionaryModelBinderTest.cs (22)
21var values = new Dictionary<string, string>()
61var values = new Dictionary<string, string>()
72var dictionary = new Dictionary<int, string>();
101var dictionaryWithOne = new Dictionary<string, string>(StringComparer.Ordinal)
105var dictionaryWithThree = new Dictionary<string, string>(StringComparer.Ordinal)
196var dictionary = new Dictionary<string, string>(StringComparer.Ordinal)
233var dictionary = new Dictionary<string, string>(StringComparer.Ordinal)
268var dictionaryWithOne = new Dictionary<long, int>
272var dictionaryWithThree = new Dictionary<long, int>
288var stringDictionary = dictionary.ToDictionary(kvp => kvp.Key.ToString(CultureInfo.InvariantCulture), kvp => kvp.Value.ToString(CultureInfo.InvariantCulture));
319var dictionary = new Dictionary<int, ModelWithProperties>
324var stringDictionary = new Dictionary<string, string>
412private IActionResult ActionWithDictionaryParameter(Dictionary<string, string> parameter) => null;
452Assert.Empty(Assert.IsType<Dictionary<string, string>>(bindingContext.Result.Model));
487Assert.Empty(Assert.IsType<Dictionary<string, string>>(bindingContext.Result.Model));
496private IActionResult ActionWithDefaultValueDictionaryParameter(Dictionary<string, string> parameter = null) => null;
595{ typeof(Dictionary<int, int>), true },
641var backingStore = dictionary.ToDictionary(
657var backingStore = dictionary.ToDictionary(
700public Dictionary<string, string> DictionaryProperty { get; set; }
702public Dictionary<int, ModelWithProperties> DictionaryWithComplexValuesProperty { get; set; }
704public Dictionary<long, int> DictionaryWithValueTypesProperty { get; set; }
ModelBinding\EnumerableValueProviderTest.cs (9)
11protected static Dictionary<string, StringValues> BackingStore { get; } = new Dictionary<string, StringValues>
32var backingStore = new Dictionary<string, StringValues>();
87var expected = new Dictionary<string, string>
120var expected = new Dictionary<string, string>
142var expected = new Dictionary<string, string>
207var backingStore = new Dictionary<string, StringValues>
238var store = new Dictionary<string, StringValues>(BackingStore)
292Dictionary<string, StringValues> values,
305Dictionary<string, StringValues> values,
Microsoft.AspNetCore.Mvc.Core.TestCommon (2)
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
Microsoft.AspNetCore.Mvc.FunctionalTests (37)
Microsoft.AspNetCore.Mvc.IntegrationTests (168)
DictionaryModelBinderIntegrationTest.cs (111)
25ParameterType = typeof(Dictionary<string, int>)
41var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
65ParameterType = typeof(Dictionary<string, int>)
81var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
102ParameterType = typeof(Dictionary<string, int>)
119var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
156ParameterType = typeof(Dictionary<string, int>)
172var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
193ParameterType = typeof(Dictionary<string, int>)
209var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
224var impliedPrefixDictionary = new Dictionary<string, StringValues>
230var reversedImpliedPrefixDictionary = new Dictionary<string, StringValues>
236var longFormDictionary = new Dictionary<string, StringValues>
245var longerFormDictionary = new Dictionary<string, StringValues>
255var longestFormDictionary = new Dictionary<string, StringValues>
269var noPrefixDictionary = new Dictionary<string, StringValues>
275var reversedNoPrefixDictionary = new Dictionary<string, StringValues>
331var expectedDictionary = new Dictionary<string, int>
344ParameterType = typeof(Dictionary<string, int>),
353var model = Assert.IsType<Dictionary<string, int>>(result.Model);
366var expectedDictionary = new Dictionary<string, int>
381ParameterType = typeof(Dictionary<string, int>),
390var model = Assert.IsType<Dictionary<string, int>>(result.Model);
405ParameterType = typeof(Dictionary<string, int>)
421var model = Assert.IsType<Dictionary<string, int>>(modelBindingResult.Model);
440ParameterType = typeof(Dictionary<string, int>),
510ParameterType = typeof(Dictionary<string, Person>)
526var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
544var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } };
555ParameterType = typeof(Dictionary<string, Person>)
564var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
582var expectedDictionary = new Dictionary<string, Person> { { "key0", new Person { Id = 10 } } };
593ParameterType = typeof(Dictionary<string, Person>)
602var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
617var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } };
628ParameterType = typeof(Dictionary<string, Person>)
637var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
652var expectedDictionary = new Dictionary<string, Person> { { "42", new Person { Id = 10 } } };
663ParameterType = typeof(Dictionary<string, Person>)
672var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
708ParameterType = typeof(Dictionary<string, Person>)
724var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
752ParameterType = typeof(Dictionary<string, Person>)
763var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
787ParameterType = typeof(Dictionary<string, Person>)
803var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
827ParameterType = typeof(Dictionary<string, Person>)
843var model = Assert.IsType<Dictionary<string, Person>>(modelBindingResult.Model);
862ParameterType = typeof(Dictionary<string, Person>),
909var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } };
914ParameterType = typeof(Dictionary<string, string[]>)
927var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
941var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } };
952ParameterType = typeof(Dictionary<string, string[]>)
961var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
975var expectedDictionary = new Dictionary<string, string[]> { { "key0", new[] { "10", "11" } } };
986ParameterType = typeof(Dictionary<string, string[]>)
995var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
1014var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } };
1025ParameterType = typeof(Dictionary<string, string[]>)
1034var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
1053var expectedDictionary = new Dictionary<string, string[]> { { "42", new[] { "10", "11" } } };
1064ParameterType = typeof(Dictionary<string, string[]>)
1073var model = Assert.IsType<Dictionary<string, string[]>>(modelBindingResult.Model);
1091typeof(Dictionary<string, string>)
1094typeof(Dictionary<string, string>),
1096typeof(Dictionary<string, string>)
1121typeof(Dictionary<string, string>)
1124typeof(Dictionary<string, string>),
1126typeof(Dictionary<string, string>)
1160var expectedDictionary = new Dictionary<string, string>
1210ParameterType = typeof(Dictionary<SuccessfulModel, SuccessfulModel>),
1239ParameterType = typeof(Dictionary<string, string>)
1255var model = Assert.IsType<Dictionary<string, string>>(modelBindingResult.Model);
1293ParameterType = typeof(Dictionary<string, NonNullPerson>)
1309var model = Assert.IsType<Dictionary<string, NonNullPerson>>(modelBindingResult.Model);
1359var expectedDictionary = new Dictionary<DayOfWeek, string>
1368ParameterType = typeof(Dictionary<DayOfWeek, string>)
1394var expectedDictionary = new Dictionary<string, DayOfWeek>
1404ParameterType = typeof(Dictionary<string, DayOfWeek>)
1416var model = Assert.IsType<Dictionary<string, DayOfWeek>>(modelBindingResult.Model);
1446ParameterType = typeof(Dictionary<string, NonNullPersonWithRequiredProperties>)
1462var model = Assert.IsType<Dictionary<string, NonNullPersonWithRequiredProperties>>(modelBindingResult.Model);
1726private void SampleMethod_ComplexType(Dictionary<string, Person> parameter = null) { }
1727private void SampleMethod_SimpleType(Dictionary<string, int> parameter = null) { }
GenericModelBinderIntegrationTest.cs (17)
266ParameterType = typeof(Dictionary<string, int>[])
282var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model);
283var dictionary = Assert.Single(model);
311ParameterType = typeof(Dictionary<string, int>[])
327var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model);
328var dictionary = Assert.Single(model);
356ParameterType = typeof(Dictionary<string, int>[])
372var model = Assert.IsType<Dictionary<string, int>[]>(modelBindingResult.Model);
514ParameterType = typeof(Dictionary<string, List<int>>)
531var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model);
563ParameterType = typeof(Dictionary<string, List<int>>)
579var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model);
611ParameterType = typeof(Dictionary<string, List<int>>)
627var model = Assert.IsType<Dictionary<string, List<int>>>(modelBindingResult.Model);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (5)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (34)
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (21)
30var input = new Dictionary<string, object>
54var input = new Dictionary<string, object>
76var input = new Dictionary<string, object>
97var input = new Dictionary<string, object>
118var input = new Dictionary<string, object>
139var input = new Dictionary<string, object>
160var input = new Dictionary<string, object>
182var input = new Dictionary<string, object>
204var input = new Dictionary<string, object>
226var input = new Dictionary<string, object>
247var input = new Dictionary<string, object>
268var input = new Dictionary<string, object>
289var input = new Dictionary<string, object>
309var value = new Dictionary<string, string>
314var input = new Dictionary<string, object>
324var roundTripValue = Assert.IsType<Dictionary<string, string>>(values[key]);
334var value = new Dictionary<string, int>
339var input = new Dictionary<string, object>
349var roundTripValue = Assert.IsType<Dictionary<string, int>>(values[key]);
Microsoft.AspNetCore.Mvc.Razor (6)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Razor.Test (16)
RazorViewEngineTest.cs (16)
23private static readonly Dictionary<string, object> _areaTestContext = new Dictionary<string, object>()
29private static readonly Dictionary<string, object> _controllerTestContext = new Dictionary<string, object>()
34private static readonly Dictionary<string, object> _pageTestContext = new Dictionary<string, object>()
658var routeValues = _controllerTestContext;
725var routeValues = _areaTestContext;
1142var routeValues = _controllerTestContext;
1200var routeValues = _areaTestContext;
1283var routeValues = new Dictionary<string, object>
1295var routesInActionDescriptor = new Dictionary<string, string>()
1324var routeValues = new Dictionary<string, object>
1328var routesInActionDescriptor = new Dictionary<string, string>()
1358var routeValues = new Dictionary<string, object>
1363var routesInActionDescriptor = new Dictionary<string, string>()
1393var routeValues = new Dictionary<string, object>()
1833var routeValues = new Dictionary<string, object>
1870var routeValues = new Dictionary<string, object>
Microsoft.AspNetCore.Mvc.RazorPages (3)
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (26)
FormActionTagHelperTest.cs (6)
313public static TheoryData<string, Dictionary<string, string>, string> AreaRouteValuesData
317return new TheoryData<string, Dictionary<string, string>, string>
335Dictionary<string, string> routeValues,
352var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } };
389Dictionary<string, string> routeValues,
406var expectedRouteValues = new Dictionary<string, object> { { "area", expectedArea } };
Microsoft.AspNetCore.Mvc.Test (2)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.Testing.Tasks (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (20)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (78)
ControllerUnitTestabilityTests.cs (6)
324var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
360var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
397var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
436var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
474var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
508var routeValues = new Dictionary<string, object>() { { "route", "sample" } };
DefaultHtmlGeneratorTest.cs (12)
116var htmlAttributes = new Dictionary<string, object>
171var htmlAttributes = new Dictionary<string, object>
201var htmlAttributes = new Dictionary<string, object>
225var htmlAttributes = new Dictionary<string, object>
249var htmlAttributes = new Dictionary<string, object>
271var htmlAttributes = new Dictionary<string, object>
293var htmlAttributes = new Dictionary<string, object>
316var htmlAttributes = new Dictionary<string, object>
369var htmlAttributes = new Dictionary<string, object>
399var htmlAttributes = new Dictionary<string, object>
424var htmlAttributes = new Dictionary<string, object>
471var htmlAttributes = new Dictionary<string, object>
Infrastructure\TempDataSerializerTestBase.cs (21)
30var input = new Dictionary<string, object>
54var input = new Dictionary<string, object>
76var input = new Dictionary<string, object>
97var input = new Dictionary<string, object>
118var input = new Dictionary<string, object>
139var input = new Dictionary<string, object>
160var input = new Dictionary<string, object>
182var input = new Dictionary<string, object>
204var input = new Dictionary<string, object>
226var input = new Dictionary<string, object>
247var input = new Dictionary<string, object>
268var input = new Dictionary<string, object>
289var input = new Dictionary<string, object>
309var value = new Dictionary<string, string>
314var input = new Dictionary<string, object>
324var roundTripValue = Assert.IsType<Dictionary<string, string>>(values[key]);
334var value = new Dictionary<string, int>
339var input = new Dictionary<string, object>
349var roundTripValue = Assert.IsType<Dictionary<string, int>>(values[key]);
Rendering\HtmlHelperHiddenTest.cs (13)
24var htmlAttributes1 = new Dictionary<string, object>
184var attributes = new Dictionary<string, object> { { "data-key", "value" } };
310var attributes = new Dictionary<string, object> { { "baz", "BazValue" } };
425var attributes = new Dictionary<string, object>
447var attributes = new Dictionary<string, object>
467var attributes = new Dictionary<string, object>
534var attributes = new Dictionary<string, object> { { "data-test", "val" } };
573var attributes = new Dictionary<string, object> { { "data-test", "val" } };
665var attributes = new Dictionary<string, object> { { "key", "value" } };
731var attributes = new Dictionary<string, object>
809var attributes = new Dictionary<string, object>
876var attributes = new Dictionary<string, object>
986public Dictionary<string, string> Property3 { get; } = new Dictionary<string, string>();
Microsoft.AspNetCore.Mvc.Views.TestCommon (3)
Microsoft.AspNetCore.OpenApi (18)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.OutputCaching (5)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin.Tests (2)
Microsoft.AspNetCore.RateLimiting (3)
Microsoft.AspNetCore.Razor.Runtime (9)
Microsoft.AspNetCore.Razor.Runtime.Test (7)
Microsoft.AspNetCore.Razor.Test (4)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Rewrite.Tests (6)
Microsoft.AspNetCore.Routing (34)
Microsoft.AspNetCore.Routing.FunctionalTests (3)
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Microsoft.AspNetCore.Routing.Tests (15)
ConstraintMatcherTest.cs (9)
23var constraints = new Dictionary<string, IRouteConstraint>
50var constraints = new Dictionary<string, IRouteConstraint>
69var constraints = new Dictionary<string, IRouteConstraint>
84var constraints = new Dictionary<string, IRouteConstraint>
104var constraints = new Dictionary<string, IRouteConstraint>
124var constraints = new Dictionary<string, IRouteConstraint>
144var constraints = new Dictionary<string, IRouteConstraint>
164var constraints = new Dictionary<string, IRouteConstraint>
193private TestSink SetUpMatch(Dictionary<string, IRouteConstraint> constraints, bool loggerEnabled)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (25)
Internal\ConfigurationReader.cs (7)
41var certificates = new Dictionary<string, CertificateConfig>(0, StringComparer.OrdinalIgnoreCase);
121private static Dictionary<string, SniConfig> ReadSni(IConfigurationSection sniConfig, string endpointName)
123var sniDictionary = new Dictionary<string, SniConfig>(0, StringComparer.OrdinalIgnoreCase);
275Dictionary<string, SniConfig> sni,
293public Dictionary<string, SniConfig> Sni { get; }
319private static bool CompareSniDictionaries(Dictionary<string, SniConfig> lhs, Dictionary<string, SniConfig> rhs)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (42)
SniOptionsSelectorTests.cs (30)
27var sniDictionary = new Dictionary<string, SniConfig>
62var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary;
94var sniDictionary = new Dictionary<string, SniConfig>
119var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary;
140var sniDictionary = new Dictionary<string, SniConfig>
165var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary;
188var sniDictionary = new Dictionary<string, SniConfig>
213var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary;
214var fullChainDictionary = mockCertificateConfigLoader.CertToFullChain;
252var sniDictionary = new Dictionary<string, SniConfig>
277var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary;
297var sniDictionary = new Dictionary<string, SniConfig>
322var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary;
355var sniDictionary = new Dictionary<string, SniConfig>
370var pathDictionary = mockCertificateConfigLoader.CertToPathDictionary;
387var sniDictionary = new Dictionary<string, SniConfig>
414var sniDictionary = new Dictionary<string, SniConfig>
455var sniDictionary = new Dictionary<string, SniConfig>
508var sniDictionary = new Dictionary<string, SniConfig>
528var sniDictionary = new Dictionary<string, SniConfig>
552var sniDictionary = new Dictionary<string, SniConfig>
580var sniDictionary = new Dictionary<string, SniConfig>
611var sniDictionary = new Dictionary<string, SniConfig>
644var sniDictionary = new Dictionary<string, SniConfig>
674var sniDictionary = new Dictionary<string, SniConfig>
708var sniDictionary = new Dictionary<string, SniConfig>
737var sniDictionary = new Dictionary<string, SniConfig>
773var sniDictionary = new Dictionary<string, SniConfig>
915public Dictionary<object, string> CertToPathDictionary { get; } = new Dictionary<object, string>(ReferenceEqualityComparer.Instance);
916public Dictionary<object, X509Certificate2Collection> CertToFullChain { get; } = new Dictionary<object, X509Certificate2Collection>(ReferenceEqualityComparer.Instance);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (9)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (33)
TypeNameHelperTest.cs (9)
16[InlineData(typeof(Dictionary<int, string>), "System.Collections.Generic.Dictionary<int, string>")]
17[InlineData(typeof(Dictionary<int, List<string>>), "System.Collections.Generic.Dictionary<int, System.Collections.Generic.List<string>>")]
64[InlineData(typeof(Dictionary<int, string>), "Dictionary<int, string>")]
65[InlineData(typeof(Dictionary<int, List<string>>), "Dictionary<int, List<string>>")]
122var openDictionaryType = typeof(Dictionary<,>);
140{ typeof(Dictionary<,>), false , "Dictionary<,>" },
142{ typeof(Dictionary<,>), true , "System.Collections.Generic.Dictionary<,>" },
228{ typeof(Dictionary<int, string>), "System.Collections.Generic.Dictionary" },
229{ typeof(Dictionary<int, List<string>>), "System.Collections.Generic.Dictionary" },
Microsoft.AspNetCore.SignalR.Client.Core (10)
HubConnection.cs (10)
728var readers = default(Dictionary<string, object>);
761private Dictionary<string, object>? PackageStreamingParams(ConnectionState connectionState, ref object?[] args, out List<string>? streamIds)
763Dictionary<string, object>? readers = null;
818private void LaunchStreams(ConnectionState connectionState, Dictionary<string, object>? readers, CancellationToken cancellationToken)
1075var readers = default(Dictionary<string, object>);
1225var readers = default(Dictionary<string, object>);
2120private readonly Dictionary<string, InvocationRequest> _pendingCalls = new Dictionary<string, InvocationRequest>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (14)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (4)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (7)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (4)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
Microsoft.AspNetCore.SignalR.Tests (5)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities (13)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities.Tests (45)
Microsoft.Build (423)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (11)
128Dictionary<string, MetadataReference> consumedMetadataReferences = pair.Metadata;
147Dictionary<string, ICollection<ProjectItemInstance>> itemListsToBeBatched = GetItemListsToBeBatched(consumedMetadataReferences, consumedItemReferences, lookup, elementLocation);
206private static Dictionary<string, ICollection<ProjectItemInstance>> GetItemListsToBeBatched(
207Dictionary<string, MetadataReference> consumedMetadataReferences, // Key is [string] potentially qualified metadata name
215var itemListsToBeBatched = new Dictionary<string, ICollection<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default);
302Dictionary<string, ICollection<ProjectItemInstance>> itemListsToBeBatched,
303Dictionary<string, MetadataReference> consumedMetadataReferences,
325Dictionary<string, string> itemMetadataValues = GetItemMetadataValues(item, consumedMetadataReferences, elementLocation);
387private static Dictionary<string, string> GetItemMetadataValues(
389Dictionary<string, MetadataReference> consumedMetadataReferences,
392var itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (7)
249if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable))
408private async Task<bool> BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects)
522Dictionary<string, string> propertiesTable,
542var projectProperties = new Dictionary<string, string>[projects.Length];
567out Dictionary<string, string> preProjectPropertiesTable))
611out Dictionary<string, string> additionalProjectPropertiesTable))
616var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\Lookup.cs (21)
19using ItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>;
20using ItemTypeToItemsMetadataUpdateDictionary = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<Microsoft.Build.Execution.ProjectItemInstance, Microsoft.Build.BackEnd.Lookup.MetadataModifications>>;
83private Dictionary<ProjectItemInstance, ProjectItemInstance> _cloneTable;
142private ItemTypeToItemsMetadataUpdateDictionary PrimaryModifyTable
172private ItemTypeToItemsMetadataUpdateDictionary SecondaryModifyTable
200internal List<string> GetPropertyOverrideMessages(Dictionary<string, string> lookupHash)
340foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable)
342Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType;
395foreach (KeyValuePair<string, Dictionary<ProjectItemInstance, MetadataModifications>> entry in PrimaryModifyTable)
473Dictionary<ProjectItemInstance, MetadataModifications> allModifies = null;
503Dictionary<ProjectItemInstance, MetadataModifications> modifies;
779Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType;
808private void ApplyModifies(ItemDictionary<ProjectItemInstance> result, Dictionary<ProjectItemInstance, MetadataModifications> allModifies)
892private void ApplyModificationsToTable(IItemDictionary<ProjectItemInstance> table, string itemType, ItemsMetadataUpdateDictionary modify)
915private void MergeModificationsIntoModificationTable(Dictionary<ProjectItemInstance, MetadataModifications> modifiesOfType,
968private void MustNotBeInTable(ItemTypeToItemsMetadataUpdateDictionary table, ProjectItemInstance item)
970ItemsMetadataUpdateDictionary tableOfItemsOfSameType = null;
1037private Dictionary<string, MetadataModification> _modifications;
1333private ItemTypeToItemsMetadataUpdateDictionary _modifies;
1410internal ItemTypeToItemsMetadataUpdateDictionary Modifies
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (34)
23using ItemVectorPartition = System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Build.Execution.ProjectItemInstance>>;
31using ItemVectorPartitionCollection = System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IList<Microsoft.Build.Execution.ProjectItemInstance>>>;
158out ItemVectorPartitionCollection itemVectorsInTargetInputs,
159out ItemVectorPartitionCollection itemVectorTransformsInTargetInputs,
160out Dictionary<string, string> discreteItemsInTargetInputs,
161out ItemVectorPartitionCollection itemVectorsInTargetOutputs,
162out Dictionary<string, string> discreteItemsInTargetOutputs,
403out ItemVectorPartitionCollection itemVectorsInTargetInputs,
404out ItemVectorPartitionCollection itemVectorTransformsInTargetInputs,
405out Dictionary<string, string> discreteItemsInTargetInputs,
406out ItemVectorPartitionCollection itemVectorsInTargetOutputs,
407out Dictionary<string, string> discreteItemsInTargetOutputs,
516ItemVectorPartitionCollection itemVectorsInTargetInputs,
517ItemVectorPartitionCollection itemVectorTransformsInTargetInputs,
518Dictionary<string, string> discreteItemsInTargetInputs,
589ItemVectorPartitionCollection itemVectorsInTargetInputs,
590ItemVectorPartitionCollection itemVectorsInTargetOutputs,
605ItemVectorPartition inputItemVectors = itemVectorsInTargetInputs[itemVectorType];
606ItemVectorPartition outputItemVectors = itemVectorsInTargetOutputs[itemVectorType];
738ItemVectorPartitionCollection itemVectorsInTargetInputs,
739ItemVectorPartitionCollection itemVectorTransformsInTargetInputs,
740Dictionary<string, string> discreteItemsInTargetInputs,
796out ItemVectorPartitionCollection itemVectors,
797ItemVectorPartitionCollection itemVectorTransforms,
798out Dictionary<string, string> discreteItems,
829ItemVectorPartitionCollection itemVectorCollection;
847ItemVectorPartition itemVectorPartition = itemVectorCollection[itemVectorType];
864private static bool IsItemVectorEmpty(ItemVectorPartitionCollection itemVectors)
866foreach (KeyValuePair<string, ItemVectorPartition> item in itemVectors)
882private static List<string> GetItemSpecsFromItemVectors(ItemVectorPartitionCollection itemVectors)
886foreach (KeyValuePair<string, ItemVectorPartition> item in itemVectors)
901private static IEnumerable<string> GetItemSpecsFromItemVectors(ItemVectorPartitionCollection itemVectors, string itemType, ItemVectorPartition itemVectorPartition)
BackEnd\Components\Scheduler\SchedulingData.cs (12)
24private readonly Dictionary<int, SchedulableRequest> _executingRequests = new Dictionary<int, SchedulableRequest>(32);
29private readonly Dictionary<int, SchedulableRequest> _blockedRequests = new Dictionary<int, SchedulableRequest>(32);
34private readonly Dictionary<int, SchedulableRequest> _yieldingRequests = new Dictionary<int, SchedulableRequest>(32);
39private readonly Dictionary<int, SchedulableRequest> _readyRequests = new Dictionary<int, SchedulableRequest>(32);
50private readonly Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>> _unscheduledRequestNodesByRequest = new Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>>(32);
59private readonly Dictionary<int, HashSet<SchedulableRequest>> _scheduledRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32);
64private readonly Dictionary<int, SchedulableRequest> _executingRequestByNode = new Dictionary<int, SchedulableRequest>(32);
69private readonly Dictionary<int, HashSet<SchedulableRequest>> _readyRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32);
74private readonly Dictionary<int, HashSet<int>> _configurationsByNode = new Dictionary<int, HashSet<int>>(32);
82private readonly Dictionary<int, int> _configurationToNode = new Dictionary<int, int>(32);
87private readonly Dictionary<int, HashSet<SchedulableRequest>> _configurationToRequests = new Dictionary<int, HashSet<SchedulableRequest>>(32);
105private readonly Dictionary<SchedulableRequest, List<SchedulableRequest>> _buildHierarchy = new Dictionary<SchedulableRequest, List<SchedulableRequest>>(32);
BackEnd\Components\Scheduler\SchedulingPlan.cs (5)
37private Dictionary<string, PlanConfigData> _configPathToData = new Dictionary<string, PlanConfigData>();
42private Dictionary<int, PlanConfigData> _configIdToData = new Dictionary<int, PlanConfigData>();
47private Dictionary<int, List<Stack<PlanConfigData>>> _configIdToPaths = new Dictionary<int, List<Stack<PlanConfigData>>>();
110Dictionary<int, double> accumulatedTimeByConfiguration = new Dictionary<int, double>();
461private void RecursiveAccumulateConfigurationTimes(SchedulableRequest request, Dictionary<int, double> accumulatedTimeByConfiguration)
BuildCheck\Infrastructure\ConfigurationProvider.cs (13)
28private readonly ConcurrentDictionary<string, Dictionary<string, string>> _editorConfigData = new ConcurrentDictionary<string, Dictionary<string, string>>(StringComparer.InvariantCultureIgnoreCase);
52var configuration = GetConfiguration(projectFullPath, ruleId);
162private Dictionary<string, string> FilterDictionaryByKeys(string keyFilter, Dictionary<string, string> originalConfiguration, bool updateKey = false)
164var filteredConfig = new Dictionary<string, string>();
190private Dictionary<string, string> FetchEditorConfigRules(string projectFullPath)
192var editorConfigRules = _editorConfigData.GetOrAdd(projectFullPath, (key) =>
194Dictionary<string, string> config;
206Dictionary<string, string> filteredData = FilterDictionaryByKeys($"{BuildCheck_ConfigurationKey}.", config);
213internal Dictionary<string, string> GetConfiguration(string projectFullPath, string ruleId)
215var config = FetchEditorConfigRules(projectFullPath);
237var config = GetConfiguration(projectFullPath, ruleId);
Definition\ToolsetReader.cs (7)
88internal static string ReadAllToolsets(Dictionary<string, Toolset> toolsets, PropertyDictionary<ProjectPropertyInstance> environmentProperties, PropertyDictionary<ProjectPropertyInstance> globalProperties, ToolsetDefinitionLocations locations)
103Dictionary<string, Toolset> toolsets,
345Dictionary<string, Toolset> toolsets,
397protected abstract Dictionary<string, ProjectImportPathMatch> GetProjectImportSearchPathsTable(string toolsVersion, string os);
403Dictionary<string, Toolset> toolsets,
459Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
499var importSearchPathsTable = GetProjectImportSearchPathsTable(toolsVersion.Name, NativeMethodsShared.GetOSNameForExtensionsPath());
Evaluation\Evaluator.cs (11)
107private readonly Dictionary<string, ProjectImportElement> _importsSeen;
119private readonly Dictionary<ProjectRootElement, bool> _projectSupportsReturnsAttribute;
754Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase);
755Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase);
757Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets = new Dictionary<string, LinkedListNode<ProjectTargetElement>>(StringComparer.OrdinalIgnoreCase);
849var pluginSettings = item.Metadata.ToDictionary(m => m.Key, m => m.EscapedValue);
1030private void ReadTargetElement(ProjectTargetElement targetElement, LinkedList<ProjectTargetElement> activeTargetsByEvaluationOrder, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets)
1054private void AddBeforeAndAfterTargetMappings(ProjectTargetElement targetElement, Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets, Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget, Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget)
1937Dictionary<string, string> escapedMetadata = null;
Graph\GraphBuilder.cs (12)
88var allParsedProjects = FindGraphNodes();
120private void AddEdges(Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects)
134private void AddEdgesFromProjectReferenceItems(Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects, GraphEdges edges)
136Dictionary<ProjectGraphNode, HashSet<ProjectGraphNode>> transitiveReferenceCache = new(allParsedProjects.Count);
202var projectsByPath = new Dictionary<string, List<ProjectGraphNode>>();
308Dictionary<string, ImmutableDictionary<string, string>> globalPropertiesForProjectConfiguration = new(StringComparer.OrdinalIgnoreCase);
312Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new();
442Dictionary<ConfigurationMetadata, ParsedProject> allParsedProjects)
444var nodeStates = new Dictionary<ProjectGraphNode, NodeVisitationState>();
528var globalProperties = configurationMetadata.GlobalProperties.ToDictionary();
552private Dictionary<ConfigurationMetadata, ParsedProject> FindGraphNodes()
597Dictionary<string, string> globalProperties,
Instance\ProjectInstance.cs (10)
385var projectItemToInstanceMap = this.CreateItemsSnapshot(project.Items, project.ItemTypes.Count, keepEvaluationCache);
659var projectItemToInstanceMap = this.CreateItemsSnapshot(new ReadOnlyCollection<ProjectItem>(data.Items), data.ItemTypes.Count, keepEvaluationCache);
1080Dictionary<string, string> dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default);
1454Dictionary<string, List<string>> IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.ConditionedProperties
2548Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase);
2597Dictionary<string, string> globalProperties,
3014Dictionary<string, TValue> clone;
3289private void CreateEvaluatedIncludeSnapshotIfRequested(bool keepEvaluationCache, ICollection<ProjectItem> items, Dictionary<ProjectItem, ProjectItemInstance> projectItemToInstanceMap)
3308private Dictionary<ProjectItem, ProjectItemInstance> CreateItemsSnapshot(ICollection<ProjectItem> items, int itemTypeCount, bool keepEvaluationCache)
3312var projectItemToInstanceMap = keepEvaluationCache ? new Dictionary<ProjectItem, ProjectItemInstance>(items.Count) : null;
Instance\TaskRegistry.cs (11)
156private Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> _taskRegistrations;
163private readonly Dictionary<string, List<RegisteredTaskRecord>> _overriddenTasks = new Dictionary<string, List<RegisteredTaskRecord>>();
431Dictionary<string, string> taskFactoryParameters = null;
447private static Dictionary<string, string> CreateTaskFactoryParametersDictionary(int? initialCount = null)
685Dictionary<string, string> taskFactoryParameters,
751private static Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>> CreateRegisteredTaskDictionary(int? capacity = null)
1144private Dictionary<RegisteredTaskIdentity, object> _taskNamesCreatableByFactory;
1149private Dictionary<string, string> _taskFactoryParameters;
1164internal RegisteredTaskRecord(string registeredName, AssemblyLoadInfo assemblyLoadInfo, string taskFactory, Dictionary<string, string> taskFactoryParameters, ParameterGroupAndTaskElementRecord inlineTask, int registrationOrderId)
1824_taskFactoryParameters = (Dictionary<string, string>)localParameters;
1846_taskRegistrations = (Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>)copy;
Logging\ParallelLogger\ParallelConsoleLogger.cs (6)
30internal Dictionary<(int nodeId, int contextId), string> propertyOutputMap = new Dictionary<(int nodeId, int contextId), string>();
424var groupByProjectEntryPoint = new Dictionary<ErrorWarningSummaryDictionaryKey, List<BuildEventArgs>>();
1662internal static new MPPerformanceCounter GetPerformanceCounter(string scopeName, ref Dictionary<string, PerformanceCounter> table)
1689private Dictionary<string, PerformanceCounter> _internalPerformanceCounters;
1694private Dictionary<BuildEventContext, object> _startedEvent;
1799private Dictionary<BuildEventContext, List<BuildMessageEventArgs>> _deferredMessages;
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase);
26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase);
29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.BuildCheck.UnitTests (20)
Microsoft.Build.CommandLine.UnitTests (1)
Microsoft.Build.Engine.OM.UnitTests (79)
Definition\Project_Tests.cs (8)
812var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
829var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
960Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
988Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2420Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2434Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2458Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2528Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Definition\ProjectItem_Tests.cs (38)
2762var expectedInitial = new Dictionary<string, string>
2767var expectedUpdateFromTrue = new Dictionary<string, string>
2804var expectedInitial = new Dictionary<string, string>
2809var expectedUpdateFromUnconditionedElement = new Dictionary<string, string>
2837var expectedUpdate = new Dictionary<string, string>
2873Dictionary<string, string> expectedUpdatei = new Dictionary<string, string>
2877Dictionary<string, string> expectedUpdatej = new Dictionary<string, string>
2944var expectedMetadata = new Dictionary<string, string>
2974var expectedMetadata = new Dictionary<string, string>
3028var expectedMetadataX = new Dictionary<string, string>
3033var expectedMetadataA = new Dictionary<string, string>
3040var expectedMetadataB = new Dictionary<string, string>
3074var expectedMetadataA = new Dictionary<string, string>
3081var expectedMetadataB = new Dictionary<string, string>
3088var expectedMetadataC = new Dictionary<string, string>
3139var expectedMetadataA = doNotExpandQualifiedMetadataInUpdateOperation
3168var expectedMetadataA = new Dictionary<string, string>
3187var expectedMetadataA = new Dictionary<string, string>
3214var expectedMetadataA = new Dictionary<string, string>
3254var expectedMetadataX = new Dictionary<string, string>
3262var expectedMetadata2 = new Dictionary<string, string>
3270var expectedMetadataCCC = new Dictionary<string, string>
3278var expectedMetadata1 = new Dictionary<string, string>
3287var expectedMetadataD = new Dictionary<string, string>
3295var expectedMetadataY = new Dictionary<string, string>
3345var expectedMetadataB = new Dictionary<string, string>
3350var expectedMetadataA = new Dictionary<string, string>()
3355var expectedMetadataC = new Dictionary<string, string>();
3410var expectedInitialMetadata = new Dictionary<string, string>
3416var expectedUpdatedMetadata = new Dictionary<string, string>
3452var expected_i1 = new Dictionary<string, string>
3458var expected_i2_a = new Dictionary<string, string>
3464var expected_i2_y = new Dictionary<string, string>
3501var expectedInitial = new Dictionary<string, string>
3507var expectedUpdated = new Dictionary<string, string>
3536var expectedUpdated = new Dictionary<string, string>
3631public void UpdateAndRemoveShouldWorkWithEscapedCharacters(string projectContents, string include, string update, string remove, string[] expectedInclude, Dictionary<string, string>[] expectedMetadata)
3689var expectedUpdated = new Dictionary<string, string>
Microsoft.Build.Engine.UnitTests (226)
BackEnd\BinaryTranslator_Tests.cs (16)
434Dictionary<string, string> value = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
440Dictionary<string, string> deserializedValue = null;
455Dictionary<string, string> value = null;
459Dictionary<string, string> deserializedValue = null;
472Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>(StringComparer.OrdinalIgnoreCase);
478Dictionary<string, BaseClass> deserializedValue = null;
494Dictionary<string, BaseClass> value = null;
498Dictionary<string, BaseClass> deserializedValue = null;
511Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>();
515TranslationHelpers.GetWriteTranslator().TranslateDictionary<Dictionary<string, BaseClass>, BaseClass>(ref value, BaseClass.FactoryForDeserialization);
517Dictionary<string, BaseClass> deserializedValue = null;
518TranslationHelpers.GetReadTranslator().TranslateDictionary<Dictionary<string, BaseClass>, BaseClass>(ref deserializedValue, BaseClass.FactoryForDeserialization);
533Dictionary<string, BaseClass> value = null;
535TranslationHelpers.GetWriteTranslator().TranslateDictionary<Dictionary<string, BaseClass>, BaseClass>(ref value, BaseClass.FactoryForDeserialization);
537Dictionary<string, BaseClass> deserializedValue = null;
538TranslationHelpers.GetReadTranslator().TranslateDictionary<Dictionary<string, BaseClass>, BaseClass>(ref deserializedValue, BaseClass.FactoryForDeserialization);
BackEnd\BuildManager_Tests.cs (12)
141Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties);
258Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties);
575Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties);
615Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties);
659Dictionary<string, string> properties = ExtractProjectStartedPropertyList(evalFinishedEvent.Properties);
721Dictionary<string, string> properties = ExtractProjectStartedPropertyList(projectStartedEvent.Properties);
797Dictionary<string, string> properties = ExtractProjectStartedPropertyList(projectStartedEvent.Properties);
843Dictionary<string, string> properties = ExtractProjectStartedPropertyList(projectStartedEvent.Properties);
940Dictionary<string, string> properties = ExtractProjectStartedPropertyList(projectStartedEvent.Properties);
1153var globalProperties = new Dictionary<string, string>();
3542private static Dictionary<string, string> ExtractProjectStartedPropertyList(IEnumerable properties)
3544Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\IntrinsicTask_Tests.cs (2)
1257Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
3984internal static void AssertItemEvaluationFromTarget(string projectContents, string targetName, string itemType, string[] inputFiles, string[] expectedInclude, bool makeExpectedIncludeAbsolute = false, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false)
BackEnd\SdkResolverService_Tests.cs (11)
384private void CreateMockSdkResultPropertiesAndItems(out Dictionary<string, string> propertiesToAdd, out Dictionary<string, SdkResultItem> itemsToAdd)
412var metadata = result.ItemsToAdd.Values.Single().Metadata;
429Dictionary<string, string> propertiesToAdd = null;
430Dictionary<string, SdkResultItem> itemsToAdd = null;
469Dictionary<string, string> propertiesToAdd;
470Dictionary<string, SdkResultItem> itemsToAdd;
509Dictionary<string, string> propertiesToAdd = null;
510Dictionary<string, SdkResultItem> itemsToAdd = null;
559Dictionary<string, string> propertiesToAdd;
560Dictionary<string, SdkResultItem> itemsToAdd;
BackEnd\TaskExecutionHost_Tests.cs (11)
39private Dictionary<string, object> _parametersSetOnTask;
44private Dictionary<string, object> _outputsReadFromTask;
143var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
159var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
169var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
608var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
624var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
642var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
1483var parameters = GetStandardParametersDictionary(true);
1492private Dictionary<string, (string, ElementLocation)> GetStandardParametersDictionary(bool returnParam)
1494var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
BackEnd\TaskRegistry_Tests.cs (5)
580Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
1057Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2004Dictionary<string, string> taskParameters,
2053Dictionary<string, string> parameters = null;
2072private void RetrieveAndValidateRegisteredTaskRecord(TaskRegistry registry, bool exactMatchRequired, Dictionary<string, string> taskParameters, bool shouldBeRetrieved, bool shouldBeRetrievedFromCache)
Construction\SolutionProjectGenerator_Tests.cs (7)
1664Dictionary<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>();
Evaluation\ItemEvaluation_Tests.cs (11)
61var mI2_1 = new Dictionary<string, string>
70var mI2_2 = new Dictionary<string, string>
110var expectedMetadata = new 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>
364public void ItemOperationsShouldExpandIndirectItemReferences(string projectContent, string[] expectedItemValues, Dictionary<string, string> expectedItemMetadata)
490var i1BaseMetadata = new Dictionary<string, string>
496var i1Metadata = new Dictionary<string, string>[]
508var i2Metadata = new Dictionary<string, string>[]
Evaluation\SdkResultEvaluation_Tests.cs (12)
57private void CreateMockSdkResultPropertiesAndItems(out Dictionary<string, string> propertiesToAdd, out Dictionary<string, SdkResultItem> itemsToAdd)
107Dictionary<string, string> propertiesToAdd = null;
108Dictionary<string, SdkResultItem> itemsToAdd = null;
147Dictionary<string, string> propertiesToAdd = null;
148Dictionary<string, SdkResultItem> itemsToAdd = null;
241Dictionary<string, string> propertiesToAdd = null;
242Dictionary<string, SdkResultItem> itemsToAdd = null;
347Dictionary<string, string> propertiesToAdd;
348Dictionary<string, SdkResultItem> itemsToAdd;
419Dictionary<string, string> propertiesToAdd = new Dictionary<string, string>()
424Dictionary<string, SdkResultItem> itemsToAdd = new Dictionary<string, SdkResultItem>()
Graph\GraphLoadedFromSolution_tests.cs (10)
196Dictionary<int, int[]> edges,
206Dictionary<int, int[]> edges,
212var projectSpecificConfigurations = graph.ProjectNodes.ToDictionary(
234ProjectConfigurations = new Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>>
481public void SolutionsCanInjectEdgesIntoTheProjectGraph(Dictionary<int, int[]> edges, (int, int)[] solutionDependencies, bool hasCycle, bool solutionEdgesOverlapGraphEdges)
661Dictionary<int, int[]> edges,
664Dictionary<string, Dictionary<SolutionConfigurationInSolution, ProjectConfigurationInSolution>> projectConfigurations = null)
674var globalProperties = currentSolutionConfiguration != null
706var actualProjectConfigurations = projectConfigurations ?? solutionFileBuilder.ProjectConfigurations;
Graph\GraphTestingUtilities.cs (6)
43Dictionary<string, string> additionalGlobalProperties = null,
90public static void AssertNonMultitargetingNode(ProjectGraphNode node, Dictionary<string, string> additionalGlobalProperties = null)
99public static void AssertOuterBuildEvaluation(ProjectGraphNode outerBuild, Dictionary<string, string> additionalGlobalProperties)
112Dictionary<string, string> additionalGlobalProperties)
200Dictionary<string, string[]> projectReferenceTargets = null,
232internal static void AssertReferencesIgnoringOrder(this ProjectGraph graph, Dictionary<int, int[]> expectedReferencesForNode)
Graph\ProjectGraph_Tests.cs (22)
370var globalPropertiesFor1 = new Dictionary<string, string> { ["B"] = "EntryPointB", ["C"] = "EntryPointC", ["IsGraphBuild"] = "true" };
377var globalPropertiesFor2 = new Dictionary<string, string> { ["IsGraphBuild"] = "true" };
939var projectReferenceTargets = new Dictionary<string, string[]>
966var projectReferenceTargets = new Dictionary<string, string[]>
1430var projectReferenceTargets = new Dictionary<string, string[]>
1555Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches(
1605Dictionary<string, (BuildResult Result, MockLogger Logger)> results = ResultCacheBasedBuilds_Tests.BuildUsingCaches(
1807public void TopologicalSortShouldTopologicallySort(Dictionary<int, int[]> edges)
1830public void DotNotationShouldRepresentGraph(Dictionary<int, int[]> edges)
2125var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2164var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2191var additionalGlobalProperties = new Dictionary<string, string> { { "x", "y" } };
2253var graph1 = new Dictionary<int, int[]>
2261var graph2 = new Dictionary<int, int[]>
2271foreach (var globalVariables in globalVariablesArray)
2323public void AllNodesShouldHaveGraphBuildGlobalProperty(Dictionary<int, int[]> edges, int[] entryPoints, Dictionary<string, string> globalProperties)
2331var expectedGlobalProperties = new Dictionary<string, string>(globalProperties);
2357public void GraphShouldSupportTransitiveReferences(Dictionary<int, int[]> edges)
2483Dictionary<int, int[]> edges,
2484Dictionary<int, string> extraContentPerProjectNumber,
2485Dictionary<int, int[]> expectedReferences)
Graph\ResultCacheBasedBuilds_Tests.cs (16)
21using ExpectedNodeBuildOutput = System.Collections.Generic.Dictionary<Microsoft.Build.Graph.ProjectGraphNode, string[]>;
22using OutputCacheDictionary = System.Collections.Generic.Dictionary<Microsoft.Build.Graph.ProjectGraphNode, string>;
287public void BuildProjectGraphUsingCaches(Dictionary<int, int[]> edges)
297var expectedOutput = new ExpectedNodeBuildOutput();
299var outputCaches = new OutputCacheDictionary();
344var expectedOutput = new ExpectedNodeBuildOutput();
346var outputCaches = new OutputCacheDictionary();
382var expectedOutput = new ExpectedNodeBuildOutput();
384var outputCaches = new OutputCacheDictionary();
391var results = BuildUsingCaches(_env, topoSortedNodes, expectedOutput, outputCaches, generateCacheFiles: false, assertBuildResults: false);
423internal static Dictionary<string, (BuildResult Result, MockLogger Logger)> BuildUsingCaches(
426ExpectedNodeBuildOutput expectedNodeBuildOutput,
427OutputCacheDictionary outputCaches,
431Func<ProjectGraphNode, ExpectedNodeBuildOutput, string[]> expectedOutputProducer = null,
437var results = new Dictionary<string, (BuildResult Result, MockLogger Logger)>(topoSortedNodes.Count);
512private static TransientTestFile CreateProjectFileWrapper(TestEnvironment env, int projectNumber, int[] projectReferences, Dictionary<string, string[]> projectReferenceTargets, string defaultTargets, string extraContent)
ProjectCache\ProjectCacheTests.cs (9)
96private Dictionary<int, int[]?> GraphEdges { get; }
98public Dictionary<int, CacheResult> NonCacheMissResults { get; }
100public GraphCacheResponse(Dictionary<int, int[]?> graphEdges, Dictionary<int, CacheResult>? nonCacheMissResults = null, IDictionary<int, string>? extraContentPerProjectNumber = null)
495var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>();
518(MockLogger logger, ProjectGraph graph, Dictionary<ProjectGraphNode, BuildResult> nodesToBuildResults) = BuildGraphVsScenario(testData, buildParameters);
542private (MockLogger logger, ProjectGraph projectGraph, Dictionary<ProjectGraphNode, BuildResult> nodesToBuildResults) BuildGraphVsScenario(
547var nodesToBuildResults = new Dictionary<ProjectGraphNode, BuildResult>();
686var globalProperties = new Dictionary<string, string>
Microsoft.Build.Framework (52)
BinaryTranslator.cs (11)
590public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer)
598dictionary = (Dictionary<string, string>)copy;
612public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
699public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator)
779public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer)
1317public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer)
1334public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
1438public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator)
1520public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer)
ITranslator.cs (5)
320void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer);
333void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys);
337void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer);
348void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator)
Microsoft.Build.Framework.UnitTests (3)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (5)
Microsoft.Build.Tasks.Core (141)
AssemblyDependency\ReferenceTable.cs (21)
36private static readonly Dictionary<string, Tuple<RedistList, string>> s_monikerToHighestRedistList = new Dictionary<string, Tuple<RedistList, string>>(StringComparer.OrdinalIgnoreCase);
46private readonly Dictionary<string, AssemblyNameExtension> _externallyResolvedImmutableFiles = new Dictionary<string, AssemblyNameExtension>(StringComparer.OrdinalIgnoreCase);
78private readonly Dictionary<string, ITaskItem> _resolvedSDKReferences;
370internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer);
1368var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer);
1374var dependencyGraph = new Dictionary<Reference, List<ReferenceAssemblyExtensionPair>>();
1462private static void AddToDependencyGraph(Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyGraph, AssemblyNameExtension assemblyName, Reference assemblyReference)
1482private void RemoveDependencyMarkedForExclusion(LogExclusionReason logExclusionReason, bool removeOnlyNoWarning, string subsetName, Dictionary<AssemblyNameExtension, Reference> goodReferences, List<Reference> removedReferences, AssemblyNameExtension assemblyName, Reference assemblyReference)
1566private static void RemoveDependencies(Reference removedReference, Dictionary<AssemblyNameExtension, Reference> referenceList, Dictionary<Reference, List<ReferenceAssemblyExtensionPair>> dependencyList)
1799private void ResolveConflictsBetweenReferences(Dictionary<string, List<AssemblyNameReference>> baseNameToReferences)
1844Dictionary<string, List<AssemblyNameReference>> baseNameToReferences = BuildSimpleNameTable();
1860var fullNameToReference = new Dictionary<string, AssemblyNameReference>(References.Count, StringComparer.OrdinalIgnoreCase);
2173private Dictionary<string, List<AssemblyNameReference>> BuildSimpleNameTable()
2177var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase);
2203Dictionary<string, List<AssemblyNameReference>> baseNameToReferences)
2737Dictionary<string, string> nonForwardableMetadata = null;
3020private static Dictionary<string, string> RemoveNonForwardableMetadata(ITaskItem item)
3022Dictionary<string, string> removedMetadata = new Dictionary<string, string>();
3033private static void RemoveMetadatum(string key, ITaskItem item, Dictionary<string, string> removedMetadata)
3150internal bool MarkReferencesForExclusion(Dictionary<string, string> exclusionList)
BootstrapperUtil\BootstrapperBuilder.cs (20)
43private readonly Dictionary<string, XmlNode> _cultures = new Dictionary<string, XmlNode>(StringComparer.OrdinalIgnoreCase);
44private readonly Dictionary<string, ProductValidationResults> _validationResults = new Dictionary<string, ProductValidationResults>(StringComparer.Ordinal);
207var eulas = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.Ordinal);
254private static void Merge(Dictionary<string, Product> output, Dictionary<string, Product> input)
262private static void AddProduct(Dictionary<string, Product> output, Product product)
272var builtProducts = new Dictionary<string, ProductBuilder>();
273var productsAndIncludes = new Dictionary<string, Product>();
292Dictionary<string, Product> includes = GetIncludedProducts(builder.Product);
618var availableProducts = new Dictionary<string, Product>(StringComparer.Ordinal);
620var buildQueue = new Dictionary<string, Product>(StringComparer.Ordinal);
650private void AddDependencies(Product p, Dictionary<string, Product> availableProducts)
697private void AddIncludes(Product p, Dictionary<string, Product> availableProducts)
734private void OrderProducts(Dictionary<string, Product> availableProducts, Dictionary<string, Product> buildQueue)
785private static void RemoveDependency(Dictionary<string, Product> availableProducts, Product product)
1361private bool BuildPackages(BuildSettings settings, XmlElement configElement, ResourceUpdater resourceUpdater, List<string> filesCopied, Dictionary<string, KeyValuePair<string, string>> eulas)
2206private static Dictionary<string, Product> GetIncludedProducts(Product product)
2208var includedProducts = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase)
2225private static void AddIncludedProducts(Product product, Dictionary<string, Product> includedProducts)
CreateItem.cs (6)
81if (!PropertyParser.GetTable(Log, "AdditionalMetadata", AdditionalMetadata, out Dictionary<string, string> metadataTable))
87Dictionary<string, string> excludeItems = GetUniqueItems(Exclude);
100private List<ITaskItem> CreateOutputItems(Dictionary<string, string> metadataTable, Dictionary<string, string> excludeItems)
213private static Dictionary<string, string> GetUniqueItems(ITaskItem[] items)
215var uniqueItems = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MSBuild.cs (7)
214if (!PropertyParser.GetTableWithEscaping(Log, ResourceUtilities.GetResourceString("General.GlobalProperties"), "Properties", Properties, out Dictionary<string, string> propertiesTable))
371private bool BuildProjectsInParallel(Dictionary<string, string> propertiesTable, string[] undefinePropertiesArray, List<string[]> targetLists, bool success, bool[] skipProjects)
479Dictionary<string, string> propertiesTable,
498var projectProperties = new Dictionary<string, string>[projects.Count];
520out Dictionary<string, string> preProjectPropertiesTable))
560out Dictionary<string, string> additionalProjectPropertiesTable))
564var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
RedistList.cs (12)
38private static readonly Dictionary<string, RedistList> s_cachedRedistList = new Dictionary<string, RedistList>(StringComparer.OrdinalIgnoreCase);
42private static Dictionary<string, string[]> s_redistListPathCache;
70private readonly ConcurrentDictionary<string, Dictionary<string, string>> _cachedDenyList = new ConcurrentDictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase);
116var simpleNameMap = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
523internal Dictionary<string, string> GenerateDenyList(AssemblyTableInfo[] allowListAssemblyTableInfo, List<Exception> allowListErrors, List<string> allowListErrorFileNames)
545if (!_cachedDenyList.TryGetValue(key, out Dictionary<string, string> returnTable))
625var denyListOfAssemblyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
658var assemblyEntries = new Dictionary<string, AssemblyEntry>(StringComparer.OrdinalIgnoreCase);
784private static void ParseFileListSection(AssemblyTableInfo assemblyTableInfo, string path, string redistName, XmlReader reader, Dictionary<string, AssemblyEntry> assemblyEntries, List<AssemblyRemapping> remapEntries)
830var attributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
969private static Dictionary<string, string[]> s_subsetListPathCache;
ResolveManifestFiles.cs (6)
56private Dictionary<string, ITaskItem> _runtimePackAssets;
505var outputAssembliesMap = outputAssemblies.ToDictionary(p => Path.GetFullPath(p.ItemSpec), StringComparer.OrdinalIgnoreCase);
830private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
831private readonly Dictionary<string, MapEntry> _simpleNameDictionary = new Dictionary<string, MapEntry>();
895private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(StringComparer.InvariantCultureIgnoreCase);
943private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>();
ResolveSDKReference.cs (9)
31private static readonly Dictionary<string, string> PlatformAliases = new(StringComparer.OrdinalIgnoreCase)
107private Dictionary<string, string> _runtimeReferenceOnlyDependenciesByName;
296var sdkItems = new Dictionary<string, ITaskItem>(InstalledSDKs.Length, StringComparer.OrdinalIgnoreCase);
328var productFamilyNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase);
331var sdkNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase);
475internal static void AddMetadataToReferences(TaskLoggingHelper log, HashSet<SDKReference> sdkReferenceItems, Dictionary<string, string> referencesToAddMetadata, string metadataName, string metadataValue)
879private Dictionary<string, string> FrameworkIdentitiesFromManifest { get; }
894private Dictionary<string, string> AppxLocationsFromManifest { get; }
908public void Resolve(Dictionary<string, ITaskItem> sdks, string targetConfiguration, string targetArchitecture, HashSet<string> sdkNamesOnReferenceItems, bool treatErrorsAsWarnings, bool prefer32Bit, string identifierTargetPlatform, Version versionTargetPlatform, string projectName, bool enableMaxPlatformVersionEmptyWarning)
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase);
26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase);
29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
system.design\stronglytypedresourcebuilder.cs (6)
114internal static CodeCompileUnit Create(Dictionary<string, IResource> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable)
121var resourceTypes = new Dictionary<String, ResourceData>(StringComparer.InvariantCultureIgnoreCase);
136private static CodeCompileUnit InternalCreate(Dictionary<String, ResourceData> resourceList, String baseName, String generatedCodeNamespace, String resourcesNamespace, CodeDomProvider codeProvider, bool internalClass, out String[] unmatchable)
156SortedList<string, ResourceData> cleanedResourceList = VerifyResourceNames(resourceList, codeProvider, errors, out Dictionary<string, string> reverseFixupTable);
715Dictionary<String, ResourceData> resourceList,
718out Dictionary<string, string> reverseFixupTable)
SystemState.cs (7)
31private Dictionary<string, FileState> upToDateLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase);
42internal Dictionary<string, FileState> instanceLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase);
47internal Dictionary<string, FileState> instanceLocalOutgoingFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase);
54private Dictionary<string, DateTime> instanceLocalLastModifiedCache = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase);
61private Dictionary<string, bool> instanceLocalDirectoryExists = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
68private Dictionary<string, string[]> instanceLocalDirectories = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
612Dictionary<string, FileState> oldFileStateCache = instanceLocalOutgoingFileStateCache;
Microsoft.Build.Tasks.UnitTests (30)
PropertyParser_Tests.cs (10)
17Assert.True(PropertyParser.GetTable(null, "Properties", null, out Dictionary<string, string> propertiesTable));
29new[] { "Configuration=Debug" }, out Dictionary<string, string> propertiesTable));
46new[] { "Configuration=Debug", "Platform=AnyCPU", "VBL=Lab22Dev" }, out Dictionary<string, string> propertiesTable));
67new[] { "Configuration = Debug", "Platform \t= AnyCPU" }, out Dictionary<string, string> propertiesTable));
86new[] { "Configuration=", "Platform = " }, out Dictionary<string, string> propertiesTable));
124new[] { "DependsOn = Clean; Build" }, out Dictionary<string, string> propertiesTable));
141new[] { "Depends On = CleanBuild" }, out Dictionary<string, string> propertiesTable));
156new[] { "Configuration = Debug", "Platform = Any CPU" }, out Dictionary<string, string> propertiesTable));
173new[] { "WarningsAsErrors = 1234", "5678", "9999", "Configuration=Debug" }, out Dictionary<string, string> propertiesTable));
190new[] { @"OutDir=c:\Rajeev;s Stuff\binaries", "Configuration=Debug" }, out Dictionary<string, string> propertiesTable));
Microsoft.Build.UnitTests.Shared (30)
ObjectModelHelpers.cs (18)
122public static void AssertItemEvaluationFromProject([StringSyntax(StringSyntaxAttribute.Xml)] string projectContents, string[] inputFiles, string[] expectedInclude, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false, bool makeExpectedIncludeAbsolute = false)
139public static void AssertItemEvaluationFromGenericItemEvaluator(Func<string, ProjectCollection, IList<ITestItem>> itemEvaluator, [StringSyntax(StringSyntaxAttribute.Xml)] string projectContents, string[] inputFiles, string[] expectedInclude, bool makeExpectedIncludeAbsolute = false, Dictionary<string, string>[] expectedMetadataPerItem = null, bool normalizeSlashes = false)
248public static void AssertItems(string[] expectedItems, ICollection<ProjectItem> items, Dictionary<string, string> expectedDirectMetadata = null, bool normalizeSlashes = false)
257public static void AssertItems(string[] expectedItems, IList<ITestItem> items, Dictionary<string, string> expectedDirectMetadata = null, bool normalizeSlashes = false)
265var metadata = new Dictionary<string, string>[expectedItems.Length];
275public static void AssertItems(string[] expectedItems, IList<ProjectItem> items, Dictionary<string, string>[] expectedDirectMetadataPerItem, bool normalizeSlashes = false)
281public static void AssertItems(string[] expectedItems, IList<ITestItem> items, Dictionary<string, string>[] expectedDirectMetadataPerItem, bool normalizeSlashes = false)
458public static void AssertItemHasMetadata(Dictionary<string, string> expected, ProjectItem item)
469public static void AssertItemHasMetadata(Dictionary<string, string> expected, ITestItem item)
1230public static Dictionary<string, V> MakeDictionary<V>(IEnumerable<KeyValuePair<string, V>> enumerable)
1232Dictionary<string, V> dictionary = new Dictionary<string, V>(StringComparer.OrdinalIgnoreCase);
1345public static MockLogger BuildProjectWithNewOMExpectSuccess(string content, Dictionary<string, string> globalProperties = null, MockLogger logger = null)
1356private static void BuildProjectWithNewOM([StringSyntax(StringSyntaxAttribute.Xml)] string content, ref MockLogger logger, out bool result, bool allowTaskCrash, Dictionary<string, string> globalProperties = null)
1689Dictionary<string, string[]> projectReferenceTargets = null,
1697Dictionary<string, string[]> projectReferenceTargets = null,
1756var nodes = new Dictionary<int, (bool IsRoot, string ProjectPath)>();
2097Dictionary<string, string> globalProperties = null)
2106Dictionary<string, string> globalProperties = null)
Microsoft.Build.Utilities.Core (83)
ToolLocationHelper.cs (16)
212private static Dictionary<string, string> s_chainedReferenceAssemblyPath;
222private static Dictionary<string, IList<string>> s_cachedReferenceAssemblyPaths;
228private static Dictionary<string, FrameworkNameVersioning> s_cachedHighestFrameworkNameForTargetFrameworkIdentifier;
233private static Dictionary<string, IEnumerable<TargetPlatformSDK>> s_cachedTargetPlatforms;
238private static Dictionary<string, TargetPlatformSDK> s_cachedExtensionSdks;
245private static Dictionary<string, string> s_cachedTargetFrameworkDisplayNames;
253private static Dictionary<string, string[]> s_cachedTargetPlatformReferences;
258private static Dictionary<string, string[]> s_cachedExtensionSdkReferences;
268private static Dictionary<string, string[]> s_vsInstallFolders;
399var extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
445var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase);
619var filteredExtensionSdks = new Dictionary<string, string>();
2460var monikers = new Dictionary<TargetPlatformSDK, TargetPlatformSDK>();
2573internal static void GatherSDKListFromDirectory(List<string> diskroots, Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformSDKs)
2667internal static void GatherSDKsFromRegistryImpl(Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformMonikers, string registryKeyRoot, RegistryView registryView, RegistryHive registryHive, GetRegistrySubKeyNames getRegistrySubKeyNames, GetRegistrySubKeyDefaultValue getRegistrySubKeyDefaultValue, OpenBaseKey openBaseKey, FileExists fileExists)
2858private static void GatherSDKListFromRegistry(string registryRoot, Dictionary<TargetPlatformSDK, TargetPlatformSDK> platformMonikers)
TrackedDependencies\CanonicalTrackedInputFiles.cs (22)
65public Dictionary<string, Dictionary<string, string>> DependencyTable { get; private set; }
172DependencyTable = new Dictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase);
343var sourcesNeedingCompilation = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
426private void SourceDependenciesForOutputRoot(Dictionary<string, ITaskItem> sourceDependencies, string sourceKey, ITaskItem[] filesToIgnore)
430if (DependencyTable.TryGetValue(sourceKey, out Dictionary<string, string> dependencies))
468bool dependenciesAvailable = DependencyTable.TryGetValue(sourceFullPath, out Dictionary<string, string> dependencies);
476if (_outputs.DependencyTable.TryGetValue(sourceFullPath, out Dictionary<string, DateTime> outputFiles))
624DependencyTable = (Dictionary<string, Dictionary<string, string>>)cachedEntry.DependencyTable;
682Dictionary<string, string> dependencies;
683Dictionary<string, string> primaryFiles;
834DependencyTable = new Dictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase);
887foreach (KeyValuePair<string, Dictionary<string, string>> dependency in DependencyTable)
892Dictionary<string, string> dependencies = dependency.Value;
910foreach (KeyValuePair<string, Dictionary<string, string>> dependency in DependencyTable)
912Dictionary<string, string> dependencies = dependency.Value;
991if (DependencyTable.TryGetValue(rootingMarker, out Dictionary<string, string> dependencies))
1028Dictionary<string, bool> fileCache = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
1055private void RemoveDependenciesFromEntryIfMissing(string rootingMarker, Dictionary<string, bool> fileCache)
1059if (DependencyTable.TryGetValue(rootingMarker, out Dictionary<string, string> dependencies))
1061var dependenciesWithoutMissingFiles = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TrackedDependencies\CanonicalTrackedOutputFiles.cs (27)
39public Dictionary<string, Dictionary<string, DateTime>> DependencyTable { get; private set; }
85DependencyTable = new Dictionary<string, Dictionary<string, DateTime>>(StringComparer.OrdinalIgnoreCase);
138DependencyTable = (Dictionary<string, Dictionary<string, DateTime>>)cachedEntry.DependencyTable;
185if (!DependencyTable.TryGetValue(tlogEntry, out Dictionary<string, DateTime> dependencies))
250DependencyTable = new Dictionary<string, Dictionary<string, DateTime>>(StringComparer.OrdinalIgnoreCase);
280if (DependencyTable.TryGetValue(currentRoot, out Dictionary<string, DateTime> currentOutputs))
285foreach (KeyValuePair<string, Dictionary<string, DateTime>> root in DependencyTable)
319if (DependencyTable.TryGetValue(sourceRoot, out var outputPaths))
344var outputs = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
416var outputs = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
476private void OutputsForSourceRoot(Dictionary<string, ITaskItem> outputs, string sourceKey)
478if (DependencyTable.TryGetValue(sourceKey, out Dictionary<string, DateTime> dependencies))
498Dictionary<string, DateTime> dependencies = GetSourceKeyOutputs(sourceKey);
509Dictionary<string, DateTime> dependencies = GetSourceKeyOutputs(sourceKey);
523Dictionary<string, DateTime> dependencies = GetSourceKeyOutputs(sourceKey);
535private Dictionary<string, DateTime> GetSourceKeyOutputs(string sourceKey)
537if (!DependencyTable.TryGetValue(sourceKey, out Dictionary<string, DateTime> dependencies))
550private static void AddOutput(Dictionary<string, DateTime> dependencies, string computedOutput)
597foreach (KeyValuePair<string, Dictionary<string, DateTime>> kvp in DependencyTable)
600Dictionary<string, DateTime> dependencies = kvp.Value;
685if (DependencyTable.TryGetValue(rootingMarker, out Dictionary<string, DateTime> dependencies))
722Dictionary<string, bool> fileCache = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
749private void RemoveDependenciesFromEntryIfMissing(string rootingMarker, Dictionary<string, bool> fileCache)
753if (DependencyTable.TryGetValue(rootingMarker, out Dictionary<string, DateTime> dependencies))
755var dependenciesWithoutMissingFiles = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Utilities.UnitTests (6)
Microsoft.Cci.Extensions (14)
Microsoft.CodeAnalysis (234)
Collections\ImmutableArrayExtensions.cs (7)
857this Dictionary<TKey, ImmutableArray<TValue>> dictionary,
1146internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item)
1174(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result)
1208internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol>
1209(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer)
1220var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (34)
28private readonly Dictionary<DiagnosticAnalyzer, TimeSpan>? _analyzerExecutionTimeOpt;
30private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByTree;
31private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSemanticAnalyzersByTree;
32private readonly Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByAdditionalFile;
33private readonly Dictionary<DiagnosticAnalyzer, AnalyzerActionCounts> _analyzerActionCounts;
36private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSemanticDiagnosticsOpt = null;
37private Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localSyntaxDiagnosticsOpt = null;
38private Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? _localAdditionalFileDiagnosticsOpt = null;
39private Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? _nonLocalDiagnosticsOpt = null;
52private static Dictionary<DiagnosticAnalyzer, TimeSpan> CreateAnalyzerExecutionTimeMap(ImmutableArray<DiagnosticAnalyzer> analyzers)
54var map = new Dictionary<DiagnosticAnalyzer, TimeSpan>(analyzers.Length);
108var completedAnalyzersByTree = syntax ? _completedSyntaxAnalyzersByTree : _completedSemanticAnalyzersByTree;
134var completedAnalyzersByTree = syntax ? _completedSyntaxAnalyzersByTree : _completedSemanticAnalyzersByTree;
331ref Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics)
339lazyLocalDiagnostics = lazyLocalDiagnostics ?? new Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>();
349Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? allDiagnostics;
442Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? lazyLocalDiagnostics,
449foreach (var localDiagsByTree in lazyLocalDiagnostics.Values)
457Dictionary<SyntaxTree, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics,
463Dictionary<AdditionalText, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics,
469Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnostics,
475Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? diagnosticsForTree;
483Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder> diagnostics,
526Dictionary<TKey, Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>>? localDiagnosticsOpt)
562Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>? nonLocalDiagnosticsOpt)
DiagnosticAnalyzer\DiagnosticQueue.cs (8)
100private Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? _lazyLocalSemanticDiagnostics;
101private Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? _lazyLocalSyntaxDiagnostics;
102private Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? _lazyNonLocalDiagnostics;
128[NotNull] ref Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? lazyDiagnosticsMap,
139private static void EnqueueCore_NoLock(Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue> diagnosticsMap, Diagnostic diagnostic, DiagnosticAnalyzer analyzer)
171private static bool TryDequeue_NoLock(Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? lazyDiagnosticsMap, [NotNullWhen(returnValue: true)] out Diagnostic? d)
200private ImmutableArray<Diagnostic> DequeueDiagnosticsCore(DiagnosticAnalyzer analyzer, Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? lazyDiagnosticsMap)
218Dictionary<DiagnosticAnalyzer, SimpleDiagnosticQueue>? diagnosticsMap,
Emit\EditAndContinue\DeltaMetadataWriter.cs (15)
37private readonly Dictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>> _deletedTypeMembers;
46private readonly Dictionary<IParameterDefinition, IMethodDefinition> _parameterDefList;
54private readonly Dictionary<EntityHandle, ImmutableArray<int>> _customAttributesAdded;
59private readonly Dictionary<IParameterDefinition, int> _existingParameterDefs;
60private readonly Dictionary<MethodDefinitionHandle, int> _firstParamRowMap;
69private readonly Dictionary<IMethodDefinition, AddedOrChangedMethodInfo> _addedOrChangedMethods;
172var addedOrChangedMethodsByIndex = new Dictionary<int, AddedOrChangedMethodInfo>();
197var generationOrdinals = CreateDictionary(_previousGeneration.GenerationOrdinals, SymbolEquivalentEqualityComparer.Instance);
239private static Dictionary<K, V> CreateDictionary<K, V>(IReadOnlyDictionary<K, V> dictionary, IEqualityComparer<K>? comparer)
242var result = new Dictionary<K, V>(comparer);
264var result = CreateDictionary(previous, comparer);
497var result = new Dictionary<ITypeDefinition, ArrayBuilder<IMethodDefinition>>(ReferenceEqualityComparer.Instance);
498var typesUsedByDeletedMembers = new Dictionary<ITypeDefinition, DeletedSourceTypeDefinition>(ReferenceEqualityComparer.Instance);
1446protected readonly Dictionary<T, int> added; // Definitions added in this generation.
1540private readonly Dictionary<int, T> _map;
MetadataReader\PEModule.cs (10)
49private static readonly Dictionary<string, (int FirstIndex, int SecondIndex)> s_sharedEmptyForwardedTypes = new Dictionary<string, (int FirstIndex, int SecondIndex)>();
50private static readonly Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> s_sharedEmptyCaseInsensitiveForwardedTypes = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>();
58private Dictionary<string, (int FirstIndex, int SecondIndex)> _lazyForwardedTypesToAssemblyIndexMap;
65private Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)> _lazyCaseInsensitiveForwardedTypesToAssemblyIndexMap;
673Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces = new Dictionary<string, ArrayBuilder<TypeDefinitionHandle>>();
739private void GetTypeNamespaceNamesOrThrow(Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces)
742var namespaceHandles = new Dictionary<NamespaceDefinitionHandle, ArrayBuilder<TypeDefinitionHandle>>(NamespaceHandleEqualityComparer.Singleton);
819private void GetForwardedTypeNamespaceNamesOrThrow(Dictionary<string, ArrayBuilder<TypeDefinitionHandle>> namespaces)
3798var caseInsensitiveMap = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(StringComparer.OrdinalIgnoreCase);
3821Dictionary<string, (int FirstIndex, int SecondIndex)>? typesToAssemblyIndexMap = null;
Operations\OperationMapBuilder.cs (8)
19internal static void AddToMap(IOperation root, Dictionary<SyntaxNode, IOperation> dictionary)
25private sealed class Walker : OperationWalker<Dictionary<SyntaxNode, IOperation>>
29public override object? DefaultVisit(IOperation operation, Dictionary<SyntaxNode, IOperation> argument)
35public override object? VisitBinaryOperator([DisallowNull] IBinaryOperation? operation, Dictionary<SyntaxNode, IOperation> argument)
57public override object? VisitConditional(IConditionalOperation operation, Dictionary<SyntaxNode, IOperation> argument)
78public override object? VisitBinaryPattern(IBinaryPatternOperation operation, Dictionary<SyntaxNode, IOperation> argument)
100internal override object? VisitNoneOperation(IOperation operation, Dictionary<SyntaxNode, IOperation> argument)
107private static void RecordOperation(IOperation operation, Dictionary<SyntaxNode, IOperation> argument)
PEWriter\MetadataWriter.cs (14)
84private readonly Dictionary<(ImmutableArray<byte>, bool), int> _smallMethodBodies;
439private readonly Dictionary<ICustomAttribute, BlobHandle> _customAttributeSignatureIndex = new Dictionary<ICustomAttribute, BlobHandle>();
440private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance);
441private readonly Dictionary<string, int> _fileRefIndex = new Dictionary<string, int>(32); // more than enough in most cases, value is a RowId
443private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(ReferenceEqualityComparer.Instance);
446private readonly Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>> _signatureIndex;
448private readonly Dictionary<IMarshallingInformation, BlobHandle> _marshallingDescriptorIndex = new Dictionary<IMarshallingInformation, BlobHandle>();
450private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(ReferenceEqualityComparer.Instance);
4244private readonly Dictionary<T, int> _index;
4251private HeapOrReferenceIndex(MetadataWriter writer, Dictionary<T, int> index, int lastRowId)
4271private readonly Dictionary<ITypeReference, int> _index;
4278private TypeReferenceIndex(MetadataWriter writer, Dictionary<ITypeReference, int> index, int lastRowId)
4298private readonly Dictionary<T, int> _instanceIndex;
4299private readonly Dictionary<T, int> _structuralIndex;
PEWriter\MetadataWriter.PortablePdb.cs (6)
54private readonly Dictionary<DebugSourceDocument, DocumentHandle> _documentIndex = new Dictionary<DebugSourceDocument, DocumentHandle>();
55private readonly Dictionary<IImportScope, ImportScopeHandle> _scopeIndex;
436private ImportScopeHandle GetImportScopeIndex(IImportScope scope, Dictionary<IImportScope, ImportScopeHandle> scopeIndex)
629Dictionary<DebugSourceDocument, DocumentHandle> documentIndex,
743private DocumentHandle GetOrAddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index)
753private DocumentHandle AddDocument(DebugSourceDocument document, Dictionary<DebugSourceDocument, DocumentHandle> index)
ReferenceManager\CommonReferenceManager.Resolution.cs (6)
212[Out] Dictionary<string, List<ReferencedAssemblyIdentity>> assemblyReferencesBySimpleName,
232Dictionary<MetadataReference, MergedAliases>? lazyAliasMap = null;
235var boundReferences = new Dictionary<MetadataReference, MetadataReference>(MetadataReferenceEqualityComparer.Instance);
439private static ResolvedReference GetResolvedReferenceAndFreePropertyMapEntry(MetadataReference reference, int index, MetadataImageKind kind, Dictionary<MetadataReference, MergedAliases>? propertyMapOpt)
610private void MergeReferenceProperties(MetadataReference primaryReference, MetadataReference newReference, DiagnosticBag diagnostics, ref Dictionary<MetadataReference, MergedAliases>? lazyAliasMap)
669Dictionary<string, List<ReferencedAssemblyIdentity>> referencesBySimpleName,
ReferenceManager\CommonReferenceManager.State.cs (12)
72internal readonly Dictionary<MetadataReference, MetadataOrDiagnostic> ObservedMetadata;
91private Dictionary<MetadataReference, int>? _lazyReferencedAssembliesMap;
101private Dictionary<MetadataReference, int>? _lazyReferencedModuleIndexMap;
195public CommonReferenceManager(string simpleAssemblyName, AssemblyIdentityComparer identityComparer, Dictionary<MetadataReference, MetadataOrDiagnostic>? observedMetadata)
223internal Dictionary<MetadataReference, int> ReferencedAssembliesMap
232internal Dictionary<MetadataReference, int> ReferencedModuleIndexMap
409Dictionary<MetadataReference, int> referencedAssembliesMap,
410Dictionary<MetadataReference, int> referencedModulesMap,
423Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt)
467out Dictionary<MetadataReference, int> referencedAssembliesMap,
468out Dictionary<MetadataReference, int> referencedModulesMap,
470out Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt)
RuleSet\RuleSet.cs (4)
108var effectiveSpecificOptions = new Dictionary<string, ReportDiagnostic>();
283public static ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(string? rulesetFileFullPath, out Dictionary<string, ReportDiagnostic> specificDiagnosticOptions)
288internal static ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(string? rulesetFileFullPath, out Dictionary<string, ReportDiagnostic> diagnosticOptions, IList<Diagnostic>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt)
299private static ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(Dictionary<string, ReportDiagnostic> diagnosticOptions, string resolvedPath, IList<Diagnostic>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt)
Microsoft.CodeAnalysis.CodeStyle (146)
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (6)
19private Tuple<string, Dictionary<int, int>>? _lastParsed;
23public static bool IsOrdered(Dictionary<int, int> preferredOrder, SyntaxTokenList modifiers)
43public bool TryGetOrComputePreferredOrder(string value, [NotNullWhen(true)] out Dictionary<int, int>? preferredOrder)
54if (!TryParse(value, out var parsed))
68protected virtual bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed)
70var result = new Dictionary<int, int>();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (7)
857this Dictionary<TKey, ImmutableArray<TValue>> dictionary,
1146internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item)
1174(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result)
1208internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol>
1209(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer)
1220var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap,
260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
296Dictionary<SyntaxToken, int> previousChangesMap,
324Dictionary<SyntaxToken, int> previousChangesMap,
380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken)
412Dictionary<SyntaxToken, int> previousChangesMap,
448Dictionary<SyntaxToken, int> previousChangesMap,
475Dictionary<SyntaxToken, int> previousChangesMap,
492Dictionary<SyntaxToken, int> previousChangesMap,
544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull
38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool);
74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary)
77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool);
141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool)
144var map = pool.Allocate();
283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool)
84return new PooledObject<Dictionary<TKey, TValue>>(
139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool)
143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
21public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
64private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
72internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
75internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
111private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
139private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
151private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
169private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false)
280private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
300private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
329private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null)
492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
615private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
Microsoft.CodeAnalysis.Collections.Package (2)
Microsoft.CodeAnalysis.CSharp (193)
Binder\PatternExplainer.cs (10)
197gatherConstraintsAndEvaluations(targetNode, shortestPathToNode, out var constraints, out var evaluations);
220gatherConstraintsAndEvaluations(targetNode, currentPathToNode, out var constraints, out var evaluations);
245out Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest, bool)>> constraints,
246out Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>> evaluations)
293Dictionary<BoundDagTemp, ArrayBuilder<(BoundDagTest test, bool sense)>> constraintMap,
294Dictionary<BoundDagTemp, ArrayBuilder<BoundDagEvaluation>> evaluationMap,
311static ImmutableArray<T> getArray<T>(Dictionary<BoundDagTemp, ArrayBuilder<T>> map, BoundDagTemp temp)
533var properties = new Dictionary<Symbol, string>();
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
2851var candidates = new Dictionary<TypeWithAnnotations, TypeWithAnnotations>(EqualsIgnoringDynamicTupleNamesAndNullabilityComparer.Instance);
3291private static void GetAllCandidates(Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates, ArrayBuilder<TypeWithAnnotations> builder)
3304Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates,
3333Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates,
3348Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates,
3415Dictionary<TypeWithAnnotations, TypeWithAnnotations> candidates,
CodeGen\Optimizer.cs (8)
93private static void FilterValidStackLocals(Dictionary<LocalSymbol, LocalDefUseInfo> info)
126private static void RemoveIntersectingLocals(Dictionary<LocalSymbol, LocalDefUseInfo> info, ArrayBuilder<LocalDefUseInfo> dummies)
404private readonly Dictionary<LocalSymbol, LocalDefUseInfo> _locals;
418private StackOptimizerPass1(Dictionary<LocalSymbol, LocalDefUseInfo> locals,
433Dictionary<LocalSymbol, LocalDefUseInfo> locals,
2032private readonly Dictionary<LocalSymbol, LocalDefUseInfo> _info;
2034private StackOptimizerPass2(Dictionary<LocalSymbol, LocalDefUseInfo> info)
2039public static BoundStatement Rewrite(BoundStatement src, Dictionary<LocalSymbol, LocalDefUseInfo> info)
CommandLine\CSharpCommandLineParser.cs (5)
118var diagnosticOptions = new Dictionary<string, ReportDiagnostic>();
119var noWarns = new Dictionary<string, ReportDiagnostic>();
120var warnAsErrors = new Dictionary<string, ReportDiagnostic>();
2133private static void AddWarnings(Dictionary<string, ReportDiagnostic> d, ReportDiagnostic kind, ReadOnlyMemory<char> warningArgument)
2178private static void AddDiagnostic(IList<Diagnostic> diagnostics, Dictionary<string, ReportDiagnostic> warningOptions, ErrorCode errorCode, params object[] arguments)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (10)
31private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> s_emptyNestedTypes =
59private Dictionary<string, ImmutableArray<Symbol>> _lazyMembersByName;
65private Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> _lazyNestedTypes;
1459Dictionary<string, ImmutableArray<Symbol>> membersDict = GroupByName(members);
1461var exchangeResult = Interlocked.CompareExchange(ref _lazyMembersByName, membersDict, null);
2009private void CreateProperties(Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol, ArrayBuilder<Symbol> members)
2040Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol,
2073private PEMethodSymbol GetAccessorMethod(PEModule module, Dictionary<MethodDefinitionHandle, PEMethodSymbol> methodHandleToSymbol, TypeDefinitionHandle typeDef, MethodDefinitionHandle methodDef)
2086private static Dictionary<string, ImmutableArray<Symbol>> GroupByName(ArrayBuilder<Symbol> symbols)
2091private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>> GroupByName(ArrayBuilder<PENamedTypeSymbol> symbols)
Symbols\ReferenceManager.cs (9)
58public ReferenceManager(string simpleAssemblyName, AssemblyIdentityComparer identityComparer, Dictionary<MetadataReference, MetadataOrDiagnostic>? observedMetadata)
404Dictionary<MetadataReference, int> referencedAssembliesMap, referencedModulesMap;
406Dictionary<MetadataReference, ImmutableArray<MetadataReference>>? mergedAssemblyReferencesMapOpt;
458Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies = null;
542Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies)
643ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies,
720ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies,
765ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies,
844ref Dictionary<AssemblyIdentity, MissingAssemblySymbol>? missingAssemblies)
Symbols\Source\SourceMemberContainerSymbol.cs (35)
206private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyMembersDictionary;
207private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>? _lazyEarlyAttributeDecodingMembersDictionary;
209private static readonly Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> s_emptyTypeMembers =
212private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>? _lazyTypeMembers;
1300private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> GetTypeMembersDictionary()
1318private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> MakeTypeMembers(BindingDiagnosticBag diagnostics)
1321var conflictDict = new Dictionary<(string name, int arity, SyntaxTree? syntaxTree), SourceNamedTypeSymbol>();
1566private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetEarlyAttributeDecodingMembersDictionary()
1570if (Volatile.Read(ref _lazyMembersDictionary) is Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> result)
1580Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName;
1603private static Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> ToNameKeyedDictionary(ImmutableArray<Symbol> symbols)
1628var dictionary = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(accumulator.Count, ReadOnlyMemoryOfCharComparer.Instance);
1745protected Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByName()
1755private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> GetMembersByNameSlow()
1760var membersDictionary = MakeAllMembers(diagnostics);
1942Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName = GetMembersByName();
1948var methodsBySignature = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer);
1949var conversionsAsMethods = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer);
2176private void CheckIndexerNameConflicts(BindingDiagnosticBag diagnostics, Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName)
2188var indexersBySignature = new Dictionary<PropertySymbol, PropertySymbol>(MemberSignatureComparer.DuplicateSourceComparer);
2229Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName,
2230Dictionary<PropertySymbol, PropertySymbol> indexersBySignature,
2693var instanceMap = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>(ReferenceEqualityComparer.Instance);
2725private static bool InfiniteFlatteningGraph(SourceMemberContainerTypeSymbol top, NamedTypeSymbol t, Dictionary<NamedTypeSymbol, NamedTypeSymbol> instanceMap)
2843private Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> MakeAllMembers(BindingDiagnosticBag diagnostics)
2845Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName;
2869Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName,
2870Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> typesByName)
3612ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName,
3619var membersBySignature = new Dictionary<Symbol, Symbol>(MemberSignatureComparer.PartialMethodsComparer);
3696void mergePartialMethods(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourceOrdinaryMethodSymbol currentMethod, SourceOrdinaryMethodSymbol prevMethod, BindingDiagnosticBag diagnostics)
3717void mergePartialProperties(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol currentProperty, SourcePropertySymbol prevProperty, BindingDiagnosticBag diagnostics)
3742void mergeAccessors(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, SourcePropertyAccessorSymbol? currentAccessor, SourcePropertyAccessorSymbol? prevAccessor)
3769private void DuplicateMembersByNameIfCached(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName)
3801private static void FixPartialProperty(ref Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>> membersByName, ReadOnlyMemory<char> name, SourcePropertySymbol part1, SourcePropertySymbol part2)
Symbols\Source\SourceNamespaceSymbol.cs (7)
31private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> _nameToMembersMap;
32private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> _nameToTypeMembersMap;
224private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> GetNameToMembersMap()
248private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>> GetNameToTypeMembersMap()
264private Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> MakeNameToMembersMap(BindingDiagnosticBag diagnostics)
282var result = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>>(builder.Count, ReadOnlyMemoryOfCharComparer.Instance);
291private static void CheckMembers(NamespaceSymbol @namespace, Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>> result, BindingDiagnosticBag diagnostics)
Microsoft.CodeAnalysis.CSharp.CodeStyle (21)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (9)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
84private readonly Dictionary<string, string> _responseFiles;
85private readonly Dictionary<string, string[]> _recursivePatterns;
86private readonly Dictionary<string, string[]> _patterns;
89Dictionary<string, string> responseFiles = null,
90Dictionary<string, string[]> patterns = null,
91Dictionary<string, string[]> recursivePatterns = null,
2437var expectedEmbeddedMap = new Dictionary<string, string>();
2476private static void ValidateEmbeddedSources_Portable(Dictionary<string, string> expectedEmbeddedMap, TempDirectory dir, bool isEmbeddedPdb)
2507private static void ValidateEmbeddedSources_Windows(Dictionary<string, string> expectedEmbeddedMap, TempDirectory dir)
2537private static void ValidateWrittenSources(Dictionary<string, Dictionary<string, string>> expectedFilesMap, Encoding encoding = null)
2539foreach ((var dirPath, var fileMap) in expectedFilesMap.ToArray())
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (21)
Diagnostics\NamingStyles\EditorConfigNamingStyleParserTests.cs (16)
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>()
583var dictionary = new Dictionary<string, string>()
652var dictionary = new Dictionary<string, string>()
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (31)
Attributes\AttributeTests_MarshalAs.cs (17)
26private void VerifyFieldMetadataDecoding(CompilationVerifier verifier, Dictionary<string, byte[]> blobs)
58private void VerifyParameterMetadataDecoding(CompilationVerifier verifier, Dictionary<string, byte[]> blobs)
230var blobs = new Dictionary<string, byte[]>
327var blobs = new Dictionary<string, byte[]>
374var blobs = new Dictionary<string, byte[]>
461var blobs = new Dictionary<string, byte[]>
486var expectedBlobs = new Dictionary<string, byte[]>();
594var blobs = new Dictionary<string, byte[]>
632var expectedBlobs = new Dictionary<string, byte[]>();
760var blobs = new Dictionary<string, byte[]>
800var blobs = new Dictionary<string, byte[]>
832var cciBlobs = new Dictionary<string, byte[]>
913var blobs = new Dictionary<string, byte[]>
1032var blobs = new Dictionary<string, byte[]>
1140var blobs = new Dictionary<string, byte[]>()
1185var blobs = new Dictionary<string, byte[]>()
1220var blobs = new Dictionary<string, byte[]>()
Diagnostics\DiagnosticAnalyzerTests.cs (8)
316var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
458var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
530var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
1140var specificDiagOptions = new Dictionary<string, ReportDiagnostic>();
1278Dictionary<string, ReportDiagnostic> specificOptions = null,
1302var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", ReportDiagnostic.Default } };
1323var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
1346var specificOptions = new Dictionary<string, ReportDiagnostic>() { { "Test0001", specificOption } };
Microsoft.CodeAnalysis.CSharp.Features (19)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (25)
Microsoft.CodeAnalysis.EditorFeatures (28)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (10)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (15)
UnusedReferences\ProjectAssets\TestProjectAssetsFile.cs (10)
21var libraries = BuildLibraries(allReferences);
22var targets = BuildTargets(targetFramework, allReferences);
47private static Dictionary<string, ProjectAssetsLibrary> BuildLibraries(List<ReferenceInfo> references)
49var libraries = new Dictionary<string, ProjectAssetsLibrary>();
59private static Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>> BuildTargets(string targetFramework, List<ReferenceInfo> references)
61var libraries = new Dictionary<string, ProjectAssetsTargetLibrary>();
64var dependencies = BuildDependencies(reference.Dependencies);
74return new Dictionary<string, Dictionary<string, ProjectAssetsTargetLibrary>>() { { targetFramework, libraries } };
87private static Dictionary<string, string> BuildDependencies(ImmutableArray<ReferenceInfo> references)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (5)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (6)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (9)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (2)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Microsoft.CodeAnalysis.Features (229)
ChangeSignature\AbstractChangeSignatureService.cs (7)
254var nodesToUpdate = new Dictionary<DocumentId, List<SyntaxNode>>();
255var definitionToUse = new Dictionary<SyntaxNode, ISymbol>();
376var updatedRoots = new Dictionary<DocumentId, SyntaxNode>();
445private static void AddUpdatableNodeToDictionaries(Dictionary<DocumentId, List<SyntaxNode>> nodesToUpdate, DocumentId documentId, SyntaxNode nodeToUpdate, Dictionary<SyntaxNode, ISymbol> definitionToUse, ISymbol symbolWithSemanticParameters)
482var argumentToParameterMap = new Dictionary<IUnifiedArgumentSyntax, IParameterSymbol>();
483var parameterToIndexMap = new Dictionary<IParameterSymbol, int>();
Completion\Providers\AbstractSymbolCompletionProvider.cs (12)
53Dictionary<ITypeSymbol, bool> typeConvertibilityCache)
101Dictionary<ISymbol, List<ProjectId>>? invalidProjectMap,
126var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default);
183Dictionary<ITypeSymbol, bool> typeConvertibilityCache,
200Dictionary<ISymbol, List<ProjectId>>? invalidProjectMap,
318var symbolToContextMap = UnionSymbols(contextAndSymbolLists);
319var missingSymbolsMap = FindSymbolsMissingInLinkedContexts(symbolToContextMap, contextAndSymbolLists);
332private static Dictionary<SymbolAndSelectionInfo, TSyntaxContext> UnionSymbols(
339var result = new Dictionary<SymbolAndSelectionInfo, TSyntaxContext>();
400private static Dictionary<ISymbol, List<ProjectId>> FindSymbolsMissingInLinkedContexts(
401Dictionary<SymbolAndSelectionInfo, TSyntaxContext> symbolToContext,
404var missingSymbols = new Dictionary<ISymbol, List<ProjectId>>(LinkedFilesSymbolEquivalenceComparer.Instance);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (16)
408internal abstract void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, Match<SyntaxNode> match, Edit<SyntaxNode> edit, Dictionary<SyntaxNode, EditKind> editMap);
624var editMap = BuildEditMap(syntacticEdits);
736private void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, EditScript<SyntaxNode> syntacticEdits, Dictionary<SyntaxNode, EditKind> editMap)
744internal Dictionary<SyntaxNode, EditKind> BuildEditMap(EditScript<SyntaxNode> editScript)
746var map = new Dictionary<SyntaxNode, EditKind>(editScript.Edits.Length);
970Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas = null;
1399ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas)
1452var map = new Dictionary<SyntaxNode, SyntaxNode>();
1484[Out] Dictionary<LambdaBody, LambdaInfo> activeOrMatchedLambdas)
1619Dictionary<LambdaBody, LambdaInfo> lambdaInfos)
2480public readonly Dictionary<SyntaxNode, SyntaxMaps> ChangedDeclarations = [];
3442Dictionary<INamedTypeSymbol, MemberInitializationUpdates> constructorEdits;
6013private static void BuildIndex(Dictionary<VariableCaptureKey, int> index, ImmutableArray<VariableCapture> array)
6142[Out] Dictionary<SyntaxNode, RudeEditDiagnostic> closureRudeEdits,
6786internal void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, EditScript<SyntaxNode> syntacticEdits, Dictionary<SyntaxNode, EditKind> editMap)
6792ref Dictionary<LambdaBody, LambdaInfo>? lazyActiveOrMatchedLambdas)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (4)
39private readonly Dictionary<DocumentId, UnitTestingData> _pendingWork = [];
266private static TValue DequeueWorker<TKey, TValue>(SemaphoreSlim gate, Dictionary<TKey, TValue> map, CancellationToken cancellationToken)
286private static void ClearQueueWorker<TKey, TValue>(SemaphoreSlim gate, Dictionary<TKey, TValue> map, Func<TValue, IDisposable> disposerSelector)
331private readonly Dictionary<ProjectId, UnitTestingData> _pendingWork = [];
ExtractMethod\AbstractSyntaxTriviaService.cs (15)
33var tokens = GetTokensAtEdges(root, textSpan);
38var triviaList = GetTriviaAtEdges(tokens, textSpan);
40var annotations = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount)
44var map = CreateOldToNewTokensMap(tokens, annotations);
64Dictionary<TriviaLocation, SyntaxAnnotation> annotations,
65Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> triviaList)
70private static Dictionary<SyntaxToken, SyntaxToken> CreateOldToNewTokensMap(
71Dictionary<TriviaLocation, SyntaxToken> tokens,
72Dictionary<TriviaLocation, SyntaxAnnotation> annotations)
75var map = new Dictionary<SyntaxToken, SyntaxToken>();
93private static Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> GetTriviaAtEdges(Dictionary<TriviaLocation, SyntaxToken> tokens, TextSpan textSpan)
98var triviaList = new Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>>
109private static Dictionary<TriviaLocation, SyntaxToken> GetTokensAtEdges(SyntaxNode root, TextSpan textSpan)
111var tokens = new Dictionary<TriviaLocation, SyntaxToken>
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (26)
22private readonly Dictionary<TriviaLocation, SyntaxAnnotation> _annotations;
23private readonly Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> _triviaList;
28Dictionary<TriviaLocation, SyntaxAnnotation> annotations,
29Dictionary<TriviaLocation, IEnumerable<SyntaxTrivia>> triviaList)
49var tokens = RecoverTokensAtEdges(root, annotationResolver);
50var map = CreateOldToNewTokensMap(tokens, triviaResolver);
55private static Dictionary<SyntaxToken, SyntaxToken> CreateOldToNewTokensMap(
56Dictionary<TriviaLocation, PreviousNextTokenPair> tokenPairs,
57Dictionary<TriviaLocation, LeadingTrailingTriviaPair> triviaPairs)
59var map = new Dictionary<SyntaxToken, SyntaxToken>();
100private Dictionary<TriviaLocation, SyntaxToken> RecoverTokensAtEdges(
106var tokens = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount)
122private Dictionary<SyntaxToken, SyntaxToken> CreateOldToNewTokensMap(
123Dictionary<TriviaLocation, SyntaxToken> tokens,
126var tokenPairs = CreatePreviousNextTokenPairs(tokens);
127var tokenToLeadingTrailingTriviaMap = CreateTokenLeadingTrailingTriviaMap(tokens);
131var triviaPairs = Enumerable.Range((int)TriviaLocation.BeforeBeginningOfSpan, TriviaLocationsCount)
154Dictionary<TriviaLocation, PreviousNextTokenPair> tokenPairs,
155Dictionary<TriviaLocation, LeadingTrailingTriviaPair> triviaPairs)
173private Dictionary<SyntaxToken, LeadingTrailingTriviaPair> CreateTokenLeadingTrailingTriviaMap(
174Dictionary<TriviaLocation, SyntaxToken> tokens)
177var map = new Dictionary<SyntaxToken, LeadingTrailingTriviaPair>();
210private static Dictionary<TriviaLocation, PreviousNextTokenPair> CreatePreviousNextTokenPairs(
211Dictionary<TriviaLocation, SyntaxToken> tokens)
213var tokenPairs = new Dictionary<TriviaLocation, PreviousNextTokenPair>
270Dictionary<SyntaxToken, LeadingTrailingTriviaPair> triviaMap)
ExtractMethod\MethodExtractor.Analyzer.cs (12)
99var symbolMap = GetSymbolMap(model);
105bestEffort: false, model, dataFlowAnalysisData, symbolMap, isInPrimaryConstructorBaseType, out var variableInfoMap, out var failedVariables);
262Dictionary<ISymbol, VariableInfo> variableInfoMap,
317Dictionary<ISymbol, List<SyntaxToken>> symbolMap,
377private Dictionary<ISymbol, List<SyntaxToken>> GetSymbolMap(SemanticModel model)
380var symbolMap = SymbolMapBuilder.Build(this.SyntaxFacts, model, context, SelectionResult.FinalSpan, CancellationToken);
495private static ImmutableArray<VariableInfo> GetMethodParameters(Dictionary<ISymbol, VariableInfo> variableInfoMap)
510Dictionary<ISymbol, List<SyntaxToken>> symbolMap,
512out Dictionary<ISymbol, VariableInfo> variableInfoMap,
665Dictionary<ISymbol, List<SyntaxToken>> symbolMap,
722Dictionary<ISymbol, List<SyntaxToken>> symbolMap, SemanticModel model, ISymbol symbol, bool writtenInside)
1002private OperationStatus CheckReadOnlyFields(SemanticModel semanticModel, Dictionary<ISymbol, List<SyntaxToken>> symbolMap)
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (4)
152var methodCallSites = await FindCallSitesAsync(document, methodSymbol, cancellationToken).ConfigureAwait(false);
238IMethodSymbol methodSymbol, SyntaxNode containingMethod, Dictionary<Document, List<TExpressionSyntax>> methodCallSites, bool allOccurrences, IntroduceParameterCodeActionKind selectedCodeAction,
270protected static async Task<Dictionary<Document, List<TExpressionSyntax>>> FindCallSitesAsync(
273var methodCallSites = new Dictionary<Document, List<TExpressionSyntax>>();
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (10)
62private async Task<Dictionary<TIdentifierNameSyntax, IParameterSymbol>> MapExpressionToParametersAsync(CancellationToken cancellationToken)
64var nameToParameterDict = new Dictionary<TIdentifierNameSyntax, IParameterSymbol>();
226var expressionParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false);
235var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>();
305Dictionary<IParameterSymbol, int> parameterToArgumentMap, SyntaxNode currentArgumentListSyntax,
487var parameterToArgumentMap = new Dictionary<IParameterSymbol, int>();
488var expressionToParameterMap = await MapExpressionToParametersAsync(cancellationToken).ConfigureAwait(false);
542Dictionary<TIdentifierNameSyntax, IParameterSymbol> mappingDictionary,
543Dictionary<IParameterSymbol, int> parameterToArgumentMap,
608Dictionary<IParameterSymbol, int> mapping, SeparatedSyntaxList<SyntaxNode> arguments,
PdbSourceDocument\ImplementationAssemblyLookupService.cs (7)
33private readonly Dictionary<string, Dictionary<(string @namespace, string typeName), string>?> _typeForwardCache = new(StringComparer.OrdinalIgnoreCase);
72if (TryGetCachedTypeForwards(dllPath, out var typeForwards))
91var cachedTypeForwards = GetAllTypeForwards(md);
105bool TryGetCachedTypeForwards(string dllPath, [NotNullWhen(true)] out Dictionary<(string @namespace, string typeName), string>? typeForwards)
192private static Dictionary<(string, string), string>? GetAllTypeForwards(MetadataReader md)
197Dictionary<(string, string), string>? result = null;
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (6)
19private Tuple<string, Dictionary<int, int>>? _lastParsed;
23public static bool IsOrdered(Dictionary<int, int> preferredOrder, SyntaxTokenList modifiers)
43public bool TryGetOrComputePreferredOrder(string value, [NotNullWhen(true)] out Dictionary<int, int>? preferredOrder)
54if (!TryParse(value, out var parsed))
68protected virtual bool TryParse(string value, [NotNullWhen(true)] out Dictionary<int, int>? parsed)
70var result = new Dictionary<int, int>();
Microsoft.CodeAnalysis.Features.Test.Utilities (9)
Microsoft.CodeAnalysis.Features.UnitTests (3)
Microsoft.CodeAnalysis.InteractiveHost (4)
Microsoft.CodeAnalysis.LanguageServer (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol (44)
Features\CodeFixes\CodeFixService.cs (7)
502var uniqueDiagosticToEquivalenceKeysMap = new Dictionary<Diagnostic, PooledHashSet<string?>>();
507var diagnosticAndEquivalenceKeyToFixersMap = new Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider>();
620Dictionary<Diagnostic, PooledHashSet<string?>> uniqueDiagosticToEquivalenceKeysMap,
621Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider> diagnosticAndEquivalenceKeyToFixersMap,
659Dictionary<Diagnostic, PooledHashSet<string?>> uniqueDiagosticToEquivalenceKeysMap,
660Dictionary<(Diagnostic diagnostic, string? equivalenceKey), CodeFixProvider> diagnosticAndEquivalenceKeyToFixersMap)
995private readonly Dictionary<CodeFixProvider, int> _fixerToIndex;
Microsoft.CodeAnalysis.PooledObjects.Package (4)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (26)
Host\RemoteWorkspace.SolutionCreator.cs (4)
239Dictionary<ProjectId, ProjectStateChecksums> oldProjectIdToStateChecksums,
240Dictionary<ProjectId, ProjectStateChecksums> newProjectIdToStateChecksums,
480Dictionary<DocumentId, (Checksum attributeChecksum, Checksum textChecksum)> oldDocumentIdToStateChecksums,
481Dictionary<DocumentId, (Checksum attributeChecksum, Checksum textChecksum)> newDocumentIdToStateChecksums,
Host\TestUtils.cs (13)
23public static void RemoveChecksums(this Dictionary<Checksum, object> map, ChecksumCollection checksums)
31public static void RemoveChecksums(this Dictionary<Checksum, object> map, IEnumerable<Checksum> checksums)
50var assetMapFromNewSolution = await solutionFromScratch.GetAssetMapAsync(projectConeId, CancellationToken.None).ConfigureAwait(false);
51var assetMapFromIncrementalSolution = await incrementalSolutionBuilt.GetAssetMapAsync(projectConeId, CancellationToken.None).ConfigureAwait(false);
158public static async Task<Dictionary<Checksum, object>> GetAssetMapAsync(this Solution solution, ProjectId? projectConeId, CancellationToken cancellationToken)
160var map = new Dictionary<Checksum, object>();
169public static async Task<Dictionary<Checksum, object>> GetAssetMapAsync(this Project project, CancellationToken cancellationToken)
171var map = new Dictionary<Checksum, object>();
182public static Task AppendAssetMapAsync(this Solution solution, Dictionary<Checksum, object> map, CancellationToken cancellationToken)
186this Solution solution, Dictionary<Checksum, object> map, ProjectId? projectId, CancellationToken cancellationToken)
188var callback = static (Checksum checksum, object asset, Dictionary<Checksum, object> map) => { map[checksum] = asset; };
224private static async Task AppendAssetMapAsync(this Project project, Dictionary<Checksum, object> map, CancellationToken cancellationToken)
231var callback = static (Checksum checksum, object asset, Dictionary<Checksum, object> map) => { map[checksum] = asset; };
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.Scripting (7)
Microsoft.CodeAnalysis.Test.Utilities (57)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (9)
47Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes = new Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>>();
54Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes = new Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>>();
162private static bool HasMoreSpecificSourceType<SymbolType>(SymbolType symbol, ITypeSymbol symbolType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> symbolsSourceTypes, out INamedTypeSymbol commonSourceType)
232private static void AssignTo(IOperation target, Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes, Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes, IOperation sourceValue)
237private static void AssignTo(IOperation target, Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes, Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes, ITypeSymbol sourceType)
252private static void AssignTo<SymbolType>(SymbolType target, ITypeSymbol targetType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> sourceTypes, IOperation sourceValue)
257private static void AssignTo<SymbolType>(SymbolType target, ITypeSymbol targetType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> sourceTypes, ITypeSymbol sourceType)
Microsoft.CodeAnalysis.UnitTests (16)
Diagnostics\DiagnosticLocalizationTests.cs (10)
130var defaultCultureResources = new Dictionary<string, string>()
138var arResources = new Dictionary<string, string>()
146var resourceSetMap = new Dictionary<string, Dictionary<string, string>>()
157private readonly Dictionary<string, CustomResourceSet> _resourceSetMap;
159public CustomResourceManager(Dictionary<string, CustomResourceSet> resourceSetMap)
164public CustomResourceManager(Dictionary<string, Dictionary<string, string>> resourceSetMap)
210private readonly Dictionary<string, string> _resourcesMap;
211public CustomResourceSet(Dictionary<string, string> resourcesMap)
Microsoft.CodeAnalysis.VisualBasic (64)
Binding\Binder_XmlLiterals.vb (9)
125Dim allAttributes As Dictionary(Of XmlName, BoundXmlAttribute) = Nothing
144<Out()> ByRef allAttributes As Dictionary(Of XmlName, BoundXmlAttribute),
549<Out()> ByRef allAttributes As Dictionary(Of XmlName, BoundXmlAttribute),
1075<Out()> ByRef allAttributes As Dictionary(Of XmlName, BoundXmlAttribute),
1079diagnostics As BindingDiagnosticBag) As Dictionary(Of String, String)
1083Dim namespaces As Dictionary(Of String, String) = Nothing
1143<Out()> ByRef allAttributes As Dictionary(Of XmlName, BoundXmlAttribute),
1477Private ReadOnly _namespaces As Dictionary(Of String, String)
1479Public Sub New(containingBinder As Binder, namespaces As Dictionary(Of String, String))
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (6)
51Friend blockParent As Dictionary(Of BoundNode, BoundNode) = New Dictionary(Of BoundNode, BoundNode)()
52Friend lambdaParent As Dictionary(Of LambdaSymbol, MethodSymbol) = New Dictionary(Of LambdaSymbol, MethodSymbol)(ReferenceEqualityComparer.Instance)
59Friend variableScope As Dictionary(Of Symbol, BoundNode) = New Dictionary(Of Symbol, BoundNode)(ReferenceEqualityComparer.Instance)
64Friend labelBlock As Dictionary(Of LabelSymbol, BoundNode) = New Dictionary(Of LabelSymbol, BoundNode)(ReferenceEqualityComparer.Instance)
69Friend gotoBlock As Dictionary(Of BoundGotoStatement, BoundNode) = New Dictionary(Of BoundGotoStatement, BoundNode)()
100Friend lambdaScopes As Dictionary(Of LambdaSymbol, BoundNode)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (263)
Diagnostics\DiagnosticAnalysisResultBuilder.cs (9)
26private Dictionary<DocumentId, List<DiagnosticData>>? _lazySyntaxLocals = null;
27private Dictionary<DocumentId, List<DiagnosticData>>? _lazySemanticLocals = null;
28private Dictionary<DocumentId, List<DiagnosticData>>? _lazyNonLocals = null;
52ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, DocumentId documentId, IEnumerable<Diagnostic> diagnostics)
97private void AddDocumentDiagnostic(ref Dictionary<DocumentId, List<DiagnosticData>>? map, TextDocument? document, Diagnostic diagnostic)
128Dictionary<DocumentId, List<DiagnosticData>>? dummy = null;
136ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, Diagnostic diagnostic)
189ref Dictionary<DocumentId, List<DiagnosticData>>? lazyLocals, SyntaxTree? tree, IEnumerable<Diagnostic> diagnostics)
195private static ImmutableDictionary<DocumentId, ImmutableArray<DiagnosticData>> Convert(Dictionary<DocumentId, List<DiagnosticData>>? map)
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (9)
36private static readonly ObjectPool<Dictionary<ISymbol, SymbolGroup>> s_symbolToGroupPool = new(() => new(MetadataUnifyingEquivalenceComparer.Instance));
129Dictionary<ISymbol, SymbolGroup> symbolToGroup,
165ImmutableArray<ISymbol> symbols, Dictionary<ISymbol, SymbolGroup> symbolToGroup, CancellationToken cancellationToken)
177ISymbol symbol, Dictionary<ISymbol, SymbolGroup> symbolToGroup, CancellationToken cancellationToken)
220using var _2 = PooledDictionary<Document, Dictionary<ISymbol, SymbolGroup>>.GetInstance(out var documentToSymbolsWithin);
242var symbolsWithin = documentToSymbolsWithin.GetOrAdd(document, static _ => s_symbolToGroupPool.AllocateAndClear());
270private static PooledHashSet<U>? TryGet<T, U>(Dictionary<T, PooledHashSet<U>> dictionary, T key) where T : notnull
275Dictionary<ISymbol, SymbolGroup> symbolsToSearchFor,
276Dictionary<ISymbol, PooledHashSet<string>> symbolToGlobalAliases,
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (12)
36private static readonly ObjectPool<List<Dictionary<string, string>>> s_aliasMapListPool
37= SharedPools.Default<List<Dictionary<string, string>>>();
44private static readonly ObjectPool<Dictionary<string, string>> s_aliasMapPool
88protected static List<Dictionary<string, string>> AllocateAliasMapList()
120protected static void FreeAliasMapList(List<Dictionary<string, string>> list)
124foreach (var aliasMap in list)
133protected static void FreeAliasMap(Dictionary<string, string> aliasMap)
141protected static Dictionary<string, string> AllocateAliasMap()
156Dictionary<string, ArrayBuilder<int>> extensionMethodInfo,
180Dictionary<string, string?> aliases,
181Dictionary<string, ArrayBuilder<int>> extensionMethodInfo,
361private static void AddAliases(Dictionary<string, string?> allAliases, ImmutableArray<(string aliasName, string name)> aliases)
Log\KeyValueLogMessage.cs (7)
28public static KeyValueLogMessage Create(Action<Dictionary<string, object?>> propertySetter, LogLevel logLevel = LogLevel.Information)
39public static KeyValueLogMessage Create(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel = LogLevel.Information)
47private Dictionary<string, object?>? _lazyMap;
48private Action<Dictionary<string, object?>>? _propertySetter;
56private void Initialize(LogType kind, Action<Dictionary<string, object?>>? propertySetter, LogLevel logLevel)
148SharedPools.Default<Dictionary<string, object?>>().ClearAndFree(_lazyMap);
164_lazyMap = SharedPools.Default<Dictionary<string, object?>>().AllocateAndClear();
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (7)
857this Dictionary<TKey, ImmutableArray<TValue>> dictionary,
1146internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item)
1174(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result)
1208internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol>
1209(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer)
1220var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (10)
246Dictionary<SyntaxToken, int> previousChangesMap,
260AlignTokensOperation operation, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
296Dictionary<SyntaxToken, int> previousChangesMap,
324Dictionary<SyntaxToken, int> previousChangesMap,
380IList<TokenData> tokenWithIndices, Dictionary<SyntaxToken, int> newChangesMap, CancellationToken cancellationToken)
412Dictionary<SyntaxToken, int> previousChangesMap,
448Dictionary<SyntaxToken, int> previousChangesMap,
475Dictionary<SyntaxToken, int> previousChangesMap,
492Dictionary<SyntaxToken, int> previousChangesMap,
544int pairIndex, Dictionary<SyntaxToken, int> previousChangesMap, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull
38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool);
74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary)
77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool);
141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool)
144var map = pool.Allocate();
283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool)
84return new PooledObject<Dictionary<TKey, TValue>>(
139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool)
143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (23)
21public bool AreEquivalent(ISymbol? x, ISymbol? y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
64private bool AreArrayAndReadOnlySpanEquivalent(IArrayTypeSymbol array, INamedTypeSymbol readOnlySpanType, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
72internal bool AreEquivalent(CustomModifier x, CustomModifier y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
75internal bool AreEquivalent(ImmutableArray<CustomModifier> x, ImmutableArray<CustomModifier> y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
111private bool AreEquivalentWorker(ISymbol x, ISymbol y, SymbolKind k, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
139private bool ArrayTypesAreEquivalent(IArrayTypeSymbol x, IArrayTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
151private bool FieldsAreEquivalent(IFieldSymbol x, IFieldSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
169private bool MethodsAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies, bool considerReturnRefKinds = false)
280private bool NamedTypesAreEquivalent(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
300private bool NamedTypesAreEquivalentError(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
329private bool HandleNamedTypesWorker(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
418private bool HandleTupleTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
463Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies,
486internal bool ReturnTypesAreEquivalent(IMethodSymbol x, IMethodSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies = null)
492private bool TypeArgumentsAreEquivalent(ImmutableArray<ITypeSymbol> xTypeArguments, ImmutableArray<ITypeSymbol> yTypeArguments, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
511private bool HandleAnonymousTypes(INamedTypeSymbol x, INamedTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
547private bool NamespacesAreEquivalent(INamespaceSymbol x, INamespaceSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
564private bool ParametersAreEquivalent(IParameterSymbol x, IParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
574private bool PointerTypesAreEquivalent(IPointerTypeSymbol x, IPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
581private bool FunctionPointerTypesAreEquivalent(IFunctionPointerTypeSymbol x, IFunctionPointerTypeSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
584private bool PropertiesAreEquivalent(IPropertySymbol x, IPropertySymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
608private bool EventsAreEquivalent(IEventSymbol x, IEventSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
615private bool TypeParametersAreEquivalent(ITypeParameterSymbol x, ITypeParameterSymbol y, Dictionary<INamedTypeSymbol, INamedTypeSymbol>? equivalentTypesWithDifferingAssemblies)
Microsoft.CodeAnalysis.Workspaces.MSBuild (9)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (45)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (7)
857this Dictionary<TKey, ImmutableArray<TValue>> dictionary,
1146internal static void AddToMultiValueDictionaryBuilder<K, T>(Dictionary<K, object> accumulator, K key, T item)
1174(Dictionary<TKey, object> dictionary, Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> result)
1208internal static Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>> GetTypesFromMemberMap<TKey, TNamespaceOrTypeSymbol, TNamedTypeSymbol>
1209(Dictionary<TKey, ImmutableArray<TNamespaceOrTypeSymbol>> map, IEqualityComparer<TKey> comparer)
1220var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
37public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool) where TKey : notnull
38=> PooledObject<Dictionary<TKey, TValue>>.Create(pool);
74public static PooledObject<Dictionary<TKey, TValue>> GetPooledObject<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, out Dictionary<TKey, TValue> dictionary)
77var pooledObject = PooledObject<Dictionary<TKey, TValue>>.Create(pool);
141public static Dictionary<TKey, TValue> AllocateAndClear<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool)
144var map = pool.Allocate();
283public static void ClearAndFree<TKey, TValue>(this ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> map)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (7)
81public static PooledObject<Dictionary<TKey, TValue>> Create<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool)
84return new PooledObject<Dictionary<TKey, TValue>>(
139private static Dictionary<TKey, TValue> Allocator<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool)
143private static void Releaser<TKey, TValue>(ObjectPool<Dictionary<TKey, TValue>> pool, Dictionary<TKey, TValue> obj)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (7)
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.CSharp (15)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (5)
51private static readonly Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType> s_aggregateTable =
54private static readonly Dictionary<KeyPair<CType, int>, ArrayType> s_arrayTable =
57private static readonly Dictionary<KeyPair<CType, bool>, ParameterModifierType> s_parameterModifierTable =
61private static readonly Dictionary<CType, PointerType> s_pointerTable = new Dictionary<CType, PointerType>();
62private static readonly Dictionary<CType, NullableType> s_nullableTable = new Dictionary<CType, NullableType>();
Microsoft.Data.Analysis (38)
DataFrame.Join.cs (11)
185Dictionary<long, ICollection<long>> occurrences = GetOccurences(retainedDataFrame, supplementaryDataFrame,
192private static Dictionary<long, ICollection<long>> GetOccurences(DataFrame retainedDataFrame, DataFrame supplementaryDataFrame,
199Dictionary<long, ICollection<long>> occurrences = null;
200Dictionary<long, long> retainedIndicesReverseMapping = null;
213var newRetainedIndicesReverseMapping = new Dictionary<long, long>(shrinkedRetainedIndices.Length);
231var newOccurrences = shrinkedRetainedColumn.GetGroupedOccurrences(supplementaryColumn, out HashSet<long> supplementaryColumnNullIndices);
252private static Dictionary<long, ICollection<long>> GetShrinkedOccurences(Dictionary<long, ICollection<long>> occurrences,
253Dictionary<long, ICollection<long>> newOccurrences)
255var shrinkedOccurences = new Dictionary<long, ICollection<long>>();
276Dictionary<long, ICollection<long>> occurrences, HashSet<long> supplementaryJoinColumnsNullIndices,
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.ArcadeLogging (6)
Microsoft.DotNet.AsmDiff (1)
Microsoft.DotNet.Build.Tasks.Feed (4)
Microsoft.DotNet.Build.Tasks.Installers (3)
Microsoft.DotNet.Build.Tasks.Packaging (45)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (5)
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
Microsoft.DotNet.Build.Tasks.Templating (1)
Microsoft.DotNet.Build.Tasks.Workloads (16)
Microsoft.DotNet.CodeAnalysis (6)
Microsoft.DotNet.GenFacades (5)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.Helix.JobSender (3)
Microsoft.DotNet.Helix.Sdk (1)
Microsoft.DotNet.Helix.Sdk.Tests (2)
Microsoft.DotNet.NuGetRepack.Tasks (7)
src\NuGetVersionUpdater.cs (4)
74var packages = new Dictionary<string, PackageInfo>();
100private static void LoadPackages(IEnumerable<string> packagePaths, Dictionary<string, PackageInfo> packages, string tempDirectoryOpt, VersionTranslation translation)
283private static void UpdateDependencies(Dictionary<string, PackageInfo> packages, VersionTranslation translation, bool exactVersions, Func<string, string, string, bool> allowPreReleaseDependencyOpt)
348private static void SavePackages(Dictionary<string, PackageInfo> packages, string outDirectory)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.PackageTesting (7)
Microsoft.DotNet.SharedFramework.Sdk (9)
Microsoft.DotNet.SignCheckLibrary (5)
Microsoft.DotNet.SignTool (26)
Microsoft.DotNet.SignTool.Tests (81)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (4)
Microsoft.DotNet.VersionTools (22)
Microsoft.DotNet.VersionTools.Tasks (1)
Microsoft.DotNet.XliffTasks (8)
Model\JsonDocument.cs (4)
21private Dictionary<string, string> _json;
26_json = JsonSerializer.Deserialize<Dictionary<string, string>>(text);
31writer.Write(JsonSerializer.Serialize(_json, typeof(Dictionary<string, string>), s_serializerOptions));
37private sealed class Node(Dictionary<string, string> json, string id, string source) : TranslatableNode(id, source, note: null)
Microsoft.DotNet.XliffTasks.Tests (9)
Microsoft.DotNet.XUnitAssert.Tests (98)
CollectionAssertsTests.cs (52)
1254 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1255 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1263 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1264 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } };
1272 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1273 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1289 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1290 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1306 var expected = new Dictionary<string, int>
1315 var actual = new Dictionary<string, int>
1340 var expected = new Dictionary<string, IEnumerable<string>>
1345 var actual = new Dictionary<string, IEnumerable<string>>
1358 var expected = new Dictionary<string, IEnumerable<string>>
1363 var actual = new Dictionary<string, IEnumerable<string>>
1387 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1388 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1396 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
1397 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } };
1421 var expected = new Dictionary<string, object>()
1425 ["key"] = new List<Dictionary<string, object>>()
1434 var actual = new Dictionary<string, object>()
1438 ["key"] = new List<Dictionary<string, object>>()
1454 var expected = new Dictionary<string, object>()
1458 ["key"] = new List<Dictionary<string, object>>()
1467 var actual = new Dictionary<string, object>()
1471 ["key"] = new List<Dictionary<string, object>>()
1929 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1930 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1946 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1947 var actual = new Dictionary<string, int> { { "b", 2 }, { "c", 3 }, { "a", 1 } };
1963 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1964 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1972 var expected = new Dictionary<string, int> { { "a", 1 }, { "b", 2 } };
1973 var actual = new Dictionary<string, int> { { "a", 1 }, { "b", 2 }, { "c", 3 } };
1981 var expected = new Dictionary<string, int>
1990 var actual = new Dictionary<string, int>
2007 var expected = new Dictionary<string, IEnumerable<string>>
2012 var actual = new Dictionary<string, IEnumerable<string>>
2033 var expected = new Dictionary<string, IEnumerable<string>>
2038 var actual = new Dictionary<string, IEnumerable<string>>
2054 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2055 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2071 var expected = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'a' } } };
2072 var actual = new Dictionary<string, EquatableObject> { { "Key1", new() { Char = 'b' } } };
2088 var expected = new Dictionary<string, object>()
2092 ["key"] = new List<Dictionary<string, object>>()
2101 var actual = new Dictionary<string, object>()
2105 ["key"] = new List<Dictionary<string, object>>()
2129 var expected = new Dictionary<string, object>()
2133 ["key"] = new List<Dictionary<string, object>>()
2142 var actual = new Dictionary<string, object>()
2146 ["key"] = new List<Dictionary<string, object>>()
EqualityAssertsTests.cs (20)
1124 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1125 var actual = new Dictionary<string, string> { ["foo"] = "bar" };
1135 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1136 var actual = new Dictionary<string, string> { ["foo"] = "baz" };
1159 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1169 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
1192 var expected = new Dictionary<string, int?> { { "two", null } };
1193 var actual = new Dictionary<string, int?> { { "two", null } };
1201 var expected = new Dictionary<string, int?> { { "two", null } };
1202 var actual = new Dictionary<string, int?> { { "two", 1 } };
3353 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3354 var actual = new Dictionary<string, string> { ["foo"] = "bar" };
3377 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3378 var actual = new Dictionary<string, string> { ["foo"] = "baz" };
3388 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3411 var expected = new Dictionary<string, string> { ["foo"] = "bar" };
3421 var expected = new Dictionary<string, int?> { { "two", null } };
3422 var actual = new Dictionary<string, int?> { { "two", null } };
3438 var expected = new Dictionary<string, int?> { { "two", null } };
3439 var actual = new Dictionary<string, int?> { { "two", 1 } };
EquivalenceAssertsTests.cs (18)
1158 var expected = new Dictionary<string, int> { ["Foo"] = 42 };
1159 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1167 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 } };
1168 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } };
1176 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 } };
1177 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
1194 var expected = new Dictionary<string, int> { ["Foo"] = 16 };
1195 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1211 var expected = new Dictionary<string, int[]> { ["Foo"] = new[] { 16 } };
1212 var actual = new Dictionary<string, int[]> { ["Foo"] = new[] { 42 }, ["Bar"] = new[] { 2112 } };
1228 var expected = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 16 } };
1229 var actual = new Dictionary<string, List<int>> { ["Foo"] = new List<int> { 42 }, ["Bar"] = new List<int> { 2112 } };
1265 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 };
1266 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1283 var expected = new Dictionary<string, int> { ["Foo"] = 16 };
1284 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Bar"] = 2112 };
1300 var expected = new Dictionary<string, int> { ["Bar"] = 2112, ["Foo"] = 42 };
1301 var actual = new Dictionary<string, int> { ["Foo"] = 42, ["Biff"] = 2600, ["Bar"] = 2112 };
Microsoft.DotNet.XUnitExtensions (1)
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 } };
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
Microsoft.Extensions.AsyncState (5)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Caching.SqlServer.Tests (1)
Microsoft.Extensions.Compliance.Abstractions (5)
Microsoft.Extensions.Compliance.Redaction (3)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Extensions.Configuration.CommandLine (4)
Microsoft.Extensions.Configuration.EnvironmentVariables (3)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Configuration.Json (2)
Microsoft.Extensions.Configuration.KeyPerFile (1)
Microsoft.Extensions.Configuration.Xml (3)
Microsoft.Extensions.DependencyInjection (5)
Microsoft.Extensions.DependencyModel (10)
DependencyContextJsonReader.cs (7)
20private readonly Dictionary<string, string> _stringPool = new Dictionary<string, string>();
140Dictionary<string, LibraryStub>? libraryStubs = null;
634private Dictionary<string, LibraryStub> ReadLibraries(ref Utf8JsonReader reader)
636var libraries = new Dictionary<string, LibraryStub>();
738private IEnumerable<Library> CreateLibraries(IEnumerable<TargetLibrary>? libraries, bool runtime, Dictionary<string, LibraryStub>? libraryStubs)
747IEnumerable<Library> CreateLibrariesNotNull(IEnumerable<TargetLibrary> libraries, bool runtime, Dictionary<string, LibraryStub>? libraryStubs)
758private Library? CreateLibrary(TargetLibrary targetLibrary, bool runtime, Dictionary<string, LibraryStub>? libraryStubs)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (5)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http (3)
Microsoft.Extensions.Http.Diagnostics (12)
Microsoft.Extensions.Http.Diagnostics.Tests (11)
Microsoft.Extensions.Http.Resilience (5)
Microsoft.Extensions.Http.Resilience.Tests (8)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.SourceGeneration (14)
Emitter.cs (11)
61var staticValidationAttributesDict = new Dictionary<string, StaticFieldInfo>();
62var staticValidatorsDict = new Dictionary<string, StaticFieldInfo>();
102private void GenValidatorType(ValidatorType vt, ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
670ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict,
671ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
730private void GenMemberValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, bool cleanListsBeforeUse)
753private StaticFieldInfo GetOrAddStaticValidationAttribute(ref Dictionary<string, StaticFieldInfo> staticValidationAttributesDict, ValidationAttributeInfo attr)
813private void GenTransitiveValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
844private void GenEnumerationValidation(ValidatedMember vm, string modelName, ref Dictionary<string, StaticFieldInfo> staticValidatorsDict)
901private StaticFieldInfo GetOrAddStaticValidator(ref Dictionary<string, StaticFieldInfo> staticValidatorsDict, string validatorTypeFQN)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (7)
Microsoft.Extensions.Telemetry (7)
Microsoft.Extensions.Telemetry.Abstractions (5)
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
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 } };
Microsoft.Gen.ComplianceReports (7)
Parser.cs (7)
48Dictionary<string, ClassifiedItem>? classifiedMembers = null;
103private Dictionary<string, ClassifiedItem>? GetClassifiedMembers(RecordDeclarationSyntax recordSyntax,
104Dictionary<string, ClassifiedItem>? classifiedMembers,
140private Dictionary<string, ClassifiedItem>? GetClassifiedMembers(ITypeSymbol typeSymbol, Dictionary<string, ClassifiedItem>? classifiedMembers)
157Dictionary<string, ClassifiedItem>? ClassifyMember(Dictionary<string, ClassifiedItem>? classifiedMembers, ISymbol member, ITypeSymbol memberType)
Microsoft.Gen.ComplianceReports.Unit.Tests (7)
Microsoft.Gen.ContextualOptions (3)
Microsoft.Gen.ContextualOptions.Unit.Tests (3)
Microsoft.Gen.Logging (4)
Microsoft.Gen.Logging.Generated.Tests (39)
LogPropertiesTests.cs (15)
45var ss = _logger.LatestRecord.StructuredState!.ToDictionary(x => x.Key, x => x.Value);
176var ss = collector.LatestRecord.StructuredState!.ToDictionary(x => x.Key, x => x.Value);
231var expectedState = new Dictionary<string, string?>
305var expectedState = new Dictionary<string, string?>
325var expectedState = new Dictionary<string, string?>
345var expectedState = new Dictionary<string, string?>
368var expectedState = new Dictionary<string, string?>
392var expectedState = new Dictionary<string, string?>
422var expectedState = new Dictionary<string, string?>
451var expectedState = new Dictionary<string, string?>
477var expectedState = new Dictionary<string, string?>
504var expectedState = new Dictionary<string, string?>
528var expectedState = new Dictionary<string, string?>
553var expectedState = new Dictionary<string, string?>
579var expectedState = new Dictionary<string, string?>
TagProviderTests.cs (15)
37var expectedState = new Dictionary<string, string?>
60var expectedState = new Dictionary<string, string?>
87var expectedState = new Dictionary<string, string?>
110var expectedState = new Dictionary<string, string?>
142var expectedState = new Dictionary<string, string?>
211var expectedState = new Dictionary<string, string?>
230var expectedState = new Dictionary<string, string?>
250var expectedState = new Dictionary<string, string?>
272var expectedState = new Dictionary<string, string?>
293var expectedState = new Dictionary<string, string?>
313var expectedState = new Dictionary<string, string?>
334var expectedState = new Dictionary<string, string?>
361var expectedState = new Dictionary<string, string?>
399var expectedState = new Dictionary<string, string?>
424var expectedState = new Dictionary<string, string?>
Microsoft.Gen.Metrics (10)
Parser.cs (6)
276private (string metricName, HashSet<string> tagNames, Dictionary<string, string> dimensionDescriptions) ExtractAttributeParameters(
281var tagDescriptionMap = new Dictionary<string, string>();
369Dictionary<string, string> tagDescriptionDictionary)
679Dictionary<string, string> tagDescriptionDictionary,
857Dictionary<string, string> tagDescriptionDictionary,
896Dictionary<string, string> tagDescriptionDictionary,
Microsoft.Gen.MetricsReports (9)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (6)
276private (string metricName, HashSet<string> tagNames, Dictionary<string, string> dimensionDescriptions) ExtractAttributeParameters(
281var tagDescriptionMap = new Dictionary<string, string>();
369Dictionary<string, string> tagDescriptionDictionary)
679Dictionary<string, string> tagDescriptionDictionary,
857Dictionary<string, string> tagDescriptionDictionary,
896Dictionary<string, string> tagDescriptionDictionary,
Microsoft.Gen.MetricsReports.Unit.Tests (8)
Microsoft.Interop.ComInterfaceGenerator (5)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.SourceGeneration (2)
Microsoft.JSInterop (4)
Microsoft.Maui (22)
Microsoft.Maui.Controls (75)
Registrar.cs (13)
45 readonly Dictionary<Type, Dictionary<Type, HandlerType>> _handlers = new Dictionary<Type, Dictionary<Type, HandlerType>>();
62 if (!_handlers.TryGetValue(tview, out Dictionary<Type, HandlerType> visualRenderers))
176 if (_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers))
212 if (_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers))
239 if (!_handlers.TryGetValue(viewType, out Dictionary<Type, HandlerType> visualRenderers) ||
312 internal static Dictionary<string, EffectType> Effects { get; } = new(StringComparer.Ordinal);
314 internal static Dictionary<string, IList<StylePropertyAttribute>> StyleProperties => LazyStyleProperties.Value;
317 static readonly Lazy<Dictionary<string, IList<StylePropertyAttribute>>> LazyStyleProperties = new Lazy<Dictionary<string, IList<StylePropertyAttribute>>>(LoadStyleSheets);
357 static Dictionary<string, IList<StylePropertyAttribute>> LoadStyleSheets()
359 var properties = new Dictionary<string, IList<StylePropertyAttribute>>(StringComparer.Ordinal);
Microsoft.Maui.Controls.Build.Tasks (21)
SetPropertiesVisitor.cs (4)
696 static IEnumerable<Instruction> DigProperties(IEnumerable<(PropertyDefinition property, TypeReference propDeclTypeRef, string indexArg)> properties, Dictionary<TypeReference, VariableDefinition> locs, Func<Instruction> fallback, IXmlLineInfo lineInfo, ModuleDefinition module)
799 var locs = new Dictionary<TypeReference, VariableDefinition>();
895 var locs = new Dictionary<TypeReference, VariableDefinition>();
1028 var locs = new Dictionary<TypeReference, VariableDefinition>();
XamlCache.cs (10)
14 readonly Dictionary<ModuleDefinition, IList<XmlnsDefinitionAttribute>> _xmlnsDefinitions = new();
15 readonly Dictionary<TypeReference, TypeDefinition> _resolvedTypes = new();
16 readonly Dictionary<(ModuleDefinition module, string fieldRefKey), FieldReference> _fieldReferenceCache = new();
17 readonly Dictionary<(ModuleDefinition module, string typeKey), TypeReference> _typeReferenceCache = new();
18 readonly Dictionary<(ModuleDefinition module, string methodRefKey), MethodReference> _methodReferenceCache = new();
19 readonly Dictionary<(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName)), TypeDefinition> _typeDefinitionCache = new();
20 readonly Dictionary<VariableDefinition, ICollection<string>> _resourceNamesInUse = new();
21 Dictionary<TypeReference, Type> _knownCompiledTypeConverters;
23 static TValue GetOrAdd<TKey, TValue>(Dictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TValue> valueFactory)
56 public Dictionary<TypeReference, Type> GetKnownCompiledTypeConverters(ModuleDefinition module) => _knownCompiledTypeConverters ??= new(TypeRefComparer.Default)
Microsoft.Maui.Controls.Compatibility (10)
Microsoft.Maui.Controls.SourceGen (2)
Microsoft.Maui.Controls.Xaml (13)
Microsoft.Maui.Essentials (4)
Microsoft.Maui.Graphics (19)
Text\TextAttributeExtensions.cs (12)
16 this Dictionary<TextAttribute, string> attributes,
30 this Dictionary<TextAttribute, string> attributes,
42 this Dictionary<TextAttribute, string> attributes,
54 this Dictionary<TextAttribute, string> attributes,
66 this Dictionary<TextAttribute, string> attributes,
78 this Dictionary<TextAttribute, string> attributes,
90 this Dictionary<TextAttribute, string> attributes,
102 this Dictionary<TextAttribute, string> attributes,
111 public static void SetSuperscript(this Dictionary<TextAttribute, string> attributes, bool value)
117 public static void SetSubscript(this Dictionary<TextAttribute, string> attributes, bool value)
123 public static void SetForegroundColor(this Dictionary<TextAttribute, string> attributes, string value)
129 public static void SetBackgroundColor(this Dictionary<TextAttribute, string> attributes, string value)
Text\TextAttributesExtensions.cs (6)
24 this Dictionary<TextAttribute, string> attributes,
38 this Dictionary<TextAttribute, string> attributes,
60 this Dictionary<TextAttribute, string> attributes,
87 this Dictionary<TextAttribute, string> attributes,
116 this Dictionary<TextAttribute, string> attributes,
143 this Dictionary<TextAttribute, string> attributes,
Microsoft.Maui.Graphics.Text.Markdig (3)
Microsoft.Maui.Resizetizer (10)
Microsoft.ML.AutoML (49)
SweepableEstimator\MultiModelPipeline.cs (7)
17private readonly Dictionary<string, SweepableEstimator> _estimators;
26internal MultiModelPipeline(Dictionary<string, SweepableEstimator> estimators, Entity schema)
32public Dictionary<string, SweepableEstimator> Estimators { get => _estimators; }
114var estimators = _estimators.ToDictionary(x => x.Key, x => x.Value);
134private Entity CreateSweepableEntityFromEntity(Entity entity, Dictionary<string, SweepableEstimator> lookupTable)
170private Entity VisitAndReplaceSweepableEntityWithStringEntity(Entity e, ref Dictionary<string, SweepableEstimator> estimators)
195private string GetNextId(Dictionary<string, SweepableEstimator> estimators)
SweepableEstimator\SweepablePipeline.cs (8)
21private readonly Dictionary<string, SweepableEstimator> _estimators = new Dictionary<string, SweepableEstimator>();
72internal SweepablePipeline(Dictionary<string, SweepableEstimator> estimators, Entity schema, string currentSchema = null)
79public Dictionary<string, SweepableEstimator> Estimators { get => _estimators; }
110var pipelineNodes = entity.ValueEntities()
174var estimators = _estimators.ToDictionary(x => x.Key, x => x.Value);
194private Entity CreateSweepableEntityFromEntity(Entity entity, Dictionary<string, SweepableEstimator> lookupTable)
230private Entity VisitAndReplaceSweepableEntityWithStringEntity(Entity e, ref Dictionary<string, SweepableEstimator> estimators)
255private string GetNextId(Dictionary<string, SweepableEstimator> estimators)
Tuner\PipelineProposer.cs (12)
22private readonly Dictionary<EstimatorType, double> _estimatorCost;
23private readonly Dictionary<string, double> _learnerInitialCost;
26private Dictionary<string, double> _k1;
29private Dictionary<string, double> _k2;
32private Dictionary<string, double> _e1;
35private Dictionary<string, double> _e2;
38private readonly Dictionary<string, double> _eci;
223public Dictionary<string, double> K1 { get; set; }
225public Dictionary<string, double> K2 { get; set; }
227public Dictionary<string, double> E1 { get; set; }
229public Dictionary<string, double> E2 { get; set; }
231public Dictionary<string, double> Eci { get; set; }
Microsoft.ML.AutoML.SourceGenerator (8)
Microsoft.ML.AutoML.Tests (9)
Microsoft.ML.CodeGenerator (1)
Microsoft.ML.CodeGenerator.Tests (60)
TrainerGeneratorTests.cs (40)
30var elementProperties = new Dictionary<string, object>()
58var elementProperties = new Dictionary<string, object>()
79var elementProperties = new Dictionary<string, object>()
102var elementProperties = new Dictionary<string, object>();
119var elementProperties = new Dictionary<string, object>()
139var elementProperties = new Dictionary<string, object>();
156var elementProperties = new Dictionary<string, object>()
176var elementProperties = new Dictionary<string, object>();
193var elementProperties = new Dictionary<string, object>()
213var elementProperties = new Dictionary<string, object>();
230var elementProperties = new Dictionary<string, object>()
250var elementProperties = new Dictionary<string, object>();
267var elementProperties = new Dictionary<string, object>()
286var elementProperties = new Dictionary<string, object>();
300var elementProperties = new Dictionary<string, object>()
327var elementProperties = new Dictionary<string, object>();
344var elementProperties = new Dictionary<string, object>()
364var elementProperties = new Dictionary<string, object>();
381var elementProperties = new Dictionary<string, object>()
401var elementProperties = new Dictionary<string, object>();
418var elementProperties = new Dictionary<string, object>()
438var elementProperties = new Dictionary<string, object>();
455var elementProperties = new Dictionary<string, object>()
475var elementProperties = new Dictionary<string, object>();
492var elementProperties = new Dictionary<string, object>()
512var elementProperties = new Dictionary<string, object>();
529var elementProperties = new Dictionary<string, object>()
550var elementProperties = new Dictionary<string, object>();
567var elementProperties = new Dictionary<string, object>()
588var elementProperties = new Dictionary<string, object>();
605var elementProperties = new Dictionary<string, object>()
626var elementProperties = new Dictionary<string, object>();
643var elementProperties = new Dictionary<string, object>()
664var elementProperties = new Dictionary<string, object>();
680var elementProperties = new Dictionary<string, object>()
701var elementProperties = new Dictionary<string, object>();
718var elementProperties = new Dictionary<string, object>()
739var elementProperties = new Dictionary<string, object>();
756var elementProperties = new Dictionary<string, object>()
774var elementProperties = new Dictionary<string, object>();
TransformGeneratorTests.cs (11)
25var elementProperties = new Dictionary<string, object>();//categorical
39var elementProperties = new Dictionary<string, object>();//categorical
53var elementProperties = new Dictionary<string, object>();
67var elementProperties = new Dictionary<string, object>();
81var elementProperties = new Dictionary<string, object>();//nume to num feature 2
95var elementProperties = new Dictionary<string, object>();
109var elementProperties = new Dictionary<string, object>();//numeric feature
123var elementProperties = new Dictionary<string, object>();
137var elementProperties = new Dictionary<string, object>();
151var elementProperties = new Dictionary<string, object>();
165var elementProperties = new Dictionary<string, object>();
Microsoft.ML.Core (30)
Data\RoleMappedSchema.cs (9)
155private readonly Dictionary<string, IReadOnlyList<DataViewSchema.Column>> _map;
157private RoleMappedSchema(DataViewSchema schema, Dictionary<string, IReadOnlyList<DataViewSchema.Column>> map)
196private RoleMappedSchema(DataViewSchema schema, Dictionary<string, List<DataViewSchema.Column>> map)
201private static void Add(Dictionary<string, List<DataViewSchema.Column>> map, ColumnRole role, DataViewSchema.Column column)
214private static Dictionary<string, List<DataViewSchema.Column>> MapFromNames(DataViewSchema schema, IEnumerable<KeyValuePair<ColumnRole, string>> roles, bool opt = false)
219var map = new Dictionary<string, List<DataViewSchema.Column>>();
311private static Dictionary<string, IReadOnlyList<DataViewSchema.Column>> Copy(Dictionary<string, List<DataViewSchema.Column>> map)
313var copy = new Dictionary<string, IReadOnlyList<DataViewSchema.Column>>(map.Count);
Utilities\Utils.cs (4)
108public static int Size<TKey, TValue>(Dictionary<TKey, TValue> x)
122public static bool TryGetValue<TKey, TValue>(Dictionary<TKey, TValue> map, TKey key, out TValue value)
157public static void Add<TKey, TValue>(ref Dictionary<TKey, TValue> map, TKey key, TValue value)
165public static void Set<TKey, TValue>(ref Dictionary<TKey, TValue> map, TKey key, TValue value)
Microsoft.ML.Core.Tests (5)
Microsoft.ML.CpuMath.UnitTests (37)
UnitTests.cs (37)
31private static Dictionary<string, string> _disableAvxEnvironmentVariables;
32private static Dictionary<string, string> _disableAvxAndSseEnvironmentVariables;
138public static TheoryData<string, string, Dictionary<string, string>> AddData()
142return new TheoryData<string, string, Dictionary<string, string>>()
150return new TheoryData<string, string, Dictionary<string, string>>()
166public static TheoryData<string, string, string, Dictionary<string, string>> AddScaleData()
170return new TheoryData<string, string, string, Dictionary<string, string>>()
180return new TheoryData<string, string, string, Dictionary<string, string>>()
203public static TheoryData<string, string, string, string, Dictionary<string, string>> MatMulData()
207return new TheoryData<string, string, string, string, Dictionary<string, string>>()
216return new TheoryData<string, string, string, string, Dictionary<string, string>>()
236public void MatMulTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables)
271public void MatMulTranTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables)
304public void MatTimesSrcSparseTest(string mode, string matTest, string srcTest, string dstTest, Dictionary<string, string> environmentVariables)
342public void AddScalarUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
368public void ScaleTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
394public void ScaleSrcUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
421public void ScaleAddUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
448public void AddScaleUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
475public void AddScaleSUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
504public void AddScaleCopyUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
532public void AddUTest(string mode, string test, Dictionary<string, string> environmentVariables)
565public void AddSUTest(string mode, string test, Dictionary<string, string> environmentVariables)
594public void MulElementWiseUTest(string mode, string test, Dictionary<string, string> environmentVariables)
628public void SumTest(string mode, string test, Dictionary<string, string> environmentVariables)
651public void SumSqUTest(string mode, string test, Dictionary<string, string> environmentVariables)
674public void SumSqDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
699public void SumAbsUTest(string mode, string test, Dictionary<string, string> environmentVariables)
722public void SumAbsDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
747public void MaxAbsUTest(string mode, string test, Dictionary<string, string> environmentVariables)
775public void MaxAbsDiffUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
803public void DotUTest(string mode, string test, Dictionary<string, string> environmentVariables)
833public void DotSUTest(string mode, string test, Dictionary<string, string> environmentVariables)
867public void Dist2Test(string mode, string test, Dictionary<string, string> environmentVariables)
927public void SdcaL1UpdateUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
957public void SdcaL1UpdateSUTest(string mode, string test, string scale, Dictionary<string, string> environmentVariables)
987private void UpdateEnvVars(RemoteInvokeOptions options, Dictionary<string, string> environmentVariables)
Microsoft.ML.Data (176)
Data\Conversion.cs (8)
78private readonly Dictionary<(Type src, Type dst), Delegate> _delegatesStd;
82private readonly Dictionary<(Type src, Type dst), Delegate> _delegatesAll;
85private readonly Dictionary<Type, Delegate> _isNADelegates;
88private readonly Dictionary<Type, Delegate> _hasNADelegates;
91private readonly Dictionary<Type, Delegate> _isDefaultDelegates;
95private readonly Dictionary<Type, Delegate> _hasZeroDelegates;
98private readonly Dictionary<Type, Delegate> _getNADelegates;
101private readonly Dictionary<Type, Delegate> _tryParseDelegates;
EntryPoints\EntryPointNode.cs (19)
72if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(Dictionary<,>)
205Contracts.Assert(variableType.IsGenericType && variableType.GetGenericTypeDefinition() == typeof(Dictionary<,>)
265private readonly Dictionary<string, EntryPointVariable> _vars;
298type = typeof(Dictionary<,>).MakeGenericType(typeof(string), type);
418private readonly Dictionary<string, List<ParameterBinding>> _inputBindingMap;
420private readonly Dictionary<ParameterBinding, VariableBinding> _inputMap;
424private readonly Dictionary<string, string> _outputMap;
558Dictionary<string, List<ParameterBinding>> inputBindingMap,
559Dictionary<ParameterBinding, VariableBinding> inputMap,
560Dictionary<string, string> outputMap,
593Dictionary<string, string> inputMap,
594Dictionary<string, string> outputMap,
603var inputBindingMap = new Dictionary<string, List<ParameterBinding>>();
604var inputParamBindingMap = new Dictionary<ParameterBinding, VariableBinding>();
735public void RenameAllVariables(Dictionary<string, string> mapping)
748var toModify = new Dictionary<string, string>();
844public Dictionary<string, List<ParameterBinding>> InputBindingMap => _inputBindingMap;
845public Dictionary<ParameterBinding, VariableBinding> InputMap => _inputMap;
846public Dictionary<string, string> OutputMap => _outputMap;
Evaluators\BinaryClassifierEvaluator.cs (14)
218out Action<uint, ReadOnlyMemory<char>, Aggregator> addAgg, out Func<Dictionary<string, IDataView>> consolidate)
369var result = new Dictionary<string, IDataView>();
824var resultDict = ((IEvaluator)this).Evaluate(roles);
872var resultDict = ((IEvaluator)this).Evaluate(roles);
951var resultDict = ((IEvaluator)this).Evaluate(roles);
997var resultDict = ((IEvaluator)this).Evaluate(roles);
1355private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics)
1413private protected override void PrintAdditionalMetricsCore(IChannel ch, Dictionary<string, IDataView>[] metrics)
1449private bool TryGetPrMetrics(Dictionary<string, IDataView>[] metrics, out IDataView pr)
1456var dict = metrics[i];
1516var metrics = evaluator.Evaluate(data);
1546private static IDataView ExtractWarnings(IHost host, Dictionary<string, IDataView> metrics)
1559private static IDataView ExtractOverallMetrics(IHost host, Dictionary<string, IDataView> metrics, IMamlEvaluator evaluator)
1574private static IDataView ExtractConfusionMatrix(IHost host, Dictionary<string, IDataView> metrics)
Evaluators\EvaluatorBase.cs (7)
31Dictionary<string, IDataView> IEvaluator.Evaluate(RoleMappedData data)
38var dict = ProcessData(data.Data, data.Schema, activeCols, agg, dictionaries);
130private Dictionary<string, IDataView> ProcessData(IDataView data, RoleMappedSchema schema,
178Func<Dictionary<string, IDataView>> consolidate;
203out Action<uint, ReadOnlyMemory<char>, TAgg> addAgg, out Func<Dictionary<string, IDataView>> consolidate);
304public void GetWarnings(Dictionary<string, IDataView> dict, IHostEnvironment env)
398private readonly Dictionary<TStrat, TAgg> _dict;
Evaluators\EvaluatorUtils.cs (14)
30private static volatile Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> _knownEvaluatorFactories;
32public static Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> Instance
36Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>> result = _knownEvaluatorFactories;
39var tmp = new Dictionary<string, Func<IHostEnvironment, IMamlEvaluator>>
68var map = DefaultEvaluatorTable.Instance;
92var map = DefaultEvaluatorTable.Instance;
466var slotNames = new Dictionary<string, int>();
554int[] indices, Dictionary<ReadOnlyMemory<char>, int> reconciledKeyNames)
611var keyNames = new Dictionary<ReadOnlyMemory<char>, int>();
679var keyNames = new Dictionary<ReadOnlyMemory<char>, int>();
813var vectorSizes = new Dictionary<string, int>();
814var firstDvSlotNames = new Dictionary<string, VBuffer<ReadOnlyMemory<char>>>();
817var firstDvKeyNoNamesColumns = new Dictionary<string, ulong>();
1731public static void PrintWarnings(IChannel ch, Dictionary<string, IDataView> metrics)
Evaluators\MamlEvaluator.cs (7)
27void PrintFoldResults(IChannel ch, Dictionary<string, IDataView> metrics);
41void PrintAdditionalMetrics(IChannel ch, params Dictionary<string, IDataView>[] metrics);
107Dictionary<string, IDataView> IEvaluator.Evaluate(RoleMappedData data)
155void IMamlEvaluator.PrintFoldResults(IChannel ch, Dictionary<string, IDataView> metrics)
167private protected virtual void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics)
202void IMamlEvaluator.PrintAdditionalMetrics(IChannel ch, params Dictionary<string, IDataView>[] metrics)
214private protected virtual void PrintAdditionalMetricsCore(IChannel ch, Dictionary<string, IDataView>[] metrics)
Microsoft.ML.DataView (2)
Microsoft.ML.Ensemble (1)
Microsoft.ML.EntryPoints (23)
Microsoft.ML.Fairlearn (10)
Metrics\FairlearnMetricCatalog.cs (9)
85var res = GroupIds.Select((id, i) =>
96var groupMetric = res.Select(kv => (kv.Key, _context.BinaryClassification.EvaluateNonCalibrated(kv.Value)))
113public Dictionary<string, double> Overall()
118Dictionary<string, double> metricsDict = new Dictionary<string, double>
187var groupMetric = new Dictionary<object, RegressionMetrics>();
242public Dictionary<string, double> DifferenceBetweenGroups()
244Dictionary<string, double> diffDict = new Dictionary<string, double>();
254public Dictionary<string, double> Overall()
259Dictionary<string, double> metricsDict = new Dictionary<string, double>
Microsoft.ML.Fairlearn.Tests (3)
Microsoft.ML.FastTree (20)
Microsoft.ML.GenAI.Core (15)
Extension\ModuleExtension.cs (15)
18var stateDict = model.state_dict();
28public static Dictionary<string, long> GetSizeForEachDynamicLayerInBytes(this nn.Module model)
37var dict = new Dictionary<string, long>();
47var subDict = value.GetSizeForEachDynamicLayerInBytes();
119Dictionary<string, string> deviceMap,
152var childrenDeviceMap = deviceMap.Where(x => x.Key.StartsWith($"{key}.")).ToDictionary(x => x.Key.Substring($"{key}.".Length), x => x.Value);
169public static Dictionary<string, string> InferDeviceMapForEachLayer(
172Dictionary<string, long> deviceSizeMapInByte)
174var layerSizeMap = model.GetSizeForEachDynamicLayerInBytes();
176var deviceMap = new Dictionary<string, string>();
180var remainingLayerSizeMap = layerSizeMap.Where(x => !deviceMap.ContainsKey(x.Key)).ToDictionary(x => x.Key, x => x.Value);
211public static Dictionary<string, string> InferDeviceMapForEachLayer(
219var deviceMap = new Dictionary<string, string>();
254var stateDict = model.state_dict();
272var stateDict = model.state_dict();
Microsoft.ML.GenAI.LLaMA (2)
Microsoft.ML.GenAI.Mistral (4)
Microsoft.ML.GenAI.Phi (2)
Microsoft.ML.GenAI.Phi.Tests (2)
Microsoft.ML.GenAI.Samples (1)
Microsoft.ML.ImageAnalytics (6)
Microsoft.ML.IntegrationTests (2)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.LightGbm (26)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.NugetPackageVersionUpdater (1)
Microsoft.ML.OnnxConverter (1)
Microsoft.ML.OnnxTransformer (11)
Microsoft.ML.OnnxTransformerTest (5)
Microsoft.ML.PCA (1)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.Recommender (1)
Microsoft.ML.ResultProcessor (30)
ResultProcessor.cs (30)
55public Dictionary<string, string> DefaultSettings;
60public Dictionary<string, object> SameHeaderValues;
62public static Dictionary<string, Dictionary<string, string>> MapDefaultSettingToLearner = new Dictionary<string, Dictionary<string, string>>();
136Dictionary<string, string> temp;
152private Dictionary<string, string> GetDefaultSettings(IHostEnvironment env, string predictorName, string[] extraAssemblies = null)
245public Dictionary<string, string> Settings;
250public Dictionary<string, ResultMetric> Results;
255public Dictionary<string, ResultMetric> PerFoldResults;
527Dictionary<string, string> predictorSettings;
581var runResults = ParseResultLines(fileResults, cmd, out metricValue, null);
583var foldResults = (cmd != null && cmd.IncludePerFoldResults ? GetPerFoldResults(lines) : null);
599var runResults = ParseResultLines(fileResults, cmd, out metricValue, null);
643var foldResults = (cmd != null && cmd.IncludePerFoldResults ? GetPerFoldResults(lines) : null);
788private static Dictionary<string, ResultMetric> ParseResultLines(List<string> fileResults, ResultProcessorArguments cmd, out Double metricValue, string metricName)
792Dictionary<string, ResultMetric> runResults = new Dictionary<string, ResultMetric>();
888protected static Dictionary<string, ResultMetric> GetPerFoldResults(IList<string> lines)
890Dictionary<string, ResultMetric> perFoldMetrics = new Dictionary<string, ResultMetric>();
892Dictionary<int, Dictionary<string, float>> foldResults = new Dictionary<int, Dictionary<string, float>>();
927var metricToFoldValuesDict = new Dictionary<string, Dictionary<int, float>>();
935Dictionary<int, float> metricDict = null;
961protected static KeyValuePair<int, Dictionary<string, float>> AddFoldResults(IList<string> lines)
968return new KeyValuePair<int, Dictionary<string, float>>(-1, null);
974return new KeyValuePair<int, Dictionary<string, float>>(-1, null);
985Dictionary<string, float> valuesDict = new Dictionary<string, float>();
1000return new KeyValuePair<int, Dictionary<string, float>>(foldIdx, valuesDict);
Microsoft.ML.Samples (29)
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (11)
42Dictionary<string, Object> dic1 = new Dictionary<string, Object>();
48Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
54Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
60Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
66Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
72Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
78Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
84Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
90Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
99private static Dictionary<string, Object> GetAnomalyDimension()
101Dictionary<string, Object> dim = new Dictionary<string, Object>();
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (14)
48Dictionary<string, Object> dic1 = new Dictionary<string, Object>
56Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
62Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
68Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
74Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
80Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
86Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
92Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
98Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
104Dictionary<string, Object> dic10 = new Dictionary<string, Object>();
110Dictionary<string, Object> dic11 = new Dictionary<string, Object>();
116Dictionary<string, Object> dic12 = new Dictionary<string, Object>();
125private static Dictionary<string, Object> GetAnomalyDimension()
127Dictionary<string, Object> dim = new Dictionary<string, Object>();
Microsoft.ML.SearchSpace (20)
Microsoft.ML.StandardTrainers (4)
Microsoft.ML.Sweeper (4)
Microsoft.ML.TensorFlow (3)
Microsoft.ML.Tests (3)
Microsoft.ML.TimeSeries (65)
RootCauseAnalyzer.cs (47)
48Tuple<PointTree, PointTree, Dictionary<Dictionary<string, object>, TimeSeriesPoint>> pointInfo = GetPointsInfo(src, dimensionInfo);
51Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping = pointInfo.Item3;
75private DimensionInfo SeparateDimension(Dictionary<string, Object> dimensions, Object aggSymbol)
94private Tuple<PointTree, PointTree, Dictionary<Dictionary<string, object>, TimeSeriesPoint>> GetPointsInfo(RootCauseLocalizationInput src, DimensionInfo dimensionInfo)
99Dictionary<Dictionary<string, object>, TimeSeriesPoint> dimPointMapping = new Dictionary<Dictionary<string, object>, TimeSeriesPoint>(dc);
102Dictionary<string, Object> subDim = GetSubDim(src.AnomalyDimension, dimensionInfo.DetailDims);
125return new Tuple<PointTree, PointTree, Dictionary<Dictionary<string, Object>, TimeSeriesPoint>>(pointTree, anomalyTree, dimPointMapping);
128protected Dictionary<string, Object> GetSubDim(Dictionary<string, Object> dimension, List<string> keyList)
133private void LocalizeRootCausesByDimension(PointTree anomalyTree, PointTree pointTree, Dictionary<string, Object> anomalyDimension, List<string> aggDims)
202Dictionary<string, int> pointDistribution = new Dictionary<string, int>();
251Dictionary<BestDimension, double> entroyGainRatioMap = new Dictionary<BestDimension, double>();
290private IEnumerable<BestDimension> SelectOrderedDimensions(Dictionary<string, List<TimeSeriesPoint>> pointChildren, Dictionary<string, List<TimeSeriesPoint>> anomalyChildren, List<string> aggDim)
293Dictionary<BestDimension, double> entropyRatioMap = new Dictionary<BestDimension, double>();
350private void GetRootCauseDirectionAndScore(Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping, Dictionary<string, Object> anomalyRoot, RootCause dst, double beta, PointTree pointTree, AggregateType aggType, Object aggSymbol)
401private TimeSeriesPoint GetPointByDimension(Dictionary<Dictionary<string, Object>, TimeSeriesPoint> dimPointMapping, Dictionary<string, Object> dimension, PointTree pointTree, AggregateType aggType, Object aggSymbol)
411Dictionary<string, Object> subDim = GetSubDim(dimension, dimensionInfo.DetailDims);
478private IEnumerable<BestDimension> OrderDimensions(SortedDictionary<BestDimension, double> valueMap, Dictionary<BestDimension, double> valueRatioMap, double meanGain, bool isLeavesLevel = true)
535private BestDimension GetBestDimension(BestDimension best, KeyValuePair<BestDimension, double> dimension, Dictionary<BestDimension, Double> valueRatioMap)
637private static Dictionary<string, Object> UpdateDimensionValue(Dictionary<string, Object> dimension, string key, Object value)
639Dictionary<string, Object> newDim = new Dictionary<string, Object>(dimension);
669private double GetDimensionEntropy(Dictionary<string, int> pointDis, Dictionary<string, int> anomalyDis)
683private double GetDimensionIntrinsicValue(Dictionary<string, int> pointDis)
696private int GetTotalNumber(Dictionary<string, int> distribution)
706private void UpdateDistribution(Dictionary<string, int> distribution, List<TimeSeriesPoint> points, string dimKey)
722private static bool ContainsAll(Dictionary<string, Object> bigDictionary, Dictionary<string, Object> smallDictionary)
756internal Dictionary<string, List<TimeSeriesPoint>> ChildrenNodes;
769internal Dictionary<string, int> AnomalyDis;
770internal Dictionary<string, int> PointDis;
804internal class DimensionComparer : EqualityComparer<Dictionary<string, object>>
806public override bool Equals(Dictionary<string, object> x, Dictionary<string, object> y)
838public override int GetHashCode(Dictionary<string, object> obj)
RootCauseLocalizationType.cs (9)
44public Dictionary<string, Object> AnomalyDimension { get; set; }
61public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, AggregateType aggregateType, Object aggregateSymbol)
70public RootCauseLocalizationInput(DateTime anomalyTimestamp, Dictionary<string, Object> anomalyDimension, List<MetricSlice> slices, Object aggregateSymbol)
135public Dictionary<string, Object> Dimension;
141public RootCauseItem(Dictionary<string, Object> rootCause)
147public RootCauseItem(Dictionary<string, Object> rootCause, List<string> path)
206public Dictionary<string, Object> Dimension { get; set; }
212public TimeSeriesPoint(Dictionary<string, Object> dimension)
218public TimeSeriesPoint(double value, double expectedValue, bool isAnomaly, Dictionary<string, Object> dimension)
Microsoft.ML.TimeSeries.Tests (31)
TimeSeriesDirectApi.cs (31)
970Dictionary<string, Object> expectedDim = new Dictionary<string, Object>();
999Dictionary<string, Object> expectedDim = new Dictionary<string, Object>();
1047Dictionary<string, object> expectedDim = new Dictionary<string, object>
1087Dictionary<string, Object> dic1 = new Dictionary<string, Object>();
1093Dictionary<string, Object> dic2 = new Dictionary<string, Object>();
1099Dictionary<string, Object> dic3 = new Dictionary<string, Object>();
1105Dictionary<string, Object> dic4 = new Dictionary<string, Object>();
1111Dictionary<string, Object> dic5 = new Dictionary<string, Object>();
1117Dictionary<string, Object> dic6 = new Dictionary<string, Object>();
1123Dictionary<string, Object> dic7 = new Dictionary<string, Object>();
1129Dictionary<string, Object> dic8 = new Dictionary<string, Object>();
1135Dictionary<string, Object> dic9 = new Dictionary<string, Object>();
1141Dictionary<string, Object> dic10 = new Dictionary<string, Object>();
1147Dictionary<string, Object> dic11 = new Dictionary<string, Object>();
1153Dictionary<string, Object> dic12 = new Dictionary<string, Object>();
1162private static Dictionary<string, Object> GetRootCauseAnomalyDimension(object val, object aggSymbol)
1164Dictionary<string, Object> dim = new Dictionary<string, Object>();
1197Dictionary<string, int> expectedDim = new Dictionary<string, int>
1214Dictionary<string, object> expectedDim = GetRootCauseAnomalyDimension(10, _rootCauseAggSymbolForIntDimValue);
1231Dictionary<string, object> dic1 = new Dictionary<string, object>();
1237Dictionary<string, object> dic2 = new Dictionary<string, object>();
1243Dictionary<string, object> dic3 = new Dictionary<string, object>();
1249Dictionary<string, object> dic4 = new Dictionary<string, object>();
1255Dictionary<string, object> dic5 = new Dictionary<string, object>();
1261Dictionary<string, object> dic6 = new Dictionary<string, object>();
1267Dictionary<string, object> dic7 = new Dictionary<string, object>();
1273Dictionary<string, object> dic8 = new Dictionary<string, object>();
1279Dictionary<string, object> dic9 = new Dictionary<string, object>();
1285Dictionary<string, object> dic10 = new Dictionary<string, object>();
1291Dictionary<string, object> dic11 = new Dictionary<string, object>();
1297Dictionary<string, object> dic12 = new Dictionary<string, object>();
Microsoft.ML.Tokenizers (104)
Model\BertTokenizer.cs (14)
28Dictionary<StringSpanOrdinalKey, int> vocab,
29Dictionary<int, string> vocabReverse,
702(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = await LoadVocabAsync(vocabStream, useAsync: true, cancellationToken).ConfigureAwait(false);
743(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = LoadVocabAsync(vocabStream, useAsync: false).GetAwaiter().GetResult();
757Dictionary<StringSpanOrdinalKey, int> vocab,
758Dictionary<int, string> vocabReverse,
773Dictionary<string, int> tempSpecialTokens = [];
794Dictionary<string, int> tempSpecialTokens = [];
795Dictionary<string, int> notNormalizedSpecialTokens = [];
814private static void AddSpecialToken(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<string, int> specialTokens, string token, bool lowerCase, Dictionary<string, int>? notNormalizedSpecialTokens = null)
Model\BPETokenizer.cs (11)
32private readonly Dictionary<StringSpanOrdinalKey, (int, string)>? _specialTokens;
33private readonly Dictionary<int, string>? _specialTokensReverse;
129(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = ReadModelDataAsync(vocabStream, mergesStream, useAsync: false).GetAwaiter().GetResult();
176(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = ReadModelDataAsync(vocabStream, mergesStream, useAsync: false).GetAwaiter().GetResult();
212(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = await ReadModelDataAsync(vocabStream, mergesStream, useAsync: true).ConfigureAwait(false);
230Dictionary<StringSpanOrdinalKey, int>? vocab,
773internal static async ValueTask<(Dictionary<StringSpanOrdinalKey, int>?, Vec<(string, string)>)> ReadModelDataAsync(Stream vocab, Stream? merges, bool useAsync, CancellationToken cancellationToken = default)
775Dictionary<StringSpanOrdinalKey, int>? dic = useAsync
787private readonly Dictionary<StringSpanOrdinalKey, int> _vocab;
792internal Dictionary<Pair<int>, (int, int)> Merges { get; }
849private readonly Dictionary<char, string> _charToString = new Dictionary<char, string>();
Model\CodeGenTokenizer.cs (8)
25private readonly Dictionary<StringSpanOrdinalKey, (int Id, string Token)> _vocab;
28private readonly Dictionary<StringSpanOrdinalKey, (int, string)>? _specialTokens;
29private readonly Dictionary<int, string>? _specialTokensReverse;
30private readonly Dictionary<StringSpanOrdinalKeyPair, int> _mergeRanks;
1722internal static readonly Dictionary<string, int> CodeGenSpecialTokens = new()
1765private static Dictionary<StringSpanOrdinalKey, (int, string)> GetVocabulary(Stream vocabularyStream)
1785internal static Dictionary<StringSpanOrdinalKeyPair, int> GetMergeRanks(Stream mergeStream)
1787var mergeRanks = new Dictionary<StringSpanOrdinalKeyPair, int>();
Model\SentencePieceTokenizer.cs (11)
28private readonly Dictionary<StringSpanOrdinalKey, (int Id, float Score, byte Type)> _vocab = new();
29private readonly Dictionary<int, string> _vocabReverse = new();
36private readonly Dictionary<StringSpanOrdinalKey, int>? _specialTokens;
37private readonly Dictionary<int, string>? _specialTokensReverse;
176var vocab = new Dictionary<string, int>();
319Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols);
673Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols);
997Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols);
1370Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = Encode(text, symbols);
2172private Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? Encode(ReadOnlySpan<char> text, BpeSymbol[] symbols)
2196Dictionary<(int Index, int Len), (int LeftIndex, int LeftLen, int RightIndex, int RightLen)>? revMerge = null;
Model\TiktokenTokenizer.cs (27)
27private readonly Dictionary<ReadOnlyMemory<byte>, int> _encoder;
28private readonly Dictionary<int, ReadOnlyMemory<byte>> _decoder;
30private readonly Dictionary<StringSpanOrdinalKey, (int Id, string Token)> _vocab;
77Dictionary<ReadOnlyMemory<byte>, int> encoder,
78Dictionary<int, ReadOnlyMemory<byte>> decoder,
79Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab,
157internal static async ValueTask<(Dictionary<ReadOnlyMemory<byte>, int>, Dictionary<StringSpanOrdinalKey, (int Id, string Token)>, Dictionary<int, ReadOnlyMemory<byte>>)> LoadTiktokenBpeAsync(
160Dictionary<ReadOnlyMemory<byte>, int> encoder;
161Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab;
162Dictionary<int, ReadOnlyMemory<byte>> decoder;
1035private static readonly Dictionary<string, ModelEncoding> _modelToEncoding =
1116private static (Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) GetTiktokenConfigurations(string modelName) => GetTiktokenConfigurations(GetModelEncoding(modelName), modelName);
1118private static (Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) GetTiktokenConfigurations(ModelEncoding modelEncoding, string? modelName = null)
1197private static readonly ConcurrentDictionary<string, (Dictionary<ReadOnlyMemory<byte>, int> encoder, Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, Dictionary<int, ReadOnlyMemory<byte>> decoder)> _tiktokenCache = new(StringComparer.OrdinalIgnoreCase);
1209(Dictionary<string, int> SpecialTokens, Regex Regex, string VocabFile, Type? DataType, string PackageName) tiktokenConfiguration = GetTiktokenConfigurations(modelEncoding, modelName);
1221out (Dictionary<ReadOnlyMemory<byte>, int> encoder, Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, Dictionary<int, ReadOnlyMemory<byte>> decoder) cache))
1312(Dictionary<ReadOnlyMemory<byte>, int> encoder, Dictionary<StringSpanOrdinalKey, (int Id, string Token)> vocab, Dictionary<int, ReadOnlyMemory<byte>> decoder) =
1369(Dictionary<string, int> SpecialTokens, Regex Regex, string _, Type? __, string ___) tiktokenConfiguration = GetTiktokenConfigurations(modelName);
1409(Dictionary<string, int> SpecialTokens, Regex Regex, string _, Type? __, string ___) tiktokenConfiguration = GetTiktokenConfigurations(modelName);
Model\WordPieceTokenizer.cs (12)
29private readonly Dictionary<StringSpanOrdinalKey, int> _vocab;
30private readonly Dictionary<int, string> _vocabReverse;
33Dictionary<StringSpanOrdinalKey, int> vocab,
34Dictionary<int, string> vocabReverse,
92internal static async ValueTask<(Dictionary<StringSpanOrdinalKey, int>, Dictionary<int, string>)> LoadVocabAsync(Stream vocabStream, bool useAsync, CancellationToken cancellationToken = default)
99Dictionary<StringSpanOrdinalKey, int> vocab = new Dictionary<StringSpanOrdinalKey, int>();
100Dictionary<int, string> vocabReverse = new Dictionary<int, string>();
163(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = LoadVocabAsync(vocabStream, useAsync: false).GetAwaiter().GetResult();
227(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = await LoadVocabAsync(vocabStream, useAsync: true, cancellationToken);
Utils\StringSpanOrdinalKey.cs (5)
77private readonly Dictionary<StringSpanOrdinalKey, TValue> _map;
177public static unsafe bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKey, TValue> map, ReadOnlySpan<char> key, out TValue value)
185public static bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKey, TValue> map, string key, out TValue value) =>
188public static unsafe bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKeyPair, TValue> map, ReadOnlySpan<char> key1, ReadOnlySpan<char> key2, out TValue value)
197public static bool TryGetValue<TValue>(this Dictionary<StringSpanOrdinalKeyPair, TValue> map, string key1, string key2, out TValue value) =>
Microsoft.ML.Tokenizers.Tests (12)
Microsoft.ML.TorchSharp (63)
AutoFormerV2\ObjectDetectionMetrics.cs (10)
99Dictionary<string, List<Tuple<float, float>>> iouDic = new();
100Dictionary<string, int> groundTruthBoxes = new();
118private static float AP50(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes, float threshold = 0.5f)
136private static float AP50_95(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes)
179private static void ImageIoU(List<ObjectLabel> objectLabel, List<ObjectLabel> annotation, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes)
230private static void GenerateIOUDic(List<List<ObjectLabel>> annotations, List<List<ObjectLabel>> objectLabelList, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes)
NasBert\Modules\IncrementalState.cs (14)
21public Dictionary<string, torch.Tensor> GetIncrementalState(
23Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState,
28Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState,
30Dictionary<string, torch.Tensor> value);
51private static Dictionary<string, torch.Tensor> EmptyIncrementalState => new Dictionary<string, torch.Tensor>();
64public Dictionary<string, torch.Tensor> GetIncrementalState(
66Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState,
76Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState,
78Dictionary<string, torch.Tensor> value)
83if (incrementalState.TryGetValue(fullKey, out var oldState))
NasBert\Modules\MultiHeadAttention.cs (15)
155Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState = null,
176Dictionary<string, torch.Tensor> savedState = null;
313private Dictionary<string, torch.Tensor> GetInputBuffer(
314Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState)
320Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState,
321Dictionary<string, torch.Tensor> buffer)
372public Dictionary<string, torch.Tensor> GetIncrementalState(torch.nn.Module module, Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, string key)
377public void SetIncrementalState(torch.nn.Module module, Dictionary<string, Dictionary<string, torch.Tensor>> incrementalState, string key, Dictionary<string, torch.Tensor> value)
Microsoft.ML.Transforms (64)
Microsoft.ML.Vision (4)
Microsoft.NET.StringTools (1)
Microsoft.NET.StringTools.net35 (2)
Microsoft.VisualBasic.Core (2)
Microsoft.VisualStudio.LanguageServices (44)
Implementation\VsRefactorNotifyService.cs (6)
39if (TryGetRenameAPIRequiredArguments(workspace, changedDocumentIDs, symbol, out var hierarchyToItemIDsMap, out var rqnames))
76if (TryGetRenameAPIRequiredArguments(workspace, changedDocumentIDs, symbol, out var hierarchyToItemIDsMap, out var rqnames))
113out Dictionary<IVsHierarchy, List<uint>> hierarchyToItemIDsMap,
132out Dictionary<IVsHierarchy, List<uint>> hierarchyToItemIDsMap,
176private Dictionary<IVsHierarchy, List<uint>> GetHierarchiesAndItemIDsFromDocumentIDs(VisualStudioWorkspace visualStudioWorkspace, IEnumerable<DocumentId> changedDocumentIDs)
180var hierarchyToItemIDsMap = new Dictionary<IVsHierarchy, List<uint>>();
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.DevKit (1)
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Microsoft.VisualStudio.LanguageServices.Xaml (5)
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (3)
74var commitCharactersCache = new Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>>();
82private static CompletionItem CreateCompletionItem(XamlCompletionItem xamlCompletion, DocumentId documentId, SourceText text, Position position, TextDocumentIdentifier textDocument, Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>> commitCharactersCach)
127private static SumType<string[], VSInternalCommitCharacter[]> GetCommitCharacters(XamlCompletionItem completionItem, Dictionary<XamlCompletionKind, ImmutableArray<VSInternalCommitCharacter>> commitCharactersCache)
MinimalSample (2)
MSBuild (44)
XMake.cs (11)
700Dictionary<string, string> globalProperties = null;
701Dictionary<string, string> restoreProperties = null;
1265Dictionary<string, string> globalProperties,
1266Dictionary<string, string> restoreProperties,
1710private static bool PrintTargets(string projectFile, string toolsVersion, Dictionary<string, string> globalProperties, TextWriter targetsWriter, ProjectCollection projectCollection)
1838private static BuildResult ExecuteRestore(string projectFile, string toolsVersion, BuildManager buildManager, Dictionary<string, string> globalProperties, bool saveProjectResult = false)
1841Dictionary<string, string> restoreGlobalProperties = new Dictionary<string, string>(globalProperties);
2480ref Dictionary<string, string> globalProperties,
2501ref Dictionary<string, string> restoreProperties,
3757internal static Dictionary<string, string> ProcessPropertySwitch(string[] parameters)
3759Dictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MSBuildTaskHost (52)
BinaryTranslator.cs (11)
590public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer)
598dictionary = (Dictionary<string, string>)copy;
612public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
699public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator)
779public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer)
1317public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer)
1334public void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
1438public void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator)
1520public void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer)
ITranslator.cs (5)
320void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer);
333void TranslateDictionary(ref Dictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys);
337void TranslateDictionary(ref Dictionary<string, DateTime> dictionary, StringComparer comparer);
348void TranslateDictionary<T>(ref Dictionary<string, T> dictionary, IEqualityComparer<string> comparer, ObjectTranslator<T> objectTranslator)
mscorlib (1)
Mvc.RoutingWebSite (3)
netstandard (1)
OpenIdConnectSample (1)
PrepareTests (2)
PresentationBuildTasks (29)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (9)
196internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(Type type)
200Dictionary<string, SpecialBracketCharacters> map = BuildBracketCharacterCacheForType(type);
698internal Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> MasterBracketCharacterCache
704_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>();
826private Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> _masterBracketCharacterCache;
846private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(Type extensionType)
848Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
1627Dictionary<string, object> _ignorables;
1628Dictionary<string, ProcessContentSet> _processContents;
1629Dictionary<string, PreserveItemSet> _preserveElements;
1630Dictionary<string, PreserveItemSet> _preserveAttributes;
1969Dictionary<string, string> _names;
2024private Dictionary<string, object> _knownNamespaces;
2025private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
2026private Dictionary<string, object> _subsumingNamespaces;
2027private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
2028private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
PresentationCore (76)
System\Windows\Media\Visual.cs (10)
650Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap =
822Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap =
852Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap =
889Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap =
913Dictionary<DUCE.Channel, int> channelsToCyclicBrushMap =
5222Dictionary<ICyclicBrush, int> cyclicBrushToChannelsMap =
5332private static readonly UncommonField<Dictionary<ICyclicBrush, int>> CyclicBrushToChannelsMapField
5333= new UncommonField<Dictionary<ICyclicBrush, int>>();
5339private static readonly UncommonField<Dictionary<DUCE.Channel, int>> ChannelsToCyclicBrushMapField
5340= new UncommonField<Dictionary<DUCE.Channel, int>>();
PresentationFramework (145)
System\Windows\Markup\ParserContext.cs (10)
196internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(Type type)
200Dictionary<string, SpecialBracketCharacters> map = BuildBracketCharacterCacheForType(type);
698internal Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> MasterBracketCharacterCache
704_masterBracketCharacterCache = new Dictionary<Type, Dictionary<string, SpecialBracketCharacters>>();
826private Dictionary<Type, Dictionary<string, SpecialBracketCharacters>> _masterBracketCharacterCache;
846private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(Type extensionType)
848Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
952private Dictionary<string, Freezable> _freezeCache;
System\Windows\Markup\Primitives\MarkupWriter.cs (12)
488Dictionary<string, string> writtenAttributes = new Dictionary<string, string>();
925private bool IsDeferredProperty (MarkupProperty property, Dictionary<string, string> writtenAttributes,
1303private Dictionary<string, string> _uriToPrefix;
1304private Dictionary<string, string> _prefixToUri;
1548private static Dictionary<Assembly, Dictionary<string, string>> XmlnsDefinitions = new Dictionary<Assembly, Dictionary<string, string>>();
1549private static Dictionary<string, string> DefaultPrefixes = new Dictionary<string, string>();
1552static Dictionary<string, string> GetMappingsFor(Assembly assembly)
1554Dictionary<string, string> namespaceToUri;
1594Dictionary<string, string> assembliesNamespacetoUri = GetMappingsFor(referencedAssembly);
1615Dictionary<string, string> namespaceToUri = GetMappingsFor(type.Assembly);
System\Windows\VisualStateManager.cs (8)
376Dictionary<TimelineDataToken, Timeline> currentAnimations = FlattenTimelines(group.CurrentStoryboards);
377Dictionary<TimelineDataToken, Timeline> transitionAnimations = FlattenTimelines(transition != null ? transition.Storyboard : null);
378Dictionary<TimelineDataToken, Timeline> newStateAnimations = FlattenTimelines(newState.Storyboard);
666private static Dictionary<TimelineDataToken, Timeline> FlattenTimelines(Storyboard storyboard)
668Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>();
675private static Dictionary<TimelineDataToken, Timeline> FlattenTimelines(Collection<Storyboard> storyboards)
677Dictionary<TimelineDataToken, Timeline> result = new Dictionary<TimelineDataToken, Timeline>();
687private static void FlattenTimelines(Storyboard storyboard, Dictionary<TimelineDataToken, Timeline> result)
PresentationUI (3)
RazorBuildWebSite (1)
ReachFramework (49)
packaging\XpsDigitalSignature.cs (9)
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>>();
371Dictionary<string, int> relHash = null;
405Dictionary<string, int> relHash = uriHashTable[selector.SourceUri];
416Dictionary<string, string> OptionalSignedParts
444static private Dictionary<string, string> _optionalSignedTypes;
Packaging\XpsFixedPageReaderWriter.cs (8)
1356Dictionary<Uri,Uri> dependentList,
1407Dictionary<Uri,Uri> dependents
1521Dictionary<Uri,PackageRelationship> restictedFontRels = new Dictionary<Uri,PackageRelationship>(MS.Internal.UriComparer.Default);
1966private Dictionary<Uri,XpsImage> _imageCache;
1967private Dictionary<Uri,XpsFont> _fontCache;
1968private Dictionary<Uri,XpsColorContext> _colorContextCache;
1969private Dictionary<Uri,XpsResourceDictionary> _resourceDictionaryCache;
1970private Dictionary<Uri,XpsResource> _resourceCache;
Packaging\XpsResourcePolicy.cs (15)
182Dictionary<UInt32, Uri>
196Dictionary<int, Uri>
213Dictionary<int, Uri>
227Dictionary<int, Uri>
241Dictionary<int, Uri>
255Dictionary<int, Uri>
269Dictionary<int, Uri>
287Dictionary<UInt32, Uri> _imageCrcTable;
290Dictionary<int,Uri> _imageUriHashTable;
293Dictionary<int, Uri> _currentPageImageTable;
296Dictionary<int, Uri> _colorContextTable;
299Dictionary<int, Uri> _currentPageColorContextTable;
302Dictionary<int, Uri> _resourceDictionaryTable;
305Dictionary<int, Uri> _currentPageResourceDictionaryTable;
311Dictionary<Type, object> _objDict = new Dictionary<Type, object>();
Roslyn.Compilers.Extension (1)
Roslyn.Test.PdbUtilities (6)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (16)
Services\SolutionServiceTests.cs (12)
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>();
1316private static async Task<AssetProvider> GetAssetProviderAsync(Workspace workspace, RemoteWorkspace remoteWorkspace, Solution solution, Dictionary<Checksum, object>? map = null)
RunTests (4)
Sample (1)
ScenarioTests.Common.Tests (5)
Security.TransportSecurity.IntegrationTests (2)
SemanticSearch.BuildTask (1)
Shared (5)
Shared.Tests (3)
SocialSample (1)
SocialWeather (5)
Sockets.FunctionalTests (1)
Swaggatherer (2)
System.CodeDom (3)
System.Collections (3)
System.Collections.Concurrent (2)
System.Collections.Immutable (19)
System\Collections\Frozen\FrozenDictionary.cs (6)
31GetExistingFrozenOrNewDictionary(source, comparer, out Dictionary<TKey, TValue>? uniqueValues) ??
61/// Extracts from the source either an existing <see cref="FrozenDictionary{TKey,TValue}"/> instance or a <see cref="Dictionary{TKey,TValue}"/>
72out Dictionary<TKey, TValue>? newDictionary)
87newDictionary = source as Dictionary<TKey, TValue>;
113private static FrozenDictionary<TKey, TValue> CreateFromDictionary<TKey, TValue>(Dictionary<TKey, TValue> source)
143return (FrozenDictionary<TKey, TValue>)(object)new Int32FrozenDictionary<TValue>((Dictionary<int, TValue>)(object)source);
System\Linq\ImmutableArrayExtensions.cs (6)
545public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector) where TKey : notnull
560public static Dictionary<TKey, TElement> ToDictionary<TKey, TElement, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, Func<T, TElement> elementSelector) where TKey : notnull
574public static Dictionary<TKey, T> ToDictionary<TKey, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
578var result = new Dictionary<TKey, T>(immutableArray.Length, comparer);
598public static Dictionary<TKey, TElement> ToDictionary<TKey, TElement, T>(this ImmutableArray<T> immutableArray, Func<T, TKey> keySelector, Func<T, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
603var result = new Dictionary<TKey, TElement>(immutableArray.Length, comparer);
System.ComponentModel.Annotations (6)
System.ComponentModel.Composition (43)
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (7)
32private readonly Lazy<Dictionary<string, List<ComposablePartDefinition>>> _contractPartIndex;
81_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true);
109_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true);
138_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true);
171_contractPartIndex = new Lazy<Dictionary<string, List<ComposablePartDefinition>>>(CreateIndex, true);
316private Dictionary<string, List<ComposablePartDefinition>> CreateIndex()
318Dictionary<string, List<ComposablePartDefinition>> index = new Dictionary<string, List<ComposablePartDefinition>>(StringComparers.ContractName);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (13)
27private Dictionary<LazyMemberInfo, MemberInfo[]>? _membersTable;
28private Dictionary<Lazy<ParameterInfo>, ParameterInfo>? _parametersTable;
100var originalMetadata = new Dictionary<string, object?>(_originalPartCreationInfo.GetMetadata()!, StringComparers.MetadataKeyNames);
159Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = BuildMembersTable(members!);
160Dictionary<Lazy<ParameterInfo>, ParameterInfo>? parametersTable = BuildParametersTable(parameters);
177private Dictionary<LazyMemberInfo, MemberInfo[]> BuildMembersTable(List<LazyMemberInfo> members)
181Dictionary<LazyMemberInfo, MemberInfo[]> membersTable = new Dictionary<LazyMemberInfo, MemberInfo[]>();
182Dictionary<int, MemberInfo> specializedPartMembers = new Dictionary<int, MemberInfo>();
242private Dictionary<Lazy<ParameterInfo>, ParameterInfo>? BuildParametersTable(List<Lazy<ParameterInfo>>? parameters)
246Dictionary<Lazy<ParameterInfo>, ParameterInfo> parametersTable = new Dictionary<Lazy<ParameterInfo>, ParameterInfo>();
443Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalImport.Metadata, StringComparers.MetadataKeyNames);
458private Dictionary<string, object?> TranslateExportMetadata(ReflectionMemberExportDefinition originalExport)
460Dictionary<string, object?> metadata = new Dictionary<string, object?>(originalExport.Metadata, StringComparers.MetadataKeyNames);
System.ComponentModel.Composition.Registration (3)
System.ComponentModel.TypeConverter (18)
System.Composition.Convention (3)
System.Composition.Hosting (3)
System.Composition.Runtime (1)
System.Composition.TypedParts (7)
System.Configuration.ConfigurationManager (2)
System.Console (5)
System.Data.Common (28)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (10)
100private readonly Dictionary<string, string?> _parsetable;
154static partial void DebugTraceKeyValuePair(string keyname, string? keyvalue, Dictionary<string, string>? synonyms);
432private static Dictionary<string, string> SplitConnectionString(string connectionString, Dictionary<string, string>? synonyms, bool firstKey)
434var parsetable = new Dictionary<string, string>();
493private static void ParseComparison(Dictionary<string, string?> parsetable, string connectionString, Dictionary<string, string>? synonyms, bool firstKey, Exception? e)
497var parsedvalues = SplitConnectionString(connectionString, synonyms, firstKey);
545private static NameValuePair? ParseInternal(Dictionary<string, string?> parsetable, string connectionString, bool buildChain, Dictionary<string, string>? synonyms, bool firstKey)
System.Data.Odbc (27)
Common\System\Data\Common\DBConnectionString.cs (4)
29private readonly Dictionary<string, string?> _parsetable;
51internal DBConnectionString(string value, string restrictions, KeyRestrictionBehavior behavior, Dictionary<string, string> synonyms, bool useOdbcRules)
65private DBConnectionString(DbConnectionOptions connectionOptions, string? restrictions, KeyRestrictionBehavior behavior, Dictionary<string, string>? synonyms, bool mustCloneDictionary)
465private static string[]? ParseRestrictions(string restrictions, Dictionary<string, string>? synonyms)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (10)
100private readonly Dictionary<string, string?> _parsetable;
154static partial void DebugTraceKeyValuePair(string keyname, string? keyvalue, Dictionary<string, string>? synonyms);
432private static Dictionary<string, string> SplitConnectionString(string connectionString, Dictionary<string, string>? synonyms, bool firstKey)
434var parsetable = new Dictionary<string, string>();
493private static void ParseComparison(Dictionary<string, string?> parsetable, string connectionString, Dictionary<string, string>? synonyms, bool firstKey, Exception? e)
497var parsedvalues = SplitConnectionString(connectionString, synonyms, firstKey);
545private static NameValuePair? ParseInternal(Dictionary<string, string?> parsetable, string connectionString, bool buildChain, Dictionary<string, string>? synonyms, bool firstKey)
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (8)
15private Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> _connectionPoolGroups;
46Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups;
68Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups;
123Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups;
179Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups;
221Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(1 + connectionPoolGroups.Count);
302Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> connectionPoolGroups = _connectionPoolGroups;
303Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(connectionPoolGroups.Count);
System.Diagnostics.DiagnosticSource (6)
System.Diagnostics.Process (5)
System.Drawing.Common.Tests (5)
System.Drawing.Primitives (7)
System.Formats.Nrbf (5)
System.Formats.Tar (11)
System.IO.Compression (1)
System.IO.FileSystem.Watcher (1)
System.IO.Packaging (20)
System\IO\Packaging\XmlCompatibilityReader.cs (9)
1471private Dictionary<string, object?>? _ignorables;
1472private Dictionary<string, ProcessContentSet>? _processContents;
1473private Dictionary<string, PreserveItemSet>? _preserveElements;
1474private Dictionary<string, PreserveItemSet>? _preserveAttributes;
1832private Dictionary<string, object?>? _knownNamespaces;
1833private readonly Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
1834private Dictionary<string, object?>? _subsumingNamespaces;
1835private readonly Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
1836private readonly Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System.IO.Pipes (1)
System.Linq (32)
System\Linq\AggregateBy.cs (4)
117static Dictionary<TKey, TAccumulate> PopulateDictionary(IEnumerator<TSource> enumerator, Func<TSource, TKey> keySelector, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> func, IEqualityComparer<TKey>? keyComparer)
119Dictionary<TKey, TAccumulate> dict = new(keyComparer);
149static Dictionary<TKey, TAccumulate> PopulateDictionary(IEnumerator<TSource> enumerator, Func<TSource, TKey> keySelector, Func<TKey, TAccumulate> seedSelector, Func<TAccumulate, TSource, TAccumulate> func, IEqualityComparer<TKey>? keyComparer)
151Dictionary<TKey, TAccumulate> dict = new(keyComparer);
System\Linq\ToCollection.cs (26)
78/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to the default comparer for the key type.
82/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param>
83/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/> and uses default comparer for the key type.</returns>
86public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source) where TKey : notnull =>
90/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to specified key comparer.
94/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param>
96/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/>.</returns>
102public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey>? comparer) where TKey : notnull
113/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to the default comparer for the key type.
117/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param>
118/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/> and uses default comparer for the key type.</returns>
121public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey Key, TValue Value)> source) where TKey : notnull =>
125/// Creates a <see cref="Dictionary{TKey,TValue}"/> from an <see cref="IEnumerable{T}"/> according to specified key comparer.
129/// <param name="source">The <see cref="IEnumerable{T}"/> to create a <see cref="Dictionary{TKey,TValue}"/> from.</param>
131/// <returns>A <see cref="Dictionary{TKey,TValue}"/> that contains keys and values from <paramref name="source"/>.</returns>
137public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey Key, TValue Value)> source, IEqualityComparer<TKey>? comparer) where TKey : notnull =>
140public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) where TKey : notnull =>
143public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
174Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(capacity, comparer);
183private static Dictionary<TKey, TSource> SpanToDictionary<TSource, TKey>(ReadOnlySpan<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
185Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(source.Length, comparer);
193public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) where TKey : notnull =>
196public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
232Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(capacity, comparer);
241private static Dictionary<TKey, TElement> SpanToDictionary<TSource, TKey, TElement>(ReadOnlySpan<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey>? comparer) where TKey : notnull
243Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(source.Length, comparer);
System.Linq.Expressions (49)
System.Linq.Parallel (11)
System\Linq\ParallelEnumerable.cs (6)
4929public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(
4958public static Dictionary<TKey, TSource> ToDictionary<TSource, TKey>(
4965Dictionary<TKey, TSource> result = new Dictionary<TKey, TSource>(comparer);
5020public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(
5055public static Dictionary<TKey, TElement> ToDictionary<TSource, TKey, TElement>(
5063Dictionary<TKey, TElement> result = new Dictionary<TKey, TElement>(comparer);
System.Linq.Queryable (2)
System.Net.Http (20)
System.Net.HttpListener (14)
System.Net.Mail (14)
System.Net.NameResolution (1)
System.Net.NetworkInformation (5)
System.Net.Ping (2)
System.Net.Primitives (9)
System.Net.Security (1)
System.Net.Sockets (2)
System.ObjectModel (1)
System.Private.CoreLib (159)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (31)
117if (enumerable.GetType() == typeof(Dictionary<TKey, TValue>))
119Dictionary<TKey, TValue> source = (Dictionary<TKey, TValue>)enumerable;
639/// Gets an instance of a type that may be used to perform operations on the current <see cref="Dictionary{TKey, TValue}"/>
661/// Gets an instance of a type that may be used to perform operations on the current <see cref="Dictionary{TKey, TValue}"/>
686/// Provides a type that may be used to perform operations on a <see cref="Dictionary{TKey, TValue}"/>
693internal AlternateLookup(Dictionary<TKey, TValue> dictionary)
700/// <summary>Gets the <see cref="Dictionary{TKey, TValue}"/> against which this instance performs operations.</summary>
701public Dictionary<TKey, TValue> Dictionary { get; }
728internal static bool IsCompatibleKey(Dictionary<TKey, TValue> dictionary)
736internal static IAlternateEqualityComparer<TAlternateKey, TKey> GetAlternateComparer(Dictionary<TKey, TValue> dictionary)
789/// <summary>Determines whether the <see cref="Dictionary{TKey, TValue}"/> contains the specified alternate key.</summary>
802Dictionary<TKey, TValue> dictionary = Dictionary;
855/// <summary>Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>.</summary>
863/// Removes the value with the specified alternate key from the <see cref="Dictionary{TKey, TValue}"/>,
873Dictionary<TKey, TValue> dictionary = Dictionary;
958/// <inheritdoc cref="CollectionsMarshal.GetValueRefOrAddDefault{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/>
963Dictionary<TKey, TValue> dictionary = Dictionary;
1065/// the additional overhead on each <see cref="Dictionary{TKey, TValue}"/> instantiation, especially in AOT scenarios.
1069/// <inheritdoc cref="CollectionsMarshal.GetValueRefOrAddDefault{TKey, TValue}(Dictionary{TKey, TValue}, TKey, out bool)"/>
1070public static ref TValue? GetValueRefOrAddDefault(Dictionary<TKey, TValue> dictionary, TKey key, out bool exists)
1767private readonly Dictionary<TKey, TValue> _dictionary;
1776internal Enumerator(Dictionary<TKey, TValue> dictionary, int getEnumeratorRetType)
1887private readonly Dictionary<TKey, TValue> _dictionary;
1889public KeyCollection(Dictionary<TKey, TValue> dictionary)
2012private readonly Dictionary<TKey, TValue> _dictionary;
2017internal Enumerator(Dictionary<TKey, TValue> dictionary)
2082private readonly Dictionary<TKey, TValue> _dictionary;
2084public ValueCollection(Dictionary<TKey, TValue> dictionary)
2206private readonly Dictionary<TKey, TValue> _dictionary;
2211internal Enumerator(Dictionary<TKey, TValue> dictionary)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (12)
3153Dictionary<string, string>? eventsByName = null;
3601private static void DebugCheckEvent(ref Dictionary<string, string>? eventsByName,
3915private static readonly Dictionary<Guid, EventSource.OverrideEventProvider> s_preregisteredEtwProviders = new Dictionary<Guid, EventSource.OverrideEventProvider>();
3917private static readonly Dictionary<string, EventSource.OverrideEventProvider> s_preregisteredEventPipeProviders = new Dictionary<string, EventSource.OverrideEventProvider>();
4533Dictionary<EventListener, bool> allListeners = new Dictionary<EventListener, bool>();
6196private readonly Dictionary<int, string> opcodeTab;
6197private Dictionary<int, string>? taskTab;
6198private Dictionary<int, ChannelInfo>? channelTab;
6199private Dictionary<ulong, string>? keywordTab;
6200private Dictionary<string, Type>? mapsTab;
6201private readonly Dictionary<string, string> stringTab; // Maps unlocalized strings to localized ones
6219private readonly Dictionary<string, List<int>> perEventByteArrayArgIndices; // "event_name" -> List_of_Indices_of_Byte[]_Arg
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (13)
45/// Gets either a ref to a <typeparamref name="TValue"/> in the <see cref="Dictionary{TKey, TValue}"/> or a ref null if it does not exist in the <paramref name="dictionary"/>.
52/// Items should not be added or removed from the <see cref="Dictionary{TKey, TValue}"/> while the ref <typeparamref name="TValue"/> is in use.
55public static ref TValue GetValueRefOrNullRef<TKey, TValue>(Dictionary<TKey, TValue> dictionary, TKey key) where TKey : notnull
59/// Gets either a ref to a <typeparamref name="TValue"/> in the <see cref="Dictionary{TKey, TValue}"/> or a ref null if it does not exist in the <paramref name="dictionary"/>.
67/// Items should not be added or removed from the <see cref="Dictionary{TKey, TValue}"/> while the ref <typeparamref name="TValue"/> is in use.
70public static ref TValue GetValueRefOrNullRef<TKey, TValue, TAlternateKey>(Dictionary<TKey, TValue>.AlternateLookup<TAlternateKey> dictionary, TAlternateKey key)
76/// Gets a ref to a <typeparamref name="TValue"/> in the <see cref="Dictionary{TKey, TValue}"/>, adding a new entry with a default value if it does not exist in the <paramref name="dictionary"/>.
83/// <remarks>Items should not be added to or removed from the <see cref="Dictionary{TKey, TValue}"/> while the ref <typeparamref name="TValue"/> is in use.</remarks>
84public static ref TValue? GetValueRefOrAddDefault<TKey, TValue>(Dictionary<TKey, TValue> dictionary, TKey key, out bool exists) where TKey : notnull
85=> ref Dictionary<TKey, TValue>.CollectionsMarshalHelper.GetValueRefOrAddDefault(dictionary, key, out exists);
88/// Gets a ref to a <typeparamref name="TValue"/> in the <see cref="Dictionary{TKey, TValue}.AlternateLookup{TAlternateKey}"/>, adding a new entry with a default value if it does not exist in the <paramref name="dictionary"/>.
96/// <remarks>Items should not be added to or removed from the <see cref="Dictionary{TKey, TValue}.AlternateLookup{TAlternateKey}"/> while the ref <typeparamref name="TValue"/> is in use.</remarks>
97public static ref TValue? GetValueRefOrAddDefault<TKey, TValue, TAlternateKey>(Dictionary<TKey, TValue>.AlternateLookup<TAlternateKey> dictionary, TAlternateKey key, out bool exists)
src\System\Attribute.CoreCLR.cs (4)
35Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11);
141Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11);
367private static void CopyToAttributeList(List<Attribute> attributeList, Attribute[] attributes, Dictionary<Type, AttributeUsageAttribute> types)
397private static void AddAttributesToList(List<Attribute> attributeList, Attribute[] attributes, Dictionary<Type, AttributeUsageAttribute> types)
System.Private.DataContractSerialization (105)
System\Runtime\Serialization\ClassDataContract.cs (8)
15using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>;
114public override DataContractDictionary? KnownDataContracts
256internal static void CheckAndAddMember(List<DataMember> members, DataMember memberContract, Dictionary<string, DataMember> memberNamesTable)
596private DataContractDictionary? _knownDataContracts;
804Dictionary<string, DataMember> memberNamesTable = new Dictionary<string, DataMember>();
1206internal override DataContractDictionary? KnownDataContracts
1314internal override DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null)
1421Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(Members.Count);
System\Runtime\Serialization\DataContract.cs (14)
20using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>;
226public virtual DataContractDictionary? KnownDataContracts
284internal virtual DataContract BindGenericParameters(DataContract[] paramContracts, Dictionary<DataContract, DataContract>? boundContracts = null)
305private static Dictionary<XmlQualifiedName, DataContract?>? s_nameToBuiltInContract;
306private static Dictionary<string, DataContract?>? s_typeNameToBuiltInContract;
308private static Dictionary<string, XmlDictionaryString>? s_clrTypeStrings;
992internal virtual DataContractDictionary? KnownDataContracts
1932internal static DataContractDictionary? ImportKnownTypeAttributes(Type type)
1934DataContractDictionary? knownDataContracts = null;
1935Dictionary<Type, Type> typesChecked = new Dictionary<Type, Type>();
1942private static void ImportKnownTypeAttributes(Type? type, Dictionary<Type, Type> typesChecked, ref DataContractDictionary? knownDataContracts)
2048internal static void CheckAndAdd(Type type, Dictionary<Type, Type> typesChecked, [NotNullIfNotNull(nameof(nameToDataContractTable))] ref DataContractDictionary? nameToDataContractTable)
System\Runtime\Serialization\DataContractSet.cs (14)
11using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>;
17private DataContractDictionary? _contracts;
18private Dictionary<DataContract, object>? _processedContracts;
22private DataContractDictionary? _knownTypesForObject;
58public DataContractDictionary Contracts =>
61public Dictionary<DataContract, object> ProcessedContracts =>
66public DataContractDictionary? KnownTypesForObject
203private void AddKnownDataContracts(DataContractDictionary? knownDataContracts)
309private Dictionary<XmlQualifiedName, object>? _referencedTypesDictionary;
310private Dictionary<XmlQualifiedName, object>? _referencedCollectionTypesDictionary;
314private Dictionary<XmlQualifiedName, object> GetReferencedTypes()
338private Dictionary<XmlQualifiedName, object> GetReferencedCollectionTypes()
361private void AddReferencedType(Dictionary<XmlQualifiedName, object> referencedTypes, Type type)
576Dictionary<XmlQualifiedName, object> referencedTypes = useReferencedCollectionTypes ? GetReferencedCollectionTypes() : GetReferencedTypes();
System.Private.Windows.Core (8)
System.Private.Xml (127)
System\Xml\Schema\SchemaInfo.cs (17)
27private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
28private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _undeclaredElementDecls = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
30private Dictionary<XmlQualifiedName, SchemaEntity>? _generalEntities;
31private Dictionary<XmlQualifiedName, SchemaEntity>? _parameterEntities;
38private readonly Dictionary<string, bool> _targetNamespaces = new Dictionary<string, bool>();
39private readonly Dictionary<XmlQualifiedName, SchemaAttDef> _attributeDecls = new Dictionary<XmlQualifiedName, SchemaAttDef>();
42private readonly Dictionary<XmlQualifiedName, SchemaElementDecl> _elementDeclsByType = new Dictionary<XmlQualifiedName, SchemaElementDecl>();
43private Dictionary<string, SchemaNotation>? _notations;
63internal Dictionary<XmlQualifiedName, SchemaElementDecl> ElementDecls
68internal Dictionary<XmlQualifiedName, SchemaElementDecl> UndeclaredElementDecls
73internal Dictionary<XmlQualifiedName, SchemaEntity> GeneralEntities =>
76internal Dictionary<XmlQualifiedName, SchemaEntity> ParameterEntities =>
85internal Dictionary<string, bool> TargetNamespaces
90internal Dictionary<XmlQualifiedName, SchemaElementDecl> ElementDeclsByType
95internal Dictionary<XmlQualifiedName, SchemaAttDef> AttributeDecls
100internal Dictionary<string, SchemaNotation> Notations =>
331Dictionary<XmlQualifiedName, SchemaElementDecl> elements = _elementDecls;
System\Xml\Serialization\Compilation.cs (8)
442var scopeTable = new Dictionary<TypeScope, XmlMapping>();
513var serializers = new Dictionary<string, string>();
692private readonly ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>> _collectibleCaches = new ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>>();
693private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>();
705if (_collectibleCaches.TryGetValue(t.Assembly, out var cCache))
722Dictionary<TempAssemblyCacheKey, TempAssembly>? cache;
726cache = _collectibleCaches.TryGetValue(t.Assembly, out var c) // Clone or create
System\Xml\Serialization\XmlSerializationILGen.cs (8)
19private readonly Dictionary<TypeMapping, string> _methodNames = new Dictionary<TypeMapping, string>();
21private readonly Dictionary<string, MethodBuilderInfo> _methodBuilders = new Dictionary<string, MethodBuilderInfo>();
23internal Dictionary<string, Type> CreatedTypes = new Dictionary<string, Type>();
25internal Dictionary<string, MemberInfo> memberInfos = new Dictionary<string, MemberInfo>();
59internal Dictionary<TypeMapping, string> MethodNames { get { return _methodNames; } }
408private FieldBuilder GenerateTypedSerializers(Dictionary<string, string> serializers, TypeBuilder serializerContractTypeBuilder)
434private void GenerateGetSerializer(Dictionary<string, string> serializers, XmlMapping[] xmlMappings, TypeBuilder serializerContractTypeBuilder)
479internal void GenerateSerializerContract(XmlMapping[] xmlMappings, Type[] types, string readerType, string[] readMethods, string writerType, string[] writerMethods, Dictionary<string, string> serializers)
System\Xml\Xsl\Xslt\Compiler.cs (7)
54public Dictionary<QilName, VarPar> AllGlobalVarPars = new Dictionary<QilName, VarPar>();
55public Dictionary<QilName, Template> NamedTemplates = new Dictionary<QilName, Template>();
56public Dictionary<QilName, AttributeSet> AttributeSets = new Dictionary<QilName, AttributeSet>();
57public Dictionary<string, NsAlias> NsAliases = new Dictionary<string, NsAlias>();
59private readonly Dictionary<string, int> _moduleOrder = new Dictionary<string, int>();
360private readonly Dictionary<string, int> _moduleOrder;
362public CompilerErrorComparer(Dictionary<string, int> moduleOrder)
System.Reflection.DispatchProxy (6)
System.Reflection.Emit (11)
System.Reflection.Metadata (25)
System.Reflection.MetadataLoadContext (1)
System.Resources.Extensions (13)
System.Resources.Writer (2)
System.Runtime.Caching (4)
System.Runtime.Serialization.Formatters (1)
System.Runtime.Serialization.Schema (20)
System\Runtime\Serialization\Schema\CodeExporter.cs (20)
21using DataContractDictionary = System.Collections.Generic.Dictionary<System.Xml.XmlQualifiedName, System.Runtime.Serialization.DataContracts.DataContract>;
38private readonly Dictionary<string, string> _namespaces;
39private readonly Dictionary<string, string?> _clrNamespaces;
196private Dictionary<string, string> Namespaces
201private Dictionary<string, string?> ClrNamespaces
260private void ExportClassDataContractHierarchy(XmlQualifiedName typeName, DataContract classContract, ContractCodeDomInfo contractCodeDomInfo, Dictionary<XmlQualifiedName, object?> contractNamesInHierarchy)
385get { return DataContract.GetXmlName(typeof(Dictionary<,>)); }
391get { return _dataContractSet.GetDataContract(typeof(Dictionary<,>)); }
655Type? type = _dataContractSet.GetReferencedType(GenericDictionaryName, GenericDictionaryContract, out DataContract? _, out object[]? _) ?? typeof(Dictionary<,>);
898DataContractDictionary? knownTypeDictionary = GetKnownTypeContracts(dataContract);
902DataContractDictionary.ValueCollection? knownTypeContracts = knownTypeDictionary.Values;
915private DataContractDictionary? GetKnownTypeContracts(DataContract dataContract)
933private DataContractDictionary? GetKnownTypeContracts(DataContract classDataContract, Dictionary<DataContract, object?> handledContracts)
966private static void AddKnownTypeContracts(DataContract classDataContract, DataContractDictionary? knownContracts)
987DataContractDictionary? knownContractDictionary = GetKnownTypeContracts(classDataContract, new Dictionary<DataContract, object?>());
1519Dictionary<string, object?> fragments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
1550private static void AddToNamespace(StringBuilder builder, string? fragment, Dictionary<string, object?> fragments)
1584int fragmentLength, Dictionary<string, object?> fragments)
1612Dictionary<Type, object> previousCollectionTypes = new Dictionary<Type, object>();
System.Security.Claims (1)
System.Security.Cryptography (21)
System\Security\Cryptography\CryptoConfig.cs (6)
34private static volatile Dictionary<string, string>? s_defaultOidHT;
35private static volatile Dictionary<string, object>? s_defaultNameHT;
39private static Dictionary<string, string> DefaultOidHT
49Dictionary<string, string> ht = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase);
102private static Dictionary<string, object> DefaultNameHT
113Dictionary<string, object> ht = new Dictionary<string, object>(capacity: capacity, comparer: StringComparer.OrdinalIgnoreCase);
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (17)
System.ServiceModel.NetFramingBase (5)
System.ServiceModel.Primitives.Tests (3)
System.ServiceModel.Syndication (15)
System.Text.Encoding.CodePages (5)
System\Text\EncodingTable.cs (4)
12private static readonly Dictionary<string, int> s_nameToCodePageCache = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
13private static readonly Dictionary<int, string> s_codePageToWebNameCache = new Dictionary<int, string>();
14private static readonly Dictionary<int, string> s_codePageToEnglishNameCache = new Dictionary<int, string>();
141private static string? GetNameFromCodePage(int codePage, string names, ReadOnlySpan<int> indices, Dictionary<int, string> cache)
System.Text.Json (36)
System.Text.Json.SourceGeneration (9)
System.Text.RegularExpressions (20)
System.Text.RegularExpressions.Generator (20)
RegexGenerator.cs (5)
104Dictionary<string, string[]> requiredHelpers = new();
165var emittedExpressions = new Dictionary<(string Pattern, RegexOptions Options, int? Timeout), RegexMethod>();
171Dictionary<string, string[]> requiredHelpers = new();
180else if (result is ValueTuple<RegexMethod, string, Dictionary<string, string[]>, CompilationData> regexImpl)
245else if (result is ValueTuple<RegexMethod, string, Dictionary<string, string[]>, CompilationData> regexImpl)
RegexGenerator.Emitter.cs (13)
205private static void EmitRegexDerivedTypeRunnerFactory(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow)
306private static void AddIsWordCharHelper(Dictionary<string, string[]> requiredHelpers)
346private static void AddIsBoundaryHelper(Dictionary<string, string[]> requiredHelpers, bool checkOverflow)
371private static void AddIsECMABoundaryHelper(Dictionary<string, string[]> requiredHelpers, bool checkOverflow)
397private static string EmitSearchValuesOrLiteral(ReadOnlySpan<char> chars, Dictionary<string, string[]> requiredHelpers)
411private static string EmitSearchValues(char[] chars, Dictionary<string, string[]> requiredHelpers, string? fieldName = null)
506private static string EmitIndexOfAnyCustomHelper(string set, Dictionary<string, string[]> requiredHelpers, bool checkOverflow)
713private static void EmitTryFindNextPossibleStartingPosition(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow)
1448private static void EmitTryMatchAtCurrentPosition(IndentedTextWriter writer, RegexMethod rm, Dictionary<string, string[]> requiredHelpers, bool checkOverflow)
1479Dictionary<string, int> usedNames = new();
1492Dictionary<string, string[]> additionalLocalFunctions = new();
4924Dictionary<string, string[]> requiredHelpers,
4999private static string MatchCharacterClass(string chExpr, string charClass, bool negate, HashSet<string> additionalDeclarations, Dictionary<string, string[]> requiredHelpers)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (4)
System.Windows.Controls.Ribbon (19)
System.Windows.Forms (82)
System.Windows.Forms.Analyzers.CSharp.Tests (7)
System.Windows.Forms.Design (103)
System.Windows.Forms.Design.Tests (24)
System.Windows.Forms.Primitives (2)
System.Windows.Forms.Primitives.TestUtilities (5)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Forms.Tests (29)
System.Windows.Input.Manipulations (1)
System.Xaml (100)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (10)
1627Dictionary<string, object> _ignorables;
1628Dictionary<string, ProcessContentSet> _processContents;
1629Dictionary<string, PreserveItemSet> _preserveElements;
1630Dictionary<string, PreserveItemSet> _preserveAttributes;
1969Dictionary<string, string> _names;
2024private Dictionary<string, object> _knownNamespaces;
2025private Dictionary<string, string> _namespaceMap = new Dictionary<string, string>();
2026private Dictionary<string, object> _subsumingNamespaces;
2027private Dictionary<string, HandleElementCallback> _elementHandler = new Dictionary<string, HandleElementCallback>();
2028private Dictionary<string, HandleAttributeCallback> _attributeHandler = new Dictionary<string, HandleAttributeCallback>();
System\Xaml\MS\Impl\XmlNsInfo.cs (10)
67private Dictionary<string, string> _oldToNewNs;
68internal Dictionary<string, string> OldToNewNs
80private Dictionary<string, string> _prefixes;
81internal Dictionary<string, string> Prefixes
286Dictionary<string, string> LoadOldToNewNs()
288Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal);
323void LoadOldToNewNsHelper(Dictionary<string, string> result, string oldns, string newns, Assembly assembly)
337Dictionary<string, string> LoadPrefixes()
339Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal);
372void LoadPrefixesHelper(Dictionary<string, string> result, string xmlns, string prefix, Assembly assembly)
System\Xaml\Runtime\DynamicMethodRuntime.cs (10)
56Dictionary<MethodInfo, PropertyGetDelegate> _propertyGetDelegates;
57Dictionary<MethodInfo, PropertySetDelegate> _propertySetDelegates;
58Dictionary<MethodBase, FactoryDelegate> _factoryDelegates;
59Dictionary<Type, object> _converterInstances;
60Dictionary<Type, DelegateCreator> _delegateCreators;
63private Dictionary<MethodInfo, PropertyGetDelegate> PropertyGetDelegates
75private Dictionary<MethodInfo, PropertySetDelegate> PropertySetDelegates
87private Dictionary<MethodBase, FactoryDelegate> FactoryDelegates
99private Dictionary<Type, object> ConverterInstances
111private Dictionary<Type, DelegateCreator> DelegateCreators
System\Xaml\Schema\TypeReflector.cs (16)
250internal Dictionary<int, IList<XamlType>> ReflectedPositionalParameters { get; set; }
471Dictionary<string, PropertyInfo> result = new Dictionary<string, PropertyInfo>(propList.Length);
532Dictionary<string, EventInfo> result = new Dictionary<string, EventInfo>(eventList.Length);
709private void LookupAllStaticAccessors(out Dictionary<string, List<MethodInfo>> getters,
710out Dictionary<string, List<MethodInfo>> setters, out Dictionary<string, List<MethodInfo>> adders)
728private void LookupAllStaticAccessorsHelper(MethodInfo[] allMethods, Dictionary<string,List<MethodInfo>> getters,
729Dictionary<string, List<MethodInfo>> setters, Dictionary<string, List<MethodInfo>> adders, bool isUnderlyingTypePublic)
837private static void AddToMultiDict(Dictionary<string, List<MethodInfo>> dict, string name, MethodInfo value, bool isUnderlyingTypePublic)
955Dictionary<string, List<MethodInfo>> getters;
956Dictionary<string, List<MethodInfo>> setters;
957Dictionary<string, List<MethodInfo>> adders;
966Dictionary<string, List<MethodInfo>> getters, Dictionary<string, List<MethodInfo>> setters)
1007List<XamlMember> result, Dictionary<string, List<MethodInfo>> adders)
System\Xaml\XamlSchemaContext.cs (7)
468private ConcurrentDictionary<XamlType, Dictionary<string,SpecialBracketCharacters> > _masterBracketCharacterCache;
477private ConcurrentDictionary<XamlType, Dictionary<string, SpecialBracketCharacters> > MasterBracketCharacterCache
482Interlocked.CompareExchange(ref _masterBracketCharacterCache, CreateDictionary<XamlType, Dictionary<string, SpecialBracketCharacters>>(), null);
544internal Dictionary<string, SpecialBracketCharacters> InitBracketCharacterCacheForType(XamlType type)
548Dictionary<string, SpecialBracketCharacters> bracketCharacterCache = null;
565private Dictionary<string, SpecialBracketCharacters> BuildBracketCharacterCacheForType(XamlType type)
567Dictionary<string, SpecialBracketCharacters> map = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
TagHelpersWebSite (4)
TaskUsageLogger (5)
Templates.Blazor.Tests (3)
Templates.Blazor.WebAssembly.Auth.Tests (4)
Templates.Blazor.WebAssembly.Tests (4)
Templates.Mvc.Tests (4)
Templates.Tests (5)
UnitTests.Common (5)
VBCSCompiler.UnitTests (15)
CompilerServerTests.cs (15)
129var resetVariables = new Dictionary<string, string>();
329var files = new Dictionary<string, string> { { "hello.cs", "♕" } };
471var files = new Dictionary<string, string> { { "c.cs", "class C {}" } };
486var files = new Dictionary<string, string> { { "c.vb", "Class C\nEnd Class" } };
543Dictionary<string, string> files =
571Dictionary<string, string> files =
637Dictionary<string, string> files =
679Dictionary<string, string> files =
709Dictionary<string, string> files =
739Dictionary<string, string> files =
859Dictionary<string, string> files =
1000var filesInDirectory = new Dictionary<string, string>()
1050Dictionary<string, string> files =
1099Dictionary<string, string> files =
1250Dictionary<string, string> files =
VersioningWebSite (1)
Wasm.Performance.TestApp (1)
WindowsFormsIntegration (7)
XmlFileLogger (2)
xunit.assert (15)
Sdk\AssertHelper.cs (6)
49 static readonly Dictionary<char, string> encodings = new Dictionary<char, string>
63 static readonly ConcurrentDictionary<Type, Dictionary<string, Func<object?, object?>>> gettersByType = new ConcurrentDictionary<Type, Dictionary<string, Func<object?, object?>>>();
119 static Dictionary<string, Func<object?, object?>> GetGettersForType([DynamicallyAccessedMembers(
698 var expectedGetters = GetGettersForType(expected.GetType());
699 var actualGetters = GetGettersForType(actual.GetType());
xunit.console (11)
Xunit.NetCore.Extensions (6)