9 types derived from FrozenDictionary
System.Collections.Immutable (9)
System\Collections\Frozen\EmptyFrozenDictionary.cs (1)
11internal sealed class EmptyFrozenDictionary<TKey, TValue> : FrozenDictionary<TKey, TValue>
System\Collections\Frozen\Int32\Int32FrozenDictionary.cs (1)
16internal sealed partial class Int32FrozenDictionary<TValue> : FrozenDictionary<int, TValue>
System\Collections\Frozen\KeysAndValuesFrozenDictionary.cs (1)
11internal abstract class KeysAndValuesFrozenDictionary<TKey, TValue> : FrozenDictionary<TKey, TValue>, IDictionary<TKey, TValue>
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
18internal sealed partial class SmallFrozenDictionary<TKey, TValue> : FrozenDictionary<TKey, TValue>
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (1)
18internal sealed class SmallValueTypeComparableFrozenDictionary<TKey, TValue> : FrozenDictionary<TKey, TValue>
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (1)
12internal sealed class SmallValueTypeDefaultComparerFrozenDictionary<TKey, TValue> : FrozenDictionary<TKey, TValue>
System\Collections\Frozen\String\LengthBucketsFrozenDictionary.cs (1)
11internal sealed partial class LengthBucketsFrozenDictionary<TValue> : FrozenDictionary<string, TValue>
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.AlternateLookup.cs (1)
10internal abstract partial class OrdinalStringFrozenDictionary<TValue> : FrozenDictionary<string, TValue>
System\Collections\Frozen\String\OrdinalStringFrozenDictionary.cs (1)
12internal abstract partial class OrdinalStringFrozenDictionary<TValue> : FrozenDictionary<string, TValue>
100 references to FrozenDictionary
Microsoft.Analyzers.Extra.Tests (1)
CallAnalysis\ArraysTests.cs (1)
123Assembly.GetAssembly(typeof(FrozenDictionary<,>))!,
Microsoft.AspNetCore.Components (1)
ResourceAssetCollection.cs (1)
19private readonly FrozenDictionary<string, ResourceAsset> _uniqueUrlMappings;
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Logging\HttpLoggingRedactionInterceptor.cs (1)
35private readonly FrozenDictionary<string, DataClassification> _parametersToRedactMap;
Logging\IncomingHttpRouteUtility.cs (2)
22private readonly ConcurrentDictionary<string, FrozenDictionary<string, DataClassification>> _parametersToRedactCache = new(); 31if (_parametersToRedactCache.TryGetValue(httpRoute, out var result))
Microsoft.AspNetCore.Hosting (1)
Internal\HostingMetrics.cs (1)
120private static readonly FrozenDictionary<string, string> KnownMethods = FrozenDictionary.ToFrozenDictionary(new[]
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntryFormatter.cs (2)
505private static readonly FrozenDictionary<string, int> CommonHeadersLookup = BuildCommonHeadersLookup(); 507static FrozenDictionary<string, int> BuildCommonHeadersLookup()
Microsoft.AspNetCore.Routing (9)
EndpointNameAddressScheme.cs (5)
12private readonly DataSourceDependentCache<FrozenDictionary<string, Endpoint[]>> _cache; 16_cache = new DataSourceDependentCache<FrozenDictionary<string, Endpoint[]>>(dataSource, Initialize); 20internal FrozenDictionary<string, Endpoint[]> Entries => _cache.EnsureInitialized(); 27var entries = Entries; 33private static FrozenDictionary<string, Endpoint[]> Initialize(IReadOnlyList<Endpoint> endpoints)
Matching\DictionaryJumpTable.cs (2)
14private readonly FrozenDictionary<string, int> _dictionary; 15private readonly FrozenDictionary<string, int>.AlternateLookup<ReadOnlySpan<char>> _lookup;
RouteValuesAddressScheme.cs (2)
175public readonly FrozenDictionary<string, List<OutboundMatchResult>> NamedMatches; 180FrozenDictionary<string, List<OutboundMatchResult>> namedMatches)
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (2)
16internal static FrozenDictionary<string, int> KnownResponseHeaders { get; } = CreateLookupTable(); 18private static FrozenDictionary<string, int> CreateLookupTable()
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (2)
16internal static FrozenDictionary<string, int> KnownResponseHeaders { get; } = CreateLookupTable(); 18private static FrozenDictionary<string, int> CreateLookupTable()
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\NativeInterop\HttpApiTypes.cs (2)
16internal static FrozenDictionary<string, int> KnownResponseHeaders { get; } = CreateLookupTable(); 18private static FrozenDictionary<string, int> CreateLookupTable()
Microsoft.CodeAnalysis.Features (2)
QuickInfo\Presentation\QuickInfoContentBuilder.cs (2)
17private static readonly FrozenDictionary<Glyph, QuickInfoGlyphElement> s_glyphToElementMap = CreateGlyphToElementMap(); 19private static FrozenDictionary<Glyph, QuickInfoGlyphElement> CreateGlyphToElementMap()
Microsoft.CodeAnalysis.LanguageServer.Protocol (15)
LspServices\AbstractLspServiceProvider.cs (1)
25public LspServices CreateServices(WellKnownLspServerKinds serverKind, FrozenDictionary<string, ImmutableArray<BaseService>> baseServices)
LspServices\LspServices.cs (3)
21private readonly FrozenDictionary<string, Lazy<ILspService, LspServiceMetadataView>> _lazyMefLspServices; 28private readonly FrozenDictionary<string, ImmutableArray<BaseService>> _baseServices; 40FrozenDictionary<string, ImmutableArray<BaseService>> baseServices)
RoslynLanguageServer.cs (2)
26private readonly FrozenDictionary<string, ImmutableArray<BaseService>> _baseServices; 69private FrozenDictionary<string, ImmutableArray<BaseService>> GetBaseServices(
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (3)
21private FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>? _requestHandlers; 45private FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>> GetRequestHandlers() 48private static FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>> CreateMethodToHandlerMap(ILspServices lspServices, AbstractTypeRefResolver typeRefResolver)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (6)
78private readonly FrozenDictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata Metadata, IMethodHandler Handler, MethodInfo MethodInfo)>>> _handlerInfoMap; 96private static FrozenDictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>> BuildHandlerMap(AbstractHandlerProvider handlerProvider, AbstractTypeRefResolver typeRefResolver) 98var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 413var handlersForMethod = _handlerInfoMap[work.MethodName];
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
30FrozenDictionary<ISourceGenerator, AnalyzerReference> SourceGeneratorToAnalyzerReference);
Microsoft.CommonLanguageServerProtocol.Framework.Package (9)
HandlerProvider.cs (3)
21private FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>>? _requestHandlers; 45private FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>> GetRequestHandlers() 48private static FrozenDictionary<RequestHandlerMetadata, Lazy<IMethodHandler>> CreateMethodToHandlerMap(ILspServices lspServices, AbstractTypeRefResolver typeRefResolver)
RequestExecutionQueue.cs (6)
78private readonly FrozenDictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata Metadata, IMethodHandler Handler, MethodInfo MethodInfo)>>> _handlerInfoMap; 96private static FrozenDictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>> BuildHandlerMap(AbstractHandlerProvider handlerProvider, AbstractTypeRefResolver typeRefResolver) 98var genericMethodMap = new Dictionary<string, FrozenDictionary<string, Lazy<(RequestHandlerMetadata, IMethodHandler, MethodInfo)>>>(); 413var handlersForMethod = _handlerInfoMap[work.MethodName];
Microsoft.Extensions.Compliance.Redaction (2)
RedactorProvider.cs (2)
17private readonly FrozenDictionary<DataClassificationSet, Redactor> _classRedactors; 38private static FrozenDictionary<DataClassificationSet, Redactor> GetClassRedactorMap(IEnumerable<Redactor> redactors, Dictionary<DataClassificationSet, Type> map)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (3)
ExceptionSummarizer.cs (1)
15private readonly FrozenDictionary<Type, IExceptionSummaryProvider> _exceptionTypesToProviders;
HttpExceptionSummaryProvider.cs (2)
24private static readonly FrozenDictionary<WebExceptionStatus, int> _webExceptionStatusMap; 25private static readonly FrozenDictionary<SocketError, int> _socketErrorMap;
Microsoft.Extensions.Http.Diagnostics (9)
Http\DownstreamDependencyMetadataManager.cs (1)
28private readonly FrozenDictionary<string, ProcessedMetadata> _frozenProcessedMetadataMap;
Latency\Internal\HttpRequestLatencyListener.cs (4)
120private readonly FrozenDictionary<string, FrozenDictionary<string, CheckpointToken>> _eventToTokenMap; 142_eventToTokenMap = new Dictionary<string, FrozenDictionary<string, CheckpointToken>> 152if (eventName != null && _eventToTokenMap.TryGetValue(eventSourceName, out var events))
Logging\Internal\HttpHeadersReader.cs (3)
18private readonly FrozenDictionary<string, DataClassification> _requestHeadersToLog; 19private readonly FrozenDictionary<string, DataClassification> _responseHeadersToLog; 73private void ReadHeaders(HttpHeaders headers, FrozenDictionary<string, DataClassification> headersToLog, List<KeyValuePair<string, string>> destination)
Logging\Internal\HttpRequestReader.cs (1)
25private readonly FrozenDictionary<string, DataClassification> _defaultSensitiveParameters;
Microsoft.Extensions.Telemetry (1)
Latency\Internal\Registry.cs (1)
16private readonly FrozenDictionary<string, int> _keyOrder;
System.Collections.Immutable (35)
System\Collections\Frozen\DefaultFrozenDictionary.cs (1)
9/// <summary>Provides the default <see cref="FrozenDictionary{TKey, TValue}"/> implementation to use when no other special-cases apply.</summary>
System\Collections\Frozen\EmptyFrozenDictionary.cs (1)
10/// <summary>Provides an empty <see cref="FrozenDictionary{TKey, TValue}"/> to use when there are zero key/value pairs to be stored.</summary>
System\Collections\Frozen\FrozenDictionary.AlternateLookup.cs (1)
14/// Gets an instance of a type that may be used to perform operations on a <see cref="FrozenDictionary{TKey, TValue}"/>
System\Collections\Frozen\FrozenDictionary.cs (31)
15/// Provides a set of initialization methods for instances of the <see cref="FrozenDictionary{TKey, TValue}"/> class. 19/// <summary>Creates a <see cref="FrozenDictionary{TKey, TValue}"/> with the specified key/value pairs.</summary> 28/// <returns>A <see cref="FrozenDictionary{TKey, TValue}"/> that contains the specified keys and values.</returns> 29public static FrozenDictionary<TKey, TValue> ToFrozenDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source, IEqualityComparer<TKey>? comparer = null) 34/// <summary>Creates a <see cref="FrozenDictionary{TKey, TSource}"/> from an <see cref="IEnumerable{TSource}"/> according to specified key selector function.</summary> 37/// <param name="source">An <see cref="IEnumerable{TSource}"/> from which to create a <see cref="FrozenDictionary{TKey, TSource}"/>.</param> 40/// <returns>A <see cref="FrozenDictionary{TKey, TElement}"/> that contains the keys and values selected from the input sequence.</returns> 41public static FrozenDictionary<TKey, TSource> ToFrozenDictionary<TSource, TKey>( 46/// <summary>Creates a <see cref="FrozenDictionary{TKey, TElement}"/> from an <see cref="IEnumerable{TSource}"/> according to specified key selector and element selector functions.</summary> 50/// <param name="source">An <see cref="IEnumerable{TSource}"/> from which to create a <see cref="FrozenDictionary{TKey, TElement}"/>.</param> 54/// <returns>A <see cref="FrozenDictionary{TKey, TElement}"/> that contains the keys and values selected from the input sequence.</returns> 55public static FrozenDictionary<TKey, TElement> ToFrozenDictionary<TSource, TKey, TElement>( 61/// Extracts from the source either an existing <see cref="FrozenDictionary{TKey,TValue}"/> instance or a <see cref="Dictionary{TKey,TValue}"/> 65/// If <paramref name="source"/> is already a <see cref="FrozenDictionary{TKey,TValue}"/> with the same <paramref name="comparer"/>, returns that instance. 66/// If <paramref name="source"/> is empty, returns an empty <see cref="FrozenDictionary{TKey,TValue}"/> with the specified <paramref name="comparer"/>. 70private static FrozenDictionary<TKey, TValue>? GetExistingFrozenOrNewDictionary<TKey, TValue>( 79if (source is FrozenDictionary<TKey, TValue> fd && fd.Comparer.Equals(comparer)) 102return ReferenceEquals(comparer, FrozenDictionary<TKey, TValue>.Empty.Comparer) ? 103FrozenDictionary<TKey, TValue>.Empty : 113private static FrozenDictionary<TKey, TValue> CreateFromDictionary<TKey, TValue>(Dictionary<TKey, TValue> source) 131return (FrozenDictionary<TKey, TValue>)(object)new SmallValueTypeComparableFrozenDictionary<TKey, TValue>(source); 135return (FrozenDictionary<TKey, TValue>)(object)new SmallValueTypeDefaultComparerFrozenDictionary<TKey, TValue>(source); 143return (FrozenDictionary<TKey, TValue>)(object)new Int32FrozenDictionary<TValue>((Dictionary<int, TValue>)(object)source); 174FrozenDictionary<string, TValue>? frozenDictionary = LengthBucketsFrozenDictionary<TValue>.CreateLengthBucketsFrozenDictionaryIfAppropriate(keys, values, stringComparer, minLength, maxLength); 177return (FrozenDictionary<TKey, TValue>)(object)frozenDictionary; 229return (FrozenDictionary<TKey, TValue>)(object)frozenDictionary; 248/// <see cref="FrozenDictionary{TKey, TValue}"/> is immutable and is optimized for situations where a dictionary 252/// the remainder of the life of the application. <see cref="FrozenDictionary{TKey, TValue}"/> should only be 264/// <summary>Gets an empty <see cref="FrozenDictionary{TKey, TValue}"/>.</summary> 265public static FrozenDictionary<TKey, TValue> Empty { get; } = new EmptyFrozenDictionary<TKey, TValue>(EqualityComparer<TKey>.Default); 592/// <summary>Enumerates the elements of a <see cref="FrozenDictionary{TKey, TValue}"/>.</summary>
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
12/// <summary>Provides a <see cref="FrozenDictionary{TKey, TValue}"/> implementation to use with small item counts.</summary>