Implemented interface members:
property
this
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.this[TKey]
property
this
System.Collections.Generic.IDictionary<TKey, TValue>.this[TKey]
1472 writes to Item
dotnet-openapi (4)
Commands\BaseCommand.cs (4)
178metadata[SourceUrlAttrName] = sourceUrl; 183metadata[CodeGeneratorAttrName] = codeGenerator.ToString(); 469packageVersionsDictionary[packageVersion.Name] = packageVersion.Value.GetString(); 494result[package.Name] = package.Version;
HtmlGenerationWebSite (1)
ProductsService.cs (1)
52_products[category] = products.ToArray();
http2cat (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
148_decodedHeaders[name.GetAsciiStringNonNullCharacters()] = value.GetAsciiOrUTF8StringNonNullCharacters(HeaderValueEncoding);
Identity.DefaultUI.WebSite (4)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (4)
168_logins[GetLoginKey(login.LoginProvider, login.ProviderKey)] = user; 184_logins[GetLoginKey(loginProvider, providerKey)] = null; 223_users[user.Id] = user; 229_users[user.Id] = user;
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
148_decodedHeaders[name.GetAsciiStringNonNullCharacters()] = value.GetAsciiOrUTF8StringNonNullCharacters(HeaderValueEncoding);
IIS.LongTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
148_decodedHeaders[name.GetAsciiStringNonNullCharacters()] = value.GetAsciiOrUTF8StringNonNullCharacters(HeaderValueEncoding);
IIS.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
148_decodedHeaders[name.GetAsciiStringNonNullCharacters()] = value.GetAsciiOrUTF8StringNonNullCharacters(HeaderValueEncoding);
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
148_decodedHeaders[name.GetAsciiStringNonNullCharacters()] = value.GetAsciiOrUTF8StringNonNullCharacters(HeaderValueEncoding);
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2Utilities.cs (1)
148_decodedHeaders[name.GetAsciiStringNonNullCharacters()] = value.GetAsciiOrUTF8StringNonNullCharacters(HeaderValueEncoding);
illink (39)
ILLink.RoslynAnalyzer (8)
src\tools\illink\src\ILLink.Shared\DataFlow\ForwardDataFlowAnalysis.cs (3)
74 branchInput[entryOut!.Value] = new TState () { 120 finallyInputState[finallyRegion] = state; 142 exceptionFinallyState[branch] = state;
TrimAnalysis\TrimAnalysisPatternStore.cs (4)
63 FieldAccessPatterns[pattern.Operation] = pattern.Merge (Lattice, FeatureContextLattice, existingPattern); 73 GenericInstantiationPatterns[pattern.Operation] = pattern.Merge (FeatureContextLattice, existingPattern); 83 MethodCallPatterns[pattern.Operation] = pattern.Merge (Lattice, FeatureContextLattice, existingPattern); 93 ReflectionAccessPatterns[pattern.Operation] = pattern.Merge (Lattice, FeatureContextLattice, existingPattern);
TrimAnalysis\TrimAnalysisVisitor.cs (1)
271 arr.IndexValues[index.Value] = merge
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
164 namespaceDictionary[lhs] = namespaceDefElements[2]; 169 namespaceDictionary[lhs] = namespaceDictionary[prefix] + namespaceDefElements[3]; 399 classIdsToClassNames[classId] = fullClassName; 406 classNamesToClassMembers[fullClassName] = members; 412 currentFeatureSwitchMembers[fullClassName] = members;
InMemory.FunctionalTests (6)
EventSourceTests.cs (1)
496Payload[eventWrittenEventArgs.PayloadNames[i]] = eventWrittenEventArgs.Payload[i] as string;
Http2\Http2ConnectionTests.cs (2)
2363Headers[nameString] = new StringValues(l.ToArray()); 2367Headers[nameString] = new StringValues(valueString);
Http2\Http2TestBase.cs (3)
192_receivedHeaders[header.Key] = header.Value.ToString(); 218_receivedHeaders[header.Key] = header.Value.ToString(); 225_receivedTrailers[header.Key] = header.Value.ToString();
installer.tasks (4)
GenerateFileVersionProps.cs (4)
71fileVersions[fileName] = current; 78fileVersions[fileName] = current; 89fileVersions[fileName] = current; 95fileVersions[fileName] = current;
KeyManagementSimulator (1)
Program.cs (1)
433_missingSinceMap[defaultKeyId] = now;
Microsoft.Arcade.Test.Common (2)
MockFileSystem.cs (2)
55public void WriteToFile(string path, string content) => Files[path] = content; 57public void CopyFile(string sourceFileName, string destFileName, bool overwrite = false) => Files[destFileName] = Files[sourceFileName];
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationHandlerProvider.cs (1)
55_handlerMap[authenticationScheme] = handler;
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
82queryStrings["state"] = Options.StateDataFormat.Protect(properties);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
Microsoft.AspNetCore.Authentication.MicrosoftAccount (3)
MicrosoftAccountHandler.cs (3)
91queryStrings[OAuthConstants.CodeChallengeKey] = codeChallenge; 92queryStrings[OAuthConstants.CodeChallengeMethodKey] = OAuthConstants.CodeChallengeMethodS256; 124queryStrings[name] = value;
Microsoft.AspNetCore.Authentication.OAuth (3)
OAuthHandler.cs (3)
325parameters[OAuthConstants.CodeChallengeKey] = codeChallenge; 326parameters[OAuthConstants.CodeChallengeMethodKey] = OAuthConstants.CodeChallengeMethodS256; 329parameters["state"] = Options.StateDataFormat.Protect(properties);
Microsoft.AspNetCore.Authentication.Test (1)
CookieTests.cs (1)
166Store[key] = ticket;
Microsoft.AspNetCore.Authorization (2)
AuthorizationOptions.cs (2)
54PolicyMap[name] = Task.FromResult<AuthorizationPolicy?>(policy); 69PolicyMap[name] = Task.FromResult<AuthorizationPolicy?>(policyBuilder.Build());
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManagerConfiguration.cs (1)
290argsMap[argName] = argValue;
Microsoft.AspNetCore.Components (16)
NavigationManagerExtensions.cs (1)
585parameterSources[pair.EncodedName] = source;
ParameterView.cs (1)
111result[entry.Name] = entry.Value;
Reflection\ComponentProperties.cs (2)
119unmatched[parameterName] = parameter.Value; 140unmatched[parameterName] = parameter.Value;
Reflection\MemberAssignment.cs (1)
36dictionary[property.Name] = many;
Rendering\RenderTreeBuilder.cs (2)
823seenAttributeNames[frame.AttributeNameField] = i; 881seenAttributeNames[name] = _entries.Count; // See comment in ProcessAttributes for why this is OK.
RenderTree\Renderer.cs (1)
276_rootComponentsLatestParameters[componentId] = initialParameters.Clone();
RenderTree\RenderTreeDiffBuilder.cs (6)
140keyedItemInfos[oldKey] = oldKeyItemInfo.WithOldSiblingIndex(diffContext.SiblingIndex); 141keyedItemInfos[newKey] = newKeyItemInfo.WithNewSiblingIndex(diffContext.SiblingIndex); 342result[key] = new KeyedItemInfo(oldStartIndex, -1); 356result[key] = new KeyedItemInfo(-1, newStartIndex); 365result[key] = new KeyedItemInfo(existingEntry.OldIndex, newStartIndex); 510diffContext.AttributeDiffSet[newTree[i].AttributeNameField] = i;
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
605updatedDefaults[parameter.Name] = parameter.Default;
src\Http\Routing\src\RouteOptions.cs (1)
175constraintMap[text] = typeof(TConstraint);
Microsoft.AspNetCore.Components.Forms (1)
EditContextProperties.cs (1)
29_contents[key] = value;
Microsoft.AspNetCore.Components.Performance (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Components.Web (1)
Forms\InputBase.cs (1)
313additionalAttributes["aria-invalid"] = "true";
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\InputBaseTest.cs (1)
472rootComponent.AdditionalAttributes["aria-invalid"] = "userSpecifiedValue";
Microsoft.AspNetCore.Components.WebAssembly (2)
Prerendering\WebAssemblyComponentParameterDeserializer.cs (2)
44parametersDictionary[definition.Name] = null; 65parametersDictionary[definition.Name] = parameterValue;
Microsoft.AspNetCore.Components.WebView.Test (4)
Infrastructure\ElementNode.cs (3)
35_attributes[key] = value; 43_events[eventName] = descriptor; 48_properties[key] = value;
Infrastructure\TestDocument.cs (1)
267_componentsById[childComponentId] = containerElement;
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
23_counters[item] = Channel.CreateUnbounded<double>();
Microsoft.AspNetCore.DataProtection (4)
KeyManagement\XmlKeyManager.cs (1)
186keyIdToKeyMap[key.KeyId] = key;
XmlEncryption\XmlEncryptionExtensions.cs (2)
57placeholderReplacements[newPlaceholder] = decryptedElement; 138placeholderReplacements[newPlaceholder] = encryptedXmlInfo;
XmlEncryption\XmlKeyDecryptionOptions.cs (1)
33certificates = _certs[key] = new List<X509Certificate2>();
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Internal\Json\MessageTypeInfoResolver.cs (2)
168map[field.Name] = field; 172map[field.JsonName] = field;
src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
64properties[name] = values;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
543queryParameters[joinedPath] = fieldDescriptor; 553queryParameters[joinedPath] = fieldDescriptor;
Microsoft.AspNetCore.Grpc.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Grpc.Swagger (3)
Internal\XmlComments\GrpcXmlCommentsOperationFilter.cs (1)
105operation.Responses[code] = response = new OpenApiResponse();
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (2)
543queryParameters[joinedPath] = fieldDescriptor; 553queryParameters[joinedPath] = fieldDescriptor;
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
23_counters[item] = Channel.CreateUnbounded<double>();
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
95Store[key] = value;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
127_dictionaryStorage[key] = value; 522_dictionaryStorage[item.Key] = item.Value;
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
UseMiddlewareTest.cs (1)
260public void AddService(Type type, object value) => _services[type] = value;
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
729requestHeaders[header.Key] = header.Value;
Microsoft.AspNetCore.Http.Connections.Tests (38)
HttpConnectionDispatcherTests.cs (38)
229values["id"] = connection.ConnectionToken; 230values["negotiateVersion"] = "1"; 309values["id"] = "unknown"; 310values["negotiateVersion"] = "1"; 351values["id"] = "unknown"; 352values["negotiateVersion"] = "1"; 389values["id"] = connection.ConnectionToken; 390values["negotiateVersion"] = "1"; 428values["id"] = connection.ConnectionId; 429values["negotiateVersion"] = "1"; 468values["id"] = connection.ConnectionToken; 469values["negotiateVersion"] = "1"; 531values["id"] = connection.ConnectionToken; 532values["negotiateVersion"] = "1"; 599values["id"] = connection.ConnectionToken; 600values["negotiateVersion"] = "1"; 662values["id"] = connection.ConnectionId; 663values["negotiateVersion"] = "1"; 766values["id"] = connection.ConnectionToken; 767values["negotiateVersion"] = "1"; 768values["another"] = "value"; 908values["id"] = connection.ConnectionToken; 909values["negotiateVersion"] = "1"; 1843values["id"] = connection.ConnectionToken; 1844values["negotiateVersion"] = "1"; 1895values["id"] = connection.ConnectionToken; 1896values["negotiateVersion"] = "1"; 2571values["id"] = connection.ConnectionToken; 2572values["negotiateVersion"] = "1"; 2631values["id"] = connection.ConnectionToken; 2632values["negotiateVersion"] = "1"; 2688values["id"] = connection.ConnectionToken; 2689values["negotiateVersion"] = "1"; 3700values["id"] = connection.ConnectionToken; 3701values["negotiateVersion"] = "1"; 3737values["id"] = connection.ConnectionToken; 3738values["negotiateVersion"] = "1"; 3741values["format"] = format;
Microsoft.AspNetCore.Http.Microbenchmarks (12)
AdaptiveCapacityDictionaryBenchmark.cs (10)
53_filledDictTen[a.Key] = a.Value; 67_dict[_oneValue.Key] = _oneValue.Value; 80_dict[_oneValue.Key] = _oneValue.Value; 178_dictTen[val.Key] = val.Value; 189_dictTen[val.Key] = val.Value; 199_dictTen[val.Key] = val.Value; 209_dictTen[val.Key] = val.Value; 219_dictTen[val.Key] = val.Value; 229_dictTen[val.Key] = val.Value; 240_dictTen[val.Key] = val.Value;
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Http.Tests (2)
DefaultHttpContextTests.cs (2)
145items["foo"] = item; 480_store[key] = value;
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
449errorDictionary[error.Code] = newDescriptions;
Microsoft.AspNetCore.Identity.InMemory.Test (6)
InMemoryStore.cs (2)
74_roles[role.Id] = role; 106_roles[role.Id] = role;
InMemoryUserStore.cs (4)
168_logins[GetLoginKey(login.LoginProvider, login.ProviderKey)] = user; 184_logins[GetLoginKey(loginProvider, providerKey)] = null; 223_users[user.Id] = user; 229_users[user.Id] = user;
Microsoft.AspNetCore.Identity.Specification.Tests (1)
UserManagerSpecificationTests.cs (1)
1545o => o.Tokens.ProviderMap["NewProvider2"] = new TokenProviderDescriptor(typeof(EmailTokenProvider<TUser>))));
Microsoft.AspNetCore.InternalTesting (3)
AssemblyTestLog.cs (1)
254_logs[assembly] = log;
Tracing\CollectingEventListener.cs (1)
47_existingSources[eventSource.Name] = eventSource;
xunit\AspNetTestAssemblyRunner.cs (1)
75_assemblyFixtureMappings[fixtureAttribute.FixtureType] = instance;
Microsoft.AspNetCore.JsonPatch.Tests (8)
Internal\DictionaryAdapterTest.cs (6)
23dictionary[key] = 404; 43dictionary[intKey] = "Mike"; 263dictionary[nameKey] = "James"; 282dictionary[uriKey] = "James"; 307dictionary[key] = value; 325dictionary[key] = "James";
TestObjectModels\DynamicTestObject.cs (1)
82_dictionary[binder.Name] = value;
WriteOnceDynamicTestObject.cs (1)
114_dictionary[key] = value;
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelMetadata.cs (2)
581parameterMapping[parameter] = property; 582propertyMapping[property] = parameter;
ModelBinding\Validation\ValidationStateDictionary.cs (1)
41_inner[key] = value!;
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
AddResponseTypeAttributeCodeFixAction.cs (1)
161statusCodeConstants[statusCode] = field.Name;
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (3)
102responseTypes[responseType.Key] = responseType.Value; 210results[apiResponseType.StatusCode] = apiResponseType; 259results[apiResponseType.StatusCode] = apiResponseType;
Microsoft.AspNetCore.Mvc.Core (6)
Controllers\ControllerBinderDelegateProvider.cs (1)
84arguments[parameter.Name] = result.Model;
Formatters\FormatterMappings.cs (1)
45_map[format] = contentType.ToString();
ModelBinding\JQueryKeyValuePairNormalizer.cs (1)
28dictionary[normalizedKey] = originalValue.Value;
ModelBinding\ModelBinderFactory.cs (2)
138visited[key] = binder; 168visited[key] = result;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
Microsoft.AspNetCore.Mvc.Core.Test (17)
Infrastructure\ControllerActionInvokerTest.cs (1)
1754args[item.Key] = item.Value;
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (11)
787binder.Results[property] = ModelBindingResult.Failed(); 821binder.Results[property] = ModelBindingResult.Failed(); 857binder.Results[property] = ModelBindingResult.Success(model: null); 886binder.Results[property] = ModelBindingResult.Failed(); 906binder.Results[property] = ModelBindingResult.Failed(); 928binder.Results[property] = ModelBindingResult.Failed(); 950binder.Results[property] = ModelBindingResult.Success(model: 57); 978binder.Results[property] = ModelBindingResult.Failed(); 982binder.Results[firstNameProperty] = ModelBindingResult.Success("John"); 985binder.Results[lastNameProperty] = ModelBindingResult.Success("Doe"); 1014binder.Results[nestedProperty] = ModelBindingResult.Success(null);
Routing\UrlHelperTestBase.cs (5)
626dictionary["ID"] = id; 627dictionary["isprint"] = isprint; 673dict["ACTION"] = action; 674dict["Controller"] = controller; 675dict["ID"] = id;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
BsonTempDataSerializer.cs (4)
75convertedDictionary[item.Key] = result; 87convertedDictionary[item.Key] = null; 102convertedDictionary[item.Key] = result; 116convertedDictionary[item.Key] = (int)longValue;
Microsoft.AspNetCore.Mvc.Razor (1)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
68_hotReloadedViews[identifierAttribute.Value] = type;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
InputTagHelperTest.cs (1)
1789htmlAttributes["multiple"] = "multiple";
Microsoft.AspNetCore.Mvc.Testing.Tasks (1)
GenerateMvcTestManifestTask.cs (1)
40output[assemblyName] = contentRoot;
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
FormContext.cs (2)
155RenderedFields[fieldName] = value; 171InvariantFields[fieldName] = value;
HtmlHelper.cs (1)
1396groupList[keyValuePair.Key.Group] = group;
Infrastructure\DefaultTempDataSerializer.cs (2)
74deserialized[item.Name] = deserializedValue; 122dictionary[item.Name] = item.Value.GetString();
TempDataDictionary.cs (1)
101_data[key] = value;
TryGetValueProvider.cs (1)
74_tryGetValueDelegateCache[targetType] = result;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
CookieTempDataProviderTest.cs (1)
355_cookies[key] = new CookieInfo()
Rendering\HtmlHelperHiddenTest.cs (1)
804viewData.Model.Property3["key"] = "ModelProp3Val";
Rendering\HtmlHelperPasswordTest.cs (2)
362viewData.Model.Property3["key"] = "prop-value1"; 515helper.ViewData.Model.Property3["key"] = "Prop3Val";
Rendering\HtmlHelperTextAreaTest.cs (2)
77helper.ViewData.Model.Property3["key"] = "Prop3Val"; 128helper.ViewData.Model.Property3["key"] = "Prop3Val";
Rendering\HtmlHelperTextBoxTest.cs (2)
95helper.ViewData.Model.Property3["key"] = "Prop3Val"; 146helper.ViewData.Model.Property3["key"] = "Prop3Val";
SessionStateTempDataProviderTest.cs (1)
131_innerDictionary[key] = value.ToArray();
TempDataDictionaryTest.cs (2)
148data["Foo"] = "Foo"; 149data["Bar"] = "Bar";
ViewComponentTests.cs (1)
298_innerDictionary[key] = value.ToArray();
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestFileProvider.cs (4)
57_directoryContentsLookup[path] = directoryContent; 63_lookup[path] = contents; 86_fileTriggers[filter] = changeToken; 96_fileTriggers[filter] = changeToken;
Microsoft.AspNetCore.OpenApi (11)
Schemas\JsonSchemaMapper\JsonSchemaMapper.ReflectionHelpers.cs (1)
173dict[new(parameter.Name, parameter.ParameterType)] = parameter;
Schemas\OpenApiJsonSchema.Helpers.cs (2)
77values[key] = (T)JsonSerializer.Deserialize(ref reader, typeof(T), OpenApiJsonSchemaContext.Default)!; 148obj[key] = ReadOpenApiAny(ref reader);
Services\OpenApiDocumentService.cs (1)
130operations[description.GetOperationType()] = operation;
Services\OpenApiGenerator.cs (7)
149eligibileAnnotations[statusCode] = (discoveredTypeAnnotation, discoveredContentTypeAnnotation); 189eligibileAnnotations[statusCode] = (discoveredTypeAnnotation, discoveredContentTypeAnnotation); 207responseContent[contentType] = new OpenApiMediaType(); 210responses[statusCode.ToString(CultureInfo.InvariantCulture)] = new OpenApiResponse 281requestBodyContent[contentType] = new OpenApiMediaType(); 302requestBodyContent["multipart/form-data"] = new OpenApiMediaType(); 306requestBodyContent["application/json"] = new OpenApiMediaType();
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.OutputCaching (3)
Memory\MemoryOutputCacheStore.cs (1)
94_taggedEntries[tag] = keys;
OutputCacheOptions.cs (2)
56NamedPolicies[name] = policy; 78NamedPolicies[name] = builder.Build();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
360_storage[key] = entry;
Microsoft.AspNetCore.Razor.Runtime (2)
Runtime\TagHelpers\TagHelperExecutionContext.cs (1)
266_perEncoderChildContent[encoder] = childContent;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Rewrite (2)
IISUrlRewrite\IISRewriteMap.cs (1)
28_map[key] = value;
IISUrlRewrite\IISRewriteMapCollection.cs (1)
16_rewriteMaps[rewriteMap.Name] = rewriteMap;
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\TestServerVariablesFeature.cs (1)
20set => _variables[variableName] = value;
Microsoft.AspNetCore.Routing (6)
EndpointNameAddressScheme.cs (2)
52entries[endpointName] = new[] { endpoint }; 64entries[endpointName] = newEntry;
Matching\DfaMatcherBuilder.cs (1)
149_cachedParameters[inlineText] = createdParameterPolicy;
Matching\HttpMethodMatcherPolicy.cs (1)
286edges[new EdgeKey(AnyMethod, false)] = matches;
Patterns\RoutePatternFactory.cs (1)
605updatedDefaults[parameter.Name] = parameter.Default;
RouteOptions.cs (1)
175constraintMap[text] = typeof(TConstraint);
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Security.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Server.HttpSys (3)
StandardFeatureCollection.cs (3)
44_featureFuncLookup[typeof(IHttpUpgradeFeature)] = _identityFunc; 46_featureFuncLookup[typeof(ITlsHandshakeFeature)] = ctx => ctx.GetTlsHandshakeFeature(); 51_featureFuncLookup[typeof(IHttpSysRequestDelegationFeature)] = _identityFunc;
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http\HttpRequestHeaders.cs (2)
138Unknown[GetInternedHeaderName(key)] = value; 154Unknown[name] = AppendValue(existing, valueString);
Internal\Http\HttpResponseHeaders.cs (1)
128Unknown[GetInternedHeaderName(key)] = value;
Internal\Http\HttpResponseTrailers.cs (1)
35Unknown[GetInternedHeaderName(key)] = value;
Internal\Http2\Http2Connection.cs (1)
1181_streams[_incomingFrame.StreamId] = _currentHeadersStream;
Internal\Http3\Http3Connection.cs (2)
810_streams[stream.StreamId] = stream; 906_webtransportSessions[http3Stream.StreamId] = session;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
CertificatePathWatcherTests.cs (3)
527_changeTokens[path] = new ConfigurationReloadToken(); 533_lastModifiedTimes[path] = lastModifiedTime; 550_changeTokens[path] = changeToken = new ConfigurationReloadToken();
SniOptionsSelectorTests.cs (1)
931CertToFullChain[cert] = fullChain;
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (4)
873DecodedHeaders[headerName] = headerValue; 880DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 887DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value)); 897DecodedHeaders[headerName] = headerValue;
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (4)
382DecodedHeaders[headerName] = headerValue; 389DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 396DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value)); 406DecodedHeaders[headerName] = headerValue;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
20public void SetValue(EncodedKey key, byte[] value) => _store[key] = value;
Microsoft.AspNetCore.Shared.Tests (11)
runtime\Http2\HPackDecoderTest.cs (4)
873DecodedHeaders[headerName] = headerValue; 880DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 887DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value)); 897DecodedHeaders[headerName] = headerValue;
runtime\Http3\QPackDecoderTest.cs (4)
382DecodedHeaders[headerName] = headerValue; 389DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(entry.Name), Encoding.ASCII.GetString(entry.Value)); 396DecodedStaticHeaders[index] = new KeyValuePair<string, string>(Encoding.ASCII.GetString(name), Encoding.ASCII.GetString(value)); 406DecodedHeaders[headerName] = headerValue;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
112WriteDictionary[key] = value;
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (2)
127_dictionaryStorage[key] = value; 522_dictionaryStorage[item.Key] = item.Value;
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
779readers[id] = arg;
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (2)
HubClientProxyGenerator.Parser.cs (1)
271providerSymbols[symbol.Name] = (symbol, memberAccess);
HubServerProxyGenerator.Parser.cs (1)
248hubSymbols[symbol.Name] = (symbol, memberAccess);
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (1)
766_methods[methodName] = new HubMethodDescriptor(executor, serviceProviderIsService, authorizeAttributes);
Internal\DefaultHubProtocolResolver.cs (1)
27_availableProtocols[protocol.Name] = protocol;
Microsoft.AspNetCore.SignalR.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
504headers[propertyName] = reader.GetString()!;
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Protocol\NewtonsoftJsonHubProtocol.cs (1)
501headers[propertyName] = reader.Value.ToString()!;
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
154_files[path] = fileInfo;
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnExpectations.cs (1)
31_expectations[caseSpec] = expectation;
Microsoft.AspNetCore.WebSockets.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.AspNetCore.WebUtilities (5)
KeyValueAccumulator.cs (5)
39_accumulator[key] = new string[] { values[0]!, value }; 45_accumulator[key] = default(StringValues); 60_expandingAccumulator[key] = list; 66_accumulator[key] = new StringValues(value); 101_accumulator[entry.Key] = new StringValues(entry.Value.ToArray());
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.Build (177)
BackEnd\BuildManager\BuildManager.cs (3)
1306_unnamedProjectInstanceToNames[submission.BuildRequestData.ProjectInstance] = tempName; 2417_nodeIdToKnownConfigurations[node] = configurationsOnNode; 2948_projectStartedEvents[e.BuildEventContext.SubmissionId] = e;
BackEnd\BuildManager\CacheAggregator.cs (1)
78configIdMapping[config.ConfigurationId] = _lastConfigurationId;
BackEnd\Client\MSBuildClient.cs (1)
511envVars[pair.Key] = pair.Value;
BackEnd\Components\BuildComponentFactoryCollection.cs (20)
60_componentEntriesByType[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler, Scheduler.CreateComponent, CreationPattern.Singleton); 61_componentEntriesByType[BuildComponentType.ConfigCache] = new BuildComponentEntry(BuildComponentType.ConfigCache, ConfigCache.CreateComponent, CreationPattern.Singleton); 62_componentEntriesByType[BuildComponentType.ResultsCache] = new BuildComponentEntry(BuildComponentType.ResultsCache, ResultsCache.CreateComponent, CreationPattern.Singleton); 63_componentEntriesByType[BuildComponentType.NodeManager] = new BuildComponentEntry(BuildComponentType.NodeManager, NodeManager.CreateComponent, CreationPattern.Singleton); 64_componentEntriesByType[BuildComponentType.TaskHostNodeManager] = new BuildComponentEntry(BuildComponentType.TaskHostNodeManager, TaskHostNodeManager.CreateComponent, CreationPattern.Singleton); 66_componentEntriesByType[BuildComponentType.NodeLauncher] = new BuildComponentEntry(BuildComponentType.NodeLauncher, NodeLauncher.CreateComponent, CreationPattern.Singleton); 67_componentEntriesByType[BuildComponentType.InProcNodeProvider] = new BuildComponentEntry(BuildComponentType.InProcNodeProvider, NodeProviderInProc.CreateComponent, CreationPattern.Singleton); 68_componentEntriesByType[BuildComponentType.OutOfProcNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcNodeProvider, NodeProviderOutOfProc.CreateComponent, CreationPattern.Singleton); 69_componentEntriesByType[BuildComponentType.OutOfProcTaskHostNodeProvider] = new BuildComponentEntry(BuildComponentType.OutOfProcTaskHostNodeProvider, NodeProviderOutOfProcTaskHost.CreateComponent, CreationPattern.Singleton); 74_componentEntriesByType[BuildComponentType.RequestEngine] = new BuildComponentEntry(BuildComponentType.RequestEngine, BuildRequestEngine.CreateComponent, CreationPattern.Singleton); 78_componentEntriesByType[BuildComponentType.LoggingService] = new BuildComponentEntry(BuildComponentType.LoggingService, null); 79_componentEntriesByType[BuildComponentType.RequestBuilder] = new BuildComponentEntry(BuildComponentType.RequestBuilder, RequestBuilder.CreateComponent, CreationPattern.CreateAlways); 81_componentEntriesByType[BuildComponentType.BuildCheckManagerProvider] = new BuildComponentEntry(BuildComponentType.BuildCheckManagerProvider, BuildCheckManagerProvider.CreateComponent, CreationPattern.Singleton); 82_componentEntriesByType[BuildComponentType.TargetBuilder] = new BuildComponentEntry(BuildComponentType.TargetBuilder, TargetBuilder.CreateComponent, CreationPattern.CreateAlways); 83_componentEntriesByType[BuildComponentType.TaskBuilder] = new BuildComponentEntry(BuildComponentType.TaskBuilder, TaskBuilder.CreateComponent, CreationPattern.CreateAlways); 84_componentEntriesByType[BuildComponentType.RegisteredTaskObjectCache] = new BuildComponentEntry(BuildComponentType.RegisteredTaskObjectCache, RegisteredTaskObjectCache.CreateComponent, CreationPattern.Singleton); 87_componentEntriesByType[BuildComponentType.SdkResolverService] = new BuildComponentEntry(BuildComponentType.SdkResolverService, MainNodeSdkResolverService.CreateComponent, CreationPattern.Singleton); 125_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, existingEntry.Pattern); 136_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, instance); 147_componentEntriesByType[componentType] = new BuildComponentEntry(componentType, factory, creationPattern);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
375_requestsByGlobalRequestId[request.GlobalRequestId] = entry;
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
434_outstandingResults[requestEntry.Key] = new BuildResult(requestEntry.Value, new BuildAbortedException()); 444_outstandingResults[request.NodeRequestId] = new BuildResult(request, new BuildAbortedException());
BackEnd\Components\RequestBuilder\BatchingEngine.cs (4)
230itemListsToBeBatched[consumedMetadataReference.ItemName] = null; 274itemListsToBeBatched[consumedItemName] = items; 404itemMetadataValues[metadataQualifiedName] = String.Empty; 412itemMetadataValues[metadataQualifiedName] = ((IItem)item).GetMetadataValueEscaped(metadataName);
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
740_addTable[name] = value;
BackEnd\Components\RequestBuilder\Lookup.cs (5)
226lookupHash[propertyName] = ((IProperty)property).EvaluatedValueEscaped; 764PrimaryModifyTable[itemType] = modifiesOfType; 815_cloneTable[cloneItem] = originalItem; 1100_modifications[modificationPair.Key] = modificationPair.Value; 1164_modifications[metadataName] = value;
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
482_requestEntry.RequestConfiguration.ActivelyBuildingTargets[currentTargetEntry.Name] = _requestEntry.Request.GlobalRequestId;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
844itemVectorCollection[itemVectorType] = new ItemVectorPartition(MSBuildNameIgnoreCaseComparer.Default); 850itemVectorPartition[item] = itemVectorContents; 859discreteItems[item] = item;
BackEnd\Components\Scheduler\SchedulableRequest.cs (7)
141_timeRecords[SchedulableRequestState.Unscheduled] = new ScheduleTimeRecord(); 142_timeRecords[SchedulableRequestState.Blocked] = new ScheduleTimeRecord(); 143_timeRecords[SchedulableRequestState.Yielding] = new ScheduleTimeRecord(); 144_timeRecords[SchedulableRequestState.Executing] = new ScheduleTimeRecord(); 145_timeRecords[SchedulableRequestState.Ready] = new ScheduleTimeRecord(); 146_timeRecords[SchedulableRequestState.Completed] = new ScheduleTimeRecord(); 363_requestsWeAreBlockedBy[key] = blockingRequest;
BackEnd\Components\Scheduler\Scheduler.cs (3)
492_availableNodes[nodeInfo.NodeId] = nodeInfo; 1299configurationCountsByNode[availableNodeId] = _schedulingData.GetConfigurationsCountByNode(availableNodeId, true /* excludeTraversals */, _configCache); 2313availableNodeIdsToIndex[availableNodeId] = indexIntoArrays;
BackEnd\Components\Scheduler\SchedulingData.cs (13)
273_unscheduledRequestNodesByRequest[request] = requestNode; 280_configurationToRequests[request.BuildRequest.ConfigurationId] = requests; 288_buildHierarchy[request] = new List<SchedulableRequest>(8); 322_executingRequestByNode[request.AssignedNode] = null; 342_scheduledRequestsByNode[request.AssignedNode] = requestsAssignedToNode; 353_configurationsByNode[request.AssignedNode] = configurationsAssignedToNode; 370_blockedRequests[request.BuildRequest.GlobalRequestId] = request; 375_yieldingRequests[request.BuildRequest.GlobalRequestId] = request; 394_executingRequests[request.BuildRequest.GlobalRequestId] = request; 395_executingRequestByNode[request.AssignedNode] = request; 396_configurationToNode[request.BuildRequest.ConfigurationId] = request.AssignedNode; 406_readyRequests[request.BuildRequest.GlobalRequestId] = request; 411_readyRequestsByNode[request.AssignedNode] = readyRequestsOnNode;
BackEnd\Components\Scheduler\SchedulingPlan.cs (4)
305_configIdToPaths[root.ConfigId] = pathsForConfig; 416_configIdToData[configId] = data; 417_configPathToData[configFullPath] = data; 468accumulatedTimeByConfiguration[request.BuildRequest.ConfigurationId] = accumulatedTime + request.GetTimeSpentInState(SchedulableRequestState.Executing).TotalMilliseconds;
BackEnd\Components\SdkResolution\SdkResolverService.cs (3)
302_manifestToResolvers[resolverManifest] = newResolvers; 466_manifestToResolvers[sdkResolverManifest] = resolvers; 545_manifestToResolvers[sdkDefaultResolversManifest] = defaultResolvers;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (3)
394setParameters[parameter.Key] = String.Empty; 919_intrinsicTasks[_taskName] = returnClass; 925_intrinsicTasks[_taskName] = returnClass;
BuildCheck\Analyzers\SharedOutputPathAnalyzer.cs (1)
88_projectsPerOutputPath[path!] = projectPath;
BuildCheck\Infrastructure\BuildCheckConnectorLogger.cs (2)
132infraStats[newKey] = stat.Value; 136analyzerStats[stat.Key] = stat.Value;
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
161taskData.TaskParameters[parameterName] = new TaskInvocationAnalysisData.TaskParameter(parameterValue, isOutput);
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
176filteredConfig[newKey] = kv.Value;
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
93resultingDictionary[property.Key] = property.Value;
BuildCheck\Infrastructure\TracingReporter.cs (2)
28TracingStats[name] = existing + subtotal; 32TracingStats[name] = subtotal;
Collections\ItemDictionary.cs (2)
322_itemLists[itemType] = list; 388_itemLists[projectItem.Key] = list;
Collections\PropertyDictionary.cs (1)
525dictionary[property.Key] = property.EscapedValue;
Collections\WeakValueDictionary.cs (1)
134_dictionary[key] = wrappedValue;
Construction\ProjectTaskElement.cs (1)
153parametersClone[entry.Key] = entry.Value.Item1;
Construction\Solution\ProjectInSolution.cs (1)
277_projectConfigurations[configurationName] = configuration;
Construction\Solution\SolutionFile.cs (2)
1003_projects[proj.ProjectGuid] = proj; 1473rawProjectConfigurationsEntries[nameValue[0].Trim()] = nameValue[1].Trim();
Construction\Solution\SolutionProjectGenerator.cs (4)
2064properties[property.Item1] = EscapingUtilities.Escape(traversalProject.GetPropertyValue(property.Item1)); 2068properties[property.Item1] = EscapingUtilities.Escape(property.Item2); 2075properties[globalProperty.Name] = ((IProperty)globalProperty).EvaluatedValueEscaped; 2084properties[Constants.SubToolsetVersionPropertyName] = traversalProject.SubToolsetVersion;
CoreCLRAssemblyLoader.cs (3)
104_pathsToAssemblies[fullPath] = assembly; 190_pathsToAssemblies[fullPath] = assembly; 191_namesToAssemblies[name] = assembly;
Definition\Project.cs (2)
2156dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 2673removeElementCache[itemElement.ItemType] = cumulativeRemoveElementData;
Definition\ProjectCollection.cs (2)
573dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 1016_toolsets[toolset.ToolsVersion] = toolset;
Definition\ToolsetConfigurationReader.cs (1)
218_projectImportSearchPathsCache[key] = kindToPathsCache;
Definition\ToolsetReader.cs (2)
435toolsets[toolset.ToolsVersion] = toolset; 510subToolsets[subToolsetVersion] = new SubToolset(subToolsetVersion, subToolsetProperties);
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
Evaluation\ConditionEvaluator.cs (1)
89conditionedPropertiesTable[propertyNameString] = conditionedPropertyValues;
Evaluation\Evaluator.cs (5)
900_projectSupportsReturnsAttribute[currentProjectOrImport] = projectSupportsReturnsAttribute || (target.Returns != null); 1039activeTargets[targetName] = activeTargetsByEvaluationOrder.AddLast(targetElement); 1061targetsWhichRunBeforeByTarget[unescapedBeforeTarget] = beforeTargetsForTarget; 1084targetsWhichRunAfterByTarget[unescapedAfterTarget] = afterTargetsForTarget; 1936escapedMetadata[metadata.Key] = EscapingUtilities.Escape(metadata.Value);
Evaluation\EvaluatorMetadataTable.cs (1)
102_metadata[xml.Name] = new EvaluatorMetadata(xml, evaluatedValueEscaped);
Evaluation\Expander.cs (1)
2590directoryNameTable[unescapedPath] = directoryName;
Evaluation\ExpressionShredder.cs (1)
450pair.Metadata[qualifiedMetadataName] = new MetadataReference(itemName, metadataName);
Evaluation\LazyItemEvaluator.cs (2)
242_cache[globsToIgnore] = items; 532_itemLists[itemElement.ItemType] = newList;
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (4)
79_dictionaryBuilder[oldNormalizedValue] = oldDictionaryEntry; 84_dictionaryBuilder[newNormalizedValue] = newDictionaryEntry; 91_dictionaryBuilder[newNormalizedValue] = dictionaryEntry; 190_dictionaryBuilder[key] = dictionaryValue;
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
136capturedItemsFromReferencedItemTypes[referencedItem.Item.Key] = referencedItem.Item;
Evaluation\Preprocessor.cs (2)
123_importTable[element] = list; 146_implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument] = new List<ResolvedImport>();
Evaluation\Profiler\EvaluationProfiler.cs (1)
154_evaluationProfiler._timeSpent[Location] = updatedTimeSpent;
Evaluation\ToolsetProvider.cs (1)
42_toolsets[toolset.ToolsVersion] = toolset;
FileMatcher.cs (1)
2485searchesToExcludeInSubdirs[excludeBaseDirectory] = listForSubdir;
Graph\GraphBuilder.cs (2)
182transitiveReferenceCache[parsedProject.GraphNode] = transitiveReferences; 214projectsByPath[projectPath] = new List<ProjectGraphNode> { project.Value.GraphNode };
Graph\ParallelWorkSet.cs (1)
57completedWork[kvp.Key] = workItem.Value;
Graph\ProjectGraph.cs (3)
580if (--inDegree[reference] == 0) 714targetLists[node] = targetLists[node].AddRange(requestedTargets); 781targetLists[pair.Key] = pair.Value;
Instance\HostServices.cs (6)
225_projectAffinities[projectFile] = nodeAffinity; 239_hostObjectMap[newFullPath] = hostObjects; 301_hostObjectMap[projectFile] = hostObjects; 324hostObjectMap[pairKey] = hostObject; 444_hostObjects[new TargetTaskKey(targetName, taskName)] = new MonikerNameOrITaskHost(hostObject); 460_hostObjects[new TargetTaskKey(targetName, taskName)] = new MonikerNameOrITaskHost(monikerName);
Instance\ProjectInstance.cs (2)
1084dictionary[property.Name] = ((IProperty)property).EvaluatedValueEscaped; 2534globalProperties[propertyInstance.Name] = ((IProperty)propertyInstance).EvaluatedValueEscaped;
Instance\ProjectItemInstance.cs (2)
1496clonedMetadata[metadatum.Name] = metadatum.EvaluatedValue; 1513clonedMetadata[metadatum.Name] = metadatum.EvaluatedValueEscaped;
Instance\ProjectTaskInstance.cs (1)
241filteredParameters[parameter.Key] = parameter.Value.Item1;
Instance\TaskFactoryWrapper.cs (3)
300namesOfPropertiesWithAmbiguousMatches[propertyInfo.Name] = String.Empty; 311namesOfPropertiesWithRequiredAttribute[propertyInfo.Name] = String.Empty; 322namesOfPropertiesWithOutputAttribute[propertyInfo.Name] = String.Empty;
Instance\TaskRegistry.cs (2)
707_taskRegistrations[taskIdentity] = registeredTaskEntries; 1344_taskNamesCreatableByFactory[taskIdentity] = creatableByFactory;
Logging\BaseConsoleLogger.cs (1)
687table[scopeName] = counter;
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
687d[evaluationLocation] = profiledLocation; 1435result[key] = value;
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
1056nameValueListHashes[hash] = nameValueRecordId; 1197stringHashes[hash] = stringRecordId;
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
571propertyOutputMap[projectKey] = result; 582propertyOutputMap[projectKey] = value; 1212propertyOutputMap[evaluationKey] = value; 1671table[scopeName] = counter;
Logging\ParallelLogger\ParallelLoggerHelpers.cs (3)
57_projectKey[e.ProjectFile] = _projectIncrementKey; 65_projectTargetKey[e.ProjectFile] = projectTargetKeyLocal; 72_projectTargetKey[e.ProjectFile] = projectTargetKeyLocal;
Logging\ProfilerLogger.cs (2)
167_aggregatedLocations[EvaluationLocation.CreateLocationForAggregatedGlob()] = 231result[key.WithParentId(parentId)] = prunedPair.Value;
NodePacketFactory.cs (1)
36_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
PlatformNegotiation.cs (1)
119table[keyVal[0]] = keyVal[1];
PropertyParser.cs (2)
68propertiesTable[propertyName] = propertyValue; 183finalPropertiesTable[propertyNameValuePair.Name] = propertyValue;
SolutionConfiguration.cs (4)
64_cachedProjectElements[projectGuid] = xmlElement; 67_cachedProjectElementsByAbsolutePath[projectAbsolutePath] = xmlElement; 68_cachedProjectAbsolutePathsByGuid[projectGuid] = projectAbsolutePath; 69_cachedProjectGuidsByAbsolutePath[projectAbsolutePath] = projectGuid;
TaskHostConfiguration.cs (1)
204_taskParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskHostTaskComplete.cs (1)
123_taskOutputParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskParameter.cs (2)
463escapedGenericWrappedMetadata[entry.Key] = entry.Value == null ? entry.Value : EscapingUtilities.Escape(entry.Value); 870_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
Tracing.cs (1)
112s_counts[counter] = incremented;
TypeLoader.cs (1)
203assembliesDictionary[Path.GetFileName(runtimeAssembly)] = runtimeAssembly;
Microsoft.Build.Engine (67)
Engine\BatchingEngine.cs (2)
399itemMetadataValues[metadataQualifiedName] = String.Empty; 405itemMetadataValues[metadataQualifiedName] = item.GetEvaluatedMetadataEscaped(metadataName);
Engine\Engine.cs (1)
906toolsetStateMap[toolset.ToolsVersion] = new ToolsetState(this, toolset);
Engine\EngineLoggingServicesInProc.cs (1)
127eventSources[loggerId] = eventSource;
Engine\Expander.cs (2)
158itemMetadata[name] = value; 162itemMetadata[itemType + "." + name] = value;
Engine\TaskEngine.cs (1)
643setParameters[taskAttribute.Name] = String.Empty;
Engine\ToolsetCollection.cs (1)
132toolsetMap[item.ToolsVersion] = item;
Items\ItemDefinitionLibrary.cs (1)
309metadataDictionary[itemDefinitionChildElement.Name] = evaluatedMetadataValue;
ItemsAndProperties\ExpressionShredder.cs (1)
294pair.Metadata[qualifiedMetadataName] = new MetadataReference(itemName, metadataName);
ItemsAndProperties\Lookup.cs (4)
796PrimaryModifyTable[name] = modifiesOfType; 839cloneTable[clone] = modify.Key; 928existingMetadataChanges[metadataChange.Key] = metadataChange.Value; 935existingMetadataChanges[metadataChange.Key] = metadataChange.Value;
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (44)
80forwardingTable[BuildStartedEventDescription] = 0; 81forwardingTable[BuildFinishedEventDescription] = 0; 82forwardingTable[ProjectStartedEventDescription] = 0; 83forwardingTable[ProjectFinishedEventDescription] = 0; 84forwardingTable[TargetStartedEventDescription] = 0; 85forwardingTable[TargetFinishedEventDescription] = 0; 86forwardingTable[TaskStartedEventDescription] = 0; 87forwardingTable[TaskFinishedEventDescription] = 0; 88forwardingTable[ErrorEventDescription] = 0; 89forwardingTable[WarningEventDescription] = 0; 90forwardingTable[HighMessageEventDescription] = 0; 91forwardingTable[NormalMessageEventDescription] = 0; 92forwardingTable[LowMessageEventDescription] = 0; 93forwardingTable[CustomEventDescription] = 0; 94forwardingTable[CommandLineDescription] = 0; 134forwardingTable[parameterName] = 1; 193forwardingTable[BuildStartedEventDescription] = 0; 194forwardingTable[BuildFinishedEventDescription] = 0; 198forwardingTable[ErrorEventDescription] = 1; 199forwardingTable[WarningEventDescription] = 1; 204forwardingTable[HighMessageEventDescription] = 1; 209forwardingTable[NormalMessageEventDescription] = 1; 210forwardingTable[ProjectStartedEventDescription] = 1; 211forwardingTable[ProjectFinishedEventDescription] = 1; 212forwardingTable[TargetStartedEventDescription] = 1; 213forwardingTable[TargetFinishedEventDescription] = 1; 218forwardingTable[TargetStartedEventDescription] = 1; 219forwardingTable[TargetFinishedEventDescription] = 1; 220forwardingTable[TaskStartedEventDescription] = 1; 221forwardingTable[TaskFinishedEventDescription] = 1; 222forwardingTable[LowMessageEventDescription] = 1; 223forwardingTable[CommandLineDescription] = 1; 228forwardingTable[CustomEventDescription] = 1; 233forwardingTable[ErrorEventDescription] = 1; 234forwardingTable[WarningEventDescription] = 1; 239forwardingTable[TargetStartedEventDescription] = 1; 240forwardingTable[TargetFinishedEventDescription] = 1; 241forwardingTable[TaskStartedEventDescription] = 1; 242forwardingTable[TaskFinishedEventDescription] = 1; 243forwardingTable[TargetStartedEventDescription] = 1; 244forwardingTable[TargetFinishedEventDescription] = 1; 245forwardingTable[ProjectStartedEventDescription] = 1; 246forwardingTable[ProjectFinishedEventDescription] = 1; 251forwardingTable[CommandLineDescription] = 1;
Logging\ParallelLogger\ParallelLoggerHelpers.cs (3)
59projectKey[e.ProjectFile] = projectIncrementKey; 72projectTargetKey[e.ProjectFile] = projectTargetKeyLocal; 79projectTargetKey[e.ProjectFile] = projectTargetKeyLocal;
Shared\LoadedType.cs (3)
127namesOfPropertiesWithAmbiguousMatches[propertyInfos[i].Name] = String.Empty; 133namesOfPropertiesWithRequiredAttribute[propertyInfos[i].Name] = String.Empty; 139namesOfPropertiesWithOutputAttribute[propertyInfos[i].Name] = String.Empty;
Shared\SolutionParser.cs (1)
1232project.ProjectConfigurations[solutionConfiguration.FullName] = projectConfiguration;
Shared\TypeLoader.cs (1)
128cacheOfAllDesiredTypesInAnAssembly[assembly] = desiredTypesInAssembly;
Tasks\IntrinsicTask.cs (1)
271metadataToSet[metadataElement.Name] = evaluatedMetadataValue;
Microsoft.Build.Engine.OM.UnitTests (5)
Definition\ProjectProperty_Tests.cs (1)
193globalProperties["g"] = String.Empty;
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
Instance\ProjectInstance_Tests.cs (1)
1028globalProperties["g"] = "gv";
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
127newKnown[implType] = factory;
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (1)
138collections[nextCollectionId] = result;
Microsoft.Build.Engine.UnitTests (69)
BackEnd\BinaryTranslator_Tests.cs (6)
430value["foo"] = "bar"; 431value["alpha"] = "omega"; 468value["foo"] = new BaseClass(1); 469value["alpha"] = new BaseClass(2); 507value["foo"] = new BaseClass(1); 508value["alpha"] = new BaseClass(2);
BackEnd\BuildRequestConfiguration_Tests.cs (5)
275globalProperties["ThreeIn"] = "3"; 350globalProperties["ThreeIn"] = "3"; 351globalProperties["BazIn"] = "bazfile"; 454globalProperties["ThreeIn"] = "3"; 455globalProperties["BazIn"] = "bazfile";
BackEnd\NodeEndpointInProc_Tests.cs (1)
439_linkStatusTable[endpoint] = new LinkStatusContext(Thread.CurrentThread, status);
BackEnd\TaskExecutionHost_Tests.cs (9)
144parameters["ExecuteReturnParam"] = ("true", ElementLocation.Create("foo.proj")); 170parameters["NonExistentParam"] = ("foo", ElementLocation.Create("foo.proj")); 609parameters["ExecuteReturnParam"] = ("true", ElementLocation.Create("foo.proj")); 625parameters["ExecuteReturnParam"] = ("false", ElementLocation.Create("foo.proj")); 643parameters["ExecuteReturnParam"] = ("false", ElementLocation.Create("foo.proj")); 1137_parametersSetOnTask[parameterName] = valueSet; 1145_outputsReadFromTask[parameterName] = actualValue; 1484parameters[parameterName] = (value, ElementLocation.Create("foo.proj")); 1495parameters["ExecuteReturnParam"] = (returnParam ? "true" : "false", ElementLocation.Create("foo.proj"));
Collections\OMcollections_tests.cs (6)
270values["one"] = "1"; 271values["two"] = "2"; 272values["three"] = "3"; 275convertedValues["one"] = 1; 276convertedValues["two"] = 2; 277convertedValues["three"] = 3;
Construction\SolutionProjectGenerator_Tests.cs (12)
1617globalProperties["Configuration"] = "Debug"; 1623globalProperties["Configuration"] = "Release"; 1969globalProperties["Configuration"] = "Nonexistent"; 1970globalProperties["SkipInvalidConfigurations"] = "true"; 2063globalProperties["Configuration"] = "Release"; 2150globalProperties["Configuration"] = "Release"; 2224globalProperties["Configuration"] = "Release"; 2225globalProperties["SkipInvalidConfigurations"] = "true"; 2607globalProperties["ImportDirectorySolutionProps"] = "false"; 2608globalProperties["ImportDirectorySolutionTargets"] = "false"; 2615globalProperties["DirectorySolutionPropsPath"] = projectPath; 2619globalProperties["DirectorySolutionTargetsPath"] = projectPath;
Evaluation\Expander_Tests.cs (5)
783itemMetadataTable["Culture"] = "abc%253bdef;$(Gee_Aych_Ayee)"; 784itemMetadataTable["Language"] = "english"; 1312itemMetadataTable["Culture"] = "abc%253bdef;$(Gee_Aych_Ayee)"; 1313itemMetadataTable["Language"] = "english"; 3865itemMetadataTable["Compile.Identity"] = "fOo.Cs";
Evaluation\ExpressionShredder_Tests.cs (1)
1182consumedMetadataReferences[qualifiedMetadataName] = new MetadataReference(itemName, metadataName);
ExpressionTreeExpression_Tests.cs (1)
401metadataDictionary["Culture"] = "french";
Graph\ProjectGraph_Tests.cs (1)
2332expectedGlobalProperties[PropertyNames.IsGraphBuild] = "true";
Graph\ResultCacheBasedBuilds_Tests.cs (3)
449expectedNodeBuildOutput[node] = ExpectedBuildOutputForNode(node); 462outputCaches[node] = env.DefaultTestDirectory.CreateFile($"OutputCache-{ProjectNumber(node)}").Path; 476results[ProjectNumber(node)] = (result, logger);
HashTableUtility_Tests.cs (15)
29h1["a"] = "x"; // <---------- Must be the same in both hashtables. 31h2["a"] = "x"; // <---------- Must be the same in both hashtables. 32h2["b"] = "y"; 45h1["a"] = "x"; 46h2["a"] = "x"; 49h1["b"] = "y"; 50h1["c"] = "z"; 51h2["b"] = "y"; 52h2["c"] = "z"; 55h1["b"] = "j"; 58h2["b"] = "j"; 59h2["c"] = "k"; 62h1["a"] = null; 63h1["c"] = "k"; 66h2["a"] = null;
Instance\HostServices_Tests.cs (1)
504globals["UniqueDummy"] = Guid.NewGuid().ToString();
Instance\ProjectTaskInstance_Internal_Tests.cs (1)
75parametersCopy[param.Key] = (param.Value.Item1, param.Value.Item2);
ProjectCache\ProjectCacheTests.cs (2)
506nodesToBuildResults[node] = buildResult; 598nodesToBuildResults[node] = buildResult;
Microsoft.Build.Framework (28)
BinaryTranslator.cs (1)
661dictionary[key] = value;
BuildException\BuildExceptionSerializationHelper.cs (1)
62exceptionFactories[key] = exceptionFactory;
Telemetry\BuildTelemetry.cs (11)
95properties["BuildEngineDisplayVersion"] = DisplayVersion; 100properties["BuildDurationInMilliseconds"] = (FinishedAt.Value - StartAt.Value).TotalMilliseconds.ToString(CultureInfo.InvariantCulture); 105properties["InnerBuildDurationInMilliseconds"] = (FinishedAt.Value - InnerStartAt.Value).TotalMilliseconds.ToString(CultureInfo.InvariantCulture); 110properties["BuildEngineFrameworkName"] = FrameworkName; 115properties["BuildEngineHost"] = Host; 120properties["InitialMSBuildServerState"] = InitialServerState; 125properties["ProjectPath"] = Project; 130properties["ServerFallbackReason"] = ServerFallbackReason; 135properties["BuildSuccess"] = Success.HasValue.ToString(CultureInfo.InvariantCulture); 140properties["BuildTarget"] = Target; 145properties["BuildEngineVersion"] = Version.ToString();
Telemetry\LoggingConfigurationTelemetry.cs (14)
106properties["TerminalLogger"] = TerminalLogger.ToString(CultureInfo.InvariantCulture); 110properties["TerminalLoggerUserIntent"] = TerminalLoggerUserIntent; 115properties["TerminalLoggerUserIntentSource"] = TerminalLoggerUserIntentSource; 120properties["TerminalLoggerDefault"] = TerminalLoggerDefault; 125properties["TerminalLoggerDefaultSource"] = TerminalLoggerDefaultSource; 128properties["ConsoleLogger"] = ConsoleLogger.ToString(CultureInfo.InvariantCulture); 131properties["ConsoleLoggerType"] = ConsoleLoggerType; 136properties["ConsoleLoggerVerbosity"] = ConsoleLoggerVerbosity; 139properties["FileLogger"] = FileLogger.ToString(CultureInfo.InvariantCulture); 142properties["FileLoggerType"] = FileLoggerType; 143properties["FileLoggersCount"] = FileLoggersCount.ToString(CultureInfo.InvariantCulture); 148properties["FileLoggerVerbosity"] = FileLoggerVerbosity; 151properties["BinaryLogger"] = BinaryLogger.ToString(CultureInfo.InvariantCulture); 152properties["BinaryLoggerUsedDefaultName"] = BinaryLoggerUsedDefaultName.ToString(CultureInfo.InvariantCulture);
XamlTypes\Rule.cs (1)
500map[property.Name] = property;
Microsoft.Build.Framework.UnitTests (1)
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
Microsoft.Build.Tasks.Core (56)
AssemblyDependency\Reference.cs (2)
155_sourceItems[itemSpec] = sourceItem; 738_preUnificationVersions[key] = unificationVersion;
AssemblyDependency\ReferenceTable.cs (8)
336_resolvedSDKReferences[sdkName] = resolvedSDK; 420References[assemblyName] = reference; 1341_externallyResolvedImmutableFiles[resolvedPath] = GetAssemblyNameFromItemMetadata(reference.PrimarySourceItem); 1404goodReferences[assemblyName] = assemblyReference; 1432goodReferences[assemblyName] = assemblyReference; 1900fullNameToReference[key] = assemblyNameReference; 1905fullNameToReference[key] = assemblyNameReference; 2195baseNameToReferences[baseName] = refs;
AssemblyDependency\ResolveAssemblyReference.cs (3)
1789_showAssemblyFoldersExLocations[location.SearchPath] = importance; 3032tableMap[listPath] = new AssemblyTableInfo(listPath, targetFrameworkDirectory); 3056tableMap[installedAssemblyTable.ItemSpec] = new AssemblyTableInfo(installedAssemblyTable.ItemSpec, frameworkDirectory);
AssemblyFolder.cs (1)
72directories[regkeyAlias] = folder;
BootstrapperUtil\BootstrapperBuilder.cs (1)
1535eulas[key] = de;
Copy.cs (2)
488filesActuallyCopied[destPath] = SourceFiles[i].ItemSpec; 556partitionsByDestination[destPath] = sourceIndices;
CreateItem.cs (1)
221uniqueItems[item.ItemSpec] = String.Empty;
CreateManifestResourceName.cs (1)
210itemSpecToTaskitem[resourceFile.ItemSpec] = resourceFile;
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
FileMatcher.cs (1)
2485searchesToExcludeInSubdirs[excludeBaseDirectory] = listForSubdir;
GenerateResource.cs (2)
1819_typeTable[typeName] = type; 1896_aliases[alias] = fullName;
ManifestUtil\ApplicationManifest.cs (2)
671targetPathList[key] = true; // only warn once per path 717targetPathList[key] = true; // only warn once per path
ManifestUtil\Manifest.cs (1)
640identityList[key] = true; // only warn once per identity
PlatformNegotiation.cs (1)
119table[keyVal[0]] = keyVal[1];
PropertyParser.cs (2)
68propertiesTable[propertyName] = propertyValue; 183finalPropertiesTable[propertyNameValuePair.Name] = propertyValue;
RedistList.cs (3)
628denyListOfAssemblyNames[name] = null; 803assemblyEntries[hashIndex] = newEntry; 1060s_subsetListPathCache[key] = subsetFilesForFrameworkDirectory.ToArray();
ResolveComReferenceCache.cs (1)
86componentTimestamps[componentPath] = value;
ResolveSDKReference.cs (2)
290_runtimeReferenceOnlyDependenciesByName[dependencyName] = dependencyVersion; 305sdkItems[sdkName] = installedsdk;
ResourceHandling\MSBuildResXReader.cs (1)
70aliases[alias] = name;
SolutionConfiguration.cs (4)
64_cachedProjectElements[projectGuid] = xmlElement; 67_cachedProjectElementsByAbsolutePath[projectAbsolutePath] = xmlElement; 68_cachedProjectAbsolutePathsByGuid[projectGuid] = projectAbsolutePath; 69_cachedProjectGuidsByAbsolutePath[projectAbsolutePath] = projectGuid;
system.design\stronglytypedresourcebuilder.cs (1)
775reverseFixupTable[newKey] = key;
SystemState.cs (10)
374upToDateLocalFileStateCache[path] = state; 397instanceLocalFileStateCache[path] = cachedProcessFileState; 402instanceLocalOutgoingFileStateCache[path] = cachedProcessFileState; 411instanceLocalOutgoingFileStateCache[path] = cachedInstanceFileState; 425instanceLocalLastModifiedCache[path] = lastModified; 438instanceLocalFileStateCache[path] = fileState; 439instanceLocalOutgoingFileStateCache[path] = fileState; 593retVal.instanceLocalFileStateCache[fullPath] = fileState; 646instanceLocalDirectories[path] = directories; 689instanceLocalDirectoryExists[path] = exists;
Tracing.cs (1)
112s_counts[counter] = incremented;
WriteCodeFragment.cs (2)
329parameterTypes[parameterNameKey] = new ParameterType 362parameterTypes[parameterNameKey] = new ParameterType
XamlTaskFactory\CommandLineGenerator.cs (1)
164_activeCommandLineToolSwitches[property.Name] = switchToAdd;
XamlTaskFactory\XamlDataDrivenToolTask.cs (1)
114ActiveToolSwitches[switchToAdd.Name] = switchToAdd;
Microsoft.Build.Tasks.UnitTests (9)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (4)
847uniqueFileExists[lowerPath] = 0; 850uniqueFileExists[lowerPath]++; 1039uniqueGetAssemblyName[lowerPath] = 0; 1043uniqueGetAssemblyName[lowerPath] = (int)uniqueGetAssemblyName[lowerPath] + 1;
FindInvalidProjectReferences_Tests.cs (4)
29proj1["TargetPlatformMoniker"] = "Windows, Version=7.0"; 32proj2["TargetPlatformMoniker"] = "Windows, Version=8.0"; 35proj3["TargetPlatformMoniker"] = "Windows, Version=8.1"; 38proj4["TargetPlatformMoniker"] = "Windows, Version=8.2";
ResourceHandling\GenerateResource_Tests.cs (1)
3644valuesFromResource[name] = value;
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (2)
1760nodes[parent] = (IsRoot(parent), file.Path); 1782nodes[reference] = (false, file.Path);
TestEnvironment.cs (1)
601tempPaths[TMPDIR] = Environment.GetEnvironmentVariable(TMPDIR);
Microsoft.Build.Utilities.Core (14)
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
FileMatcher.cs (1)
2485searchesToExcludeInSubdirs[excludeBaseDirectory] = listForSubdir;
MuxLogger.cs (2)
308_submissionProjectsInProgress[e.BuildEventContext.SubmissionId] = value + 1; 328_submissionProjectsInProgress[e.BuildEventContext.SubmissionId] = value - 1;
ToolLocationHelper.cs (9)
405extensionSDKs[extension.Key] = extension.Value; 452extensionSDKsAndVersions[extension.Key] = Tuple.Create<string, string>(extension.Value, moniker.TargetPlatformVersion.ToString()); 1427s_vsInstallFolders[versionRange] = vsInstallFolders; 2261s_cachedReferenceAssemblyPaths[referenceAssemblyCacheKey] = dotNetFrameworkReferenceAssemblies; 2315s_cachedTargetFrameworkDisplayNames[targetFrameworkDirectory] = displayName; 3117s_chainedReferenceAssemblyPath[path] = null; 3118s_cachedTargetFrameworkDisplayNames[path] = null; 3178s_cachedTargetFrameworkDisplayNames[path] = displayName; 3211s_chainedReferenceAssemblyPath[path] = pathToReturn;
Tracing.cs (1)
112s_counts[counter] = incremented;
Microsoft.Cci.Extensions (4)
Filters\BaselineDifferenceFilter.cs (3)
45_ignoreDifferences[filteredLine] = false; 54_ignoreDifferences[difference.Id] = true; 62_ignoreDifferences[diff] = true;
Traversers\DocIdToTypeMappingTraverser.cs (1)
27_typesIdMap[type.UniqueId()] = type;
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
776s_internalsVisibleToCache[key] = result;
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
69runtimeItems[runtimeName] = runtimeItems[runtimeName].Concat(items);
Microsoft.DotNet.ArcadeLogging (3)
PipelinesLogger.cs (3)
217_taskTelemetryInfoMap[parentId] = telemetryInfo; 256_buildEventContextMap[e.BuildEventContext] = projectInfo.Id; 258_projectInfoMap[projectInfo.Id] = projectInfo;
Microsoft.DotNet.Build.Tasks.Feed (1)
src\common\MSBuildListSplitter.cs (1)
44values[key] = value;
Microsoft.DotNet.Build.Tasks.Packaging (23)
ApplyBaseLine.cs (1)
67baseLineVersions[baseLinePackage.ItemSpec] = versions = new SortedSet<Version>();
ApplyMetaPackages.cs (1)
108metaPackagesToAdd[metaPackage] = metaPackageFrameworks = new HashSet<NuGetFramework>();
ApplyPreReleaseSuffix.cs (1)
130_stablePackageVersions[stablePackageId] = newVersion;
GeneratePackageReport.cs (3)
148report.Targets[target] = reportTarget; 303packageItems[packageId] = new List<PackageItem>(); 328_targetPathToPackageItem[packageSpecificTargetPath] = packageItem;
GenerateRuntimeDependencies.cs (1)
86packageAliases[alias] = dependency.ItemSpec;
GetApplicableAssetsFromPackages.cs (2)
163_packageToPackageItems[packageItem.Package] = new List<PackageItem>(); 187_targetPathToPackageItem[packageSpecificTargetPath] = packageFile;
GetLastStablePackage.cs (3)
89latestPackages[packageId] = nuGetVersion?.Version; 90originalItems[packageId] = latestPackage; 121lastStablePackages[packageId] = stableVersion;
GetPackageDescription.cs (2)
68s_descriptionCache[descriptionPath] = descriptionTable; 98descriptions[metadata.Name] = FormatDescription(metadata, descriptionPath);
NuGetAssetResolver.cs (1)
179_packages[packageId] = new ContentItemCollection();
NugetPropertyStringProvider.cs (1)
23propertyDictionary[property.Item1] = property.Item2;
SplitReferences.cs (2)
115collection[item.ItemSpec] = item; 120collection[item.ItemSpec] = item;
ValidatePackage.cs (4)
336implementationFiles[fileName] = implementationAssembly; 485_frameworks[fx] = new ValidationFramework(fx); 594_frameworks[inboxPair.Key] = new ValidationFramework(inboxPair.Key) 631_frameworks[framework] = new ValidationFramework(framework)
ValidationTask.cs (1)
141_suppressions[key] = values;
Microsoft.DotNet.Build.Tasks.Templating (1)
MSBuildListSplitter.cs (1)
37values[key] = value;
Microsoft.DotNet.Build.Tasks.Workloads (30)
CreateVisualStudioWorkload.wix.cs (7)
157_supportsMachineArch[manifestPackage.SdkFeatureBand] = manifestPackage.SupportsMachineArch; 171manifestMsisByPlatform[platform] = manifestMsi; 250buildData[sourcePackage] = new BuildData(WorkloadPackPackage.Create(pack, sourcePackage, platforms, PackageRootDirectory, 261buildData[sourcePackage].FeatureBands[platform] = new(); 268packsInWorkloadByPlatform[platform] = new(); 294packGroupPackages[uniquePackGroupKey] = groupPackage; 299groupPackage.ManifestsPerPlatform[platform] = new();
Msi\MsiBase.wix.cs (3)
243NuGetPackageFiles[msi.GetMetadata(Workloads.Metadata.FullPath)] = @"\data"; 247NuGetPackageFiles[Path.GetFullPath(msiJsonPath)] = "\\data\\msi.json"; 249NuGetPackageFiles["LICENSE.TXT"] = @"\";
Msi\MsiPayloadPackageProject.wix.cs (6)
42ReplacementTokens[PayloadPackageTokens.__AUTHORS__] = package.Authors; 43ReplacementTokens[PayloadPackageTokens.__COPYRIGHT__] = package.Copyright; 44ReplacementTokens[PayloadPackageTokens.__DESCRIPTION__] = package.Description; 45ReplacementTokens[PayloadPackageTokens.__PACKAGE_ID__] = $"{package.Id}.Msi.{platform}"; 46ReplacementTokens[PayloadPackageTokens.__PACKAGE_PROJECT_URL__] = package.ProjectUrl; 47ReplacementTokens[PayloadPackageTokens.__PACKAGE_VERSION__] = $"{package.PackageVersion}";
Msi\WorkloadManifestMsi.wix.cs (2)
68NuGetPackageFiles[file] = @"\data\extractedManifest\" + Path.GetFileName(file); 101NuGetPackageFiles[jsonFullPath] = @"\data\extractedManifest\" + Path.GetFileName(jsonFullPath);
Msi\WorkloadPackGroupMsi.wix.cs (1)
70sourceDirectoryNamesAndValues[heat.SourceVariableName] = heat.SourceDirectory;
Swix\ComponentSwixProject.cs (6)
42ReplacementTokens[SwixTokens.__VS_COMPONENT_TITLE__] = component.Title; 43ReplacementTokens[SwixTokens.__VS_COMPONENT_DESCRIPTION__] = component.Description; 44ReplacementTokens[SwixTokens.__VS_COMPONENT_CATEGORY__] = component.Category; 45ReplacementTokens[SwixTokens.__VS_IS_UI_GROUP__] = component.IsUiGroup ? "yes" : "no"; 46ReplacementTokens[SwixTokens.__VS_PACKAGE_OUT_OF_SUPPORT__] = OutOfSupport ? "yes" : "no"; 47ReplacementTokens[SwixTokens.__VS_IS_ADVERTISED_PACKAGE__] = component.Advertise ? "yes" : "no";
Swix\MsiSwixProject.wix.cs (1)
92ReplacementTokens[SwixTokens.__VS_PAYLOAD_SOURCE__] = msi.GetMetadata(Metadata.FullPath);
Swix\SwixProjectBase.cs (4)
66ReplacementTokens[SwixTokens.__VS_PACKAGE_NAME__] = Id; 67ReplacementTokens[SwixTokens.__VS_PACKAGE_VERSION__] = $"{Version}"; 77ReplacementTokens[SwixTokens.__VS_PACKAGE_NAME__] = Id; 78ReplacementTokens[SwixTokens.__VS_PACKAGE_VERSION__] = $"{Version}";
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
86parsedPinvokes[splitCount[1]] = splitCount[0];
Microsoft.DotNet.GenFacades (1)
GenPartialFacadeSourceGenerator.cs (1)
84dictionary[key] = value;
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
119_properties[key] = value;
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
107map[partUri] = ReplacementFiles[i];
Microsoft.DotNet.Open.Api.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
Microsoft.DotNet.PackageTesting (4)
VerifyClosure.cs (3)
122assemblies[assemblyInfo.Name] = assemblyInfo; 147ignoredReferences[name] = version; 314suspectCycles[suspectAssembly] = cycle;
VerifyTypes.cs (1)
120assemblies[assemblyInfo.Name] = assemblyInfo;
Microsoft.DotNet.SharedFramework.Sdk (8)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (3)
122assemblies[assemblyInfo.Name] = assemblyInfo; 147ignoredReferences[name] = version; 314suspectCycles[suspectAssembly] = cycle;
src\Microsoft.DotNet.PackageTesting\VerifyTypes.cs (1)
120assemblies[assemblyInfo.Name] = assemblyInfo;
src\ValidateFileVersions.cs (4)
42fileVersions[fileName] = current; 49fileVersions[fileName] = current; 60fileVersions[fileName] = current; 66fileVersions[fileName] = current;
Microsoft.DotNet.SignCheckLibrary (6)
Verification\ArchiveVerifier.cs (1)
57archiveMap[archiveEntry.FullName] = aliasFullName;
Verification\Jar\JarAttributes.cs (1)
73jarAttributes[attributeName] = attributeValue;
Verification\MsiVerifier.cs (1)
39originalFiles[key] = installPackage.Files[key].TargetPath;
Verification\SignatureVerificationResult.cs (3)
214Detail[key] = detail; 218Detail[key] = String.Join(", ", currentValue, detail); 223Detail[key] = detail;
Microsoft.DotNet.SignTool (7)
src\Configuration.cs (7)
158_whichPackagesTheFileIsIn[fileUniqueKey] = packages; 225_zipDataMap[fileSignInfo.FileContentKey] = zipData; 233_zipDataMap[fileSignInfo.FileContentKey] = msiData; 250_filesByContentKey[fileSignInfo.FileContentKey] = fileSignInfo; 324_hashToCollisionIdMap[signedFileContentKey] = collisionPriorityId; 526_errors[code] = filesErrored; 699_whichPackagesTheFileIsIn[fileUniqueKey] = packages;
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
232packageOrigin[id] = origin;
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (6)
Modeler\EnumOpenApiExtension.cs (1)
24set => _value["name"] = new OpenApiString(value);
Modeler\PaginatedOpenApiExtension.cs (2)
24set => _value["page"] = new OpenApiString(value); 30set => _value["pageSize"] = new OpenApiString(value);
Modeler\ServiceClientModelFactory.cs (2)
375_enumTypeModels[enumName] = value = new EnumTypeModel( 411return _types[id] = CreateTypeModel(id, schema);
ServiceClientCodeFactory.cs (1)
57_files[filePath] = new CodeFile(filePath, file.Contents + writer);
Microsoft.DotNet.VersionTools (5)
Automation\VersionsRepoUpdater.cs (1)
69packages[package.Key] = package.Value;
BuildInfo.cs (1)
187packages[id] = version;
BuildManifest\Model\EndpointModel.cs (3)
28set { Attributes[nameof(Id)] = value; } 34set { Attributes[nameof(Type)] = value; } 40set { Attributes[nameof(Url)] = value; }
Microsoft.DotNet.VersionTools.Tasks (1)
BaseDependenciesTask.cs (1)
236DependencyInfoConfigItems[dependencyInfo] = info;
Microsoft.Extensions.ApiDescription.Client.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
Microsoft.Extensions.Caching.Hybrid.Tests (1)
StampedeTests.cs (1)
385counts[obj] = count + 1;
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
278_properties[key] = value;
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationProvider.cs (1)
128data[key] = value;
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
120data[normalizedKey.Substring(_normalizedPrefix.Length)] = value;
Microsoft.Extensions.Configuration.Ini (1)
IniStreamConfigurationProvider.cs (1)
81data[key] = value;
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationFileParser.cs (2)
77_data[_paths.Peek()] = null; 105_data[key] = value.ToString();
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\CallSiteChain.cs (1)
35_callSiteChain[serviceIdentifier] = new ChainItemInfo(_callSiteChain.Count, implementationType);
ServiceLookup\CallSiteFactory.cs (1)
85_descriptorLookup[cacheKey] = cacheItem.Add(descriptor);
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
863_stringPool[s] = s;
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
65entries[registration.Name] = tasks[index++].Result;
Microsoft.Extensions.FileSystemGlobbing (1)
InMemoryDirectoryInfo.cs (1)
105dict[name] = new List<string> { file };
Microsoft.Extensions.Http (1)
DependencyInjection\HttpClientBuilderExtensions.cs (1)
677registry.NamedClientRegistrations[name] = type;
Microsoft.Extensions.Identity.Core (2)
IdentityBuilder.cs (1)
161options.Tokens.ProviderMap[providerName] = new TokenProviderDescriptor(provider);
UserManager.cs (1)
1602_tokenProviders[providerName] = provider;
Microsoft.Extensions.Logging.Generators (3)
LoggerMessageGenerator.Parser.cs (3)
581methods[lm.Name] = currentCount + 1; 586methods[lm.Name] = 1; //start from 1 777templateMap[templateName] = templateName;
Microsoft.Extensions.ObjectPool.Microbenchmark (2)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (2)
36ConfigTypes[NamedConfiguration.Default] = configType; 41ConfigTypes[NamedConfiguration.Validation] = validationConfigType;
Microsoft.Extensions.Options.SourceGeneration (2)
OptionsSourceGenContext.cs (1)
40AttributesToGenerate[attributeName] = value;
Parser.cs (1)
724_synthesizedValidators[mt] = result;
Microsoft.Extensions.SecretManager.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (2)
53_files[name] = contents; 62_files[name] = streamReader.ReadToEnd();
Microsoft.Interop.ComInterfaceGenerator (4)
ComInterfaceContext.cs (3)
55nameToContextCache[iface.ThisInterfaceKey] = baselessCtx; 73nameToContextCache[iface.ThisInterfaceKey] = diagnostic; 79nameToContextCache[iface.ThisInterfaceKey] = ctx;
ComMethodContext.cs (1)
207allMethodsCache[iface] = imm;
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
49uniqueMarshallersToFix[uniqueMarshallerFixKey] = membersToAdd = new HashSet<string>(); 81partiallyUpdatedSymbols[marshallerType] = newMarshallerType;
Microsoft.NET.Sdk.WebAssembly.Pack.Tasks (2)
GenerateWasmBootJson.cs (2)
311resourceData.extensions[extensionName] = resourceList; 397result.extensions[key] = config;
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
107_internCallCountsByString[internedString] = priorCount + 1;
Microsoft.NET.StringTools.net35 (2)
WeakStringCache.Locking.cs (1)
71_stringsByHashCode[hashCode] = handle;
WeakStringCacheInterner.cs (1)
107_internCallCountsByString[internedString] = priorCount + 1;
MonoAOTCompiler (2)
MonoAOTCompiler.cs (2)
574_propertiesTable.Table[nameof(CollectTrimmingEligibleMethods)] = CollectTrimmingEligibleMethods.ToString(); 1241_symbolNameFixups[name] = fixedName;
MonoTargetsTasks (2)
ILStrip\ILStrip.cs (2)
255methodBodyUses[rva]++; 272methodBodyUses[rva2Trim]--;
MSBuild (12)
CommunicationsUtilities.cs (1)
372table[key] = value;
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
NodePacketFactory.cs (1)
36_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
TaskHostConfiguration.cs (1)
204_taskParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskHostTaskComplete.cs (1)
123_taskOutputParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskParameter.cs (2)
463escapedGenericWrappedMetadata[entry.Key] = entry.Value == null ? entry.Value : EscapingUtilities.Escape(entry.Value); 870_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
TerminalLogger\TerminalLogger.cs (1)
484_projects[c] = new(targetFramework, CreateStopwatch?.Invoke());
TypeLoader.cs (1)
203assembliesDictionary[Path.GetFileName(runtimeAssembly)] = runtimeAssembly;
XMake.cs (3)
1811restoreGlobalProperties[MSBuildConstants.MSBuildRestoreSessionId] = Guid.NewGuid().ToString("D"); 1814restoreGlobalProperties[MSBuildConstants.MSBuildIsRestoring] = bool.TrueString; 3735properties[parameterSections[0]] = parameterSections[1];
MSBuildTaskHost (11)
BinaryTranslator.cs (1)
661dictionary[key] = value;
BuildExceptionSerializationHelper.cs (1)
62exceptionFactories[key] = exceptionFactory;
CommunicationsUtilities.cs (1)
372table[key] = value;
EscapingUtilities.cs (1)
204s_unescapedToEscapedStrings[unescapedString] = escapedString;
Immutable\ImmutableDictionary.cs (2)
138clone._backing[key] = value; 148clone._backing[item.Key] = item.Value;
NodePacketFactory.cs (1)
36_packetFactories[packetType] = new PacketFactoryRecord(handler, factory);
TaskHostConfiguration.cs (1)
204_taskParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskHostTaskComplete.cs (1)
123_taskOutputParameters[parameter.Key] = new TaskParameter(parameter.Value);
TaskParameter.cs (2)
463escapedGenericWrappedMetadata[entry.Key] = entry.Value == null ? entry.Value : EscapingUtilities.Escape(entry.Value); 870_customEscapedMetadata[metadataName] = metadataValue ?? String.Empty;
PresentationBuildTasks (12)
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
90s_switchMap[switchName] = initialValue;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
406_compatTable[oldXmlns] = newXmlns; 407_compatTableReverse[newXmlns] = oldXmlns;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (9)
63_namespaceMap[xmlNamespace] = xmlNamespace; 93_namespaceMap[xmlNamespace] = xmlNamespace; 150_namespaceMap[key] = newNamespace; 155_namespaceMap[oldNamespace] = newNamespace; 825_namespaceMap[namespaceName] = namespaceName; 854_namespaceMap[namespaceName] = null; 885_subsumingNamespaces[namespaceName] = null; 912_knownNamespaces[namespaceName] = null; 1815_ignorables[namespaceName] = null; // we don't care about value, just key
PresentationCore (75)
MS\Internal\Automation\EventMap.cs (1)
156_eventsTable[idEvent] = new EventInfo();
MS\Internal\DeferredElementTreeState.cs (2)
19_oldCoreParents[element] = parent; 80_oldLogicalParents[element] = parent;
MS\Internal\FontCache\FontResourceCache.cs (2)
141folderResourceMap[folderName] = new List<string>(1); 145folderResourceMap[resourceFullName] = new List<string>(1);
MS\Internal\FontFace\CompositeFontInfo.cs (1)
193_familyMapRangesByLanguage[matchingLanguage] = ranges;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
878adjInformation[edge] = edgeInfo;
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
90s_switchMap[switchName] = initialValue;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (1)
120_nodeLookup[key] = node;
System\Windows\Input\ManipulationDevice.cs (1)
97_manipulationDevices[element] = device;
System\Windows\Input\ManipulationLogic.cs (1)
561_currentManipulators[id] = new Manipulator2D(id, (float)position.X, (float)position.Y);
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
426_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale] = hwndSource.CompositionTarget.TransformToDevice;
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceCollection.cs (1)
136_tabletDeviceMap[tablet.Device] = tablet;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (5)
203_coalescedMoves[stylusDevice] = inputReport; 230_coalescedMoves[stylusDevice] = coalescedMove; 247_lastMovesQueued[stylusDevice] = coalescedMove; 3018__stylusDeviceMap[stylusDeviceId] = stylusDevice; 3149__penContextsMap[inputSource] = penContexts;
System\Windows\Media\FontEmbeddingManager.cs (2)
85glyphSet = _collectedGlyphTypefaces[glyphTypeface] = new Dictionary<ushort, bool>(); 89glyphSet[glyphIndex] = true;
System\Windows\Media\Knowncolors.cs (2)
179s_knownArgbColors[aRGBString] = colorValue; 219s_solidColorBrushCache[argb] = scp;
System\Windows\Media\SolidColorBrush.cs (2)
309fwdDictionary[key] = value; 315revDictionary[value] = keys;
System\Windows\Media\textformatting\TextFormatterContext.cs (43)
438dict[contextInfo.wchHyphen] = true; 439dict[contextInfo.wchTab] = true; 440dict[contextInfo.wchPosTab] = true; 441dict[contextInfo.wchEndPara1] = true; 442dict[contextInfo.wchEndPara2] = true; 443dict[contextInfo.wchAltEndPara] = true; 444dict[contextInfo.wchEndLineInPara] = true; 445dict[contextInfo.wchColumnBreak] = true; 446dict[contextInfo.wchSectionBreak] = true; 447dict[contextInfo.wchPageBreak] = true; 448dict[contextInfo.wchNonBreakSpace] = true; 449dict[contextInfo.wchNonBreakHyphen] = true; 450dict[contextInfo.wchNonReqHyphen] = true; 451dict[contextInfo.wchEmDash] = true; 452dict[contextInfo.wchEnDash] = true; 453dict[contextInfo.wchEmSpace] = true; 454dict[contextInfo.wchEnSpace] = true; 455dict[contextInfo.wchNarrowSpace] = true; 456dict[contextInfo.wchOptBreak] = true; 457dict[contextInfo.wchNoBreak] = true; 458dict[contextInfo.wchFESpace] = true; 459dict[contextInfo.wchJoiner] = true; 460dict[contextInfo.wchNonJoiner] = true; 461dict[contextInfo.wchToReplace] = true; 462dict[contextInfo.wchReplace] = true; 463dict[contextInfo.wchVisiNull] = true; 464dict[contextInfo.wchVisiAltEndPara] = true; 465dict[contextInfo.wchVisiEndLineInPara] = true; 466dict[contextInfo.wchVisiEndPara] = true; 467dict[contextInfo.wchVisiSpace] = true; 468dict[contextInfo.wchVisiNonBreakSpace] = true; 469dict[contextInfo.wchVisiNonBreakHyphen] = true; 470dict[contextInfo.wchVisiNonReqHyphen] = true; 471dict[contextInfo.wchVisiTab] = true; 472dict[contextInfo.wchVisiPosTab] = true; 473dict[contextInfo.wchVisiEmSpace] = true; 474dict[contextInfo.wchVisiEnSpace] = true; 475dict[contextInfo.wchVisiNarrowSpace] = true; 476dict[contextInfo.wchVisiOptBreak] = true; 477dict[contextInfo.wchVisiNoBreak] = true; 478dict[contextInfo.wchVisiFESpace] = true; 479dict[contextInfo.wchEscAnmRun] = true; 480dict[contextInfo.wchPad] = true;
System\Windows\Media\UniqueEventHelper.cs (2)
99delegates[handler] = refCount + 1; 125delegates[handler] = refCount - 1;
System\Windows\Media\Visual.cs (6)
856channelsToCyclicBrushMap[channel] = 1; 862channelsToCyclicBrushMap[channel] += 1; 882cyclicBrushToChannelsMap[cyclicBrush] = 1; 888cyclicBrushToChannelsMap[cyclicBrush] += 1; 927cyclicBrushToChannelsMap[cyclicBrush] = 938channelsToCyclicBrushMap[channel] =
PresentationFramework (57)
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (1)
280_attachedAnnotations[attachedAnnotation] = currentList;
MS\Internal\Annotations\ObservableDictionary.cs (1)
260_nameValues[key] = value;
MS\Internal\Annotations\XmlElementCollection.cs (3)
155_xmlDocsRefCounts[element.OwnerDocument]--; 186_xmlDocsRefCounts[element.OwnerDocument] = 1; 195_xmlDocsRefCounts[element.OwnerDocument]++;
MS\Internal\AppModel\MimeObjectFactory.cs (1)
60_objectConvertersCore[contentType] = method;
MS\Internal\AppModel\ResourceContainer.cs (1)
358_registeredResourceManagers[key.ToLowerInvariant()] = rmwResult;
MS\Internal\Data\AccessorTable.cs (1)
96_table[new AccessorTableKey(sourceValueType, type, name)] = value;
MS\Internal\Data\LiveShapingList.cs (2)
726this[path] = dp; 743this[path] = dp;
MS\Internal\Globalization\BamlTreeMap.cs (3)
472_classAttributeTable[className] = loc; 501_propertyAttributeTable[fullName] = loc; 529_classAttributeTable[className] = new ElementLocalizability(formattingTag, null);
MS\Internal\Interop\InternalDispatchObject.cs (1)
68_dispId2MethodMap[dispid] = method;
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
126_cache[fileName] = module;
src\Microsoft.DotNet.Wpf\src\Common\src\System\LocalAppContext.cs (1)
90s_switchMap[switchName] = initialValue;
System\Windows\Controls\DataGrid.cs (1)
8285dataGridStringBuilders[format] = new StringBuilder();
System\Windows\Controls\DataGridColumnCollection.cs (1)
1477_originalWidthsForResize[column] = column.Width;
System\Windows\Controls\DataGridHelper.cs (2)
432transferEnabledMap[p] = true; 434transferEnabledMap[p] = false;
System\Windows\Controls\DataGridItemAttachedStorage.cs (2)
20map[property] = value; 75_itemStorageMap[item] = map;
System\Windows\Data\BindingGroup.cs (1)
1150_notifyDataErrors[itemWR] = itemErrors;
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (1)
462_resultCache[wrKey] = new WeakReference<ResourceDictionary>(result.Dictionary);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
74_instances[language] = new SpellCheckerCreationHelper(language);
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (2)
193_instanceInfo.NumCallsMeasured[_action]++; 194_instanceInfo.CumulativeCallTime100Ns[_action] += ticks;
System\Windows\Documents\WinRTSpellerInterop.cs (4)
307_spellCheckers[culture] = null; 337_spellCheckers[culture] = null; 341_spellCheckers[culture] = new Tuple<WordsSegmenter, SpellChecker>(wordBreaker, spellChecker); 475_customDictionaryFiles[ietfLanguageTag] = new List<string>();
System\Windows\Interop\DynamicScriptObject.cs (1)
553_dispIdCache[memberName] = dispid;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
1594_enumTypeConverterMap[propertyType] = converter; 1603_typeConverterMap[typeConverterId] = converter;
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
442_bamlXmlnsMappings[xmlns] = assemblies;
System\Windows\Markup\BamlReader.cs (1)
2678_reverseXmlnsTable[fullName] = list;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
713_keyTypeMap[type] = result;
System\Windows\Markup\Primitives\MarkupWriter.cs (10)
596writtenAttributes[property.Name] = property.Name; 711writtenAttributes[property.Name] = property.Name; 821writtenAttributes[contentProperty.Name] = contentProperty.Name; 834writtenAttributes[property.Name] = property.Name; 1398_uriToPrefix[uri] = prefix; 1399_prefixToUri[prefix] = uri; 1567DefaultPrefixes[prefix.XmlNamespace] = prefix.Prefix; 1570XmlnsDefinitions[assembly] = namespaceToUri; 1593namespaceToUri[definition.ClrNamespace] = definition.XmlNamespace; 1602assembliesNamespacetoUri[definition.ClrNamespace] = definition.XmlNamespace;
System\Windows\Markup\RoutedEventValueSerializer.cs (1)
49initializedTypes[currentType] = currentType;
System\Windows\Markup\XamlTypeMapper.cs (1)
178_piReverseTable[fullName] = xmlNamespace;
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
207_piNamespaces[xamlNamespace] = clrNs;
System\Windows\Markup\XmlnsCache.cs (2)
406_compatTable[oldXmlns] = newXmlns; 407_compatTableReverse[newXmlns] = oldXmlns;
System\Windows\Shell\JumpList.cs (1)
237s_applicationMap[application] = value;
System\Windows\SystemResources.cs (3)
1142_hwndNotify[hwndDpiInfo] = new SecurityCriticalDataClass<HwndWrapper>(hwndNotify); 1144_hwndNotifyHook[hwndDpiInfo] = new HwndWrapperHook(SystemThemeFilterMessage); 1158_hwndNotifyHook[hwndDpiInfo] = null;
System\Windows\VisualStateManager.cs (1)
709result[new TimelineDataToken(child)] = child;
PresentationUI (1)
MS\Internal\Documents\RightsManagementProvider.cs (1)
696rights[rmLicense.LicensedUser] = rmLicense;
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
45_content[subpath] = new TestFileInfo(content);
ReachFramework (37)
packaging\XpsDigitalSignature.cs (3)
328hashTable[uri] = uri; 391uriHashTable[selector.SourceUri] = relHash; 396relHash[selector.SelectionCriteria] = 0;
Packaging\XpsDocument.cs (1)
761dependentList[_thumbnail.Uri] = _thumbnail.Uri;
Packaging\XpsFixedDocumentReaderWriter.cs (3)
717dependentList[Uri] = Uri; 738dependentList[signatureDefinitionPart.Uri] = signatureDefinitionPart.Uri; 838dependents[_documentStructure.Uri] = _documentStructure.Uri;
Packaging\XpsFixedDocumentSequenceReaderWriter.cs (1)
449dependentList[Uri] = Uri;
Packaging\XpsFixedPageReaderWriter.cs (19)
831_resourceCache[xpsResource.Uri] = xpsResource; 1370dependentList[Uri] = Uri; 1422dependents[uri] = uri; 1429dependents[uri] = uri; 1436dependents[uri] = uri; 1443dependents[uri] = uri; 1451dependents[uri] = uri; 1456dependents[_storyFragment.Uri] = _storyFragment.Uri; 1466dependents[_thumbnail.Uri] = _thumbnail.Uri; 1531restictedFontRels[absUri] = rel; 1547_imageCache[absUri] = image; 1557_fontCache[absUri] = font; 1570_colorContextCache[absUri] = colorContext; 1579_resourceDictionaryCache[absUri] = resourceDictionary; 1599_resourceCache[absUri] = xpsResource; 1648_imageCache[xpsImage.Uri] = xpsImage; 1689_fontCache[xpsFont.Uri] = xpsFont; 1761_colorContextCache[xpsColorContext.Uri] = xpsColorContext; 1799_resourceDictionaryCache[xpsResourceDictionary.Uri] = xpsResourceDictionary;
Packaging\XpsManager.cs (10)
335_cachedParts[partUri] = metroPart; 421_cachedParts[partUri] = metroPart; 558_cachedParts[uri] = part; 790dependents[propertiesPart.Uri] = propertiesPart.Uri; 1119_contentTypes[pageContentKey] = 1; 1169_contentTypes[contentKey] = counter; 1249_contentTypes[key] = 1; 1278_packageCache[uri] = 1; 1289_packageCache[uri] = _packageCache[uri]+1; 1306_packageCache[uri] = reference;
SocialWeather (2)
FormatterResolver.cs (2)
24typeFormatters = _formatters[formatType] = new Dictionary<Type, Type>(); 26typeFormatters[typeof(T)] = typeof(TFormatterType);
Swaggatherer (1)
Template.cs (1)
35templatesVisited[template] = visitedTemplateInfo;
System.CodeDom (4)
System\CodeDom\CodeNamespaceImportCollection.cs (2)
34_keys[value.Namespace] = value; 63_keys[c.Namespace] = c;
System\CodeDom\Compiler\CodeDomProvider.cs (2)
41s_compilerLanguages[language] = compilerInfo; 46s_compilerExtensions[extension] = compilerInfo;
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenDictionary.cs (1)
96newDictionary[pair.Key] = pair.Value;
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\UIHintAttribute.cs (1)
200controlParameters[keyString] = value;
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
219propertyStoreItems[property.Name] = item;
System.ComponentModel.Composition (22)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (4)
506metadata[CompositionConstants.GenericImportParametersOrderMetadataName] = GenericServices.GetGenericParametersOrder(type); 510metadata[CompositionConstants.GenericContractMetadataName] = ContractNameServices.GetTypeIdentity(type.GetGenericTypeDefinition()); 511metadata[CompositionConstants.GenericParametersMetadataName] = type.GetGenericArguments(); 519metadata[CompositionConstants.ImportSourceMetadataName] = attributedImport.Source;
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (2)
106_importCache[import] = exports; 175_importedDisposableExports[import] = disposableExports;
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (11)
186specializedPartMembers[closedGenericPartType.MetadataToken] = closedGenericPartType; 189specializedPartMembers[method.MetadataToken] = method; 194specializedPartMembers[field.MetadataToken] = field; 199specializedPartMembers[iface.MetadataToken] = iface; 204specializedPartMembers[type.MetadataToken] = type; 211specializedPartMembers[baseType.MetadataToken] = baseType; 235membersTable[lazyMemberInfo] = accessors; 251parametersTable[lazyParameter] = constructorParameters[lazyParameter.Value.Position]; 446metadata[CompositionConstants.GenericContractMetadataName] = GenericServices.GetGenericName(originalImport.ContractName, importParametersOrder, _specialization.Length); 447metadata[CompositionConstants.GenericParametersMetadataName] = GenericServices.Reorder(_specialization, importParametersOrder); 465metadata[CompositionConstants.ExportTypeIdentityMetadataName] = Translate(exportTypeIdentity, originalExport.Metadata.GetValue<int[]>(CompositionConstants.GenericExportParametersOrderMetadataName));
System\ComponentModel\Composition\ReflectionModel\PartCreatorExportDefinition.cs (2)
36metadata[CompositionConstants.ExportTypeIdentityMetadataName] = CompositionConstants.PartCreatorTypeIdentity; 37metadata[CompositionConstants.ProductDefinitionMetadataName] = _productDefinition;
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (3)
247ImportValues[item.Definition] = value; 575_exportsCache[exportIndex] = result; 589ImportsCache[definition] = result;
System.ComponentModel.TypeConverter (15)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
29dictionary[prop.Name] = (Color)prop.GetValue(null, null)!;
System\ComponentModel\AttributeCollection.cs (1)
283s_defaultAttributes[attributeType] = attr;
System\ComponentModel\ComponentResourceManager.cs (2)
111_resourceSets[culture] = resources; 119_resourceSets[culture] = resources;
System\ComponentModel\Design\Serialization\MemberRelationshipService.cs (1)
116_relationships[new RelationshipEntry(source)] = new RelationshipEntry(relationship);
System\ComponentModel\Design\ServiceContainer.cs (3)
93Services[serviceType] = serviceInstance; 130Services[serviceType] = callback; 201Services[serviceType!] = service;
System\ComponentModel\LicenseManager.LicenseInteropHelper.cs (1)
75_savedLicenseKeys[type.AssemblyQualifiedName!] = key;
System\ComponentModel\PropertyDescriptor.cs (2)
171_valueChangedHandlers[component] = (EventHandler?)Delegate.Combine(h, handler); 440_valueChangedHandlers[component] = h;
System\ComponentModel\ReflectTypeDescriptionProvider.cs (3)
963_typeData[type] = td; 1013_typeData[componentType] = td; 1038_typeData[type] = td;
System\ComponentModel\TypeDescriptor.cs (1)
388s_defaultProviderInitialized[type] = s_initializedDefaultProvider;
System.Console (2)
System\TerminalFormatStrings.cs (2)
234KeyFormatToConsoleKey[keyFormat] = new ConsoleKeyInfo(key == ConsoleKey.Enter ? '\r' : '\0', key, shift, alt, control); 253KeyFormatToConsoleKey[keyFormat] = new ConsoleKeyInfo('\0', key, shift, alt, control);
System.Data.Common (5)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
486parsetable[realkeyname] = keyvalue!; // last key-value pair wins (or first) 583parsetable[realkeyname] = keyvalue; // last key-value pair wins (or first)
System\Data\Common\AdapterUtil.Common.cs (1)
796hash[columnName] = i;
System\Data\Common\DbConnectionStringBuilder.cs (1)
103CurrentValues[keyword] = keyvalue;
System\Data\DataView.cs (1)
931_findIndexes[column] = findIndex;
System.Data.Odbc (5)
Common\System\Data\Common\DBConnectionString.cs (2)
102_parsetable[KEY.Password] = star; 106_parsetable[KEY.Pwd] = star;
src\libraries\Common\src\System\Data\Common\BasicFieldNameLookup.cs (1)
136hash[fieldName] = i;
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (2)
486parsetable[realkeyname] = keyvalue!; // last key-value pair wins (or first) 583parsetable[realkeyname] = keyvalue; // last key-value pair wins (or first)
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
1064_customProperties[propertyName] = propertyValue!;
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
20set => _contents[key] = value;
System.Drawing.Primitives (1)
src\libraries\Common\src\System\Drawing\ColorTable.cs (1)
29dictionary[prop.Name] = (Color)prop.GetValue(null, null)!;
System.Formats.Tar (9)
System\Formats\Tar\PaxTarEntry.cs (4)
125_header.ExtendedAttributes[TarHeader.PaxEaATime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.AccessTime); 126_header.ExtendedAttributes[TarHeader.PaxEaCTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(gnuOther.ChangeTime); 171_header.ExtendedAttributes[TarHeader.PaxEaATime] = secondsFromEpochString; 176_header.ExtendedAttributes[TarHeader.PaxEaCTime] = secondsFromEpochString;
System\Formats\Tar\TarHeader.Write.cs (5)
907ExtendedAttributes[PaxEaName] = _name; 908ExtendedAttributes[PaxEaMTime] = TarHelpers.GetTimestampStringFromDateTimeOffset(_mTime); 916ExtendedAttributes[PaxEaLinkName] = _linkName; 921ExtendedAttributes[PaxEaSize] = _size.ToString(); 937extendedAttributes[key] = value;
System.IO.Packaging (10)
System\IO\Packaging\PartBasedPackageProperties.cs (1)
400_propertyDictionary[propertyenum] = value;
System\IO\Packaging\XmlCompatibilityReader.cs (9)
39_namespaceMap[xmlNamespace] = xmlNamespace; 69_namespaceMap[xmlNamespace] = xmlNamespace; 125_namespaceMap[key] = newNamespace; 130_namespaceMap[oldNamespace] = newNamespace; 762_namespaceMap[namespaceName] = namespaceName; 791_namespaceMap[namespaceName] = null!; 821_subsumingNamespaces[namespaceName] = null; 847_knownNamespaces[namespaceName] = null; 1648_ignorables[namespaceName] = null; // we don't care about value, just key
System.Linq.Expressions (19)
System\Dynamic\ExpandoClass.cs (1)
96_transitions[hashCode] = infos = new List<WeakReference>();
System\Dynamic\Utils\Helpers.cs (1)
38dict[key] = count + 1;
System\Linq\Expressions\Compiler\DelegateHelpers.Generated.cs (1)
79curTypeInfo.TypeChain[lookingUp] = nextTypeInfo;
System\Linq\Expressions\Compiler\VariableBinder.cs (6)
87_scopes.Push(_tree.Scopes[node] = new CompilerScope(node, true)); 88_constants.Push(_tree.Constants[node] = new BoundConstants()); 103_scopes.Push(_tree.Scopes[node] = new CompilerScope(lambda, false)); 124_scopes.Push(_tree.Scopes[node] = new CompilerScope(node, false)); 138_scopes.Push(_tree.Scopes[node] = new CompilerScope(node, false)); 264definition.Definitions[node] = VariableStorageKind.Hoisted;
System\Linq\Expressions\Interpreter\LightCompiler.cs (4)
2780mapping[local] = ResolveLocal(local); 2860_definedParameters[param] = count + 1; 2864_definedParameters[param] = 1; 2880_definedParameters[param] = count - 1;
System\Linq\Expressions\Interpreter\LightLambda.cs (2)
109_tryStart[index] = count + 1; 115_handlerExit[index] = _handlerExit.TryGetValue(index, out count) ? count + 1 : 1;
System\Linq\Expressions\Interpreter\Utilities.cs (3)
288_dict[key] = value; 324_dict[_keysAndValues[i].Key] = _keysAndValues[i].Value; 328_dict[key] = value;
System\Runtime\CompilerServices\CallSiteBinder.cs (1)
216cache[typeof(T)] = ruleCache = new RuleCache<T>();
System.Linq.Parallel (5)
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
306leftLookup[wrappedLeftElement] = new Pair<TInputOutput, TLeftKey>(leftElement.First, leftKey);
System\Linq\Parallel\QueryOperators\Binary\IntersectQueryOperator.cs (1)
290_hashLookup[wrappedLeftElem] = new Pair<TInputOutput, TLeftKey>(leftElement.First, leftKey);
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (2)
360union[wrappedElem] = new Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(elem.First, key); 377union[wrappedElem] = new Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>>(elem.First, key);
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
252_hashLookup[wrappedElem] = orderKey;
System.Net.Http (2)
System\Net\Http\HttpRequestOptions.cs (2)
30Options[key] = value; 84Options[key.Key] = value;
System.Net.HttpListener (5)
System\Net\Managed\HttpEndPointListener.cs (1)
357p2[prefix] = listener;
System\Net\Managed\HttpEndPointManager.cs (2)
145s_ipEndPoints[addr] = p; 163p[port] = epl;
System\Net\Managed\HttpListener.Managed.cs (2)
176_connections[cnc] = cnc; 192_listenerContexts[context] = context;
System.Net.Mail (5)
System\Net\Mail\SmtpLoginAuthenticationModule.cs (1)
29_sessions[sessionCookie] = credential;
System\Net\Mail\SmtpNegotiateAuthenticationModule.cs (1)
42_sessions[sessionCookie] = clientContext =
System\Net\Mail\SmtpNtlmAuthenticationModule.cs (1)
30_sessions[sessionCookie] = clientContext =
System\Net\TrackingValidationObjectDictionary.cs (2)
77_internalObjects[key] = valueToAdd; 139_internalObjects[key] = value;
System.Net.NameResolution (1)
System\Net\Dns.cs (1)
702s_tasks[key] = task;
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
217dict[newKey] = item;
System.Private.CoreLib (41)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
352s_delegates[functionPtr] = d;
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (2)
69s_dataStore[name] = data; 140s_switches[switchName] = isEnabled;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
1247this[tempKey] = (TValue)value!;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
53m_subscriptions[eventListener] = new EventListenerSubscription(matchAnyKeywords, level);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventProvider.cs (1)
1365args[key] = value;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (8)
3605eventsByName[evtName] = evtName; 5200opcodeTab[value] = name; 5219taskTab[value] = name; 5242keywordTab[value] = name; 5267channelTab[value] = new ChannelInfo { Name = name, Keywords = kwd, Attribs = channelAttribute }; 5403perEventByteArrayArgIndices[eventName] = byteArrArgIndices; 5411stringTab[prefixedEventName] = msg; 5707stringTab[key] = value;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingTypeInfo.cs (1)
150cache[type] = instance;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (2)
486tempHashTable[hashName] = retVal; 714tempHashTable[hashName] = culture;
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureInfo.cs (3)
1044lcidTable[culture] = result; 1080nameTable[name] = result; 1123nameTable[nameAndAltName] = result;
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
989dictionary[key] = value;
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
308cache[key] = resEntry; 353caseInsensitiveTable[key] = resEntry;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PosixSignalRegistration.Unix.cs (1)
41s_registrations[signo] = tokens = new HashSet<Token>();
src\libraries\System.Private.CoreLib\src\System\Text\EncodingTable.cs (1)
153encodingInfoList[codePage] = new EncodingInfo(codePage, webNames[webNameIndices[i]..webNameIndices[i + 1]],
src\libraries\System.Private.CoreLib\src\System\Threading\AsyncLocal.cs (5)
458many[pair.Key] = pair.Value; 460many[key] = value; 496map[pair.Key] = pair.Value; 498map[key] = value; 532map[pair.Key] = pair.Value;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
197activeTasks[taskId] = task;
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
679nameToSlotMap[name] = slot;
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (1)
2042cachedData._timeZonesUsingAlternativeIds[id] = zone;
src\System\Attribute.CoreCLR.cs (2)
376types[attrType] = InternalGetAttributeUsage(attrType); 408types[attrType] = usage;
src\System\GC.CoreCLR.cs (3)
840configurationDictionary[nameAsString] = data; 846configurationDictionary[nameAsString] = dataAsString ?? string.Empty; 851configurationDictionary[nameAsString] = data != 0;
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
767_typeBuilderDict[name] = enumBuilder;
src\System\RuntimeType.CoreCLR.cs (2)
1215csEventInfos[name] = eventInfo; 1369csPropertyInfos[name] = cache;
System.Private.Xml (61)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
2469_namespaces[prefix] = decl; 2480_namespaces[decl.prefix] = decl.prevLink;
System\Xml\Core\QueryOutputWriter.cs (1)
65_lookupCDataElems[name] = 0;
System\Xml\Core\QueryOutputWriterV1.cs (1)
79_lookupCDataElems[name] = null;
System\Xml\Core\XmlTextWriter.cs (2)
1560_nsHashtable[prefix] = namespaceIndex; 1577_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex;
System\Xml\Core\XmlWellFormedWriter.cs (3)
1787_nsHashtable[prefix] = namespaceIndex; 1829_nsHashtable[_nsStack[i].prefix] = _nsStack[i].prevNsIndex; 2151_attrHashTable[localName] = 0; // overwrite on collision
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
355_mappings[uri] = data;
System\Xml\Schema\SchemaCollectionCompiler.cs (4)
283schemaInfo.TargetNamespaces[element!.QualifiedName.Namespace] = true; 289schemaInfo.TargetNamespaces[attribute!.QualifiedName.Namespace] = true; 295schemaInfo.TargetNamespaces[type!.QualifiedName.Namespace] = true; 304schemaInfo.TargetNamespaces[notation!.QualifiedName.Namespace] = true;
System\Xml\Schema\SchemaSetCompiler.cs (1)
147schemaInfo.TargetNamespaces[tns] = true;
System\Xml\Schema\XmlAtomicValue.cs (1)
72dict[prefix] = ns;
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
31_table[name] = value; //set new value 50_table[name] = value; //set new value
System\Xml\Serialization\CodeGenerator.cs (1)
1574_locals[key] = value;
System\Xml\Serialization\Compilation.cs (4)
442scopeTable[mapping.Scope!] = mapping; 516serializers[xmlMappings[i].Key!] = readerCodeGen.GenerateTypedSerializer(readMethodNames[i], writeMethodNames[i], xmlMappings[i], classes, baseSerializer, readerClass, writerClass); 727cache[key] = assembly; 733cache[key] = assembly;
System\Xml\Serialization\NameTable.cs (3)
63_table[new NameKey(qname.Name, qname.Namespace)] = value; 75_table[new NameKey(name, ns)] = value; 88_table[new NameKey(name, ns)] = value;
System\Xml\Serialization\Types.cs (4)
1118memberInfos[mappings[i].Name] = mappings[i].MemberInfo!; 1120memberInfos[mappings[i].ChoiceIdentifier!.MemberName!] = mappings[i].ChoiceIdentifier!.MemberInfo!; 1122memberInfos[$"{mappings[i].Name}Specified"] = mappings[i].CheckSpecifiedMemberInfo!; 1149memberInfos[pair.Key] = pair.Value;
System\Xml\Serialization\XmlSerializer.cs (1)
711typedMappingTable[mappingKey] = serializers[index]!;
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
77NamespacesInternal[prefix] = new XmlQualifiedName(prefix, ns);
System\Xml\XmlNamespacemanager.cs (5)
109_hashTable[_nsdecls[decl].prefix] = _nsdecls[decl].previousNsIndex; 171_hashTable[prefix] = _lastDecl; 181_hashTable[_nsdecls[i].prefix] = i; 215prefixes[_nsdecls[thisDecl].prefix] = _nsdecls[thisDecl].prefix; 259dict[prefix] = uri;
System\Xml\XPath\XPathNavigator.cs (2)
485dict["xml"] = XmlReservedNs.NsXml; 497dict[prefix] = ns;
System\Xml\Xsl\QIL\QilVisitor.cs (1)
460_visitedRef[input] = true;
System\Xml\Xsl\Runtime\XmlQueryOutput.cs (5)
451_usedPrefixes[prefix] = ns; 564_usedPrefixes[prefix] = ns; 738_usedPrefixes[prefix] = ns; 972_usedPrefixes[prefix] = ns; 1433_conflictPrefixes[ns] = genPrefix;
System\Xml\Xsl\Xslt\Compiler.cs (4)
98_moduleOrder[baseUri] = _moduleOrder.Count; 127NsAliases[ssheetNsUri] = new NsAlias(resultNsUri, resultPrefix, importPrecedence); 148this.AttributeSets[attSetName] = sheet.AttributeSets[attSetName]; 174AllGlobalVarPars[var.Name!] = var;
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
286list = FixedNamePatterns[qname] = new List<Pattern>();
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2641functionsForMode = sheet.ApplyFunctions[mode] = new List<QilFunction>();
System\Xml\Xsl\Xslt\Scripts.cs (1)
61set => _backingDictionary[key] = value;
System\Xml\Xsl\Xslt\Stylesheet.cs (2)
54matchesForMode = TemplateMatches[template.Mode] = new List<TemplateMatch>(); 116_compiler.NamedTemplates[template.Name] = template;
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (6)
80adjList = this[v1] = new List<V>(); 87this[v2] = null; 281parentModeFlags[modeFlag.Key] = modeFlags | modeFlag.Value; 295parentModeFlags[tmpl.Mode] = modeFlags | templateFlags; 369modePar = _applyTemplatesParams[mn] = AstFactory.WithParam(instr.Name!); 671par = _applyTemplatesParams[mn] = AstFactory.WithParam(node.Name!);
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
1074_curStylesheet.AttributeSets[setName] = set;
System.Reflection.DispatchProxy (7)
System\Reflection\DispatchProxyGenerator.cs (7)
154_baseTypeAndInterfaceToGeneratedProxyType[baseType] = interfaceToProxy; 160interfaceToProxy[interfaceType] = generatedProxy; 332propertyMap[pi.GetMethod] = ai; 334propertyMap[pi.SetMethod] = ai; 342eventMap[ei.AddMethod] = ai; 344eventMap[ei.RemoveMethod] = ai; 346eventMap[ei.RaiseMethod] = ai;
System.Reflection.Metadata (1)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
195table[tuple.Key] = tuple.Value;
System.Resources.Extensions (2)
src\libraries\System.Private.CoreLib\src\System\Resources\RuntimeResourceSet.cs (2)
308cache[key] = resEntry; 353caseInsensitiveTable[key] = resEntry;
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCache.cs (1)
869values[key] = value;
System\Runtime\Caching\MemoryCacheEntry.cs (1)
171_fields._dependents[dependent] = dependent;
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectWriter.cs (1)
996_assemblyToIdTable[assemblyString] = assemId;
System.Security.Claims (1)
System\Security\Claims\Claim.cs (1)
266_properties[propertyKey] = propertyValue!;
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
78_headerParameters[key] = value;
System.Text.Json (1)
System\Text\Json\JsonPropertyDictionary.cs (1)
252_propertyDictionary[propertyName] = value;
System.Text.Json.SourceGeneration (1)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
22dictionary[key] = value;
System.Text.RegularExpressions (7)
System\Text\RegularExpressions\Symbolic\BDD.cs (1)
212idmap[node] = i + 2;
System\Text\RegularExpressions\Symbolic\BDDRangeConverter.cs (1)
224_rangeCache[set] = ranges;
System\Text\RegularExpressions\Symbolic\CharSetSolver.cs (2)
211_operationCache[key] = result = GetOrCreateBDD(set.Ordinal, Not(set.One), Not(set.Zero)); 381cache[bdd] = result = GetOrCreateBDD(bdd.Ordinal, one, zero);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (1)
175result[key] = (matcher.Solver.Or(entry.Rule, matcher._minterms[i]), entry.NfaTargets);
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (1)
86builder._nodeCache[key] = node;
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
44catMap[c] = new Ranges();
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
1537usedNames[prefix] = count + 1;
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Generated\PropertyHelper.cs (2)
114transferEnabledMap[p] = true; 116transferEnabledMap[p] = false;
Microsoft\Windows\Controls\KeyTipService.cs (4)
307processedElements[element] = true; 349elementToScopeMap[element] = newScope; 351processedElements[element] = true; 929cultureCache[language] = culture;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (1)
186_childIndexToStarLayoutIndexMap[starChildIndex] = starLayoutIndex;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (5)
689contextualTabHeaders[contextualTabGroupHeader] = new List<RibbonTabHeaderAndIndex>(); 701ribbon.TabDisplayIndexToIndexMap[displayIndex] = i; 702ribbon.TabIndexToDisplayIndexMap[i] = displayIndex; 741ribbon.TabDisplayIndexToIndexMap[displayIndex] = headerAndIndex.Index; 742ribbon.TabIndexToDisplayIndexMap[headerAndIndex.Index] = displayIndex;
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
616this.manipulatorStates[initialState.Id] = initialState;
System.Xaml (17)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (9)
63_namespaceMap[xmlNamespace] = xmlNamespace; 93_namespaceMap[xmlNamespace] = xmlNamespace; 150_namespaceMap[key] = newNamespace; 155_namespaceMap[oldNamespace] = newNamespace; 825_namespaceMap[namespaceName] = namespaceName; 854_namespaceMap[namespaceName] = null; 885_subsumingNamespaces[namespaceName] = null; 912_knownNamespaces[namespaceName] = null; 1815_ignorables[namespaceName] = null; // we don't care about value, just key
System\Xaml\AttachablePropertyServices.cs (1)
210instanceProperties[name] = value;
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
210xmlnsDictionary[ns.Key] = ns.Value;
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
385result[xmlns] = prefix;
System\Xaml\Schema\TypeReflector.cs (2)
504result[currentProp.Name] = currentProp; 554result[currentEvent.Name] = currentEvent;
System\Xaml\XamlXmlWriter.cs (3)
372prefixAssignmentHistory[prefix] = null; 743prefixMap[prefix] = ns; 744namespaceMap[ns] = prefix;
TaskUsageLogger (4)
TaskUsageLogger.cs (4)
122_toolsVersionsByProjectContextId[e.BuildEventContext.ProjectContextId] = p.ToolsVersion; 155_targetIdsToNames[e.BuildEventContext.TargetId] = e.TargetName; 233_tasksByProjectContextId[projectContextId] = usingTasks; 280_assemblyLocationsByName[evaluatedTaskAssemblyName] = evaluatedTaskAssemblyPath;
WasmAppBuilder (18)
EmccCompile.cs (1)
314envVarsDict[key] = value;
IcallTableGenerator.cs (2)
67assemblyMap[icall.Assembly!] = icall.Assembly!; 116_runtimeIcalls[icallClass.Name] = icallClass;
ManagedToNativeGenerator.cs (1)
110_symbolNameFixups[name] = fixedName;
PInvokeCollector.cs (1)
202_assemblyDisableRuntimeMarshallingAttributeCache[assembly] = value = assembly
PInvokeTableGenerator.cs (3)
45modules[module] = module; 433_assemblyDisableRuntimeMarshallingAttributeCache[assembly] = value = assembly 460_blittableCache[type] = result;
WasmAppBuilder.cs (10)
189resourceList[name] = itemHash; 221assemblyList[assemblyName] = Utils.ComputeIntegrity(bytes); 240pdbList[Path.GetFileName(pdb)] = Utils.ComputeIntegrity(pdb); 269bootConfig.resources.satelliteResources[args.culture] = cultureSatelliteResources = new(); 271cultureSatelliteResources[Path.GetFileName(finalWebcil)] = Utils.ComputeIntegrity(finalWebcil); 279bootConfig.resources.satelliteResources[args.culture] = cultureSatelliteResources = new(); 281cultureSatelliteResources[name] = Utils.ComputeIntegrity(satellitePath); 332vfsDict[targetPath] = new() 357bootConfig.resources.icu[Path.GetFileName(idfn)] = Utils.ComputeIntegrity(idfn); 409extraConfiguration[name] = valueObject;
WindowsFormsIntegration (1)
System\Windows\Integration\PropertyMap.cs (1)
110_wrappedDictionary[propertyName] = value; //This will replace an existing mapping, unlike Add.
XmlFileLogger (2)
LogProcessNode.cs (1)
104_childNodes[type] = new List<ILogNode> { childNode };
PropertyBag.cs (1)
108_properties[key] = value;
xunit.assert (2)
Sdk\CollectionTracker.cs (2)
583 items[idx] = span[idx]; 839 result[itemIndex] = currentItemsRingBuffer[indexInRingBuffer];
xunit.console (1)
common\Json.cs (1)
529dictionary[memberName] = DeserializeInternal(buffer.Read(), buffer);
Xunit.NetCore.Extensions (4)
AssemblyFixtureSupport\XunitTestAssemblyRunnerWithAssemblyFixture.cs (1)
47assemblyFixtureMappings[fixtureAttr.FixtureType] = Activator.CreateInstance(fixtureAttr.FixtureType);
AssemblyFixtureSupport\XunitTestClassRunnerWithAssemblyFixture.cs (1)
40assemblyFixtureMappings[fixtureAttr.FixtureType] = Activator.CreateInstance(fixtureAttr.FixtureType);
AssemblyFixtureSupport\XunitTestCollectionRunnerWithAssemblyFixture.cs (1)
44combinedFixtures[kvp.Key] = kvp.Value;
AssemblyFixtureSupport\XunitTestMethodRunnerWithAssemblyFixture.cs (1)
44assemblyFixtureMappings[fixtureAttr.FixtureType] = Activator.CreateInstance(fixtureAttr.FixtureType);
1819 references to Item
HtmlGenerationWebSite (1)
ProductsService.cs (1)
43_products[category],
Identity.DefaultUI.WebSite (2)
src\Identity\test\InMemory.Test\InMemoryUserStore.cs (2)
200return Task.FromResult(_logins[key]); 237return Task.FromResult(_users[userId]);
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
555var (expectedError, action) = InvalidConfigTransformations[scenario]; 600var action = PortableConfigTransformations[scenario]; 670var action = StandaloneConfigTransformations[scenario];
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
555var (expectedError, action) = InvalidConfigTransformations[scenario]; 600var action = PortableConfigTransformations[scenario]; 670var action = StandaloneConfigTransformations[scenario];
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
555var (expectedError, action) = InvalidConfigTransformations[scenario]; 600var action = PortableConfigTransformations[scenario]; 670var action = StandaloneConfigTransformations[scenario];
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (3)
555var (expectedError, action) = InvalidConfigTransformations[scenario]; 600var action = PortableConfigTransformations[scenario]; 670var action = StandaloneConfigTransformations[scenario];
ILCompiler.DependencyAnalysisFramework (10)
DgmlWriter.cs (10)
127_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeA].ToString()); 128_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeB].ToString()); 136_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDepender].ToString()); 137_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeDependedOn].ToString()); 164_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDepender].ToString()); 165_xmlWrite.WriteAttributeString("Target", _nodeMappings[combinedNode].ToString()); 171_xmlWrite.WriteAttributeString("Source", _nodeMappings[nodeDependerOther].ToString()); 172_xmlWrite.WriteAttributeString("Target", _nodeMappings[combinedNode].ToString()); 179_xmlWrite.WriteAttributeString("Source", _nodeMappings[combinedNode].ToString()); 180_xmlWrite.WriteAttributeString("Target", _nodeMappings[nodeDependedOn].ToString());
illink (11)
ILLink.RoslynAnalyzer (1)
TrimAnalysis\TrimAnalysisVisitor.cs (1)
272 ? _multiValueLattice.Meet (arr.IndexValues[index.Value], sanitizedValue)
ILLink.Tasks (9)
CreateRuntimeRootDescriptorFile.cs (9)
169 namespaceDictionary[lhs] = namespaceDictionary[prefix] + namespaceDefElements[3]; 409 Dictionary<string, ClassMembers> currentFeatureSwitchMembers = featureSwitchMembers[featureSwitch.Value]; 421 string className = classIdsToClassNames[classId]; 425 members = classNamesToClassMembers[className]; 427 members = featureSwitchMembers[featureSwitch.Value][className]; 438 fullClassName = classIdsToClassNames[classId]; 446 members = classNamesToClassMembers[fullClassName]; 448 members = featureSwitchMembers[featureSwitch.Value][fullClassName]; 474 return namespaceDictionary[classNamespace] + "." + className;
InMemory.FunctionalTests (319)
BadHttpRequestTests.cs (2)
74var header = BadHeaderData[dataName].header; 75var errorMessage = BadHeaderData[dataName].errorMessage;
Http2\Http2ConnectionTests.cs (26)
183var contentType1 = _receivedHeaders["Content-Type"]; 200var contentType2 = _receivedHeaders["Content-Type"]; 354Assert.Equal("true", _decodedHeaders["trailer-1"]); 382Assert.Equal("true", _decodedHeaders[$"trailer-{i + 1}"]); 2173Assert.Equal(header.Value, _receivedTrailers[header.Key]); 2319Assert.Equal("200", handler.Headers[":status"]); 2320Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]); 2321Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]); 2322Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]); 2336Assert.Equal("200", handler.Headers[":status"]); 2337Assert.Equal("SetCookie!", handler.Headers[HeaderNames.SetCookie]); 2338Assert.Equal("ContentDisposition!", handler.Headers[HeaderNames.ContentDisposition]); 2339Assert.Equal("0", handler.Headers[HeaderNames.ContentLength]); 2941Assert.Equal("a=0; b=1; c=2", _receivedHeaders[HeaderNames.Cookie]); 4579Assert.Equal("1", _receivedTrailers["trailer-1"]); 4580Assert.Equal("2", _receivedTrailers["trailer-2"]); 4701Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4702Assert.Equal("0", _decodedHeaders["content-length"]); 4703Assert.Equal(_4kHeaderValue, _decodedHeaders["a"]); 4704Assert.Equal(_4kHeaderValue, _decodedHeaders["b"]); 4705Assert.Equal(_4kHeaderValue, _decodedHeaders["c"]); 4706Assert.Equal(_4kHeaderValue, _decodedHeaders["d"]); 4707Assert.Equal(_4kHeaderValue, _decodedHeaders["e"]); 4708Assert.Equal(_4kHeaderValue, _decodedHeaders["f"]); 4709Assert.Equal(_4kHeaderValue, _decodedHeaders["g"]); 4710Assert.Equal(_4kHeaderValue, _decodedHeaders["h"]);
Http2\Http2StreamTests.cs (185)
119Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 120Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 121Assert.Equal(method, _decodedHeaders["Method"]); 138Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 139Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 140Assert.Equal(method, _decodedHeaders["Method"]); 169Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 170Assert.Equal("HEAD", _decodedHeaders["Method"]); 221Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 272Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 296Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 297Assert.Equal("CONNECT", _decodedHeaders["Method"]); 325Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 326Assert.Equal("", _decodedHeaders["path"]); 327Assert.Equal("*", _decodedHeaders["rawtarget"]); 328Assert.Equal("0", _decodedHeaders["content-length"]); 356Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 357Assert.Equal("/", _decodedHeaders["path"]); 358Assert.Equal("/", _decodedHeaders["rawtarget"]); 359Assert.Equal("0", _decodedHeaders["content-length"]); 393Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 394Assert.Equal("/a/path", _decodedHeaders["path"]); 395Assert.Equal("?a&que%35ry", _decodedHeaders["query"]); 396Assert.Equal("/a/path?a&que%35ry", _decodedHeaders["rawtarget"]); 397Assert.Equal("0", _decodedHeaders["content-length"]); 438Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 439Assert.Equal("0", _decodedHeaders["content-length"]); 510Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 511Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 561Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 562Assert.Equal("0", _decodedHeaders["content-length"]); 590Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 591Assert.Equal("0", _decodedHeaders["content-length"]); 619Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 620Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 621Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 650Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 651Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 652Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 681Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 682Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 683Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 712Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 713Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 714Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 834Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]); 835Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 868Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]); 869Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 905Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 906Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 946Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 947Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 989Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 990Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1032Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1033Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1085Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1086Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1327Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1328Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1365Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1366Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1404Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1405Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1438Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 1439Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1473Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1508Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1509Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1548Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1583Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1631Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1671Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1707Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1708Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1749Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1785Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1786Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1819Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1856Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1857Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1894Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1895Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1941Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 1942Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1980Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1981Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2028Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 2029Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2091Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 2092Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2142Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2143Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2181Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2222Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2223Assert.Equal("Custom 你好 Type", _decodedHeaders[HeaderNames.ContentType]); 2224Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]); 2272Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2273Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2280Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2305Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 2306Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2351Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2358Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2393Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2400Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2448Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2455Assert.Equal(largeHeader, _decodedHeaders["CustomName0"]); 2456Assert.Equal(largeHeader, _decodedHeaders["CustomName1"]); 2457Assert.Equal(largeHeader, _decodedHeaders["CustomName2"]); 2458Assert.Equal(largeHeader, _decodedHeaders["CustomName3"]); 2459Assert.Equal(largeHeader, _decodedHeaders["CustomName4"]); 2466Assert.Equal(largeHeader, _decodedHeaders["CustomName5"]); 2506Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2549Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2556Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]); 2557Assert.Equal("Custom 你好 Tag", _decodedHeaders[HeaderNames.ETag]); 2558Assert.Equal("Custom 你好 Accept", _decodedHeaders[HeaderNames.Accept]); 2590Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2690Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2696Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2742Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2748Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2780Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 2781Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2818Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3239Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3240Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 3288Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3332Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3378Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3431Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3484Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3530Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3580Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3625Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3668Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3706Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3707Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 3849Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3899Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3900Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 3945Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3946Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 3985Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3986Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4049Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4050Assert.Equal("54", _decodedHeaders[HeaderNames.ContentLength]); 4081Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4114Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4147Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 4202Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4203Assert.Equal("0", _decodedHeaders["content-length"]); 4262Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4263Assert.Equal("0", _decodedHeaders["content-length"]); 4270Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 4323Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 4324Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4388Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4445Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4446Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4512Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4557Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4558Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4630Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4639Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 4704Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4713Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 4780Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4781Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]); 4851Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4852Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]); 4925Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4934Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5009Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5018Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5091Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5100Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5178Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5187Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5225Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5226Assert.Equal("0", _decodedHeaders["content-length"]); 5298Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5350Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
Http2\Http2WebSocketTests.cs (9)
73Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 138Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 229Assert.Equal("201", _decodedHeaders[InternalHeaderNames.Status]); 265Assert.Equal("201", _decodedHeaders[InternalHeaderNames.Status]); 368Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 432Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 500Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 555Assert.Equal("418", _decodedHeaders[InternalHeaderNames.Status]); 556Assert.Equal("2", _decodedHeaders[HeaderNames.ContentLength]);
Http3\Http3StreamTests.cs (97)
42Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 66Assert.Equal("401", responseHeaders[InternalHeaderNames.Status]); 124Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 125Assert.Equal("Custom", responseHeaders["Method"]); 126Assert.Equal("0", responseHeaders["content-length"]); 161Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 162Assert.Equal("CONNECT", responseHeaders["Method"]); 178Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 179Assert.Equal("", responseHeaders["path"]); 180Assert.Equal("*", responseHeaders["rawtarget"]); 181Assert.Equal("0", responseHeaders["content-length"]); 197Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 198Assert.Equal("/", responseHeaders["path"]); 199Assert.Equal("/", responseHeaders["rawtarget"]); 200Assert.Equal("0", responseHeaders["content-length"]); 223Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 224Assert.Equal("/a/path", responseHeaders["path"]); 225Assert.Equal("?a&que%35ry", responseHeaders["query"]); 226Assert.Equal("/a/path?a&que%35ry", responseHeaders["rawtarget"]); 227Assert.Equal("0", responseHeaders["content-length"]); 257Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 258Assert.Equal("0", responseHeaders["content-length"]); 316Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 317Assert.Equal("0", responseHeaders["content-length"]); 355Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 356Assert.Equal("0", responseHeaders["content-length"]); 375Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 376Assert.Equal("0", responseHeaders["content-length"]); 396Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 397Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 398Assert.Equal("abc", responseHeaders[HeaderNames.Host]); 419Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 420Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 421Assert.Equal("abc", responseHeaders[HeaderNames.Host]); 442Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 443Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 444Assert.Equal("def", responseHeaders[HeaderNames.Host]); 465Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 466Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 467Assert.Equal("def", responseHeaders[HeaderNames.Host]); 575Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 576Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 611Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 612Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 646Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 647Assert.Equal("0", responseHeaders[HeaderNames.ContentLength]); 848Assert.Equal("Value1", responseTrailers["Trailer1"]); 849Assert.Equal("Value2", responseTrailers["Trailer2"]); 880Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 914Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 915Assert.Equal("Custom 你好 Type", responseHeaders[HeaderNames.ContentType]); 916Assert.Equal("Custom 你好 Value", responseHeaders["CustomName"]); 974Assert.Equal("Value1", responseTrailers["Trailer1"]); 975Assert.Equal("Value2", responseTrailers["Trailer2"]); 1063Assert.Equal("Custom 你好 Value", responseTrailers["CustomName"]); 1064Assert.Equal("Custom 你好 Tag", responseTrailers[HeaderNames.ETag]); 1065Assert.Equal("Custom 你好 Accept", responseTrailers[HeaderNames.Accept]); 1168Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1169Assert.Equal("0", decodedHeaders["content-length"]); 1220Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1221Assert.Equal("0", decodedHeaders["content-length"]); 1224Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 1315Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1367Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1368Assert.Equal("0", decodedHeaders[HeaderNames.ContentLength]); 1419Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1461Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1462Assert.Equal("0", decodedHeaders["content-length"]); 1515Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1521Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 1570Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1576Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 1744Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1750Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 1808Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 1814Assert.Equal("Custom Value", decodedTrailers["CustomName"]); 2329Assert.Equal("431", receivedHeaders[InternalHeaderNames.Status]); 2330Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2387Assert.Equal("431", receivedHeaders[InternalHeaderNames.Status]); 2388Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2497Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]); 2498Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2538Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]); 2539Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2570Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]); 2571Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2610Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]); 2611Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2665Assert.Equal("413", receivedHeaders[InternalHeaderNames.Status]); 2666Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2709Assert.Equal("200", receivedHeaders[InternalHeaderNames.Status]); 2710Assert.Equal("0", receivedHeaders[HeaderNames.ContentLength]); 2884Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 2888Assert.Equal(i + "-" + headerText, responseHeaders["Header" + i]); 2924Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]); 2929Assert.Equal(i + "-" + headerText, responseTrailers["Header" + i]); 2952Assert.Equal("200", responseHeaders[InternalHeaderNames.Status]);
Interop.FunctionalTests (5)
Http3\Http3RequestTests.cs (5)
915var request1Headers = requestHeaders.Single(i => i["id"] == "1"); 928var request2Headers = requestHeaders.Single(i => i["id"] == "2"); 944var request3Headers = requestHeaders.Single(i => i["id"] == "3"); 950Assert.Same((string)request2Headers["alt-used"], (string)request3Headers["alt-used"]);
Microsoft.Arcade.Test.Common (2)
MockFileSystem.cs (2)
57public void CopyFile(string sourceFileName, string destFileName, bool overwrite = false) => Files[destFileName] = Files[sourceFileName]; 86: base(fileSystem.FileExists(path) ? System.Text.Encoding.UTF8.GetBytes(fileSystem.Files[path]) : new byte[2048])
Microsoft.AspNetCore.Analyzers.Test (6)
StartupFactsTest.cs (6)
115var compilation = TestCompilation.Create(TestSources[source]); 140var compilation = TestCompilation.Create(TestSources[source]); 163var compilation = TestCompilation.Create(TestSources[source]); 185var compilation = TestCompilation.Create(TestSources[source]); 207var compilation = TestCompilation.Create(TestSources[source]); 224var compilation = TestCompilation.Create(TestSources[source]);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
UserJwtsTests.cs (1)
121var jwt = deserialized[id];
Microsoft.AspNetCore.Authentication.Test (89)
FacebookTests.cs (9)
396Assert.Equal("Test App Id", entries["client_id"]); 397Assert.Equal("https://example.com/signin-facebook", entries["redirect_uri"]); 398Assert.Equal("Test App Secret", entries["client_secret"]); 399Assert.Equal("TestCode", entries["code"]); 400Assert.Equal("authorization_code", entries["grant_type"]); 401Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 439Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"])); 440Assert.Equal("S256", queryParams["code_challenge_method"]); 446"https://example.com/signin-facebook?code=TestCode&state=" + queryParams["state"],
GoogleTests.cs (33)
61Assert.Equal("code", queryParams["response_type"]); 62Assert.Equal("Test Id", queryParams["client_id"]); 67Assert.Equal("S256", queryParams["code_challenge_method"]); 191Assert.Equal("openid https://www.googleapis.com/auth/plus.login", query["scope"]); 192Assert.Equal("offline", query["access_type"]); 193Assert.Equal("force", query["approval_prompt"]); 194Assert.Equal("consent", query["prompt"]); 195Assert.Equal("false", query["include_granted_scopes"]); 196Assert.Equal("test@example.com", query["login_hint"]); 199var stateProperties = stateFormat.Unprotect(query["state"]); 243Assert.Equal("https://www.googleapis.com/auth/plus.login", query["scope"]); 244Assert.Equal("offline", query["access_type"]); 245Assert.Equal("force", query["approval_prompt"]); 246Assert.Equal("consent", query["prompt"]); 247Assert.Equal("false", query["include_granted_scopes"]); 248Assert.Equal("test@example.com", query["login_hint"]); 251var stateProperties = stateFormat.Unprotect(query["state"]); 299Assert.Equal("https://www.googleapis.com/auth/plus.login", query["scope"]); 300Assert.Equal("offline", query["access_type"]); 301Assert.Equal("force", query["approval_prompt"]); 302Assert.Equal("consent", query["prompt"]); 303Assert.Equal("false", query["include_granted_scopes"]); 304Assert.Equal("test@example.com", query["login_hint"]); 307var stateProperties = stateFormat.Unprotect(query["state"]); 1035Assert.Equal("Test Client Id", entries["client_id"]); 1036Assert.Equal("https://example.com/signin-google", entries["redirect_uri"]); 1037Assert.Equal("Test Client Secret", entries["client_secret"]); 1038Assert.Equal("TestCode", entries["code"]); 1039Assert.Equal("authorization_code", entries["grant_type"]); 1040Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 1072Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"])); 1073Assert.Equal("S256", queryParams["code_challenge_method"]); 1079"https://example.com/signin-google?code=TestCode&state=" + queryParams["state"],
MicrosoftAccountTests.cs (15)
271Assert.Equal("https://graph.microsoft.com/user.read", query["scope"]); 272Assert.Equal("consumers", query["domain_hint"]); 273Assert.Equal("username", query["login_hint"]); 274Assert.Equal("select_account", query["prompt"]); 275Assert.Equal("query", query["response_mode"]); 278var stateProperties = stateFormat.Unprotect(query["state"]); 302Assert.Equal("Test Client Id", entries["client_id"]); 303Assert.Equal("https://example.com/signin-microsoft", entries["redirect_uri"]); 304Assert.Equal("Test Client Secret", entries["client_secret"]); 305Assert.Equal("TestCode", entries["code"]); 306Assert.Equal("authorization_code", entries["grant_type"]); 307Assert.False(string.IsNullOrEmpty(entries["code_verifier"])); 339Assert.False(string.IsNullOrEmpty(queryParams["code_challenge"])); 340Assert.Equal("S256", queryParams["code_challenge_method"]); 346"https://example.com/signin-microsoft?code=TestCode&state=" + queryParams["state"],
WsFederation\WsFederationTest.cs (16)
79Assert.Equal("http://Automation1", queryItems["wtrealm"]); 80Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 81Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 82Assert.Equal("wsignin1.0", queryItems["wa"]); 95Assert.Equal("http://Automation1", queryItems["wtrealm"]); 96Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 97Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 98Assert.Equal("wsignin1.0", queryItems["wa"]); 111Assert.Equal("http://Automation1", queryItems["wtrealm"]); 112Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 113Assert.Equal(httpClient.BaseAddress + "premapped-challenge/signin-wsfed", queryItems["wreply"]); 114Assert.Equal("wsignin1.0", queryItems["wa"]); 126var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 128request.Content = CreateSignInContent("WsFederation/ValidToken.xml", queryItems["wctx"]); 177var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 179request.Content = CreateSignInContent("WsFederation/InvalidToken.xml", queryItems["wctx"]);
WsFederation\WsFederationTest_Handler.cs (16)
77Assert.Equal("http://Automation1", queryItems["wtrealm"]); 78Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 79Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 80Assert.Equal("wsignin1.0", queryItems["wa"]); 93Assert.Equal("http://Automation1", queryItems["wtrealm"]); 94Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 95Assert.Equal(httpClient.BaseAddress + "signin-wsfed", queryItems["wreply"]); 96Assert.Equal("wsignin1.0", queryItems["wa"]); 109Assert.Equal("http://Automation1", queryItems["wtrealm"]); 110Assert.True(queryItems["wctx"].ToString().Equals(CustomStateDataFormat.ValidStateData), "wctx does not equal ValidStateData"); 111Assert.Equal(httpClient.BaseAddress + "premapped-challenge/signin-wsfed", queryItems["wreply"]); 112Assert.Equal("wsignin1.0", queryItems["wa"]); 124var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 126request.Content = CreateSignInContent("WsFederation/ValidToken.xml", queryItems["wctx"]); 175var request = new HttpRequestMessage(HttpMethod.Post, queryItems["wreply"]); 177request.Content = CreateSignInContent("WsFederation/InvalidToken.xml", queryItems["wctx"]);
Microsoft.AspNetCore.Components (3)
Rendering\RenderTreeBuilder.cs (1)
816var index = seenAttributeNames[frame.AttributeNameField];
RenderTree\RenderTreeDiffBuilder.cs (2)
119var oldKeyItemInfo = oldKey != null ? keyedItemInfos[oldKey] : new KeyedItemInfo(-1, -1); 120var newKeyItemInfo = newKey != null ? keyedItemInfos[newKey] : new KeyedItemInfo(-1, -1);
Microsoft.AspNetCore.Components.Endpoints (23)
FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)])); 57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)])); 58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)])); 59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)])); 60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)])); 61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)])); 62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)])); 63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)])); 64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)])); 65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)])); 66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)])); 67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)])); 68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)])); 69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)])); 70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)])); 71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)])); 72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)])); 73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)])); 74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)])); 75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)])); 76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)])); 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
99var locationsForName = _namedSubmitEventsByScopeQualifiedName[scopeQualifiedName];
Microsoft.AspNetCore.Components.Forms (1)
EditContextProperties.cs (1)
25get => _contents is null ? throw new KeyNotFoundException() : _contents[key];
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\EditFormTest.cs (2)
203Assert.Equal("my method", editFormAttributes["method"]); 204Assert.Equal("some value", editFormAttributes["custom attribute"]);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
106if ((preferredEncoding == encoding.Value || encoding.Value == "*") && ResourceExists(context, _encodingExtensionMap[preferredEncoding]))
Microsoft.AspNetCore.Components.WebAssembly.Tests (15)
Hosting\WebAssemblyHostConfigurationTest.cs (15)
100Assert.Equal("2008", section["year"]); 101Assert.Equal("4", section["count"]); 102Assert.Equal("michelin", section["brand"]); 103Assert.Equal("rally", section["brand:type"]); 163Assert.Equal("NoKeyValue1", dict[""]); 164Assert.Equal("ValueInMem1", dict["KeyInMem1"]); 165Assert.Equal("ValueDeep1", dict["KeyInMem1:Deep1"]); 169Assert.Equal("NoKeyValue2", dict2[""]); 170Assert.Equal("ValueInMem2", dict2["KeyInMem2"]); 171Assert.Equal("ValueDeep2", dict2["KeyInMem2:Deep2"]); 175Assert.Equal("NoKeyValue3", dict3[""]); 176Assert.Equal("ValueInMem3", dict3["KeyInMem3"]); 177Assert.Equal("ValueInMem4", dict3["KeyInMem4"]); 178Assert.Equal("ValueDeep3", dict3["KeyInMem3:Deep3"]); 179Assert.Equal("ValueDeep4", dict3["KeyInMem3:Deep4"]);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (2)
src\Shared\EventSource.Testing\TestCounterListener.cs (2)
29return _counters[counterName].Reader.ReadAllAsync(cancellationToken); 40var writer = _counters[counter].Writer;
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRing.cs (1)
37_defaultKeyHolder = _keyIdToKeyHolderMap[DefaultKeyId];
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\Json\JsonConverterFactoryForWellKnownTypes.cs (1)
41var converterType = JsonConverterHelper.WellKnownTypeNames[descriptor.FullName];
Microsoft.AspNetCore.Grpc.Swagger.Tests (46)
Binding\BodyTests.cs (4)
27var path = swagger.Paths["/v1/body1"]; 46var path = swagger.Paths["/v1/body2"]; 62var path = swagger.Paths["/v1/body3"]; 76var path = swagger.Paths["/v1/body4"];
Binding\ParametersTests.cs (10)
27var path = swagger.Paths["/v1/parameters1"]; 43var path = swagger.Paths["/v1/parameters2/{parameterInt}"]; 59var path = swagger.Paths["/v1/parameters3/{parameterOne}"]; 80var path = swagger.Paths["/v1/parameters4/{parameterTwo}"]; 97var path = swagger.Paths["/v1/parameters5/{parameterOne}"]; 111var path = swagger.Paths["/v1/parameters6"]; 127var path = swagger.Paths["/v1/parameters7/{parameterOne.nestedParameterOne}/{parameterOne.nestedParameterTwo}"]; 149var path = swagger.Paths["/v1/parameters9"]; 171var path1 = swagger.Paths["/v1/parameters10/{parameterInt}:one"]; 173var path2 = swagger.Paths["/v1/parameters10/{parameterInt}:two"];
Binding\ResponseBodyTests.cs (8)
28var path = swagger.Paths["/v1/responsebody1"]; 31var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 42var path = swagger.Paths["/v1/responsebody2"]; 45var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 58var path = swagger.Paths["/v1/responsebody3"]; 61var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 83var path = swagger.Paths["/v1/responsebody4"]; 86var bodySchema = operation.Responses["200"].Content["application/json"].Schema;
GrpcSwaggerServiceExtensionsTests.cs (6)
47var path = swagger.Paths["/v1/greeter/{name}"]; 49Assert.Equal("Success", operation.Responses["200"].Description); 50Assert.Equal("Error", operation.Responses["default"].Description); 82Assert.True(swagger.Paths["/v1/greeter/{name}"].Operations.ContainsKey(OperationType.Get)); 87Assert.True(swagger.Paths["/v1/greeter/{name}"].Operations.ContainsKey(OperationType.Get)); 88Assert.True(swagger.Paths["/v1/add/{value1}/{value2}"].Operations.ContainsKey(OperationType.Get));
SchemaGeneratorIntegrationTests.cs (11)
39schema = repository.Schemas[schema.Reference.Id]; 43var enumSchema = repository.Schemas[schema.Properties["enumValue"].Reference.Id]; 63schema = repository.Schemas[schema.Reference.Id]; 83schema = repository.Schemas[schema.Reference.Id]; 100schema = repository.Schemas[schema.Reference.Id]; 113schema = repository.Schemas[schema.Reference.Id]; 143var resolvedSchema = repository.Schemas[schema.Reference.Id]; 158schema = repository.Schemas[schema.Reference.Id]; 173schema = repository.Schemas[schema.Reference.Id]; 190schema = repository.Schemas[schema.Reference.Id]; 205schema = repository.Schemas[schema.Reference.Id];
XmlComments\XmlDocumentationIntegrationTests.cs (7)
50var path = swagger.Paths["/v1/greeter/{name}"]; 61var path = swagger.Paths["/v1/greeter/{name}"]; 73var path = swagger.Paths["/v1/greeter/{name}"]; 85var path = swagger.Paths["/v1/greeter"]; 96var path = swagger.Paths["/v1/greeter"]; 107var path = swagger.Paths["/v1/greeter/{name}"]; 118var path = swagger.Paths["/v1/greeter/query/{name}"];
Microsoft.AspNetCore.Hosting.Tests (2)
src\Shared\EventSource.Testing\TestCounterListener.cs (2)
29return _counters[counterName].Reader.ReadAllAsync(cancellationToken); 40var writer = _counters[counter].Writer;
Microsoft.AspNetCore.Http (2)
HeaderDictionary.cs (1)
109return Store[key];
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Http.Extensions (22)
src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)])); 57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)])); 58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)])); 59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)])); 60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)])); 61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)])); 62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)])); 63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)])); 64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)])); 65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)])); 66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)])); 67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)])); 68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)])); 69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)])); 70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)])); 71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)])); 72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)])); 73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)])); 74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)])); 75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)])); 76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)])); 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));
Microsoft.AspNetCore.Http.Extensions.Tests (6)
RequestDelegateGenerator\RuntimeCreationTests.ComplexFormBinding.cs (6)
109Assert.True(elements["foo"]); 110Assert.False(elements["bar"]); 111Assert.True(elements["baz"]); 146Assert.True(elements["foo"]); 147Assert.False(elements["bar"]); 148Assert.True(elements["baz"]);
Microsoft.AspNetCore.Http.Microbenchmarks (9)
AdaptiveCapacityDictionaryBenchmark.cs (9)
68_ = _dict[_oneValue.Key]; 179_ = _dictTen[val.Key]; 190_ = _dictTen[val.Key]; 200_ = _dictTen[val.Key]; 210_ = _dictTen[val.Key]; 220_ = _dictTen[val.Key]; 230_ = _dictTen[val.Key]; 241_ = _dictTen[val.Key]; 291_ = _filledDictTen["s"];
Microsoft.AspNetCore.Identity.FunctionalTests (10)
Infrastructure\ServerFactory.cs (1)
107var selectedFrameworkAssembly = _assemblyMap[framework == "V4" ? UIFramework.Bootstrap4 : UIFramework.Bootstrap5];
MapIdentityApiTests.cs (9)
43await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 62await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 73await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 106await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 134AddIdentityActions[addIdentityMode](services); 275await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 291await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 666await using var app = await CreateAppAsync(AddIdentityActions[addIdentityMode]); 1025AddIdentityActions[addIdentityModes](services);
Microsoft.AspNetCore.Identity.InMemory.Test (4)
InMemoryStore.cs (2)
45roles.Add(_roles[r].Name); 114return Task.FromResult(_roles[roleId]);
InMemoryUserStore.cs (2)
200return Task.FromResult(_logins[key]); 237return Task.FromResult(_users[userId]);
Microsoft.AspNetCore.JsonPatch.Tests (9)
Internal\DictionaryAdapterTest.cs (9)
34Assert.Equal(200, dictionary[key]); 54Assert.Equal("James", dictionary[intKey]); 73Assert.Equal("James", dictionary[key]); 101Assert.Equal("James", dictionary[nameKey]); 128Assert.Equal("James", dictionary[nameKey]); 156Assert.Equal("James", dictionary[nameKey]); 176Assert.Equal("James", dictionary[guidKey]); 195Assert.Equal(5, dictionary[guidKey]); 254Assert.Equal("James", dictionary[nameKey].RectangleProperty);
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\ModelBinderFactory.cs (1)
159if (visited[key] is PlaceholderBinder placeholderBinder)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Mvc.Core.Test (16)
ApplicationParts\RelatedAssemblyPartTest.cs (1)
112return Assemblies[assemblyName.Name];
Controllers\ControllerBinderDelegateProviderTest.cs (2)
271Assert.Equal(value, arguments["foo"]); 899Assert.Null(arguments["test-parameter"]);
ModelBinding\FormValueProviderTest.cs (2)
31Assert.Equal(BackingStore[invariantCultureKey], invariantCultureResult.Values); 34Assert.Equal(BackingStore[currentCultureKey], currentCultureResult.Values);
ModelBinding\JQueryFormValueProviderTest.cs (2)
69Assert.Equal(BackingStore[invariantCultureKey], invariantCultureResult.Values); 72Assert.Equal(BackingStore[currentCultureKey], currentCultureResult.Values);
Routing\UrlHelperTestBase.cs (5)
637Assert.Same(id, dictionary["ID"]); 638Assert.Same(isprint, dictionary["isprint"]); 682Assert.Same(action, dict["ACTION"]); 683Assert.Same(controller, dict["Controller"]); 684Assert.Same(id, dict["ID"]);
SerializableErrorTests.cs (4)
23var arr = Assert.IsType<string[]>(serializableError["key1"]); 26Assert.Equal("Test Error 3", (serializableError["key2"] as string[])[0]); 40var arr = Assert.IsType<string[]>(serializableError["KEY1"]); 55var arr = Assert.IsType<string[]>(serializableError["key1"]);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
SerializableErrorWrapperTests.cs (1)
41Assert.Equal("key1-error", wrapper.SerializableError["key1"]);
Microsoft.AspNetCore.Mvc.FunctionalTests (17)
FormFileUploadTest.cs (2)
69Assert.Equal(new[] { "camera_spec1.txt", "camera_spec2.txt" }, product.Specs["camera"]); 71Assert.Equal(new[] { "battery_spec1.txt", "battery_spec2.txt" }, product.Specs["battery"]);
InputValidationTests.cs (10)
86errors["RequiredProp"]); 89errors["BindRequiredProp"]); 92errors["RequiredAndBindRequiredProp"]); 95errors["OptionalStringLengthProp"]); 98errors["OptionalRangeDisplayNameProp"]); 101errors["requiredParam"]); 104errors["bindRequiredParam"]); 107errors["requiredAndBindRequiredParam"]); 110errors["optionalStringLengthParam"]); 113errors["optionalRangeDisplayNameParam"]);
RoutingTestsBase.cs (4)
1186Assert.Equal("17", result.RouteValues["id"]); 1208Assert.Equal("17", result.RouteValues["id"]); 1230Assert.Equal("17", result.RouteValues["id"]); 1252Assert.Equal("123", result.RouteValues["id"]);
RoutingWithoutRazorPagesTestsBase.cs (1)
60Assert.Equal("pagevalue", result.RouteValues["page"]);
Microsoft.AspNetCore.Mvc.IntegrationTests (22)
BodyValidationIntegrationTests.cs (11)
133Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["CompanyName"]); 134Assert.Equal(priceRange, modelStateErrors["Price"]); 135Assert.Equal(categoryRequired, modelStateErrors["Category"]); 136Assert.Equal(contactUsRequired, modelStateErrors["Contact"]); 137Assert.Equal(detail2Required, modelStateErrors["ProductDetails.Detail2"]); 138Assert.Equal(detail3Required, modelStateErrors["ProductDetails.Detail3"]); 178Assert.Equal(productDetailsRequired, modelStateErrors["ProductDetails"]); 218Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors[""]); 298Assert.Equal(priceRange, modelStateErrors["Price"]); 299Assert.Equal(contactLength, modelStateErrors["Contact"]); 339Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors[""]);
TryValidateModelIntegrationTest.cs (11)
42Assert.Equal("Product must be made in the USA if it is not named.", modelStateErrors["software"]); 122Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["[0].CompanyName"]); 123Assert.Equal(priceRange, modelStateErrors["[0].Price"]); 124Assert.Equal(categoryRequired, modelStateErrors["[0].Category"]); 125AssertErrorEquals(contactUsMax + contactUsRegEx, modelStateErrors["[0].Contact"]); 126Assert.Equal("CompanyName cannot be null or empty.", modelStateErrors["[1].CompanyName"]); 127Assert.Equal(priceRange, modelStateErrors["[1].Price"]); 128Assert.Equal(categoryRequired, modelStateErrors["[1].Category"]); 129AssertErrorEquals(contactUsMax + contactUsRegEx, modelStateErrors["[1].Contact"]); 149AssertErrorEquals("Property", modelStateErrors["Message"]); 150AssertErrorEquals("Model", modelStateErrors[""]);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
502format = _rfc3339Formats["datetime"];
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (9)
CookieTempDataProviderTest.cs (1)
351public CookieInfo this[string key] => _cookies[key];
Rendering\HtmlHelperHiddenTest.cs (2)
770model => model.Property3["key"], 829model => model.Property3["key"],
Rendering\HtmlHelperPasswordTest.cs (2)
330model => model.Property3["key"], 478model => model.Property3["key"],
Rendering\HtmlHelperTextAreaTest.cs (2)
48model => model.Property3["key"], 95model => model.Property3["key"],
Rendering\HtmlHelperTextBoxTest.cs (2)
66model => model.Property3["key"], 113model => model.Property3["key"],
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
104return _fileTriggers[filter];
Microsoft.AspNetCore.OpenApi.Tests (72)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (3)
143var defaultOperation = operation.Responses["200"]; 146var annotatedOperation = operation.Responses["201"]; 198Summary = $"| Local Summary | 200 Status Response Content-Type: {operation.Responses["200"].Content.Keys.Single()}"
Services\OpenApiComponentService\OpenApiComponentService.RequestBodySchemas.cs (7)
23var operation = document.Paths["/"].Operations[OperationType.Post]; 73var operation = document.Paths[$"/{path}"].Operations[OperationType.Post]; 94var operation = document.Paths[$"/proposal"].Operations[OperationType.Post]; 124var enumerableTodo = document.Paths["/enumerable-todo"].Operations[OperationType.Post]; 125var arrayTodo = document.Paths["/array-todo"].Operations[OperationType.Post]; 126var arrayParsable = document.Paths["/array-parsable"].Operations[OperationType.Get]; 181var operation = document.Paths["/api"].Operations[OperationType.Post];
Services\OpenApiComponentService\OpenApiComponentService.ResponseSchemas.cs (8)
41var operation = document.Paths["/api"].Operations[OperationType.Get]; 62var operation = document.Paths["/api"].Operations[OperationType.Get]; 108var operation = document.Paths["/api"].Operations[OperationType.Get]; 151var operation = document.Paths["/api"].Operations[OperationType.Get]; 200var operation = document.Paths["/api"].Operations[OperationType.Get]; 265var operation = document.Paths["/api"].Operations[OperationType.Get]; 304var operation = document.Paths["/api"].Operations[OperationType.Get]; 364var operation = document.Paths["/"].Operations[OperationType.Get];
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Operations.cs (10)
25var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 43var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 61var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 79var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 96var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 120var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 144var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 196var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 214var operation = document.Paths["/api/todos"].Operations[OperationType.Get]; 229var operation = document.Paths["/api/todos"].Operations[OperationType.Get];
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Parameters.cs (17)
25var pathParameter = Assert.Single(document.Paths["/api/todos/{id}"].Operations[OperationType.Get].Parameters); 29var queryParameter = Assert.Single(document.Paths["/api/todos"].Operations[OperationType.Get].Parameters); 33var headerParameter = Assert.Single(document.Paths["/api"].Operations[OperationType.Get].Parameters); 54var pathParameter = Assert.Single(document.Paths["/api/todos/{id}"].Operations[OperationType.Get].Parameters); 57var guidParameter = Assert.Single(document.Paths["/api/todos/{guid}"].Operations[OperationType.Get].Parameters); 60var isCompletedParameter = Assert.Single(document.Paths["/api/todos/{isCompleted}"].Operations[OperationType.Get].Parameters); 80var queryParameter = Assert.Single(document.Paths["/api/todos"].Operations[OperationType.Get].Parameters); 83var nullableQueryParameter = Assert.Single(document.Paths["/api/users"].Operations[OperationType.Get].Parameters); 86var defaultQueryParameter = Assert.Single(document.Paths["/api/projects"].Operations[OperationType.Get].Parameters); 106var headerParameter = Assert.Single(document.Paths["/api/todos"].Operations[OperationType.Get].Parameters); 109var nullableHeaderParameter = Assert.Single(document.Paths["/api/users"].Operations[OperationType.Get].Parameters); 112var defaultHeaderParameter = Assert.Single(document.Paths["/api/projects"].Operations[OperationType.Get].Parameters); 135var pathParameter = Assert.Single(document.Paths["/api/todos/{id}"].Operations[OperationType.Get].Parameters); 138var guidParameter = Assert.Single(document.Paths["/api/todos/{guid}"].Operations[OperationType.Get].Parameters); 141var isCompletedParameter = Assert.Single(document.Paths["/api/todos/{isCompleted}"].Operations[OperationType.Get].Parameters); 161var usersOperation = document.Paths["/api/users"].Operations[OperationType.Post]; 163var todosOperation = document.Paths["/api/todos"].Operations[OperationType.Post];
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.Responses.cs (11)
27var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 55var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 79var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 104var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 127var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 157var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 181var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 200var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 228var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 261var operation = Assert.Single(document.Paths["/api/todos"].Operations.Values); 277var okResponse = operation.Responses["200"];
Services\OpenApiGeneratorTests.cs (16)
208var createdResponseType = responses["201"]; 214var badRequestResponseType = responses["400"]; 231var createdResponseType = operation.Responses["201"]; 237var badRequestResponseType = operation.Responses["400"]; 253var successResponse = operation.Responses["201"]; 256var clientErrorResponse = operation.Responses["400"]; 270var continueResponse = operation.Responses["100"]; 273var switchingProtocolsResponse = operation.Responses["101"]; 290var continueResponse = operation.Responses["100"]; 293var createdResponse = operation.Responses["201"]; 296var multipleChoicesResponse = operation.Responses["300"]; 299var badRequestResponse = operation.Responses["400"]; 302var InternalServerErrorResponse = operation.Responses["500"]; 317var unregisteredResponse1 = operation.Responses["46"]; 320var unregisteredResponse2 = operation.Responses["654"]; 323var unregisteredResponse3 = operation.Responses["1111"];
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
346return ValueTask.FromResult(_storage[key]);
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\TestServerVariablesFeature.cs (1)
19get => _variables[variableName];
Microsoft.AspNetCore.Routing (9)
Internal\DfaGraphWriter.cs (4)
77writer.WriteLine($"{label} -> {visited[literal.Value]} [label=\"/{literal.Key}\"]"); 83writer.WriteLine($"{label} -> {visited[node.Parameters]} [label=\"/*\"]"); 88writer.WriteLine($"{label} -> {visited[node.CatchAll]} [label=\"/**\"]"); 95writer.WriteLine($"{label} -> {visited[policy.Value]} [label=\"{policy.Key}\"]");
Matching\DfaMatcherBuilder.cs (1)
417nextParents.Add(parent.Literals[literal]);
Matching\HttpMethodMatcherPolicy.cs (2)
251edges[key].Add(endpoint); 258edges[key].Add(endpoint);
Matching\NegotiationMatcherPolicy.cs (1)
262var endpointsForType = edges[metadata];
Patterns\RoutePatternFactory.cs (1)
1057if (!combinedDictionary.TryAdd(key, value) && !Equals(combinedDictionary[key], value))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\CertificatePathWatcher.cs (2)
176var dirMetadata = _metadataForDirectory[Path.GetDirectoryName(path)!]; 238var dirMetadata = _metadataForDirectory[dir];
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (54)
CertificatePathWatcherTests.cs (2)
526var oldChangeToken = _changeTokens[path]; 543return new MockFileInfo(_lastModifiedTimes[subpath]);
ConnectionDispatcherTests.cs (1)
47Assert.Equal(connection.ConnectionId, pairs["ConnectionId"]);
SniOptionsSelectorTests.cs (17)
73Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]); 76Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]); 79Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]); 85Assert.Equal("WildcardOnly", pathDictionary[noSubdomainOptions.ServerCertificate]); 88Assert.Equal("WildcardOnly", pathDictionary[anotherTldOptions.ServerCertificate]); 130Assert.Equal("Long", pathDictionary[baSubdomainOptions.ServerCertificate]); 134Assert.Equal("Short", pathDictionary[aSubdomainOptions.ServerCertificate]); 176Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]); 179Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]); 182Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]); 225Assert.Equal("Exact", pathDictionary[wwwSubdomainOptions.ServerCertificate]); 228Assert.Equal("WildcardPrefix", pathDictionary[baSubdomainOptions.ServerCertificate]); 231Assert.Equal("WildcardPrefix", pathDictionary[aSubdomainOptions.ServerCertificate]); 240var fullChain = fullChainDictionary[aSubdomainOptions.ServerCertificate]; 288Assert.Equal("a", pathDictionary[aSubdomainOptions.ServerCertificate]); 291Assert.Equal("b", pathDictionary[bSubdomainOptions.ServerCertificate]); 381Assert.Equal("WildcardOnly", pathDictionary[options.ServerCertificate]);
src\Shared\test\Shared.Tests\runtime\Http2\HPackDecoderTest.cs (21)
119Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 121Assert.Equal(":method", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Key); 122Assert.Equal("GET", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Value); 133Assert.Equal(_headerValueString, _handler.DecodedHeaders[_userAgentString]); 135Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Key); 136Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Value); 147Assert.Equal(_headerValueString, _handler.DecodedHeaders[_headerNameString]); 418Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 434Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 450Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 466Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 482Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 498Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 534Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 549Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 599Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 632Assert.Equal(string8191, _handler.DecodedHeaders[string8191]); 633Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 657Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 682Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 846Assert.Equal(expectedHeaderValue, handler.DecodedHeaders[expectedHeaderName]);
src\Shared\test\Shared.Tests\runtime\Http3\QPackDecoderTest.cs (13)
77Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 79Assert.Equal(":method", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Key); 80Assert.Equal("GET", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Value); 92Assert.Equal(_headerValueString, _handler.DecodedHeaders[_contentTypeString]); 94Assert.Equal(_contentTypeString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Key); 95Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Value); 193Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 209Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 225Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 241Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 257Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 273Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 357Assert.Equal(expectedValue.Value, handler.DecodedHeaders[expectedValue.Key]);
Microsoft.AspNetCore.Shared.Tests (39)
CopyOnWriteDictionaryHolderTest.cs (2)
55Assert.Equal("value2", source["key2"]); 82Assert.Equal("value1", source["key1"]);
CopyOnWriteDictionaryTest.cs (2)
76Assert.Equal("value2", sourceDictionary["key2"]); 102Assert.Equal("value1", sourceDictionary["key1"]);
runtime\Http2\HPackDecoderTest.cs (21)
119Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 121Assert.Equal(":method", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Key); 122Assert.Equal("GET", _handler.DecodedStaticHeaders[H2StaticTable.MethodGet].Value); 133Assert.Equal(_headerValueString, _handler.DecodedHeaders[_userAgentString]); 135Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Key); 136Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H2StaticTable.UserAgent].Value); 147Assert.Equal(_headerValueString, _handler.DecodedHeaders[_headerNameString]); 418Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 434Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 450Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 466Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 482Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 498Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderNameString]); 534Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 549Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 599Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 632Assert.Equal(string8191, _handler.DecodedHeaders[string8191]); 633Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 657Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 682Assert.Equal(string8193, _handler.DecodedHeaders[string8193]); 846Assert.Equal(expectedHeaderValue, handler.DecodedHeaders[expectedHeaderName]);
runtime\Http3\QPackDecoderTest.cs (13)
77Assert.Equal("GET", _handler.DecodedHeaders[":method"]); 79Assert.Equal(":method", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Key); 80Assert.Equal("GET", _handler.DecodedStaticHeaders[H3StaticTable.MethodGet].Value); 92Assert.Equal(_headerValueString, _handler.DecodedHeaders[_contentTypeString]); 94Assert.Equal(_contentTypeString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Key); 95Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[H3StaticTable.ContentTypeApplicationDnsMessage].Value); 193Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 209Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 225Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 241Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 257Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 273Assert.Equal(_headerValueString, _handler.DecodedHeaders[_literalHeaderFieldString]); 357Assert.Equal(expectedValue.Value, handler.DecodedHeaders[expectedValue.Key]);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
108return ReadDictionary[key];
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (46)
HubConnectionTests.cs (46)
86var protocol = HubProtocols[protocolName]; 125var protocol = HubProtocols["json"]; 155var protocol = HubProtocols["json"]; 185var protocol = HubProtocols[protocolName]; 214var protocol = HubProtocols[protocolName]; 243var protocol = HubProtocols[protocolName]; 275var protocol = HubProtocols[protocolName]; 310var protocol = HubProtocols[protocolName]; 372var protocol = HubProtocols[protocolName]; 402var protocol = HubProtocols[protocolName]; 442var protocol = HubProtocols[protocolName]; 477var protocol = HubProtocols[protocolName]; 523var protocol = HubProtocols[protocolName]; 558var protocol = HubProtocols[protocolName]; 595var protocol = HubProtocols[protocolName]; 643var protocol = HubProtocols[protocolName]; 679var protocol = HubProtocols[protocolName]; 713var protocol = HubProtocols[protocolName]; 755var protocol = HubProtocols[protocolName]; 785var protocol = HubProtocols[protocolName]; 822var protocol = HubProtocols[protocolName]; 869var protocol = HubProtocols[protocolName]; 922var protocol = HubProtocols[protocolName]; 963var protocol = HubProtocols[protocolName]; 1004var protocol = HubProtocols[protocolName]; 1039var protocol = HubProtocols[protocolName]; 1067var hubProtocol = HubProtocols[hubProtocolName]; 1094var hubProtocol = HubProtocols[hubProtocolName]; 1121var hubProtocol = HubProtocols[hubProtocolName]; 1148var hubProtocol = HubProtocols[hubProtocolName]; 1175var hubProtocol = HubProtocols[hubProtocolName]; 1203var hubProtocol = HubProtocols[hubProtocolName]; 1231var hubProtocol = HubProtocols[hubProtocolName]; 1259var hubProtocol = HubProtocols[hubProtocolName]; 1286var hubProtocol = HubProtocols[hubProtocolName]; 1313var hubProtocol = HubProtocols[hubProtocolName]; 1349var protocol = HubProtocols[protocolName]; 1403var protocol = HubProtocols[protocolName]; 2322await using var connection = CreateHubConnection(server.Url, "/default", transportType, HubProtocols["json"], LoggerFactory); 2545var protocol = HubProtocols["json"]; 2604var protocol = HubProtocols["json"]; 2674var protocol = HubProtocols["json"]; 2746var protocol = HubProtocols["json"]; 2798var protocol = HubProtocols["json"]; 2848var protocol = HubProtocols["json"]; 2870connectionBuilder.Services.AddSingleton<IHubProtocol>(new HubProtocolVersionTests.SingleVersionHubProtocol(HubProtocols["json"], 1));
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HttpConnectionFactoryTests.cs (2)
112property.SetValue(options, testValues[property.Name]); 119Assert.Equal(testValues[property.Name], property.GetValue(shallowCopiedOptions));
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (11)
DefaultHubMessageSerializerTests.cs (2)
22var testData = _invocationTestData[testName]; 42var testData = _invocationTestData["Single supported protocol"];
RedisProtocolTests.cs (9)
37var testData = _ackTestData[testName]; 49var testData = _ackTestData[testName]; 69var testData = _groupCommandTestData[testName]; 85var testData = _groupCommandTestData[testName]; 144var testData = _invocationTestData[testName]; 176var testData = _invocationTestData[testName]; 191var testData = _invocationTestData[testName]; 254var testData = _completionMessageTestData[testName]; 266var testData = _completionMessageTestData[testName];
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTests.cs (2)
2470Assert.Equal("formattedString", result["Message"]); 2471Assert.Equal("formattedString", result["paramName"]);
UserAgentHeaderTest.cs (1)
18var testData = UserAgents[testDataName];
Microsoft.AspNetCore.WebUtilities (1)
KeyValueAccumulator.cs (1)
34_expandingAccumulator[key].Add(value);
Microsoft.AspNetCore.WebUtilities.Tests (94)
FormPipeReaderTests.cs (45)
21Assert.Equal("bar", formCollection[""].ToString()); 31Assert.Equal("bar", formCollection[""].ToString()); 32Assert.Equal("2", formCollection["baz"].ToString()); 42Assert.Equal("", formCollection["foo"].ToString()); 52Assert.Equal("", formCollection["foo"].ToString()); 62Assert.Equal("", formCollection["foo"].ToString()); 63Assert.Equal("2", formCollection["baz"].ToString()); 73Assert.Equal("", formCollection["foo"].ToString()); 74Assert.Equal("2", formCollection["baz"].ToString()); 96Assert.Equal("1", formCollection["foo"].ToString()); 97Assert.Equal("2", formCollection["bar"].ToString()); 98Assert.Equal("3", formCollection["baz"].ToString()); 139Assert.Equal("1", formCollection["fooooooooo"].ToString()); 140Assert.Equal("2", formCollection["bar"].ToString()); 141Assert.Equal("3,4", formCollection["baz"].ToString()); 167Assert.Equal("1", formCollection["foo"].ToString()); 168Assert.Equal("1234567890", formCollection["bar"].ToString()); 169Assert.Equal("3,4", formCollection["baz"].ToString()); 251Assert.Equal(expectedValue, form[key]); 268Assert.Equal("bar", dict["foo"]); 269Assert.Equal("boo", dict["baz"]); 286Assert.Equal("bar", dict["foo"]); 287Assert.Equal("boo", dict["baz"]); 288Assert.Equal("", dict["t"]); 308Assert.Equal("bar", dict["foo"]); 309Assert.Equal("boo", dict["baz"]); 310Assert.Equal("", dict["t"]); 327Assert.Equal("bar", dict["foo"]); 328Assert.Equal("boo", dict["baz"]); 329Assert.Equal("", dict["t"]); 349Assert.Equal("bar", dict["foo"]); 350Assert.Equal("boo", dict["baz"]); 351Assert.Equal("", dict["t"]); 368Assert.Equal("bar", dict["foo"]); 369Assert.Equal("bo" + new string('a', 128), dict["baz"]); 386Assert.Equal(" ", dict[" "]); 387Assert.Equal(" ", dict[" "]); 388Assert.Equal("", dict[" "]); 405Assert.Equal(" ", dict[" "]); 406Assert.Equal(" +", dict[" +"]); 407Assert.Equal("", dict[" "]); 424Assert.Equal("\"%-.<>\\^_`{|}~", dict["\"%-.<>\\^_`{|}~"]); 425Assert.Equal("wow", dict["\"%-.<>\\^_`{|}"]); 441Assert.Equal("bar", dict["foo"]); 442Assert.Equal("boo", dict["baz"]);
FormReaderTests.cs (16)
20Assert.Equal("bar", formCollection[""].ToString()); 32Assert.Equal("bar", formCollection[""].ToString()); 33Assert.Equal("2", formCollection["baz"].ToString()); 45Assert.Equal("", formCollection["foo"].ToString()); 57Assert.Equal("", formCollection["foo"].ToString()); 58Assert.Equal("2", formCollection["baz"].ToString()); 70Assert.Equal("1", formCollection["foo"].ToString()); 71Assert.Equal("2", formCollection["bar"].ToString()); 72Assert.Equal("3", formCollection["baz"].ToString()); 109Assert.Equal("1", formCollection["foo"].ToString()); 110Assert.Equal("2", formCollection["bar"].ToString()); 111Assert.Equal("3,4", formCollection["baz"].ToString()); 136Assert.Equal("1", formCollection["foo"].ToString()); 137Assert.Equal("1234567890", formCollection["bar"].ToString()); 138Assert.Equal("3,4", formCollection["baz"].ToString()); 202Assert.Equal(expectedValue, form[key]);
MultipartReaderTests.cs (19)
116Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 159Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 176Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 193Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 201Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]); 202Assert.Equal("text/plain", section.Headers["Content-Type"][0]); 219Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 227Assert.Equal("form-data; name=\"file1\"; filename=\"a色.txt\"", section.Headers["Content-Disposition"][0]); 228Assert.Equal("text/plain", section.Headers["Content-Type"][0]); 245Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 253Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]); 254Assert.Equal("text/plain", section.Headers["Content-Type"][0]); 262Assert.Equal("form-data; name=\"file2\"; filename=\"a.html\"", section.Headers["Content-Disposition"][0]); 263Assert.Equal("text/html", section.Headers["Content-Type"][0]); 292Assert.Equal("form-data; name=\"text\"", section.Headers["Content-Disposition"][0]); 300Assert.Equal("form-data; name=\"file1\"; filename=\"a.txt\"", section.Headers["Content-Disposition"][0]); 301Assert.Equal("text/plain", section.Headers["Content-Type"][0]); 339Assert.Equal("form-data; name=\"text\" filename=\"a\uFFFD!.txt\"", section.Headers["Content-Disposition"][0]); 374Assert.Equal("form-data; name=\"text\" filename=\"a\uFFFD\uFFFDU.txt\"", section.Headers["Content-Disposition"][0]);
QueryHelpersTests.cs (14)
15Assert.Equal("value1", collection["key1"].FirstOrDefault()); 16Assert.Equal("value2", collection["key2"].FirstOrDefault()); 24Assert.Equal("value1", collection["key1"].FirstOrDefault()); 25Assert.Equal("value2", collection["key2"].FirstOrDefault()); 33Assert.Equal(new[] { "valueA", "valueC" }, collection["key1"]); 34Assert.Equal("valueB", collection["key2"].FirstOrDefault()); 42Assert.Equal(string.Empty, collection["key1"].FirstOrDefault()); 43Assert.Equal(string.Empty, collection["key2"].FirstOrDefault()); 51Assert.Equal(new[] { "value1", "" }, collection[""]); 59Assert.Equal("", collection["fields [todoItems]"].FirstOrDefault()); 67Assert.Equal("fields [todoItems]", collection[""].FirstOrDefault()); 75Assert.Equal("", collection["fields [todoItems]"].FirstOrDefault()); 83Assert.Equal("[ 1 ]", collection["fields [todoItems]"].FirstOrDefault()); 91Assert.Equal(new[] { "[ 1 ]", "[ 2 ]" }, collection["fields [todoItems]"]);
Microsoft.Build (71)
BackEnd\BuildManager\BuildManager.cs (1)
2071ProjectGraphNode finishedNode = buildingNodes[finishedBuildSubmission];
BackEnd\BuildManager\CacheAggregator.cs (1)
94configIdMapping[result.ConfigurationId],
BackEnd\Components\BuildComponentFactoryCollection.cs (3)
113BuildComponentEntry existingEntry = _componentEntriesByType[componentType]; 124BuildComponentEntry existingEntry = _componentEntriesByType[componentType]; 135ErrorUtilities.VerifyThrow(_componentEntriesByType[componentType].Pattern == CreationPattern.Singleton, "Previously existing factory for type {0} was not a singleton factory.", componentType);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
399BuildRequestEntry entry = _requestsByGlobalRequestId[unblocker.BlockedRequestId]; 479BuildRequestEntry entry = _requestsByGlobalRequestId[response.GlobalRequestId];
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
519_unresolvedConfigurations[newRequest.ConfigurationId].Add(newRequest);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
188SendData(_nodeContexts[hostContext], packet); 502NodeContext context = _nodeContexts[hostContext];
BackEnd\Components\Logging\LoggingService.cs (1)
1017EventSourceSink eventSource = (EventSourceSink)_eventSinkDictionary[_centralForwardingLoggerSinkId];
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (5)
534discreteTargetInputItemSpecs.AddRange(GetItemSpecsFromItemVectors(itemVectorsInTargetInputs, itemVectorType, itemVectorsInTargetInputs[itemVectorType])); 605ItemVectorPartition inputItemVectors = itemVectorsInTargetInputs[itemVectorType]; 606ItemVectorPartition outputItemVectors = itemVectorsInTargetOutputs[itemVectorType]; 847ItemVectorPartition itemVectorPartition = itemVectorCollection[itemVectorType]; 849ErrorUtilities.VerifyThrow(!itemVectorCollection[itemVectorType].ContainsKey(item), "ItemVectorPartition already contains a vector for items with the expression '{0}'", item);
BackEnd\Components\Scheduler\SchedulableRequest.cs (3)
305return _timeRecords[desiredState].AccumulatedTime; 476_timeRecords[_state].EndState(currentTime); 477_timeRecords[newState].StartState(currentTime);
BackEnd\Components\Scheduler\Scheduler.cs (12)
1166if (_availableNodes[nodeId].CanServiceRequestWithAffinity(nodeAffinity)) 1300configurationCountLimit += configurationCountsByNode[availableNodeId]; 1309return Comparer<int>.Default.Compare(configurationCountsByNode[left], configurationCountsByNode[right]); 1334if (request.AssignedNode == nodeId || requiredNodeId == nodeId || configurationCountsByNode[nodeId] <= configurationCountLimit) 1340else if (configurationCountsByNode[nodeId] > configurationCountLimit) 1342TraceScheduler("Chose not to assign request {0} to node {2} because its count of configurations ({3}) exceeds the current limit ({4}).", request.BuildRequest.GlobalRequestId, request.BuildRequest.ConfigurationId, nodeId, configurationCountsByNode[nodeId], configurationCountLimit); 1364bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1455bool result = _availableNodes[nodeId].CanServiceRequestWithAffinity(affinity); 1731if (!_availableNodes[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request))) 1741existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 2365int nodeForEvent = availableNodeIdsToIndex[buildEvent.Request.AssignedNode];
BackEnd\Components\Scheduler\SchedulingData.cs (13)
294_buildHierarchy[parent].Add(request); 327_readyRequestsByNode[request.AssignedNode].Remove(request); 331LinkedListNode<SchedulableRequest> requestNode = _unscheduledRequestNodesByRequest[request]; 380ErrorUtilities.VerifyThrow(_configurationToRequests[request.BuildRequest.ConfigurationId].Count > 0, "Configuration {0} has no requests assigned to it.", request.BuildRequest.ConfigurationId); 381_configurationToRequests[request.BuildRequest.ConfigurationId].Remove(request); 392ErrorUtilities.VerifyThrow(!_executingRequestByNode.ContainsKey(request.AssignedNode) || _executingRequestByNode[request.AssignedNode] == null, "Node {0} is currently executing a request.", request.AssignedNode); 431return _configurationToRequests[configurationId]; 454return _executingRequests[globalRequestId]; 463return _blockedRequests[globalRequestId]; 486return _yieldingRequests[globalRequestId]; 495return _readyRequests[globalRequestId]; 554return _executingRequestByNode[nodeId]; 628return _buildHierarchy[root];
BackEnd\Components\Scheduler\SchedulingPlan.cs (7)
276projectsInOrderOfReference.Sort(delegate (int left, int right) { return -Comparer<int>.Default.Compare(_configIdToPaths[left].Count, _configIdToPaths[right].Count); }); 279Console.WriteLine("{0}: {1} {2}", configId, _configIdToPaths[configId].Count, _configIdToData[configId].ConfigFullPath); 342List<Stack<PlanConfigData>> pathsByLength = _configIdToPaths[config.ConfigId]; 381PlanConfigData parent = _configIdToData[configId]; 386PlanConfigData child = _configIdToData[childId];
Collections\HashTableUtility.cs (1)
53comparison = String.Compare(h1Entry.Value, h2[h1Entry.Key],
Collections\WeakValueDictionary.cs (2)
89WeakReference<V> wrappedValue = _dictionary[key]; 103wrappedValue = _dictionary[key];
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (3)
71ItemDataCollectionValue<I> oldDictionaryEntry = _dictionaryBuilder[oldNormalizedValue]; 82ItemDataCollectionValue<I> newDictionaryEntry = _dictionaryBuilder[newNormalizedValue]; 89ItemDataCollectionValue<I> dictionaryEntry = _dictionaryBuilder[newNormalizedValue];
Evaluation\Preprocessor.cs (1)
149imports = _implicitImportsByProject[resolvedImport.ImportingElement.XmlDocument];
Graph\GraphBuilder.cs (5)
92EntryPointNodes = _entryPointConfigurationMetadata.Select(e => allParsedProjects[e].GraphNode).ToList(); 148allParsedProjects[referenceInfo.ReferenceConfiguration].GraphNode, 155foreach (var transitiveProjectReference in GetTransitiveProjectReferencesExcludingSelf(allParsedProjects[referenceInfo.ReferenceConfiguration])) 186ParsedProject reference = allParsedProjects[referenceInfo.ReferenceConfiguration]; 210projectsByPath[projectPath].Add(project.Value.GraphNode);
Graph\ProjectGraph.cs (1)
714targetLists[node] = targetLists[node].AddRange(requestedTargets);
Instance\ProjectInstance.cs (1)
3245multiDictionary.Add(item.EvaluatedInclude, projectItemToInstanceMap[item]);
Logging\ProfilerLogger.cs (1)
165AggregateProfiledLocation(profiledLocation, _aggregatedLocations[evaluationLocation]));
NodePacketFactory.cs (1)
66PacketFactoryRecord record = _packetFactories[packet.Type];
PlatformNegotiation.cs (4)
65projectReferencePlatforms.Contains(projectReferenceLookupTable[currentProjectPlatform])) 67buildProjectReferenceAs = projectReferenceLookupTable[currentProjectPlatform]; 73projectReferencePlatforms.Contains(currentProjectLookupTable[currentProjectPlatform])) 75buildProjectReferenceAs = currentProjectLookupTable[currentProjectPlatform];
Microsoft.Build.BuildCheck.UnitTests (3)
ConfigurationProvider_Tests.cs (2)
62configs["property2"].ShouldBe("value2"); 63configs["property1"].ShouldBe("value1");
EditorConfigParser_Tests.cs (1)
57mergedResult["property1"].ShouldBe("value1");
Microsoft.Build.Engine (48)
Collections\HashTableUtility.cs (1)
53comparison = String.Compare(h1Entry.Value, h2[h1Entry.Key],
Engine\BuildTask.cs (1)
256"MissingTaskError", taskName, parentEngine.ToolsetStateMap[ParentTarget.ParentProject.ToolsVersion].ToolsPath);
Engine\Engine.cs (3)
484return this.ToolsetStateMap[this.defaultToolsVersion].ToolsPath; 889ToolsetState toolsetState = toolsetStateMap[toolsetVersion]; 929buildProperties = toolsetStateMap[toolsVersion].BuildProperties.Clone(true /* deep clone */);
Engine\EngineCallback.cs (1)
414return parentEngine.ToolsetStateMap[executionContext.ParentProject.ToolsVersion].ToolsPath;
Engine\EngineLoggingServicesInProc.cs (3)
74eventSources[loggerId].RaiseStronglyTypedEvent(nodeLoggingEvent.BuildEvent); 117eventSources[LOCAL_FORWARDING_EVENTSOURCE].RaiseStronglyTypedEvent(buildEventArgs); 134eventSources[loggerId].UnregisterAllLoggers();
Engine\Project.cs (1)
916return this.ParentEngine.ToolsetStateMap[ToolsVersion];
Engine\Scheduler.cs (8)
227ScheduleRecord parentRecord = handleIdToScheduleRecord[parentKey]; 258scheduleRecord = handleIdToScheduleRecord[recordKey]; 266ScheduleRecord parentRecord = handleIdToScheduleRecord[scheduleRecord.ParentKey]; 352handleIdToScheduleRecord[recordKey].Blocked = true; 353blockedRequestsPerNode[handleIdToScheduleRecord[recordKey].EvaluationNode]++; 371handleIdToScheduleRecord[recordKey].Blocked = false; 372blockedRequestsPerNode[handleIdToScheduleRecord[recordKey].EvaluationNode]--; 403ScheduleRecord record = handleIdToScheduleRecord[key];
Engine\ToolsetCollection.cs (1)
77return this.toolsetMap[toolsVersion].Clone();
ItemsAndProperties\Lookup.cs (1)
1017Dictionary<BuildItem, Dictionary<string, string>> tableOfItemsOfSameType = table[item.Name];
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (15)
280if (forwardingTable[BuildStartedEventDescription] == 1) 294if (forwardingTable[BuildFinishedEventDescription] == 1) 308if (forwardingTable[ProjectStartedEventDescription] == 1) 321if (forwardingTable[ProjectFinishedEventDescription] == 1) 334if (forwardingTable[TargetStartedEventDescription] == 1) 347if (forwardingTable[TargetFinishedEventDescription] == 1) 360if (forwardingTable[TaskStartedEventDescription] == 1) 373if (forwardingTable[TaskFinishedEventDescription] == 1) 384if (forwardingTable[ErrorEventDescription] == 1) 395if (forwardingTable[WarningEventDescription] == 1) 408if (forwardingTable[LowMessageEventDescription] == 1 && e.Importance == MessageImportance.Low) 412else if (forwardingTable[NormalMessageEventDescription] == 1 && e.Importance == MessageImportance.Normal) 416else if (forwardingTable[HighMessageEventDescription] == 1 && e.Importance == MessageImportance.High) 420else if (forwardingTable[CommandLineDescription] == 1 && e is TaskCommandLineEventArgs) 436if (forwardingTable[CustomEventDescription] == 1)
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
429groupByProjectEntryPoint[key].Add(errorWarningEventArgs); 502foreach (BuildMessageEventArgs message in deferredMessages[e.BuildEventContext]) 999messageList = deferredMessages[e.BuildEventContext]; 1564elapsedTime += (TimeSpan.FromTicks(eventTimeStamp.Ticks - (long)startedEvent[buildEventContext]));
Logging\ParallelLogger\ParallelLoggerHelpers.cs (4)
65projectIncrementKeyLocal = projectKey[e.ProjectFile]; 78projectTargetKeyLocal = projectTargetKey[e.ProjectFile] + 1; 183buildEvent = projectStartedEvents[e]; 200buildEvent = targetStartedEvents[e];
Solution\SolutionWrapperProject.cs (5)
1725foreach (ProjectInSolution proj in projectsByDependencyLevel[dependencyLevel]) 2051project.ProjectConfigurations[fullSolutionConfigurationName].ConfigurationName, true /* treat as literal */); 2053project.ProjectConfigurations[fullSolutionConfigurationName].PlatformName, true /* treat as literal */); 2115project.IsStaticLibrary = VCProjectParser.IsStaticLibrary(doc, project.ProjectConfigurations[fullSolutionConfigurationName].FullName); 2265projectsByDependencyLevel[maxDependencyLevel].Add(project);
Microsoft.Build.Engine.OM.UnitTests (5)
Construction\ProjectTaskElement_Tests.cs (4)
143Assert.Equal("v1", parameters["p1"]); 144Assert.Equal("v2", parameters["p2"]); 162Assert.Equal("v1b", parameters["p1"]); 230Assert.Equal("v2", parameters["p2"]);
Instance\ProjectItemInstance_Tests.cs (1)
1204Assert.Equal(expected[key], item.GetMetadataValue(key));
Microsoft.Build.Engine.UnitTests (97)
BackEnd\BinaryTranslator_Tests.cs (16)
439Assert.Equal(value["foo"], deserializedValue["foo"]); 440Assert.Equal(value["alpha"], deserializedValue["alpha"]); 441Assert.Equal(value["FOO"], deserializedValue["FOO"]); 477Assert.Equal(0, BaseClass.Comparer.Compare(value["foo"], deserializedValue["foo"])); 478Assert.Equal(0, BaseClass.Comparer.Compare(value["alpha"], deserializedValue["alpha"])); 479Assert.Equal(0, BaseClass.Comparer.Compare(value["FOO"], deserializedValue["FOO"])); 516Assert.Equal(0, BaseClass.Comparer.Compare(value["foo"], deserializedValue["foo"])); 517Assert.Equal(0, BaseClass.Comparer.Compare(value["alpha"], deserializedValue["alpha"]));
BackEnd\NodeEndpointInProc_Tests.cs (4)
266Assert.Equal(LinkStatus.Active, _linkStatusTable[endpoints.NodeEndpoint].status); 267Assert.Equal(LinkStatus.Active, _linkStatusTable[endpoints.ManagerEndpoint].status); 416Assert.Equal(LinkStatus.Inactive, _linkStatusTable[endpoints.NodeEndpoint].status); 417Assert.Equal(LinkStatus.Inactive, _linkStatusTable[endpoints.ManagerEndpoint].status);
BackEnd\RequestedProjectState_Tests.cs (2)
83items["item2"].Add("metadatum4"); 84clone.ItemFilters["item2"].Count.Should().NotBe(items["item2"].Count);
BackEnd\TaskExecutionHost_Tests.cs (9)
342Assert.Equal(1, ((int[])_parametersSetOnTask["IntArrayParam"])[0]); 343Assert.Equal(0, ((int[])_parametersSetOnTask["IntArrayParam"])[1]); 1368Assert.Equal(expectedValue, _parametersSetOnTask[parameterName]); 1380ITaskItem actualItem = _parametersSetOnTask[parameterName] as ITaskItem; 1394ITaskItem actualItem = _parametersSetOnTask[parameterName] as ITaskItem; 1407ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[]; 1421ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[]; 1439ITaskItem[] actualItems = _parametersSetOnTask[parameterName] as ITaskItem[]; 1458Array actualArray = _parametersSetOnTask[parameterName] as Array;
BackEnd\TaskHostConfiguration_Tests.cs (8)
525Assert.Equal(config.TaskParameters["Text"].WrappedParameter, deserializedConfig.TaskParameters["Text"].WrappedParameter); 526Assert.Equal(config.TaskParameters["BoolValue"].WrappedParameter, deserializedConfig.TaskParameters["BoolValue"].WrappedParameter); 574TaskHostPacketHelpers.AreEqual((ITaskItem)config.TaskParameters["TaskItemValue"].WrappedParameter, (ITaskItem)deserializedConfig.TaskParameters["TaskItemValue"].WrappedParameter); 623ITaskItem[] itemArray = (ITaskItem[])config.TaskParameters["TaskItemArrayValue"].WrappedParameter; 624ITaskItem[] deserializedItemArray = (ITaskItem[])deserializedConfig.TaskParameters["TaskItemArrayValue"].WrappedParameter;
BackEnd\TaskHostTaskComplete_Tests.cs (8)
176Assert.Equal(complete.TaskOutputParameters["Text"].WrappedParameter, deserializedComplete.TaskOutputParameters["Text"].WrappedParameter); 177Assert.Equal(complete.TaskOutputParameters["BoolValue"].WrappedParameter, deserializedComplete.TaskOutputParameters["BoolValue"].WrappedParameter); 203TaskHostPacketHelpers.AreEqual((ITaskItem)complete.TaskOutputParameters["TaskItemValue"].WrappedParameter, (ITaskItem)deserializedComplete.TaskOutputParameters["TaskItemValue"].WrappedParameter); 230ITaskItem[] itemArray = (ITaskItem[])complete.TaskOutputParameters["TaskItemArrayValue"].WrappedParameter; 231ITaskItem[] deserializedItemArray = (ITaskItem[])deserializedComplete.TaskOutputParameters["TaskItemArrayValue"].WrappedParameter;
BuildEnvironmentHelper_Tests.cs (1)
553return _mockEnvironment.ContainsKey(variable) ? _mockEnvironment[variable] : null;
Collections\OMcollections_tests.cs (1)
285Assert.Equal(convertedValues[value.Key], value.Value);
Definition\Toolset_Tests.cs (1)
165Assert.Equal(@"c:\foo", t2.ImportPropertySearchPathsTable["MSBuildExtensionsPath"].SearchPaths[0]);
Definition\ToolsetConfigurationReader_Tests.cs (2)
566Dictionary<string, ProjectImportPathMatch> pathsTable = toolsets["2.0"].ImportPropertySearchPathsTable; 586var paths = pathsTable[kind];
Definition\ToolsVersion_Tests.cs (1)
955string xmlContents = _defaultTasksFileMap[path];
ExpressionTree_Tests.cs (14)
348List<string> properties = conditionedProperties["foo"]; 353properties = conditionedProperties["foo"]; 358properties = conditionedProperties["foo"]; 360properties = conditionedProperties["branch"]; 362properties = conditionedProperties["build"]; 364properties = conditionedProperties["platform"]; 369properties = conditionedProperties["foo"]; 371properties = conditionedProperties["branch"]; 373properties = conditionedProperties["build"]; 375properties = conditionedProperties["platform"]; 380properties = conditionedProperties["foo"]; 382properties = conditionedProperties["branch"]; 384properties = conditionedProperties["build"]; 386properties = conditionedProperties["platform"];
Graph\GraphLoadedFromSolution_tests.cs (1)
731var expectedProjectConfiguration = actualProjectConfigurations[GetProjectNumber(node).ToString()][expectedCurrentConfiguration];
Graph\IsolateProjects_Tests.cs (4)
337var deserializedOutputCacheDeclaredReference = CacheSerialization.DeserializeCaches(outputCaches[topoSortedProjectGraphNodes[0]]); 338var deserializedOutputCacheRoot = CacheSerialization.DeserializeCaches(outputCaches[topoSortedProjectGraphNodes[1]]); 349MockLogger rootLogger = results["1"].Logger; 350MockLogger declaredReferenceLogger = results["2"].Logger;
Graph\ProjectGraph_Tests.cs (3)
1613results["2"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 1614BuildResult project1BuildResult = results["1"].Result; 1616MockLogger project1MockLogger = results["1"].Logger;
Graph\ResultCacheBasedBuilds_Tests.cs (17)
330(node, localExpectedOutput) => localExpectedOutput[node].Skip(1).ToArray()); 351var outputCache = outputCaches[rootNode]; 363rootNodeBuildResult.ResultsByTarget["Build"].Items.Select(i => i.ItemSpec).ToArray().ShouldBe(expectedOutput[rootNode]); 393results["3"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 394results["2"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 396results["1"].Result.OverallResult.ShouldBe(BuildResultCode.Failure); 397results["1"].Logger.ErrorCount.ShouldBe(1); 398results["1"].Logger.Errors.First().Message.ShouldContain("MSB4252"); 400results["1"].Logger.Errors.First().BuildEventContext.NodeId.ShouldNotBe(BuildEventContext.InvalidNodeId); 401results["1"].Logger.Errors.First().BuildEventContext.ProjectInstanceId.ShouldNotBe(BuildEventContext.InvalidProjectInstanceId); 402results["1"].Logger.Errors.First().BuildEventContext.ProjectContextId.ShouldNotBe(BuildEventContext.InvalidProjectContextId); 403results["1"].Logger.Errors.First().BuildEventContext.TargetId.ShouldNotBe(BuildEventContext.InvalidTargetId); 404results["1"].Logger.Errors.First().BuildEventContext.TaskId.ShouldNotBe(BuildEventContext.InvalidTaskId); 435expectedOutputProducer ??= ((node, expectedOutputs) => expectedOutputs[node]); 452var cacheFilesForReferences = node.ProjectReferences.Where(r => outputCaches.ContainsKey(r)).Select(r => outputCaches[r]).ToArray(); 463buildParameters.OutputResultsCacheFile = outputCaches[node]; 498foreach (var referenceOutput in node.ProjectReferences.SelectMany(n => expectedNodeBuildOutput[n]))
InternalEngineHelpers.cs (1)
149? factory.IndicateSuccess(_mapping[sdkReference.Name], null)
SolutionFileBuilder.cs (4)
121projectInfos[parent].AddDependency(projectInfos[dependency]); 130projectInfos[parent].AddGuidDependencies(dependencyGuids); 192foreach (var configurationMapping in ProjectConfigurations[project.Key])
Microsoft.Build.Framework (2)
Profiler\EvaluationLocation.cs (2)
132PassDefaultDescription[EvaluationPass.TotalGlobbing], file: null, kind: EvaluationLocationKind.Glob, 188return new EvaluationLocation(this.Id, evaluationPass, passDescription ?? PassDefaultDescription[evaluationPass],
Microsoft.Build.Tasks.Core (18)
AssemblyDependency\ReferenceTable.cs (2)
1508Reference primaryAssemblyReference = References[primaryAssemblyName]; 1915assemblyNamesList.Add(fullNameToReference[versionLessAssemblyName]);
BootstrapperUtil\BootstrapperBuilder.cs (1)
747_products.Add(availableProducts[p.ProductCode]);
ManifestUtil\ApplicationManifest.cs (2)
668else if (!targetPathList[key]) 714else if (!targetPathList[key])
ManifestUtil\Manifest.cs (1)
637else if (!identityList[key])
PlatformNegotiation.cs (4)
65projectReferencePlatforms.Contains(projectReferenceLookupTable[currentProjectPlatform])) 67buildProjectReferenceAs = projectReferenceLookupTable[currentProjectPlatform]; 73projectReferencePlatforms.Contains(currentProjectLookupTable[currentProjectPlatform])) 75buildProjectReferenceAs = currentProjectLookupTable[currentProjectPlatform];
RedistList.cs (1)
1061return s_subsetListPathCache[key];
ResolveSDKReference.cs (1)
484if (referencesToAddMetadata.ContainsKey(sdkSimpleName) && referencesToAddMetadata[sdkSimpleName].Equals(rawSdkVersion, StringComparison.InvariantCultureIgnoreCase))
XamlTaskFactory\CommandLineGenerator.cs (3)
323return !String.IsNullOrEmpty(_activeCommandLineToolSwitches[propertyName].Name); 605CommandLineToolSwitch property = _activeCommandLineToolSwitches[propertyName]; 717CommandLineToolSwitch property = _activeCommandLineToolSwitches[propertyName];
XamlTaskFactory\TaskGenerator.cs (1)
1025rel = _relationsParser.SwitchRelationsList[property.ReverseSwitchName];
XamlTaskFactory\XamlDataDrivenToolTask.cs (2)
177return !String.IsNullOrEmpty(ActiveToolSwitches[propertyName].Name); 408switchValue.Append(separator).Append(ActiveToolSwitches[argName]);
Microsoft.Build.Tasks.UnitTests (45)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (4)
131cache2["path2"].Assembly.Name.ShouldBe(cache["path2"].Assembly.Name); 132SystemState.FileState dll = cache["dllName"]; 133SystemState.FileState dll2 = cache2["dllName"];
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
1043uniqueGetAssemblyName[lowerPath] = (int)uniqueGetAssemblyName[lowerPath] + 1;
GetInstalledSDKLocations_Tests.cs (18)
296Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=1.0"]); 297Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=2.0"]); 298Assert.Equal("2.0", sdksAndVersions["MyAssembly, Version=3.0"]); 299Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=4.0"]); 300Assert.Equal("1.0", sdksAndVersions["MyAssembly, Version=5.0"]); 301Assert.Equal("2.0", sdksAndVersions["MyAssembly, Version=6.0"]); 347extensionSDKs["MyAssembly, Version=1.0"]); 353extensionSDKs["MyAssembly, Version=2.0"]); 359extensionSDKs["MyAssembly, Version=3.0"]); 366extensionSDKs["MyAssembly, Version=4.0"]); 372extensionSDKs["MyAssembly, Version=5.0"]); 378extensionSDKs["MyAssembly, Version=6.0"]); 421extensionSDKs["MyAssembly, Version=1.0"]); 427extensionSDKs["MyAssembly, Version=2.0"]); 433extensionSDKs["MyAssembly, Version=3.0"]); 440extensionSDKs["MyAssembly, Version=4.0"]); 446extensionSDKs["MyAssembly, Version=5.0"]); 452extensionSDKs["MyAssembly, Version=6.0"]);
MockUnmanagedMemoryHelper.cs (4)
52_dependentAllocations[_mainAllocationHandle].Add(handle); 76while (_dependentAllocations[handle].Count > 0) 78Marshal.FreeHGlobal(_dependentAllocations[handle][0]); 79_dependentAllocations[handle].RemoveAt(0);
PropertyParser_Tests.cs (16)
37Assert.Equal("Debug", propertiesTable["Configuration"]); 56Assert.Equal("Debug", propertiesTable["Configuration"]); 57Assert.Equal("AnyCPU", propertiesTable["Platform"]); 58Assert.Equal("Lab22Dev", propertiesTable["VBL"]); 76Assert.Equal("Debug", propertiesTable["Configuration"]); 77Assert.Equal("AnyCPU", propertiesTable["Platform"]); 95Assert.Equal("", propertiesTable["Configuration"]); 96Assert.Equal("", propertiesTable["Platform"]); 132Assert.Equal("Clean; Build", propertiesTable["DependsOn"]); 149Assert.Equal("CleanBuild", propertiesTable["Depends On"]); 165Assert.Equal("Debug", propertiesTable["Configuration"]); 166Assert.Equal("Any CPU", propertiesTable["Platform"]); 182Assert.Equal("1234;5678;9999", propertiesTable["WarningsAsErrors"]); 183Assert.Equal("Debug", propertiesTable["Configuration"]); 199Assert.Equal(@"c:\Rajeev%3bs Stuff\binaries", propertiesTable["OutDir"]); 200Assert.Equal("Debug", propertiesTable["Configuration"]);
RARPrecomputedCache_Tests.cs (1)
145SystemState.FileState assembly3 = rarReaderTask._cache.instanceLocalFileStateCache[dllName];
ResourceHandling\GenerateResource_Tests.cs (1)
3649Assert.Equal(resxValue, valuesFromResource[resxDataName]);
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (1)
476item.GetMetadataValue(key).ShouldBe(expected[key]);
TestEnvironment.cs (1)
585Environment.SetEnvironmentVariable(key, tempPaths[key]);
Microsoft.Build.Utilities.Core (2)
MuxLogger.cs (1)
316int value = _submissionProjectsInProgress[e.BuildEventContext.SubmissionId];
ToolLocationHelper.cs (1)
539return targetPlatformMoniker.ExtensionSDKs[sdkMoniker];
Microsoft.Build.Utilities.UnitTests (52)
ToolLocationHelper_Tests.cs (52)
3793targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2); 3794targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3795targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3796targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "v1.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3797targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=2.0"); 3798targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=2.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0", "ExtensionSDKs", "MyAssembly", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3801targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(2); 3802targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3803targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=3.0"); 3804targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=3.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3805targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=4.0"); 3806targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=4.0"].ShouldBe(Path.Combine(_fakeStructureRoot2, "Windows", "2.0", "ExtensionSDKs", "MyAssembly", "4.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3813targetPlatforms[key].Path.ShouldBeNull(); 3814targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3815targetPlatforms[key].ExtensionSDKs.ShouldContainKey("AnotherAssembly, Version=1.0"); 3816targetPlatforms[key].ExtensionSDKs["AnotherAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "4.0", "ExtensionSDKs", "AnotherAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3819targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3820targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3821targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3822targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3825targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(1); 3826targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3827targetPlatforms[key].ExtensionSDKs.ShouldContainKey("MyAssembly, Version=1.0"); 3828targetPlatforms[key].ExtensionSDKs["MyAssembly, Version=1.0"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0", "ExtensionSDKs", "MyAssembly", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3831targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3832targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3835targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "8.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3836targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3837targetPlatforms[key].Platforms.Count.ShouldBe(3); 3838targetPlatforms[key].ContainsPlatform("PlatformAssembly", "0.1.2.3").ShouldBeTrue(); 3839targetPlatforms[key].Platforms["PlatformAssembly, Version=0.1.2.3"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "8.0", "Platforms", "PlatformAssembly", "0.1.2.3") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3840targetPlatforms[key].ContainsPlatform("PlatformAssembly", "1.2.3.0").ShouldBeTrue(); 3841targetPlatforms[key].ContainsPlatform("Sparkle", "3.3.3.3").ShouldBeTrue(); 3844targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "9.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 3845targetPlatforms[key].ExtensionSDKs.Count.ShouldBe(0); 3846targetPlatforms[key].Platforms.Count.ShouldBe(1); 3847targetPlatforms[key].ContainsPlatform("PlatformAssembly", "0.1.2.3").ShouldBeTrue(); 3848targetPlatforms[key].Platforms["PlatformAssembly, Version=0.1.2.3"].ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "9.0", "Platforms", "PlatformAssembly", "0.1.2.3") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4064targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4067targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "Windows", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4070targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "3.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4073targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "2.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase); 4076targetPlatforms[key].Path.ShouldBe(Path.Combine(_fakeStructureRoot, "MyPlatform", "1.0") + Path.DirectorySeparatorChar, StringCompareShould.IgnoreCase);
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
69runtimeItems[runtimeName] = runtimeItems[runtimeName].Concat(items);
Microsoft.DotNet.Build.Tasks.Packaging (23)
GeneratePackageReport.cs (5)
168version = _targetPathToPackageItem[AggregateNuGetAssetResolver.AsPackageSpecificTargetPath(PackageId, refAssm)].Version?.ToString() ?? version; 305packageItems[packageId].Add(packageItem); 326Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageItem.SourcePath} have the same TargetPath {packageSpecificTargetPath}."); 336_resolver.AddPackageItems(packageId, packageItems[packageId].Select(f => f.TargetPath)); 344var filesWithoutPlaceholders = packageItems[PackageId]
GetApplicableAssetsFromPackages.cs (5)
102.Select(ca => _targetPathToPackageItem[ca]); 126.Select(ra => _targetPathToPackageItem[ra]); 165_packageToPackageItems[packageItem.Package].Add(packageItem); 185Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageFile.SourcePath} have the same TargetPath {packageSpecificTargetPath}."); 194_resolver.AddPackageItems(packageId, _packageToPackageItems[packageId].Select(f => f.TargetPath));
GetLastStablePackage.cs (1)
125LastStablePackages = lastStablePackages.Select(p => CreateItem(originalItems[p.Key], p.Value)).ToArray();
HarvestPackage.cs (2)
161string packagePath = _packageFolders[PackageId]; 268string pathToPackage = _packageFolders[PackageId];
NuGetAssetResolver.cs (5)
182_packages[packageId].Load(packageItems); 198_packages[package].FindBestItemGroup(managedCriteria, 248_packages[package].FindBestItemGroup(managedCriteria, 266_packages[package].FindBestItemGroup(managedCriteria, 281_packages[package].PopulateItemGroups(_conventions.Patterns.RuntimeAssemblies, contentItemGroups);
NugetPropertyStringProvider.cs (1)
38return k => propertyDictionary[k];
PromoteDependencies.cs (2)
67promotedDependencies.AddRange(CopyDependencies(libSets[nearestLibFx], refFx)); 81promotedDependencies.AddRange(CopyDependencies(refSets[nearestRefFx], libFx));
ValidatePackage.cs (2)
332Log.LogError($"{ContractName} includes both {implementationAssembly.LocalPath} and {implementationFiles[fileName].LocalPath} an on {target} which have the same name and will clash when both packages are used."); 489_frameworks[fx].RuntimeIds = runtimeIdList.Split(';');
Microsoft.DotNet.Build.Tasks.Workloads (22)
CreateVisualStudioWorkload.wix.cs (18)
159else if (_supportsMachineArch[manifestPackage.SdkFeatureBand] != manifestPackage.SupportsMachineArch) 163Log.LogWarning($"{_supportsMachineArch} was previously set to {_supportsMachineArch[manifestPackage.SdkFeatureBand]}"); 221WorkloadPack pack = manifest.Packs[packId]; 259if (!buildData[sourcePackage].FeatureBands.ContainsKey(platform)) 261buildData[sourcePackage].FeatureBands[platform] = new(); 264_ = buildData[sourcePackage].FeatureBands[platform].Add(manifestPackage.SdkFeatureBand); 270packsInWorkloadByPlatform[platform].Add(buildData[sourcePackage].Package); 301groupPackage.ManifestsPerPlatform[platform].Add(manifestPackage); 356foreach (ReleaseVersion sdkFeatureBand in data.FeatureBands[platform]) 359if (_supportsMachineArch[sdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 361MsiSwixProject swixProject = _supportsMachineArch[sdkFeatureBand] ? 405PossiblyParallelForEach(!DisableParallelPackageGroupProcessing, packGroup.ManifestsPerPlatform[platform], manifestPackage => 408if (_supportsMachineArch[manifestPackage.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 410MsiSwixProject swixProject = _supportsMachineArch[manifestPackage.SdkFeatureBand] ? 437if (_supportsMachineArch[msi.Package.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 441MsiSwixProject swixProject = _supportsMachineArch[msi.Package.SdkFeatureBand] ?
Swix\SwixComponent.cs (1)
205component.AddDependency(manifest.Packs[packId]);
Utils.cs (1)
75content = content.Replace(token, tokenReplacements[token]);
Wix\HarvesterToolTask.cs (1)
132CommandLineBuilder.AppendSwitch(s_SuppressionArguments[suppression]);
WorkloadPackPackage.wix.cs (1)
71string sourcePackage = Path.Combine(packageSource, $"{pack.AliasTo[rid]}.{pack.Version}.nupkg");
Microsoft.DotNet.CodeAnalysis (4)
Analyzers\PinvokeAnalyzer.cs (4)
113if (AllowedPinvokes[methodName].Equals(moduleName, StringComparison.OrdinalIgnoreCase)) 117altMsg = String.Format(NotSupportedOnWin7, AllowedPinvokes[methodName] + "!" + methodName); 126altMsg = String.Format(AltMsgString, AllowedPinvokes[methodName] + "!" + methodName); 130return (ExceptionPinvokes.ContainsKey(methodName) && ExceptionPinvokes[methodName].Equals(moduleName, StringComparison.OrdinalIgnoreCase));
Microsoft.DotNet.Helix.Client (1)
generated-code\PagedResponse.cs (1)
116var rel = props["rel"];
Microsoft.DotNet.PackageTesting (4)
GetCompatiblePackageTargetFrameworks.cs (2)
69frameworksToTest.AddRange(packageTfmMapping[item]); 99packageTfmMapping[forwardTfm].Add(reverseTfm);
Package.cs (2)
30List<NuGetFramework> FrameworksInPackageList = CompileAssets.Select(t => (NuGetFramework)t.Properties["tfm"]).ToList(); 33FrameworksInPackageList.AddRange(RuntimeAssets.Select(t => (NuGetFramework)t.Properties["tfm"]).Distinct());
Microsoft.DotNet.SignCheckLibrary (8)
Verification\ArchiveVerifier.cs (1)
65SignatureVerificationResult result = VerifyFile(archiveMap[fullName], svr.Filename,
Verification\Jar\JarIndividualEntry.cs (2)
78string manifestDigest = Attributes[digestAttributeKey]; 80DigestValue = Attributes[digestAttributeKey];
Verification\Jar\JarSignatureFile.cs (2)
109a => String.Equals(MainAttributes[a], manifest.GetManifestDigest(JarUtils.GetHashAlgorithmFromDigest(a, "-Digest-Manifest"))) 128return String.Equals(MainAttributes[digestAttributeKey],
Verification\MsiVerifier.cs (2)
55SignatureVerificationResult packageFileResult = VerifyFile(installPackage.Files[key].TargetPath, svr.Filename, Path.Combine(svr.VirtualPath, originalFiles[key]), containerPath: null); 56packageFileResult.AddDetail(DetailKeys.File, SignCheckResources.DetailFullName, originalFiles[key]);
Verification\SignatureVerificationManager.cs (1)
202return _fileVerifiers[extension];
Microsoft.DotNet.SignTool (13)
src\Configuration.cs (10)
188foreach (var containerName in _whichPackagesTheFileIsIn[erroredFile]) 245hasSignableParts = _zipDataMap[fileSignInfo.FileContentKey].NestedParts.Values.Any(b => b.FileSignInfo.SignInfo.ShouldSign || b.FileSignInfo.HasSignableParts); 307collisionPriorityId = _hashToCollisionIdMap[parentSignedFileContentKey]; 318string existingCollisionId = _hashToCollisionIdMap[signedFileContentKey]; 376signInfo = new SignInfo(pktBasedSignInfo.Certificate, collisionPriorityId: _hashToCollisionIdMap[signedFileContentKey]); 388new ExplicitCertificateKey(file.FileName, peInfo.PublicKeyToken, peInfo.TargetFramework, _hashToCollisionIdMap[signedFileContentKey]), 391new ExplicitCertificateKey(file.FileName, peInfo.PublicKeyToken, collisionPriorityId: _hashToCollisionIdMap[signedFileContentKey]), 438collisionPriorityId: _hashToCollisionIdMap[signedFileContentKey]), out explicitCertificateName); 451signInfo = signInfo.WithCertificateName(explicitCertificateName, _hashToCollisionIdMap[signedFileContentKey]); 460d.GetMetadata(SignToolConstants.CollisionPriorityId) == _hashToCollisionIdMap[signedFileContentKey])).Any();
src\SignToolTask.cs (3)
393if(map[extension].Any(m => m.CollisionPriorityId == signInfo.CollisionPriorityId)) 397map[extension].Add(signInfo); 453map[publicKeyToken].Add(signInfo);
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (11)
Languages\angular\Angular.cs (4)
364context.WriteTemplate("models", context.Templates["Models"], model); 365context.WriteTemplate("helper", context.Templates["Helper"], model); 366context.WriteTemplate("index", context.Templates["index"], model); 367context.WriteTemplate(Helpers.CamelCase(context.Options.ClientName.AsSpan()), context.Templates["ServiceClient"], model);
Languages\csharp\CSharp.cs (4)
228context.WriteTemplate(context.Options.ClientName, context.Templates["ServiceClient"], model); 229context.WriteTemplate("PagedResponse", context.Templates["PagedResponse"], model); 233context.WriteTemplate($"Models/{Helpers.PascalCase(type.Name.AsSpan())}", context.Templates["Model"], type); 238context.WriteTemplate(group.Name, context.Templates["MethodGroup"], group);
Modeler\EnumOpenApiExtension.cs (1)
23get => ((OpenApiString) _value["name"]).Value;
Modeler\PaginatedOpenApiExtension.cs (2)
23get => ((OpenApiString) _value["page"]).Value; 29get => ((OpenApiString) _value["pageSize"]).Value;
Microsoft.DotNet.VersionTools (2)
BuildManifest\VersionIdentifier.cs (1)
208return majorMinorPatchDictionary[maxKey];
Dependencies\BuildOutput\FileRegexPackageUpdater.cs (1)
32return matchingBuildInfo.RawPackages[PackageId];
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
275get => _properties[key];
Microsoft.Extensions.FileProviders.Embedded.Tests (4)
ManifestEmbeddedFileProviderTests.cs (4)
414Assert.IsAssignableFrom<IDirectoryContents>(root["wwwroot"]); 415Assert.IsAssignableFrom<IDirectoryContents>(root["config"]); 418Assert.Equal(wwwrootExpected, (IDirectoryContents)root["wwwroot"], FileInfoComparer.Instance); 419Assert.Equal(configExpected, (IDirectoryContents)root["config"], FileInfoComparer.Instance);
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
107var description = Options.Tokens.ProviderMap[providerName];
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
95CalculateStubInformation(data.Method.MethodInfo.Syntax, symbolMap[data.Method.MethodInfo], data.Method.Index, env, data.OwningInterface.Info.Type, ct));
ComMethodContext.cs (1)
191baseMethods = AddMethods(baseComIface, ifaceToDeclaredMethodsMap[baseComIface]);
Microsoft.Interop.SourceGeneration (3)
Marshalling\MarshallerHelpers.cs (3)
126edgeMap[elementIndexToEdgeMapNodeId[elementIndex], elementIndexToEdgeMapNodeId[dependentElementIndex]] = true; 155int n = elementIndexToEdgeMapNodeId[keyFn(element)];
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\CacheDict.vb (1)
39_dict.Item(key) = New KeyInfo(value, node)
MobileBuildTasks (3)
Android\Ndk\NdkTools.cs (3)
51this.hostOS = validHosts[hostOS]; 84get => validArches[netArch].Triple; 120string host = validHosts[hostOS];
MonoAOTCompiler (1)
MonoAOTCompiler.cs (1)
1273=> bool.TryParse(Table[propertyName], out bool outValue) ? outValue : defaultValue;
MonoTargetsTasks (9)
EmitBundleTask\EmitBundleBase.cs (9)
177var symbolName = _resourceDataSymbolDictionary[registeredName]; 197string resourceDataSymbol = _resourceDataSymbolDictionary[registeredName]; 200bundledResource.SetMetadata("DataLenSymbolValue", symbolDataLen[resourceDataSymbol].ToString()); 212var resourceDataSymbol = _resourceDataSymbolDictionary[registeredName]; 289string resourceDataSymbol = _resourceDataSymbolDictionary[registeredName]; 294resourceSymbols.AppendLine($"#define {resourceDataSymbol}_data_len_val {symbolDataLen[resourceDataSymbol]}"); 342.Replace("%SymbolLen%", symbolDataLen[tuple.resourceSymbolName!].ToString())}"; 409string[] resourcesForDataSymbol = _resourcesForDataSymbolDictionary[symbolName]; 440Log.LogMessage(MessageImportance.High, $"There are duplicate resources with the same output symbol '{symbolName}' but have differing content sizes '{symbolDataLen[symbolName]}' != '{generatedArrayLength}'.");
MSBuild (2)
NodePacketFactory.cs (1)
66PacketFactoryRecord record = _packetFactories[packet.Type];
TerminalLogger\TerminalLogger.cs (1)
491_nodes[nodeIndex] = new NodeStatus(e.ProjectFile!, null, "Restore", _projects[c].Stopwatch);
MSBuildTaskHost (3)
Immutable\ImmutableDictionary.cs (2)
49public V this[K key] => _backing[key]; 253get { return _backing[key]; }
NodePacketFactory.cs (1)
66PacketFactoryRecord record = _packetFactories[packet.Type];
PresentationBuildTasks (8)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (4)
196Debug.Assert(targetOutputs[CompileTargetName].Length == 1); 197TemporaryAssemblyForLocalTypeReference = targetOutputs[CompileTargetName][0].ItemSpec; 311Debug.Assert(targetOutputs[CompileTargetName].Length == 1); 312TemporaryAssemblyForLocalTypeReference = targetOutputs[CompileTargetName][0].ItemSpec;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\MarkupExtensionParser.cs (1)
1486bracketCharacters = bracketCharacterCache[propertyName];
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserContext.cs (1)
207return MasterBracketCharacterCache[type];
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (2)
401_compatTable[oldXmlns] != newXmlns) 404_compatTable[oldXmlns]));
PresentationCore (49)
MS\Internal\DeferredElementTreeState.cs (2)
29parent = treeState._oldCoreParents[element]; 90parent = treeState._oldLogicalParents[element];
MS\Internal\FontCache\FontResourceCache.cs (2)
142folderResourceMap[folderName].Add(fileName); 146folderResourceMap[resourceFullName].Add(String.Empty);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (25)
1715_strokeLookupTable[s].CompressionData = xpData; 1725_strokeLookupTable[s].ISFReadyStrokeData = isfReadyData; 1729_strokeLookupTable[s].StorePressure = shouldStorePressure; 1901if (currentDrawingAttributesTableIndex != _strokeLookupTable[s].DrawingAttributesTableIndex) 1905cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].DrawingAttributesTableIndex); 1906currentDrawingAttributesTableIndex = _strokeLookupTable[s].DrawingAttributesTableIndex; 1915if (currentStrokeDescriptorTableIndex != _strokeLookupTable[s].StrokeDescriptorTableIndex) 1919cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].StrokeDescriptorTableIndex); 1920currentStrokeDescriptorTableIndex = _strokeLookupTable[s].StrokeDescriptorTableIndex; 1929if (uCurrMetricDescriptorTableIndex != _strokeLookupTable[s].MetricDescriptorTableIndex) 1933cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].MetricDescriptorTableIndex); 1934uCurrMetricDescriptorTableIndex = _strokeLookupTable[s].MetricDescriptorTableIndex; 1943if (currentTransformTableIndex != _strokeLookupTable[s].TransformTableIndex) 1947cumulativeEncodedSize += SerializationHelper.Encode(localStream, _strokeLookupTable[s].TransformTableIndex); 1948currentTransformTableIndex = _strokeLookupTable[s].TransformTableIndex; 1964cbStroke = StrokeSerializer.EncodeStroke(s, tempstrm, GetCompressionAlgorithm(), guidList, _strokeLookupTable[s]); 2572StrokeSerializer.BuildStrokeDescriptor(stroke, guidList, _strokeLookupTable[stroke], out strokeDescriptor, out metricBlock); 2581_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)descriptorIndex; 2588_strokeLookupTable[stroke].StrokeDescriptorTableIndex = (uint)_strokeDescriptorTable.Count - 1; 2609_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)tmp; 2617_strokeLookupTable[stroke].MetricDescriptorTableIndex = (uint)(_metricTable.Count - 1); 2634_strokeLookupTable[stroke].TransformTableIndex = (uint)i; 2642_strokeLookupTable[stroke].TransformTableIndex = (uint)(_transformTable.Count - 1); 2656_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)i; 2664_strokeLookupTable[stroke].DrawingAttributesTableIndex = (uint)_drawingAttributesTable.Count - 1;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (2)
406EdgeInfo ei = adjInformation[edge]; 873edgeInfo = adjInformation[edge];
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SizeLimitedCache.cs (3)
124Node node = _nodeLookup[key]; 170Node node = _nodeLookup[key]; 206Node node = _nodeLookup[key];
System\Windows\Input\ManipulationDevice.cs (1)
261ManipulationDevice device = _manipulationDevices[element];
System\Windows\Input\Stylus\Common\StylusLogic.cs (2)
427Debug.Assert(_transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale].HasInverse); 430toDevice = _transformToDeviceMatrices[hwndSource.CompositionTarget.CurrentDpiScale];
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
77_manager = StylusLogic.GetCurrentStylusLogicAs<PointerLogic>().PlugInManagers[presentationSource];
System\Windows\Media\FontEmbeddingManager.cs (2)
83glyphSet = _collectedGlyphTypefaces[glyphTypeface]; 117Dictionary<ushort, bool> glyphsUsed = _collectedGlyphTypefaces[glyphTypeface];
System\Windows\Media\SolidColorBrush.cs (1)
304return fwdDictionary[key];
System\Windows\Media\Visual.cs (8)
860Debug.Assert(channelsToCyclicBrushMap[channel] > 0); 886Debug.Assert(cyclicBrushToChannelsMap[cyclicBrush] > 0); 913Debug.Assert(cyclicBrushToChannelsMap[cyclicBrush] > 0); 916if (cyclicBrushToChannelsMap[cyclicBrush] == 1) 928cyclicBrushToChannelsMap[cyclicBrush] - 1; 936Debug.Assert(channelsToCyclicBrushMap[channel] > 0); 939channelsToCyclicBrushMap[channel] - 1; 948if (channelsToCyclicBrushMap[channel] == 0)
PresentationFramework (72)
MS\Internal\Annotations\AnnotationMap.cs (1)
98List<IAttachedAnnotation> list = _annotationIdToAttachedAnnotations[annId];
MS\Internal\Annotations\Component\AnnotationComponentManager.cs (2)
87IList<IAnnotationComponent> currentList = _attachedAnnotations[attachedAnnotation]; 237IList<IAnnotationComponent> currentList = _attachedAnnotations[attachedAnnotation]; //save the current list
MS\Internal\Annotations\Storage\StoreAnnotationsMap.cs (3)
251_currentAnnotations[args.Annotation.Id].Dirty = true; 263_currentAnnotations[args.Annotation.Id].Dirty = true; 275_currentAnnotations[args.Annotation.Id].Dirty = true;
MS\Internal\Annotations\XmlElementCollection.cs (1)
159if (_xmlDocsRefCounts[element.OwnerDocument] == 0)
MS\Internal\AppModel\ResourceContainer.cs (1)
310_registeredResourceManagers[key].Assembly = assembly;
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
435ret = _cachedXmlElements[token]; 540return s_xmlTokeFullNames[token];
MS\Internal\Globalization\BamlResourceDeserializer.cs (3)
364stackForProperty = _propertyInheritanceTreeStack[propertyName]; 378Stack<ILocalizabilityInheritable> stackForProperty = _propertyInheritanceTreeStack[propertyName]; 387Stack<ILocalizabilityInheritable> stackForProperty = _propertyInheritanceTreeStack[propertyName];
MS\Internal\Globalization\BamlTreeMap.cs (3)
460return _classAttributeTable[className]; 491return _propertyAttributeTable[fullName]; 525_classAttributeTable[className].FormattingTag = formattingTag;
MS\Internal\IO\Packaging\XamlFilter.cs (1)
852return _lcidDictionary[languageString];
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (2)
219type = CustomTypeToHelperTypeMappings[CustomAbiTypeNameToTypeMappings[runtimeClassName]];
System\Windows\Annotations\Storage\XmlStreamStore.cs (1)
403return _predefinedNamespaces[name];
System\Windows\Controls\DataGrid.cs (4)
8304dataGridStringBuilders[format].Append(preparingRowClipboardContentEventArgs.FormatClipboardCellValues(format)); 8321dataGridStringBuilders[format].Append(preparingRowClipboardContentEventArgs.FormatClipboardCellValues(format)); 8327DataGridClipboardHelper.GetClipboardContentForHtml(dataGridStringBuilders[DataFormats.Html]); 8334dataObject.SetData(format, dataGridStringBuilders[format].ToString(), false /*autoConvert*/);
System\Windows\Controls\DataGridColumnCollection.cs (2)
549DisplayIndexMap.Add(assignedDisplayIndexMap[displayIndex]); 1492column.Width = _originalWidthsForResize[column];
System\Windows\Documents\FixedTextContainer.cs (1)
476lfs = highlights[page];
System\Windows\Documents\HighlightVisual.cs (1)
91ArrayList highlights = _panel.Highlights[_page];
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (14)
105ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 132ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 159ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 182ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 207ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 235ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 262ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 289ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 317ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 345ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 373ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 406ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 502ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 522ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]);
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerCreationHelper.cs (1)
84return _instances[language];
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (5)
210ignoredExceptions: SuppressedExceptions[shouldSuppressCOMExceptions]); 255ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 292ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 336ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); 367ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]);
System\Windows\Documents\Speller.cs (1)
373DictionaryInfo info = UriMap[uri];
System\Windows\Documents\Tracing\SpellerCOMActionTraceLogger.cs (4)
198(long)Math.Floor(1.0d * _instanceInfo.CumulativeCallTime100Ns[_action] / _instanceInfo.NumCallsMeasured[_action]); 208if (alwaysLog || (ticks > _timeLimits100Ns[_action]) || (runningAverage > 2 * _timeLimits100Ns[_action]))
System\Windows\Documents\WinRTSpellerInterop.cs (5)
345return (_spellCheckers[culture] == null ? false : true); 478_customDictionaryFiles[ietfLanguageTag].Add(lexiconPrivateCopyPath); 789return _spellCheckers[Culture]?.Item1; 804return _spellCheckers[_defaultCulture]?.Item1; 820return _spellCheckers[Culture]?.Item2;
System\Windows\Markup\Baml2006\WpfKnownType.cs (1)
336Baml6ConstructorInfo info = Constructors[paramCount];
System\Windows\Markup\BamlReader.cs (2)
2673list = _reverseXmlnsTable[fullName]; 2692xmlnsList = _reverseXmlnsTable[fullName];
System\Windows\Markup\MarkupExtensionParser.cs (1)
1486bracketCharacters = bracketCharacterCache[propertyName];
System\Windows\Markup\ParserContext.cs (1)
207return MasterBracketCharacterCache[type];
System\Windows\Markup\XmlnsCache.cs (2)
401_compatTable[oldXmlns] != newXmlns) 404_compatTable[oldXmlns]));
System\Windows\StyleHelper.cs (1)
2699sourceNodeType = (container as FrameworkElement).TemplateInternal.ChildTypeFromChildIndex[sourceChildIndex];
System\Windows\SystemResources.cs (5)
1143_hwndNotify[hwndDpiInfo].Value.Dispatcher.ShutdownFinished += OnShutdownFinished; 1145_hwndNotify[hwndDpiInfo].Value.AddHook(_hwndNotifyHook[hwndDpiInfo]); 1157_hwndNotify[hwndDpiInfo].Value.Dispose(); 1650return _hwndNotify[hwndDpiInfo].Value;
System\Windows\TemplateContent.cs (1)
1381return TemplateLoadData.NamedTypes[name];
PresentationUI (2)
MS\Internal\Documents\Application\TransactionalPackage.cs (2)
165_activeParts[normalizedPartUri].Target = newPackage.GetPart(part.Uri); 392result = _activeParts[normalizedPartUri];
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
43var old = _content[subpath];
ReachFramework (26)
packaging\XpsDigitalSignature.cs (2)
383relHash = uriHashTable[selector.SourceUri]; 414Dictionary<string, int> relHash = uriHashTable[selector.SourceUri];
Packaging\XpsFixedPageReaderWriter.cs (9)
909xpsResource = (XpsResource)_imageCache[resourceUri]; 913xpsResource = (XpsResource)_fontCache[resourceUri]; 917xpsResource = (XpsResource)_colorContextCache[resourceUri]; 921xpsResource = (XpsResource)_resourceDictionaryCache[resourceUri]; 925xpsResource = (XpsResource)_resourceCache[resourceUri]; 1124xpsFont = _fontCache[uri]; 1150xpsColorContext = _colorContextCache[uri]; 1176xpsResourceDictionary = _resourceDictionaryCache[uri]; 1289xpsImage = _imageCache[uri];
Packaging\XpsManager.cs (10)
549return _cachedParts[uri]; 937docCounter = _contentTypes[docContentKey]-1; 960docCounter = _contentTypes[docContentKey]-1; 1063int docNumber = _contentTypes[contentKey] - 1; 1070int docNumber = _contentTypes[documentContentKey] - 1; 1071int pageNumber = _contentTypes[pageContentKey] - 1; 1097int counter = _contentTypes[contentKey]; 1104docCounter = _contentTypes[docContentKey]-1; 1289_packageCache[uri] = _packageCache[uri]+1; 1300reference = _packageCache[uri];
Packaging\XpsResourcePolicy.cs (2)
92else if (_objDict[serviceType] != service) 161service = _objDict[serviceType];
Serialization\ColorTypeConverter.cs (1)
314profileUri = colorContextTable[colorContext.GetHashCode()];
Serialization\ImageSourceTypeConverter.cs (2)
464imageUri = imageUriHashTable[_uriHashValue]; 492imageUri = imageCrcTable[_crc32HashValue];
Sockets.FunctionalTests (5)
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (5)
732}, testContext, ConnectionMiddlewareData[listenOptionsName]())) 764}, testContext, ConnectionMiddlewareData[listenOptionsName]())) 802}, testContext, ConnectionMiddlewareData[listenOptionsName]())) 879}, testContext, ConnectionMiddlewareData[listenOptionsName]())) 1055}, testContext, ConnectionMiddlewareData[listenOptionsName]()))
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
117return _membersTable[originalLazyMember]; 128return _parametersTable[originalParameter];
System.ComponentModel.TypeConverter (6)
System\ComponentModel\ReflectTypeDescriptionProvider.cs (6)
1587converterData = IntrinsicTypeConverters[typeof(Enum)]; 1591converterData = IntrinsicTypeConverters[typeof(Array)]; 1595converterData = IntrinsicTypeConverters[s_intrinsicNullableKey]; 1599converterData = IntrinsicTypeConverters[typeof(ICollection)]; 1603converterData = IntrinsicTypeConverters[s_intrinsicReferenceKey]; 1630converterData = IntrinsicTypeConverters[key];
System.Composition.Hosting (1)
System\Composition\Hosting\Core\ExportDescriptorRegistry.cs (1)
37allForExport = (ExportDescriptor[])_partDefinitions[exportKey];
System.Configuration.ConfigurationManager (1)
System\Configuration\BaseConfigurationRecord.cs (1)
424indirectLocationInputs[configKey].Add(
System.Data.Common (9)
System\Data\Common\AdapterUtil.Common.cs (1)
817if (i != hash[columnName])
System\Data\Common\DbConnectionOptions.cs (2)
53public string? this[string keyword] => _parsetable[keyword]; 170string realkeyname = ((null != synonyms) ? (string)synonyms[keyname] : keyname);
System\Data\DataColumnCollection.cs (1)
835if (_columnFromName[name] != null)
System\Data\DataView.cs (5)
546_rowViewCache[_addNewRow].EndEdit(); 651array.SetValue(_rowViewCache[_addNewRow], index); 671array[index] = _rowViewCache[_addNewRow]; 1242private DataRowView GetRowView(DataRow dr) => _rowViewCache[dr]; 1304int index = IndexOfDataRowView(_rowViewCache[_addNewRow]);
System.Data.Odbc (8)
Common\System\Data\Common\DbConnectionOptions.cs (6)
90return ((_parsetable.ContainsKey(KEY.User_ID) && !string.IsNullOrEmpty(_parsetable[KEY.User_ID])) || (_parsetable.ContainsKey(SYNONYM.UID) && !string.IsNullOrEmpty(_parsetable[SYNONYM.UID]))); 114get { return _parsetable[keyword]; } 195object? value = _parsetable[KEY.Integrated_Security]; 225object? value = _parsetable[keyName]; 251return _parsetable[keyName] ?? defaultValue;
Common\System\Data\Common\DBConnectionString.cs (2)
189get { return _parsetable[keyword]; } 480string realkeyname = ((null != synonyms) ? (string)synonyms[keyname] : keyname); // MDAC 85144
System.Diagnostics.Process (2)
System\Collections\Specialized\DictionaryWrapper.cs (2)
19get => _contents[key]; 52return _contents.ContainsKey(item.Key) && _contents[item.Key] == item.Value;
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.Write.cs (1)
636Debug.Assert(Convert.ToInt64(ExtendedAttributes[PaxEaSize]) > TarHelpers.MaxSizeLength);
System.IO.Packaging (3)
System\IO\Packaging\ContentType.cs (1)
234stringBuilder.Append(_parameterDictionary[parameterKey]);
System\IO\Packaging\ZipPackage.cs (2)
673WriteDefaultElement(writer, key, _defaultDictionary[key]); 681WriteOverrideElement(writer, key, _overrideDictionary[key]);
System.Linq.Expressions (6)
System\Linq\Expressions\Compiler\CompilerScope.cs (2)
296ReadOnlyCollection<ParameterExpression> hoistedVars = GetVariables().Where(p => Definitions[p] == VariableStorageKind.Hoisted).ToReadOnly(); 440if (Definitions[v] == VariableStorageKind.Local)
System\Linq\Expressions\Compiler\LambdaCompiler.cs (3)
92_scope = tree.Scopes[lambda]; 93_boundConstants = tree.Constants[lambda]; 152_scope = _tree.Scopes[invocation];
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2873int count = _definedParameters[param];
System.Net.Http (5)
System\Net\Http\HttpRequestOptions.cs (2)
19object? IReadOnlyDictionary<string, object?>.this[string key] => Options[key]; 26return Options[key];
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (3)
118int index1 = digestResponse.Parameters[Qop].IndexOf(AuthInt, StringComparison.Ordinal); 122int index2 = digestResponse.Parameters[Qop].IndexOf(Auth, StringComparison.Ordinal); 128index2 = digestResponse.Parameters[Qop].IndexOf(Auth, index1 + AuthInt.Length, StringComparison.Ordinal);
System.Net.HttpListener (2)
System\Net\Managed\HttpEndPointListener.cs (1)
204bestMatch = localPrefixes[p];
System\Net\Managed\HttpEndPointManager.cs (1)
174p = s_ipEndPoints[ep.Address];
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (3)
5532WriteNameAndMessageAttribs(sb, "task", taskTab[task]); 5609WriteNameAndMessageAttribs(sb, "opcode", opcodeTab[opcode]); 5624WriteNameAndMessageAttribs(sb, "keyword", keywordTab[keyword]);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\XplatEventLogger.cs (1)
69sb.Append(seq_mapping[elem]);
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (3)
717Debug.Assert(s_lookupTable[ToUInt64Key("quot")] == '\x0022'); 718Debug.Assert(s_lookupTable[ToUInt64Key("alpha")] == '\x03b1'); 719Debug.Assert(s_lookupTable[ToUInt64Key("diams")] == '\x2666');
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
188return _typeBuilderDict[name];
System.Private.Xml (51)
System\Xml\Schema\ContentValidator.cs (2)
141match.Add(_names[name]); 1463Debug.Assert(state == stateTable[statePosSet]); // just make sure that statePosSet is for correct state
System\Xml\Serialization\CodeGenerator.cs (1)
132return (ArgBuilder)_argList[name];
System\Xml\Serialization\Compilation.cs (4)
621_methods[mapping.Key!].readMethod = GetMethodFromType(reader.GetType(), methodName); 623return _methods[mapping.Key!].readMethod!.Invoke(reader, Array.Empty<object>()); 648_methods[mapping.Key!].writeMethod = GetMethodFromType(writer.GetType(), methodName); 650_methods[mapping.Key!].writeMethod!.Invoke(writer, new object?[] { o });
System\Xml\Serialization\XmlSerializationILGen.cs (13)
103return _methodBuilders[methodName]; 284ConstructorInfo readerCtor = CreatedTypes[readerClass].GetConstructor( 297ConstructorInfo writerCtor = CreatedTypes[writerClass].GetConstructor( 327CreatedTypes[baseSerializer], 373MethodInfo writerType_writeMethod = CreatedTypes[writerClass].GetMethod( 379ilg.Castclass(CreatedTypes[writerClass]); 397MethodInfo readerType_readMethod = CreatedTypes[readerClass].GetMethod( 403ilg.Castclass(CreatedTypes[readerClass]); 427ConstructorInfo ctor = CreatedTypes[(string)serializers[key]].GetConstructor( 468ConstructorInfo ctor = CreatedTypes[(string)serializers[xmlMappings[i].Key!]].GetConstructor( 511ConstructorInfo ctor = CreatedTypes[readerType].GetConstructor( 531ctor = CreatedTypes[writerType].GetConstructor( 593MemberInfo memInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
255ilg.StoreMember(_idNameFields[id]); 298ilg.LoadMember(_idNameFields[name ?? string.Empty]); 300ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1732ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1737ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 1786ilg.LoadMember(_idNameFields[name ?? string.Empty]); 1794ilg.LoadMember(_idNameFields[ns ?? string.Empty]); 2822MemberInfo memInfo = memberInfos[source.Substring(3)]; 2897memberMapping.MemberInfo = memberInfos[source.Substring(3)];
System\Xml\Serialization\XmlSerializer.cs (1)
707index = pendingKeys[mappingKey];
System\Xml\XPath\Internal\XPathParser.cs (1)
661ParamInfo pi = (ParamInfo)s_functionTable["id"];
System\Xml\Xsl\IlGen\GenerateHelper.cs (3)
1360XmlILStorageMethods meth = XmlILMethods.StorageMethods[itemStorageType]; 1366Call(XmlILMethods.StorageMethods[itemStorageType].IListItem); 1378meth = XmlILMethods.StorageMethods[clrType].ValueAs;
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (1)
729_helper.Call(XmlILMethods.StorageMethods[_storage.ItemStorageType].ToAtomicValue!);
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (9)
1348XmlILStorageMethods meths = XmlILMethods.StorageMethods[GetItemStorageType(ndAvg)]; 1357XmlILStorageMethods meths = XmlILMethods.StorageMethods[GetItemStorageType(ndSum)]; 1366XmlILStorageMethods meths = XmlILMethods.StorageMethods[GetItemStorageType(ndMin)]; 1375XmlILStorageMethods meths = XmlILMethods.StorageMethods[GetItemStorageType(ndMax)]; 2269XmlILStorageMethods methods = XmlILMethods.StorageMethods[itemStorageType]; 3660if (clrTypeFormalArg == XmlILMethods.StorageMethods[itemType].IListType) 3665else if (clrTypeFormalArg == XmlILMethods.StorageMethods[typeof(XPathItem)].IListType) 3713_helper.Emit(OpCodes.Ldsfld, XmlILMethods.StorageMethods[typeof(XPathItem)].SeqEmpty); 4874methods = XmlILMethods.StorageMethods[cacheType];
System\Xml\Xsl\Xslt\Compiler.cs (4)
148this.AttributeSets[attSetName] = sheet.AttributeSets[attSetName]; 153attSet.MergeContent(sheet.AttributeSets[attSetName]); 378int result = _moduleOrder[x.FileName].CompareTo(_moduleOrder[y.FileName]);
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
481MatchPatterns(it, patternBag.FixedNamePatterns[qname]),
System\Xml\Xsl\Xslt\Scripts.cs (1)
59get => _backingDictionary[key];
System\Xml\Xsl\Xslt\Stylesheet.cs (1)
63TemplateMatches[mode].Sort(TemplateMatch.Comparer);
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
380PropertyAccessorInfo ai = propertyMap[pi.GetMethod ?? pi.SetMethod!]; 397EventAccessorInfo ai = eventMap[ei.AddMethod ?? ei.RemoveMethod!];
System.Reflection.Emit (2)
System\Reflection\Emit\ILGeneratorImpl.cs (2)
104private LabelHandle GetMetaLabel(Label label) => _labelTable[label]._metaLabel; 509LabelInfo labelInfo = _labelTable[label];
System.Reflection.Metadata (2)
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
157_rootNamespace = namespaceTable[rootNamespace];
System\Reflection\Metadata\MetadataReader.cs (1)
1443Debug.Assert(builder == groupedNestedTypes[enclosingClass]);
System.Security.Cryptography.Cose (5)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (5)
73get => _headerParameters[key]; 89public int GetValueAsInt32(CoseHeaderLabel label) => _headerParameters[label].GetValueAsInt32(); 98public string GetValueAsString(CoseHeaderLabel label) => _headerParameters[label].GetValueAsString(); 106public byte[] GetValueAsBytes(CoseHeaderLabel label) => _headerParameters[label].GetValueAsBytes(); 117public int GetValueAsBytes(CoseHeaderLabel label, Span<byte> destination) => _headerParameters[label].GetValueAsBytes(destination);
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\CmsSignature.cs (2)
87processor = s_lookup[Oids.Rsa]; 92processor = s_lookup[Oids.RsaPss];
System.ServiceModel.Syndication (5)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
595result.AttributeExtensions.Add(attr, attrs[attr]);
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
22_attributeExtensions.Add(key, source._attributeExtensions[key]); 99string value = _attributeExtensions[qname];
System\ServiceModel\Syndication\SyndicationContent.cs (2)
93writer.WriteAttributeString(key.Name, key.Namespace, _attributeExtensions[key]); 111AttributeExtensions.Add(key, source._attributeExtensions[key]);
System.Text.Json (2)
System\Text\Json\JsonPropertyDictionary.cs (1)
238existing = _propertyDictionary[propertyName];
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1214parameterIndex[paramKey].MatchingProperty.Name);
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\RegexCharClass.cs (1)
445category = s_definedCategories[InternalRegexIgnoreCase];
System\Text\RegularExpressions\Symbolic\BDD.cs (2)
223long v = (((long)node.Ordinal) << ordinal_shift) | (idmap[node.One] << one_node_shift) | (idmap[node.Zero] << zero_node_shift);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Explore.cs (2)
81int nfaOffset = DeltaOffset(_nfaIdByCoreId[state.Id], mintermId); 82int[] nextNfaStates = CreateNewNfaTransition(_nfaIdByCoreId[state.Id], mintermId, nfaOffset);
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
52catMap[char.GetUnicodeCategory(ch)].Add(ch);
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
445category = s_definedCategories[InternalRegexIgnoreCase];
System.Windows.Controls.Ribbon (11)
Microsoft\Windows\Controls\KeyTipService.cs (2)
359AddElementToScope(elementToScopeMap[element], element); 917culture = cultureCache[language];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (4)
76int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 94int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 282int starLayoutIndex = _childIndexToStarLayoutIndexMap[i]; 314int starLayoutIndex = _childIndexToStarLayoutIndexMap[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (3)
251int index = ribbon.TabDisplayIndexToIndexMap[i]; 691contextualTabHeaders[contextualTabGroupHeader].Add(new RibbonTabHeaderAndIndex() { RibbonTabHeader = tabHeader, Index = i }); 733foreach (RibbonTabHeaderAndIndex headerAndIndex in contextualTabHeaders[contextualTabGroupHeader])
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (2)
1653return TabDisplayIndexToIndexMap[displayIndex]; 1667return TabIndexToDisplayIndexMap[index];
System.Xaml (10)
System\Xaml\Context\NameFixupGraph.cs (4)
266FrugalObjectList<NameFixupToken> dependencies = _dependenciesByName[name]; 294FrugalObjectList<NameFixupToken> dependencies = _dependenciesByParentObject[parentObj]; 316FrugalObjectList<NameFixupToken> nameDependencies = _dependenciesByName[name]; 450FrugalObjectList<NameFixupToken> parentDependencies = _dependenciesByParentObject[parentInstance];
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1524value = propertyValues[prop]; 2560List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2570List<PendingCollectionAdd> pendingCollection = PendingCollectionAdds[token.Target.Instance]; 2603ObjectWriterContext ctx = PendingKeyConversionContexts[instance];
System\Xaml\Parser\MeScanner.cs (1)
596bracketCharacters = _context.CurrentEscapeCharacterMapForMarkupExtension[propertyName];
System\Xaml\Parser\NodeStreamSorter.cs (1)
214string uriString = _xmlnsDictionary[prefix];
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
169_targetIdsToNames[e.BuildEventContext.TargetId],
WasmAppBuilder (2)
EmccCompile.cs (1)
202envStr.Append($"{key}={envVarsDict[key]} ");
IcallTableGenerator.cs (1)
154var icallClass = _runtimeIcalls[className];
XmlFileLogger (2)
LogProcessNode.cs (2)
100_childNodes[type].Add(childNode); 117return _childNodes.ContainsKey(t) ? _childNodes[t].Cast<T>() : new List<T>();
xunit.assert (1)
Sdk\CollectionTracker.cs (1)
620 printedValues.Append(ArgumentFormatter.Format(items[idx], depth));
xunit.console (1)
Utility\TransformFactory.cs (1)
61.Select(output => new Action<XElement>(xml => instance.availableTransforms[output.Key].OutputHandler(xml, output.Value)))