266 references to Dictionary
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
34public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
34public Dictionary<string, ProjectInfo> InfoTable { get; private set; } = new(capacity: 0);
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (1)
92_contents = new Dictionary<string, IList<string>>(capacity);
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
263_parent._namespaceMappings = new Dictionary<string, string>(namespaceMappingsArgs.Count); 384Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count);
dotnet-svcutil-lib (10)
CommandProcessorOptions.cs (1)
860Dictionary<string, Type> specifiedTypes = new Dictionary<string, Type>(typeArgs.Count);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (1)
70Dictionary<string, string> dict = new Dictionary<string, string>(1);
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (3)
188_hashTable = new Dictionary<string, int>(_lastDecl); 221Dictionary<string, string> prefixes = new Dictionary<string, string>(_lastDecl + 1); 257Dictionary<string, string> dict = new Dictionary<string, string>(_lastDecl - i + 1);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionary.cs (1)
43_lookup = new Dictionary<string, XmlDictionaryString>(capacity);
FrameworkFork\System.ServiceModel\System\IdentityModel\IdentityModelDictionary.cs (1)
45Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (1)
242Dictionary<K, V> counterValue = new Dictionary<K, V>(sets.Count);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
2205policyAlternatives.OperationBindingAlternatives = new Dictionary<OperationDescription, IEnumerable<IEnumerable<XmlElement>>>(endpointContext.Endpoint.Contract.Operations.Count);
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceModelDictionary.cs (1)
45Dictionary<string, int> dictionary = new Dictionary<string, int>(_count);
illink (2)
InMemory.FunctionalTests (1)
EventSourceTests.cs (1)
492Payload = new Dictionary<string, string>(eventWrittenEventArgs.PayloadNames.Count);
Microsoft.AspNetCore.Authentication (1)
PropertiesSerializer.cs (1)
71var extra = new Dictionary<string, string?>(count);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
80var dictionary = new Dictionary<FormKey, StringValues>(collection.Count);
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
Microsoft.AspNetCore.Http.Microbenchmarks (3)
AdaptiveCapacityDictionaryBenchmark.cs (3)
303_ = new Dictionary<string, string>(capacity: 1); 315_ = new Dictionary<string, string>(capacity: 4); 327_ = new Dictionary<string, string>(capacity: 10);
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
434var errorDictionary = new Dictionary<string, string[]>(1);
Microsoft.AspNetCore.Mvc.Abstractions (1)
src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
BsonTempDataSerializer.cs (1)
31private static readonly Dictionary<JTokenType, Type> _tokenTypeLookup = new Dictionary<JTokenType, Type>(8)
Microsoft.AspNetCore.OpenApi (1)
src\Shared\ParameterBindingMethodCache.cs (1)
325var lookupTable = new Dictionary<ParameterLookupKey, PropertyInfo>(properties.Length);
Microsoft.AspNetCore.Owin (3)
WebSockets\OwinWebSocketAcceptAdapter.cs (1)
59options = new Dictionary<string, object>(1)
WebSockets\OwinWebSocketAcceptContext.cs (2)
18public OwinWebSocketAcceptContext() : this(new Dictionary<string, object>(1)) 47_options = new Dictionary<string, object>(1);
Microsoft.AspNetCore.Server.HttpSys (1)
UrlPrefixCollection.cs (1)
17private readonly IDictionary<int, UrlPrefix> _prefixes = new Dictionary<int, UrlPrefix>(1);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
752var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
752var info = new Dictionary<int, ReadOnlyMemory<byte>>(count);
Microsoft.Build (36)
BackEnd\BuildManager\BuildManager.cs (1)
2000var resultsPerNode = new Dictionary<ProjectGraphNode, BuildResult>(projectGraph.ProjectNodes.Count);
BackEnd\BuildManager\BuildParameters.cs (1)
345_buildProcessEnvironment ?? new Dictionary<string, string>(0));
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
427_outstandingResults = new Dictionary<int, BuildResult>(_outstandingRequests.Count);
BackEnd\Components\Caching\ConfigCache.cs (2)
377capacity => new Dictionary<int, BuildRequestConfiguration>(capacity)); 383capacity => new Dictionary<ConfigurationMetadata, int>(capacity));
BackEnd\Components\ProjectCache\ProjectCacheDescriptor.cs (1)
16PluginSettings = pluginSettings ?? new Dictionary<string, string>(0);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
508allModifies ??= new Dictionary<ProjectItemInstance, MetadataModifications>(modifies.Count);
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
140_timeRecords = new Dictionary<SchedulableRequestState, ScheduleTimeRecord>(5);
BackEnd\Components\Scheduler\Scheduler.cs (3)
542_availableNodes = new Dictionary<int, NodeInfo>(8); 1291Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 2307Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count);
BackEnd\Components\Scheduler\SchedulingData.cs (12)
24private readonly Dictionary<int, SchedulableRequest> _executingRequests = new Dictionary<int, SchedulableRequest>(32); 29private readonly Dictionary<int, SchedulableRequest> _blockedRequests = new Dictionary<int, SchedulableRequest>(32); 34private readonly Dictionary<int, SchedulableRequest> _yieldingRequests = new Dictionary<int, SchedulableRequest>(32); 39private readonly Dictionary<int, SchedulableRequest> _readyRequests = new Dictionary<int, SchedulableRequest>(32); 50private readonly Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>> _unscheduledRequestNodesByRequest = new Dictionary<SchedulableRequest, LinkedListNode<SchedulableRequest>>(32); 59private readonly Dictionary<int, HashSet<SchedulableRequest>> _scheduledRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32); 64private readonly Dictionary<int, SchedulableRequest> _executingRequestByNode = new Dictionary<int, SchedulableRequest>(32); 69private readonly Dictionary<int, HashSet<SchedulableRequest>> _readyRequestsByNode = new Dictionary<int, HashSet<SchedulableRequest>>(32); 74private readonly Dictionary<int, HashSet<int>> _configurationsByNode = new Dictionary<int, HashSet<int>>(32); 82private readonly Dictionary<int, int> _configurationToNode = new Dictionary<int, int>(32); 87private readonly Dictionary<int, HashSet<SchedulableRequest>> _configurationToRequests = new Dictionary<int, HashSet<SchedulableRequest>>(32); 105private readonly Dictionary<SchedulableRequest, List<SchedulableRequest>> _buildHierarchy = new Dictionary<SchedulableRequest, List<SchedulableRequest>>(32);
Collections\ItemDictionary.cs (1)
68_nodes = new Dictionary<T, LinkedListNode<T>>(initialItemsCapacity);
Definition\Project.cs (1)
2590var removeElementCache = new Dictionary<string, CumulativeRemoveElementData>(projectItemElements.Count);
Evaluation\Preprocessor.cs (1)
64_importTable = new Dictionary<XmlElement, IList<ProjectRootElement>>(imports.Count);
Graph\GraphBuilder.cs (1)
136Dictionary<ProjectGraphNode, HashSet<ProjectGraphNode>> transitiveReferenceCache = new(allParsedProjects.Count);
Graph\ParallelWorkSet.cs (1)
49var completedWork = new Dictionary<TKey, TResult>(_inProgressOrCompletedWork.Count);
Instance\HostServices.cs (1)
419_hostObjects = new Dictionary<TargetTaskKey, MonikerNameOrITaskHost>(1);
Instance\ProjectInstance.cs (4)
2463translator.TranslateDictionary(ref _beforeTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count)); 2464translator.TranslateDictionary(ref _afterTargets, TranslatorForTargetSpecificDictionaryKey, TranslatorForTargetSpecificDictionaryValue, count => new Dictionary<string, List<TargetSpecification>>(count)); 3017clone = new Dictionary<string, TValue>(0); 3312var projectItemToInstanceMap = keepEvaluationCache ? new Dictionary<ProjectItem, ProjectItemInstance>(items.Count) : null;
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
718var d = new Dictionary<EvaluationLocation, ProfiledLocation>(count); 1507var result = new Dictionary<string, string>(count);
TypeLoader.cs (1)
195Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length);
Microsoft.Build.Engine.UnitTests (6)
BackEnd\BuildManager_Tests.cs (1)
3651IDictionary<string, string> metadata = new Dictionary<string, string>(1);
Collections\OMcollections_tests.cs (2)
198var dictionary = new ObjectModel.ReadOnlyDictionary<string, string>(new Dictionary<string, string>(0)); 340clone = new Dictionary<string, TValue>(0);
Graph\GraphTestingUtilities.cs (1)
46additionalGlobalProperties ??= new Dictionary<string, string>(0);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
437var results = new Dictionary<string, (BuildResult Result, MockLogger Logger)>(topoSortedNodes.Count);
Instance\ProjectTaskInstance_Internal_Tests.cs (1)
72var parametersCopy = new Dictionary<string, (string, ElementLocation)>(parameters.Count);
Microsoft.Build.Framework (3)
BuildCheck\BuildCheckEventArgs.cs (1)
86var infrastructureTracingData = new Dictionary<string, TimeSpan>(count);
BuildSubmissionStartedEventArgs.cs (1)
85Dictionary<string, string?> globalProperties = new Dictionary<string, string?>(numberOfProperties);
TaskParameterEventArgs.cs (1)
126internal static Func<int, IDictionary<string, string>> DictionaryFactory = capacity => new Dictionary<string, string>(capacity);
Microsoft.Build.Tasks.Core (2)
ResGenDependencies.cs (2)
111count => new Dictionary<string, ResXFile>(count)); 120count => new Dictionary<string, PortableLibraryFile>(count));
Microsoft.CodeAnalysis (13)
CodeGen\SwitchStringJumpTableEmitter.cs (2)
133var hashBucketLabelsMap = new Dictionary<uint, object>(count); 188var stringHashMap = new Dictionary<uint, HashBucket>(caseLabels.Length);
CommandLine\CommonCompiler.cs (1)
432var embeddedTreeMap = new Dictionary<string, SyntaxTree>(Arguments.EmbeddedFiles.Length);
DiagnosticAnalyzer\AnalysisResultBuilder.cs (2)
48_analyzerActionCounts = new Dictionary<DiagnosticAnalyzer, AnalyzerActionCounts>(analyzers.Length); 54var map = new Dictionary<DiagnosticAnalyzer, TimeSpan>(analyzers.Length);
InternalUtilities\ConcurrentLruCache.cs (1)
40_cache = new Dictionary<K, CacheValue>(capacity);
PEWriter\MetadataWriter.cs (1)
441private readonly Dictionary<string, int> _fileRefIndex = new Dictionary<string, int>(32); // more than enough in most cases, value is a RowId
PEWriter\MetadataWriter.DynamicAnalysis.cs (2)
54_guids = new Dictionary<Guid, GuidHandle>(documentCountEstimate); 58_documentIndex = new Dictionary<DebugSourceDocument, int>(documentCountEstimate);
ReferenceManager\CommonReferenceManager.State.cs (2)
472referencedAssembliesMap = new Dictionary<MetadataReference, int>(referenceMap.Length); 473referencedModulesMap = new Dictionary<MetadataReference, int>(referencedModuleCount);
SpecialTypes.cs (1)
87s_nameToTypeIdMap = new Dictionary<string, ExtendedSpecialType>((int)InternalSpecialType.NextAvailable - 1);
WellKnownTypes.cs (1)
700private static readonly Dictionary<string, WellKnownType> s_nameToTypeIdMap = new Dictionary<string, WellKnownType>((int)Count);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
79favoritesMemberNames = new Dictionary<string, object>(favoritesInfo.Favorites.Count);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\TypeHelpers.cs (1)
79favoritesMemberNames = new Dictionary<string, object>(favoritesInfo.Favorites.Count);
Microsoft.CodeAnalysis.Features (7)
Completion\CompletionService_GetCompletions.cs (1)
307var result = new Dictionary<CompletionProvider, int>(completionProviders.Length);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
746var map = new Dictionary<SyntaxNode, EditKind>(editScript.Edits.Length);
EditAndContinue\Utilities\BidirectionalMap.cs (4)
28var forward = new Dictionary<T, T>(Forward.Count + 1); 29var reverse = new Dictionary<T, T>(Reverse.Count + 1); 50var forward = new Dictionary<T, T>(count); 51var reverse = new Dictionary<T, T>(count);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
22var result = new Dictionary<Glyph, QuickInfoGlyphElement>(capacity: glyphs.Length);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (1)
72var itemRawJsonCache = new Dictionary<object, string>(capacity: 1);
Microsoft.CodeAnalysis.Workspaces (3)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
464var order = new Dictionary<ProjectId, int>(capacity: solution.ProjectIds.Count);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PooledBuilderExtensions.cs (2)
18var dictionary = new Dictionary<K, V>(builders.Count); 32var dictionary = new Dictionary<K, ImmutableArray<V>>(builders.Count);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
40_cache = new Dictionary<K, CacheValue>(capacity);
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\COperators.cs (1)
100Dictionary<Name, string> dict = new Dictionary<Name, string>(28)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
183var typesByName = new Dictionary<string, PredefinedType>((int)PredefinedType.PT_COUNT);
Microsoft.Data.Analysis (1)
DataFrame.Join.cs (1)
213var newRetainedIndicesReverseMapping = new Dictionary<long, long>(shrinkedRetainedIndices.Length);
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
96var map = new Dictionary<string, string>(partCount);
Microsoft.Extensions.Compliance.Redaction (1)
RedactorProvider.cs (1)
46var dict = new Dictionary<DataClassificationSet, Redactor>(map.Count);
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
87_features = new Dictionary<Type, object>(_initialCapacity);
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
575var methods = new Dictionary<string, int>(lc.Methods.Count);
Microsoft.Extensions.Telemetry (1)
Latency\Internal\Registry.cs (1)
33var keyOrderBuilder = new Dictionary<string, int>(c);
Microsoft.Interop.SourceGeneration (1)
Marshalling\MarshallerHelpers.cs (1)
124Dictionary<U, int> elementIndexToEdgeMapNodeId = new(elements.Count);
Microsoft.Maui.Controls (2)
BindableObject.cs (1)
42 readonly Dictionary<BindableProperty, BindablePropertyContext> _properties = new Dictionary<BindableProperty, BindablePropertyContext>(4);
Shell\ShellRouteParameters.cs (1)
43 : base(query.Count)
Microsoft.ML.Core (2)
Data\RoleMappedSchema.cs (1)
313var copy = new Dictionary<string, IReadOnlyList<DataViewSchema.Column>>(map.Count);
Utilities\LruCache.cs (1)
35_cache = new Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>>(_size);
Microsoft.ML.Data (6)
DataLoadSave\Database\DatabaseLoader.cs (1)
481var nameToInfoIndex = new Dictionary<string, int>(Infos.Length);
DataLoadSave\Text\TextLoader.cs (2)
757var nameToInfoIndex = new Dictionary<string, int>(Infos.Length); 927var nameToInfoIndex = new Dictionary<string, int>(Infos.Length);
Transforms\ColumnBindingsBase.cs (1)
311_nameToInfoIndex = new Dictionary<string, int>(names.Length);
Transforms\NAFilter.cs (2)
102_srcIndexToInfoIndex = new Dictionary<int, int>(_infos.Length); 139_srcIndexToInfoIndex = new Dictionary<int, int>(_infos.Length);
Microsoft.ML.FastTree (2)
GamModelParameters.cs (2)
104_inputFeatureToShapeFunctionMap = new Dictionary<int, int>(_shapeToInputMap.Length); 148_inputFeatureToShapeFunctionMap = new Dictionary<int, int>(len);
Microsoft.ML.ResultProcessor (2)
ResultProcessor.cs (2)
169return new Dictionary<string, string>(0); 531predictorSettings = new Dictionary<string, string>(0);
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\LogisticRegression.cs (1)
289weightIndicesInvMap = new Dictionary<int, int>(numParams);
Microsoft.ML.Tokenizers (4)
Model\Cache.cs (1)
21_map = new Dictionary<TKey, TValue>(capacity);
Model\TiktokenTokenizer.cs (2)
183vocab = new Dictionary<StringSpanOrdinalKey, (int Id, string Token)>(suggestedCapacity); 184decoder = new Dictionary<int, ReadOnlyMemory<byte>>(suggestedCapacity);
Utils\StringSpanOrdinalKey.cs (1)
86_map = new Dictionary<StringSpanOrdinalKey, TValue>(capacity);
Microsoft.NET.StringTools.net35 (1)
WeakStringCache.Locking.cs (1)
18_stringsByHashCode = new Dictionary<int, StringWeakHandle>(_initialCapacity);
Microsoft.VisualStudio.LanguageServices (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
40_cache = new Dictionary<K, CacheValue>(capacity);
MSBuild (1)
TypeLoader.cs (1)
195Dictionary<string, string> assembliesDictionary = new(localAssemblies.Length + runtimeAssemblies.Length);
PresentationCore (14)
MS\Internal\Automation\EventMap.cs (1)
133_eventsTable = new Dictionary<int, EventInfo>(20);
MS\Internal\FontCache\FontResourceCache.cs (1)
147= new Dictionary<Assembly, Dictionary<string, List<string>>>(1);
MS\Internal\FontFace\CompositeFontInfo.cs (3)
35_familyNames = new LanguageSpecificStringDictionary(new Dictionary<XmlLanguage,string>(InitialCultureCount)); 56_familyMapRangesByLanguage = new Dictionary<XmlLanguage, ushort[]>(InitialCultureCount); 147Dictionary<XmlLanguage, ushort[]> table = new Dictionary<XmlLanguage, ushort[]>(_familyMapRangesByLanguage.Count);
MS\Internal\FontFace\FontDifferentiator.cs (1)
32Dictionary<XmlLanguage, string> faceNames = new Dictionary<XmlLanguage, string>(1);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1678new System.Collections.Generic.Dictionary<Stroke, StrokeLookupEntry>(_coreStrokes.Count);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
156private static readonly Dictionary<string, ContentType> _fileExtensionToMimeType = new Dictionary<string, ContentType>(4);
System\Windows\Input\ManipulationDevice.cs (1)
84_manipulationDevices = new Dictionary<UIElement, ManipulationDevice>(2);
System\Windows\Input\ManipulationLogic.cs (2)
708private Dictionary<int, Manipulator2D> _currentManipulators = new Dictionary<int, Manipulator2D>(2); 711private Dictionary<int, Manipulator2D> _removedManipulators = new Dictionary<int, Manipulator2D>(2);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
3688Dictionary<object, PenContexts> __penContextsMap = new Dictionary<object, PenContexts>(2); 3691Dictionary<int, StylusDevice> __stylusDeviceMap = new Dictionary<int, StylusDevice>(2);
System\Windows\Media\GlyphTypeface.cs (1)
387IDictionary<XmlLanguage, string> adjustedLanguageFaceNames = new Dictionary<XmlLanguage, string>(adjustedFaceNames.Count);
PresentationFramework (12)
MS\Internal\Globalization\BamlResourceDeserializer.cs (1)
400= new Dictionary<string, Stack<ILocalizabilityInheritable>>(8);
MS\Internal\Globalization\BamlTreeMap.cs (2)
352_classAttributeTable = new Dictionary<string, ElementLocalizability>(8); 353_propertyAttributeTable = new Dictionary<string, LocalizabilityAttribute>(8);
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
841_contentPropertyTable = new Dictionary<string, string>(8);
MS\Internal\Interop\InternalDispatchObject.cs (1)
61_dispId2MethodMap = new Dictionary<int, MethodInfo>(methods.Length);
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
48_predefinedNamespaces = new Dictionary<Uri, IList<Uri>>(6);
System\Windows\Controls\DataGrid.cs (1)
8279Dictionary<string, StringBuilder> dataGridStringBuilders = new Dictionary<string, StringBuilder>(formats.Count);
System\Windows\Controls\DatePicker.cs (1)
877_isHandlerSuspended = new Dictionary<DependencyProperty, bool>(2);
System\Windows\Controls\Primitives\Selector.cs (1)
2861_set = new Dictionary<ItemInfo, ItemInfo>(_list.Count);
System\Windows\Markup\Baml2006\WpfSharedBamlSchemaContext.cs (1)
57_masterTypeTable = new Dictionary<Type, XamlType>(256);
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
56_piNamespaces = new Dictionary<string, string>(typeMapper.PITable.Count);
System\Windows\SystemResources.cs (1)
471_dictionaries = new Dictionary<Assembly, ResourceDictionaries>(1);
PresentationUI (1)
MS\Internal\Documents\RightsManagementProvider.cs (1)
547new Dictionary<RightsManagementUser, RightsManagementLicense>(
ReachFramework (13)
MS\Internal\Printing\MostFrequentlyUsedCache.cs (1)
16this._dictionary = new Dictionary<K, Entry>(maxEntries);
Packaging\XpsManager.cs (4)
54_contentTypes = new Dictionary<string, int>(11); 55_cachedParts = new Dictionary<Uri, PackagePart>(11); 984_contentTypes = new Dictionary<string, int>(11); 985_cachedParts = new Dictionary<Uri, PackagePart>(11);
PrintConfig\PrintSchemaShim.cs (8)
520private static readonly IDictionary<DevModeCollate, Collation> dmCollateToQResolution = new Dictionary<DevModeCollate, Collation>(2) { 545private static readonly IDictionary<DevModeColor, OutputColor> dmColorToOutputColor = new Dictionary<DevModeColor, OutputColor>(2) { 578private static readonly IDictionary<DevModeDuplex, Duplexing> dmDuplexToDuplexing = new Dictionary<DevModeDuplex, Duplexing>(3) { 675private static readonly IDictionary<short, InputBin> dmPaperSourceToInputBin = new Dictionary<short, InputBin>(4) { 782private static readonly IDictionary<short, PageMediaSizeName> dmPaperSizeToPageMediaSize = new Dictionary<short, PageMediaSizeName>(101) { 911private static readonly IDictionary<uint, PageMediaType> dmMediaTypeToMediaType = new Dictionary<uint, PageMediaType>(3) { 961private static readonly IDictionary<DevModeOrientation, PageOrientation> dmOrientationToOrientation = new Dictionary<DevModeOrientation, PageOrientation>(2) { 1029private static readonly IDictionary<short, PageQualitativeResolution> dmResToQResolution = new Dictionary<short, PageQualitativeResolution>(4) {
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\MetadataServices.cs (1)
12public static readonly IDictionary<string, object?> EmptyMetadata = new ReadOnlyDictionary<string, object?>(new Dictionary<string, object?>(0));
System.ComponentModel.TypeConverter (4)
System\ComponentModel\CultureInfoConverter.cs (1)
273var result = new Dictionary<string, string>(Count)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
149return LazyInitializer.EnsureInitialized(ref s_intrinsicTypeConverters, () => new Dictionary<object, IntrinsicTypeConverterData>(32)
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (2)
444Dictionary<string, EventDescriptor> eventList = new Dictionary<string, EventDescriptor>(16); 479Dictionary<string, PropertyDescriptor> propertyList = new Dictionary<string, PropertyDescriptor>(10);
System.Configuration.ConfigurationManager (1)
System\Configuration\BaseConfigurationRecord.cs (1)
417indirectLocationInputs ??= new Dictionary<string, List<SectionInput>>(1);
System.Console (1)
System\TermInfo.Database.cs (1)
254var extendedStrings = new Dictionary<string, string>(extendedStringCount);
System.Data.Common (1)
System\Data\Common\AdapterUtil.Common.cs (1)
782Dictionary<string, int> hash = new Dictionary<string, int>(columnNameArray.Length);
System.Data.Odbc (3)
src\libraries\Common\src\System\Data\Common\BasicFieldNameLookup.cs (1)
130Dictionary<string, int> hash = new Dictionary<string, int>(length);
src\libraries\Common\src\System\Data\ProviderBase\DbConnectionFactory.cs (2)
221Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(1 + connectionPoolGroups.Count); 303Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup> newConnectionPoolGroups = new Dictionary<DbConnectionPoolKey, DbConnectionPoolGroup>(connectionPoolGroups.Count);
System.Drawing.Primitives (1)
System\Drawing\ColorTranslator.cs (1)
402s_htmlSysColorTable = new Dictionary<string, Color>(27)
System.IO.Packaging (4)
System\IO\Packaging\OrderedDictionary.cs (1)
22_dictionary = new Dictionary<TKey, LinkedListNode<TValue>>(initialCapacity);
System\IO\Packaging\Package.cs (1)
417Dictionary<string, KeyValuePair<PackUriHelper.ValidatedPartUri, PackagePart>> partDictionary = new(parts.Length);
System\IO\Packaging\PartBasedPackageProperties.cs (1)
838private readonly Dictionary<PackageXmlEnum, object> _propertyDictionary = new Dictionary<PackageXmlEnum, object>(NumCoreProperties);
System\IO\Packaging\ZipPackage.cs (1)
950_overrideDictionary ??= new Dictionary<PackUriHelper.ValidatedPartUri, ContentType>(OverrideDictionaryInitialSize);
System.Linq.Expressions (2)
System\Linq\Expressions\Compiler\CompilerScope.cs (1)
102Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(variables.Count);
System\Linq\Expressions\Compiler\HoistedLocals.cs (1)
69Dictionary<Expression, int> indexes = new Dictionary<Expression, int>(vars.Count);
System.Net.Http (3)
src\libraries\Common\src\System\Collections\Generic\BidirectionalDictionary.cs (2)
18_forward = new Dictionary<T1, T2>(capacity); 19_backward = new Dictionary<T2, T1>(capacity);
System\Net\Http\Headers\HttpHeaders.cs (1)
1493var dictionary = new Dictionary<HeaderDescriptor, object>(ArrayThreshold);
System.Net.Mail (2)
src\libraries\Common\src\System\Collections\Generic\BidirectionalDictionary.cs (2)
18_forward = new Dictionary<T1, T2>(capacity); 19_backward = new Dictionary<T2, T1>(capacity);
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
92Dictionary<int, LinuxNetworkInterface> interfacesByIndex = new Dictionary<int, LinuxNetworkInterface>(interfaceCount);
System.Net.Ping (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
System.Net.Primitives (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
System.Net.Sockets (2)
src\libraries\Common\src\System\Net\Sockets\SocketErrorPal.Unix.cs (2)
34private static readonly Dictionary<Interop.Error, SocketError> s_nativeErrorToSocketError = new Dictionary<Interop.Error, SocketError>(NativeErrorToSocketErrorCount) 80private static readonly Dictionary<SocketError, Interop.Error> s_socketErrorToNativeError = new Dictionary<SocketError, Interop.Error>(SocketErrorToNativeErrorCount)
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
158s_dataStore = new Dictionary<string, object?>(count);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1330args = new Dictionary<string, string?>(4);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (3)
5434channelTab ??= new Dictionary<int, ChannelInfo>(4); 5601channelTab ??= new Dictionary<int, ChannelInfo>(4); 5927channelTab ??= new Dictionary<int, ChannelInfo>(4);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\TeddyBucketizer.cs (1)
86Dictionary<int, int> prefixToBucket = new(bucketCount);
src\libraries\System.Private.CoreLib\src\System\Threading\AsyncLocal.cs (1)
482public ManyElementAsyncLocalValueMap(int capacity) : base(capacity) { }
src\System\Attribute.CoreCLR.cs (2)
35Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11); 141Dictionary<Type, AttributeUsageAttribute> types = new Dictionary<Type, AttributeUsageAttribute>(11);
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\ClassDataContract.cs (1)
1421Dictionary<string, DataMember> membersDictionary = new Dictionary<string, DataMember>(Members.Count);
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
158Dictionary<string, object?> memberTable = new Dictionary<string, object?>(memberCount);
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
219Dictionary<object, object?> genericDictionaryObj = new Dictionary<object, object?>(dictionaryObj.Count);
System\Xml\XmlDictionary.cs (1)
34_lookup = new Dictionary<string, XmlDictionaryString>(capacity);
System.Private.Xml (13)
System\Xml\Schema\ContentValidator.cs (1)
2120_elements = new Dictionary<XmlQualifiedName, int>(size);
System\Xml\Schema\XmlAtomicValue.cs (1)
71Dictionary<string, string> dict = new Dictionary<string, string>(1);
System\Xml\Serialization\XmlSerializerNamespaces.cs (2)
43_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.Length); 54_namespaces = new Dictionary<string, XmlQualifiedName>(namespaces.Count);
System\Xml\XmlNamespacemanager.cs (3)
178_hashTable = new Dictionary<string, int>(_lastDecl); 210Dictionary<string, string> prefixes = new Dictionary<string, string>(_lastDecl + 1); 248Dictionary<string, string> dict = new Dictionary<string, string>(_lastDecl - i + 1);
System\Xml\XPath\Internal\XPathParser.cs (2)
814Dictionary<string, ParamInfo> table = new Dictionary<string, ParamInfo>(36); 848Dictionary<string, Axis.AxisType> table = new Dictionary<string, Axis.AxisType>(13);
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
440public static readonly Dictionary<Type, XmlILStorageMethods> StorageMethods = new Dictionary<Type, XmlILStorageMethods>(13)
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (1)
1401_conflictPrefixes ??= new Dictionary<string, string>(16);
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
790Dictionary<string, FunctionInfo> table = new Dictionary<string, FunctionInfo>(36);
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (1)
303Dictionary<string, FunctionInfo> table = new Dictionary<string, FunctionInfo>(16);
System.Reflection.Emit (1)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
31private Dictionary<Label, LabelInfo> _labelTable = new(2);
System.Reflection.Metadata (3)
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (1)
101_dictionary = new(capacity);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (2)
35private readonly Dictionary<string, UserStringHandle> _userStrings = new Dictionary<string, UserStringHandle>(256); 40private readonly Dictionary<string, StringHandle> _strings = new Dictionary<string, StringHandle>(256);
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (1)
44var converters = new Dictionary<Type, JsonConverter>(NumberOfSimpleConverters);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1164Dictionary<ParameterLookupKey, JsonParameterInfoValues> parameterIndex = new(parameterInfoValues.Length);
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexCharClass.cs (1)
116private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
116private static readonly Dictionary<string, string> s_definedCategories = new Dictionary<string, string>(DefinedCategoriesCapacity)
System.Threading.Tasks.Dataflow (1)
Internal\QueuedMap.cs (1)
170_mapKeyToIndex = new Dictionary<TKey, int>(capacity);
System.Windows.Forms (9)
System\Windows\Forms\Control.Ime.cs (1)
1063get => s_imeModeConversionBits ??= new(7)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
421_converters = new(8);
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (3)
40_professionalRGB ??= new Dictionary<KnownColors, Color>((int)KnownColors.lastKnownColor); 49_professionalRGB ??= new Dictionary<KnownColors, Color>((int)KnownColors.lastKnownColor); 58_professionalRGB ??= new Dictionary<KnownColors, Color>((int)KnownColors.lastKnownColor);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1651_shortcuts ??= new Dictionary<Keys, ToolStripMenuItem>(1);
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
473Dictionary<Control, string> controlError = new(bindingsCount);
System\Windows\Forms\Input\KeysConverter.cs (1)
38Dictionary<string, Keys> localizedNames = new(34);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
843t_themeHandles ??= new(NumberOfPossibleClasses);
System.Windows.Forms.Design (6)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
38_fallbackFonts = new(2);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
136Dictionary<string, CodeDomComponentSerializationState> state = new(_objects.Count); 172Dictionary<Assembly, AssemblyName> assemblies = new(_objects.Count);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
86_statementTable = new Dictionary<string, OrderedCodeStatementCollection>(count); 87Dictionary<string, string> names = new(count);
System\Windows\Forms\Design\SelectionUIService.cs (1)
397Dictionary<object, SelectionUIItem> newSelection = new(selection.Count);
System.Windows.Forms.Tests (2)
System\Windows\Forms\ApplicationTests.cs (2)
391Dictionary<object, int> formClosingProcessed = new(mainMDIFormCount); 392Dictionary<object, int> formClosedProcessed = new(mainMDIFormCount);
System.Xaml (3)
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
437_subsumeCount = new Dictionary<string,int>(nsInfo.OldToNewNs.Count);
System\Xaml\Schema\TypeReflector.cs (2)
471Dictionary<string, PropertyInfo> result = new Dictionary<string, PropertyInfo>(propList.Length); 532Dictionary<string, EventInfo> result = new Dictionary<string, EventInfo>(eventList.Length);