196 references to Dictionary
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
174_mappings = new Dictionary<Uri, PreloadedData>(16, uriComparer);
GenerateDocumentationAndConfigFiles (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Metrics (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Metrics.Legacy (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
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.Framework (9)
BinaryTranslator.cs (4)
615count => new Dictionary<string, string>(count, comparer)); 639dictionary = new Dictionary<string, string>(count, comparer); 747dictionary = new Dictionary<string, T>(count, comparer); 813dictionary = new(count, comparer);
BuildException\BuildExceptionBase.cs (1)
136customKeyedSerializedData = 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);
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.CodeAnalysis (10)
Collections\CachingDictionary.cs (1)
140return new Dictionary<TKey, ImmutableArray<TElement>>(capacity, _comparer);
InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
MetadataReader\MetadataHelpers.cs (1)
899var 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\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Analyzers (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.CodeStyle (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Collections.Package (4)
Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var 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)
97var map = new Dictionary<object, SourceLabelSymbol>(labels.Length, new SwitchConstantValueHelper.SwitchLabelsComparer());
Symbols\Source\SourceMemberContainerSymbol.cs (2)
1658return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(1, ReadOnlyMemoryOfCharComparer.Instance) 1679var 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.Debugging.Package (3)
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Extensions.Package (4)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (1)
31_identityMap = new Dictionary<string, IClassificationType>(fields.Length, ReferenceEqualityComparer.Instance);
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.PooledObjects.Package (3)
ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.PublicApiAnalyzers (6)
DeclarePublicApiAnalyzer.Impl.cs (1)
104var publicApiMap = new Dictionary<string, ApiLine>(shippedData.ApiList.Length + unshippedData.ApiList.Length, StringComparer.Ordinal);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Workspaces (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var 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.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
340m_KeyedNodesHash = New Generic.Dictionary(Of String, Node)(StartingHashCapacity, StringComparer.Create(CultureInfo, ignoreCase:=True))
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\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
System.Collections.Immutable (3)
System\Collections\Frozen\FrozenDictionary.cs (1)
54Dictionary<TKey, TValue> d = new(source.Length, comparer);
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)
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.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)
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 (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.Windows.Core (1)
System\Private\Windows\Nrbf\CoreNrbfSerializer.cs (1)
33s_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 (6)
System\Security\Cryptography\CryptoConfig.cs (2)
54Dictionary<string, string> ht = new Dictionary<string, string>(capacity, StringComparer.OrdinalIgnoreCase); 118Dictionary<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\Security\Cryptography\X509Certificates\X500NameEncoder.cs (1)
594Dictionary<string, EncodingRules> lookup = new(LookupDictionarySize, StringComparer.Ordinal)
System.Text.Json (2)
System\Text\Json\Document\JsonElement.cs (1)
1367Dictionary<string, ValueQueue<JsonElement>> properties2 = new(capacity: remainingProps, StringComparer.Ordinal);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1075Dictionary<string, JsonPropertyInfo> propertyIndex = new(properties.Count, comparer);
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)
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)
865reverseFixupTable = new(0, StringComparer.InvariantCultureIgnoreCase);
Test.Utilities (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);
Text.Analyzers (5)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
249_dictionary = new Dictionary<K, ValueSet>(capacity, comparer);
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
872var dictionary = new Dictionary<TKey, ImmutableArray<TNamedTypeSymbol>>(capacity, comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (3)
565var dictionary1 = new Dictionary<K, ImmutableArray<T>>(1, comparer); 578var accumulator = new Dictionary<K, ArrayBuilder<T>>(Count, comparer); 592var dictionary = new Dictionary<K, ImmutableArray<T>>(accumulator.Count, comparer);