241 references to Dictionary
aspire (4)
Bundles\BundleService.cs (1)
497var targets = new Dictionary<string, string?>(s_linkedLayoutDirectories.Length, StringComparer.Ordinal);
Documentation\Docs\DocsIndexService.cs (1)
266var idf = new Dictionary<string, float>(documentFrequency.Count, StringComparer.Ordinal);
Documentation\Docs\LlmsTxtParser.cs (1)
151var slugCounts = new Dictionary<string, int>(docBoundaries.Count, StringComparer.Ordinal);
Processes\ProcessEnvironment.cs (1)
19var dict = new Dictionary<string, string?>(parent.Count, Comparer);
Aspire.Hosting (2)
Pipelines\DistributedApplicationPipeline.cs (2)
855var stepCompletions = new Dictionary<string, TaskCompletionSource>(steps.Count, StringComparer.Ordinal); 1080var visitStates = new Dictionary<string, VisitState>(steps.Count, StringComparer.Ordinal);
dotnet (2)
ReleasePropertyProjectLocator.cs (2)
64return new Dictionary<string, string>(1, StringComparer.OrdinalIgnoreCase) { [EnvironmentVariableNames.DISABLE_PUBLISH_AND_PACK_RELEASE] = "true" }.AsReadOnly(); // Don't throw error if publish* conflicts but global config specified. 78var newConfigurationArgs = new Dictionary<string, string>(2, StringComparer.OrdinalIgnoreCase);
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
174_mappings = new Dictionary<Uri, PreloadedData>(16, uriComparer);
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
461updatedDefaults = new Dictionary<string, object?>(defaults.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
58Store = new Dictionary<string, StringValues>(capacity, StringComparer.OrdinalIgnoreCase);
QueryCollection.cs (1)
60Store = new Dictionary<string, StringValues>(capacity, StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
81_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer); 518_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
1020var requestHeaders = new Dictionary<string, StringValues>(existingRequestFeature.Headers.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
20var dictionary = new Dictionary<string, StringValues>(
Microsoft.AspNetCore.Mvc.Razor (1)
Compilation\DefaultViewCompiler.cs (1)
52var compiledViews = new Dictionary<string, Task<CompiledViewDescriptor>>(
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
63_precompiledViews = new Dictionary<string, CompiledViewDescriptor>(
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\CompiledPageActionDescriptorProvider.cs (1)
57var lookup = new Dictionary<string, CompiledViewDescriptor>(feature.ViewDescriptors.Count, StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\DefaultViewComponentHelper.cs (1)
119return new Dictionary<string, object?>(capacity: 1, comparer: StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Razor.Utilities.Shared (3)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.AspNetCore.Routing (3)
Patterns\RoutePatternFactory.cs (3)
461updatedDefaults = new Dictionary<string, object?>(defaults.Count, 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.Server.HttpSys (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\ConfigurationReader.cs (2)
41var certificates = new Dictionary<string, CertificateConfig>(0, StringComparer.OrdinalIgnoreCase); 123var sniDictionary = new Dictionary<string, SniConfig>(0, StringComparer.OrdinalIgnoreCase);
KestrelConfigurationLoader.cs (1)
72= new Dictionary<string, Action<EndpointConfiguration>>(0, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.WebUtilities (2)
KeyValueAccumulator.cs (1)
105return _accumulator ?? new Dictionary<string, StringValues>(0, StringComparer.OrdinalIgnoreCase);
QueryHelpers.cs (1)
131return new Dictionary<string, StringValues>(0, StringComparer.OrdinalIgnoreCase);
Microsoft.Build (31)
BackEnd\BuildManager\RequestedProjectState.cs (1)
135return new Dictionary<string, List<string>>(capacity, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
396Dictionary<string, string> globalProperties = new(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 728var globalProperties = new Dictionary<string, string>(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
399var itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\SdkResolution\SdkResult.cs (3)
90translator.TranslateDictionary(ref _propertiesToAdd, count => new Dictionary<string, string>(count, StringComparer.OrdinalIgnoreCase)); 94dictionaryCreator: count => new Dictionary<string, SdkResultItem>(count, StringComparer.OrdinalIgnoreCase)); 95translator.TranslateDictionary(ref _environmentVariablesToAdd, count => new Dictionary<string, string>(count, StringComparer.OrdinalIgnoreCase));
Collections\ItemDictionary.cs (1)
58_itemLists = new Dictionary<string, List<T>>(initialItemTypesCapacity, MSBuildNameIgnoreCaseComparer.Default);
Collections\LookasideStringInterner.cs (1)
49_stringToIdsMap = new Dictionary<string, int>(defaultCollectionSize, comparer);
Collections\MultiDictionary.cs (1)
76_backing = new Dictionary<K, SmallList<V>>(capacity, keyComparer);
Collections\PropertyDictionary.cs (1)
566var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default);
Collections\WeakValueDictionary.cs (1)
46_dictionary = new Dictionary<K, WeakReference<V>>(_capacity, keyComparer);
Construction\ProjectTaskElement.cs (1)
149var parametersClone = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Construction\Solution\SolutionProjectGenerator.cs (1)
2138var properties = new Dictionary<string, string>(_metaprojectGlobalProperties.Length, StringComparer.OrdinalIgnoreCase);
Definition\Project.cs (1)
2175var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectCollection.cs (2)
679dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default); 1322var mergedProperties = new Dictionary<string, string>(globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default);
Evaluation\Evaluator.cs (1)
2071escapedMetadata = new Dictionary<string, string>(item.Value.Metadata.Count, StringComparer.OrdinalIgnoreCase);
Evaluation\EvaluatorMetadataTable.cs (1)
92_metadata = new Dictionary<string, string>(_capacity, MSBuildNameIgnoreCaseComparer.Default);
Evaluation\Expander.ItemExpander.Transforms.cs (1)
325Dictionary<string, string> directoryNameTable = new Dictionary<string, string>(input.Count, StringComparer.OrdinalIgnoreCase);
Instance\ProjectInstance.cs (1)
2706Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase);
Instance\ProjectItemInstance.cs (1)
1633Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(metadata.Count, MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectTaskInstance.cs (1)
237Dictionary<string, string> filteredParameters = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Instance\TaskRegistry.cs (1)
741? new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(capacity.Value, RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact)
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (1)
1222var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (3)
551var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 564var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 578var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
87result[i] = new Dictionary<string, string>(globalProperties[i].Count, StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskHostBuildResponse.cs (2)
64var dict = new Dictionary<string, ITaskItem[]>(projectOutputs.Count, StringComparer.OrdinalIgnoreCase); 95var dict = new Dictionary<string, TaskParameter>(projectOutputs?.Count ?? 0, StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Framework (20)
BackEnd\CommunicationsUtilities.cs (1)
294Dictionary<string, string> table = new(vars.Count, EnvironmentVariableComparer);
BackEnd\TranslatorHelpers.cs (5)
104capacity => new Dictionary<string, string>(capacity, comparer)); 121capacity => new Dictionary<string, T>(capacity, stringComparer)); 137capacity => new Dictionary<string, string>(capacity, comparer)); 154capacity => new Dictionary<string, T>(capacity, stringComparer)); 185translator.TranslateDictionary(ref localDict, capacity => new Dictionary<string, string>(capacity, comparer));
BinaryTranslator.cs (4)
601count => new Dictionary<string, string>(count, comparer)); 625dictionary = new Dictionary<string, string>(count, comparer); 733dictionary = new Dictionary<string, T>(count, comparer); 799dictionary = new(count, comparer);
BuildException\BuildExceptionBase.cs (1)
135customKeyedSerializedData = new Dictionary<string, string?>(count, StringComparer.CurrentCulture);
InterningWriteTranslator.cs (2)
85_stringToIds = new Dictionary<string, int>(initialCapacity, comparer); 86_stringToPathIds = new Dictionary<string, InternPathIds>(initialCapacity, comparer);
MultiThreadedTaskEnvironmentDriver.cs (1)
47_environmentVariables = new Dictionary<string, string>(variables.Count, CommunicationsUtilities.EnvironmentVariableComparer);
SolutionConfiguration.cs (5)
52_cachedProjectElements = new Dictionary<string, XmlElement>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 53_cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 54_cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 55_cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase); 56_cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(projectConfigurationCount, StringComparer.OrdinalIgnoreCase);
TaskHostParameters.cs (1)
161internal Dictionary<string, string> ToDictionary() => new(3, StringComparer.OrdinalIgnoreCase)
Microsoft.Build.Tasks.Core (9)
AssemblyDependency\Node\RarTaskParameters.cs (1)
59Dictionary<string, TaskParameter> taskParameters = new(properties.Length, StringComparer.Ordinal);
AssemblyDependency\ReferenceTable.cs (2)
1899var fullNameToReference = new Dictionary<string, AssemblyNameReference>(References.Count, StringComparer.OrdinalIgnoreCase); 2216var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase);
Copy.cs (2)
506var filesActuallyCopied = new Dictionary<string, string>( 617var partitionsByDestination = new Dictionary<string, List<int>>(
GetSDKReferenceFiles.cs (2)
1271}, count => new Dictionary<string, SdkReferenceInfo>(count, StringComparer.OrdinalIgnoreCase)); 1276}, count => new Dictionary<string, List<string>>(count, StringComparer.OrdinalIgnoreCase));
ResolveSDKReference.cs (1)
300var sdkItems = new Dictionary<string, ITaskItem>(InstalledSDKs.Length, StringComparer.OrdinalIgnoreCase);
system.design\stronglytypedresourcebuilder.cs (1)
749reverseFixupTable = new Dictionary<string, string>(0, StringComparer.InvariantCultureIgnoreCase);
Microsoft.CodeAnalysis (11)
Collections\CachingDictionary.cs (1)
140return new Dictionary<TKey, ImmutableArray<TElement>>(capacity, _comparer);
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
194var map = new Dictionary<DiagnosticAnalyzer, AnalyzerOptions>(
InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
MetadataReader\MetadataHelpers.cs (1)
909var names = new Dictionary<string, int>(nestedNamespaces.Count, nameComparer);
PEWriter\FullMetadataWriter.cs (2)
100_fieldDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess, ReferenceEqualityComparer.Instance); 101_methodDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess, ReferenceEqualityComparer.Instance);
PEWriter\MetadataWriter.DynamicAnalysis.cs (1)
50_blobs = new Dictionary<ImmutableArray<byte>, BlobHandle>(1 + methodCountEstimate + 4 * documentCountEstimate, ByteSequenceComparer.Instance);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Constraints.cs (1)
44var names = new Dictionary<string, int>(n, StringOrdinalComparer.Instance);
Binder\SwitchBinder.cs (1)
100var map = new Dictionary<object, SourceLabelSymbol>(labels.Length, new SwitchConstantValueHelper.SwitchLabelsComparer());
Symbols\Source\SourceMemberContainerSymbol.cs (2)
1752return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(1, ReadOnlyMemoryOfCharComparer.Instance) 1773var dictionary = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(accumulator.Count, ReadOnlyMemoryOfCharComparer.Instance);
Symbols\Source\SourceNamespaceSymbol.cs (1)
282var result = new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamespaceOrTypeSymbol>>(builder.Count, ReadOnlyMemoryOfCharComparer.Instance);
Microsoft.CodeAnalysis.Extensions.Package (4)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.NetAnalyzers (3)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (3)
392var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 405var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 419var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Razor.Compiler (2)
Language\Legacy\CSharpCodeParser.cs (1)
158var directiveParserMap = new Dictionary<string, Action<SyntaxListBuilder<RazorSyntaxNode>, CSharpTransitionSyntax>>(capacity: directives.Length + 5, StringComparer.Ordinal);
Language\TagHelperBinder.cs (1)
102var map = new Dictionary<string, TagHelperSet>(capacity: tagNameToBuilderIndexMap.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Workspaces (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationProvider.cs (1)
140var switchMappingsCopy = new Dictionary<string, string>(switchMappings.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.Maui.Controls (2)
OrderedDictionary.cs (1)
63 _dict = new Dictionary<TKey, TValue>(capacity, equalityComparer);
ResourcesExtensions.cs (1)
36 resources = resources ?? new Dictionary<string, object>(8, StringComparer.Ordinal);
Microsoft.ML.Tokenizers (1)
Model\TiktokenTokenizer.cs (1)
182encoder = new Dictionary<ReadOnlyMemory<byte>, int>(suggestedCapacity, ReadOnlyMemoryByteComparer.Instance);
Microsoft.NET.Build.Extensions.Tasks (2)
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverrideResolver.cs (1)
38result = new Dictionary<string, PackageOverride>(_packageOverrideItems.Length, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\PackageRank.cs (1)
15packageRanks = new Dictionary<string, int>(numPackages, StringComparer.OrdinalIgnoreCase);
Microsoft.NET.Build.Tasks (5)
GetPackageDirectory.cs (1)
52var originalByAbsolute = new Dictionary<string, string>(PackageFolders.Length, StringComparer.Ordinal);
ResolvePackageAssets.cs (2)
764_stringTable = new Dictionary<string, int>(InitialStringTableCapacity, StringComparer.Ordinal); 1551var packageReverseDependencies = new Dictionary<string, HashSet<string>>(_compileTimeTarget.Libraries.Count, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\PackageOverrideResolver.cs (1)
38result = new Dictionary<string, PackageOverride>(_packageOverrideItems.Length, StringComparer.OrdinalIgnoreCase);
src\sdk\src\Tasks\Common\ConflictResolution\PackageRank.cs (1)
15packageRanks = new Dictionary<string, int>(numPackages, StringComparer.OrdinalIgnoreCase);
Microsoft.NET.Sdk.Publish.Tasks (8)
MsDeploy\CommonUtility.cs (5)
274s_wellKnownNamesDict = new Dictionary<string, string?>(wellKnownNames.GetLength(0), StringComparer.OrdinalIgnoreCase); 299s_wellKnownNamesMsdeployDict = new Dictionary<string, string?>(wellKnownNames.GetLength(0), StringComparer.OrdinalIgnoreCase); 1126Dictionary<string, string> nameValueDictionary = new(parameters.Count, StringComparer.OrdinalIgnoreCase); 1177Dictionary<string, string> nameValueDictionary = new(parameters.Count, StringComparer.OrdinalIgnoreCase); 1420Dictionary<string, bool> FoundDictionary = new(optimizedValueList.Count, StringComparer.OrdinalIgnoreCase);
MsDeploy\VsMSDeployObject.cs (1)
344private Dictionary<string, string?> m_NameValueDictionary = new(10, StringComparer.OrdinalIgnoreCase);
Tasks\MsDeploy\CreateParameterFile.cs (1)
106= new(parameters.GetLength(0), StringComparer.OrdinalIgnoreCase);
Tasks\MsDeploy\MSDeploy.cs (1)
755Dictionary<string, string> nameValueDictionary = new(items.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
Data\StaticWebAssetEndpoint.cs (1)
179var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(candidateEndpoints.Length / 2, OSPath.PathComparer);
DefineStaticWebAssetEndpoints.cs (1)
78Dictionary<string, HashSet<string>> existingEndpointsByAssetFile = new(ExistingEndpoints.Length, OSPath.PathComparer);
GeneratePackageAssetsManifestFile.cs (1)
92var identityToPackagePath = new Dictionary<string, string>(parsedAssets.Length, Utils.OSPath.PathComparer);
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (1)
35s_knownTypes ??= new(60, TypeNameComparer.FullNameMatch)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
340m_KeyedNodesHash = New Generic.Dictionary(Of String, Node)(StartingHashCapacity, StringComparer.Create(CultureInfo, ignoreCase:=True))
Microsoft.Web.XmlTransform (1)
XmlTransforms.cs (1)
551Dictionary<string, string> paramDictionary = new Dictionary<string, string>(4, StringComparer.OrdinalIgnoreCase);
Mono.Cecil (2)
Mono.Cecil\MetadataSystem.cs (1)
72 var types = new Dictionary<string, Row<ElementType, bool>> (18, StringComparer.Ordinal) {
Mono.Cecil\TypeDefinitionCollection.cs (1)
37 this.name_cache = new Dictionary<Slot, TypeDefinition> (capacity, new RowEqualityComparer ());
MSBuild (3)
src\msbuild\src\Shared\TaskHostBuildRequest.cs (1)
87result[i] = new Dictionary<string, string>(globalProperties[i].Count, StringComparer.OrdinalIgnoreCase);
src\msbuild\src\Shared\TaskHostBuildResponse.cs (2)
64var dict = new Dictionary<string, ITaskItem[]>(projectOutputs.Count, StringComparer.OrdinalIgnoreCase); 95var dict = new Dictionary<string, TaskParameter>(projectOutputs?.Count ?? 0, StringComparer.OrdinalIgnoreCase);
NuGet.Build.Tasks.Console (1)
Program.cs (1)
284globalProperties = new Dictionary<string, string>(capacity: count, StringComparer.OrdinalIgnoreCase);
NuGet.Commands (2)
RestoreCommand\ContentFiles\ContentFileUtils.cs (1)
111Dictionary<string, List<ContentFilesEntry>> relativePathToEntries = new(entryMappings.Count, StringComparer.OrdinalIgnoreCase);
RestoreCommand\RestoreSummary.cs (1)
105var installed = new Dictionary<string, int>(restoreSummaries.Count, PathUtility.GetStringComparerBasedOnOS());
NuGet.Configuration (1)
PackageSource\MinPublishAgeExceptions.cs (1)
34var itemsByPattern = new Dictionary<string, MinPublishAgeExceptionItem>(items.Count, StringComparer.OrdinalIgnoreCase);
NuGet.ProjectModel (2)
PackageSpecOperations.cs (1)
177Dictionary<string, CentralPackageVersion> result = new(dictSize, StringComparer.OrdinalIgnoreCase);
ProjectLockFile\PackagesLockFileUtilities.cs (1)
386var actualDependencies = new Dictionary<LockFileDependency, LockFileDependency>(
PresentationFramework (3)
MS\Internal\AppModel\MimeObjectFactory.cs (2)
74private static readonly Dictionary<ContentType, StreamToObjectFactoryDelegate> _objectConverters = new Dictionary<ContentType, StreamToObjectFactoryDelegate>(9, new ContentType.WeakComparer()); 75private static readonly Dictionary<ContentType, StreamToObjectFactoryDelegateCore> _objectConvertersCore = new Dictionary<ContentType, StreamToObjectFactoryDelegateCore>(9, new ContentType.WeakComparer());
System\Windows\Controls\Primitives\Selector.cs (1)
2669_set = new Dictionary<ItemInfo, ItemInfo>(capacity, equalityComparer);
ReachFramework (1)
Serialization\XpsFontSubsetter.cs (1)
104_fontEmbeddingManagerCache = new Dictionary<Uri, FEMCacheItem>(3, MS.Internal.UriComparer.Default);
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
618var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 631var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 645var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
rzc (1)
ConcurrentLruCache.cs (1)
36_cache = new Dictionary<TKey, CacheValue>(capacity, comparer);
System.Collections.Immutable (4)
System\Collections\Frozen\FrozenDictionary.cs (2)
54Dictionary<TKey, TValue> d = new(source.Length, comparer); 135newDictionary = new Dictionary<TKey, TValue>(capacity, comparer);
System\Linq\ImmutableArrayExtensions.cs (2)
590var result = new Dictionary<TKey, T>(immutableArray.Length, comparer); 615var result = new Dictionary<TKey, TElement>(immutableArray.Length, comparer);
System.Data.Common (3)
System\Data\Common\AdapterUtil.Common.cs (1)
782Dictionary<string, int> hash = new Dictionary<string, int>(columnNameArray.Length, StringComparer.InvariantCultureIgnoreCase);
System\Data\Common\ObjectStorage.cs (1)
610new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>(
System\Data\DataView.cs (1)
1451Dictionary<DataRow, DataRowView> rvc = new Dictionary<DataRow, DataRowView>(CountFromIndex, DataRowReferenceComparer.s_default);
System.Data.Odbc (1)
System\Data\Odbc\OdbcConnectionStringbuilder.cs (1)
28private static readonly Dictionary<string, Keywords> s_keywords = new Dictionary<string, Keywords>(2, StringComparer.OrdinalIgnoreCase)
System.Data.OleDb (1)
OleDbConnectionStringBuilder.cs (1)
39private static readonly Dictionary<string, Keywords> s_keywords = new Dictionary<string, Keywords>(5, StringComparer.OrdinalIgnoreCase)
System.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
102_environmentVariables = new DictionaryWrapper(new Dictionary<string, string?>(
System.IO.Packaging (4)
System\IO\Packaging\ZipPackage.cs (4)
776_defaultDictionary = new Dictionary<string, ContentType>(DefaultDictionaryInitialSize, s_extensionEqualityComparer); 950_overrideDictionary ??= new Dictionary<PackUriHelper.ValidatedPartUri, ContentType>( 1372_extensionDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, s_extensionEqualityComparer); 1373_ignoredItemDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, StringComparer.Ordinal);
System.Linq (4)
System\Linq\ToCollection.cs (4)
170Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(capacity, comparer); 181Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(source.Length, comparer); 228Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(capacity, comparer); 239Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(source.Length, comparer);
System.Net.Mail (3)
System\Net\Mail\MailHeaderInfo.cs (1)
74var headers = new Dictionary<string, int>((int)MailHeaderID.ZMaxEnumValue + 1, StringComparer.OrdinalIgnoreCase);
System\Net\Mime\MediaTypeMap.cs (2)
20private static readonly Dictionary<string, string>.AlternateLookup<ReadOnlySpan<char>> s_extensionToMediaType = new Dictionary<string, string>(ExtensionToMediaTypeCount, StringComparer.OrdinalIgnoreCase) 428private static readonly Dictionary<string, string>.AlternateLookup<ReadOnlySpan<char>> s_mediaTypeToExtension = new Dictionary<string, string>(MediaTypeToExtensionCount, StringComparer.OrdinalIgnoreCase)
System.Private.CoreLib (8)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (5)
40public Dictionary() : this(0, null) { } 42public Dictionary(int capacity) : this(capacity, null) { } 44public Dictionary(IEqualityComparer<TKey>? comparer) : this(0, comparer) { } 88this(dictionary?.Count ?? 0, comparer) 101this((collection as ICollection<KeyValuePair<TKey, TValue>>)?.Count ?? 0, comparer)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
153new Dictionary<string, string>(255, StringComparer.OrdinalIgnoreCase)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
217caseTable = new Dictionary<string, object?>(copyOfTable.Count, StringComparer.OrdinalIgnoreCase);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (1)
304Dictionary<string, TimeZoneInfo> filteredTimeZones = new Dictionary<string, TimeZoneInfo>(capacity: initialCapacity, comparer: StringComparer.OrdinalIgnoreCase)
System.Private.Windows.Core (1)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (1)
35s_knownTypes ??= new(60, TypeNameComparer.FullNameMatch)
System.Private.Xml (1)
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
174_mappings = new Dictionary<Uri, PreloadedData>(16, uriComparer);
System.Resources.Extensions (1)
System\Resources\Extensions\PreserializedResourceWriter.cs (1)
39private static readonly Dictionary<string, Type> s_primitiveTypes = new Dictionary<string, Type>(16, TypeNameComparer.Instance)
System.Security.Cryptography (5)
System\Security\Cryptography\CryptoConfig.cs (2)
55Dictionary<string, string> ht = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase); 119Dictionary<string, object> ht = new Dictionary<string, object>(capacity: capacity, comparer: StringComparer.OrdinalIgnoreCase);
System\Security\Cryptography\OidLookup.cs (2)
99new Dictionary<string, string>(FriendlyNameToOidCount, StringComparer.OrdinalIgnoreCase); 102new Dictionary<string, string>(OidToFriendlyNameCount, StringComparer.Ordinal);
System\Security\Cryptography\X509Certificates\FindPal.cs (1)
16new Dictionary<string, X509KeyUsageFlags>(NamedKeyUsageFlagsCount, StringComparer.OrdinalIgnoreCase)
System.Text.Json (5)
System\Text\Json\Document\JsonElement.cs (1)
1368Dictionary<string, ValueQueue<JsonElement>> properties2 = new(capacity: remainingProps, StringComparer.Ordinal);
System\Text\Json\Serialization\Converters\FSharp\FSharpUnionConverter.cs (3)
48_casesByName = new Dictionary<string, CaseInfo>(unionCases.Length, StringComparer.Ordinal); 51? new Dictionary<string, CaseInfo>(unionCases.Length, StringComparer.OrdinalIgnoreCase) 498var map = new Dictionary<string, int>(fields.Length, comparer);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1513Dictionary<string, JsonPropertyInfo> propertyIndex = new(properties.Count, comparer);
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
1422var substitution = new Dictionary<ITypeParameterSymbol, ITypeSymbol>(requiredParams.Count, SymbolEqualityComparer.Default);
System.Windows.Forms (1)
System\Windows\Forms\Nrbf\WinFormsNrbfSerializer.cs (1)
29s_knownTypes ??= new(3, TypeNameComparer.FullNameAndAssemblyNameMatch)
System.Windows.Forms.Design (3)
System\ComponentModel\Design\MenuCommandService.cs (1)
256Dictionary<string, int> buildVerbs = new(verbCount, StringComparer.OrdinalIgnoreCase);
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
418Dictionary<string, int> docMemberHash = new(docDeclaration.Members.Count, caseInsensitive
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
865reverseFixupTable = new(0, StringComparer.InvariantCultureIgnoreCase);