100 references to Dictionary
aspire (8)
Commands\AgentMcpCommand.cs (2)
185? new Dictionary<string, JsonElement>(a) 223? new Dictionary<string, JsonElement>(a)
Projects\DotNetAppHostProject.cs (2)
221var env = new Dictionary<string, string>(context.EnvironmentVariables); 383var env = new Dictionary<string, string>(context.EnvironmentVariables);
Projects\GuestAppHostProject.cs (3)
352certEnvVars = new Dictionary<string, string>(certResult.EnvironmentVariables); 485var environmentVariables = new Dictionary<string, string>(context.EnvironmentVariables) 847var environmentVariables = new Dictionary<string, string>(context.EnvironmentVariables)
Projects\GuestRuntime.cs (1)
142var mergedEnvironment = new Dictionary<string, string>(environmentVariables);
Aspire.Cli.Tests (1)
Projects\GuestRuntimeTests.cs (1)
431LastEnvironmentVariables = new Dictionary<string, string>(environmentVariables);
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
278EnvVars = new Dictionary<string, string>(otherBuildEnvironment.EnvVars);
Aspire.Hosting (1)
Ats\CollectionExports.cs (1)
109=> new(dict);
Aspire.Hosting.Kubernetes (1)
KubernetesPublishingContext.cs (1)
114var configItems = new Dictionary<string, KubernetesResource.HelmValue>(resourceContext.EnvironmentVariables);
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
278EnvVars = new Dictionary<string, string>(otherBuildEnvironment.EnvVars);
dotnet (3)
Commands\MSBuild\MSBuildLogger.cs (1)
247properties ??= new(eventProperties);
Commands\Run\RunCommandSelector.cs (1)
207_project = Collection.LoadProject(_projectFilePath, new Dictionary<string, string>(_globalProperties), toolsVersion: null);
Commands\Workload\GlobalJsonWorkloadSetFile.cs (1)
68foreach (var kvp in new Dictionary<string, string>(globalJsonWorkloadSetVersions))
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (1)
145_scopedSupportingTokenAuthenticatorSpecification = new Dictionary<string, ICollection<SupportingTokenAuthenticatorSpecification>>(factory._scopedSupportingTokenAuthenticatorSpecification);
ILCompiler.Compiler (3)
Compiler\Logger.cs (1)
67_warningsAsErrors = new Dictionary<int, bool>(warningsAsErrors);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
380_definedSymbols = new Dictionary<Utf8String, SymbolDefinition>(definedSymbols);
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
33Dictionary = other.Dictionary == null ? null : new Dictionary<TKey, TValue>(other.Dictionary);
ILCompiler.ReadyToRun (3)
Compiler\ProfileData.cs (1)
81mergedCallWeights = new Dictionary<MethodDesc, int>(data.CallWeights);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
380_definedSymbols = new Dictionary<Utf8String, SymbolDefinition>(definedSymbols);
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (1)
1137_definedSymbols = new Dictionary<Utf8String, SymbolDefinition>(definedSymbols);
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\ProfileData.cs (1)
81mergedCallWeights = new Dictionary<MethodDesc, int>(data.CallWeights);
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\DataFlow\DefaultValueDictionary.cs (1)
33Dictionary = other.Dictionary == null ? null : new Dictionary<TKey, TValue>(other.Dictionary);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
1165newHttpContext.Items = new Dictionary<object, object?>(context.Items);
Microsoft.AspNetCore.Mvc.Core (4)
ApplicationModels\ActionModel.cs (1)
61Properties = new Dictionary<object, object?>(other.Properties);
ApplicationModels\ControllerModel.cs (1)
61Properties = new Dictionary<object, object?>(other.Properties);
ApplicationModels\ParameterModelBase.cs (1)
43Properties = new Dictionary<object, object?>(other.Properties);
Routing\ActionEndpointFactory.cs (1)
313resolvedRequiredValues = new Dictionary<string, string?>(action.RouteValues);
Microsoft.AspNetCore.Mvc.RazorPages (4)
ApplicationModels\PageApplicationModel.cs (1)
65Properties = new Dictionary<object, object?>(other.Properties);
ApplicationModels\PageHandlerModel.cs (1)
49Properties = new Dictionary<object, object?>(other.Properties);
ApplicationModels\PageRouteModel.cs (1)
55Properties = new Dictionary<object, object?>(other.Properties);
Infrastructure\PageActionDescriptorProvider.cs (1)
105Properties = new Dictionary<object, object?>(model.Properties),
Microsoft.AspNetCore.RateLimiting (1)
RateLimitingMiddleware.cs (1)
47_policyMap = new Dictionary<string, DefaultRateLimiterPolicy>(options.Value.PolicyMap);
Microsoft.Build (9)
BackEnd\Client\MSBuildClient.cs (1)
574: new Dictionary<string, string?>(baseOverrides);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
421var environmentVariables = new Dictionary<string, string>(_componentHost.BuildParameters.BuildProcessEnvironmentInternal);
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
872Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties)
Definition\Toolset.cs (1)
268_subToolsets = subToolsetsAsDictionary ?? new Dictionary<string, SubToolset>(subToolsets);
Instance\TaskFactories\TaskHostTask.cs (1)
461return new Dictionary<string, string>(_buildComponentHost.BuildParameters.GlobalProperties);
Logging\BinaryLogger\ExtendedDataFields.cs (1)
29new Dictionary<string, string?>(ExtendedMetadata);
src\msbuild\src\Shared\TaskHostConfiguration.cs (1)
208_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment);
src\msbuild\src\Shared\TaskHostTaskComplete.cs (1)
139_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment);
src\msbuild\src\Shared\TaskParameter.cs (1)
901IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
Microsoft.Build.Framework (2)
MutableTaskItem.cs (2)
40public IDictionary CloneCustomMetadata() => new Dictionary<string, string>(_metadata); 52public IDictionary CloneCustomMetadataEscaped() => new Dictionary<string, string>(_metadata);
Microsoft.Build.Tasks.Core (1)
src\msbuild\src\Shared\TaskParameter.cs (1)
901IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
124var originalCoreAnalysisData = new Dictionary<AnalysisEntity, CopyAbstractValue>(coreAnalysisData);
Microsoft.CodeAnalysis.Features (1)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
522var result = new Dictionary<SymbolDescriptionGroups, ImmutableArray<TaggedText>>(_documentationMap);
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
123var originalCoreAnalysisData = new Dictionary<AnalysisEntity, CopyAbstractValue>(coreAnalysisData);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Rpc\RemoteBuildHost.cs (1)
46=> _client.InvokeAsync(BuildHostTargetObject, nameof(IBuildHost.ConfigureGlobalState), parameters: [knownCommandLineParserLanguages.ToArray(), new Dictionary<string, string>(globalProperties), binlogPath, maxNodeCount], cancellationToken);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
85var allProperties = new Dictionary<string, string>(s_defaultGlobalProperties);
Microsoft.DotNet.Cli.Utils (1)
Command.cs (1)
14customEnvironmentVariables == null ? null : new(customEnvironmentVariables);
Microsoft.Extensions.AI.Evaluation.Console (1)
Telemetry\TelemetryHelper.cs (1)
175combinedProperties = new Dictionary<string, string>(_commonProperties);
Microsoft.Extensions.Diagnostics (1)
Tracing\DefaultActivitySourceFactory.cs (1)
398var newDict = new Dictionary<(string Name, bool IsLocalScope), SourceFilterState>(state.SourceFilterStates)
Microsoft.Maui.Controls (2)
Shell\ShellRouteParameters.cs (2)
18 public ShellRouteParameters(ShellRouteParameters shellRouteParams) : base(shellRouteParams) 59 internal ShellRouteParameters(IDictionary<string, object> shellRouteParams) : base(shellRouteParams)
Microsoft.Maui.Graphics (1)
Text\TextAttributes.cs (1)
11 public TextAttributes(IDictionary<TextAttribute, string> dictionary) : base(dictionary)
Microsoft.ML.AutoML (1)
Sweepers\ISweeper.cs (1)
141new ParameterSet(new Dictionary<string, IParameterValue>(_parameterValues), _hash);
Microsoft.ML.Sweeper (1)
ISweeper.cs (1)
170new ParameterSet(new Dictionary<string, IParameterValue>(_parameterValues), _hash);
Microsoft.ML.TimeSeries (2)
RootCauseAnalyzer.cs (2)
130return new Dictionary<string, object>(keyList.Select(dim => new KeyValuePair<string, object>(dim, dimension[dim])).ToDictionary(kvp => kvp.Key, kvp => kvp.Value)); 639Dictionary<string, Object> newDim = new Dictionary<string, Object>(dimension);
Microsoft.NET.Build.Tasks (1)
FrameworkPackages\FrameworkPackages.cs (1)
53: this(framework, frameworkName) => this.Packages = new(frameworkPackages.Packages);
Microsoft.TemplateEngine.Cli (1)
Alias\AliasRegistry.cs (1)
59Dictionary<string, IReadOnlyList<string>> aliasesWithCandidate = new(_aliases!.CommandAliases);
Microsoft.TestPlatform.CrossPlatEngine (2)
Client\MTP\MtpProxyExecutionManager.cs (1)
526=> new(_executed, new Dictionary<TestOutcome, long>(_byOutcome));
Execution\TestRunCache.cs (1)
159var stats = new TestRunStatistics(new Dictionary<TestOutcome, long>(_runStats));
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
522testObjectDictionaryCopy = new Dictionary<Guid, BlameTestObject>(_testObjectDictionary);
Microsoft.VisualStudio.TestPlatform.Common (2)
ExtensionFramework\Utilities\TestExtensions.cs (2)
117return new Dictionary<string, HashSet<string>>(second!); 122return new Dictionary<string, HashSet<string>>(first!);
MSBuild (6)
OutOfProcTaskHostNode.cs (2)
691Properties = properties == null ? new Dictionary<string, string>() : new Dictionary<string, string>(properties), 705return new Dictionary<string, string>(EffectiveConfiguration.GlobalProperties);
src\msbuild\src\Shared\TaskHostConfiguration.cs (1)
208_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment);
src\msbuild\src\Shared\TaskHostTaskComplete.cs (1)
139_buildProcessEnvironment = new Dictionary<string, string>(buildProcessEnvironment);
src\msbuild\src\Shared\TaskParameter.cs (1)
901IDictionary clonedDictionary = new Dictionary<string, string>(_customEscapedMetadata);
XMake.cs (1)
2220Dictionary<string, string> restoreGlobalProperties = new Dictionary<string, string>(globalProperties);
NuGet.Configuration (2)
Settings\Items\UnknownItem.cs (1)
189var otherChildren = new Dictionary<SettingBase, SettingBase>(unknown._mutableChildren);
Settings\SettingItem.cs (1)
66var attributesImmutable = new Dictionary<string, string>(MutableAttributes);
PresentationCore (2)
System\Windows\Media\UniqueEventHelper.cs (2)
24ueh._delegates = new Dictionary<EventHandler<TEventArgs>, int>(_delegates); 55ueh._delegates = new Dictionary<EventHandler, int>(_delegates);
PresentationFramework (2)
MS\Internal\Data\CommitManager.cs (1)
158: base(other)
System\Windows\Markup\Baml2006\Baml2006ReaderFrame.cs (1)
24_namespaces = new Dictionary<string, string>(source._namespaces);
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\ValidationContext.cs (2)
97_items = items != null ? new Dictionary<object, object?>(items) : new Dictionary<object, object?>(); 133_items = items != null ? new Dictionary<object, object?>(items) : new Dictionary<object, object?>();
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\Hosting\ImportSourceImportDefinitionHelpers.cs (1)
53reply = new Dictionary<string, object?>(_sourceDefinition.Metadata);
System\ComponentModel\Composition\ReflectionModel\PartCreatorExportDefinition.cs (1)
35var metadata = new Dictionary<string, object?>(_productDefinition.Metadata);
System.Composition.Hosting (1)
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (1)
29var updatedDefinitions = new Dictionary<CompositionContract, ExportDescriptor[]>(_partDefinitions);
System.Composition.Runtime (1)
System\Composition\Hosting\Core\CompositionContract.cs (1)
164var remainingConstraints = new Dictionary<string, object>(_metadataConstraints);
System.Data.Odbc (1)
Common\System\Data\Common\DBConnectionString.cs (1)
92_parsetable = new Dictionary<string, string?>(_parsetable);
System.Net.HttpListener (2)
System\Net\Managed\HttpEndPointListener.cs (2)
356p2 = new Dictionary<ListenerPrefix, HttpListener>(prefs); 399p2 = new Dictionary<ListenerPrefix, HttpListener>(prefs);
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (2)
272addressChangedSubscribers = new Dictionary<NetworkAddressChangedEventHandler, ExecutionContext?>(s_addressChangedSubscribers); 308new Dictionary<NetworkAvailabilityChangedEventHandler, ExecutionContext?>(
System.Private.Xml (3)
System\Xml\Serialization\Compilation.cs (2)
780? new Dictionary<TempAssemblyCacheKey, TempAssembly>(c) 787cache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(_fastCache); // Clone
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
35_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.NamespacesInternal);
System.Security.Claims (1)
System\Security\Claims\Claim.cs (1)
300_properties = new Dictionary<string, string>(other._properties);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
97_objectState = new(objectState);
System.Xaml (2)
System\Xaml\Context\ObjectWriterFrame.cs (1)
31_preconstructionPropertyValues = new Dictionary<XamlMember, object>(source.PreconstructionPropertyValues);
System\Xaml\InfosetObjects\XamlXmlReaderSettings.cs (1)
28_xmlnsDictionary = new Dictionary<string, string>(settings._xmlnsDictionary);