1152 references to Dictionary
Aspire.Azure.Security.KeyVault.Tests (2)
MockTransport.cs (2)
78private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase); 134private readonly Dictionary<string, List<string>> _headers = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Aspire.Dashboard (6)
Components\Pages\TraceDetail.razor.cs (1)
225var traceCache = new Dictionary<string, OtlpTrace>(StringComparer.Ordinal);
Extensions\FluentUIExtensions.cs (1)
15var attributes = new Dictionary<string, object>(StringComparers.HtmlAttribute)
Otlp\Storage\TelemetryRepository.cs (2)
573var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute); 603var attributesValues = new Dictionary<string, int>(StringComparers.OtlpAttribute);
ResourceService\DashboardClient.cs (1)
42private readonly Dictionary<string, ResourceViewModel> _resourceByName = new(StringComparers.ResourceName);
Utils\GlobalizationHelpers.cs (1)
39var dict = new Dictionary<string, List<CultureInfo>>(StringComparers.CultureName);
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresFlexibleServerResource.cs (1)
18private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Azure.Sql (1)
AzureSqlServerResource.cs (1)
13private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubResource.cs (1)
17internal Dictionary<string, AzureWebPubSubHubResource> Hubs { get; } = new(StringComparer.OrdinalIgnoreCase);
Aspire.Hosting.Milvus (1)
MilvusServerResource.cs (1)
45private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MongoDB (1)
MongoDBServerResource.cs (1)
81private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
43private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.Oracle (1)
OracleDatabaseServerResource.cs (1)
43private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
87private readonly Dictionary<string, string> _databases = new Dictionary<string, string>(StringComparers.ResourceName);
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
71private readonly Dictionary<string, string> _databases = new(StringComparers.ResourceName);
BuildValidator (1)
LocalReferenceResolver.cs (1)
44private readonly Dictionary<string, List<AssemblyInfo>> _nameMap = new(FileNameEqualityComparer.StringComparer);
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (2)
26private readonly Dictionary<ITypeSymbol, TypeSpec> _createdTypeSpecs = new(SymbolEqualityComparer.Default); 682(properties ??= new(StringComparer.OrdinalIgnoreCase))[propertyName] = spec;
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
465var packageVersionsDictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (1)
379_namespaces = new Dictionary<String, NamespaceDecl>(_hasher);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (1)
1487_nsHashtable = new Dictionary<string, int>(new SecureStringHasher());
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (2)
1868_nsHashtable = new Dictionary<string, int>(_hasher); 2247_attrHashTable = new Dictionary<string, int>(_hasher);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
53_clrNamespaces = new Dictionary<string, string>(StringComparer.Ordinal); 1427Dictionary<string, object> fragments = new Dictionary<string, object>(StringComparer.Ordinal);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (1)
42_memberNames = new Dictionary<string, object>(StringComparer.Ordinal);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
562s_typeToIDCache = new Dictionary<TypeHandleRef, IntRef>(new TypeHandleRefEqualityComparer());
FrameworkFork\System.ServiceModel\Internals\System\Runtime\MruCache.cs (1)
47_items = new Dictionary<TKey, CacheEntry>(comparer);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
86Dictionary<CodeTypeReference, object> operationKnownTypes = new Dictionary<CodeTypeReference, object>(new CodeTypeReferenceComparer());
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
189_generatedTypedMessages = new Dictionary<MessageDescription, CodeTypeReference>(MessageDescriptionComparer.Singleton);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
916internal MessageHeaderDescriptionTable() : base(QNameComparer.Singleton) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
174_dictionary = new Dictionary<K, T>(_comparer);
HealthChecksSample (1)
Program.cs (1)
12_scenarios = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase)
http2cat (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IIS.LongTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
illink (3)
Infrastructure.Common (3)
ConditionalWcfTest.cs (1)
18private static Dictionary<string, bool> s_evaluatedConditions = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase);
JsonSerializer.cs (1)
32Dictionary<string, string> dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TestProperties.cs (1)
21Dictionary<String, String> properties = new Dictionary<String, String>(StringComparer.OrdinalIgnoreCase);
InMemory.FunctionalTests (5)
Http2\Http2ConnectionTests.cs (1)
2416public readonly Dictionary<string, StringValues> Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Http2\Http2TestBase.cs (3)
129protected readonly Dictionary<string, string> _receivedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 130protected readonly Dictionary<string, string> _receivedTrailers = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 131protected readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
659public readonly Dictionary<string, string> DecodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
installer.tasks (1)
GenerateFileVersionProps.cs (1)
44var fileVersions = new Dictionary<string, FileVersionData>(StringComparer.OrdinalIgnoreCase);
Microsoft.Analyzers.Extra (5)
CallAnalysis\CallAnalyzer.State.cs (5)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default);
Microsoft.Analyzers.Local (7)
ApiLifecycle\AssemblyAnalysis.cs (2)
17public Dictionary<ISymbol, List<string>> MissingConstraints { get; } = new(SymbolEqualityComparer.Default); 18public Dictionary<ISymbol, List<string>> MissingBaseTypes { get; } = new(SymbolEqualityComparer.Default);
CallAnalysis\CallAnalyzer.State.cs (5)
16public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IInvocationOperation>>> Methods = new(SymbolEqualityComparer.Default); 17public readonly Dictionary<IMethodSymbol, List<Action<OperationAnalysisContext, IObjectCreationOperation>>> Ctors = new(SymbolEqualityComparer.Default); 18public readonly Dictionary<IPropertySymbol, List<Action<OperationAnalysisContext, IPropertyReferenceOperation>>> Props = new(SymbolEqualityComparer.Default); 19public readonly Dictionary<ITypeSymbol, List<Action<OperationAnalysisContext, IThrowOperation>>> ExceptionTypes = new(SymbolEqualityComparer.Default); 20public readonly Dictionary<ITypeSymbol, List<MethodHandlers>> Interfaces = new(SymbolEqualityComparer.Default);
Microsoft.AspNetCore.Analyzer.Testing (1)
TestSource.cs (1)
15= new Dictionary<string, DiagnosticLocation>(StringComparer.Ordinal);
Microsoft.AspNetCore.Analyzers (1)
StartupAnalysisBuilder.cs (1)
22_analysesByType = new Dictionary<INamedTypeSymbol, List<object>>(SymbolEqualityComparer.Default);
Microsoft.AspNetCore.App.Analyzers (1)
Http\HeaderDictionaryIndexerAnalyzer.cs (1)
77internal static readonly Dictionary<string, string> PropertyMapping = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Authentication.Abstractions (3)
AuthenticationOptions.cs (1)
25public IDictionary<string, AuthenticationSchemeBuilder> SchemeMap { get; } = new Dictionary<string, AuthenticationSchemeBuilder>(StringComparer.Ordinal);
AuthenticationProperties.cs (2)
44Items = items ?? new Dictionary<string, string?>(StringComparer.Ordinal); 45Parameters = parameters ?? new Dictionary<string, object?>(StringComparer.Ordinal);
Microsoft.AspNetCore.Authentication.Core (2)
AuthenticationHandlerProvider.cs (1)
29private readonly Dictionary<string, IAuthenticationHandler> _handlerMap = new Dictionary<string, IAuthenticationHandler>(StringComparer.Ordinal);
AuthenticationSchemeProvider.cs (1)
21: this(options, new Dictionary<string, AuthenticationScheme>(StringComparer.Ordinal))
Microsoft.AspNetCore.Authentication.Core.Test (1)
AuthenticationSchemeProviderTests.cs (1)
303: base(options, new Dictionary<string, AuthenticationScheme>(StringComparer.OrdinalIgnoreCase))
Microsoft.AspNetCore.Authorization (1)
AuthorizationOptions.cs (1)
18private Dictionary<string, Task<AuthorizationPolicy?>> PolicyMap { get; } = new Dictionary<string, Task<AuthorizationPolicy?>>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.BrowserTesting (3)
BrowserManager.cs (1)
19private readonly Dictionary<string, IBrowser> _launchBrowsers = new(StringComparer.Ordinal);
BrowserManagerConfiguration.cs (2)
29new Dictionary<string, BrowserOptions>(StringComparer.OrdinalIgnoreCase); 35new Dictionary<string, BrowserNewContextOptions>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components (16)
Infrastructure\ComponentStatePersistenceManager.cs (1)
18private readonly Dictionary<string, byte[]> _currentState = new(StringComparer.Ordinal);
NavigationManagerExtensions.cs (1)
706var parameterSources = new Dictionary<ReadOnlyMemory<char>, QueryParameterSource>(QueryParameterNameComparer.Instance);
Reflection\ComponentProperties.cs (3)
118unmatched ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 139unmatched ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 275_underlyingWriters = new Dictionary<string, PropertySetter>(StringComparer.OrdinalIgnoreCase);
Reflection\MemberAssignment.cs (1)
17var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
Rendering\RenderTreeBuilder.cs (2)
808var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance)); 880var seenAttributeNames = (_seenAttributeNames ??= new Dictionary<string, int>(SimplifiedStringHashComparer.Instance));
ResourceAssetCollection.cs (1)
29var mappings = new Dictionary<string, ResourceAsset>(StringComparer.OrdinalIgnoreCase);
Routing\QueryParameterValueSupplier.cs (1)
11private readonly Dictionary<ReadOnlyMemory<char>, StringSegmentAccumulator> _queryParameterValuesByName = new(QueryParameterNameComparer.Instance);
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
602updatedDefaults = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase);
src\Http\Routing\src\RouteConstraintBuilder.cs (2)
44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 54var constraints = new Dictionary<string, IRouteConstraint>(StringComparer.OrdinalIgnoreCase);
src\Http\Routing\src\RouteOptions.cs (1)
104var defaults = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
src\Http\Routing\src\Tree\UrlMatchingNode.cs (1)
31Literals = new Dictionary<string, UrlMatchingNode>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
18private readonly Dictionary<string, HashSet<(int ComponentId, int FrameIndex)>> _namedSubmitEventsByScopeQualifiedName = new(StringComparer.Ordinal);
src\Shared\PropertyHelper\PropertyHelper.cs (1)
329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Builder\TestFileProvider\TestFileProvider.cs (2)
11new Dictionary<string, IFileInfo>(StringComparer.Ordinal); 16new Dictionary<string, TestFileChangeToken>(StringComparer.Ordinal);
Microsoft.AspNetCore.Components.Server (1)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
246var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.Components.Tests (10)
Rendering\RenderTreeBuilderTest.cs (10)
285builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 292builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1842builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1867builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1892builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1915builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1939builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1962builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 1993builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 2002builder.AddMultipleAttributes(0, new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Components.Web (4)
JSComponents\JSComponentConfigurationStore.cs (3)
24private readonly Dictionary<string, Type> _jsComponentTypesByIdentifier = new(StringComparer.Ordinal); 25internal Dictionary<string, JSComponentParameter[]> JSComponentParametersByIdentifier { get; } = new(StringComparer.Ordinal); 26internal Dictionary<string, List<string>> JSComponentIdentifiersByInitializer { get; } = new(StringComparer.Ordinal);
JSComponents\JSComponentInterop.cs (1)
202ParameterInfoByName = new(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.WebAssembly (2)
Http\WebAssemblyHttpRequestMessageExtensions.cs (1)
126fetchOptions = new Dictionary<string, object>(StringComparer.Ordinal);
Prerendering\WebAssemblyComponentParameterDeserializer.cs (1)
26var parametersDictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
18private static readonly Dictionary<StringSegment, string> _encodingExtensionMap = new Dictionary<StringSegment, string>(StringSegmentComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Components.WebView (2)
FileExtensionContentTypeProvider.cs (1)
28: this(new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer);
Microsoft.AspNetCore.Components.WebView.Test (3)
Infrastructure\ElementNode.cs (3)
15_attributes = new Dictionary<string, object>(StringComparer.Ordinal); 16_properties = new Dictionary<string, object>(StringComparer.Ordinal); 17_events = new Dictionary<string, ElementEventDescriptor>(StringComparer.Ordinal);
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsOptions.cs (1)
16= new Dictionary<string, (CorsPolicy, Task<CorsPolicy>)>(StringComparer.Ordinal);
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\XmlKeyDecryptionOptions.cs (1)
16private readonly Dictionary<string, List<X509Certificate2>> _certs = new Dictionary<string, List<X509Certificate2>>(StringComparer.Ordinal);
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Logging\LoggingRedactionOptions.cs (3)
59public IDictionary<string, DataClassification> RouteParameterDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase); 70public IDictionary<string, DataClassification> RequestHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase); 81public IDictionary<string, DataClassification> ResponseHeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase);
Logging\RequestHeadersLogEnricherOptions.cs (1)
27public IDictionary<string, DataClassification> HeadersDataClasses { get; set; } = new Dictionary<string, DataClassification>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Logging\IncomingHttpRouteUtilityTests.cs (4)
57var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal)); 95var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal)); 135var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal)); 267var sensitiveParameters = routeUtility.GetSensitiveParameters(httpRoute, mockHttpRequest.Object, new Dictionary<string, DataClassification>(StringComparer.Ordinal));
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
32var properties = new Dictionary<string, List<AuthProperty>>(StringComparer.Ordinal);
src\Grpc\JsonTranscoding\src\Shared\Server\MethodOptions.cs (1)
111var resolvedCompressionProviders = new Dictionary<string, ICompressionProvider>(StringComparer.Ordinal);
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
391var routeParameterDescriptors = new Dictionary<string, RouteParameter>(StringComparer.Ordinal);
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
391var routeParameterDescriptors = new Dictionary<string, RouteParameter>(StringComparer.Ordinal);
Microsoft.AspNetCore.HeaderParsing (2)
HeaderParsingOptions.cs (2)
24public IDictionary<string, StringValues> DefaultValues { get; set; } = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase); 42public IDictionary<string, int> MaxCachedValuesPerHeader { get; set; } = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.HeaderPropagation (1)
HeaderPropagationMiddleware.cs (1)
46var headers = _values.Headers ??= new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
HeaderPropagationMessageHandlerTest.cs (1)
17State.Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer);
Microsoft.AspNetCore.Http (2)
Builder\ApplicationBuilder.cs (1)
44Properties = new Dictionary<string, object?>(StringComparer.Ordinal);
Timeouts\RequestTimeoutOptions.cs (1)
20public IDictionary<string, RequestTimeoutPolicy> Policies { get; } = new Dictionary<string, RequestTimeoutPolicy>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.Abstractions (4)
ProblemDetails\HttpValidationProblemDetails.cs (1)
18: this(new Dictionary<string, string[]>(StringComparer.Ordinal))
ProblemDetails\ProblemDetails.cs (1)
70public IDictionary<string, object?> Extensions { get; set; } = new Dictionary<string, object?>(StringComparer.Ordinal);
Routing\RouteValueDictionary.cs (1)
902var names = new Dictionary<string, PropertyHelper>(StringComparer.OrdinalIgnoreCase);
src\Shared\PropertyHelper\PropertyHelper.cs (1)
329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\IncrementalValuesProviderExtensions.cs (1)
18Dictionary<TSource, ImmutableArray<TElement>.Builder> map = new(comparer);
Microsoft.AspNetCore.Http.Tests (5)
DefaultHttpContextTests.cs (1)
450= new Dictionary<string, byte[]>(StringComparer.OrdinalIgnoreCase);
HeaderDictionaryTests.cs (4)
24new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase) 44new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase) 59new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase) 72new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.InternalTesting (1)
Tracing\CollectingEventListener.cs (1)
17private readonly Dictionary<string, EventSource> _existingSources = new Dictionary<string, EventSource>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.JsonPatch.Tests (8)
Internal\DictionaryAdapterTest.cs (8)
22var dictionary = new Dictionary<string, int>(StringComparer.Ordinal); 92var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 119var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 144var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 203var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 221var dictionary = new Dictionary<string, object>(StringComparer.Ordinal); 239var dictionary = new Dictionary<string, Rectangle>(StringComparer.Ordinal); 262var dictionary = new Dictionary<string, object>(StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.Abstractions (2)
Abstractions\ActionDescriptor.cs (1)
22RouteValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
ModelBinding\Validation\ValidationStateDictionary.cs (1)
27_inner = new Dictionary<object, ValidationStateEntry>(ReferenceEqualityComparer.Instance);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
DefaultApiDescriptionProvider.cs (1)
240var routeParameters = new Dictionary<string, ApiParameterRouteInfo>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.Core (16)
ApplicationModels\ActionModel.cs (1)
38RouteValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
ApplicationModels\ApplicationModelFactory.cs (2)
61var actionsByRouteName = new Dictionary<string, List<(ActionModel, SelectorModel)>>(StringComparer.OrdinalIgnoreCase); 131var routeValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase)
ApplicationModels\ControllerModel.cs (1)
39RouteValues = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Formatters\FormatterMappings.cs (1)
16new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Infrastructure\ActionSelectionTable.cs (2)
107var ordinalEntries = new Dictionary<string[], List<T>>(StringArrayComparer.Ordinal); 108var ordinalIgnoreCaseEntries = new Dictionary<string[], List<T>>(StringArrayComparer.OrdinalIgnoreCase);
Infrastructure\ControllerActionInvoker.cs (1)
73_arguments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
ModelBinding\Binders\DictionaryModelBinder.cs (1)
161var keyMappings = new Dictionary<string, TKey>(StringComparer.Ordinal);
ModelBinding\CompositeValueProvider.cs (1)
141return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ModelBinding\PrefixContainer.cs (1)
77var result = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MvcOptions.cs (1)
40CacheProfiles = new Dictionary<string, CacheProfile>(StringComparer.OrdinalIgnoreCase);
Routing\AttributeRoute.cs (1)
145var templateCache = new Dictionary<string, RouteTemplate>(StringComparer.OrdinalIgnoreCase);
SerializableError.cs (1)
20: base(StringComparer.OrdinalIgnoreCase)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
ValidationProblemDetails.cs (1)
37var errorDictionary = new Dictionary<string, string[]>(StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.Core.Test (131)
ApplicationModels\AttributeRouteModelTests.cs (30)
183var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 495new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 506new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 517new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 528new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 539new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 550new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 561new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 572new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 583new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 594new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 605new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 616new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 627new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 638new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 649new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 660new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 677new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 684new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 691new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 698new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 705new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 715new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 722new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 729new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 736new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 747new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 758new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 769new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 780new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Controllers\ControllerBinderDelegateProviderTest.cs (22)
43var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 97var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 165var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 207var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 257var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 293var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 342var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 401var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 436var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 484var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 532var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 579var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 629var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 668var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 708var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 749var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 811var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 874var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 962var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 1021var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 1176var arguments = new Dictionary<string, object>(StringComparer.Ordinal); 1228var arguments = new Dictionary<string, object>(StringComparer.Ordinal);
Infrastructure\ActionSelectionTableTest.cs (25)
25RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 34RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 71RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 101RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 111RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 140RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 149RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 175RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 184RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 210RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 219RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 245RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 275RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 308RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 317RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 326RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 357RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 366RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 375RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 403RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 434RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 465RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 496RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 525RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\ActionSelectorTest.cs (20)
35RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 44RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 74RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 84RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 116RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 125RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 154RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 163RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 192RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 228RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 237RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 246RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 280RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 289RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 298RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 329RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 363RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 397RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 431RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 465RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
ModelBinding\Binders\DictionaryModelBinderTest.cs (4)
101var dictionaryWithOne = new Dictionary<string, string>(StringComparer.Ordinal) 105var dictionaryWithThree = new Dictionary<string, string>(StringComparer.Ordinal) 196var dictionary = new Dictionary<string, string>(StringComparer.Ordinal) 233var dictionary = new Dictionary<string, string>(StringComparer.Ordinal)
ModelBinding\CompositeValueProviderTest.cs (2)
70var dictionary = new Dictionary<string, string>(StringComparer.Ordinal) 119var values = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
Routing\AttributeRouteTest.cs (10)
126RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 170RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 214RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 261RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 275RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 329RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 372RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 415RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 463RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 477RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\AttributeRoutingTest.cs (2)
119action.RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 152RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
Routing\ControllerActionEndpointDataSourceTest.cs (13)
28RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 69RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 140RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 148RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 222RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 230RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 309RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 317RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 390RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 399RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 491RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 499RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (3)
22RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 30RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 38RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
SimpleValueProvider.cs (1)
18: base(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
RoutingTestsBase.cs (3)
273new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 297new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 331new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
AnnotatedProblemDetails.cs (1)
45public IDictionary<string, object?> Extensions { get; } = new Dictionary<string, object?>(StringComparer.Ordinal);
BsonTempDataSerializer.cs (2)
53return new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 229var convertedDictionary = new Dictionary<string, TVal?>(StringComparer.Ordinal);
ValidationProblemDetailsConverter.cs (1)
66public IDictionary<string, string[]> Errors { get; } = new Dictionary<string, string[]>(StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
NewtonsoftJsonOutputFormatterTest.cs (1)
241var dictionary = new Dictionary<string, int>(StringComparer.Ordinal)
Microsoft.AspNetCore.Mvc.Razor (4)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
67_hotReloadedViews ??= new(StringComparer.Ordinal);
RazorPageBase.cs (1)
28private readonly IDictionary<string, RenderAsyncDelegate> _sectionWriters = new Dictionary<string, RenderAsyncDelegate>(StringComparer.OrdinalIgnoreCase);
RazorViewEngine.cs (1)
244expanderValues = new Dictionary<string, string?>(StringComparer.Ordinal);
TagHelpers\UrlResolutionTagHelper.cs (1)
58new(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageRouteModel.cs (1)
39RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Infrastructure\PageActionInvoker.cs (1)
423_arguments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (2)
22RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 30RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Infrastructure\PageActionEndpointDataSourceTest.cs (6)
29RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 61RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 105RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 118RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 183RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 225RouteValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.TagHelpers (12)
AnchorTagHelper.cs (1)
143_routeValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ComponentTagHelper.cs (1)
43_parameters ??= new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
FormActionTagHelper.cs (1)
159_routeValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
FormTagHelper.cs (1)
128_routeValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
InputTagHelper.cs (5)
23new(StringComparer.OrdinalIgnoreCase) 57new(StringComparer.Ordinal) 216htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 418htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 460htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
SelectTagHelper.cs (1)
139htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
TextAreaTagHelper.cs (1)
77htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
ValidationMessageTagHelper.cs (1)
67htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (9)
SelectTagHelperTest.cs (1)
107var attributeData = new Dictionary<string, string>(StringComparer.Ordinal)
TagHelperOutputExtensionsTest.cs (7)
641new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 656new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 671new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 686new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 701new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 716new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 737new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
TestableHtmlGenerator.cs (1)
35validationAttributes: new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase))
Microsoft.AspNetCore.Mvc.ViewFeatures (13)
CookieTempDataProvider.cs (1)
94return new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
DefaultEditorTemplates.cs (1)
179var htmlAttributes = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
FormContext.cs (3)
35_formData = new Dictionary<string, object>(StringComparer.Ordinal); 107_renderedFields = new Dictionary<string, bool>(StringComparer.Ordinal); 122_invariantFields ??= new(StringComparer.Ordinal);
HtmlHelper.cs (1)
164dictionary = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
Infrastructure\DefaultTempDataSerializer.cs (2)
27var deserialized = new Dictionary<string, object>(StringComparer.Ordinal); 119var dictionary = new Dictionary<string, string>(StringComparer.Ordinal);
SessionStateTempDataProvider.cs (1)
43return new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
TempDataDictionary.cs (1)
142: new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
TemplateRenderer.cs (2)
23new Dictionary<string, Func<IHtmlHelper, IHtmlContent>>(StringComparer.OrdinalIgnoreCase) 38new Dictionary<string, Func<IHtmlHelper, IHtmlContent>>(StringComparer.OrdinalIgnoreCase)
ViewDataDictionary.cs (1)
119data: new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
CookieTempDataProviderTest.cs (1)
341private readonly Dictionary<string, CookieInfo> _cookies = new Dictionary<string, CookieInfo>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.Views.TestCommon (2)
TestFileProvider.cs (2)
11new Dictionary<string, IFileInfo>(StringComparer.Ordinal); 16new Dictionary<string, TestFileChangeToken>(StringComparer.Ordinal);
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheOptions.cs (2)
55NamedPolicies ??= new Dictionary<string, IOutputCachePolicy>(StringComparer.OrdinalIgnoreCase); 77NamedPolicies ??= new Dictionary<string, IOutputCachePolicy>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.RateLimiting (2)
RateLimiterOptions.cs (2)
17= new Dictionary<string, DefaultRateLimiterPolicy>(StringComparer.Ordinal); 20= new Dictionary<string, Func<IServiceProvider, DefaultRateLimiterPolicy>>(StringComparer.Ordinal);
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (1)
49var parentComplexObject = new Dictionary<string, int>(StringComparer.Ordinal);
Microsoft.AspNetCore.RequestDecompression (1)
RequestDecompressionOptions.cs (1)
14public IDictionary<string, IDecompressionProvider> DecompressionProviders { get; } = new Dictionary<string, IDecompressionProvider>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.Rewrite (1)
ApacheModRewrite\FlagParser.cs (1)
8private static readonly IDictionary<string, FlagType> _ruleFlagLookup = new Dictionary<string, FlagType>(StringComparer.OrdinalIgnoreCase) {
Microsoft.AspNetCore.Routing (23)
DecisionTree\DecisionTreeBuilder.cs (3)
103var criteria = new Dictionary<string, Criterion>(StringComparer.OrdinalIgnoreCase); 153var reducedBranches = new Dictionary<object, DecisionTreeNode<TItem>>(comparer.InnerComparer); 219: base(comparer)
DefaultLinkParser.cs (1)
89var constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase);
EndpointNameAddressScheme.cs (1)
38var entries = new Dictionary<string, Endpoint[]>(StringComparer.Ordinal);
Matching\AcceptsMatcherPolicy.cs (1)
150var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase);
Matching\ContentEncodingNegotiationMatcherPolicy.cs (1)
70_extraDestinations ??= new Dictionary<string, (int destination, double quality)>(StringComparer.OrdinalIgnoreCase);
Matching\DfaMatcherBuilder.cs (2)
52_assignments = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 124_cachedParameters = new Dictionary<string, IParameterPolicy>(StringComparer.Ordinal);
Matching\DfaNode.cs (1)
52Literals = new Dictionary<string, DfaNode>(StringComparer.OrdinalIgnoreCase);
Matching\HttpMethodDestinationsLookup.cs (1)
81_extraDestinations ??= new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
Matching\NegotiationMatcherPolicy.cs (1)
233var edges = new Dictionary<string, List<Endpoint>>(StringComparer.OrdinalIgnoreCase);
Patterns\RoutePatternFactory.cs (2)
602updatedDefaults = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 614parameterPolicyReferences = new Dictionary<string, List<RoutePatternParameterPolicyReference>>(StringComparer.OrdinalIgnoreCase);
RouteCollection.cs (1)
22new Dictionary<string, INamedRouter>(StringComparer.OrdinalIgnoreCase);
RouteConstraintBuilder.cs (2)
44_constraints = new Dictionary<string, List<IRouteConstraint>>(StringComparer.OrdinalIgnoreCase); 54var constraints = new Dictionary<string, IRouteConstraint>(StringComparer.OrdinalIgnoreCase);
RouteOptions.cs (1)
104var defaults = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
RouteValuesAddressScheme.cs (1)
73var namedOutboundMatchResults = new Dictionary<string, List<OutboundMatchResult>>(StringComparer.OrdinalIgnoreCase);
src\Shared\PropertyHelper\PropertyHelper.cs (1)
329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Tree\LinkGenerationDecisionTree.cs (1)
176var results = new Dictionary<string, DecisionCriterionValue>(StringComparer.OrdinalIgnoreCase);
Tree\TreeRouter.cs (1)
88_namedEntries = new Dictionary<string, OutboundMatch>(StringComparer.OrdinalIgnoreCase);
Tree\UrlMatchingNode.cs (1)
31Literals = new Dictionary<string, UrlMatchingNode>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Routing.Abstractions (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Routing.Tests (1)
DecisionTreeBuilderTest.cs (1)
198Criteria = new Dictionary<string, DecisionCriterionValue>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
130public readonly Dictionary<string, string> _decodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpHeaders.cs (1)
26protected Dictionary<string, StringValues> Unknown => MaybeUnknown ??= new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
Internal\SniOptionsSelector.cs (1)
28private readonly Dictionary<string, SniOptions> _exactNameOptions = new Dictionary<string, SniOptions>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
SniOptionsSelectorTests.cs (2)
915public Dictionary<object, string> CertToPathDictionary { get; } = new Dictionary<object, string>(ReferenceEqualityComparer.Instance); 916public Dictionary<object, X509Certificate2Collection> CertToFullChain { get; } = new Dictionary<object, X509Certificate2Collection>(ReferenceEqualityComparer.Instance);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
659public readonly Dictionary<string, string> DecodedHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Shared.Tests (5)
CopyOnWriteDictionaryHolderTest.cs (3)
17var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 43var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) 68var source = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
36var newDict = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
src\Shared\PropertyHelper\PropertyHelper.cs (1)
329dictionary = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
2120private readonly Dictionary<string, InvocationRequest> _pendingCalls = new Dictionary<string, InvocationRequest>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (1)
25private readonly Dictionary<string, HubMethodDescriptor> _methods = new(StringComparer.OrdinalIgnoreCase);
Internal\DefaultHubProtocolResolver.cs (1)
22_availableProtocols = new Dictionary<string, IHubProtocol>(StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
483var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Protocol\MessagePackHubProtocolWorker.cs (1)
246var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
480var headers = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.AspNetCore.StaticFiles (1)
FileExtensionContentTypeProvider.cs (1)
22: this(new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
150private readonly Dictionary<string, IFileInfo> _files = new Dictionary<string, IFileInfo>(StringComparer.Ordinal);
Microsoft.AspNetCore.WebUtilities (2)
KeyValueAccumulator.cs (2)
25_accumulator = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase); 49_expandingAccumulator = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build (114)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
184var pluginSettings = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
215var itemListsToBeBatched = new Dictionary<string, ICollection<ProjectItemInstance>>(MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
671_addTable = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
616var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\Lookup.cs (2)
778PrimaryModifyTable ??= new ItemTypeToItemsMetadataUpdateDictionary(MSBuildNameIgnoreCaseComparer.Default); 1047_modifications = new Dictionary<string, MetadataModification>(MSBuildNameIgnoreCaseComparer.Default);
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (6)
415itemVectorTransformsInTargetInputs = new ItemVectorPartitionCollection(MSBuildNameIgnoreCaseComparer.Default); 801itemVectors = new ItemVectorPartitionCollection(MSBuildNameIgnoreCaseComparer.Default); 802discreteItems = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 844itemVectorCollection[itemVectorType] = new ItemVectorPartition(MSBuildNameIgnoreCaseComparer.Default); 1264(s_sortInputsOutputs ? (IDictionary<string, object>)new SortedDictionary<string, object>(StringComparer.OrdinalIgnoreCase) : (IDictionary<string, object>)new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase)); 1270(s_sortInputsOutputs ? (IDictionary<string, object>)new SortedDictionary<string, object>(StringComparer.OrdinalIgnoreCase) : (IDictionary<string, object>)new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase));
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
323lookupHash ??= new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 533taskIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
984targetOutputsPerProject.Add(new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase)); 1162new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase) 1224targetOutputsPerProject?.Add(new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase));
BackEnd\Shared\BuildRequestConfiguration.cs (2)
454Dictionary<string, string> globalProperties = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 605new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase));
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
157private readonly Dictionary<string, TaskFactoryWrapper> _intrinsicTasks = new Dictionary<string, TaskFactoryWrapper>(StringComparer.OrdinalIgnoreCase); 361var setParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BuildCheck\Checks\DoubleWritesCheck.cs (1)
47private readonly Dictionary<string, (string projectFilePath, string taskName)> _filesWritten = new(StringComparer.CurrentCultureIgnoreCase);
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
37private readonly Dictionary<string, (string, string)> _projectsPerReferencePath = new(MSBuildNameIgnoreCaseComparer.Default); 38private readonly Dictionary<string, string> _projectsPerOutputPath = new(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Checks\PropertiesUsageCheck.cs (5)
121private Dictionary<string, IMSBuildElementLocation?> _writenProperties = new(MSBuildNameIgnoreCaseComparer.Default); 126private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsInScope = new(MSBuildNameIgnoreCaseComparer.Default); 127private Dictionary<string, IMSBuildElementLocation> _uninitializedReadsOutOfScope = new(MSBuildNameIgnoreCaseComparer.Default); 239_writenProperties = new Dictionary<string, IMSBuildElementLocation?>(MSBuildNameIgnoreCaseComparer.Default); 240_uninitializedReadsInScope = new Dictionary<string, IMSBuildElementLocation>(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
36private readonly Dictionary<string, string> _projectsPerOutputPath = new(MSBuildNameIgnoreCaseComparer.Default);
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
75var resultingDictionary = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
Collections\ItemDictionary.cs (2)
56_itemLists = new Dictionary<string, LinkedList<T>>(MSBuildNameIgnoreCaseComparer.Default); 77_itemLists = new Dictionary<string, LinkedList<T>>(MSBuildNameIgnoreCaseComparer.Default);
Collections\MultiDictionary.cs (1)
68_backing = new Dictionary<K, SmallList<V>>(keyComparer);
Construction\Solution\ProjectInSolution.cs (1)
136_projectConfigurations = new Dictionary<string, ProjectConfigurationInSolution>(StringComparer.OrdinalIgnoreCase);
Construction\Solution\SolutionFile.cs (6)
339_projectsByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 340_solutionFoldersByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 744_projectsByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 745_solutionFoldersByGuid = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 805var projectsByUniqueName = new Dictionary<string, ProjectInSolution>(StringComparer.OrdinalIgnoreCase); 1712var rawProjectConfigurationsEntries = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Construction\Solution\SolutionProjectGenerator.cs (1)
182_globalProperties = globalProperties ?? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Definition\Project.cs (1)
4268ConditionedProperties = new Dictionary<string, List<string>>(MSBuildNameIgnoreCaseComparer.Default);
Definition\ProjectCollection.cs (3)
1798_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase); 2444private Dictionary<string, List<Project>> _loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase); 2604_loadedProjects = new Dictionary<string, List<Project>>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsetConfigurationReader.cs (1)
74_projectImportSearchPathsCache = new Dictionary<string, Dictionary<string, ProjectImportPathMatch>>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsetReader.cs (1)
459Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Evaluation\Evaluator.cs (4)
249_importsSeen = new Dictionary<string, ProjectImportElement>(StringComparer.OrdinalIgnoreCase); 754Dictionary<string, List<TargetSpecification>> targetsWhichRunBeforeByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 755Dictionary<string, List<TargetSpecification>> targetsWhichRunAfterByTarget = new Dictionary<string, List<TargetSpecification>>(StringComparer.OrdinalIgnoreCase); 757Dictionary<string, LinkedListNode<ProjectTargetElement>> activeTargets = new Dictionary<string, LinkedListNode<ProjectTargetElement>>(StringComparer.OrdinalIgnoreCase);
Evaluation\Expander.cs (1)
2543Dictionary<string, string> directoryNameTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\ExpressionShredder.cs (1)
449pair.Metadata ??= new Dictionary<string, MetadataReference>(MSBuildNameIgnoreCaseComparer.Default);
Evaluation\IntrinsicFunctions.cs (1)
488IDictionary<string, string> parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\ItemSpec.cs (2)
584_children = new Dictionary<string, MetadataTrie<P, I>>(comparer); 597_children = new Dictionary<string, MetadataTrie<P, I>>(comparer);
Evaluation\LazyItemEvaluator.cs (2)
44new Dictionary<string, LazyItemList>(StringComparer.OrdinalIgnoreCase); 364Dictionary<string, UpdateOperation> itemsWithNoWildcards = new Dictionary<string, UpdateOperation>(StringComparer.OrdinalIgnoreCase);
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (1)
107_dictionaryBuilder = new Dictionary<string, ItemDataCollectionValue<I>>(StringComparer.OrdinalIgnoreCase);
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
134capturedItemsFromReferencedItemTypes ??= new Dictionary<string, I>(StringComparer.OrdinalIgnoreCase);
Evaluation\PropertiesUseTracker.cs (1)
94_properties = new(StringComparer.OrdinalIgnoreCase);
Evaluation\ToolsetProvider.cs (2)
39_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase); 104_toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
FileMatcher.cs (1)
2478searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase);
Graph\GraphBuilder.cs (1)
308Dictionary<string, ImmutableDictionary<string, string>> globalPropertiesForProjectConfiguration = new(StringComparer.OrdinalIgnoreCase);
Instance\HostServices.cs (3)
143_hostObjectMap ??= new Dictionary<string, HostObjects>(StringComparer.OrdinalIgnoreCase); 172_hostObjectMap ??= new Dictionary<string, HostObjects>(StringComparer.OrdinalIgnoreCase); 222_projectAffinities = new Dictionary<string, NodeAffinity>(StringComparer.OrdinalIgnoreCase);
Instance\ProjectItemInstance.cs (1)
1514Dictionary<string, string> clonedMetadata = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default);
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
349mergedParameters ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 577mergedParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\TaskFactoryWrapper.cs (4)
283propertyInfoCache = new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 297namesOfPropertiesWithAmbiguousMatches = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 307namesOfPropertiesWithRequiredAttribute = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 318namesOfPropertiesWithOutputAttribute = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\TaskRegistry.cs (6)
450? new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 755: new Dictionary<RegisteredTaskIdentity, List<RegisteredTaskRecord>>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact); 815return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1270_taskNamesCreatableByFactory = new Dictionary<RegisteredTaskIdentity, object>(RegisteredTaskIdentity.RegisteredTaskIdentityComparer.Exact); 1678_usingTaskParameters ??= new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase); 1770translator.TranslateDictionary(ref _usingTaskParameters, TranslatorForTaskParametersKey, TranslatorForTaskParameterValue, count => new Dictionary<string, TaskPropertyInfo>(StringComparer.OrdinalIgnoreCase));
Logging\BaseConsoleLogger.cs (1)
679table = new Dictionary<string, PerformanceCounter>(StringComparer.OrdinalIgnoreCase);
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
68_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 209_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 1667table = new Dictionary<string, PerformanceCounter>(StringComparer.OrdinalIgnoreCase); 1722: new Dictionary<BuildEventContext, object>(comparer);
Logging\ParallelLogger\ParallelLoggerHelpers.cs (4)
22private Dictionary<string, int> _projectTargetKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 23private Dictionary<string, int> _projectKey = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 32_projectStartedEvents = new Dictionary<BuildEventContext, ProjectStartedEventMinimumFields>(s_compareContextNodeId); 33_targetStartedEvents = new Dictionary<BuildEventContext, TargetStartedEventMinimumFields>(s_compareContextNodeIdTargetId);
Logging\ProfilerLogger.cs (2)
128new Dictionary<EvaluationLocation, ProfiledLocation>(EvaluationLocationIdAgnosticComparer.Singleton); 135var originalLocations = new Dictionary<EvaluationLocation, EvaluationLocation>(EvaluationLocationIdAgnosticComparer.Singleton);
PlatformNegotiation.cs (1)
106Dictionary<string, string> table = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
PropertyParser.cs (2)
33propertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 89finalPropertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
TaskHostConfiguration.cs (1)
200_taskParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskHostTaskComplete.cs (2)
120_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 198_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskParameter.cs (5)
304escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 322escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 431escapedGenericWrappedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 854_customEscapedMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 924IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ToolsetElement.cs (3)
171private Dictionary<string, string> _previouslySeenOS = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 346private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 525private Dictionary<string, string> _previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TypeLoader.cs (1)
315_publicTypeNameToType = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.CommandLine.UnitTests (2)
CommandLineSwitches_Tests.cs (2)
1163new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 1164new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase),
Microsoft.Build.Engine.OM.UnitTests (20)
Definition\Project_Tests.cs (12)
812var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 829var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 960Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 988Dictionary<string, string> initial = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1071new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), 1287IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1316IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1319IDictionary<string, string> projectCollectionGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2420Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2434Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2458Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2528Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Definition\ProjectCollection_Tests.cs (3)
411var globalProperties1 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v1" } }; 418var globalProperties2 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v2" } }; 572var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "v1" } };
Definition\ProjectProperty_Tests.cs (1)
192Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Instance\ProjectInstance_Tests.cs (2)
203Dictionary<string, string> globals = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) { { "p", "p1" } }; 1027var globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TransientIO.cs (1)
18private Dictionary<string, TransientIO> Children = new Dictionary<string, TransientIO>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Engine.UnitTests (111)
BackEnd\AssemblyTaskFactory_Tests.cs (18)
175IDictionary<string, string> factoryIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 181IDictionary<string, string> taskIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 195IDictionary<string, string> factoryIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 201IDictionary<string, string> taskIdentityParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 275IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 306IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 337IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 370IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 403IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 408IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 438IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 471IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 502IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 507IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 566IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 601IDictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 630IDictionary<string, string> factoryParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 658var taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\BinaryTranslator_Tests.cs (2)
434Dictionary<string, string> value = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 472Dictionary<string, BaseClass> value = new Dictionary<string, BaseClass>(StringComparer.OrdinalIgnoreCase);
BackEnd\BuildManager_Tests.cs (1)
3544Dictionary<string, string> propertiesLookup = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\BuildRequestConfiguration_Tests.cs (13)
105BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 109BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 113BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 121BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 125BuildRequestData data2 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 129BuildRequestData data3 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 139BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 147BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 157BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 165BuildRequestData data1 = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 275Dictionary<string, string> globalProperties = new(StringComparer.OrdinalIgnoreCase); 352new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 457Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\ConfigurationMetadata_Tests.cs (1)
152Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\IntrinsicTask_Tests.cs (1)
1257Dictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BackEnd\LoggingServicesLogMethod_Tests.cs (5)
841BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 867BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 906BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 947BuildRequestData data = new BuildRequestData(ProjectFile, new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null); 1420BuildRequestData data = new BuildRequestData("file", new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase), "toolsVersion", Array.Empty<string>(), null);
BackEnd\SdkResolverService_Tests.cs (3)
386propertiesToAdd = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 391itemsToAdd = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase) 394new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
BackEnd\TaskExecutionHost_Tests.cs (9)
143var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 159var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 169var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 608var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 624var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 642var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase); 1290_parametersSetOnTask = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 1291_outputsReadFromTask = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase); 1494var parameters = new Dictionary<string, (string, ElementLocation)>(StringComparer.OrdinalIgnoreCase);
BackEnd\TaskRegistry_Tests.cs (4)
580Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1057Dictionary<string, string> taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1081taskParameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2056parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
BuildEnvironmentHelper_Tests.cs (1)
508private readonly Dictionary<string, string> _mockEnvironment = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Collections\OMcollections_tests.cs (2)
208var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 225var dictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
CommunicationUtilities_Tests.cs (1)
24IDictionary<string, string> referenceVars2 = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Definition\Toolset_Tests.cs (3)
105Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase); 509IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 513Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsetConfigurationReader_Tests.cs (1)
561Dictionary<string, Toolset> toolsets = new Dictionary<string, Toolset>(StringComparer.OrdinalIgnoreCase);
Definition\ToolsVersion_Tests.cs (1)
945_defaultTasksFileMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\Evaluator_Tests.cs (23)
1917IDictionary<string, ProjectProperty> allEvaluatedPropertiesWithNoBackingXmlAndNoDuplicates = new Dictionary<string, ProjectProperty>(StringComparer.OrdinalIgnoreCase); 2079IDictionary<string, ProjectProperty> allEvaluatedPropertiesWithNoBackingXmlAndNoDuplicates = new Dictionary<string, ProjectProperty>(StringComparer.OrdinalIgnoreCase); 2964IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 2994IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3024IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3054IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3094IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3136IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3169IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3203IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3236IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3265IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3347IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3404IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3465IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3525IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3597IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3670IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3735IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3797IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 4688new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 5128IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 5132Dictionary<string, SubToolset> subToolsets = new Dictionary<string, SubToolset>(StringComparer.OrdinalIgnoreCase);
Evaluation\Expander_Tests.cs (4)
780Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1358Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1574var itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 3911Dictionary<string, string> itemMetadataTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Evaluation\ExpressionShredder_Tests.cs (1)
1146Dictionary<string, MetadataReference> consumedMetadataReferences = new Dictionary<string, MetadataReference>(StringComparer.OrdinalIgnoreCase);
Evaluation\Preprocessor_Tests.cs (3)
942var propertiesToAdd = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 947var itemsToAdd = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase) 950new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Evaluation\SdkResultEvaluation_Tests.cs (3)
59propertiesToAdd = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 64itemsToAdd = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase) 67new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
ExpressionTreeExpression_Tests.cs (1)
400Dictionary<string, string> metadataDictionary = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Graph\ParallelWorkSet_Tests.cs (1)
23new Dictionary<string, string>(StringComparer.Ordinal);
Instance\HostServices_Tests.cs (1)
503Dictionary<string, string> globals = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Instance\ProjectInstance_Internal_Tests.cs (4)
381IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 419IDictionary<string, string> globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 422IDictionary<string, string> projectCollectionGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 963globalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
InternalEngineHelpers.cs (1)
110sdkResultItems = new Dictionary<string, SdkResultItem>(StringComparer.OrdinalIgnoreCase);
TaskParameter_Tests.cs (3)
365IDictionary metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 398IDictionary metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 445IDictionary metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Framework (2)
Sdk\SdkResultItem.cs (1)
24Metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
XamlTypes\Rule.cs (1)
77Metadata = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Framework.UnitTests (1)
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\SimpleTaskItem.cs (1)
45var map = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.Core (64)
AssemblyDependency\Reference.cs (3)
27private Dictionary<string, ITaskItem> _sourceItems = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 76private Dictionary<string, UnificationVersion> _preUnificationVersions = new Dictionary<string, UnificationVersion>(StringComparer.OrdinalIgnoreCase); 508_preUnificationVersions = new Dictionary<string, UnificationVersion>(StringComparer.OrdinalIgnoreCase);
AssemblyDependency\ReferenceTable.cs (5)
36private static readonly Dictionary<string, Tuple<RedistList, string>> s_monikerToHighestRedistList = new Dictionary<string, Tuple<RedistList, string>>(StringComparer.OrdinalIgnoreCase); 46private readonly Dictionary<string, AssemblyNameExtension> _externallyResolvedImmutableFiles = new Dictionary<string, AssemblyNameExtension>(StringComparer.OrdinalIgnoreCase); 325_resolvedSDKReferences = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 370internal Dictionary<AssemblyNameExtension, Reference> References { get; private set; } = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer); 1368var goodReferences = new Dictionary<AssemblyNameExtension, Reference>(AssemblyNameComparer.GenericComparer);
AssemblyDependency\ResolveAssemblyReference.cs (2)
217private Dictionary<string, MessageImportance> _showAssemblyFoldersExLocations = new Dictionary<string, MessageImportance>(StringComparer.OrdinalIgnoreCase); 3022Dictionary<string, AssemblyTableInfo> tableMap = new Dictionary<string, AssemblyTableInfo>(StringComparer.OrdinalIgnoreCase);
AssignProjectConfiguration.cs (2)
370_vcxToDefaultMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 371_defaultToVcxMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\BootstrapperBuilder.cs (6)
43private readonly Dictionary<string, XmlNode> _cultures = new Dictionary<string, XmlNode>(StringComparer.OrdinalIgnoreCase); 44private readonly Dictionary<string, ProductValidationResults> _validationResults = new Dictionary<string, ProductValidationResults>(StringComparer.Ordinal); 207var eulas = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.Ordinal); 618var availableProducts = new Dictionary<string, Product>(StringComparer.Ordinal); 620var buildQueue = new Dictionary<string, Product>(StringComparer.Ordinal); 2208var includedProducts = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase)
BootstrapperUtil\PackageCollection.cs (1)
16private readonly Dictionary<string, Package> _cultures = new Dictionary<string, Package>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\Product.cs (1)
30private readonly Dictionary<string, Package> _cultures = new Dictionary<string, Package>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\ProductCollection.cs (1)
22private readonly Dictionary<string, Product> _table = new Dictionary<string, Product>(StringComparer.OrdinalIgnoreCase);
BootstrapperUtil\productvalidationresults.cs (1)
17new Dictionary<string, XmlValidationResults>(StringComparer.Ordinal);
CreateItem.cs (1)
215var uniqueItems = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
CreateManifestResourceName.cs (1)
33protected Dictionary<string, ITaskItem> itemSpecToTaskitem = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
FileIO\GetFileHash.cs (1)
27= new Dictionary<string, Func<HashAlgorithm>>(StringComparer.OrdinalIgnoreCase)
FileMatcher.cs (1)
2478searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase);
GenerateResource.cs (1)
3885resourcesHashTable = new Dictionary<string, IResource>(StringComparer.OrdinalIgnoreCase);
GetSDKReferenceFiles.cs (2)
1225_pathToReferenceMetadata = new Dictionary<string, SdkReferenceInfo>(StringComparer.OrdinalIgnoreCase); 1226_directoryToFileList = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
ManifestUtil\ApplicationManifest.cs (1)
566var usedExtensions = new Dictionary<string, FileAssociation>(StringComparer.OrdinalIgnoreCase);
MSBuild.cs (1)
564var combinedTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
PlatformNegotiation.cs (1)
106Dictionary<string, string> table = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
PropertyParser.cs (2)
33propertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 89finalPropertiesTable = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
RedistList.cs (7)
38private static readonly Dictionary<string, RedistList> s_cachedRedistList = new Dictionary<string, RedistList>(StringComparer.OrdinalIgnoreCase); 116var simpleNameMap = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 300s_redistListPathCache = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 625var denyListOfAssemblyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 658var assemblyEntries = new Dictionary<string, AssemblyEntry>(StringComparer.OrdinalIgnoreCase); 830var attributes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 1030s_subsetListPathCache = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
ResolveManifestFiles.cs (1)
895private readonly Dictionary<string, MapEntry> _dictionary = new Dictionary<string, MapEntry>(StringComparer.InvariantCultureIgnoreCase);
ResolveSDKReference.cs (6)
31private static readonly Dictionary<string, string> PlatformAliases = new(StringComparer.OrdinalIgnoreCase) 282_runtimeReferenceOnlyDependenciesByName = new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase); 328var productFamilyNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 331var sdkNameToSDK = new Dictionary<string, HashSet<SDKReference>>(StringComparer.OrdinalIgnoreCase); 737FrameworkIdentitiesFromManifest = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 738AppxLocationsFromManifest = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
46internal static readonly IDictionary<string, IEnumerable<string>> DefaultReferences = new Dictionary<string, IEnumerable<string>>(StringComparer.OrdinalIgnoreCase) 71internal static readonly IDictionary<string, ISet<string>> ValidCodeLanguages = new Dictionary<string, ISet<string>>(StringComparer.OrdinalIgnoreCase)
SolutionConfiguration.cs (5)
23private readonly Dictionary<string, XmlElement> _cachedProjectElements = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 26private readonly Dictionary<string, XmlElement> _cachedProjectElementsByAbsolutePath = new Dictionary<string, XmlElement>(StringComparer.OrdinalIgnoreCase); 29private readonly Dictionary<string, string> _cachedProjectAbsolutePathsByGuid = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 32private readonly Dictionary<string, string> _cachedProjectGuidsByAbsolutePath = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 35private readonly Dictionary<string, List<string>> _cachedDependencyProjectGuidsByDependingProjectGuid = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
system.design\stronglytypedresourcebuilder.cs (1)
121var resourceTypes = new Dictionary<String, ResourceData>(StringComparer.InvariantCultureIgnoreCase);
SystemState.cs (6)
31private Dictionary<string, FileState> upToDateLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 42internal Dictionary<string, FileState> instanceLocalFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 47internal Dictionary<string, FileState> instanceLocalOutgoingFileStateCache = new Dictionary<string, FileState>(StringComparer.OrdinalIgnoreCase); 54private Dictionary<string, DateTime> instanceLocalLastModifiedCache = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase); 61private Dictionary<string, bool> instanceLocalDirectoryExists = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase); 68private Dictionary<string, string[]> instanceLocalDirectories = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
Telemetry.cs (1)
34IDictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Tasks.UnitTests (5)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (2)
310uniqueFileExists = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); 311uniqueGetAssemblyName = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
AssignLinkMetadata_Tests.cs (1)
184IDictionary<string, string> metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
GetInstalledSDKLocations_Tests.cs (2)
336Dictionary<string, string> extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 410Dictionary<string, string> extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.UnitTests.Shared (5)
MockEngine.cs (4)
61public Dictionary<string, string> GlobalProperties { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 236var finalGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 305Dictionary<string, string> finalGlobalProperties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 320targetOutputsPerProject.Add(new Dictionary<string, ITaskItem[]>(StringComparer.OrdinalIgnoreCase));
ObjectModelHelpers.cs (1)
1232Dictionary<string, V> dictionary = new Dictionary<string, V>(StringComparer.OrdinalIgnoreCase);
Microsoft.Build.Utilities.Core (38)
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
FileMatcher.cs (1)
2478searchesToExcludeInSubdirs = new Dictionary<string, List<RecursionState>>(StringComparer.OrdinalIgnoreCase);
TargetPlatformSDK.cs (2)
50ExtensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 51Platforms = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
ToolLocationHelper.cs (10)
399var extensionSDKs = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 445var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase); 884s_cachedTargetPlatformReferences = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 953s_cachedExtensionSdkReferences = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase); 2095s_cachedReferenceAssemblyPaths = new Dictionary<string, IList<string>>(StringComparer.OrdinalIgnoreCase); 2450s_cachedTargetPlatforms = new Dictionary<string, IEnumerable<TargetPlatformSDK>>(StringComparer.OrdinalIgnoreCase); 2455s_cachedExtensionSdks = new Dictionary<string, TargetPlatformSDK>(StringComparer.OrdinalIgnoreCase); 3093s_chainedReferenceAssemblyPath ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3094s_cachedTargetFrameworkDisplayNames ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 3674s_cachedHighestFrameworkNameForTargetFrameworkIdentifier = new Dictionary<string, FrameworkNameVersioning>(StringComparer.OrdinalIgnoreCase);
ToolsetElement.cs (3)
171private Dictionary<string, string> _previouslySeenOS = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 346private Dictionary<string, string> _previouslySeenPropertyNames = new Dictionary<string, string>(MSBuildNameIgnoreCaseComparer.Default); 525private Dictionary<string, string> _previouslySeenToolsVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TrackedDependencies\CanonicalTrackedInputFiles.cs (8)
172DependencyTable = new Dictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase); 343var sourcesNeedingCompilation = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 687primaryFiles = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 713dependencies = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 776dependencies = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 834DependencyTable = new Dictionary<string, Dictionary<string, string>>(StringComparer.OrdinalIgnoreCase); 1028Dictionary<string, bool> fileCache = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase); 1061var dependenciesWithoutMissingFiles = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TrackedDependencies\CanonicalTrackedOutputFiles.cs (8)
85DependencyTable = new Dictionary<string, Dictionary<string, DateTime>>(StringComparer.OrdinalIgnoreCase); 187dependencies = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase); 250DependencyTable = new Dictionary<string, Dictionary<string, DateTime>>(StringComparer.OrdinalIgnoreCase); 344var outputs = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 416var outputs = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase); 539dependencies = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase); 722Dictionary<string, bool> fileCache = new Dictionary<string, bool>(StringComparer.OrdinalIgnoreCase); 755var dependenciesWithoutMissingFiles = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase);
TrackedDependencies\DependencyTableCache.cs (1)
31internal static Dictionary<string, DependencyTableCacheEntry> DependencyTable { get; } = new Dictionary<string, DependencyTableCacheEntry>(StringComparer.OrdinalIgnoreCase);
TrackedDependencies\FlatTrackingData.cs (4)
58private readonly IDictionary<string, DateTime> _lastWriteTimeUtcCache = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase); 67internal Dictionary<string, DateTime> DependencyTable { get; private set; } = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase); 484DependencyTable = new Dictionary<string, DateTime>(StringComparer.OrdinalIgnoreCase); 866IDictionary<string, ITaskItem> trackedFilesToRemove = new Dictionary<string, ITaskItem>(StringComparer.OrdinalIgnoreCase);
Microsoft.Cci.Extensions (8)
Mappings\AssemblyMapping.cs (1)
19_namespaces = new Dictionary<INamespaceDefinition, NamespaceMapping>(settings.NamespaceComparer);
Mappings\AssemblySetMapping.cs (2)
17_namespaces = new Dictionary<INamespaceDefinition, NamespaceMapping>(settings.NamespaceComparer); 18_assemblies = new Dictionary<IAssembly, AssemblyMapping>(settings.AssemblyComparer);
Mappings\NamespaceMapping.cs (1)
19_types = new Dictionary<ITypeDefinition, TypeMapping>(settings.TypeComparer);
Mappings\TypeMapping.cs (2)
19_members = new Dictionary<ITypeDefinitionMember, MemberMapping>(settings.MemberComparer); 20_nestedTypes = new Dictionary<INestedTypeDefinition, TypeMapping>(settings.TypeComparer);
Traversers\DependencyTraverser.cs (1)
23_dependencies = new Dictionary<IDefinition, HashSet<IReference>>(new ReferenceEqualityComparer<IDefinition>());
Traversers\ResolveAllReferencesTraverser.cs (1)
18_missingDependencies = new Dictionary<IReference, HashSet<IReference>>(new ReferenceEqualityComparer());
Microsoft.CodeAnalysis (39)
Binding\AbstractLookupSymbolsInfo.cs (1)
237_nameMap = new Dictionary<string, UniqueSymbolOrArities>(comparer);
CodeGen\LocalSlotManager.cs (1)
97map = new Dictionary<ILocalSymbolInternal, LocalDefinition>(ReferenceEqualityComparer.Instance);
Collections\IdentifierCollection.cs (1)
27private readonly Dictionary<string, object> _map = new Dictionary<string, object>(
CommandLine\SarifV1ErrorLogger.cs (1)
238private readonly Dictionary<DiagnosticDescriptor, string> _keys = new Dictionary<DiagnosticDescriptor, string>(SarifDiagnosticComparer.Instance);
CommandLine\SarifV2ErrorLogger.cs (1)
459private readonly Dictionary<DiagnosticDescriptor, DescriptorInfoWithIndex> _distinctDescriptors = new(SarifDiagnosticComparer.Instance);
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (1)
23: base(SimpleNameComparer)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
42private readonly Dictionary<string, DirectoryLoadContext> _loadContextByDirectory = new Dictionary<string, DirectoryLoadContext>(StringComparer.Ordinal);
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
70private readonly Dictionary<string, ImmutableHashSet<string>> _knownAssemblyPathsBySimpleName = new(StringComparer.OrdinalIgnoreCase);
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
227Dictionary<string, ImmutableHashSet<string>.Builder> typeNameMap = new Dictionary<string, ImmutableHashSet<string>.Builder>(StringComparer.OrdinalIgnoreCase);
DiagnosticAnalyzer\CompilationAnalysisValueProvider.cs (1)
25_valueMap = new Dictionary<TKey, TValue>(analysisValueProvider.KeyComparer);
Emit\EditAndContinue\DefinitionMap.cs (1)
500var awaiters = new Dictionary<Cci.ITypeReference, int>(Cci.SymbolEquivalentEqualityComparer.Instance);
Emit\EditAndContinue\DeltaMetadataWriter.cs (8)
103_deletedTypeMembers = new Dictionary<ITypeDefinition, ImmutableArray<IMethodDefinition>>(ReferenceEqualityComparer.Instance); 111_parameterDefList = new Dictionary<IParameterDefinition, IMethodDefinition>(Cci.SymbolEquivalentEqualityComparer.Instance); 121_existingParameterDefs = new Dictionary<IParameterDefinition, int>(ReferenceEqualityComparer.Instance); 131_addedOrChangedMethods = new Dictionary<IMethodDefinition, AddedOrChangedMethodInfo>(Cci.SymbolEquivalentEqualityComparer.Instance); 242var result = new Dictionary<K, V>(comparer); 497var result = new Dictionary<ITypeDefinition, ArrayBuilder<IMethodDefinition>>(ReferenceEqualityComparer.Instance); 498var typesUsedByDeletedMembers = new Dictionary<ITypeDefinition, DeletedSourceTypeDefinition>(ReferenceEqualityComparer.Instance); 1453this.added = new Dictionary<T, int>(comparer);
Emit\EditAndContinue\SymbolMatcher.cs (1)
79var result = new Dictionary<K, V>(Cci.SymbolEquivalentEqualityComparer.Instance);
InternalUtilities\EnumerableExtensions.cs (1)
790var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
InternalUtilities\MultiDictionary.cs (1)
236_dictionary = new Dictionary<K, ValueSet>(comparer);
MetadataReader\PEAssembly.cs (1)
134var ivtMap = new Dictionary<string, List<ImmutableArray<byte>>>(StringComparer.OrdinalIgnoreCase);
MetadataReader\PEModule.cs (2)
742var namespaceHandles = new Dictionary<NamespaceDefinitionHandle, ArrayBuilder<TypeDefinitionHandle>>(NamespaceHandleEqualityComparer.Singleton); 3798var caseInsensitiveMap = new Dictionary<string, (string OriginalName, int FirstIndex, int SecondIndex)>(StringComparer.OrdinalIgnoreCase);
MetadataReference\AssemblyIdentityMap.cs (1)
24_map = new Dictionary<string, OneOrMany<KeyValuePair<AssemblyIdentity, TValue>>>(AssemblyIdentityComparer.SimpleNameComparer);
NativePdbWriter\PdbWriter.cs (1)
50_qualifiedNameCache = new Dictionary<object, string>(ReferenceEqualityComparer.Instance);
Operations\ControlFlowGraphBuilder.cs (1)
7975var explicitProperties = new Dictionary<IPropertySymbol, IOperation>(SymbolEqualityComparer.IgnoreAll);
PEWriter\MetadataWriter.cs (8)
123_smallMethodBodies = new Dictionary<(ImmutableArray<byte>, bool), int>(ByteSequenceBoolTupleComparer.Instance); 124_scopeIndex = new Dictionary<IImportScope, ImportScopeHandle>(new ImportScopeEqualityComparer(context)); 440private readonly Dictionary<ITypeReference, BlobHandle> _typeSpecSignatureIndex = new Dictionary<ITypeReference, BlobHandle>(ReferenceEqualityComparer.Instance); 443private readonly Dictionary<IFieldReference, BlobHandle> _fieldSignatureIndex = new Dictionary<IFieldReference, BlobHandle>(ReferenceEqualityComparer.Instance); 450private readonly Dictionary<IGenericMethodInstanceReference, BlobHandle> _methodInstanceSignatureIndex = new Dictionary<IGenericMethodInstanceReference, BlobHandle>(ReferenceEqualityComparer.Instance); 4274: this(writer, new Dictionary<ITypeReference, int>(ReferenceEqualityComparer.Instance), lastRowId) 4304_instanceIndex = new Dictionary<T, int>(ReferenceEqualityComparer.Instance); 4305_structuralIndex = new Dictionary<T, int>(structuralComparer);
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
235var boundReferences = new Dictionary<MetadataReference, MetadataReference>(MetadataReferenceEqualityComparer.Instance);
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
529return new Dictionary<K, ImmutableArray<T>>(comparer);
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19: base(keyComparer)
Microsoft.CodeAnalysis.CodeStyle (8)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
790var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
236_dictionary = new Dictionary<K, ValueSet>(comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
529return new Dictionary<K, ImmutableArray<T>>(comparer);
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19: base(keyComparer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
859var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 861var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
90var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
183var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
56var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 110var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.CapturedParametersFinder.cs (1)
76var result = new Dictionary<ParameterSymbol, FieldSymbol>(ReferenceEqualityComparer.Instance);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
2851var candidates = new Dictionary<TypeWithAnnotations, TypeWithAnnotations>(EqualsIgnoringDynamicTupleNamesAndNullabilityComparer.Instance);
Declarations\MergedNamespaceDeclaration.cs (1)
162var namespaceGroups = new Dictionary<string, ArrayBuilder<SingleNamespaceDeclaration>>(StringOrdinalComparer.Instance);
Emitter\Model\PEModuleBuilder.cs (1)
672var exportedNamesMap = new Dictionary<string, NamedTypeSymbol>(StringOrdinalComparer.Instance);
FlowAnalysis\AbstractFlowPass.cs (1)
219_loopHeadState = new Dictionary<BoundLoopStatement, TLocalState>(ReferenceEqualityComparer.Instance);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
95_awaiterFields = new Dictionary<TypeSymbol, FieldSymbol>(Symbols.SymbolEqualityComparer.IgnoringDynamicTupleNamesAndNullability);
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
18private readonly Dictionary<(TypeSymbol?, TypeSymbol, MethodSymbol), FieldSymbol> _delegateFields = new(CLRSignatureComparer.Instance);
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
108var containers = _genericCacheContainers ??= new Dictionary<MethodSymbol, DelegateCacheContainer>(ReferenceEqualityComparer.Instance);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
499_lazyAvailableReusableHoistedFields = new Dictionary<TypeSymbol, ArrayBuilder<StateMachineFieldSymbol>>(Symbols.SymbolEqualityComparer.IgnoringDynamicTupleNamesAndNullability);
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
32new Dictionary<ReadOnlyMemory<char>, ImmutableArray<PENamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance);
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
257var namespaces = new Dictionary<ReadOnlyMemory<char>, PENestedNamespaceSymbol>(ReadOnlyMemoryOfCharComparer.Instance); 298noPiaLocalTypes = new Dictionary<string, TypeDefinitionHandle>(StringOrdinalComparer.Instance);
Symbols\Source\QuickAttributeChecker.cs (1)
63_nameToAttributeMap = new Dictionary<string, QuickAttributes>(StringComparer.Ordinal);
Symbols\Source\SourceAssemblySymbol.cs (1)
2833forwardedTypesFromSource = new Dictionary<string, NamedTypeSymbol>(StringOrdinalComparer.Instance);
Symbols\Source\SourceMemberContainerSymbol.cs (7)
210new Dictionary<ReadOnlyMemory<char>, ImmutableArray<NamedTypeSymbol>>(EmptyReadOnlyMemoryOfCharComparer.Instance); 1615return new Dictionary<ReadOnlyMemory<char>, ImmutableArray<Symbol>>(ReadOnlyMemoryOfCharComparer.Instance); 1948var methodsBySignature = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 1949var conversionsAsMethods = new Dictionary<SourceMemberMethodSymbol, SourceMemberMethodSymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2188var indexersBySignature = new Dictionary<PropertySymbol, PropertySymbol>(MemberSignatureComparer.DuplicateSourceComparer); 2693var instanceMap = new Dictionary<NamedTypeSymbol, NamedTypeSymbol>(ReferenceEqualityComparer.Instance); 3619var membersBySignature = new Dictionary<Symbol, Symbol>(MemberSignatureComparer.PartialMethodsComparer);
Utilities\FirstAmongEqualsSet.cs (1)
51_dictionary = new Dictionary<T, T>(equalityComparer);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.EqualityComparer) 36private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.EqualityComparer)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Recommendations\KeywordRecommenderTests.cs (1)
17private static readonly Dictionary<SyntaxKind, AbstractSyntacticSingleKeywordRecommender> s_recommenderMap = new(SyntaxFacts.EqualityComparer);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
15private static readonly Dictionary<SyntaxKind, int> s_kindPrecedenceMap = new(SyntaxFacts.EqualityComparer) 36private static readonly Dictionary<SyntaxKind, int> s_operatorPrecedenceMap = new(SyntaxFacts.EqualityComparer)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
MetadataUtilities.cs (1)
122var refsBySimpleName = new Dictionary<string, ImmutableArray<(AssemblyIdentity, MetadataReference)>>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Features (7)
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
135_childFolders = new Dictionary<string, FolderInfo>(StringComparer.Ordinal);
Completion\CompletionService.ProviderManager.cs (1)
38_rolesToProviders = new Dictionary<ImmutableHashSet<string>, ImmutableArray<CompletionProvider>>(this);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (1)
210var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default);
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
126var typeConvertibilityCache = new Dictionary<ITypeSymbol, bool>(SymbolEqualityComparer.Default); 404var missingSymbols = new Dictionary<ISymbol, List<ProjectId>>(LinkedFilesSymbolEquivalenceComparer.Instance);
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
33private readonly Dictionary<string, Dictionary<(string @namespace, string typeName), string>?> _typeForwardCache = new(StringComparer.OrdinalIgnoreCase);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
183var result = new Dictionary<ITypeSymbol, ITypeParameterSymbol>(SymbolEqualityComparer.Default);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
529return new Dictionary<K, ImmutableArray<T>>(comparer);
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
66private readonly Dictionary<string, int> _watchedFiles = new Dictionary<string, int>(s_stringComparer);
Services\ExtensionAssemblyManager.cs (2)
57var directoryLoadContexts = new Dictionary<string, AssemblyLoadContext>(StringComparer.Ordinal); 58var assemblyFullNameToLoadContext = new Dictionary<string, AssemblyLoadContext>(StringComparer.Ordinal);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
69var commitCharactersRuleCache = new Dictionary<ImmutableArray<CharacterSetModificationRule>, string[]>(CommitCharacterArrayComparer.Instance);
Microsoft.CodeAnalysis.PooledObjects.Package (2)
ArrayBuilder.cs (1)
529return new Dictionary<K, ImmutableArray<T>>(comparer);
PooledDictionary.cs (1)
19: base(keyComparer)
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
RebuildCommandLineTests.cs (1)
29public Dictionary<string, TestableFile> FilePathToStreamMap { get; } = new Dictionary<string, TestableFile>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
91_loadedAssembliesBySimpleName = new Dictionary<string, List<LoadedAssemblyInfo>>(AssemblyIdentityComparer.SimpleNameComparer);
ScriptState.cs (1)
123var map = new Dictionary<string, int>(Script.Compiler.IdentifierComparer);
Microsoft.CodeAnalysis.Test.Utilities (3)
Assert\AssertEx.cs (1)
384var indexes = new Dictionary<string, int>(comparer);
Compilation\TestSyntaxTreeOptionsProvider.cs (1)
32_globalOptions = new Dictionary<string, ReportDiagnostic>(Section.PropertiesKeyComparer) { { globalOption.key, globalOption.diagnostic } };
CompilationVerifier.cs (1)
340var readersByName = new Dictionary<string, PEReader>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.UnitTests (4)
CachingLookupTests.cs (4)
156var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 188var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 220var dict = new Dictionary<string, ImmutableArray<int>>(comparer); 250var dict = new Dictionary<string, ImmutableArray<int>>(comparer);
Microsoft.CodeAnalysis.VisualBasic (2)
Binding\Binder_XmlLiterals.vb (1)
1146allAttributes = New Dictionary(Of XmlName, BoundXmlAttribute)(XmlNameComparer.Instance)
Symbols\Metadata\PE\PENamespaceSymbol.vb (1)
201Dim members As New Dictionary(Of String, ImmutableArray(Of Symbol))(CaseInsensitiveComparison.Comparer)
Microsoft.CodeAnalysis.Workspaces (17)
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
36private static readonly ObjectPool<Dictionary<ISymbol, SymbolGroup>> s_symbolToGroupPool = new(() => new(MetadataUnifyingEquivalenceComparer.Instance));
Rename\ConflictEngine\DeclarationConflictHelpers.cs (1)
42var signatureToConflictingMember = new Dictionary<ImmutableArray<ITypeSymbol>, ISymbol>(ConflictingSignatureComparer.Instance);
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
70private readonly Dictionary<string, ImmutableHashSet<string>> _knownAssemblyPathsBySimpleName = new(StringComparer.OrdinalIgnoreCase);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
790var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
236_dictionary = new Dictionary<K, ValueSet>(comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
529return new Dictionary<K, ImmutableArray<T>>(comparer);
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19: base(keyComparer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (2)
859var directiveMap = new Dictionary<TDirectiveTriviaSyntax, TDirectiveTriviaSyntax?>( 861var conditionalMap = new Dictionary<TDirectiveTriviaSyntax, ImmutableArray<TDirectiveTriviaSyntax>>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\EditorConfig\EditorConfigNamingStyleParser.cs (1)
90var trimmedDictionary = new Dictionary<string, string>(AnalyzerConfigOptions.KeyComparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (2)
56var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default); 110var mapping = new Dictionary<ITypeSymbol, ITypeSymbol>(SymbolEqualityComparer.Default);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
38private readonly Dictionary<string, DocumentId> _documentPathsToDocumentIds = new(StringComparer.OrdinalIgnoreCase);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
146private readonly Dictionary<string, string?> _dynamicFilePathMaps = new(StringComparer.OrdinalIgnoreCase);
Workspace\Solution\ProjectState.cs (1)
139var result = new Dictionary<ImmutableArray<byte>, DocumentId>(ImmutableArrayComparer<byte>.Instance);
Workspace\Solution\TextDocumentStates.cs (1)
359var result = new Dictionary<string, OneOrMany<DocumentId>>(SolutionState.FilePathComparer);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\ProjectFileExtensionRegistry.cs (1)
25_extensionToLanguageMap = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
MSBuild\ProjectFile\CommandLineArgumentReader.cs (1)
157private static readonly ImmutableDictionary<string, string> s_debugTypeValues = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
790var dictionary = new Dictionary<K, ImmutableArray<T>>(comparer);
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
236_dictionary = new Dictionary<K, ValueSet>(comparer);
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
529return new Dictionary<K, ImmutableArray<T>>(comparer);
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
19: base(keyComparer)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\SharedPools.cs (1)
75new(() => new Dictionary<string, T>(StringComparer.OrdinalIgnoreCase), 20);
Microsoft.Data.Analysis (4)
DataFrameColumnCollection.cs (1)
17private readonly Dictionary<string, int> _columnNameToIndexDictionary = new Dictionary<string, int>(StringComparer.Ordinal);
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
494Dictionary<string, ICollection<long>> multimap = new Dictionary<string, ICollection<long>>(EqualityComparer<string>.Default);
DataFrameColumns\StringDataFrameColumn.cs (1)
412Dictionary<string, ICollection<long>> multimap = new Dictionary<string, ICollection<long>>(EqualityComparer<string>.Default);
PrimitiveDataFrameColumn.cs (1)
617Dictionary<T, ICollection<long>> multimap = new Dictionary<T, ICollection<long>>(EqualityComparer<T>.Default);
Microsoft.DotNet.ArcadeLogging (3)
PipelinesLogger.cs (3)
21private readonly Dictionary<BuildEventContext, Guid> _buildEventContextMap = new Dictionary<BuildEventContext, Guid>(BuildEventContextComparer.Instance); 334return new LoggerParameters(new Dictionary<string, string>(Comparer)); 339var parameters = new Dictionary<string, string>(Comparer);
Microsoft.DotNet.Build.Tasks.Feed (2)
src\common\MSBuildListSplitter.cs (2)
15return new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 23var values = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.Build.Tasks.Packaging (2)
GeneratePackageReport.cs (1)
198_frameworks = new Dictionary<NuGetFramework, string[]>(NuGetFramework.Comparer);
HarvestPackage.cs (1)
274var livePackageFiles = new Dictionary<string, PackageItem>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.Build.Tasks.Templating (1)
MSBuildListSplitter.cs (1)
14Dictionary<string, string> values = new(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
72Dictionary<string, string> parsedPinvokes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
66var dictionary = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.DotNet.PackageTesting (1)
VerifyClosure.cs (1)
43private Dictionary<string, Version> ignoredReferences = new Dictionary<string, Version>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.SharedFramework.Sdk (2)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (1)
43private Dictionary<string, Version> ignoredReferences = new Dictionary<string, Version>(StringComparer.OrdinalIgnoreCase);
src\ValidateFileVersions.cs (1)
22var fileVersions = new Dictionary<string, FileVersionData>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.SignTool (2)
src\SignToolTask.cs (2)
373var map = new Dictionary<string, List<SignInfo>>(StringComparer.OrdinalIgnoreCase); 420var map = new Dictionary<string, List<SignInfo>>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.SignTool.Tests (2)
SignToolTests.cs (2)
2263var needContent = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase) 2299var needContent = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
68var prodConPackageOrigin = new Dictionary<string, string>(
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (1)
Languages\Language.cs (1)
56_languages = new Dictionary<string, Language>(StringComparer.OrdinalIgnoreCase)
Microsoft.DotNet.VersionTools (3)
BuildManifest\Model\SigningInformationParsingExtensions.cs (3)
27Dictionary<string, HashSet<string>> extensionToCertMapping = new Dictionary<string, HashSet<string>>( 80Dictionary<string, HashSet<string>> keyToCertMapping = new Dictionary<string, HashSet<string>>( 191Dictionary<string, HashSet<string>> pktMapping = new Dictionary<string, HashSet<string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.DotNet.XUnitAssert.Tests (2)
DictionaryAssertsTests.cs (2)
18 var dictionary = new Dictionary<string, int>(StringComparer.InvariantCultureIgnoreCase) 88 var dictionary = new Dictionary<string, int>(StringComparer.InvariantCultureIgnoreCase)
Microsoft.Extensions.AsyncState (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Compliance.Abstractions (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Configuration (1)
ConfigurationProvider.cs (1)
24Data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationProvider.cs (1)
43var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
64var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationProvider.cs (2)
63Data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 105Data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
28var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
16private readonly Dictionary<string, string?> _data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
60var data = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Configuration.Xml (2)
XmlStreamConfigurationProvider.cs (2)
94var children = new Dictionary<string, List<XmlConfigurationElement>>(StringComparer.OrdinalIgnoreCase); 257Dictionary<string, string?> configuration = new(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
62var entries = new Dictionary<string, HealthReportEntry>(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\TestResources.cs (1)
15private static readonly Dictionary<string, string> _files = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
876public readonly Dictionary<string, string> TemplateMap = new(StringComparer.OrdinalIgnoreCase);
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
29private readonly Dictionary<ITypeSymbol, ValidatorType> _synthesizedValidators = new(SymbolEqualityComparer.Default);
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (1)
18private readonly Dictionary<string, ExtendedLogger> _loggers = new(StringComparer.Ordinal);
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Extensions.Telemetry.Abstractions (1)
src\Shared\Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (1)
53var methodsOfInterest = new Dictionary<ISymbol, ImmutableArray<Func<IInvocationOperation, (ITypeSymbol, Location)?>>>(SymbolEqualityComparer.Default);
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\CustomMarshallerAttributeFixer.cs (1)
55Dictionary<INamedTypeSymbol, INamedTypeSymbol> partiallyUpdatedSymbols = new(SymbolEqualityComparer.Default);
Microsoft.JSInterop (2)
Infrastructure\DotNetDispatcher.cs (2)
401var result = new Dictionary<string, (MethodInfo, Type[])>(StringComparer.Ordinal); 435var result = new Dictionary<string, (MethodInfo, Type[])>(StringComparer.Ordinal);
Microsoft.Maui (10)
CommandMapper.cs (1)
9 readonly Dictionary<string, Command> _mapper = new(StringComparer.Ordinal);
Fonts\FontRegistrar.cs (3)
13 readonly Dictionary<string, (string Filename, string? Alias, Assembly Assembly)> _embeddedFonts = new(StringComparer.Ordinal); 14 readonly Dictionary<string, (string Filename, string? Alias)> _nativeFonts = new(StringComparer.Ordinal); 15 readonly Dictionary<string, string?> _fontLookupCache = new(StringComparer.Ordinal);
Handlers\HybridWebView\FileExtensionContentTypeProvider.cs (1)
30 : this(new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
HotReload\HotReloadHelper.cs (2)
117 static Dictionary<string, Type> replacedViews = new(StringComparer.Ordinal); 119 static Dictionary<string, List<KeyValuePair<Type, Type>>> replacedHandlers = new(StringComparer.Ordinal);
LifecycleEvents\LifecycleEventService.cs (1)
9 readonly Dictionary<string, List<Delegate>> _mapper = new(StringComparer.Ordinal);
PropertyMapper.cs (1)
18 protected readonly Dictionary<string, Action<IElementHandler, IElement>> _mapper = new(StringComparer.Ordinal);
WeakEventManager.cs (1)
13 readonly Dictionary<string, List<Subscription>> _eventHandlers = new(StringComparer.Ordinal);
Microsoft.Maui.Controls (14)
Application\Application.cs (1)
416 readonly Dictionary<string, WeakReference<Window>> _requestedWindows = new(StringComparer.Ordinal);
AppLinkEntry.cs (1)
15 keyValues = new(StringComparer.Ordinal);
DragAndDrop\DataPackagePropertySet.cs (1)
16 _propertyBag = new(StringComparer.Ordinal);
Internals\NameScope.cs (1)
17 readonly Dictionary<string, object> _names = new(StringComparer.Ordinal);
Registrar.cs (2)
312 internal static Dictionary<string, EffectType> Effects { get; } = new(StringComparer.Ordinal); 359 var properties = new Dictionary<string, IList<StylePropertyAttribute>>(StringComparer.Ordinal);
ResourceDictionary.cs (1)
23 readonly Dictionary<string, object> _innerDictionary = new(StringComparer.Ordinal);
ResourcesExtensions.cs (2)
17 resources = resources ?? new(StringComparer.Ordinal); 49 resources = resources ?? new(StringComparer.Ordinal);
Routing.cs (2)
13 static Dictionary<string, RouteFactory> s_routes = new(StringComparer.Ordinal); 14 static Dictionary<string, Page> s_implicitPageRoutes = new(StringComparer.Ordinal);
Shell\ShellRouteParameters.cs (1)
105 Dictionary<string, string> lookupDict = new(StringComparer.Ordinal);
StyleSheets\Style.cs (1)
17 public IDictionary<string, string> Declarations { get; set; } = new Dictionary<string, string>(StringComparer.Ordinal);
Visuals\VisualTypeConverter.cs (1)
28 var mappings = new Dictionary<string, IVisual>(StringComparer.OrdinalIgnoreCase);
Microsoft.Maui.Controls.Build.Tasks (2)
PerformanceProvider.cs (1)
21 readonly Dictionary<string, Statistic> _Statistics = new(StringComparer.Ordinal);
XamlCache.cs (1)
56 public Dictionary<TypeReference, Type> GetKnownCompiledTypeConverters(ModuleDefinition module) => _knownCompiledTypeConverters ??= new(TypeRefComparer.Default)
Microsoft.Maui.Controls.Xaml (1)
XamlServiceProvider.cs (1)
282 readonly Dictionary<string, string> namespaces = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.Maui.Essentials (4)
Types\Shared\WebUtils.shared.cs (1)
11 var parameters = new Dictionary<string, string>(StringComparer.Ordinal);
VersionTracking\VersionTracking.shared.cs (2)
241 versionTrail = new(StringComparer.Ordinal) 249 versionTrail = new(StringComparer.Ordinal)
WebAuthenticator\WebAuthenticatorResult.shared.cs (1)
76 public Dictionary<string, string> Properties { get; set; } = new(StringComparer.Ordinal);
Microsoft.Maui.Graphics (1)
Text\TextColors.cs (1)
9 public static Dictionary<string, string> StandardColors = new(StringComparer.OrdinalIgnoreCase)
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\SimpleCssParser.cs (1)
13 var values = new Dictionary<string, string>(StringComparer.Ordinal);
Microsoft.Maui.Resizetizer (3)
ColorTable.cs (1)
17 var colors = new Dictionary<string, SKColor>(StringComparer.OrdinalIgnoreCase);
ResizetizeImages.cs (1)
107 var attr = new Dictionary<string, string>(StringComparer.Ordinal);
TizenResourceXmlGenerator.cs (1)
10 static readonly IDictionary<string, string> resolutionMap = new Dictionary<string, string>(StringComparer.Ordinal)
Microsoft.ML.Data (1)
Commands\TypeInfoCommand.cs (1)
84var dstToSrcMap = new Dictionary<HashSet<InternalDataKind>, HashSet<InternalDataKind>>(comp);
Microsoft.ML.ImageAnalytics (1)
MLImage.cs (1)
427private static readonly Dictionary<string, SKEncodedImageFormat> _extensionToEncodingFormat = new Dictionary<string, SKEncodedImageFormat>(StringComparer.OrdinalIgnoreCase)
Microsoft.ML.TimeSeries (1)
RootCauseAnalyzer.cs (1)
99Dictionary<Dictionary<string, object>, TimeSeriesPoint> dimPointMapping = new Dictionary<Dictionary<string, object>, TimeSeriesPoint>(dc);
Microsoft.ML.Tokenizers (1)
Model\TiktokenTokenizer.cs (1)
1036new Dictionary<string, ModelEncoding>(StringComparer.OrdinalIgnoreCase)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
342m_KeyedNodesHash = New Generic.Dictionary(Of String, Node)(StringComparer.Create(CultureInfo, ignoreCase:=True))
Microsoft.VisualStudio.LanguageServices (2)
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
55private readonly Dictionary<string, (DateTime lastWriteTime, AssemblyMetadata metadata)> _metadataCache = new(StringComparer.OrdinalIgnoreCase);
ProjectSystem\RuleSets\RuleSetEventHandler.cs (1)
87var ruleSetRenames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MSBuild (13)
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
OutOfProcTaskAppDomainWrapperBase.cs (1)
360IDictionary<string, Object> finalParameterValues = new Dictionary<string, Object>(StringComparer.OrdinalIgnoreCase);
OutOfProcTaskHostNode.cs (1)
1140s_mismatchedEnvironmentValues = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.OrdinalIgnoreCase);
TaskHostConfiguration.cs (1)
200_taskParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskHostTaskComplete.cs (2)
120_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 198_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskParameter.cs (5)
304escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 322escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 431escapedGenericWrappedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 854_customEscapedMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 924IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TypeLoader.cs (1)
315_publicTypeNameToType = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
XMake.cs (1)
3759Dictionary<string, string> properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
MSBuildTaskHost (13)
EscapingUtilities.cs (1)
29private static Dictionary<string, string> s_unescapedToEscapedStrings = new Dictionary<string, string>(StringComparer.Ordinal);
Immutable\ImmutableDictionary.cs (1)
179_backing = new Dictionary<K, V>(comparer);
OutOfProcTaskAppDomainWrapperBase.cs (1)
360IDictionary<string, Object> finalParameterValues = new Dictionary<string, Object>(StringComparer.OrdinalIgnoreCase);
OutOfProcTaskHostNode.cs (1)
1140s_mismatchedEnvironmentValues = new Dictionary<string, KeyValuePair<string, string>>(StringComparer.OrdinalIgnoreCase);
TaskHostConfiguration.cs (1)
200_taskParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskHostTaskComplete.cs (2)
120_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase); 198_taskOutputParameters = new Dictionary<string, TaskParameter>(StringComparer.OrdinalIgnoreCase);
TaskParameter.cs (5)
304escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 322escapedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 431escapedGenericWrappedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 854_customEscapedMetadata ??= new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase); 924IDictionary<string, string> clonedMetadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
TypeLoader.cs (1)
229_publicTypeNameToType = new Dictionary<string, Type>(StringComparer.OrdinalIgnoreCase);
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
848Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
61_cachedMetadataLoadContextAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase); 62_cachedMetadataLoadContextAssembliesByNameNoExtension = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase);
PresentationCore (5)
MS\Internal\FontCache\FamilyCollection.cs (1)
477Dictionary<string, Text.TextInterface.Font> faces = new Dictionary<string, Text.TextInterface.Font>(StringComparer.OrdinalIgnoreCase);
MS\Internal\FontCache\FontResourceCache.cs (1)
83folderResourceMap = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
System\Windows\Media\FontEmbeddingManager.cs (1)
28_collectedGlyphTypefaces = new Dictionary<Uri, Dictionary<ushort, bool>>(_uriComparer);
System\Windows\Media\SolidColorBrush.cs (2)
252fwdDictionary = new Dictionary<TKey, TValue>(keyComparer); 253revDictionary = new Dictionary<TValue, List<TKey>>(valueComparer);
PresentationFramework (3)
MS\Internal\Data\CommitManager.cs (1)
164: base(comparer)
MS\Internal\IO\Packaging\XamlFilter.cs (1)
103_lcidDictionary = new Dictionary<string, uint>(StringComparer.OrdinalIgnoreCase);
System\Windows\Markup\ParserContext.cs (1)
848Dictionary<string, SpecialBracketCharacters> cache = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
ReachFramework (2)
Packaging\XpsFixedPageReaderWriter.cs (2)
470_fontCache = new Dictionary<Uri, XpsFont>(MS.Internal.UriComparer.Default); 1521Dictionary<Uri,PackageRelationship> restictedFontRels = new Dictionary<Uri,PackageRelationship>(MS.Internal.UriComparer.Default);
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
68var filesToWrite = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
Shared (1)
Pools\PooledDictionaryPolicy.cs (1)
24public override Dictionary<TKey, TValue> Create() => new(_comparer);
Swaggatherer (1)
Template.cs (1)
15var templatesVisited = new Dictionary<string, (int ControllerIndex, int ActionIndex)>(
System.CodeDom (3)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
12private readonly Dictionary<string, CodeNamespaceImport> _keys = new Dictionary<string, CodeNamespaceImport>(StringComparer.OrdinalIgnoreCase);
System\CodeDom\Compiler\CodeDomProvider.cs (2)
16private static readonly Dictionary<string, CompilerInfo> s_compilerLanguages = new Dictionary<string, CompilerInfo>(StringComparer.OrdinalIgnoreCase); 17private static readonly Dictionary<string, CompilerInfo> s_compilerExtensions = new Dictionary<string, CompilerInfo>(StringComparer.OrdinalIgnoreCase);
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenDictionary.cs (1)
90newDictionary = new Dictionary<TKey, TValue>(comparer);
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
187var dictionary = new Dictionary<string, object?>(StringComparers.MetadataKeyNames);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
318Dictionary<string, List<ComposablePartDefinition>> index = new Dictionary<string, List<ComposablePartDefinition>>(StringComparers.ContractName);
System.ComponentModel.TypeConverter (2)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
16var colors = new Dictionary<string, Color>(StringComparer.OrdinalIgnoreCase);
System\ComponentModel\Design\ServiceContainer.cs (1)
259public ServiceCollection() : base(s_serviceTypeComparer)
System.Console (1)
System\TerminalFormatStrings.cs (1)
54public readonly Dictionary<string, ConsoleKeyInfo> KeyFormatToConsoleKey = new(StringComparer.Ordinal);
System.Data.Common (4)
System\Data\Common\DbConnectionStringBuilder.cs (1)
62values = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
System\Data\Common\ObjectStorage.cs (1)
620cache = new Dictionary<KeyValuePair<Type, XmlRootAttribute>, XmlSerializer>(
System\Data\DataView.cs (2)
74private Dictionary<DataRow, DataRowView> _rowViewCache = new Dictionary<DataRow, DataRowView>(DataRowReferenceComparer.s_default); 79private readonly Dictionary<DataRow, DataRowView> _rowViewBuffer = new Dictionary<DataRow, DataRowView>(DataRowReferenceComparer.s_default);
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\DsesActivitySourceListener.cs (1)
73var specs = _specsBySourceNameAndActivityName ??= new(SpecLookupKeyComparer.Instance);
System.Drawing.Primitives (1)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
16var colors = new Dictionary<string, Color>(StringComparer.OrdinalIgnoreCase);
System.Formats.Nrbf (1)
System\Formats\Nrbf\ClassInfo.cs (1)
55Dictionary<string, int> memberNames = new(StringComparer.Ordinal);
System.Linq (5)
System\Linq\AggregateBy.cs (2)
119Dictionary<TKey, TAccumulate> dict = new(keyComparer); 151Dictionary<TKey, TAccumulate> dict = new(keyComparer);
System\Linq\CountBy.cs (1)
56Dictionary<TKey, int> countsBy = new(keyComparer);
System\Linq\ToCollection.cs (2)
159return new Dictionary<TKey, TSource>(comparer); 217return new Dictionary<TKey, TElement>(comparer);
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\BoundConstants.cs (1)
60private readonly Dictionary<object, int> _indexes = new Dictionary<object, int>(ReferenceEqualityComparer.Instance);
System.Linq.Parallel (7)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
284new Dictionary<Wrapper<TInputOutput>, Pair<TInputOutput, TLeftKey>>(
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
270_hashLookup = new Dictionary<Wrapper<TInputOutput>, Pair<TInputOutput, TLeftKey>>(_comparer);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
342new Dictionary<Wrapper<TInputOutput>, Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>>(wrapperComparer);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
214_hashLookup = new Dictionary<Wrapper<TInputOutput>, TKey>(
System\Linq\Parallel\Utils\Lookup.cs (1)
46_dict = new Dictionary<TKey, IGrouping<TKey, TElement>>(_comparer);
System\Linq\ParallelEnumerable.cs (2)
4965Dictionary<TKey, TSource> result = new Dictionary<TKey, TSource>(comparer); 5063Dictionary<TKey, TElement> result = new Dictionary<TKey, TElement>(comparer);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (1)
238internal readonly Dictionary<string, string> Parameters = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
260dict = new Dictionary<TKey, TItem>(comparer);
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
24private static readonly Dictionary<string, IsolatedComponentLoadContext> s_assemblyLoadContexts = new Dictionary<string, IsolatedComponentLoadContext>(StringComparer.InvariantCulture);
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
286new Dictionary<string, ResourceLocator>(FastResourceComparer.Default),
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
100_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 135_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default);
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
186_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 323caseInsensitiveTable = new Dictionary<string, ResourceLocator>(StringComparer.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
96_assemblyPaths = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (2)
2041cachedData._timeZonesUsingAlternativeIds ??= new Dictionary<string, TimeZoneInfo>(StringComparer.OrdinalIgnoreCase); 2117cachedData._systemTimeZones ??= new Dictionary<string, TimeZoneInfo>(StringComparer.OrdinalIgnoreCase)
System.Reflection.MetadataLoadContext (1)
System\Reflection\PathAssemblyResolver.cs (1)
25private readonly Dictionary<string, List<string>> _fileToPaths = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
System.Resources.Extensions (7)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (3)
58_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 80_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 199_preserializedData ??= new Dictionary<string, PrecannedResource>(FastResourceComparer.Default);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (2)
100_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 135_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default);
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
203_resCache = new Dictionary<string, ResourceLocator>(FastResourceComparer.Default); 323caseInsensitiveTable = new Dictionary<string, ResourceLocator>(StringComparer.OrdinalIgnoreCase);
System.Resources.Writer (3)
src\libraries\Common\src\System\Resources\ResourceWriter.cs (3)
58_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 80_caseInsensitiveDups = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase); 199_preserializedData ??= new Dictionary<string, PrecannedResource>(FastResourceComparer.Default);
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
48_clrNamespaces = new Dictionary<string, string?>(StringComparer.OrdinalIgnoreCase); 1519Dictionary<string, object?> fragments = new Dictionary<string, object?>(StringComparer.OrdinalIgnoreCase);
System.Text.Encoding.CodePages (1)
System\Text\EncodingTable.cs (1)
12private static readonly Dictionary<string, int> s_nameToCodePageCache = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase);
System.Text.Json (5)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
100var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System\Text\Json\Serialization\Converters\Value\EnumConverter.cs (2)
63_enumFieldInfoIndex = new(StringComparer.OrdinalIgnoreCase); 538(enumMemberAttributes ??= new(StringComparer.Ordinal)).Add(field.Name, attribute.Name);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1066public Dictionary<string, (JsonPropertyInfo, int index)> AddedProperties = new(options.PropertyNameCaseInsensitive ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
System\Text\Json\Serialization\PreserveReferenceResolver.cs (1)
23_objectToReferenceIdMap = new Dictionary<object, string>(ReferenceEqualityComparer.Instance);
System.Text.Json.SourceGeneration (3)
JsonSourceGenerator.Parser.cs (2)
47private readonly Dictionary<ITypeSymbol, TypeGenerationSpec> _generatedTypes = new(SymbolEqualityComparer.Default); 1029public Dictionary<string, (PropertyGenerationSpec, ISymbol, int index)> AddedProperties = new(options?.PropertyNameCaseInsensitive == true ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal);
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
100var nodeIndex = new Dictionary<T, int>(comparer) { [entryNode] = 0 }; // the node-to-integer mapping
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (1)
45_limiters = new Dictionary<TKey, Lazy<RateLimiter>>(equalityComparer);
System.Windows.Forms (3)
System\Windows\Forms\OLE\DataObject.Composition.Binder.cs (2)
110private readonly Dictionary<TypeName, Type> _userTypes = new(TypeNameComparer.Default); 157s_knownTypes = new(TypeNameComparer.Default);
System\Windows\Forms\OLE\DataObject.DataStore.cs (1)
16private readonly Dictionary<string, DataStoreEntry> _mappedData = new(BackCompatibleStringComparer.Default);
System.Windows.Forms.Design (7)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (4)
781_instancesByName ??= new(StringComparer.CurrentCulture); 782_namesByInstance ??= new(new ReferenceComparer()); 925_instancesByName = new(StringComparer.CurrentCulture); 926_namesByInstance = new(new ReferenceComparer());
System\ComponentModel\Design\Serialization\ExpressionTable.cs (1)
19_expressions ??= new(new ReferenceComparer());
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
165Dictionary<string, ResourceData> resourceTypes = new(StringComparer.InvariantCultureIgnoreCase); 271Dictionary<string, ResourceData> resourceList = new(StringComparer.InvariantCultureIgnoreCase);
System.Windows.Forms.Primitives (1)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (1)
25private readonly Dictionary<string, int> _reverseLookup = new(StringComparer.OrdinalIgnoreCase);
System.Windows.Forms.Primitives.TestUtilities (1)
Extensions\AssertExtensions.cs (1)
427var actualItemCountMapping = new Dictionary<T, ItemCount>(comparer);
System.Xaml (8)
System\Xaml\Context\NameFixupGraph.cs (3)
43_dependenciesByChildObject = new Dictionary<object, NameFixupToken>(referenceComparer); 44_dependenciesByName = new Dictionary<string, FrugalObjectList<NameFixupToken>>(StringComparer.Ordinal); 45_dependenciesByParentObject = new Dictionary<object, FrugalObjectList<NameFixupToken>>(referenceComparer);
System\Xaml\MS\Impl\XmlNsInfo.cs (2)
288Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal); 339Dictionary<string, string> result = new Dictionary<string, string>(StringComparer.Ordinal);
System\Xaml\XamlObjectReader.cs (2)
2423objectGraphTable = new Dictionary<object, ObjectMarkupInfo>(new ObjectReferenceEqualityComparer()); 2435serviceProviderTable = new Dictionary<object, string>(new ObjectReferenceEqualityComparer());
System\Xaml\XamlSchemaContext.cs (1)
567Dictionary<string, SpecialBracketCharacters> map = new Dictionary<string, SpecialBracketCharacters>(StringComparer.OrdinalIgnoreCase);
TagHelpersWebSite (1)
TagHelpers\PrettyTagHelper.cs (1)
14new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
79_assemblyLocationsByName = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
XmlFileLogger (1)
PropertyBag.cs (1)
27private readonly Dictionary<string, string> _properties = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
xunit.console (2)
common\DictionaryExtensions.cs (1)
39var result = new Dictionary<TKey, TValue>(comparer);
Utility\TransformFactory.cs (1)
18readonly Dictionary<string, Transform> availableTransforms = new Dictionary<string, Transform>(StringComparer.OrdinalIgnoreCase);