9 types derived from ConcurrentDictionary
GenerateDocumentationAndConfigFiles (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
NuGet.Build.Tasks.Console (1)
Roslyn.Diagnostics.Analyzers (1)
System.Diagnostics.DiagnosticSource (1)
1078 instantiations of ConcurrentDictionary
aspire (5)
Aspire.Cli.Tests (2)
Aspire.Dashboard (18)
Aspire.Dashboard.Components.Tests (7)
Controls\ResourceDetailsTests.cs (7)
40builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel> (resource1.Name, resource1)]));
130builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel> (resource1.Name, resource1)]));
220builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel> (resource1.Name, resource1)]));
304builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel> (resource1.Name, resource1)]));
391builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
427builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
463builder.Add(p => p.ResourceByName, new ConcurrentDictionary<string, ResourceViewModel>([new KeyValuePair<string, ResourceViewModel>(resource.Name, resource)]));
Aspire.Dashboard.Tests (4)
Aspire.Hosting (11)
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Integration.Analyzers (2)
Aspire.Hosting.Maui (1)
Aspire.Hosting.RemoteHost (6)
Aspire.Hosting.Tests (2)
Aspire.StackExchange.Redis (1)
src\Vendoring\OpenTelemetry.Instrumentation.StackExchangeRedis\StackExchangeRedisConnectionInstrumentation.cs (1)
31= new();
dotnet (6)
dotnet-aot (1)
dotnet-svcutil-lib (3)
GenerateDocumentationAndConfigFiles (20)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
ILCompiler.Compiler (5)
ILCompiler.ReadyToRun (17)
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>();
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Authorization.Policy (1)
Microsoft.AspNetCore.Components (20)
Microsoft.AspNetCore.Components.Analyzers (2)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (17)
Microsoft.AspNetCore.Components.Forms (4)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Components.Server (5)
Microsoft.AspNetCore.Components.Testing (3)
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Microsoft.AspNetCore.HeaderParsing (3)
Microsoft.AspNetCore.Http.Abstractions (4)
Microsoft.AspNetCore.Http.Connections (2)
Microsoft.AspNetCore.Http.Extensions (5)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.Core (15)
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
Microsoft.AspNetCore.OpenApi (5)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.Routing (4)
Microsoft.AspNetCore.Routing.Abstractions (2)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (5)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Microsoft.Build (61)
src\msbuild\src\Shared\TypeLoader.cs (5)
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>());
450_typeNameToType = new(StringComparer.OrdinalIgnoreCase);
452_publicTypeNameToLoadedType = new(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Framework (15)
Microsoft.Build.NuGetSdkResolver (1)
Microsoft.Build.Tasks.Core (13)
RedistList.cs (5)
52private readonly ConcurrentDictionary<AssemblyNameExtension, bool> _assemblyNameInRedist = new ConcurrentDictionary<AssemblyNameExtension, bool>(AssemblyNameComparer.GenericComparer);
57private readonly ConcurrentDictionary<string, AssemblyEntry> _assemblyNameToUnifiedAssemblyName = new ConcurrentDictionary<string, AssemblyEntry>(StringComparer.OrdinalIgnoreCase);
62private readonly ConcurrentDictionary<string, AssemblyNameExtension> _assemblyNameToAssemblyNameExtension = new ConcurrentDictionary<string, AssemblyNameExtension>(StringComparer.OrdinalIgnoreCase);
68private readonly ConcurrentDictionary<AssemblyNameExtension, AssemblyNameExtension> _remappingCache = new ConcurrentDictionary<AssemblyNameExtension, AssemblyNameExtension>(AssemblyNameComparer.GenericComparerConsiderRetargetable);
71private readonly ConcurrentDictionary<string, Dictionary<string, string>> _cachedDenyList = new ConcurrentDictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis (42)
CodeGen\PrivateImplementationDetails.cs (8)
72new ConcurrentDictionary<(ImmutableArray<byte> Data, ushort Alignment), MappedField>(DataAndUShortEqualityComparer.Instance);
76new ConcurrentDictionary<(ImmutableArray<byte> Data, ushort ElementType), CachedArrayField>(DataAndUShortEqualityComparer.Instance);
80new ConcurrentDictionary<(ImmutableArray<ConstantValue> Constants, ushort ElementType), CachedArrayField>(ConstantValueAndUShortEqualityComparer.Instance);
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>();
Emit\NoPia\EmbeddedTypesManager.cs (5)
69public readonly ConcurrentDictionary<TNamedTypeSymbol, TEmbeddedType> EmbeddedTypesMap = new ConcurrentDictionary<TNamedTypeSymbol, TEmbeddedType>(ReferenceEqualityComparer.Instance);
70public readonly ConcurrentDictionary<TFieldSymbol, TEmbeddedField> EmbeddedFieldsMap = new ConcurrentDictionary<TFieldSymbol, TEmbeddedField>(ReferenceEqualityComparer.Instance);
71public readonly ConcurrentDictionary<TMethodSymbol, TEmbeddedMethod> EmbeddedMethodsMap = new ConcurrentDictionary<TMethodSymbol, TEmbeddedMethod>(ReferenceEqualityComparer.Instance);
72public readonly ConcurrentDictionary<TPropertySymbol, TEmbeddedProperty> EmbeddedPropertiesMap = new ConcurrentDictionary<TPropertySymbol, TEmbeddedProperty>(ReferenceEqualityComparer.Instance);
73public readonly ConcurrentDictionary<TEventSymbol, TEmbeddedEvent> EmbeddedEventsMap = new ConcurrentDictionary<TEventSymbol, TEmbeddedEvent>(ReferenceEqualityComparer.Instance);
Microsoft.CodeAnalysis.Analyzers (25)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
Microsoft.CodeAnalysis.AnalyzerUtilities (22)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
Microsoft.CodeAnalysis.CodeStyle (13)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp (31)
Symbols\Source\SourceAssemblySymbol.cs (4)
97private readonly ConcurrentDictionary<FieldSymbol, bool> _unassignedFieldsMap = new ConcurrentDictionary<FieldSymbol, bool>();
2166Interlocked.CompareExchange(ref _optimisticallyGrantedInternalsAccess, new ConcurrentDictionary<AssemblySymbol, bool>(), null);
2309new ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>>(StringComparer.OrdinalIgnoreCase), null);
2336keys = new ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>();
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.Features (16)
Microsoft.CodeAnalysis.NetAnalyzers (61)
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.Collector.cs (10)
22public ConcurrentDictionary<IFieldSymbol, PooledConcurrentSet<IMethodSymbol>> VirtualDispatchFields { get; } = new(SymbolEqualityComparer.Default);
23public ConcurrentDictionary<IPropertySymbol, PooledConcurrentSet<IMethodSymbol>> VirtualDispatchProperties { get; } = new(SymbolEqualityComparer.Default);
24public ConcurrentDictionary<ILocalSymbol, PooledConcurrentSet<IMethodSymbol>> VirtualDispatchLocals { get; } = new(SymbolEqualityComparer.Default);
25public ConcurrentDictionary<IParameterSymbol, PooledConcurrentSet<IMethodSymbol>> VirtualDispatchParameters { get; } = new(SymbolEqualityComparer.Default);
27public ConcurrentDictionary<IFieldSymbol, PooledConcurrentSet<ITypeSymbol>> FieldAssignments { get; } = new(SymbolEqualityComparer.Default);
28public ConcurrentDictionary<IPropertySymbol, PooledConcurrentSet<ITypeSymbol>> PropertyAssignments { get; } = new(SymbolEqualityComparer.Default);
29public ConcurrentDictionary<ILocalSymbol, PooledConcurrentSet<ITypeSymbol>> LocalAssignments { get; } = new(SymbolEqualityComparer.Default);
30public ConcurrentDictionary<IParameterSymbol, PooledConcurrentSet<ITypeSymbol>> ParameterAssignments { get; } = new(SymbolEqualityComparer.Default);
32public ConcurrentDictionary<IMethodSymbol, PooledConcurrentSet<ITypeSymbol>> MethodReturns { get; } = new(SymbolEqualityComparer.Default);
34public ConcurrentDictionary<IMethodSymbol, bool> MethodsAssignedToDelegate { get; } = new(SymbolEqualityComparer.Default);
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>());
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
82= new();
Microsoft.CodeAnalysis.ResxSourceGenerator (19)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
Microsoft.CodeAnalysis.VisualBasic (24)
Microsoft.CodeAnalysis.Workspaces (21)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Microsoft.CSharp (1)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Microsoft.Diagnostics.NETCore.Client (1)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.HotReload.WebAssembly.Browser (2)
Microsoft.DotNet.ProjectTools (1)
Microsoft.DotNet.SdkResolver (2)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.DependencyInjection (6)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.DotNetDeltaApplier (2)
Microsoft.Extensions.FileProviders.Physical (3)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (3)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Localization (3)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Console (2)
Microsoft.Extensions.Logging.TraceSource (1)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.ServiceDiscovery (2)
Microsoft.Extensions.Telemetry (4)
Microsoft.Extensions.Validation.ValidationsGenerator (3)
Microsoft.Gen.Metrics.Generated.Tests (95)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.JSInterop (8)
Microsoft.Maui (8)
Microsoft.Maui.Controls (2)
Microsoft.ML.Core (3)
Microsoft.ML.Core.Tests (2)
Microsoft.ML.Data (1)
Microsoft.ML.Ensemble (1)
Microsoft.ML.FastTree (1)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.InternalCodeAnalyzer (2)
Microsoft.ML.Tokenizers (1)
Microsoft.NET.Build.Containers (2)
Microsoft.NET.Build.Extensions.Tasks (2)
Microsoft.NET.Build.Tasks (3)
Microsoft.NET.StringTools (2)
Microsoft.TemplateEngine.Cli (1)
Microsoft.TemplateEngine.Core (6)
Microsoft.TemplateEngine.Edge (2)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Microsoft.TestPlatform.CoreUtilities (2)
Microsoft.TestPlatform.CrossPlatEngine (6)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.VisualStudio.TestPlatform.Common (5)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
MSBuild (8)
src\msbuild\src\Shared\TypeLoader.cs (5)
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>());
450_typeNameToType = new(StringComparer.OrdinalIgnoreCase);
452_publicTypeNameToLoadedType = new(StringComparer.OrdinalIgnoreCase);
NuGet.Build.Tasks.Console (3)
NuGet.Commands (19)
NuGet.Common (1)
NuGet.Configuration (2)
NuGet.Credentials (2)
NuGet.DependencyResolver.Core (6)
NuGet.Frameworks (1)
NuGet.LibraryModel (3)
NuGet.PackageManagement (3)
NuGet.Packaging (5)
NuGet.ProjectModel (1)
NuGet.Protocol (39)
PresentationCore (1)
PresentationFramework (3)
Roslyn.Diagnostics.Analyzers (27)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
43= new();
Shared (2)
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.TypeConverter (2)
System.Data.Common (3)
System.Data.Odbc (3)
System.Data.OleDb (3)
System.Diagnostics.DiagnosticSource (3)
System.IO.FileSystem.Watcher (1)
System.Net.Http (4)
System.Net.Http.WinHttpHandler (1)
System.Net.Quic (1)
System.Net.Requests (1)
System.Net.Security (2)
System.Private.CoreLib (2)
System.Private.DataContractSerialization (3)
System.Private.Windows.Core.TestUtilities (1)
System.Reflection.MetadataLoadContext (8)
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.Runtime.InteropServices (1)
System.Runtime.Serialization.Formatters (2)
System.Security.Cryptography (7)
System.ServiceModel.Primitives (4)
System.Text.Encoding.CodePages (4)
System.Text.Json (6)
System.Text.RegularExpressions (1)
System.Windows.Forms (4)
System.Xaml (2)
vstest.console (1)
vstest.console.arm64 (1)
1764 references to ConcurrentDictionary
aspire (10)
Aspire.Cli.Tests (5)
Aspire.Dashboard (25)
Aspire.Dashboard.Tests (4)
Aspire.Hosting (21)
Dcp\DcpExecutor.cs (3)
91private readonly ConcurrentDictionary<string, (CancellationTokenSource Cancellation, Task Task)> _logStreams = new();
486private async Task ProcessResourceChange<T>(WatchEventType watchEventType, T resource, ConcurrentDictionary<string, T> resourceByName, string resourceKind, Func<T, CustomResourceSnapshot, CustomResourceSnapshot> snapshotFactory) where T : CustomResource
823private static bool ProcessResourceChange<T>(ConcurrentDictionary<string, T> map, WatchEventType watchEventType, T resource)
Aspire.Hosting.Analyzers (4)
Aspire.Hosting.Integration.Analyzers (5)
AspireExportAnalyzer.cs (5)
75var exportsByKey = new ConcurrentDictionary<(string ExportId, string TargetType), ConcurrentBag<(IMethodSymbol Method, Location Location)>>();
110var reportedParameters = new ConcurrentDictionary<string, byte>(StringComparer.Ordinal);
123ConcurrentDictionary<(string ExportId, string TargetType), ConcurrentBag<(IMethodSymbol Method, Location Location)>> exportsByKey)
335ConcurrentDictionary<string, byte> reportedParameters)
762ConcurrentDictionary<(string ExportId, string TargetType), ConcurrentBag<(IMethodSymbol Method, Location Location)>> exportsByKey)
Aspire.Hosting.Maui (1)
Aspire.Hosting.RemoteHost (6)
Aspire.Hosting.Tests (2)
Aspire.StackExchange.Redis (1)
dotnet (9)
dotnet-aot (1)
dotnet-svcutil-lib (3)
GenerateDocumentationAndConfigFiles (45)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (3)
19public static void Add<K, V>(this ConcurrentDictionary<K, V> dict, K key, V value)
28public static TValue GetOrAdd<TKey, TArg, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument)
45this ConcurrentDictionary<TKey, TValue> dictionary,
ILCompiler.Compiler (4)
ILCompiler.ReadyToRun (19)
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>();
Microsoft.AspNetCore.App.Analyzers (5)
Microsoft.AspNetCore.Authorization.Policy (2)
Microsoft.AspNetCore.Components (20)
Microsoft.AspNetCore.Components.Analyzers (3)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (22)
Microsoft.AspNetCore.Components.Forms (5)
Microsoft.AspNetCore.Components.QuickGrid (2)
Microsoft.AspNetCore.Components.Server (5)
Microsoft.AspNetCore.Components.Testing (3)
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Microsoft.AspNetCore.HeaderParsing (3)
Microsoft.AspNetCore.Http.Abstractions (7)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Extensions (7)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.Core (18)
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (3)
Microsoft.AspNetCore.Mvc.Razor (5)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
Microsoft.AspNetCore.OpenApi (5)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.Routing (9)
Microsoft.AspNetCore.Routing.Abstractions (5)
Microsoft.AspNetCore.Server.HttpSys (3)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Transport.DirectTls (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.SignalR.Client.Core (1)
Microsoft.AspNetCore.SignalR.Core (13)
DefaultHubLifetimeManager.cs (4)
147private static void SendToGroupConnections(string methodName, object?[] args, ConcurrentDictionary<string, HubConnectionContext> connections, Func<HubConnectionContext, object?, bool>? include, object? state, ref List<Task>? tasks, ref SerializedHubMessage? message, CancellationToken cancellationToken)
206var group = _groups[groupName];
238var group = _groups[groupName];
258var group = _groups[groupName];
Microsoft.AspNetCore.SignalR.StackExchangeRedis (3)
Microsoft.Build (94)
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (13)
24private static readonly Lazy<ConcurrentDictionary<object, object>> s_appDomainLifetimeObjects = new Lazy<ConcurrentDictionary<object, object>>();
29private Lazy<ConcurrentDictionary<object, object>> _buildLifetimeObjects = new Lazy<ConcurrentDictionary<object, object>>();
60ConcurrentDictionary<object, object> dict = GetCollectionForLifetime(lifetime, dontCreate: false);
70ConcurrentDictionary<object, object> dict = GetCollectionForLifetime(lifetime, dontCreate: true);
82ConcurrentDictionary<object, object> dict = GetCollectionForLifetime(lifetime, dontCreate: true);
96var collection = GetCollectionForLifetime(lifetime, dontCreate: true);
103protected ConcurrentDictionary<object, object> GetCollectionForLifetime(RegisteredTaskObjectLifetime lifetime, bool dontCreate)
105Lazy<ConcurrentDictionary<object, object>> dict = GetLazyCollectionForLifetime(lifetime);
119protected Lazy<ConcurrentDictionary<object, object>> GetLazyCollectionForLifetime(RegisteredTaskObjectLifetime lifetime)
121Lazy<ConcurrentDictionary<object, object>> dict = null;
139private static void DisposeObjects(Lazy<ConcurrentDictionary<object, object>> lifetimeObjects)
src\msbuild\src\Shared\TypeLoader.cs (11)
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>>();
349ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>> cache,
358ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes> loadInfoToType =
401private ConcurrentDictionary<string, Type> _typeNameToType;
408private ConcurrentDictionary<string, LoadedType> _publicTypeNameToLoadedType;
Microsoft.Build.Framework (20)
Utilities\FileMatcher.cs (7)
147private static readonly Lazy<ConcurrentDictionary<string, IReadOnlyList<string>>> s_cachedGlobExpansions = new(() => new ConcurrentDictionary<string, IReadOnlyList<string>>(StringComparer.Ordinal));
148private static readonly Lazy<ConcurrentDictionary<string, object>> s_cachedGlobExpansionsLock = new(() => new ConcurrentDictionary<string, object>(StringComparer.Ordinal));
149private static readonly Lazy<ConcurrentDictionary<
153private readonly ConcurrentDictionary<string, IReadOnlyList<string>> _cachedGlobExpansions;
154private readonly Lazy<ConcurrentDictionary<string, object>> _cachedGlobExpansionsLock = new(() => new ConcurrentDictionary<string, object>(StringComparer.Ordinal));
191ConcurrentDictionary<string, IReadOnlyList<string>> fileEntryExpansionCache = null,
212ConcurrentDictionary<string, IReadOnlyList<string>> getFileSystemDirectoryEntriesCache = null,
Microsoft.Build.NuGetSdkResolver (1)
Microsoft.Build.Tasks.Core (25)
AssemblyDependency\ResolveAssemblyReference.cs (3)
2568ConcurrentDictionary<string, AssemblyMetadata> assemblyMetadataCache =
2878private AssemblyNameExtension[] GetDependencies(Reference resolvedReference, FileExists fileExists, GetAssemblyMetadata getAssemblyMetadata, ConcurrentDictionary<string, AssemblyMetadata> assemblyMetadataCache)
3457(string path, ConcurrentDictionary<string, AssemblyMetadata> assemblyMetadataCache, out AssemblyNameExtension[] dependencies, out string[] scatterFiles, out FrameworkNameVersioning frameworkName)
GetSDKReferenceFiles.cs (8)
54private readonly ConcurrentDictionary<string, SDKInfo> _cacheFileForSDKs = new ConcurrentDictionary<string, SDKInfo>(StringComparer.OrdinalIgnoreCase);
995var references = new ConcurrentDictionary<string, SdkReferenceInfo>(StringComparer.OrdinalIgnoreCase);
996var directoryToFileList = new ConcurrentDictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
1025private void PopulateReferencesDictionaryFromManifestPaths(ConcurrentDictionary<string, List<string>> referencesByDirectory, ConcurrentDictionary<string, SdkReferenceInfo> references, string[] sdkManifestReferences)
1043private void PopulateReferencesDictionaryFromPaths(ConcurrentDictionary<string, List<string>> referencesByDirectory, ConcurrentDictionary<string, SdkReferenceInfo> references, IEnumerable<string> referenceDirectories)
1060private static void PopulateRedistDictionaryFromPaths(ConcurrentDictionary<string, List<string>> redistFilesByDirectory, IEnumerable<string> redistDirectories)
RedistList.cs (5)
52private readonly ConcurrentDictionary<AssemblyNameExtension, bool> _assemblyNameInRedist = new ConcurrentDictionary<AssemblyNameExtension, bool>(AssemblyNameComparer.GenericComparer);
57private readonly ConcurrentDictionary<string, AssemblyEntry> _assemblyNameToUnifiedAssemblyName = new ConcurrentDictionary<string, AssemblyEntry>(StringComparer.OrdinalIgnoreCase);
62private readonly ConcurrentDictionary<string, AssemblyNameExtension> _assemblyNameToAssemblyNameExtension = new ConcurrentDictionary<string, AssemblyNameExtension>(StringComparer.OrdinalIgnoreCase);
68private readonly ConcurrentDictionary<AssemblyNameExtension, AssemblyNameExtension> _remappingCache = new ConcurrentDictionary<AssemblyNameExtension, AssemblyNameExtension>(AssemblyNameComparer.GenericComparerConsiderRetargetable);
71private readonly ConcurrentDictionary<string, Dictionary<string, string>> _cachedDenyList = new ConcurrentDictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis (66)
CodeGen\PrivateImplementationDetails.cs (8)
71private readonly ConcurrentDictionary<(ImmutableArray<byte> Data, ushort Alignment), MappedField> _mappedFields =
75private readonly ConcurrentDictionary<(ImmutableArray<byte> Data, ushort ElementType), CachedArrayField> _cachedArrayFields =
79private readonly ConcurrentDictionary<(ImmutableArray<ConstantValue> Constants, ushort ElementType), CachedArrayField> _cachedArrayFieldsForConstants =
86private readonly ConcurrentDictionary<int, InstrumentationPayloadRootField> _instrumentationPayloadRootFields = new ConcurrentDictionary<int, InstrumentationPayloadRootField>();
90private readonly ConcurrentDictionary<string, Cci.IMethodDefinition> _synthesizedMethods =
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>();
Collections\CachingDictionary.cs (7)
128private ConcurrentDictionary<TKey, ImmutableArray<TElement>> CreateConcurrentDictionary()
149ConcurrentDictionary<TKey, ImmutableArray<TElement>>? concurrentMap;
173concurrentMap = localMap as ConcurrentDictionary<TKey, ImmutableArray<TElement>>;
185private ImmutableArray<TElement> AddToConcurrentMap(ConcurrentDictionary<TKey, ImmutableArray<TElement>> map, TKey key)
206return existingMap == null || existingMap is ConcurrentDictionary<TKey, ImmutableArray<TElement>>;
214private IDictionary<TKey, ImmutableArray<TElement>> CreateFullyPopulatedMap(ConcurrentDictionary<TKey, ImmutableArray<TElement>>? existingMap)
254IDictionary<TKey, ImmutableArray<TElement>> fullyPopulatedMap = CreateFullyPopulatedMap((ConcurrentDictionary<TKey, ImmutableArray<TElement>>?)currentMap);
DiagnosticAnalyzer\AnalyzerDriver.cs (9)
111private ConcurrentDictionary<(INamespaceOrTypeSymbol, DiagnosticAnalyzer), IGroupedAnalyzerActions>? _lazyPerSymbolAnalyzerActionsCache;
119private ConcurrentDictionary<(INamespaceOrTypeSymbol, DiagnosticAnalyzer), IGroupedAnalyzerActions> PerSymbolAnalyzerActionsCache
236private ConcurrentDictionary<SyntaxTree, bool>? _lazyGeneratedCodeFilesMap;
241private ConcurrentDictionary<SyntaxTree, bool> GeneratedCodeFilesMap
264private ConcurrentDictionary<SyntaxTree, ImmutableHashSet<DiagnosticAnalyzer>>? _lazySuppressedAnalyzersForTreeMap;
269private ConcurrentDictionary<SyntaxTree, ImmutableHashSet<DiagnosticAnalyzer>> SuppressedAnalyzersForTreeMap
294private ConcurrentDictionary<ISymbol, bool>? _lazyIsGeneratedCodeSymbolMap;
299private ConcurrentDictionary<ISymbol, bool> IsGeneratedCodeSymbolMap
311private ConcurrentDictionary<SyntaxTree, bool>? _lazyTreesWithHiddenRegionsMap;
Emit\NoPia\EmbeddedTypesManager.cs (5)
69public readonly ConcurrentDictionary<TNamedTypeSymbol, TEmbeddedType> EmbeddedTypesMap = new ConcurrentDictionary<TNamedTypeSymbol, TEmbeddedType>(ReferenceEqualityComparer.Instance);
70public readonly ConcurrentDictionary<TFieldSymbol, TEmbeddedField> EmbeddedFieldsMap = new ConcurrentDictionary<TFieldSymbol, TEmbeddedField>(ReferenceEqualityComparer.Instance);
71public readonly ConcurrentDictionary<TMethodSymbol, TEmbeddedMethod> EmbeddedMethodsMap = new ConcurrentDictionary<TMethodSymbol, TEmbeddedMethod>(ReferenceEqualityComparer.Instance);
72public readonly ConcurrentDictionary<TPropertySymbol, TEmbeddedProperty> EmbeddedPropertiesMap = new ConcurrentDictionary<TPropertySymbol, TEmbeddedProperty>(ReferenceEqualityComparer.Instance);
73public readonly ConcurrentDictionary<TEventSymbol, TEmbeddedEvent> EmbeddedEventsMap = new ConcurrentDictionary<TEventSymbol, TEmbeddedEvent>(ReferenceEqualityComparer.Instance);
InternalUtilities\ConcurrentDictionaryExtensions.cs (3)
19public static void Add<K, V>(this ConcurrentDictionary<K, V> dict, K key, V value)
28public static TValue GetOrAdd<TKey, TArg, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument)
45this ConcurrentDictionary<TKey, TValue> dictionary,
Microsoft.CodeAnalysis.Analyzers (57)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (3)
19public static void Add<K, V>(this ConcurrentDictionary<K, V> dict, K key, V value)
28public static TValue GetOrAdd<TKey, TArg, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument)
45this ConcurrentDictionary<TKey, TValue> dictionary,
Microsoft.CodeAnalysis.AnalyzerUtilities (46)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (3)
19public static void Add<K, V>(this ConcurrentDictionary<K, V> dict, K key, V value)
28public static TValue GetOrAdd<TKey, TArg, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument)
45this ConcurrentDictionary<TKey, TValue> dictionary,
Microsoft.CodeAnalysis.CodeStyle (46)
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (12)
51private static readonly ObjectPool<ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>>> s_fieldToUsageLocationPool = new(() => []);
58protected static void AddFieldUsage(ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites, IFieldSymbol field, SyntaxNode location)
61private static void ClearAndFree(ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> multiMap)
94HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken);
109var ineligibleFieldUsageIfOutsideProperty = s_fieldToUsageLocationPool.Allocate();
114var fieldReads = s_fieldToUsageLocationPool.Allocate();
115var fieldWrites = s_fieldToUsageLocationPool.Allocate();
222ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldReads,
223ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites,
538ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty,
539ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldReads,
540ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites,
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (3)
19public static void Add<K, V>(this ConcurrentDictionary<K, V> dict, K key, V value)
28public static TValue GetOrAdd<TKey, TArg, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument)
45this ConcurrentDictionary<TKey, TValue> dictionary,
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp (63)
Symbols\Source\SourceAssemblySymbol.cs (11)
97private readonly ConcurrentDictionary<FieldSymbol, bool> _unassignedFieldsMap = new ConcurrentDictionary<FieldSymbol, bool>();
533private ConcurrentDictionary<AssemblySymbol, bool> _optimisticallyGrantedInternalsAccess;
738foreach (var keys in _lazyInternalsVisibleToMap.Values)
2102ConcurrentDictionary<AssemblySymbol, bool> haveGrantedAssemblies = _optimisticallyGrantedInternalsAccess;
2133ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> result = null;
2197private ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> _lazyInternalsVisibleToMap;
2275ref ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> lazyInternalsVisibleToMap)
2309new ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>>(StringComparer.OrdinalIgnoreCase), null);
2329ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> keys = null;
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
Microsoft.CodeAnalysis.CSharp.Features (8)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.Features (62)
AddImport\AbstractAddImportFeatureService.cs (6)
147var projectToAssembly = new ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>>(concurrencyLevel: 2, capacity: project.Solution.ProjectIds.Count);
148var referenceToCompilation = new ConcurrentDictionary<PortableExecutableReference, Compilation>(concurrencyLevel: 2, capacity: project.Solution.Projects.Sum(p => p.MetadataReferences.Count));
172ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> projectToAssembly,
173ConcurrentDictionary<PortableExecutableReference, Compilation> referenceToCompilation,
217ConcurrentDictionary<Project, AsyncLazy<IAssemblySymbol?>> projectToAssembly,
262ConcurrentDictionary<PortableExecutableReference, Compilation> referenceToCompilation,
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (8)
24using CachedIndexMap = ConcurrentDictionary<(IChecksummedPersistentStorageService service, DocumentKey documentKey, StringTable stringTable), AsyncLazy<TopLevelSyntaxTreeIndex?>>;
25using CachedFilterIndexMap = ConcurrentDictionary<(IChecksummedPersistentStorageService service, DocumentKey documentKey, StringTable stringTable), AsyncLazy<NavigateToSearchIndex?>>;
34private static CachedIndexMap? s_cachedIndexMap = [];
40private static CachedFilterIndexMap? s_cachedFilterIndexMap = [];
58[NotNullWhen(true)] out CachedIndexMap? cachedIndexMap,
59[NotNullWhen(true)] out CachedFilterIndexMap? cachedFilterIndexMap,
188if (!ShouldSearchCachedDocuments(out _, out var cachedFilterIndexMap, out var stringTable))
209if (!ShouldSearchCachedDocuments(out var cachedIndexMap, out _, out var stringTable))
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (12)
51private static readonly ObjectPool<ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>>> s_fieldToUsageLocationPool = new(() => []);
58protected static void AddFieldUsage(ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites, IFieldSymbol field, SyntaxNode location)
61private static void ClearAndFree(ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> multiMap)
94HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken);
109var ineligibleFieldUsageIfOutsideProperty = s_fieldToUsageLocationPool.Allocate();
114var fieldReads = s_fieldToUsageLocationPool.Allocate();
115var fieldWrites = s_fieldToUsageLocationPool.Allocate();
222ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldReads,
223ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites,
538ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty,
539ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldReads,
540ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> fieldWrites,
Microsoft.CodeAnalysis.Features.ExternalAccess (3)
Microsoft.CodeAnalysis.NetAnalyzers (116)
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.Collector.cs (11)
22public ConcurrentDictionary<IFieldSymbol, PooledConcurrentSet<IMethodSymbol>> VirtualDispatchFields { get; } = new(SymbolEqualityComparer.Default);
23public ConcurrentDictionary<IPropertySymbol, PooledConcurrentSet<IMethodSymbol>> VirtualDispatchProperties { get; } = new(SymbolEqualityComparer.Default);
24public ConcurrentDictionary<ILocalSymbol, PooledConcurrentSet<IMethodSymbol>> VirtualDispatchLocals { get; } = new(SymbolEqualityComparer.Default);
25public ConcurrentDictionary<IParameterSymbol, PooledConcurrentSet<IMethodSymbol>> VirtualDispatchParameters { get; } = new(SymbolEqualityComparer.Default);
27public ConcurrentDictionary<IFieldSymbol, PooledConcurrentSet<ITypeSymbol>> FieldAssignments { get; } = new(SymbolEqualityComparer.Default);
28public ConcurrentDictionary<IPropertySymbol, PooledConcurrentSet<ITypeSymbol>> PropertyAssignments { get; } = new(SymbolEqualityComparer.Default);
29public ConcurrentDictionary<ILocalSymbol, PooledConcurrentSet<ITypeSymbol>> LocalAssignments { get; } = new(SymbolEqualityComparer.Default);
30public ConcurrentDictionary<IParameterSymbol, PooledConcurrentSet<ITypeSymbol>> ParameterAssignments { get; } = new(SymbolEqualityComparer.Default);
32public ConcurrentDictionary<IMethodSymbol, PooledConcurrentSet<ITypeSymbol>> MethodReturns { get; } = new(SymbolEqualityComparer.Default);
34public ConcurrentDictionary<IMethodSymbol, bool> MethodsAssignedToDelegate { get; } = new(SymbolEqualityComparer.Default);
62static void DrainDictionary<T, U>(ConcurrentDictionary<T, PooledConcurrentSet<U>> d)
Microsoft.NetCore.Analyzers\Runtime\DetectPreviewFeatureAnalyzer.cs (18)
244ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols = new();
291ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
322ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
337ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
373ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
387ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
458ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
518private static bool SymbolIsStaticAndAbstract(ISymbol symbol, ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols, INamedTypeSymbol previewFeatureAttributeSymbol)
526ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
670ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
701ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
718ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
743ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
848ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
909ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
935ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
962ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols,
986private static bool SymbolIsAnnotatedAsPreview(ISymbol symbol, ConcurrentDictionary<ISymbol, (bool isPreview, string? message, string? url)> requiresPreviewFeaturesSymbols, INamedTypeSymbol previewFeatureAttribute)
Microsoft.NetCore.Analyzers\Runtime\UseAsyncMethodInAsyncContext.cs (5)
62ConcurrentDictionary<string, INamedTypeSymbol> syncBlockingTypes = new();
206private static void GetTypeAndAddToDictionary(string key, string typeName, ConcurrentDictionary<string, INamedTypeSymbol> syncBlockingTypes, WellKnownTypeProvider wellKnownTypeProvider)
277private static bool HasAsyncCompatibleReturnType(IMethodSymbol methodSymbol, ConcurrentDictionary<string, INamedTypeSymbol> syncBlockingTypes)
286static bool CheckReturnTypeMatch(string targetType, ISymbol returnType, ConcurrentDictionary<string, INamedTypeSymbol> syncBlockingTypes)
320private static bool IsInTaskReturningMethodOrDelegate(OperationAnalysisContext context, ConcurrentDictionary<string, INamedTypeSymbol> syncBlockingTypes)
Microsoft.NetCore.Analyzers\Security\PotentialReferenceCycleInDeserializedObjectGraph.cs (17)
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>();
183void AddLine(ISymbol from, ISymbol to, ConcurrentDictionary<ISymbol, int> degree, ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>> graph)
198static bool AddPoint(ISymbol point, ConcurrentDictionary<ISymbol, int> degree, ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>> graph)
228static void ModifyDegree(ConcurrentDictionary<ISymbol, int> degree, ConcurrentDictionary<ISymbol, ConcurrentDictionary<ISymbol, bool>> graph)
Microsoft.CodeAnalysis.Razor.Compiler (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (42)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (3)
19public static void Add<K, V>(this ConcurrentDictionary<K, V> dict, K key, V value)
28public static TValue GetOrAdd<TKey, TArg, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument)
45this ConcurrentDictionary<TKey, TValue> dictionary,
Microsoft.CodeAnalysis.VisualBasic (31)
Symbols\Source\SourceAssemblySymbol.vb (7)
75Private _lazyInternalsVisibleToMap As ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)))
869Private _optimisticallyGrantedInternalsAccess As ConcurrentDictionary(Of AssemblySymbol, Boolean)
875Dim haveGrantedAssemblies As ConcurrentDictionary(Of AssemblySymbol, Boolean) = _optimisticallyGrantedInternalsAccess
909Dim result As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing
979New ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)))(StringComparer.OrdinalIgnoreCase), Nothing)
998Dim keys As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces (41)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (3)
19public static void Add<K, V>(this ConcurrentDictionary<K, V> dict, K key, V value)
28public static TValue GetOrAdd<TKey, TArg, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument)
45this ConcurrentDictionary<TKey, TValue> dictionary,
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CSharp (1)
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Microsoft.Diagnostics.NETCore.Client (1)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.HotReload.WebAssembly.Browser (2)
Microsoft.DotNet.ProjectTools (1)
Microsoft.DotNet.SdkResolver (2)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Safety (1)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.Caching.Hybrid (3)
Microsoft.Extensions.Caching.Memory (3)
Microsoft.Extensions.DependencyInjection (6)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.DotNetDeltaApplier (2)
Microsoft.Extensions.FileProviders.Physical (6)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (3)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Localization (4)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Console (3)
Microsoft.Extensions.Logging.TraceSource (1)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.ServiceDiscovery (2)
Microsoft.Extensions.ServiceDiscovery.Abstractions (1)
Microsoft.Extensions.Telemetry (6)
Microsoft.Extensions.Validation.ValidationsGenerator (4)
Microsoft.Gen.Metrics.Generated.Tests (95)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Factory.g.cs (95)
8private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, NoNamespaceCounterInstrument>
12private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, NoNamespaceHistogramInstrument>
42private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedClass.Metrics.NestedClassCounter>
46private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedClass.Metrics.NestedClassHistogram>
70private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedClass.Metrics.MultiLevelNestedClassCounter>
74private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedClass.Metrics.MultiLevelNestedClassHistogram>
105private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedRecordClass.Metrics.NestedRecordClassCounter>
109private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedRecordClass.Metrics.NestedRecordClassHistogram>
140private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedRecordStruct.Metrics.NestedRecordStructCounter>
144private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedRecordStruct.Metrics.NestedRecordStructHistogram>
175private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedStruct.Metrics.NestedStructCounter>
179private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::NestedStruct.Metrics.NestedStructHistogram>
210private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::PublicMetrics.PublicCounter>
214private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::PublicMetrics.PublicHistogram>
245private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntCounter0D>
249private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntCounterExt0D>
253private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Counter0D>
257private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.MyNamedCounter>
261private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExt0D>
265private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntCounter1D>
269private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntCounterExt1D>
273private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericFloatCounter1D>
277private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericFloatCounterExt1D>
281private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Counter2D>
285private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExt2D>
289private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Counter3D>
293private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExt3D>
297private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Counter4D>
301private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExt4D>
305private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterS0D2>
309private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExtS0D2>
313private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterS1D1>
317private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExtS1D1>
321private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterS3D2>
325private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExtS3D2>
329private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterS5D5>
333private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExtS5D5>
337private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.TestCounter>
341private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.TestCounterExt>
345private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterWithVariableParams>
349private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExtWithVariableParams>
353private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterX>
357private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExtX>
361private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterY>
365private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterExtY>
369private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.StrongTypeDecimalCounter>
373private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.StrongTypeDecimalCounterExt>
377private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.StructTypeCounter>
381private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.StructTypeCounterExt>
385private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.RecordClassTypeCounter>
749private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.FileScopedNamespaceCounter>
753private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.FileScopedNamespaceGenericDoubleCounter>
777private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Histogram0D>
781private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntHistogram0D>
785private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExt0D>
789private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntHistogramExt0D>
793private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Histogram1D>
797private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExt1D>
801private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Histogram2D>
805private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntHistogram2D>
809private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntHistogramExt2D>
813private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExt2D>
817private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Histogram3D>
821private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExt3D>
825private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.Histogram4D>
829private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExt4D>
833private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramS0D2>
837private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExtS0D2>
841private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramS1D1>
845private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExtS1D1>
849private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramS3D2>
853private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExtS3D2>
857private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramS5D5>
861private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExtS5D5>
865private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.TestHistogram>
869private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.TestHistogramExt>
873private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramWithVariableParams>
877private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramExtWithVariableParams>
881private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.StrongTypeHistogram>
885private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.StrongTypeHistogramExt>
889private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.StructTypeHistogram>
893private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.StructTypeHistogramExt>
1197private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterFromRecordClass>
1211private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterFromRecordStruct>
1225private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterFromStruct>
1239private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterWithUnit>
1243private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterWithUnitAndDims>
1247private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.CounterStrongTypeWithUnit>
1251private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericDoubleCounterWithUnit>
1255private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramWithUnit>
1259private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramStrongTypeWithUnit>
1263private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.HistogramWithUnitAndDims>
1267private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClasses.GenericIntHistogramWithUnit>
1358private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClassesNspace.Metrics.OverlappingNamesCounter>
1362private static global::System.Collections.Concurrent.ConcurrentDictionary<global::System.Diagnostics.Metrics.Meter, global::TestClassesNspace.Metrics.OverlappingNamesHistogram>
Microsoft.Interop.ComInterfaceGenerator (3)
Microsoft.JSInterop (8)
Microsoft.Maui (8)
Microsoft.Maui.Controls (2)
Microsoft.ML.Core (3)
Microsoft.ML.Core.Tests (2)
Microsoft.ML.Data (1)
Microsoft.ML.Ensemble (7)
Microsoft.ML.FastTree (1)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.InternalCodeAnalyzer (4)
Microsoft.ML.Tokenizers (1)
Microsoft.NET.Build.Containers (2)
Microsoft.NET.Build.Extensions.Tasks (2)
Microsoft.NET.Build.Tasks (7)
Microsoft.NET.StringTools (4)
Microsoft.TemplateEngine.Cli (1)
Microsoft.TemplateEngine.Core (7)
Microsoft.TemplateEngine.Edge (2)
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (1)
Microsoft.TestPlatform.CoreUtilities (2)
Microsoft.TestPlatform.CrossPlatEngine (4)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.VisualStudio.TestPlatform.Common (7)
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (2)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (6)
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
MSBuild (28)
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (13)
24private static readonly Lazy<ConcurrentDictionary<object, object>> s_appDomainLifetimeObjects = new Lazy<ConcurrentDictionary<object, object>>();
29private Lazy<ConcurrentDictionary<object, object>> _buildLifetimeObjects = new Lazy<ConcurrentDictionary<object, object>>();
60ConcurrentDictionary<object, object> dict = GetCollectionForLifetime(lifetime, dontCreate: false);
70ConcurrentDictionary<object, object> dict = GetCollectionForLifetime(lifetime, dontCreate: true);
82ConcurrentDictionary<object, object> dict = GetCollectionForLifetime(lifetime, dontCreate: true);
96var collection = GetCollectionForLifetime(lifetime, dontCreate: true);
103protected ConcurrentDictionary<object, object> GetCollectionForLifetime(RegisteredTaskObjectLifetime lifetime, bool dontCreate)
105Lazy<ConcurrentDictionary<object, object>> dict = GetLazyCollectionForLifetime(lifetime);
119protected Lazy<ConcurrentDictionary<object, object>> GetLazyCollectionForLifetime(RegisteredTaskObjectLifetime lifetime)
121Lazy<ConcurrentDictionary<object, object>> dict = null;
139private static void DisposeObjects(Lazy<ConcurrentDictionary<object, object>> lifetimeObjects)
src\msbuild\src\Shared\TypeLoader.cs (11)
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>>();
349ConcurrentDictionary<Type, ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes>> cache,
358ConcurrentDictionary<AssemblyLoadInfo, AssemblyInfoToLoadedTypes> loadInfoToType =
401private ConcurrentDictionary<string, Type> _typeNameToType;
408private ConcurrentDictionary<string, LoadedType> _publicTypeNameToLoadedType;
MSBuild.Coordinator (1)
mscorlib (1)
netstandard (1)
NuGet.Build.Tasks.Console (5)
NuGet.Commands (15)
RestoreCommand\LockFileBuilderCache.cs (3)
27private readonly ConcurrentDictionary<(string Id, NuGetVersion Version, string sha512), ContentItemCollection> _contentItems
31private readonly ConcurrentDictionary<CriteriaKey, List<(List<SelectionCriteria>, bool)>> _criteriaSets =
34private readonly ConcurrentDictionary<(CriteriaKey, string path, string aliases, LibraryIncludeFlags, int dependencyCount, bool restoreEnableAnalyzerAssets), Lazy<(LockFileTargetLibrary, bool, NuGetFramework, NuGetFramework)>> _lockFileTargetLibraryCache =
NuGet.Common (1)
NuGet.Configuration (2)
NuGet.Credentials (2)
NuGet.DependencyResolver.Core (2)
NuGet.Frameworks (1)
NuGet.LibraryModel (3)
NuGet.PackageManagement (3)
NuGet.Packaging (5)
NuGet.ProjectModel (1)
NuGet.Protocol (35)
PresentationCore (1)
PresentationFramework (5)
Roslyn.Diagnostics.Analyzers (56)
DefaultableTypeShouldHaveDefaultableFieldsAnalyzer.cs (5)
50var knownNonDefaultableTypes = new ConcurrentDictionary<ITypeSymbol, bool>();
56private static void AnalyzeField(SymbolAnalysisContext context, INamedTypeSymbol nonDefaultableAttribute, ConcurrentDictionary<ITypeSymbol, bool> knownNonDefaultableTypes)
61private static void AnalyzeNamedType(SymbolAnalysisContext context, INamedTypeSymbol nonDefaultableAttribute, ConcurrentDictionary<ITypeSymbol, bool> knownNonDefaultableTypes)
76private static void AnalyzeField(SymbolAnalysisContext originalContext, IFieldSymbol field, INamedTypeSymbol nonDefaultableAttribute, ConcurrentDictionary<ITypeSymbol, bool> knownNonDefaultableTypes)
110private static bool IsDefaultable(ITypeSymbol type, INamedTypeSymbol nonDefaultableAttribute, ConcurrentDictionary<ITypeSymbol, bool> knownNonDefaultableTypes)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (3)
19public static void Add<K, V>(this ConcurrentDictionary<K, V> dict, K key, V value)
28public static TValue GetOrAdd<TKey, TArg, TValue>(this ConcurrentDictionary<TKey, TValue> dictionary, TKey key, Func<TKey, TArg, TValue> valueFactory, TArg factoryArgument)
45this ConcurrentDictionary<TKey, TValue> dictionary,
Shared (2)
System.Collections.Concurrent (1)
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.TypeConverter (2)
System.Data.Common (3)
System.Data.Odbc (3)
System.Data.OleDb (3)
System.Diagnostics.DiagnosticSource (12)
System\Diagnostics\Metrics\AggregatorStore.cs (10)
167public ConcurrentDictionary<TObjectSequence, TAggregator> GetLabelValuesDictionary<TStringSequence, TObjectSequence>(in TStringSequence names)
354ConcurrentDictionary<ObjectSequence1, TAggregator> valuesDict1 =
363ConcurrentDictionary<ObjectSequence2, TAggregator> valuesDict2 =
373ConcurrentDictionary<ObjectSequence3, TAggregator> valuesDict3 =
387ConcurrentDictionary<ObjectSequenceMany, TAggregator> valuesDictMany =
415private readonly ConcurrentDictionary<TObjectSequence, TAggregator> _valuesDict;
421ConcurrentDictionary<TObjectSequence, TAggregator> valuesDict,
481ConcurrentDictionary<TStringSequence, ConcurrentDictionary<TObjectSequence, TAggregator>>
488foreach (KeyValuePair<TStringSequence, ConcurrentDictionary<TObjectSequence, TAggregator>> kvName in this)
513public ConcurrentDictionary<TObjectSequence, TAggregator> GetValuesDictionary(in TStringSequence names) =>
System.IO.FileSystem.Watcher (1)
System.Net.Http (7)
System.Net.Http.WinHttpHandler (1)
System.Net.Quic (1)
System.Net.Requests (1)
System.Net.Security (2)
System.Private.CoreLib (88)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (85)
17/// All public and protected members of <see cref="ConcurrentDictionary{TKey,TValue}"/> are thread-safe and may be used
69/// Initializes a new instance of the <see cref="ConcurrentDictionary{TKey,TValue}"/>
77/// Initializes a new instance of the <see cref="ConcurrentDictionary{TKey,TValue}"/>
82/// <see cref="ConcurrentDictionary{TKey,TValue}"/> concurrently, or -1 to indicate a default value.</param>
83/// <param name="capacity">The initial number of elements that the <see cref="ConcurrentDictionary{TKey,TValue}"/> can contain.</param>
90/// Initializes a new instance of the <see cref="ConcurrentDictionary{TKey,TValue}"/>
95/// cref="IEnumerable{T}"/> whose elements are copied to the new <see cref="ConcurrentDictionary{TKey,TValue}"/>.</param>
102/// Initializes a new instance of the <see cref="ConcurrentDictionary{TKey,TValue}"/>
111/// Initializes a new instance of the <see cref="ConcurrentDictionary{TKey,TValue}"/>
115/// <param name="collection">The <see cref="IEnumerable{T}"/> whose elements are copied to the new <see cref="ConcurrentDictionary{TKey,TValue}"/>.</param>
127/// Initializes a new instance of the <see cref="ConcurrentDictionary{TKey,TValue}"/>
133/// The estimated number of threads that will update the <see cref="ConcurrentDictionary{TKey,TValue}"/> concurrently, or -1 to indicate a default value.
136/// <see cref="ConcurrentDictionary{TKey,TValue}"/>.</param>
150/// Initializes a new instance of the <see cref="ConcurrentDictionary{TKey,TValue}"/>
154/// <param name="concurrencyLevel">The estimated number of threads that will update the <see cref="ConcurrentDictionary{TKey,TValue}"/> concurrently, or -1 to indicate a default value.</param>
155/// <param name="capacity">The initial number of elements that the <see cref="ConcurrentDictionary{TKey,TValue}"/> can contain.</param>
233/// Gets an instance of a type that may be used to perform operations on a <see cref="ConcurrentDictionary{TKey, TValue}"/>
254/// Gets an instance of a type that may be used to perform operations on a <see cref="ConcurrentDictionary{TKey, TValue}"/>
357/// Attempts to add the specified key and value to the <see cref="ConcurrentDictionary{TKey, TValue}"/>.
363/// true if the key/value pair was added to the <see cref="ConcurrentDictionary{TKey, TValue}"/> successfully; otherwise, false.
366/// <exception cref="OverflowException">The <see cref="ConcurrentDictionary{TKey, TValue}"/> contains too many elements.</exception>
378/// Determines whether the <see cref="ConcurrentDictionary{TKey, TValue}"/> contains the specified key.
380/// <param name="key">The key to locate in the <see cref="ConcurrentDictionary{TKey, TValue}"/>.</param>
381/// <returns>true if the <see cref="ConcurrentDictionary{TKey, TValue}"/> contains an element with the specified key; otherwise, false.</returns>
386/// Attempts to remove and return the value with the specified key from the <see cref="ConcurrentDictionary{TKey, TValue}"/>.
391/// <see cref="ConcurrentDictionary{TKey,TValue}"/> or the default value of <typeparamref
507/// Attempts to get the value associated with the specified key from the <see cref="ConcurrentDictionary{TKey,TValue}"/>.
512/// the <see cref="ConcurrentDictionary{TKey,TValue}"/> with the specified key or the default value of
515/// <returns>true if the key was found in the <see cref="ConcurrentDictionary{TKey,TValue}"/>; otherwise, false.</returns>
709/// Removes all keys and values from the <see cref="ConcurrentDictionary{TKey,TValue}"/>.
777/// Copies the key and value pairs stored in the <see cref="ConcurrentDictionary{TKey,TValue}"/> to a
780/// <returns>A new array containing a snapshot of key and value pairs copied from the <see cref="ConcurrentDictionary{TKey,TValue}"/>.
851/// cref="ConcurrentDictionary{TKey,TValue}"/>.</summary>
852/// <returns>An enumerator for the <see cref="ConcurrentDictionary{TKey,TValue}"/>.</returns>
862private sealed class Enumerator(ConcurrentDictionary<TKey, TValue> dictionary) : IEnumerator<KeyValuePair<TKey, TValue>>
870private readonly ConcurrentDictionary<TKey, TValue> _dictionary = dictionary;
872private ConcurrentDictionary<TKey, TValue>.VolatileNode[]? _buckets;
901ConcurrentDictionary<TKey, TValue>.VolatileNode[]? buckets = _buckets ??= _dictionary._tables._buckets;
1099/// <see cref="ConcurrentDictionary{TKey, TValue}" /> and to provide hash values for the keys.
1102/// <see cref="ConcurrentDictionary{TKey, TValue}" /> requires an equality implementation to determine
1127/// cref="ConcurrentDictionary{TKey,TValue}"/>.
1132/// cref="ConcurrentDictionary{TKey,TValue}"/>.</value>
1134/// cref="ConcurrentDictionary{TKey,TValue}"/>
1168/// Adds a key/value pair to the <see cref="ConcurrentDictionary{TKey,TValue}"/>
1208/// Adds a key/value pair to the <see cref="ConcurrentDictionary{TKey,TValue}"/>
1250/// Adds a key/value pair to the <see cref="ConcurrentDictionary{TKey,TValue}"/>
1282/// Adds a key/value pair to the <see cref="ConcurrentDictionary{TKey,TValue}"/> if the key does not already
1283/// exist, or updates a key/value pair in the <see cref="ConcurrentDictionary{TKey,TValue}"/> if the key
1358/// Adds a key/value pair to the <see cref="ConcurrentDictionary{TKey,TValue}"/> if the key does not already
1359/// exist, or updates a key/value pair in the <see cref="ConcurrentDictionary{TKey,TValue}"/> if the key
1431/// Adds a key/value pair to the <see cref="ConcurrentDictionary{TKey,TValue}"/> if the key does not already
1432/// exist, or updates a key/value pair in the <see cref="ConcurrentDictionary{TKey,TValue}"/> if the key
1497/// Gets a value that indicates whether the <see cref="ConcurrentDictionary{TKey,TValue}"/> is empty.
1499/// <value>true if the <see cref="ConcurrentDictionary{TKey,TValue}"/> is empty; otherwise,
1544/// cref="ConcurrentDictionary{TKey,TValue}"/>.</exception>
1568/// Gets a snapshot containing all the keys in the <see cref="ConcurrentDictionary{TKey,TValue}"/>.
1570/// <remarks>The property returns a copy of all the keys. It's not kept in sync with <see cref="ConcurrentDictionary{TKey,TValue}"/>.</remarks>
1577/// Gets a snapshot containing all the values in the <see cref="ConcurrentDictionary{TKey,TValue}"/>.
1579/// <remarks>The property returns a copy of all the values. It's not kept in sync with <see cref="ConcurrentDictionary{TKey,TValue}"/>.</remarks>
1594/// cref="ConcurrentDictionary{TKey,TValue}"/>.</param>
1598/// cref="ConcurrentDictionary{TKey,TValue}"/>
1601/// <see cref="ConcurrentDictionary{TKey,TValue}"/></exception>
1622/// cref="ConcurrentDictionary{TKey,TValue}"/>, this property always returns
1632/// cref="ConcurrentDictionary{TKey,TValue}"/>.</param>
1645/// cref="ConcurrentDictionary{TKey,TValue}"/>.</summary>
1646/// <returns>An enumerator for the <see cref="ConcurrentDictionary{TKey,TValue}"/>.</returns>
1653IEnumerator IEnumerable.GetEnumerator() => ((ConcurrentDictionary<TKey, TValue>)this).GetEnumerator();
1670/// name="TKey"/> of the <see cref="ConcurrentDictionary{TKey,TValue}"/>. -or-
1672/// the type of values in the <see cref="ConcurrentDictionary{TKey,TValue}"/>.
1674/// cref="ConcurrentDictionary{TKey,TValue}"/>.
1725/// cref="ConcurrentDictionary{TKey,TValue}"/>, this property always
1735/// cref="ConcurrentDictionary{TKey,TValue}"/>, this property always
1782/// cref="ConcurrentDictionary{TKey,TValue}"/>.</value>
1788/// cref="ConcurrentDictionary{TKey,TValue}"/>. -or- A value is being
1791/// cref="ConcurrentDictionary{TKey,TValue}"/>
1823((ConcurrentDictionary<TKey, TValue>)this)[(TKey)key] = (TValue)value!;
1919/// cref="ConcurrentDictionary{TKey,TValue}"/>, this property always
2294internal DictionaryEnumerator(ConcurrentDictionary<TKey, TValue> dictionary) => _enumerator = dictionary.GetEnumerator();
2311private static bool IsCompatibleKey<TAlternateKey>(ConcurrentDictionary<TKey, TValue>.Tables tables)
2320private static IAlternateEqualityComparer<TAlternateKey, TKey> GetAlternateComparer<TAlternateKey>(ConcurrentDictionary<TKey, TValue>.Tables tables)
2328/// Provides a type that may be used to perform operations on a <see cref="ConcurrentDictionary{TKey, TValue}"/>
2335internal AlternateLookup(ConcurrentDictionary<TKey, TValue> dictionary)
2342/// <summary>Gets the <see cref="ConcurrentDictionary{TKey, TValue}"/> against which this instance performs operations.</summary>
2343public ConcurrentDictionary<TKey, TValue> Dictionary { get; }
2359/// <summary>Determines whether the <see cref="ConcurrentDictionary{TKey, TValue}"/> contains the specified alternate key.</summary>
System.Private.DataContractSerialization (3)
System.Private.Windows.Core.TestUtilities (1)
System.Reflection.MetadataLoadContext (8)
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.Runtime.InteropServices (1)
System.Runtime.Serialization.Formatters (2)
System.Security.Cryptography (7)
System.ServiceModel.Primitives (4)
System.Text.Encoding.CodePages (5)
System.Text.Json (12)
System.Text.RegularExpressions (1)
System.Windows.Forms (7)
System.Xaml (34)
System\Xaml\XamlSchemaContext.cs (26)
136private ConcurrentDictionary<string, string> _preferredPrefixes;
221ConcurrentDictionary<string, string> preferredPrefixes = CreateDictionary<string, string>();
231private void UpdatePreferredPrefixes(XmlNsInfo newNamespaces, ConcurrentDictionary<string, string> prefixDict)
366private ConcurrentDictionary<string, string> _xmlNsCompatDict;
369private ConcurrentDictionary<string, string> XmlNsCompatDict
486private ConcurrentDictionary<Type, XamlType> _masterTypeList;
487private ConcurrentDictionary<ReferenceEqualityTuple<Type, XamlType, Type>, object> _masterValueConverterList;
488private ConcurrentDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember> _masterMemberList;
489private ConcurrentDictionary<XamlType, Dictionary<string, SpecialBracketCharacters> > _masterBracketCharacterCache;
498private ConcurrentDictionary<XamlType, Dictionary<string, SpecialBracketCharacters> > MasterBracketCharacterCache
509private ConcurrentDictionary<Type, XamlType> MasterTypeList
520private ConcurrentDictionary<ReferenceEqualityTuple<Type, XamlType, Type>, object> MasterValueConverterList
531private ConcurrentDictionary<ReferenceEqualityTuple<MemberInfo, MemberInfo>, XamlMember> MasterMemberList
708private ConcurrentDictionary<string, XamlNamespace> _namespaceByUriList;
709private ConcurrentDictionary<Assembly, XmlNsInfo> _xmlnsInfo;
710private ConcurrentDictionary<WeakRefKey, XmlNsInfo> _xmlnsInfoForDynamicAssemblies;
711private ConcurrentDictionary<Assembly, XmlNsInfo> _xmlnsInfoForUnreferencedAssemblies;
726private ConcurrentDictionary<Assembly, XmlNsInfo> XmlnsInfo
737private ConcurrentDictionary<WeakRefKey, XmlNsInfo> XmlnsInfoForDynamicAssemblies
749private ConcurrentDictionary<string, XamlNamespace> NamespaceByUriList
763private ConcurrentDictionary<Assembly, XmlNsInfo> XmlnsInfoForUnreferencedAssemblies
1038ConcurrentDictionary<string, IList<string>> assemblyMappings = nsInfo.ClrToXmlNs;
1205internal static ConcurrentDictionary<K, V> CreateDictionary<K, V>()
1210internal static ConcurrentDictionary<K, V> CreateDictionary<K, V>(IEqualityComparer<K> comparer)
1215internal static V TryAdd<K, V>(ConcurrentDictionary<K, V> dictionary, K key, V value)
1227internal static V TryUpdate<K, V>(ConcurrentDictionary<K, V> dictionary, K key, V value, V comparand)
vstest.console (1)
vstest.console.arm64 (1)