146 references to Dictionary
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
174_mappings = new Dictionary<Uri, PreloadedData>(16, uriComparer);
Microsoft.AspNetCore.Components (1)
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\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
82_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer); 519_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
726var requestHeaders = new Dictionary<string, StringValues>(existingRequestFeature.Headers.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Microbenchmarks (3)
AdaptiveCapacityDictionaryBenchmark.cs (3)
47_dict = new Dictionary<string, string>(1, StringComparer.OrdinalIgnoreCase); 48_dictTen = new Dictionary<string, string>(10, StringComparer.OrdinalIgnoreCase); 49_filledDictTen = new Dictionary<string, string>(10, StringComparer.OrdinalIgnoreCase);
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.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\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.IIS (1)
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.Shared.Tests (3)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
82_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer); 519_dictionaryStorage = new Dictionary<TKey, TValue>(capacity, _comparer);
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
51: this(new Dictionary<string, StringValues>(4, StringComparer.OrdinalIgnoreCase))
Microsoft.AspNetCore.WebUtilities (1)
KeyValueAccumulator.cs (1)
105return _accumulator ?? new Dictionary<string, StringValues>(0, StringComparer.OrdinalIgnoreCase);
Microsoft.Build (24)
BackEnd\BuildManager\RequestedProjectState.cs (1)
135return new Dictionary<string, List<string>>(capacity, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
329Dictionary<string, string> globalProperties = new(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase); 625var globalProperties = new Dictionary<string, string>(configuration.GlobalProperties.Count, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
392var itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\SdkResolution\SdkResult.cs (2)
88translator.TranslateDictionary(ref _propertiesToAdd, count => new Dictionary<string, string>(count, StringComparer.OrdinalIgnoreCase)); 92dictionaryCreator: count => new Dictionary<string, SdkResultItem>(count, StringComparer.OrdinalIgnoreCase));
Collections\ItemDictionary.cs (1)
67_itemLists = new Dictionary<string, LinkedList<T>>(initialItemTypesCapacity, MSBuildNameIgnoreCaseComparer.Default);
Collections\LookasideStringInterner.cs (1)
49_stringToIdsMap = new Dictionary<string, int>(defaultCollectionSize, comparer);
Collections\PropertyDictionary.cs (1)
521var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default);
Collections\WeakValueDictionary.cs (1)
47_dictionary = new Dictionary<K, WeakReference<V>>(_capacity, keyComparer);
CommunicationsUtilities.cs (1)
294Dictionary<string, string> table = new Dictionary<string, string>(200, StringComparer.OrdinalIgnoreCase); // Razzle has 150 environment variables
Construction\ProjectTaskElement.cs (1)
149var parametersClone = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Construction\Solution\SolutionProjectGenerator.cs (1)
2059var properties = new Dictionary<string, string>(_metaprojectGlobalProperties.Length, StringComparer.OrdinalIgnoreCase);
Definition\Project.cs (1)
2152var dictionary = new Dictionary<string, string>(_data.GlobalPropertiesDictionary.Count, MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectCollection.cs (1)
569dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default);
Evaluation\Evaluator.cs (1)
1941escapedMetadata = new Dictionary<string, string>(item.Value.Metadata.Count, StringComparer.OrdinalIgnoreCase);
Evaluation\EvaluatorMetadataTable.cs (1)
99_metadata = new Dictionary<string, EvaluatorMetadata>(_capacity, MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectInstance.cs (2)
1079Dictionary<string, string> dictionary = new Dictionary<string, string>(_globalProperties.Count, MSBuildNameIgnoreCaseComparer.Default); 2530Dictionary<string, string> globalProperties = new Dictionary<string, string>(globalPropertiesInstances.Count, StringComparer.OrdinalIgnoreCase);
Instance\ProjectItemInstance.cs (1)
1492Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(metadata.Count, MSBuildNameIgnoreCaseComparer.Default);
Instance\ProjectTaskInstance.cs (1)
238Dictionary<string, string> filteredParameters = new Dictionary<string, string>(_parameters.Count, StringComparer.OrdinalIgnoreCase);
Instance\TaskRegistry.cs (3)
451: new Dictionary<string, string>(initialCount.Value, StringComparer.OrdinalIgnoreCase); 754? new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(capacity.Value, RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact) 812return new Dictionary<string, string>(initialCount.Value, StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Engine (2)
Engine\BatchingEngine.cs (1)
386Dictionary<string, string> itemMetadataValues = new Dictionary<string, string>(consumedMetadataReferences.Count, StringComparer.OrdinalIgnoreCase);
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (1)
170forwardingTable = new Dictionary<string, int>(15, StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Framework (7)
BinaryTranslator.cs (4)
596count => new Dictionary<string, string>(count, comparer)); 620dictionary = new Dictionary<string, string>(count, comparer); 708dictionary = new Dictionary<string, T>(count, comparer); 787dictionary = new(count, comparer);
BuildException\BuildExceptionBase.cs (1)
136customKeyedSerializedData = new Dictionary<string, string?>(count, StringComparer.CurrentCulture);
XamlTypes\ContentType.cs (1)
159var metadata = new Dictionary<string, string>(this.Metadata.Count, StringComparer.OrdinalIgnoreCase);
XamlTypes\Rule.cs (1)
497var map = new Dictionary<string, BaseProperty>(this.Properties.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.Core (8)
AssemblyDependency\ReferenceTable.cs (2)
1859var fullNameToReference = new Dictionary<string, AssemblyNameReference>(References.Count, StringComparer.OrdinalIgnoreCase); 2176var baseNameToReferences = new Dictionary<string, List<AssemblyNameReference>>(References.Count, StringComparer.OrdinalIgnoreCase);
Copy.cs (2)
464var filesActuallyCopied = new Dictionary<string, string>( 543var 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)
296var sdkItems = new Dictionary<string, ITaskItem>(InstalledSDKs.Length, StringComparer.OrdinalIgnoreCase);
system.design\stronglytypedresourcebuilder.cs (1)
720reverseFixupTable = new Dictionary<string, string>(0, StringComparer.InvariantCultureIgnoreCase);
Microsoft.CodeAnalysis (11)
Collections\CachingDictionary.cs (1)
140return new Dictionary<TKey, ImmutableArray<TElement>>(capacity, _comparer);
Collections\ImmutableArrayExtensions.cs (1)
1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
InternalUtilities\MultiDictionary.cs (1)
248_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
MetadataReader\MetadataHelpers.cs (1)
885var names = new Dictionary<string, int>(nestedNamespaces.Count, nameComparer);
PEWriter\FullMetadataWriter.cs (2)
103_fieldDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess, ReferenceEqualityComparer.Instance); 104_methodDefIndex = new Dictionary<ITypeDefinition, int>(numTypeDefsGuess, ReferenceEqualityComparer.Instance);
PEWriter\MetadataWriter.cs (1)
114_signatureIndex = new Dictionary<ISignature, KeyValuePair<BlobHandle, ImmutableArray<byte>>>(module.HintNumberOfMethodDefinitions, ReferenceEqualityComparer.Instance); //ignores field signatures
PEWriter\MetadataWriter.DynamicAnalysis.cs (1)
50_blobs = new Dictionary<ImmutableArray<byte>, BlobHandle>(1 + methodCountEstimate + 4 * documentCountEstimate, ByteSequenceComparer.Instance);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.CodeStyle (5)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
248_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Constraints.cs (1)
43var names = new Dictionary<string, int>(n, StringOrdinalComparer.Instance);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1607return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(1, ReadOnlyMemoryOfCharComparer.Instance)
Microsoft.CodeAnalysis.InteractiveHost (3)
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.PooledObjects.Package (3)
ArrayBuilder.cs (3)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Workspaces (5)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
248_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (1)
1149var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
248_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
521var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 534var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 548var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationProvider.cs (1)
140var switchMappingsCopy = new Dictionary<string, string>(switchMappings.Count, StringComparer.OrdinalIgnoreCase);
Microsoft.ML.Tokenizers (1)
Model\TiktokenTokenizer.cs (1)
181encoder = new Dictionary<ReadOnlyMemory<byte>, int>(suggestedCapacity, ReadOnlyMemoryByteComparer.Instance);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
340m_KeyedNodesHash = New Generic.Dictionary(Of String, Node)(StartingHashCapacity, StringComparer.Create(CultureInfo, ignoreCase:=True))
MSBuild (1)
CommunicationsUtilities.cs (1)
294Dictionary<string, string> table = new Dictionary<string, string>(200, StringComparer.OrdinalIgnoreCase); // Razzle has 150 environment variables
MSBuildTaskHost (6)
BinaryTranslator.cs (4)
596count => new Dictionary<string, string>(count, comparer)); 620dictionary = new Dictionary<string, string>(count, comparer); 708dictionary = new Dictionary<string, T>(count, comparer); 787dictionary = new(count, comparer);
BuildExceptionBase.cs (1)
136customKeyedSerializedData = new Dictionary<string, string?>(count, StringComparer.CurrentCulture);
CommunicationsUtilities.cs (1)
294Dictionary<string, string> table = new Dictionary<string, string>(200, StringComparer.OrdinalIgnoreCase); // Razzle has 150 environment variables
PresentationFramework (1)
System\Windows\Controls\Primitives\Selector.cs (1)
2682_set = new Dictionary<ItemInfo, ItemInfo>(capacity, equalityComparer);
ReachFramework (1)
Serialization\XpsFontSubsetter.cs (1)
111_fontEmbeddingManagerCache = new Dictionary<Uri, FEMCacheItem>(3, MS.Internal.UriComparer.Default);
System.Collections.Immutable (2)
System\Linq\ImmutableArrayExtensions.cs (2)
578var result = new Dictionary<TKey, T>(immutableArray.Length, comparer); 603var result = new Dictionary<TKey, TElement>(immutableArray.Length, comparer);
System.Data.Common (2)
System\Data\Common\ObjectStorage.cs (1)
604new 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.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
99_environmentVariables = new DictionaryWrapper(new Dictionary<string, string?>(
System.IO.Packaging (3)
System\IO\Packaging\ZipPackage.cs (3)
776_defaultDictionary = new Dictionary<string, ContentType>(DefaultDictionaryInitialSize, s_extensionEqualityComparer); 1370_extensionDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, s_extensionEqualityComparer); 1371_ignoredItemDictionary = new Dictionary<string, List<string>>(_dictionaryInitialSize, StringComparer.Ordinal);
System.Linq (4)
System\Linq\ToCollection.cs (4)
174Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(capacity, comparer); 185Dictionary<TKey, TSource> d = new Dictionary<TKey, TSource>(source.Length, comparer); 232Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(capacity, comparer); 243Dictionary<TKey, TElement> d = new Dictionary<TKey, TElement>(source.Length, comparer);
System.Net.Mail (1)
System\Net\Mail\MailHeaderInfo.cs (1)
74var headers = new Dictionary<string, int>((int)MailHeaderID.ZMaxEnumValue + 1, StringComparer.OrdinalIgnoreCase);
System.Private.CoreLib (7)
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\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
152new Dictionary<string, string>(255, StringComparer.OrdinalIgnoreCase)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
217caseTable = new Dictionary<string, object?>(copyOfTable.Count, StringComparer.OrdinalIgnoreCase);
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)
49Dictionary<string, string> ht = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase); 113Dictionary<string, object> ht = new Dictionary<string, object>(capacity: capacity, comparer: StringComparer.OrdinalIgnoreCase);
System\Security\Cryptography\OidLookup.cs (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 (1)
System\Text\Json\Document\JsonElement.cs (1)
1373Dictionary<string, ValueQueue<JsonElement>> properties2 = new(capacity: remainingProps, StringComparer.Ordinal);
System.Windows.Forms.Design (3)
System\ComponentModel\Design\MenuCommandService.cs (1)
259Dictionary<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)
862reverseFixupTable = new(0, StringComparer.InvariantCultureIgnoreCase);