765 references to ConcurrentDictionary
aspire (4)
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
29private readonly ConcurrentDictionary<string, ConcurrentDictionary<string, AppHostAuxiliaryBackchannel>> _connectionsByHash = new(); 432var connectionsDict = _connectionsByHash.GetOrAdd(hash, _ => new ConcurrentDictionary<string, AppHostAuxiliaryBackchannel>());
src\Shared\DateFormatStringsHelpers.cs (1)
20private static readonly ConcurrentDictionary<CultureDetailsKey, MillisecondFormatStrings> s_formatStrings = new();
Utils\EmojiWidth.cs (1)
17private static readonly ConcurrentDictionary<string, int> s_cellLengthCache = new();
Aspire.Cli.Tests (2)
TestServices\TestAuxiliaryBackchannelMonitor.cs (2)
12private readonly ConcurrentDictionary<string, ConcurrentDictionary<string, IAppHostAuxiliaryBackchannel>> _connectionsByHash = new(); 101var connectionsDict = _connectionsByHash.GetOrAdd(hash, _ => new ConcurrentDictionary<string, IAppHostAuxiliaryBackchannel>());
Aspire.Dashboard (8)
Model\Assistant\AssistantChatDataContext.cs (2)
27private readonly ConcurrentDictionary<string, OtlpTrace> _referencedTraces = new(); 28private readonly ConcurrentDictionary<long, OtlpLogEntry> _referencedLogs = new();
Model\Assistant\AssistantChatViewModel.cs (1)
119private readonly ConcurrentDictionary<string, int> _toolCallCounts = new();
Model\IconResolver.cs (1)
14private readonly ConcurrentDictionary<IconKey, Icon?> _iconCache = new();
Model\StructuredLogsViewModel.cs (1)
17private readonly ConcurrentDictionary<SpanKey, bool> _spanGenAICache = new();
Otlp\Storage\TelemetryRepository.cs (1)
46private readonly ConcurrentDictionary<ResourceKey, OtlpResource> _resources = new();
src\Shared\DateFormatStringsHelpers.cs (1)
20private static readonly ConcurrentDictionary<CultureDetailsKey, MillisecondFormatStrings> s_formatStrings = new();
Utils\DashboardUIHelpers.cs (1)
62private static readonly ConcurrentDictionary<int, TextMask> s_cachedMasking = new();
Aspire.Dashboard.Tests (1)
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (1)
180var resourcesByName = new ConcurrentDictionary<string, ResourceViewModel>();
Aspire.Hosting (9)
ApplicationModel\ResourceLoggerService.cs (1)
22private readonly ConcurrentDictionary<string, ResourceLoggerState> _loggers = new();
ApplicationModel\ResourceNotificationService.cs (1)
25private readonly ConcurrentDictionary<string, ResourceNotificationState> _resourceNotificationStates = new();
Dcp\DcpExecutor.cs (1)
91private readonly ConcurrentDictionary<string, (CancellationTokenSource Cancellation, Task Task)> _logStreams = new();
Dcp\DcpExecutorEvents.cs (1)
18private readonly ConcurrentDictionary<Type, Func<object, Task>> _eventSubscriptionListLookup = new();
Eventing\DistributedApplicationEventing.cs (2)
12private readonly ConcurrentDictionary<Type, List<DistributedApplicationEventSubscription>> _eventSubscriptionListLookup = new(); 13private readonly ConcurrentDictionary<DistributedApplicationEventSubscription, Type> _subscriptionEventTypeLookup = new();
Pipelines\PipelineActivityReporter.cs (1)
19private readonly ConcurrentDictionary<string, ReportingStep> _steps = new();
Pipelines\ReportingStep.cs (1)
18private readonly ConcurrentDictionary<string, ReportingTask> _tasks = new();
Utils\FileSystemService.cs (1)
22private readonly ConcurrentDictionary<string, IDisposable> _allocatedItems = new();
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.cs (1)
40modelNameOperations = new ConcurrentDictionary<ModelNameOperation, byte>();
Aspire.Hosting.Integration.Analyzers (1)
AspireExportAnalyzer.cs (1)
75var exportsByKey = new ConcurrentDictionary<(string ExportId, string TargetType), ConcurrentBag<(IMethodSymbol Method, Location Location)>>();
Aspire.Hosting.RemoteHost (5)
Ats\AtsCallbackProxyFactory.cs (1)
22private readonly ConcurrentDictionary<(string CallbackId, Type DelegateType), Delegate> _cache = new();
Ats\CapabilityDispatcher.cs (1)
29private readonly ConcurrentDictionary<string, CapabilityRegistration> _capabilities = new();
Ats\HandleRegistry.cs (1)
16private readonly ConcurrentDictionary<string, HandleEntry> _handles = new();
AtsCapabilityScanner.cs (1)
2655private static readonly ConcurrentDictionary<Type, byte> s_assemblyExportedTypeCache = new();
CancellationTokenRegistry.cs (1)
16private readonly ConcurrentDictionary<string, CancellationTokenSource> _sources = new();
Aspire.Hosting.Tests (2)
Dashboard\DashboardLifecycleHookTests.cs (1)
149var dashboardEnvironmentVariables = new ConcurrentDictionary<string, string?>();
Dashboard\DashboardResourceTests.cs (1)
790private readonly ConcurrentDictionary<string, TestLogger> _loggers = new();
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
31= new();
dotnet (6)
Commands\Test\MTP\CtrlCCancellationManager.cs (1)
34private readonly ConcurrentDictionary<Process, byte> _processes = new();
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (1)
38private readonly ConcurrentDictionary<string, TestProgressState> _assemblies = new();
Commands\Test\MTP\Terminal\TestNodeResultsState.cs (2)
14private readonly ConcurrentDictionary<string, TestDetailState> _testNodeProgressStates = new(); 15private readonly ConcurrentDictionary<string, byte> _completed = new();
Commands\Test\VSTest\VSTestFeatureFlag.cs (1)
13private readonly ConcurrentDictionary<string, bool> _cache = new();
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
86_sourceRepositories = new();
dotnet-aot (1)
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
86_sourceRepositories = new();
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (1)
54private ConcurrentDictionary<int, string> _buffersPooled = new ConcurrentDictionary<int, string>();
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (1)
248new ConcurrentDictionary<long, Task<CancellationToken>>();
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
283private static ConcurrentDictionary<Type, TaskCompletionSourceInfo> s_cache = new ConcurrentDictionary<Type, TaskCompletionSourceInfo>();
GenerateDocumentationAndConfigFiles (14)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
25_computedOptionValuesMap = new ConcurrentDictionary<OptionKey, (bool found, object? value)>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
13private static readonly ConcurrentDictionary<(string ruleId, string optionName), OptionKey> s_keys = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
59private readonly ConcurrentDictionary<ISymbol, KeyValuePair<string?, TValue?>> _wildcardMatchResult = new(); 61private readonly ConcurrentDictionary<ISymbol, string> _symbolToDeclarationId = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
52private static readonly ConcurrentDictionary<IEqualityComparer<K>, ObjectPool<PooledConcurrentDictionary<K, V>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
47private static readonly ConcurrentDictionary<IComparer<T>, ObjectPool<PooledSortedSet<T>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SymbolDisplayStringCache.cs (2)
29private readonly ConcurrentDictionary<ISymbol, string> SymbolToDisplayNames = new(); 56=> new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (2)
14private static readonly ConcurrentDictionary<SpecialType, string> s_fromSpecialTypes = new(); 15private static readonly ConcurrentDictionary<string, SpecialType> s_toSpecialTypes = new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
115var reducedNodesMap = new ConcurrentDictionary<SyntaxNode, SyntaxNode>(); 116var reducedTokensMap = new ConcurrentDictionary<SyntaxToken, SyntaxToken>();
ILCompiler.Compiler (4)
Compiler\DependencyAnalysis\NodeFactory.cs (1)
173_cache = new ConcurrentDictionary<TKey, TValue>();
Compiler\ReachabilityInstrumentationProvider.cs (1)
34private readonly ConcurrentDictionary<EcmaModule, ExternSymbolMappedField[]> _isTokenUsedStates = new();
src\runtime\src\coreclr\tools\Common\Compiler\CachingVirtualMethodAlgorithm.cs (1)
16= new ConcurrentDictionary<TypeDesc, (MethodDesc Slot, MethodDesc Implementation)[]>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
110private readonly ConcurrentDictionary<EntityPair, ModuleCycleInfo> _actualProblems = new ConcurrentDictionary<EntityPair, ModuleCycleInfo>();
ILCompiler.ReadyToRun (16)
Compiler\DependencyAnalysis\ReadyToRun\ModuleTokenResolver.cs (1)
30private readonly ConcurrentDictionary<EcmaType, ModuleToken> _typeToRefTokens = new ConcurrentDictionary<EcmaType, ModuleToken>();
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (2)
21private ConcurrentDictionary<TypeDesc, Task<bool>> _firstStageValidationChecks = new ConcurrentDictionary<TypeDesc, Task<bool>>(); 22private ConcurrentDictionary<TypeDesc, (TypeDesc dependendOnType, string reason)[]> _crossTypeValidationDependencies = new ConcurrentDictionary<TypeDesc, (TypeDesc dependendOnType, string reason)[]>();
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
43_cache = new ConcurrentDictionary<TKey, TValue>();
Compiler\ReadyToRunCodegenCompilation.cs (1)
316private ConcurrentDictionary<TypeDesc, bool> _computedFixedLayoutTypes = new ConcurrentDictionary<TypeDesc, bool>();
Compiler\ReadyToRunCompilationModuleGroupBase.cs (8)
48private readonly ConcurrentDictionary<TypeDesc, CompilationUnitSet> _layoutCompilationUnits = new ConcurrentDictionary<TypeDesc, CompilationUnitSet>(); 50private readonly ConcurrentDictionary<TypeDesc, bool> _versionsWithTypeCache = new ConcurrentDictionary<TypeDesc, bool>(); 52private readonly ConcurrentDictionary<TypeDesc, bool> _versionsWithTypeReferenceCache = new ConcurrentDictionary<TypeDesc, bool>(); 54private readonly ConcurrentDictionary<MethodDesc, bool> _versionsWithMethodCache = new ConcurrentDictionary<MethodDesc, bool>(); 56private readonly ConcurrentDictionary<MethodDesc, bool> _crossModuleInlineableCache = new ConcurrentDictionary<MethodDesc, bool>(); 58private readonly ConcurrentDictionary<TypeDesc, bool> _crossModuleInlineableTypeCache = new ConcurrentDictionary<TypeDesc, bool>(); 60private readonly ConcurrentDictionary<MethodDesc, bool> _crossModuleCompilableCache = new ConcurrentDictionary<MethodDesc, bool>(); 66private ConcurrentDictionary<EcmaMethod, bool> _tokenTranslationFreeNonVersionable = new ConcurrentDictionary<EcmaMethod, bool>();
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (1)
593_typeToFieldMap = new ConcurrentDictionary<DefType, FieldAndOffset[]>();
src\runtime\src\coreclr\tools\Common\Compiler\CachingVirtualMethodAlgorithm.cs (1)
16= new ConcurrentDictionary<TypeDesc, (MethodDesc Slot, MethodDesc Implementation)[]>();
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\ModuleCycleInfo.cs (1)
110private readonly ConcurrentDictionary<EntityPair, ModuleCycleInfo> _actualProblems = new ConcurrentDictionary<EntityPair, ModuleCycleInfo>();
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\RouteUsageCache.cs (1)
26_lazyRoutePatterns = new();
RouteHandlers\RouteHandlerAnalyzer.cs (1)
53mapOperations = new ConcurrentDictionary<MapOperation, byte>();
Microsoft.AspNetCore.Authorization.Policy (1)
AuthorizationPolicyCache.cs (1)
22return new ConcurrentDictionary<Endpoint, AuthorizationPolicy>();
Microsoft.AspNetCore.Components (19)
BindConverter.cs (2)
1719private static readonly ConcurrentDictionary<Type, Delegate> _cache = new ConcurrentDictionary<Type, Delegate>(); 1916private static readonly ConcurrentDictionary<Type, Delegate> _cache = new ConcurrentDictionary<Type, Delegate>();
CascadingParameterState.cs (1)
18private static readonly ConcurrentDictionary<Type, CascadingParameterInfo[]> _cachedInfos = new();
CascadingValueSource.cs (1)
77_subscribers = new();
ChangeDetection.cs (1)
11private static readonly ConcurrentDictionary<Type, bool> _immutableObjectTypesCache = new();
ComponentFactory.cs (1)
20private static readonly ConcurrentDictionary<Type, IComponentRenderMode?> _cachedComponentTypeRenderModes = new();
DefaultComponentActivator.cs (1)
13private static readonly ConcurrentDictionary<Type, ObjectFactory> _cachedComponentTypeInfo = new();
DefaultComponentPropertyActivator.cs (1)
19private static readonly ConcurrentDictionary<Type, Action<IServiceProvider, IComponent>> _cachedPropertyActivators = new();
PersistentState\PersistentServicesRegistry.cs (1)
28private static readonly ConcurrentDictionary<Type, PropertiesAccessor> _cachedAccessorsByType = new();
PersistentState\PersistentStateValueProviderKeyResolver.cs (1)
17private static readonly ConcurrentDictionary<(string, string, string), byte[]> _keyCache = new();
PersistentState\PersistentValueProviderComponentSubscription.cs (2)
18private static readonly ConcurrentDictionary<(Type, string), PropertyGetter> _propertyGetterCache = new(); 19private static readonly ConcurrentDictionary<Type, IPersistentComponentStateSerializer?> _serializerCache = new();
Reflection\ComponentProperties.cs (1)
29= new ConcurrentDictionary<Type, WritersForType>();
RenderTree\EventArgsTypeCache.cs (1)
12private static readonly ConcurrentDictionary<MethodInfo, Type> Cache = new ConcurrentDictionary<MethodInfo, Type>();
RouteView.cs (1)
21private static readonly ConcurrentDictionary<Type, Type?> _layoutAttributeCache = new();
Routing\RouteTable.cs (1)
15private static readonly ConcurrentDictionary<(Type, string), InboundRouteEntry> _routeEntryCache = new();
Routing\RouteTableFactory.cs (1)
32private readonly ConcurrentDictionary<RouteKey, RouteTable> _cache = new();
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
18private readonly ConcurrentDictionary<Key, Type?> _typeToKeyLookUp = new();
src\aspnetcore\src\Components\Shared\src\UrlValueConstraint.cs (1)
17private static readonly ConcurrentDictionary<Type, UrlValueConstraint> _cachedInstances = new();
Microsoft.AspNetCore.Components.Authorization (1)
AttributeAuthorizeDataCache.cs (1)
20private static readonly ConcurrentDictionary<Type, (IAuthorizeData[]? AuthorizeData, object[]? Metadata)> _cache = new();
Microsoft.AspNetCore.Components.Endpoints (14)
Builder\RazorComponentsEndpointHttpContextExtensions.cs (1)
20private static readonly ConcurrentDictionary<Type, bool> AcceptsInteractiveRoutingCache = new();
CacheView\CacheViewService.cs (1)
19private static readonly ConcurrentDictionary<Type, (CacheBehavior? Behavior, CacheVaryBy? Condition)> _liveComponentAttributeByType = new();
FormMapping\FormDataMapperOptions.cs (1)
14private readonly ConcurrentDictionary<Type, FormDataConverter> _converters = new();
FormMapping\HttpContextFormValueMapper.cs (1)
21private static readonly ConcurrentDictionary<Type, FormValueSupplier> _cache = new();
Forms\ClientValidationCache.cs (3)
21private readonly ConcurrentDictionary<FieldKey, ClientValidationFieldMetadata?> _metadataCache = new(); 22private readonly ConcurrentDictionary<Type, bool> _typeHasValidatableInfo = new(); 23private readonly ConcurrentDictionary<(Type FormType, string RenderedName), bool> _fieldReachabilityCache = new();
Rendering\EndpointComponentState.cs (1)
19private static readonly ConcurrentDictionary<Type, StreamRenderingAttribute?> _streamRenderingAttributeByComponentType = new();
Rendering\SSRRenderModeBoundary.cs (1)
26private static readonly ConcurrentDictionary<Type, string> _componentTypeNameHashCache = new();
SessionCascadingValueSupplier.cs (1)
18private static readonly ConcurrentDictionary<(Type, string), PropertyGetter> _propertyGetterCache = new();
src\aspnetcore\src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
12private readonly ConcurrentDictionary<Key, Type?> _typeToKeyLookUp = new();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
41private static readonly ConcurrentDictionary<Type, PropertyHelper[]> PropertiesCache = new(); 43private static readonly ConcurrentDictionary<Type, PropertyHelper[]> VisiblePropertiesCache = new();
TempData\TempDataCascadingValueSupplier.cs (1)
16private static readonly ConcurrentDictionary<(Type, string), PropertyGetter> _propertyGetterCache = new();
Microsoft.AspNetCore.Components.Forms (4)
EditContextDataAnnotationsExtensions.cs (1)
46private static readonly ConcurrentDictionary<(Type ModelType, string FieldName), PropertyInfo?> _propertyInfoCache = new();
FieldIdentifier.cs (1)
19private static readonly ConcurrentDictionary<(Type ModelType, MemberInfo Member), Func<object, object>> _fieldAccessors = new();
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
28private static readonly ConcurrentDictionary<MemberInfo, CapturedValueFormatter> s_capturedValueFormatterCache = new(); 29private static readonly ConcurrentDictionary<MethodInfo, MethodInfoData> s_methodInfoDataCache = new();
Microsoft.AspNetCore.Components.QuickGrid (2)
Infrastructure\AsyncQueryExecutorSupplier.cs (1)
24private static readonly ConcurrentDictionary<Type, bool> IsEntityFrameworkProviderTypeCache = new();
src\aspnetcore\src\Components\Shared\src\UrlValueConstraint.cs (1)
17private static readonly ConcurrentDictionary<Type, UrlValueConstraint> _cachedInstances = new();
Microsoft.AspNetCore.Components.Server (4)
Circuits\CircuitRegistry.cs (1)
57ConnectedCircuits = new ConcurrentDictionary<CircuitId, CircuitHost>();
Circuits\RemoteJSRuntime.cs (1)
21private readonly ConcurrentDictionary<long, CancelableDotNetStreamReference> _pendingDotNetToJSStreams = new();
src\aspnetcore\src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
12private readonly ConcurrentDictionary<Key, Type?> _typeToKeyLookUp = new();
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
18private readonly ConcurrentDictionary<Key, Type?> _typeToKeyLookUp = new();
Microsoft.AspNetCore.Components.Testing (3)
Infrastructure\ServerFactory.cs (2)
93private readonly ConcurrentDictionary<string, ServerInstance> _instances = new(); 94private readonly ConcurrentDictionary<string, TaskCompletionSource> _readinessSignals = new();
Infrastructure\TestLockProvider.cs (1)
28private readonly ConcurrentDictionary<string, TaskCompletionSource> _locks = new();
Microsoft.AspNetCore.Components.Web (5)
Forms\ExpressionMemberAccessor.cs (2)
17private static readonly ConcurrentDictionary<Expression, MemberInfo> _memberInfoCache = new(); 18private static readonly ConcurrentDictionary<(MemberInfo Member, string CultureName), string> _displayNameCache = new();
JSComponents\JSComponentInterop.cs (1)
26private static readonly ConcurrentDictionary<Type, ParameterTypeCache> ParameterTypeCaches = new();
src\aspnetcore\src\Components\Shared\src\ExpressionFormatting\ExpressionFormatter.cs (2)
28private static readonly ConcurrentDictionary<MemberInfo, CapturedValueFormatter> s_capturedValueFormatterCache = new(); 29private static readonly ConcurrentDictionary<MethodInfo, MethodInfoData> s_methodInfoDataCache = new();
Microsoft.AspNetCore.Components.WebAssembly (3)
Services\WebAssemblyConsoleLoggerProvider.cs (1)
23_loggers = new ConcurrentDictionary<string, WebAssemblyConsoleLogger<object>>();
src\aspnetcore\src\Components\Shared\src\ComponentParametersTypeCache.cs (1)
12private readonly ConcurrentDictionary<Key, Type?> _typeToKeyLookUp = new();
src\aspnetcore\src\Components\Shared\src\RootTypeCache.cs (1)
18private readonly ConcurrentDictionary<Key, Type?> _typeToKeyLookUp = new();
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\XmlKeyManager.cs (1)
61private readonly ConcurrentDictionary<Guid, Key> _knownKeyMap = new(); // Grows unboundedly, like the key ring
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Buffering\IncomingRequestLogBufferHolder.cs (1)
11private readonly ConcurrentDictionary<string, IncomingRequestLogBuffer> _buffers = new();
Logging\IncomingHttpRouteUtility.cs (1)
22private readonly ConcurrentDictionary<string, FrozenDictionary<string, DataClassification>> _parametersToRedactCache = new();
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Internal\CallHandlers\CallHandlerDescriptorInfo.cs (1)
27PathDescriptorsCache = new ConcurrentDictionary<string, List<FieldDescriptor>>();
Internal\Json\EnumNameHelpers.cs (1)
13private static readonly ConcurrentDictionary<Type, EnumMapping> _enumMappings = new ConcurrentDictionary<Type, EnumMapping>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\DescriptorRegistry.cs (1)
14private readonly ConcurrentDictionary<Type, DescriptorBase> _typeDescriptorMap = new ConcurrentDictionary<Type, DescriptorBase>();
src\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\Server\InterceptorActivators.cs (1)
28private readonly ConcurrentDictionary<Type, IGrpcInterceptorActivator> _cachedActivators = new();
Microsoft.AspNetCore.HeaderParsing (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Factory.g.cs (2)
11_parsingErrorCounterInstruments = new(); 15_cacheAccessCounterInstruments = new();
HeaderRegistry.cs (1)
18private readonly ConcurrentDictionary<HeaderKeyIdentity, object> _headerKeys = new();
Microsoft.AspNetCore.Http.Abstractions (4)
Routing\EndpointMetadataCollection.cs (1)
41_cache = new ConcurrentDictionary<Type, object[]>();
Routing\RouteValueDictionary.cs (1)
44private static readonly ConcurrentDictionary<Type, PropertyHelper[]> _propertyCache = new ConcurrentDictionary<Type, PropertyHelper[]>();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
41private static readonly ConcurrentDictionary<Type, PropertyHelper[]> PropertiesCache = new(); 43private static readonly ConcurrentDictionary<Type, PropertyHelper[]> VisiblePropertiesCache = new();
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionContext.cs (1)
194_items = new ConnectionItems(new ConcurrentDictionary<object, object?>());
Microsoft.AspNetCore.Http.Extensions (4)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMapperOptions.cs (1)
14private readonly ConcurrentDictionary<Type, FormDataConverter> _converters = new();
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (3)
46private readonly ConcurrentDictionary<Type, Func<ParameterExpression, Expression, Expression>?> _stringMethodCallCache = new(); 47private readonly ConcurrentDictionary<Type, (Func<ParameterInfo, Expression>?, int)> _bindAsyncMethodCallCache = new(); 48private readonly ConcurrentDictionary<Type, (ConstructorInfo?, ConstructorParameter[])> _constructorCache = new();
Microsoft.AspNetCore.Mvc.Abstractions (3)
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (3)
46private readonly ConcurrentDictionary<Type, Func<ParameterExpression, Expression, Expression>?> _stringMethodCallCache = new(); 47private readonly ConcurrentDictionary<Type, (Func<ParameterInfo, Expression>?, int)> _bindAsyncMethodCallCache = new(); 48private readonly ConcurrentDictionary<Type, (ConstructorInfo?, ConstructorParameter[])> _constructorCache = new();
Microsoft.AspNetCore.Mvc.Core (15)
ActionConstraints\ActionConstraintCache.cs (1)
176new ConcurrentDictionary<ActionDescriptor, CacheEntry>();
Controllers\DefaultControllerPropertyActivator.cs (1)
15private readonly ConcurrentDictionary<Type, PropertyActivator<ControllerContext>[]> _activateActions = new();
Filters\MiddlewareFilterBuilder.cs (1)
21= new ConcurrentDictionary<Type, Lazy<RequestDelegate>>();
Infrastructure\AsyncEnumerableReader.cs (1)
34private readonly ConcurrentDictionary<Type, Func<object, CancellationToken, Task<ICollection>>?> _asyncEnumerableConverters = new();
Infrastructure\OrderedEndpointsSequenceProviderCache.cs (1)
11private readonly ConcurrentDictionary<IEndpointRouteBuilder, OrderedEndpointsSequenceProvider> _sequenceProviderCache = new();
Infrastructure\TypeActivatorCache.cs (1)
18new ConcurrentDictionary<Type, ObjectFactory>();
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (1)
20private readonly ConcurrentDictionary<ModelMetadataIdentity, ModelMetadataCacheEntry> _modelMetadataCache = new();
ModelBinding\ModelBinderFactory.cs (1)
43_cache = new ConcurrentDictionary<Key, IModelBinder>();
ModelBinding\Validation\ClientValidatorCache.cs (1)
17private readonly ConcurrentDictionary<ModelMetadata, CacheEntry> _cacheEntries = new ConcurrentDictionary<ModelMetadata, CacheEntry>();
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
49private readonly ConcurrentDictionary<Type, Func<object, IEnumerator>> _genericGetEnumeratorCache = new ConcurrentDictionary<Type, Func<object, IEnumerator>>();
ModelBinding\Validation\ValidatorCache.cs (1)
16private readonly ConcurrentDictionary<ModelMetadata, CacheEntry> _cacheEntries = new();
Routing\DynamicControllerEndpointSelectorCache.cs (2)
14private readonly ConcurrentDictionary<int, EndpointDataSource> _dataSourceCache = new(); 15private readonly ConcurrentDictionary<int, DynamicControllerEndpointSelector> _endpointSelectorCache = new();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
41private static readonly ConcurrentDictionary<Type, PropertyHelper[]> PropertiesCache = new(); 43private static readonly ConcurrentDictionary<Type, PropertyHelper[]> VisiblePropertiesCache = new();
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
XmlDataContractSerializerInputFormatter.cs (1)
21private readonly ConcurrentDictionary<Type, object> _serializerCache = new ConcurrentDictionary<Type, object>();
XmlDataContractSerializerOutputFormatter.cs (1)
25private readonly ConcurrentDictionary<Type, object> _serializerCache = new ConcurrentDictionary<Type, object>();
XmlSerializerInputFormatter.cs (1)
21private readonly ConcurrentDictionary<Type, object> _serializerCache = new ConcurrentDictionary<Type, object>();
XmlSerializerOutputFormatter.cs (1)
25private readonly ConcurrentDictionary<Type, object> _serializerCache = new ConcurrentDictionary<Type, object>();
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
BsonTempDataSerializer.cs (2)
27new ConcurrentDictionary<Type, Func<JArray, object>>(); 29new ConcurrentDictionary<Type, Func<JObject, object>>();
src\aspnetcore\src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (1)
34private readonly ConcurrentDictionary<Type, Func<object, CancellationToken, Task<ICollection>>?> _asyncEnumerableConverters = new();
Microsoft.AspNetCore.Mvc.Razor (3)
DefaultTagHelperFactory.cs (1)
35_injectActions = new ConcurrentDictionary<Type, PropertyActivator<ViewContext>[]>();
RazorPageActivator.cs (1)
37_activationInfo = new ConcurrentDictionary<CacheKey, RazorPagePropertyActivator>();
TagHelpers\TagHelperComponentPropertyActivator.cs (1)
18private readonly ConcurrentDictionary<Type, PropertyActivator<ViewContext>[]> _propertiesToActivate = new();
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\DynamicPageEndpointSelectorCache.cs (2)
15private readonly ConcurrentDictionary<int, EndpointDataSource> _dataSourceCache = new(); 16private readonly ConcurrentDictionary<int, DynamicPageEndpointSelector> _endpointSelectorCache = new();
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperService.cs (1)
61_workers = new ConcurrentDictionary<CacheTagKey, Task<IHtmlContent>>();
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
CachedExpressionCompiler.cs (2)
35new ConcurrentDictionary<MemberInfo, Func<TModel, object>>(); 41new ConcurrentDictionary<MemberInfo, Func<object, TResult>>();
HtmlAttributePropertyHelper.cs (1)
16new ConcurrentDictionary<Type, HtmlAttributePropertyHelper[]>();
ViewComponents\DefaultViewComponentFactory.cs (1)
36_injectActions = new ConcurrentDictionary<Type, PropertyActivator<ViewComponentContext>[]>();
ViewComponents\ViewComponentInvokerCache.cs (1)
77new ConcurrentDictionary<ViewComponentDescriptor, ObjectMethodExecutor>();
Microsoft.AspNetCore.OpenApi (5)
Services\OpenApiDocumentService.cs (1)
52private readonly ConcurrentDictionary<string, OpenApiOperationTransformerContext> _operationTransformerContextCache = new();
Services\Schemas\OpenApiSchemaService.cs (1)
35private readonly ConcurrentDictionary<Type, string?> _schemaIdCache = new();
src\aspnetcore\src\Shared\ParameterBindingMethodCache.cs (3)
46private readonly ConcurrentDictionary<Type, Func<ParameterExpression, Expression, Expression>?> _stringMethodCallCache = new(); 47private readonly ConcurrentDictionary<Type, (Func<ParameterInfo, Expression>?, int)> _bindAsyncMethodCallCache = new(); 48private readonly ConcurrentDictionary<Type, (ConstructorInfo?, ConstructorParameter[])> _constructorCache = new();
Microsoft.AspNetCore.OutputCaching (1)
DispatcherExtensions.cs (1)
10private readonly ConcurrentDictionary<TKey, Task<TValue?>> _workers = new();
Microsoft.AspNetCore.Routing (4)
DefaultLinkGenerator.cs (1)
55return new ConcurrentDictionary<RouteEndpoint, TemplateBinder>();
DefaultLinkParser.cs (1)
41return new ConcurrentDictionary<RouteEndpoint, MatcherState>();
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
41private static readonly ConcurrentDictionary<Type, PropertyHelper[]> PropertiesCache = new(); 43private static readonly ConcurrentDictionary<Type, PropertyHelper[]> VisiblePropertiesCache = new();
Microsoft.AspNetCore.Routing.Abstractions (2)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (2)
41private static readonly ConcurrentDictionary<Type, PropertyHelper[]> PropertiesCache = new(); 43private static readonly ConcurrentDictionary<Type, PropertyHelper[]> VisiblePropertiesCache = new();
Microsoft.AspNetCore.Server.HttpSys (2)
NativeInterop\DisconnectListener.cs (1)
12private readonly ConcurrentDictionary<ulong, ConnectionCancellation> _connectionCancellationTokens = new();
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
18private readonly ConcurrentDictionary<PinnedBlockMemoryPool, bool> _pools = new();
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
18private readonly ConcurrentDictionary<PinnedBlockMemoryPool, bool> _pools = new();
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Infrastructure\ConnectionManager.cs (1)
14private readonly ConcurrentDictionary<long, ConnectionReference> _connectionReferences = new ConcurrentDictionary<long, ConnectionReference>();
Internal\Infrastructure\TransportConnectionManager.cs (1)
14private readonly ConcurrentDictionary<long, ConnectionReference> _connectionReferences = new ConcurrentDictionary<long, ConnectionReference>();
Internal\PinnedBlockMemoryPoolFactory.cs (1)
18private readonly ConcurrentDictionary<PinnedBlockMemoryPool, nuint> _pools = new();
Internal\WebTransport\WebTransportSession.cs (1)
24private readonly ConcurrentDictionary<long, WebTransportStream> _openStreams = new();
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
18private readonly ConcurrentDictionary<PinnedBlockMemoryPool, bool> _pools = new();
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
DirectTlsTransportFactory.cs (1)
107var contextCache = new ConcurrentDictionary<X509Certificate2, TlsContext>();
TlsEventPump.cs (1)
50private readonly ConcurrentDictionary<int, ConnectionIoState> _connections = new();
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
18private readonly ConcurrentDictionary<PinnedBlockMemoryPool, bool> _pools = new();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
18private readonly ConcurrentDictionary<PinnedBlockMemoryPool, bool> _pools = new();
Microsoft.AspNetCore.SignalR.Core (2)
src\aspnetcore\src\SignalR\common\Shared\ClientResultsManager.cs (1)
16private readonly ConcurrentDictionary<string, (Type Type, string ConnectionId, object Tcs, Action<object, CompletionMessage> Complete)> _pendingInvocations = new();
StreamTracker.cs (1)
19private readonly ConcurrentDictionary<string, (long Owner, IStreamConverter Converter)> _lookup = new();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\AckHandler.cs (1)
11private readonly ConcurrentDictionary<int, AckInfo> _acks = new ConcurrentDictionary<int, AckInfo>();
src\aspnetcore\src\SignalR\common\Shared\ClientResultsManager.cs (1)
16private readonly ConcurrentDictionary<string, (Type Type, string ConnectionId, object Tcs, Action<object, CompletionMessage> Complete)> _pendingInvocations = new();
Microsoft.Build (30)
BackEnd\Components\Caching\ConfigCache.cs (2)
351_byId = new ConcurrentDictionary<int, BuildRequestConfiguration>(); 352_byMetadata = new ConcurrentDictionary<ConfigurationMetadata, BuildRequestConfiguration>();
BackEnd\Components\Caching\ResultsCache.cs (1)
38_resultsByConfiguration = new ConcurrentDictionary<int, BuildResult>();
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
135_nodeContexts = new ConcurrentDictionary<int, NodeContext>();
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
183_nodeContexts = new ConcurrentDictionary<int, NodeContext>();
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
69private readonly ConcurrentDictionary<string, byte /*void*/> _processesToIgnore = new();
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (3)
246_nodeContexts = new ConcurrentDictionary<TaskHostNodeKey, NodeContext>(); 247_nodeIdToNodeKey = new ConcurrentDictionary<int, TaskHostNodeKey>(); 248_nodeIdToPacketHandlerStack = new ConcurrentDictionary<int, Stack<INodePacketHandler>>();
BackEnd\Components\Communications\TranslatorExtensions.cs (1)
22private static readonly Lazy<ConcurrentDictionary<Type, ConstructorInfo>> parameterlessConstructorCache = new Lazy<ConcurrentDictionary<Type, ConstructorInfo>>(() => new ConcurrentDictionary<Type, ConstructorInfo>());
BackEnd\Components\Logging\LoggingService.cs (2)
317_projectFileMap = new ConcurrentDictionary<int, string>(); 787warningsByProject ??= new ConcurrentDictionary<WarningsConfigKey, ISet<string>>();
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
54private readonly ConcurrentDictionary<BuildRequestConfiguration, IReadOnlyDictionary<string, string>> _globalPropertiesPerConfiguration = new();
BackEnd\Components\RequestBuilder\TaskRouter.cs (1)
25private static readonly ConcurrentDictionary<Type, bool> s_multiThreadableTaskCache = new();
BackEnd\Components\SdkResolution\CachingSdkResolverLoader.cs (1)
26private readonly ConcurrentDictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>> _resolversByManifest = new();
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
22private readonly ConcurrentDictionary<int, ConcurrentDictionary<string, Lazy<SdkResult>>> _cache = new ConcurrentDictionary<int, ConcurrentDictionary<string, Lazy<SdkResult>>>();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
40private readonly ConcurrentDictionary<int, ConcurrentDictionary<SdkResolver, object>> _resolverStateBySubmission = new ConcurrentDictionary<int, ConcurrentDictionary<SdkResolver, object>>();
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
920private static readonly ConcurrentDictionary<Type, Func<ITaskItem, ITaskItem>> s_taskItemOfTFactories = new();
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
544private readonly ConcurrentDictionary<int, string> _projectsByInstanceId = new(); 545private readonly ConcurrentDictionary<int, string> _projectsByEvaluationId = new();
Evaluation\ConditionEvaluator.cs (1)
167private static readonly ConcurrentDictionary<int, ExpressionTreeForCurrentOptionsWithSize> s_cachedExpressionTrees = new ConcurrentDictionary<int, ExpressionTreeForCurrentOptionsWithSize>();
Evaluation\Context\EvaluationContext.cs (1)
69FileEntryExpansionCache = fileEntryExpansionCache ?? new ConcurrentDictionary<string, IReadOnlyList<string>>();
Graph\GraphBuilder.cs (3)
55private ConcurrentDictionary<ConfigurationMetadata, Lazy<ProjectInstance>> _platformNegotiationInstancesCache = new(); 63private readonly ConcurrentDictionary<ConfigurationMetadata, ConcurrentBag<string>> _projectReferrers = new(); 696new ConcurrentDictionary<(ProjectGraphNode, ProjectGraphNode), ProjectItemInstance>();
Graph\ProjectGraph.cs (1)
532var nodeIds = new ConcurrentDictionary<ProjectGraphNode, string>();
src\msbuild\src\Shared\TypeLoader.cs (3)
57private static readonly ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>> s_cacheOfLoadedTypesByFilter = new ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>>(); 62private static readonly ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>> s_cacheOfReflectionOnlyLoadedTypesByFilter = new ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>>(); 359cache.GetOrAdd(_desiredInterface, (_) => new ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>());
Utilities\EngineFileUtilities.cs (1)
604private readonly Lazy<ConcurrentDictionary<string, bool>> existenceCache = new Lazy<ConcurrentDictionary<string, bool>>(() => new ConcurrentDictionary<string, bool>(), true);
Microsoft.Build.Framework (7)
FileClassifier.cs (1)
91private readonly ConcurrentDictionary<string, string> _knownImmutableDirectories = new();
FileSystem\CachingFileSystemWrapper.cs (4)
15private readonly ConcurrentDictionary<string, bool> _directoryExistenceCache = new(); 16private readonly ConcurrentDictionary<string, bool> _fileExistenceCache = new(); 17private readonly ConcurrentDictionary<string, bool> _fileOrDirectoryExistenceCache = new(); 18private readonly ConcurrentDictionary<string, DateTime> _lastWriteTimeCache = new();
Utilities\FrameworkLocationHelper.cs (2)
1377this._pathsToDotNetFramework = new ConcurrentDictionary<DotNetFrameworkArchitecture, string>(); 1378this._pathsToDotNetFrameworkSdkTools = new ConcurrentDictionary<Version, string>();
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2570? new ConcurrentDictionary<string, AssemblyMetadata>()
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
88private static readonly ConcurrentDictionary<RoslynCodeTaskFactoryTaskInfo, TaskFactoryUtilities.CachedAssemblyEntry> CompiledAssemblyCache = new ConcurrentDictionary<RoslynCodeTaskFactoryTaskInfo, TaskFactoryUtilities.CachedAssemblyEntry>();
Microsoft.CodeAnalysis (20)
CodeGen\ArrayMembers.cs (1)
101new ConcurrentDictionary<(byte, IReferenceOrISignature), ArrayMethod>();
CodeGen\CompilationTestData.cs (1)
35public readonly ConcurrentDictionary<IMethodSymbolInternal, MethodData> Methods = new ConcurrentDictionary<IMethodSymbolInternal, MethodData>();
CodeGen\PrivateImplementationDetails.cs (5)
86private readonly ConcurrentDictionary<int, InstrumentationPayloadRootField> _instrumentationPayloadRootFields = new ConcurrentDictionary<int, InstrumentationPayloadRootField>(); 91new ConcurrentDictionary<string, Cci.IMethodDefinition>(); 94private readonly ConcurrentDictionary<(uint Size, ushort Alignment), Cci.ITypeReference> _dataFieldTypes = new ConcurrentDictionary<(uint Size, ushort Alignment), Cci.ITypeReference>(); 97private readonly ConcurrentDictionary<string, DataSectionStringType> _dataSectionStringLiteralTypes = new ConcurrentDictionary<string, DataSectionStringType>(); 100private readonly ConcurrentDictionary<string, string> _dataSectionStringLiteralNames = new ConcurrentDictionary<string, string>();
CodeGen\TokenMap.cs (1)
25private readonly ConcurrentDictionary<IReferenceOrISignature, uint> _itemIdentityToToken = new();
Diagnostic\CommonMessageProvider.cs (1)
21private static readonly ConcurrentDictionary<(string prefix, int code), string> s_errorIdCache = new ConcurrentDictionary<(string prefix, int code), string>();
DiagnosticAnalyzer\AnalyzerDriver.cs (5)
421_lazyGeneratedCodeFilesMap = new ConcurrentDictionary<SyntaxTree, bool>(); 423_lazyIsGeneratedCodeSymbolMap = new ConcurrentDictionary<ISymbol, bool>(); 424_lazyTreesWithHiddenRegionsMap = new ConcurrentDictionary<SyntaxTree, bool>(); 425_lazySuppressedAnalyzersForTreeMap = new ConcurrentDictionary<SyntaxTree, ImmutableHashSet<DiagnosticAnalyzer>>(); 438_lazyPerSymbolAnalyzerActionsCache = new ConcurrentDictionary<(INamespaceOrTypeSymbol, DiagnosticAnalyzer), IGroupedAnalyzerActions>();
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
139var analyzerExecutionTimeMap = logExecutionTime ? new ConcurrentDictionary<DiagnosticAnalyzer, StrongBox<long>>() : null; 1705Interlocked.CompareExchange(ref _lazyControlFlowGraphMap, new ConcurrentDictionary<IOperation, ControlFlowGraph>(), null);
DiagnosticAnalyzer\CachingSemanticModelProvider.cs (1)
68_semanticModelsMap = new ConcurrentDictionary<SyntaxTree, SemanticModel>();
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
131_localSuppressionsBySymbol = new ConcurrentDictionary<ISymbol, ImmutableDictionary<string, SuppressMessageInfo>>();
Emit\CommonPEModuleBuilder.cs (1)
1040Interlocked.CompareExchange(ref _lazySynthesizedNamespaceMembers, new ConcurrentDictionary<INamespaceSymbolInternal, ConcurrentQueue<INamespaceOrTypeSymbolInternal>>(), null);
MetadataReader\PEModule.cs (1)
2687new ConcurrentDictionary<TypeDefinitionHandle, AttributeInfo>(),
Microsoft.CodeAnalysis.Analyzers (19)
MetaAnalyzers\DiagnosticAnalyzerAPIUsageAnalyzer.cs (1)
94var namedTypesToAccessedTypesMap = new ConcurrentDictionary<INamedTypeSymbol, ImmutableHashSet<INamedTypeSymbol>>();
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (2)
250var idToAnalyzerMap = new ConcurrentDictionary<string, ConcurrentDictionary<string, ConcurrentBag<Location>>>(); 1228var dict = new ConcurrentDictionary<string, ConcurrentBag<Location>>();
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (1)
58var shouldAnalyzeMap = new ConcurrentDictionary<SyntaxTree, bool>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (1)
23_semanticModelMap = new ConcurrentDictionary<SyntaxTree, SemanticModel>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
25_computedOptionValuesMap = new ConcurrentDictionary<OptionKey, (bool found, object? value)>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
13private static readonly ConcurrentDictionary<(string ruleId, string optionName), OptionKey> s_keys = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
59private readonly ConcurrentDictionary<ISymbol, KeyValuePair<string?, TValue?>> _wildcardMatchResult = new(); 61private readonly ConcurrentDictionary<ISymbol, string> _symbolToDeclarationId = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
52private static readonly ConcurrentDictionary<IEqualityComparer<K>, ObjectPool<PooledConcurrentDictionary<K, V>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
47private static readonly ConcurrentDictionary<IComparer<T>, ObjectPool<PooledSortedSet<T>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SymbolDisplayStringCache.cs (2)
29private readonly ConcurrentDictionary<ISymbol, string> SymbolToDisplayNames = new(); 56=> new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (2)
14private static readonly ConcurrentDictionary<SpecialType, string> s_fromSpecialTypes = new(); 15private static readonly ConcurrentDictionary<string, SpecialType> s_toSpecialTypes = new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
115var reducedNodesMap = new ConcurrentDictionary<SyntaxNode, SyntaxNode>(); 116var reducedTokensMap = new ConcurrentDictionary<SyntaxToken, SyntaxToken>();
Microsoft.CodeAnalysis.AnalyzerUtilities (16)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (1)
23_semanticModelMap = new ConcurrentDictionary<SyntaxTree, SemanticModel>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
25_computedOptionValuesMap = new ConcurrentDictionary<OptionKey, (bool found, object? value)>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
13private static readonly ConcurrentDictionary<(string ruleId, string optionName), OptionKey> s_keys = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
59private readonly ConcurrentDictionary<ISymbol, KeyValuePair<string?, TValue?>> _wildcardMatchResult = new(); 61private readonly ConcurrentDictionary<ISymbol, string> _symbolToDeclarationId = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
52private static readonly ConcurrentDictionary<IEqualityComparer<K>, ObjectPool<PooledConcurrentDictionary<K, V>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
47private static readonly ConcurrentDictionary<IComparer<T>, ObjectPool<PooledSortedSet<T>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SymbolDisplayStringCache.cs (2)
29private readonly ConcurrentDictionary<ISymbol, string> SymbolToDisplayNames = new(); 56=> new();
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
92Interlocked.CompareExchange(ref _lazyDisposableFieldsMap, new ConcurrentDictionary<INamedTypeSymbol, ImmutableHashSet<IFieldSymbol>>(), null);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
92var classCache = s_classIsControllerByCompilation.GetOrCreateValue(wellKnownTypeProvider.Compilation, (compilation) => new ConcurrentDictionary<INamedTypeSymbol, bool>());
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\SingleThreadedConcurrentDictionary.cs (1)
32private readonly ConcurrentDictionary<TKey, Entry> BackingDictionary = new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (2)
14private static readonly ConcurrentDictionary<SpecialType, string> s_fromSpecialTypes = new(); 15private static readonly ConcurrentDictionary<string, SpecialType> s_toSpecialTypes = new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
Microsoft.CodeAnalysis.CodeStyle (7)
src\roslyn\src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (3)
22private static readonly ConcurrentDictionary<string, ImmutableHashSet<IOption2>> s_diagnosticIdToOptionMap = new(); 23private static readonly ConcurrentDictionary<string, ConcurrentDictionary<string, ImmutableHashSet<IOption2>>> s_diagnosticIdToLanguageSpecificOptionsMap = new(); 66var map = s_diagnosticIdToLanguageSpecificOptionsMap.GetOrAdd(language, _ => new ConcurrentDictionary<string, ImmutableHashSet<IOption2>>());
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
42var fieldStateMap = new ConcurrentDictionary<IFieldSymbol, (bool isCandidate, bool written)>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (2)
14private static readonly ConcurrentDictionary<SpecialType, string> s_fromSpecialTypes = new(); 15private static readonly ConcurrentDictionary<string, SpecialType> s_toSpecialTypes = new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
115var reducedNodesMap = new ConcurrentDictionary<SyntaxNode, SyntaxNode>(); 116var reducedTokensMap = new ConcurrentDictionary<SyntaxToken, SyntaxToken>();
Microsoft.CodeAnalysis.CSharp (12)
Compilation\CSharpCompilation.cs (1)
1578Interlocked.CompareExchange(ref _externAliasTargets, new ConcurrentDictionary<string, NamespaceSymbol>(), null);
Emitter\Model\PEModuleBuilder.cs (2)
31protected readonly ConcurrentDictionary<Symbol, Cci.IModuleReference> AssemblyOrModuleSymbolToModuleRefMap = new ConcurrentDictionary<Symbol, Cci.IModuleReference>(); 53private readonly ConcurrentDictionary<int, NamedTypeSymbol> _inlineArrayTypes = new ConcurrentDictionary<int, NamedTypeSymbol>();
FlowAnalysis\NullableWalker.cs (1)
42Data = new ConcurrentDictionary<object, NullableWalker.Data>();
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
90private readonly ConcurrentDictionary<Location, bool> _sourceLocationsSeen = new ConcurrentDictionary<Location, bool>(); 124? new ConcurrentDictionary<string, AnonymousTypeTemplateSymbol>() 144? new ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol>()
Symbols\MetadataOrSourceOrRetargetingAssemblySymbol.cs (1)
150Interlocked.CompareExchange(ref _assembliesToWhichInternalAccessHasBeenAnalyzed, new ConcurrentDictionary<AssemblySymbol, IVTConclusion>(), null);
Symbols\NonMissingAssemblySymbol.cs (1)
33new ConcurrentDictionary<MetadataTypeName.Key, NamedTypeSymbol>();
Symbols\Source\SourceAssemblySymbol.cs (3)
97private readonly ConcurrentDictionary<FieldSymbol, bool> _unassignedFieldsMap = new ConcurrentDictionary<FieldSymbol, bool>(); 2166Interlocked.CompareExchange(ref _optimisticallyGrantedInternalsAccess, new ConcurrentDictionary<AssemblySymbol, bool>(), null); 2336keys = new ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
35private readonly ConcurrentDictionary<IMethodSymbol, MemberInfo> _methodToMemberInfo = new();
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
31private readonly ConcurrentDictionary<IMethodSymbol, MemberInfo> _methodToMemberInfo = new();
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
79var namedTypeToAnalyzer = new ConcurrentDictionary<INamedTypeSymbol, Analyzer>();
Microsoft.CodeAnalysis.CSharp.Features (3)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.InfoCache.cs (1)
35private readonly ConcurrentDictionary<IMethodSymbol, MemberInfo> _methodToMemberInfo = new();
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
31private readonly ConcurrentDictionary<IMethodSymbol, MemberInfo> _methodToMemberInfo = new();
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
79var namedTypeToAnalyzer = new ConcurrentDictionary<INamedTypeSymbol, Analyzer>();
Microsoft.CodeAnalysis.Features (9)
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (2)
254var documentIdToChangedDocuments = new ConcurrentDictionary<DocumentId, ConcurrentBag<(CodeAction, Document)>>(); 283var documentIdToFinalText = new ConcurrentDictionary<DocumentId, SourceText>();
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.cs (1)
32private static readonly ConcurrentDictionary<ProjectId, ExtensionMemberImportCompletionCacheEntry> s_projectItemsCache = new();
Organizing\AbstractOrganizingService.cs (1)
33var map = new ConcurrentDictionary<Type, IEnumerable<ISyntaxOrganizer>>();
Shared\Extensions\ISymbolExtensions_Sorting.cs (1)
36var symbolToParameterTypeNames = new ConcurrentDictionary<TSymbol, string[]>();
src\roslyn\src\Analyzers\Core\Analyzers\IDEDiagnosticIdToOptionMappingHelper.cs (3)
22private static readonly ConcurrentDictionary<string, ImmutableHashSet<IOption2>> s_diagnosticIdToOptionMap = new(); 23private static readonly ConcurrentDictionary<string, ConcurrentDictionary<string, ImmutableHashSet<IOption2>>> s_diagnosticIdToLanguageSpecificOptionsMap = new(); 66var map = s_diagnosticIdToLanguageSpecificOptionsMap.GetOrAdd(language, _ => new ConcurrentDictionary<string, ImmutableHashSet<IOption2>>());
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
42var fieldStateMap = new ConcurrentDictionary<IFieldSymbol, (bool isCandidate, bool written)>();
Microsoft.CodeAnalysis.NetAnalyzers (47)
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUninstantiatedInternalClasses.cs (2)
50ConcurrentDictionary<INamedTypeSymbol, object?> instantiatedTypes = new ConcurrentDictionary<INamedTypeSymbol, object?>(); 51var internalTypes = new ConcurrentDictionary<INamedTypeSymbol, object?>();
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUnusedPrivateFields.cs (2)
47ConcurrentDictionary<IFieldSymbol, UnusedValue> maybeUnreferencedPrivateFields = new ConcurrentDictionary<IFieldSymbol, UnusedValue>(); 48ConcurrentDictionary<IFieldSymbol, UnusedValue> referencedPrivateFields = new ConcurrentDictionary<IFieldSymbol, UnusedValue>();
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshallingAnalyzer.AutoLayoutTypeCache.cs (1)
19private readonly ConcurrentDictionary<ITypeSymbol, bool> _cache = new();
Microsoft.NetCore.Analyzers\InteropServices\PlatformCompatibilityAnalyzer.cs (1)
191var platformSpecificMembers = new ConcurrentDictionary<ISymbol, PlatformAttributes>();
Microsoft.NetCore.Analyzers\Runtime\DetectPreviewFeatureAnalyzer.cs (1)
244ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols = new();
Microsoft.NetCore.Analyzers\Runtime\DisposeObjectsBeforeLosingScope.cs (1)
87var reportedLocations = new ConcurrentDictionary<Location, bool>();
Microsoft.NetCore.Analyzers\Runtime\ProvideCorrectArgumentsToFormattingMethods.cs (1)
348_map = new ConcurrentDictionary<IMethodSymbol, Info?>();
Microsoft.NetCore.Analyzers\Runtime\UseAsyncMethodInAsyncContext.cs (1)
62ConcurrentDictionary<string, INamedTypeSymbol> syncBlockingTypes = new();
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableTypeAnalyzer.cs (1)
128new ConcurrentDictionary<INamedTypeSymbol, bool>();
Microsoft.NetCore.Analyzers\Security\DoNotCallDangerousMethodsInDeserialization.cs (3)
124var callGraph = new ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>>(); 137calledMethods = callGraph.GetOrAdd(owningSymbol, new ConcurrentDictionary<ISymbol, bool>()); 187callGraph.TryAdd(calledSymbol, new ConcurrentDictionary<ISymbol, bool>());
Microsoft.NetCore.Analyzers\Security\DoNotSerializeTypeWithPointerFields.cs (2)
56ConcurrentDictionary<ITypeSymbol, bool> visitedType = new ConcurrentDictionary<ITypeSymbol, bool>(); 57ConcurrentDictionary<IFieldSymbol, bool> pointerFields = new ConcurrentDictionary<IFieldSymbol, bool>();
Microsoft.NetCore.Analyzers\Security\Helpers\InsecureDeserializationTypeDecider.cs (2)
120new(); 167new();
Microsoft.NetCore.Analyzers\Security\PotentialReferenceCycleInDeserializedObjectGraph.cs (6)
63ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>> forwardGraph = new ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>>(); 64ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>> invertedGraph = new ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>>(); 67ConcurrentDictionary<ISymbol, int> inDegree = new ConcurrentDictionary<ISymbol, int>(); 70ConcurrentDictionary<ISymbol, int> outDegree = new ConcurrentDictionary<ISymbol, int>(); 185graph.AddOrUpdate(from, new ConcurrentDictionary<ISymbol, bool> { [to] = true }, (k, v) => 201return graph.TryAdd(point, new ConcurrentDictionary<ISymbol, bool>());
Microsoft.NetCore.Analyzers\Security\UseAutoValidateAntiforgeryToken.cs (6)
105var inverseGraph = new ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>>(); 113ConcurrentDictionary<IMethodSymbol, bool> onAuthorizationMethodSymbols = new ConcurrentDictionary<IMethodSymbol, bool>(); 114var actionMethodSymbols = new ConcurrentDictionary<(IMethodSymbol, string), bool>(); 115var actionMethodNeedAddingHttpVerbAttributeSymbols = new ConcurrentDictionary<IMethodSymbol, bool>(); 132inverseGraph.GetOrAdd(owningSymbol, (_) => new ConcurrentDictionary<ISymbol, bool>()); 164callers = inverseGraph.GetOrAdd(calledSymbol, (_) => new ConcurrentDictionary<ISymbol, bool>());
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingInApiDesign.cs (2)
84private readonly ConcurrentDictionary<INamedTypeSymbol, bool> _xmlDocumentDerivedTypes = new(); 85private readonly ConcurrentDictionary<INamedTypeSymbol, bool> _xmlTextReaderDerivedTypes = new();
Microsoft.NetFramework.Analyzers\DoNotUseInsecureXSLTScriptExecution.cs (1)
105private readonly ConcurrentDictionary<ISymbol, XsltSettingsEnvironment> _xsltSettingsEnvironments = new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (1)
24_semanticModelMap = new ConcurrentDictionary<SyntaxTree, SemanticModel>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
24_computedOptionValuesMap = new ConcurrentDictionary<OptionKey, (bool found, object? value)>();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\OptionKey.cs (1)
12private static readonly ConcurrentDictionary<(string ruleId, string optionName), OptionKey> s_keys = new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
57private readonly ConcurrentDictionary<ISymbol, KeyValuePair<string?, TValue?>> _wildcardMatchResult = new(); 59private readonly ConcurrentDictionary<ISymbol, string?> _symbolToDeclarationId = new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
50private static readonly ConcurrentDictionary<IEqualityComparer<K>, ObjectPool<PooledConcurrentDictionary<K, V>>> s_poolInstancesByComparer = new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
82= new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
63private static readonly ConcurrentDictionary<IEqualityComparer<T>, ObjectPool<PooledHashSet<T>>> s_poolInstancesByComparer = new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
45private static readonly ConcurrentDictionary<IComparer<T>, ObjectPool<PooledSortedSet<T>>> s_poolInstancesByComparer = new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\SymbolDisplayStringCache.cs (2)
28private readonly ConcurrentDictionary<ISymbol, string> SymbolToDisplayNames = new(); 55=> new();
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\DisposeAnalysis\DisposeAnalysisHelper.cs (1)
91Interlocked.CompareExchange(ref _lazyDisposableFieldsMap, new ConcurrentDictionary<INamedTypeSymbol, ImmutableHashSet<IFieldSymbol>>(), null);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\WebInputSources.cs (1)
90var classCache = s_classIsControllerByCompilation.GetOrCreateValue(wellKnownTypeProvider.Compilation, (compilation) => new ConcurrentDictionary<INamedTypeSymbol, bool>());
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\SingleThreadedConcurrentDictionary.cs (1)
31private readonly ConcurrentDictionary<TKey, Entry> BackingDictionary = new();
Microsoft.CodeAnalysis.ResxSourceGenerator (13)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (1)
23_semanticModelMap = new ConcurrentDictionary<SyntaxTree, SemanticModel>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
25_computedOptionValuesMap = new ConcurrentDictionary<OptionKey, (bool found, object? value)>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
13private static readonly ConcurrentDictionary<(string ruleId, string optionName), OptionKey> s_keys = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
59private readonly ConcurrentDictionary<ISymbol, KeyValuePair<string?, TValue?>> _wildcardMatchResult = new(); 61private readonly ConcurrentDictionary<ISymbol, string> _symbolToDeclarationId = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
52private static readonly ConcurrentDictionary<IEqualityComparer<K>, ObjectPool<PooledConcurrentDictionary<K, V>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
47private static readonly ConcurrentDictionary<IComparer<T>, ObjectPool<PooledSortedSet<T>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SymbolDisplayStringCache.cs (2)
29private readonly ConcurrentDictionary<ISymbol, string> SymbolToDisplayNames = new(); 56=> new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (2)
14private static readonly ConcurrentDictionary<SpecialType, string> s_fromSpecialTypes = new(); 15private static readonly ConcurrentDictionary<string, SpecialType> s_toSpecialTypes = new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
Microsoft.CodeAnalysis.VisualBasic (20)
Binding\BinderFactory.vb (1)
43Me._cache = New ConcurrentDictionary(Of ValueTuple(Of VisualBasicSyntaxNode, Byte), Binder)
BoundTree\BoundAddressOfOperator.vb (1)
14Private ReadOnly _delegateResolutionResultCache As New ConcurrentDictionary(Of TypeSymbol, Binder.DelegateResolutionResult)()
BoundTree\UnboundLambda.vb (2)
220Public ReadOnly InferredReturnType As New ConcurrentDictionary(Of TargetSignature, KeyValuePair(Of TypeSymbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol)))() 221Public ReadOnly BoundLambdas As New ConcurrentDictionary(Of TargetSignature, BoundLambda)()
Compilation\ClsComplianceChecker.vb (1)
48Me._declaredOrInheritedCompliance = New ConcurrentDictionary(Of Symbol, Compliance)()
Compilation\SyntaxTreeSemanticModel.vb (1)
34Private ReadOnly _semanticModelCache As New ConcurrentDictionary(Of Binder, MemberSemanticModel)()
Emit\SymbolTranslator.vb (2)
17Protected ReadOnly m_AssemblyOrModuleSymbolToModuleRefMap As New ConcurrentDictionary(Of Symbol, Microsoft.Cci.IModuleReference)() 18Private ReadOnly _genericInstanceMap As New ConcurrentDictionary(Of Symbol, Object)()
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (3)
27Private ReadOnly _sourceLocationsSeen As New ConcurrentDictionary(Of Location, Boolean) 55New ConcurrentDictionary(Of String, AnonymousTypeTemplateSymbol), 73New ConcurrentDictionary(Of String, AnonymousDelegateTemplateSymbol),
Symbols\MetadataOrSourceOrRetargetingAssemblySymbol.vb (1)
117Interlocked.CompareExchange(_assembliesToWhichInternalAccessHasBeenAnalyzed, New ConcurrentDictionary(Of AssemblySymbol, IVTConclusion), Nothing)
Symbols\NonMissingAssemblySymbol.vb (1)
33Private ReadOnly _emittedNameToTypeMap As New ConcurrentDictionary(Of MetadataTypeName.Key, NamedTypeSymbol)()
Symbols\Retargeting\RetargetingAssemblySymbol.vb (1)
71Friend ReadOnly m_NoPiaUnificationMap As New ConcurrentDictionary(Of NamedTypeSymbol, NamedTypeSymbol)()
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
209Dim symbolMap = New ConcurrentDictionary(Of NamedTypeSymbol, NamedTypeSymbol)()
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
24Private ReadOnly _symbolMap As New ConcurrentDictionary(Of Symbol, Symbol)()
Symbols\Source\SourceAssemblySymbol.vb (2)
1002keys = New ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) 1649Interlocked.CompareExchange(_optimisticallyGrantedInternalsAccess, New ConcurrentDictionary(Of AssemblySymbol, Boolean), Nothing)
Symbols\Source\SourceModuleSymbol.vb (1)
68Private ReadOnly _sourceFileMap As New ConcurrentDictionary(Of SyntaxTree, SourceFile)
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2692New ConcurrentDictionary(Of PropertySymbol, SynthesizedOverridingWithEventsProperty),
Microsoft.CodeAnalysis.Workspaces (6)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
49var replacements = new ConcurrentDictionary<SyntaxToken, SyntaxToken>();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (2)
14private static readonly ConcurrentDictionary<SpecialType, string> s_fromSpecialTypes = new(); 15private static readonly ConcurrentDictionary<string, SpecialType> s_toSpecialTypes = new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
115var reducedNodesMap = new ConcurrentDictionary<SyntaxNode, SyntaxNode>(); 116var reducedTokensMap = new ConcurrentDictionary<SyntaxToken, SyntaxToken>();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
21private readonly ConcurrentDictionary<int, DiagnosticLog> _logsBySubmissionId = new();
Microsoft.Diagnostics.DataContractReader.Legacy (1)
MetaDataImportImpl.cs (1)
33private readonly ConcurrentDictionary<nint, byte> _cdacEnumHandles = new();
Microsoft.Diagnostics.NETCore.Client (1)
ReversedServer\ReversedDiagnosticsServer.cs (1)
28private readonly ConcurrentDictionary<Guid, HandleableCollection<Stream>> _streamCollections = new();
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageIndex.cs (1)
22static ConcurrentDictionary<string, PackageIndex> s_indexCache = new ConcurrentDictionary<string, PackageIndex>();
Microsoft.DotNet.HotReload.WebAssembly.Browser (2)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (2)
31private readonly ConcurrentDictionary<Guid, List<RuntimeManagedCodeUpdate>> _moduleUpdates = new(); 32private readonly ConcurrentDictionary<Assembly, Assembly> _appliedAssemblies = new();
Microsoft.DotNet.SdkResolver (2)
NETCoreSdkResolver.cs (2)
19= new(); 22= new();
Microsoft.Extensions.AI (1)
ChatRouting\OrderedFailoverChatClient.cs (1)
36private readonly ConcurrentDictionary<RoutingContext, int> _requestStates = new();
Microsoft.Extensions.AI.Evaluation.Reporting (1)
ResponseCachingChatClient.cs (1)
30_stopWatches = new ConcurrentDictionary<string, Stopwatch>();
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyService.cs (1)
29new ConcurrentDictionary<UrlCacheKey, string>();
Microsoft.Extensions.AI.Tests (1)
TestInMemoryCacheStorage.cs (1)
14private readonly ConcurrentDictionary<string, byte[]> _storage = new();
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.Serialization.cs (1)
17private readonly ConcurrentDictionary<Type, object> _serializers = new();
Internal\DefaultHybridCache.Stampede.cs (1)
14private readonly ConcurrentDictionary<StampedeKey, StampedeState> _currentOperations = new();
Microsoft.Extensions.DependencyInjection (6)
ServiceLookup\CallSiteFactory.cs (2)
18private readonly ConcurrentDictionary<ServiceCacheKey, ServiceCallSite> _callSiteCache = new ConcurrentDictionary<ServiceCacheKey, ServiceCallSite>(); 20private readonly ConcurrentDictionary<ServiceIdentifier, object> _callSiteLocks = new ConcurrentDictionary<ServiceIdentifier, object>();
ServiceLookup\CallSiteValidator.cs (1)
13private readonly ConcurrentDictionary<ServiceCacheKey, Type?> _scopedServices = new ConcurrentDictionary<ServiceCacheKey, Type?>();
ServiceLookup\Expressions\ExpressionResolverBuilder.cs (1)
52_scopeResolverCache = new ConcurrentDictionary<ServiceCacheKey, Func<ServiceProviderEngineScope, object>>();
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
62_scopeResolverCache = new ConcurrentDictionary<ServiceCacheKey, GeneratedMethod>();
ServiceProvider.cs (1)
58_serviceAccessors = new ConcurrentDictionary<ServiceIdentifier, ServiceAccessor>();
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
28private static readonly ConcurrentDictionary<Type, ConstructorInfoEx[]> s_constructorInfos = new();
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Factory.g.cs (2)
11_healthCheckReportCounterInstruments = new(); 15_unhealthyHealthCheckCounterInstruments = new();
ManualHealthCheckTracker.cs (1)
15private readonly ConcurrentDictionary<IManualHealthCheck, bool> _checks = new();
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Windows\Disk\WindowsDiskIoRatePerfCounter.cs (1)
40internal IDictionary<string, long> TotalCountDict { get; } = new ConcurrentDictionary<string, long>();
Windows\Disk\WindowsDiskIoTimePerfCounter.cs (1)
38internal IDictionary<string, double> TotalSeconds { get; } = new ConcurrentDictionary<string, double>();
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLogger.cs (1)
33private readonly ConcurrentDictionary<LogLevel, bool> _disabledLevels = new(); // used as a set, the value is ignored
Logging\FakeLoggerProvider.cs (1)
21private readonly ConcurrentDictionary<string, FakeLogger> _loggers = new();
Microsoft.Extensions.DotNetDeltaApplier (2)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (2)
31private readonly ConcurrentDictionary<Guid, List<RuntimeManagedCodeUpdate>> _moduleUpdates = new(); 32private readonly ConcurrentDictionary<Assembly, Assembly> _appliedAssemblies = new();
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFilesWatcher.cs (1)
149PollingChangeTokens = new ConcurrentDictionary<IPollingChangeToken, IPollingChangeToken>();
Microsoft.Extensions.Http.Diagnostics (3)
Latency\Internal\HttpRequestLatencyListener.cs (1)
20private readonly ConcurrentDictionary<string, EventSource?> _eventSources = new()
Logging\Internal\LoggerMessageStateExtensions.cs (2)
14private static readonly ConcurrentDictionary<string, string> _requestPrefixedNamesCache = new(); 15private static readonly ConcurrentDictionary<string, string> _responsePrefixedNamesCache = new();
Microsoft.Extensions.Http.Resilience (1)
Resilience\Internal\ByAuthorityPipelineKeyProvider.cs (1)
12private readonly ConcurrentDictionary<(string scheme, string host, int port), string> _cache = new();
Microsoft.Extensions.Localization (3)
ResourceManagerStringLocalizer.cs (1)
23private readonly ConcurrentDictionary<string, object?> _missingManifestCache = new ConcurrentDictionary<string, object?>();
ResourceManagerStringLocalizerFactory.cs (1)
27new ConcurrentDictionary<string, ResourceManagerStringLocalizer>();
ResourceNamesCache.cs (1)
15private readonly ConcurrentDictionary<string, IList<string>?> _cache = new ConcurrentDictionary<string, IList<string>?>();
Microsoft.Extensions.Logging.Abstractions (1)
FormattedLogValues.cs (1)
23private static readonly ConcurrentDictionary<string, LogValuesFormatter> s_formatters = new ConcurrentDictionary<string, LogValuesFormatter>();
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerProvider.cs (1)
44_loggers = new ConcurrentDictionary<string, ConsoleLogger>();
Microsoft.Extensions.ML (1)
PredictionEnginePool.cs (1)
44_namedPools = new ConcurrentDictionary<string, PoolLoader<TData, TPrediction>>();
Microsoft.Extensions.ServiceDiscovery (2)
Http\HttpServiceEndpointResolver.cs (1)
21private readonly ConcurrentDictionary<string, ResolverEntry> _resolvers = new();
ServiceEndpointResolver.cs (1)
20private readonly ConcurrentDictionary<string, ResolverEntry> _resolvers = new();
Microsoft.Extensions.Telemetry (2)
Http\HttpRouteParser.cs (1)
24private readonly ConcurrentDictionary<string, ParsedRouteSegments> _routeTemplateSegmentsCache = new();
Sampling\LogSamplingRuleSelector.cs (1)
17private readonly ConcurrentDictionary<(string, LogLevel, EventId), T?> _ruleCache = new();
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Analyzers\ValidationsDiagnosticAnalyzer.cs (1)
181var validatableTypeAttributeLocations = new ConcurrentDictionary<Location, byte>();
Microsoft.Gen.Metrics.Generated.Tests (95)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Factory.g.cs (95)
9_noNamespaceCounterInstrumentInstruments = new(); 13_noNamespaceHistogramInstrumentInstruments = new(); 43_nestedClassCounterInstruments = new(); 47_nestedClassHistogramInstruments = new(); 71_multiLevelNestedClassCounterInstruments = new(); 75_multiLevelNestedClassHistogramInstruments = new(); 106_nestedRecordClassCounterInstruments = new(); 110_nestedRecordClassHistogramInstruments = new(); 141_nestedRecordStructCounterInstruments = new(); 145_nestedRecordStructHistogramInstruments = new(); 176_nestedStructCounterInstruments = new(); 180_nestedStructHistogramInstruments = new(); 211_publicCounterInstruments = new(); 215_publicHistogramInstruments = new(); 246_genericIntCounter0DInstruments = new(); 250_genericIntCounterExt0DInstruments = new(); 254_counter0DInstruments = new(); 258_myNamedCounterInstruments = new(); 262_counterExt0DInstruments = new(); 266_genericIntCounter1DInstruments = new(); 270_genericIntCounterExt1DInstruments = new(); 274_genericFloatCounter1DInstruments = new(); 278_genericFloatCounterExt1DInstruments = new(); 282_counter2DInstruments = new(); 286_counterExt2DInstruments = new(); 290_counter3DInstruments = new(); 294_counterExt3DInstruments = new(); 298_counter4DInstruments = new(); 302_counterExt4DInstruments = new(); 306_counterS0D2Instruments = new(); 310_counterExtS0D2Instruments = new(); 314_counterS1D1Instruments = new(); 318_counterExtS1D1Instruments = new(); 322_counterS3D2Instruments = new(); 326_counterExtS3D2Instruments = new(); 330_counterS5D5Instruments = new(); 334_counterExtS5D5Instruments = new(); 338_testCounterInstruments = new(); 342_testCounterExtInstruments = new(); 346_counterWithVariableParamsInstruments = new(); 350_counterExtWithVariableParamsInstruments = new(); 354_counterXInstruments = new(); 358_counterExtXInstruments = new(); 362_counterYInstruments = new(); 366_counterExtYInstruments = new(); 370_strongTypeDecimalCounterInstruments = new(); 374_strongTypeDecimalCounterExtInstruments = new(); 378_structTypeCounterInstruments = new(); 382_structTypeCounterExtInstruments = new(); 386_recordClassTypeCounterInstruments = new(); 750_fileScopedNamespaceCounterInstruments = new(); 754_fileScopedNamespaceGenericDoubleCounterInstruments = new(); 778_histogram0DInstruments = new(); 782_genericIntHistogram0DInstruments = new(); 786_histogramExt0DInstruments = new(); 790_genericIntHistogramExt0DInstruments = new(); 794_histogram1DInstruments = new(); 798_histogramExt1DInstruments = new(); 802_histogram2DInstruments = new(); 806_genericIntHistogram2DInstruments = new(); 810_genericIntHistogramExt2DInstruments = new(); 814_histogramExt2DInstruments = new(); 818_histogram3DInstruments = new(); 822_histogramExt3DInstruments = new(); 826_histogram4DInstruments = new(); 830_histogramExt4DInstruments = new(); 834_histogramS0D2Instruments = new(); 838_histogramExtS0D2Instruments = new(); 842_histogramS1D1Instruments = new(); 846_histogramExtS1D1Instruments = new(); 850_histogramS3D2Instruments = new(); 854_histogramExtS3D2Instruments = new(); 858_histogramS5D5Instruments = new(); 862_histogramExtS5D5Instruments = new(); 866_testHistogramInstruments = new(); 870_testHistogramExtInstruments = new(); 874_histogramWithVariableParamsInstruments = new(); 878_histogramExtWithVariableParamsInstruments = new(); 882_strongTypeHistogramInstruments = new(); 886_strongTypeHistogramExtInstruments = new(); 890_structTypeHistogramInstruments = new(); 894_structTypeHistogramExtInstruments = new(); 1198_counterFromRecordClassInstruments = new(); 1212_counterFromRecordStructInstruments = new(); 1226_counterFromStructInstruments = new(); 1240_counterWithUnitInstruments = new(); 1244_counterWithUnitAndDimsInstruments = new(); 1248_counterStrongTypeWithUnitInstruments = new(); 1252_genericDoubleCounterWithUnitInstruments = new(); 1256_histogramWithUnitInstruments = new(); 1260_histogramStrongTypeWithUnitInstruments = new(); 1264_histogramWithUnitAndDimsInstruments = new(); 1268_genericIntHistogramWithUnitInstruments = new(); 1359_overlappingNamesCounterInstruments = new(); 1363_overlappingNamesHistogramInstruments = new();
Microsoft.JSInterop (8)
Infrastructure\DotNetDispatcher.cs (3)
29private static readonly ConcurrentDictionary<AssemblyKey, IReadOnlyDictionary<string, (MethodInfo, Type[])>> _cachedMethodsByAssembly = new(); 31private static readonly ConcurrentDictionary<Type, IReadOnlyDictionary<string, (MethodInfo, Type[])>> _cachedMethodsByType = new(); 33private static readonly ConcurrentDictionary<Type, Func<object, Task>> _cachedConvertToTaskByType = new();
Infrastructure\TaskGenericsUtil.cs (2)
12= new ConcurrentDictionary<Type, ITaskResultGetter>(); 15= new ConcurrentDictionary<Type, ITcsResultSetter>();
JSRuntime.cs (3)
23private readonly ConcurrentDictionary<long, IPendingAsyncCall> _pendingTasks = new(); 24private readonly ConcurrentDictionary<long, IDotNetObjectReference> _trackedRefsById = new(); 25private readonly ConcurrentDictionary<long, CancellationTokenRegistration> _cancellationRegistrations = new();
Microsoft.Maui (8)
Handlers\HybridWebView\HybridWebViewTaskManager.cs (1)
12 private readonly ConcurrentDictionary<string, TaskCompletionSource<string?>> _asyncTaskCallbacks = new();
Hosting\ImageSources\ImageSourceServiceProvider.cs (2)
15 readonly ConcurrentDictionary<Type, Type> _imageSourceCache = new ConcurrentDictionary<Type, Type>(); 16 readonly ConcurrentDictionary<Type, Type> _serviceCache = new ConcurrentDictionary<Type, Type>();
Hosting\ImageSources\ImageSourceToImageSourceServiceTypeMapping.cs (1)
10 private static readonly ConcurrentDictionary<IImageSourceServiceCollection, ImageSourceToImageSourceServiceTypeMapping> s_instances = new();
Hosting\Internal\MauiFactory.cs (1)
22 _singletons = new ConcurrentDictionary<ServiceDescriptor, object?>();
Hosting\Internal\MauiHandlersFactory.cs (1)
12 readonly ConcurrentDictionary<Type, Type> _serviceCache = new ConcurrentDictionary<Type, Type>();
Hosting\Internal\RegisteredHandlerServiceTypeSet.cs (1)
10 private static readonly ConcurrentDictionary<IMauiHandlersCollection, RegisteredHandlerServiceTypeSet> s_instances = new();
MauiContext.cs (1)
55 readonly ConcurrentDictionary<Type, (object, Func<object, object?>)> _scopeStatic = new();
Microsoft.Maui.Controls (2)
AnimationExtensions.cs (1)
62 s_tweeners = new ConcurrentDictionary<int, Animation>();
Xaml\TypeConversionExtensions.cs (1)
43 static readonly ConcurrentDictionary<MemberInfo, TypeConverter> s_converterCache = new();
Microsoft.ML.Core (3)
Data\ProgressReporter.cs (1)
59_subChannels = new ConcurrentDictionary<int, SubChannel>();
Data\Repository.cs (1)
113PathMap = new ConcurrentDictionary<string, string>();
Environment\HostEnvironmentBase.cs (1)
377ListenerDict = new ConcurrentDictionary<Type, Dispatcher>();
Microsoft.ML.Core.Tests (2)
UnitTests\TestHosts.cs (2)
31var children = new ConcurrentDictionary<IHost, List<IHost>>(); 94var children = new ConcurrentDictionary<IHost, List<IHost>>();
Microsoft.ML.Data (1)
DataLoadSave\Text\TextLoaderParser.cs (1)
46= new ConcurrentDictionary<DoubleParser.OptionFlags, ValueCreatorCache>();
Microsoft.ML.Ensemble (1)
Selector\SubModelSelector\BaseDiverseSelector.cs (1)
29_predictions = new ConcurrentDictionary<FeatureSubsetModel<TOutput>, TOutput[]>();
Microsoft.ML.FastTree (1)
Utils\BufferPoolManager.cs (1)
30private static readonly ConcurrentDictionary<Type, SortedList<int, List<Array>>> _bufferPools = new ConcurrentDictionary<Type, SortedList<int, List<Array>>>();
Microsoft.ML.IntegrationTests (1)
Debugging.cs (1)
201Lines = new ConcurrentDictionary<string, int>();
Microsoft.NET.Build.Containers (1)
AuthHandshakeMessageHandler.cs (1)
44private static ConcurrentDictionary<string, AuthenticationHeaderValue?> _authenticationHeaders = new();
Microsoft.NET.Build.Tasks (1)
RuntimeGraphCache.cs (1)
14private static readonly ConcurrentDictionary<string, object> s_keyLocks = new();
Microsoft.TemplateEngine.Cli (1)
HostSpecificDataLoader.cs (1)
26new();
Microsoft.TemplateEngine.Core (6)
Expressions\Cpp2\Cpp2StyleEvaluatorDefinition.cs (1)
14private static readonly ConcurrentDictionary<Encoding, ITokenTrie> TokenCache = new();
Expressions\MSBuild\MSBuildStyleEvaluatorDefinition.cs (1)
14private static readonly ConcurrentDictionary<Encoding, ITokenTrie> TokenCache = new();
Expressions\VisualBasic\VisualBasicStyleEvaluatorDefintion.cs (1)
14private static readonly ConcurrentDictionary<Encoding, ITokenTrie> TokenCache = new();
Util\ProcessorState.cs (3)
13private static readonly ConcurrentDictionary<IReadOnlyList<IOperationProvider>, ConcurrentDictionary<Encoding, Trie<OperationTerminal>>> TrieLookup = new(); 14private static readonly ConcurrentDictionary<IReadOnlyList<IOperationProvider>, List<string>> OperationsToExplicitlySetOnByDefault = new(); 74ConcurrentDictionary<Encoding, Trie<OperationTerminal>> byEncoding = TrieLookup.GetOrAdd(operationProviders, x => new());
Microsoft.TemplateEngine.Edge (1)
Installers\NuGet\NugetApiPackageManager.cs (1)
18private static readonly ConcurrentDictionary<PackageSource, SourceRepository> SourcesCache = new();
Microsoft.TestPlatform.CoreUtilities (1)
FeatureFlag\FeatureFlag.cs (1)
32private readonly ConcurrentDictionary<string, bool> _cache = new();
Microsoft.TestPlatform.CrossPlatEngine (6)
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (1)
25private static readonly ConcurrentDictionary<string, DataCollectorExtensionManager> DataCollectorExtensionManagerCache = new();
Client\Parallel\DiscoveryDataAggregator.cs (3)
25private readonly ConcurrentDictionary<string, object> _metricsAggregator = new(); 26private readonly ConcurrentDictionary<string, DiscoveryStatus> _sourcesWithDiscoveryStatus = new(); 56return new ConcurrentDictionary<string, object>();
Client\Parallel\ParallelRunDataAggregator.cs (2)
44_metricsAggregator = new ConcurrentDictionary<string, object>(); 108return new ConcurrentDictionary<string, object>();
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
BlameCollector.cs (1)
141_testObjectDictionary = new ConcurrentDictionary<Guid, BlameTestObject>();
Microsoft.VisualStudio.TestPlatform.Common (5)
DataCollection\DataCollectionAttachmentManager.cs (3)
82_attachmentTasks = new ConcurrentDictionary<DataCollectionContext, ConcurrentBag<Task>>(); 83AttachmentSets = new ConcurrentDictionary<DataCollectionContext, ConcurrentDictionary<Uri, AttachmentSet>>(); 173AttachmentSets.GetOrAdd(fileTransferInfo.Context, _ => new ConcurrentDictionary<Uri, AttachmentSet>());
Telemetry\MetricsCollection.cs (1)
24_metricDictionary = new ConcurrentDictionary<string, object>();
Utilities\MetadataReaderHelper.cs (1)
44private static readonly ConcurrentDictionary<string, Type[]> AssemblyCache = new();
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
HtmlLogger.cs (2)
131Results = new ConcurrentDictionary<Guid, ObjectModel.TestResult>(); 132ResultCollectionDictionary = new ConcurrentDictionary<string, TestResultCollection>();
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
TrxLogger.cs (5)
122_results = new ConcurrentDictionary<Guid, ITestResult>(); 123_innerResults = new ConcurrentDictionary<Guid, ITestResult>(); 124_testElements = new ConcurrentDictionary<Guid, ITestElement>(); 125_entries = new ConcurrentDictionary<Guid, TestEntry>(); 126_innerTestEntries = new ConcurrentDictionary<Guid, TestEntry>();
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
Nuget.Frameworks\CompatibilityProvider.cs (1)
22_cache = new ConcurrentDictionary<CompatibilityCacheKey, bool>();
TestObject.cs (1)
29private readonly ConcurrentDictionary<TestProperty, object?> _store = new();
TestProperty\TestProperty.cs (1)
20private static readonly ConcurrentDictionary<string, Type> TypeCache = new();
MSBuild (6)
OutOfProcTaskHostNode.cs (2)
206private readonly ConcurrentDictionary<int, TaskCompletionSource<INodePacket>> _pendingCallbackRequests = new(); 213= new ConcurrentDictionary<int, TaskExecutionContext>();
src\msbuild\src\Shared\TypeLoader.cs (3)
57private static readonly ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>> s_cacheOfLoadedTypesByFilter = new ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>>(); 62private static readonly ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>> s_cacheOfReflectionOnlyLoadedTypesByFilter = new ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>>(); 359cache.GetOrAdd(_desiredInterface, (_) => new ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>());
TaskExecutionContext.cs (1)
94public ConcurrentDictionary<int, TaskCompletionSource<INodePacket>> PendingCallbackRequests { get; } = new();
NuGet.Commands (8)
RestoreCommand\LockFileBuilderCache.cs (3)
28= new(); 32new(); 35new();
RestoreCommand\Logging\WarningPropertiesCollection.cs (1)
24private readonly ConcurrentDictionary<string, string> _getTargetGraphAliasCache = new ConcurrentDictionary<string, string>();
RestoreCommand\RestoreCommandProvidersCache.cs (2)
21= new ConcurrentDictionary<SourceRepository, IRemoteDependencyProvider>(); 30= new ConcurrentDictionary<SourceRepository, IVulnerabilityInformationProvider>();
src\nuget-client\build\Shared\TaskResultCache.cs (2)
55_cache = new(); 56_perTaskLock = new();
NuGet.Common (1)
PathUtil\NuGetEnvironment.cs (1)
31private static readonly ConcurrentDictionary<NuGetFolderPath, string> Cache = new ConcurrentDictionary<NuGetFolderPath, string>();
NuGet.Configuration (1)
Proxy\ProxyCache.cs (1)
23private readonly ConcurrentDictionary<Uri, ICredentials> _cachedCredentials = new ConcurrentDictionary<Uri, ICredentials>();
NuGet.Credentials (2)
CredentialService.cs (2)
23= new ConcurrentDictionary<string, bool>(); 25= new ConcurrentDictionary<string, CredentialResponse>();
NuGet.DependencyResolver.Core (2)
src\nuget-client\build\Shared\TaskResultCache.cs (2)
55_cache = new(); 56_perTaskLock = new();
NuGet.Frameworks (1)
CompatibilityProvider.cs (1)
22_cache = new ConcurrentDictionary<CompatibilityCacheKey, bool>();
NuGet.LibraryModel (2)
LibraryDependencyTargetUtils.cs (1)
139private static readonly ConcurrentDictionary<LibraryDependencyTarget, string> LibraryDependencyTargetCache = new();
LibraryIncludeFlagUtils.cs (1)
123private static readonly ConcurrentDictionary<LibraryIncludeFlags, string> LibraryIncludeFlagsCache = new();
NuGet.PackageManagement (2)
Resolution\GatherCache.cs (2)
25= new ConcurrentDictionary<GatherSingleCacheKey, SourcePackageDependencyInfo>(); 29= new ConcurrentDictionary<GatherAllCacheKey, List<SourcePackageDependencyInfo>>();
NuGet.Packaging (4)
ContentModel\ContentItemCollection.cs (1)
36_assemblyRelatedExtensions = new();
RuntimeModel\RuntimeGraph.cs (2)
71_areCompatible = new(); 73_dependencyCache = new();
Signing\RepositorySignatureInfoProvider.cs (1)
15private ConcurrentDictionary<string, RepositorySignatureInfo> _dict = new ConcurrentDictionary<string, RepositorySignatureInfo>();
NuGet.Protocol (17)
HttpSource\HttpSourceResourceProvider.cs (1)
26= new ConcurrentDictionary<PackageSource, HttpSourceResource>();
HttpSource\TokenStore.cs (1)
11private readonly ConcurrentDictionary<Uri, string> _tokenCache = new ConcurrentDictionary<Uri, string>();
LegacyFeed\LegacyFeedCapabilityResourceV2Feed.cs (1)
23= new ConcurrentDictionary<string, Task<Capabilities>>();
LocalRepositories\FindLocalPackagesResourceUnzippedProvider.cs (1)
17new ConcurrentDictionary<PackageSource, FindLocalPackagesResourceUnzipped>();
Plugins\MessageDispatcher.cs (2)
87_inboundRequestContexts = new ConcurrentDictionary<string, InboundRequestContext>(); 88_outboundRequestContexts = new ConcurrentDictionary<string, OutboundRequestContext>();
Plugins\PluginFactory.cs (1)
63_plugins = new ConcurrentDictionary<string, Lazy<Task<IPlugin>>>();
Plugins\PluginManager.cs (1)
349_pluginOperationClaims = new ConcurrentDictionary<PluginRequestKey, Lazy<Task<IReadOnlyList<OperationClaim>>>>();
Plugins\PluginMulticlientUtilities.cs (1)
23_actions = new ConcurrentDictionary<string, Lazy<Task>>();
Plugins\RequestHandlers.cs (1)
22_handlers = new ConcurrentDictionary<MessageMethod, IRequestHandler>();
Plugins\RequestHandlers\GetCredentialsRequestHandler.cs (1)
58_repositories = new ConcurrentDictionary<string, SourceRepository>();
Plugins\RequestHandlers\GetServiceIndexRequestHandler.cs (1)
42_repositories = new ConcurrentDictionary<string, SourceRepository>();
Plugins\RequestHandlers\MonitorNuGetProcessExitRequestHandler.cs (1)
39_processes = new ConcurrentDictionary<int, Process>();
Providers\FeedTypeResourceProvider.cs (1)
19= new ConcurrentDictionary<PackageSource, FeedTypeResource>();
src\nuget-client\build\Shared\TaskResultCache.cs (2)
55_cache = new(); 56_perTaskLock = new();
Utility\FindPackagesByIdNupkgDownloader.cs (1)
25new ConcurrentDictionary<string, NuspecReader>();
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
19private static readonly ConcurrentDictionary<string, Func<IInspectable, object>> TypedObjectFactoryCache = new ConcurrentDictionary<string, Func<IInspectable, object>>();
Roslyn.Diagnostics.Analyzers (21)
AbstractDoNotCopyValue.cs (1)
1666= new();
AbstractRunIterations`1.cs (1)
41var knownTestAttributes = new ConcurrentDictionary<INamedTypeSymbol, bool>();
DefaultableTypeShouldHaveDefaultableFieldsAnalyzer.cs (1)
50var knownNonDefaultableTypes = new ConcurrentDictionary<ITypeSymbol, bool>();
RelaxTestNamingSuppressor.cs (1)
39var knownTestAttributes = new ConcurrentDictionary<INamedTypeSymbol, bool>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeMetricsAnalysisContext.cs (1)
23_semanticModelMap = new ConcurrentDictionary<SyntaxTree, SemanticModel>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AbstractCategorizedAnalyzerConfigOptions.cs (1)
25_computedOptionValuesMap = new ConcurrentDictionary<OptionKey, (bool found, object? value)>();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\OptionKey.cs (1)
13private static readonly ConcurrentDictionary<(string ruleId, string optionName), OptionKey> s_keys = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\SymbolNamesWithValueOption.cs (2)
59private readonly ConcurrentDictionary<ISymbol, KeyValuePair<string?, TValue?>> _wildcardMatchResult = new(); 61private readonly ConcurrentDictionary<ISymbol, string> _symbolToDeclarationId = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
52private static readonly ConcurrentDictionary<IEqualityComparer<K>, ObjectPool<PooledConcurrentDictionary<K, V>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
47private static readonly ConcurrentDictionary<IComparer<T>, ObjectPool<PooledSortedSet<T>>> s_poolInstancesByComparer = new();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\SymbolDisplayStringCache.cs (2)
29private readonly ConcurrentDictionary<ISymbol, string> SymbolToDisplayNames = new(); 56=> new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SpecialTypeAnnotation.cs (2)
14private static readonly ConcurrentDictionary<SpecialType, string> s_fromSpecialTypes = new(); 15private static readonly ConcurrentDictionary<string, SpecialType> s_toSpecialTypes = new();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (1)
50var treeMap = s_treeAliasMap.GetValue(semanticModel.Compilation, static _ => new TreeMap());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (2)
115var reducedNodesMap = new ConcurrentDictionary<SyntaxNode, SyntaxNode>(); 116var reducedTokensMap = new ConcurrentDictionary<SyntaxToken, SyntaxToken>();
SymbolDeclaredEventMustBeGeneratedForSourceSymbols.cs (2)
75private readonly ConcurrentDictionary<INamedTypeSymbol, UnusedValue> _sourceSymbolsToCheck = new(); 76private readonly ConcurrentDictionary<INamedTypeSymbol, UnusedValue> _typesWithSymbolDeclaredEventInvoked = new();
System.ComponentModel.Annotations (4)
System\ComponentModel\DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (3)
96private static readonly ConcurrentDictionary<Type, Type?> s_metadataTypeCache = new ConcurrentDictionary<Type, Type?>(); 99private static readonly ConcurrentDictionary<(Type, string), Attribute[]> s_typeMemberCache = new ConcurrentDictionary<(Type, string), Attribute[]>(); 102private static readonly ConcurrentDictionary<(Type, Type), bool> s_validatedMetadataTypeCache = new ConcurrentDictionary<(Type, Type), bool>();
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
23private readonly ConcurrentDictionary<Type, TypeStoreItem> _typeStoreItems = new();
System.ComponentModel.TypeConverter (1)
System\ComponentModel\CollectibleKeyConcurrentHashtable.cs (1)
22private readonly ConcurrentDictionary<TKey, TValue> _defaultTable = new ConcurrentDictionary<TKey, TValue>();
System.Data.Common (3)
System\Data\Common\DataStorage.cs (1)
128private static readonly ConcurrentDictionary<Type, Tuple<bool, bool, bool, bool>> s_typeImplementsInterface = new ConcurrentDictionary<Type, Tuple<bool, bool, bool, bool>>();
System\Data\Common\DbProviderFactories.cs (1)
36private static readonly ConcurrentDictionary<string, ProviderRegistration> _registeredFactories = new ConcurrentDictionary<string, ProviderRegistration>();
System\Data\Common\SqlUDTStorage.cs (1)
23private static readonly ConcurrentDictionary<Type, object> s_typeToNull = new ConcurrentDictionary<Type, object>();
System.Data.Odbc (3)
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbConnectionPoolGroup.cs (3)
58_poolCollection = new ConcurrentDictionary<DbConnectionPoolIdentity, DbConnectionPool>(); 111_poolCollection = new ConcurrentDictionary<DbConnectionPoolIdentity, DbConnectionPool>(); 237var newPoolCollection = new ConcurrentDictionary<DbConnectionPoolIdentity, DbConnectionPool>();
System.Data.OleDb (3)
System\Data\ProviderBase\DbConnectionPoolGroup.cs (3)
58_poolCollection = new ConcurrentDictionary<DbConnectionPoolIdentity, DbConnectionPool>(); 135_poolCollection = new ConcurrentDictionary<DbConnectionPoolIdentity, DbConnectionPool>(); 271var newPoolCollection = new ConcurrentDictionary<DbConnectionPoolIdentity, DbConnectionPool>();
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\AggregationManager.cs (1)
28private readonly ConcurrentDictionary<Instrument, InstrumentState> _instrumentStates = new();
System\Diagnostics\Metrics\AggregatorStore.cs (1)
514GetOrAdd(names, _ => new ConcurrentDictionary<TObjectSequence, TAggregator>());
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
134private readonly ConcurrentDictionary<int, Watch> _wdToWatch = new ConcurrentDictionary<int, Watch>();
System.Net.Http (4)
System\Net\Http\Metrics\MetricsHandler.cs (1)
66private readonly ConcurrentDictionary<ActiveRequestsTagKey, long> _counts = new();
System\Net\Http\SocketsHttpHandler\FailedProxyCache.cs (1)
31private readonly ConcurrentDictionary<Uri, long> _failedProxies = new ConcurrentDictionary<Uri, long>();
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
63_pools = new ConcurrentDictionary<HttpConnectionKey, HttpConnectionPool>();
System\Net\Http\SocketsHttpHandler\Metrics\SocketsHttpHandlerMetrics.cs (1)
71private readonly ConcurrentDictionary<OpenConnectionsTagKey, long> _counts = new();
System.Net.Http.WinHttpHandler (1)
System\Net\Http\WinHttpHandler.cs (1)
100private readonly ConcurrentDictionary<CachedCertificateKey, CachedCertificateValue> _cachedCertificates = new();
System.Net.Quic (1)
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (1)
38private readonly ConcurrentDictionary<TKey, THandle> _cache = new();
System.Net.Requests (1)
System\Net\ServicePoint\ServicePointManager.cs (1)
18private static readonly ConcurrentDictionary<string, WeakReference<ServicePoint>> s_servicePointTable = new ConcurrentDictionary<string, WeakReference<ServicePoint>>();
System.Net.Security (2)
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (1)
38private readonly ConcurrentDictionary<TKey, THandle> _cache = new();
System\Net\Security\SslSessionsCache.cs (1)
18new ConcurrentDictionary<SslCredKey, SafeCredentialReference>();
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Cache.cs (1)
1396private readonly ConcurrentDictionary<int, int> _transitionCache = new ConcurrentDictionary<int, int>();
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\ContextAware.cs (1)
54private readonly ConcurrentDictionary<TKey, TValue> _fastDictionary = new();
System\Runtime\Serialization\DataContract.cs (1)
319private static readonly ConcurrentDictionary<nint, int> s_typeToIDCache = new();
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
155private static readonly ConcurrentDictionary<nint, int> s_typeToIDCache = new();
System.Private.Windows.Core.TestUtilities (1)
NoAssertContext.cs (1)
31private static readonly ConcurrentDictionary<int, int> s_suppressedThreads = new();
System.Reflection.MetadataLoadContext (8)
System\CoreRtBridge.cs (1)
52private readonly ConcurrentDictionary<K, V> _dict = new ConcurrentDictionary<K, V>();
System\Reflection\MetadataLoadContext.Loading.cs (1)
18private readonly ConcurrentDictionary<RoAssemblyName, RoAssembly> _loadedAssemblies = new ConcurrentDictionary<RoAssemblyName, RoAssembly>();
System\Reflection\MetadataLoadContext.Resolving.cs (1)
23private readonly ConcurrentDictionary<RoAssemblyName, RoAssembly> _binds = new ConcurrentDictionary<RoAssemblyName, RoAssembly>();
System\Reflection\TypeLoading\Modules\RoModule.Unifier.cs (5)
21private readonly ConcurrentDictionary<RoType, RoArrayType> _szArrayDict = new ConcurrentDictionary<RoType, RoArrayType>(); 35private readonly ConcurrentDictionary<RoArrayType.Key, RoArrayType> _mdArrayDict = new ConcurrentDictionary<RoArrayType.Key, RoArrayType>(); 48private readonly ConcurrentDictionary<RoType, RoByRefType> _byRefDict = new ConcurrentDictionary<RoType, RoByRefType>(); 59private readonly ConcurrentDictionary<RoType, RoPointerType> _pointerDict = new ConcurrentDictionary<RoType, RoPointerType>(); 70private readonly ConcurrentDictionary<RoConstructedGenericType.Key, RoConstructedGenericType> _constructedGenericTypeDict = new ConcurrentDictionary<RoConstructedGenericType.Key, RoConstructedGenericType>();
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\SerializationEvents.cs (1)
14private static readonly ConcurrentDictionary<Type, SerializationEvents> s_cache = new();
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\FormatterServices.cs (1)
18private static readonly ConcurrentDictionary<MemberHolder, MemberInfo[]> s_memberInfoTable = new ConcurrentDictionary<MemberHolder, MemberInfo[]>();
System\Runtime\Serialization\SerializationEventsCache.cs (1)
98private static readonly ConcurrentDictionary<Type, SerializationEvents> s_cache = new ConcurrentDictionary<Type, SerializationEvents>();
System.Security.Cryptography (3)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\BCryptAlgorithmCache.cs (2)
14private static readonly ConcurrentDictionary<(string HashAlgorithmId, BCryptOpenAlgorithmProviderFlags Flags), (SafeBCryptAlgorithmHandle Handle, int HashSizeInBytes)> s_handles = new(); 15private static readonly ConcurrentDictionary<(string HashAlgorithmId, BCryptOpenAlgorithmProviderFlags Flags), bool> s_supported = new();
System\Security\Cryptography\OidLookup.cs (1)
13new ConcurrentDictionary<string, string>();
System.ServiceModel.Primitives (4)
Internals\System\Runtime\InternalBufferManager.cs (1)
52private ConcurrentDictionary<int, string> _buffersPooled = new ConcurrentDictionary<int, string>();
Internals\System\Runtime\TimeoutHelper.cs (1)
259new ConcurrentDictionary<long, Task<CancellationToken>>();
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
283private static ConcurrentDictionary<Type, TaskCompletionSourceInfo> s_cache = new ConcurrentDictionary<Type, TaskCompletionSourceInfo>();
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
1291private static ConcurrentDictionary<XmlMapping, string> s_dictionary = new ConcurrentDictionary<XmlMapping, string>();
System.Text.Encoding.CodePages (3)
System\Text\EncodingTable.cs (3)
12private static readonly ConcurrentDictionary<int, string> s_codePageToWebNameCache = new(); 13private static readonly ConcurrentDictionary<int, string> s_codePageToEnglishNameCache = new(); 14private static readonly ConcurrentDictionary<int, (ushort FamilyCodePage, byte CodePageFlags)> s_codePageToItemCache = new();
System.Text.Json (5)
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (1)
65_nameCacheForWriting = new();
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
239private readonly ConcurrentDictionary<Type, CacheEntry> _cache = new();
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Union.cs (1)
201var caseIndex = new ConcurrentDictionary<Type, UnionCaseEntry?>();
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
18private readonly ConcurrentDictionary<Type, DerivedJsonTypeInfo?> _typeToDiscriminatorId = new();
System\Text\Json\Serialization\Metadata\ReflectionEmitCachingMemberAccessor.Cache.cs (1)
20private readonly ConcurrentDictionary<TKey, CacheEntry> _cache = new();
System.Windows.Forms (2)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
27_cachedAssemblies ??= new();
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
24private static readonly ConcurrentDictionary<int, Font> s_defaultFontCache = new();
vstest.console (1)
Internal\ConsoleLogger.cs (1)
201LeafTestResults = new ConcurrentDictionary<Guid, MinimalTestResult>();
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
201LeafTestResults = new ConcurrentDictionary<Guid, MinimalTestResult>();