629 references to Keys
Aspire.Hosting (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
114launchProfileName = launchSettings.Profiles.Keys.First();
Aspire.Hosting.Azure.Functions (1)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (1)
114launchProfileName = launchSettings.Profiles.Keys.First();
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
112var servicesKeysCount = config.Keys.Count(k => k.StartsWith("ConnectionStrings__")); 123var containerServicesKeysCount = containerConfig.Keys.Count(k => k.StartsWith("ConnectionStrings__"));
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (2)
185var servicesKeysCount = config.Keys.Count(k => k.StartsWith("ConnectionStrings__")); 197var containerServicesKeysCount = containerConfig.Keys.Count(k => k.StartsWith("ConnectionStrings__"));
Aspire.Hosting.Tests (1)
WithReferenceTests.cs (1)
298var servicesKeysCount = config.Keys.Count(k => k.StartsWith("services__"));
Aspire.Playground.Tests (1)
AppHostTests.cs (1)
87foreach (var resource in resourceEndpoints.Keys)
Aspire.Workload.Tests (2)
WorkloadTestsBase.cs (2)
185Assert.Fail($"Row with unknown name found: '{resourceName}'. Expected values: {string.Join(", ", expectedRowsTable.Keys.Select(k => $"'{k}'"))}"); 251Assert.Fail($"Expected rows not found: {string.Join(", ", expectedRowsTable.Keys.Except(foundNames))}");
BuildBoss (1)
SolutionCheckerUtil.cs (1)
149foreach (var projectKey in map.Keys.OrderBy(x => x.FileName))
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (1)
937foreach (var typeSymbol in _createdTypeSpecs.Keys)
dotnet-svcutil-lib (25)
CmdCredentialsProvider.cs (2)
154if (!_validatedClientCerts.Keys.Contains(certhash)) 225if (!_validatedServerCerts.Keys.Contains(certhash))
CodeDomFixup\CodeDomVisitors\EnsureAdditionalAssemblyReference.cs (1)
26foreach (string ns in _namespacesToMatch.Keys)
CodeDomFixup\CodeDomVisitors\SpecialIXmlSerializableRemapper.cs (2)
41foreach (string name in _specialIXmlSerializableTypes.Keys) 96foreach (string typeName in _typeDeclCollection.AllTypeDecls.Keys)
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
343return _mappings.Keys;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (1)
351foreach (string tns in sinfo.TargetNamespaces.Keys)
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (1)
133foreach (string inlineNS in xdrSchema.TargetNamespaces.Keys)
FrameworkFork\Microsoft.Xml\Xml\XmlNamespaceManager.cs (1)
229return prefixes.Keys.GetEnumerator();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (3)
310foreach (string fieldInfoName in EssentialExceptionFields.Keys) 396foreach (string key in exceptionFields.Keys) 600foreach (string key in inDict.Keys)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (2)
88foreach (string key in elementToBeCloned._operationSupportingTokenParameters.Keys) 93foreach (string key in elementToBeCloned._optionalOperationSupportingTokenParameters.Keys)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (1)
227supportedChannels.Keys, requiredChannels, binding.Name));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ScopedMessagePartSpecification.cs (5)
28return _actionParts.Keys; 57foreach (string action in other._actionParts.Keys) 70foreach (string action in _actionParts.Keys) 172foreach (string action in _actionParts.Keys) 188foreach (string action in _actionParts.Keys)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (3)
657foreach (string action in _scopedSupportingTokenAuthenticatorSpecification.Keys) 677foreach (string action in _scopedSupportingTokenAuthenticatorSpecification.Keys) 801foreach (string action in _scopedSupportingTokenAuthenticatorSpecification.Keys)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\X509CertificateRecipientClientCredential.cs (1)
39foreach (Uri uri in other.ScopedCertificates.Keys)
Metadata\ServiceDescriptorFactory.cs (1)
100var removeKeys = _cache.Keys.Where((k) => !_cache[k].MetadataImported).ToList();
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
194return dictionary.Keys.Select(k => new[] { k });
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
194return dictionary.Keys.Select(k => new[] { k });
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
194return dictionary.Keys.Select(k => new[] { k });
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
194return dictionary.Keys.Select(k => new[] { k });
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
194return dictionary.Keys.Select(k => new[] { k });
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
194return dictionary.Keys.Select(k => new[] { k });
illink (5)
ILLink.RoslynAnalyzer (1)
DataFlowAnalyzerContext.cs (1)
15 public IEnumerable<RequiresAnalyzerBase> EnabledRequiresAnalyzers => _enabledAnalyzers.Keys;
Infrastructure.Common (1)
TestProperties.cs (1)
36return s_properties.Value.Keys;
InMemory.FunctionalTests (141)
EventSourceTests.cs (1)
507public IEnumerable<string> PayloadNames => Payload.Keys;
Http2\Http2ConnectionTests.cs (1)
4999Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase);
Http2\Http2StreamTests.cs (95)
111Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 130Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 161Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 213Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 264Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 288Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 317Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 348Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 385Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 430Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 502Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 553Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 582Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 611Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 642Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 673Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 704Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 826Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 860Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 897Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 938Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 981Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1024Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1077Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1319Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1357Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1396Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1430Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1465Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1500Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1540Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1575Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1623Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1663Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1699Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1741Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1777Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1811Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1848Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1886Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1933Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1972Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2020Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2083Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2134Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2173Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2214Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2265Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2298Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2386Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2441Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2499Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2542Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2583Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3028Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3080Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3118Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3156Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3812Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3861Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3905Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3951Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4004Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4057Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4103Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4153Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4198Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4241Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4279Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4422Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4472Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4518Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4558Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4622Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4654Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4687Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4720Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4775Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4835Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4896Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4961Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5018Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5085Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5130Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5203Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5277Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5353Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5424Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5498Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5582Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5664Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5751Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5798Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5873Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5925Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase);
Http2\Http2WebSocketTests.cs (8)
72Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 137Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 228Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 264Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 367Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 431Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 499Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 563Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase);
Http3\Http3StreamTests.cs (36)
118Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 155Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 172Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 191Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 217Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 251Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 310Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 349Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 369Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 390Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 413Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 436Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 459Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 569Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 605Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 640Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 874Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 908Assert.Contains("date", responseHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1162Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1214Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1309Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1361Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1413Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1455Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1509Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1564Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1738Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1802Assert.Contains("date", decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2338Assert.Contains("date", receivedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2396Assert.Contains("date", receivedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2520Assert.Contains("date", receivedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2561Assert.Contains("date", receivedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2593Assert.Contains("date", receivedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2633Assert.Contains("date", receivedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2688Assert.Contains("date", receivedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2732Assert.Contains("date", receivedHeaders.Keys, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Authentication.Test (4)
CookieTests.cs (4)
204var key1 = Assert.Single(sessionStore.Store.Keys); 215var key2 = Assert.Single(sessionStore.Store.Keys); 239var key1 = Assert.Single(sessionStore.Store.Keys); 248Assert.Empty(sessionStore.Store.Keys);
Microsoft.AspNetCore.BrowserTesting (1)
BrowserManager.cs (1)
83public IEnumerable<string> GetAvailableBrowsers() => _launchBrowsers.Keys;
Microsoft.AspNetCore.Components (1)
Reflection\ComponentProperties.cs (1)
234string.Join(Environment.NewLine, unmatched.Keys));
Microsoft.AspNetCore.Components.Forms (1)
ValidationMessageStore.cs (1)
82foreach (var fieldIdentifier in _messages.Keys)
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRing.cs (1)
53return _keyIdToKeyHolderMap.Keys;
Microsoft.AspNetCore.DataProtection.Tests (2)
KeyManagement\XmlKeyManagerTests.cs (2)
976Assert.DoesNotContain(key1.KeyId, keyDictWithDeletions.Keys); 978Assert.DoesNotContain(key3.KeyId, keyDictWithDeletions.Keys);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.Routing.cs (1)
191Assert.DoesNotContain("param", state.Keys);
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Http (5)
FormCollection.cs (1)
101return Store.Keys;
HeaderDictionary.cs (1)
171return Store.Keys;
QueryCollection.cs (1)
112return Store.Keys;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
76return ReadDictionary.Keys;
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
171return _dictionaryStorage!.Keys;
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Http.Extensions.Tests (2)
ProblemDetailsDefaultWriterTest.cs (2)
88Assert.Equal(result.Keys, new(new() { { "type", 0 }, { "title", 1 }, { "status", 2 }, { "detail", 3 }, { "instance", 4 }, { "extensionKey", 5 }, {"traceId", expectedTraceId } })); 120Assert.Equal(result.Keys, new(new() { { "type", 0 }, { "title", 1 }, { "status", 2 }, { "detail", 3 }, { "instance", 4 }, { "errors", 5 }, {"traceId", expectedTraceId } }));
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Http.Tests (1)
DefaultHttpContextTests.cs (1)
456public IEnumerable<string> Keys { get { return _store.Keys; } }
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
1353public static object[][] AddIdentityModes => AddIdentityActions.Keys.Select(key => new object[] { key }).ToArray();
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
76return ReadDictionary.Keys;
Microsoft.AspNetCore.Mvc.Core.Test (2)
Controllers\ControllerBinderDelegateProviderTest.cs (2)
835Assert.DoesNotContain("test-parameter", arguments.Keys); 898Assert.Contains("test-parameter", arguments.Keys);
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
SimpleValueProvider.cs (1)
25foreach (string key in Keys)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
VersioningTestsBase.cs (1)
103Assert.DoesNotContain("id", result.RouteValues.Keys);
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
DictionaryModelBinderIntegrationTest.cs (1)
1188Assert.Equal(expectedDictionary.Keys, model.Keys);
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
TempDataDictionary.cs (3)
60return _data.Keys; 119_retainedKeys.UnionWith(_data.Keys); 143_initialKeys = new HashSet<string>(_data.Keys, StringComparer.OrdinalIgnoreCase);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
SessionStateTempDataProviderTest.cs (1)
103public IEnumerable<string> Keys { get { return _innerDictionary.Keys; } }
ViewComponentTests.cs (1)
270public IEnumerable<string> Keys { get { return _innerDictionary.Keys; } }
Microsoft.AspNetCore.OpenApi (3)
Comparers\ComparerHelpers.cs (3)
38if (x.Keys.Count != y.Keys.Count) 43foreach (var key in x.Keys)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
76return ReadDictionary.Keys;
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Routing (5)
Matching\DfaMatcherBuilder.cs (5)
375foreach (var literal in parent.Literals.Keys) 428var hasFailingPolicy = parent.Literals.Keys.Count < 32 ? 429(stackalloc bool[32]).Slice(0, parent.Literals.Keys.Count) : 430new bool[parent.Literals.Keys.Count]; 441foreach (var literal in parent.Literals.Keys)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.Session (1)
DefaultDistributedSessionStore.cs (1)
15public ICollection<EncodedKey> Keys => _store.Keys;
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionaryHolder.cs (1)
76return ReadDictionary.Keys;
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
171return _dictionaryStorage!.Keys;
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
DefaultHubMessageSerializerTests.cs (1)
116public static IEnumerable<object[]> InvocationTestData = _invocationTestData.Keys.Select(k => new object[] { k });
RedisProtocolTests.cs (4)
31public static IEnumerable<object[]> AckTestData = _ackTestData.Keys.Select(k => new object[] { k }); 63public static IEnumerable<object[]> GroupCommandTestData = _groupCommandTestData.Keys.Select(k => new object[] { k }); 138public static IEnumerable<object[]> InvocationTestData = _invocationTestData.Keys.Select(k => new object[] { k }); 248public static IEnumerable<object[]> CompletionMessageTestData = _completionMessageTestData.Keys.Select(k => new object[] { k });
Microsoft.AspNetCore.SignalR.Tests (1)
UserAgentHeaderTest.cs (1)
30public static IEnumerable<object[]> UserAgentTestDataNames => UserAgents.Keys.Select(name => new object[] { name });
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.Build (18)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
293return RequestConfiguration.ActivelyBuildingTargets.Keys.ToArray();
BackEnd\Components\RequestBuilder\BatchingEngine.cs (2)
154foreach (string unqualifiedMetadataName in consumedMetadataReferences.Keys) 342matchingBucket = new ItemBucket(itemListsToBeBatched.Keys, itemMetadataValues, lookup, buckets.Count);
BackEnd\Components\RequestBuilder\Lookup.cs (1)
1095var metadataToRemove = new List<string>(_modifications.Keys.Where(m => other[m].Remove));
BackEnd\Components\Scheduler\Scheduler.cs (7)
703foreach (int availableNodeId in _availableNodes.Keys) 1022List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1297foreach (int availableNodeId in _availableNodes.Keys) 1306List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1916foreach (int nodeId in _availableNodes.Keys) 2311foreach (int availableNodeId in _availableNodes.Keys) 2601foreach (int nodeId in _availableNodes.Keys)
BackEnd\Components\Scheduler\SchedulingData.cs (2)
247return _configurationToNode.Keys; 617foreach (SchedulableRequest key in _buildHierarchy.Keys)
BackEnd\Components\Scheduler\SchedulingPlan.cs (1)
275List<int> projectsInOrderOfReference = new List<int>(_configIdToData.Keys);
Collections\ItemDictionary.cs (1)
100return _itemLists.Keys;
Collections\MultiDictionary.cs (1)
84internal IEnumerable<K> Keys => _backing.Keys;
Logging\ProfilerLogger.cs (1)
161var aggregatedGlobs = _aggregatedLocations.Keys
TaskParameter.cs (1)
793List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
Microsoft.Build.BuildCheck.UnitTests (3)
ConfigurationProvider_Tests.cs (1)
57configs.Keys.Count.ShouldBe(2);
EditorConfigParser_Tests.cs (2)
33mergedResult.Keys.Count.ShouldBe(0); 56mergedResult.Keys.Count.ShouldBe(1);
Microsoft.Build.Engine.OM.UnitTests (2)
Instance\ProjectItemInstance_Tests.cs (2)
1201Assert.Equal(expected.Keys.Count, item.DirectMetadataCount); 1203foreach (var key in expected.Keys)
Microsoft.Build.Engine.UnitTests (4)
BuildEventArgsSerialization_Tests.cs (2)
562e => e.TracingData.InfrastructureTracingData.Keys.Count.ToString(), 563e => e.TracingData.InfrastructureTracingData.Keys.ToCsvString(false),
Definition\ToolsVersion_Tests.cs (1)
971List<string> matches = new List<string>(_defaultTasksFileMap.Keys);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
389outputCaches.Remove(expectedOutput.Keys.First(n => ProjectNumber(n) == "3"));
Microsoft.Build.Framework.UnitTests (2)
BuildCheckTracingEventArgs_Tests.cs (2)
52argDeserialized.TracingData.TelemetryData.Keys.ShouldBeEquivalentTo(arg.TracingData.TelemetryData.Keys);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\SimpleTaskItem.cs (1)
18public ICollection MetadataNames => Metadata.Keys;
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\Reference.cs (1)
1067foreach (string key in _sourceItems.Keys)
AssemblyDependency\ResolveAssemblyReference.cs (1)
2523foreach (var reference in dependencyTable.References.Keys)
Microsoft.Build.UnitTests.Shared (6)
ObjectModelHelpers.cs (4)
473item.DirectMetadataCount.ShouldBe(expected.Keys.Count, customMessage: $"Expected {expected.Keys.Count} metadata, ({string.Join(", ", expected.Keys)}), got {item.DirectMetadataCount}"); 475foreach (var key in expected.Keys)
TestEnvironment.cs (2)
576foreach (var key in oldTempPaths.Keys) 588foreach (var key in oldTempPaths.Keys)
Microsoft.Build.Utilities.Core (14)
ToolLocationHelper.cs (2)
1348foreach (string platform in sdk.Platforms.Keys) 2468collection = monikers.Keys.ToList();
TrackedDependencies\CanonicalTrackedInputFiles.cs (6)
350foreach (string tableEntryRoot in DependencyTable.Keys) 432foreach (string dependee in dependencies.Keys) 480foreach (string outputFile in outputFiles.Keys) 516foreach (string file in dependencies.Keys) 894foreach (string file in dependencies.Keys) 914foreach (string file in dependencies.Keys)
TrackedDependencies\CanonicalTrackedOutputFiles.cs (4)
291foreach (string output in currentOutputs.Keys) 423foreach (string tableEntryRoot in DependencyTable.Keys) 480foreach (string dependee in dependencies.Keys) 602foreach (string file in dependencies.Keys)
TrackedDependencies\FlatTrackingData.cs (2)
522foreach (string entry in DependencyTable.Keys) 632foreach (string fileEntry in DependencyTable.Keys)
Microsoft.CodeAnalysis (7)
Binding\AbstractLookupSymbolsInfo.cs (1)
269public ICollection<String> Names => _nameMap.Keys;
CodeGen\SwitchStringJumpTableEmitter.cs (1)
137foreach (uint hashValue in stringHashMap.Keys)
Collections\OrderPreservingMultiDictionary.cs (2)
180get { return _dictionary is null ? s_emptyDictionary.Keys : _dictionary.Keys; }
InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
MetadataReader\PEAssembly.cs (1)
177return _lazyInternalsVisibleToMap.Keys;
MetadataReader\PEModule.cs (1)
823foreach (var typeName in _lazyForwardedTypesToAssemblyIndexMap.Keys)
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
180idsToAnalyzeBuilder.AddAll(idToPragmasMap.Keys); 181idsToAnalyzeBuilder.AddAll(idToSuppressMessageAttributesMap.Keys);
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (2)
180get { return _dictionary is null ? s_emptyDictionary.Keys : _dictionary.Keys; }
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
563return [.. result.Keys.OrderBy(s => result[s])];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
237foreach (var symbol in SymbolsWriteBuilder.Keys.Select(d => d.symbol).ToArray())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
132foreach (var key in _reachingWrites.Keys)
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.QueryTranslationState.cs (2)
65foreach (var vars in allRangeVariables.Keys) 80foreach (var existingRangeVariable in allRangeVariables.Keys)
Binder\Binder.WithQueryLambdaParametersBinder.cs (1)
31foreach (var qv in rangeVariableMap.Keys)
CodeGen\Optimizer.cs (2)
79stackLocals = new HashSet<LocalSymbol>(locals.Keys); 98foreach (var local in info.Keys.ToArray())
CommandLine\CSharpCommandLineParser.cs (1)
889foreach (var key in diagnosticOptions.Keys)
FlowAnalysis\AbstractFlowPass.cs (1)
239foreach (var key in _labels.Keys)
FlowAnalysis\DefiniteAssignment.cs (1)
739protected IEnumerable<Symbol> GetUnsafeAddressTaken() => _unsafeAddressTakenVariables.Keys.ToArray();
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
1055if (!_hoistedLocals.Keys.Any(l => l.Name == local.Name && TypeSymbol.Equals(l.Type, local.Type, TypeCompareKind.ConsiderEverything2)))
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1501var memberNames = SpecializedCollections.ReadOnlyCollection(membersDict.Keys);
Symbols\Source\ConstantEvaluationHelpers.cs (3)
68fields.AddRange(graph.Keys); 167var search = ((IEnumerable<SourceFieldSymbolWithSyntaxReference>)lastUpdated) ?? graph.Keys; 276fieldsInvolvedInCycles.AddRange(graph.Keys.GroupBy(static f => f.DeclaringCompilation).
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3616memberNames.AddRange(membersByName.Keys);
Symbols\Source\SourceNamespaceSymbol.cs (1)
301foreach (var name in result.Keys)
Utilities\FirstAmongEqualsSet.cs (1)
88foreach (var key in _dictionary.Keys.ToList())
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
758return statement.ReplaceNodes(replacements.Keys, (orig, partiallyReplaced) => replacements[orig]);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\XmlDocCommentTests.cs (1)
3395Assert.Equal(attributes.Keys.Count, xmlAttributes.Count);
Microsoft.CodeAnalysis.EditorFeatures (5)
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (3)
173if (spans.SetEquals(_referenceSpanToLinkedRenameSpanMap.Keys)) 727_anchor.HasValue && _openTextBufferManager._referenceSpanToLinkedRenameSpanMap.Keys.Any(s => s.OverlapsWith(anchorSpan)) 733_active.HasValue && _openTextBufferManager._referenceSpanToLinkedRenameSpanMap.Keys.Any(s => s.OverlapsWith(activeSpan))
Preview\AbstractPreviewFactoryService.cs (2)
233var preservedProjectIds = oldProjectReferences.Keys.Intersect(newProjectReferences.Keys);
Microsoft.CodeAnalysis.Features (17)
ChangeSignature\AbstractChangeSignatureService.cs (2)
377foreach (var docId in nodesToUpdate.Keys) 419source: nodesToUpdate.Keys,
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
321completionContext, [.. symbolToContextMap.Keys], symbol => symbolToContextMap[symbol], missingSymbolsMap, totalProjects); 411var symbolsMissingInLinkedContext = symbolToContext.Keys.Except(symbols);
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
45var rootWithAnnotation = ReplaceTokens(root, map.Keys, (o, n) => map[o]);
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (1)
52return root.ReplaceTokens(map.Keys, (o, n) => map[o]);
ExtractMethod\MethodExtractor.Analyzer.cs (1)
120var unsafeAddressTakenUsed = dataFlowAnalysisData.UnsafeAddressTaken.Intersect(variableInfoMap.Keys).Any();
ExtractMethod\SelectionResult.cs (2)
246return root.ReplaceTokens(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations(tokenMap[o])); 259return root.ReplaceNodes(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations(tokenMap[o]));
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
376var orderedGroups = _groupMap.Keys.OrderBy((g1, g2) => g1 - g2);
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (3)
49.SelectMany(framework => framework.Dependencies!.Keys.Where(key => framework.Dependencies[key].AutoReferenced)) 140dependencyNames.AddRange(targetLibrary.Dependencies.Keys); 145foreach (var assemblyPath in targetLibrary.Compile.Keys)
Wrapping\AbstractCodeActionComputer.cs (4)
226var tokens = leftTokenToTrailingTrivia.Keys.Concat(rightTokenToLeadingTrivia.Keys).Distinct().ToImmutableArray(); 246tokens: leftTokenToTrailingTrivia.Keys.Concat(rightTokenToLeadingTrivia.Keys).Distinct(),
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
63var targetFrameworks = GetTargetFrameworks(projectFileInfos.Keys);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Diagnostics\AbstractWorkspacePullDiagnosticsHandler.cs (1)
87foreach (var category in _categoryToLspChanged.Keys.ToImmutableArray())
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\HandlerProvider.cs (1)
94VerifyHandlers(builder.Keys);
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Host\TestUtils.cs (2)
70var mismatch5 = await GetAssetFromAssetServiceAsync(allChecksumsFromRequest.Except(assetMapFromNewSolution.Keys)).ConfigureAwait(false); 73var mismatch6 = await GetAssetFromAssetServiceAsync(allChecksumsFromRequest.Except(assetMapFromIncrementalSolution.Keys)).ConfigureAwait(false);
Services\DiagnosticAnalyzer\PerformanceQueue.cs (1)
151=> analyzerSet.UnionWith(_performanceMap.Keys);
Microsoft.CodeAnalysis.Test.Utilities (5)
Assert\AssertEx.cs (1)
407foreach (var expectedItem in indexes.Keys)
CompilationVerifier.cs (1)
119throw new Exception($"Didn't find method '{methodName}'. Available/distinguishable methods are: {Environment.NewLine}{string.Join(Environment.NewLine, map.Keys)}");
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
124foreach (ILocalSymbol local in localsSourceTypes.Keys) 151foreach (IFieldSymbol field in fieldsSourceTypes.Keys)
InstrumentationChecker.cs (1)
333foreach (int method in _spanExpectations.Keys)
Microsoft.CodeAnalysis.VisualBasic (4)
Binding\ImplicitVariableBinder.vb (1)
97For Each localName As String In _implicitLocals.Keys
Symbols\Source\SourceFieldSymbol.vb (3)
276fields.AddRange(graph.Keys) 437Dim search = If(DirectCast(lastUpdated, IEnumerable(Of SourceFieldSymbol)), graph.Keys) 532fieldsInvolvedInCycles.AddRange(graph.Keys.GroupBy(Function(f) f.DeclaringCompilation).
Microsoft.CodeAnalysis.Workspaces (10)
CodeCleanup\AbstractCodeCleanerService.cs (1)
596return node.ReplaceTokens(tokenMap.Keys, (o, n) => o.WithAdditionalAnnotations([.. tokenMap[o]]));
Shared\Utilities\ExtensionOrderer.Graph.cs (1)
22return this.Nodes.Keys.Where(k => k.Metadata.Name == name);
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (2)
180get { return _dictionary is null ? s_emptyDictionary.Keys : _dictionary.Keys; }
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
563return [.. result.Keys.OrderBy(s => result[s])];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.AnalysisData.cs (1)
237foreach (var symbol in SymbolsWriteBuilder.Keys.Select(d => d.symbol).ToArray())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
132foreach (var key in _reachingWrites.Keys)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
237[.. importToSyntax.Keys],
Workspace\Solution\SolutionCompilationState.cs (1)
1365[.. documentStatesByProjectId.Keys],
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\MultiDictionary.cs (1)
214public Dictionary<K, ValueSet>.KeyCollection Keys => _dictionary.Keys;
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
HandlerProvider.cs (1)
94VerifyHandlers(builder.Keys);
Microsoft.Data.Analysis (1)
DataFrame.Join.cs (1)
210var shrinkedRetainedIndices = occurrences.Keys.ToArray();
Microsoft.DotNet.Build.Tasks.Packaging (10)
GeneratePackageReport.cs (2)
252foreach(var framework in _frameworks.Keys.ToArray()) 337foreach (string packageId in packageItems.Keys)
GetApplicableAssetsFromPackages.cs (1)
192foreach (string packageId in _packageToPackageItems.Keys)
HarvestPackage.cs (1)
523_pathsNotIncluded = new HashSet<string>(_pathsToInclude.Keys);
NuGetAssetResolver.cs (4)
195foreach (var package in _packages.Keys) 245foreach (var package in _packages.Keys) 263foreach (var package in _packages.Keys) 278foreach (var package in _packages.Keys)
PromoteDependencies.cs (2)
45var refFxs = refSets.Keys.ToArray(); 50var libFxs = libSets.Keys.ToArray();
Microsoft.DotNet.Build.Tasks.Workloads (6)
CreateVisualStudioWorkload.wix.cs (2)
342_ = Parallel.ForEach(data.FeatureBands.Keys, platform => 389foreach (var platform in packGroup.ManifestsPerPlatform.Keys)
Swix\SwixComponent.cs (1)
200if (pack.IsAlias && pack.AliasTo != null && !pack.AliasTo.Keys.Any(rid => s_SupportedRids.Contains(rid)))
Utils.cs (1)
73foreach (string token in tokenReplacements.Keys)
Wix\HarvesterToolTask.cs (1)
128foreach (var suppression in s_SuppressionArguments.Keys)
WorkloadPackPackage.wix.cs (1)
69foreach (string rid in pack.AliasTo.Keys)
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\ReplacePackageParts.cs (1)
225foreach (var partName in replacementMap.Keys.OrderBy(k => k))
Microsoft.DotNet.SharedFramework.Sdk (1)
src\CreateFrameworkListFile.cs (1)
254?.Keys.Except(usedFileClasses).OrderBy(p => p)
Microsoft.DotNet.SignCheckLibrary (5)
Verification\ArchiveVerifier.cs (1)
63foreach (string fullName in archiveMap.Keys)
Verification\Jar\JarIndividualEntry.cs (1)
74string digestAttributeKey = Attributes.Keys.FirstOrDefault(key => key.EndsWith("-Digest", StringComparison.OrdinalIgnoreCase));
Verification\Jar\JarSignatureFile.cs (3)
38return MainAttributes.Keys.Any(key => key.EndsWith("-Digest-Manifest-Main-Attributes")); 126string digestAttributeKey = MainAttributes.Keys.FirstOrDefault(key => key.EndsWith("-Digest-Manifest-Main-Attributes", StringComparison.OrdinalIgnoreCase)); 202return (from key in MainAttributes.Keys
Microsoft.DotNet.VersionTools (1)
BuildManifest\VersionIdentifier.cs (1)
207int maxKey = majorMinorPatchDictionary.Keys.Max();
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
283public ICollection<string> Keys => _properties.Keys;
Microsoft.Extensions.DependencyModel (2)
DependencyContextWriter.cs (2)
151foreach (string packageName in runtimeLookup.Keys.Concat(compileLookup.Keys).Distinct())
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\Resources\HardcodedValueFileSystem.cs (1)
38return _fileContent.Keys
Microsoft.Extensions.Http.Diagnostics (3)
Latency\Internal\HttpRequestLatencyListener.cs (3)
125foreach (string key in _socketMap.Keys) 131foreach (string key in _nameResolutionMap.Keys) 137foreach (string key in _httpMap.Keys)
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
105foreach (var providerName in Options.Tokens.ProviderMap.Keys)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\AspNetCoreBenchmarkAttribute.cs (1)
52$"Known configurations: {string.Join(", ", ConfigTypes.Keys)}";
Microsoft.Extensions.Telemetry.Tests (1)
Latency\Internal\TagCollectionTests.cs (1)
37foreach (var s in namesNumTimes.Keys)
Microsoft.Maui (2)
PropertyMapper.cs (1)
115 foreach (var key in _mapper.Keys)
VisualDiagnostics\VisualDiagnosticsOverlay.cs (1)
26 public IReadOnlyCollection<IScrollView> ScrollViews => _scrollViews.Keys;
Microsoft.Maui.Controls (8)
DragAndDrop\DataPackagePropertySet.cs (1)
29 public IEnumerable<string> Keys => _propertyBag.Keys;
Platform\GestureManager\GesturePlatformManager.iOS.cs (1)
684 foreach (var key in _gestureRecognizers.Keys)
ResourceDictionary.cs (2)
247 return _innerDictionary.Keys; 250 return new ReadOnlyCollection<string>(_innerDictionary.Keys.Concat(_mergedInstance.Keys).ToList());
Routing.cs (2)
144 foreach (var key in s_routes.Keys) 148 foreach (var key in s_implicitPageRoutes.Keys)
Shell\ShellNavigationQueryParameters.cs (1)
51 public ICollection<string> Keys => _internal.Keys;
Visuals\VisualTypeConverter.cs (1)
188 return _visualTypeMappings.Keys.Skip(_visualTypeMappings.Values.IndexOf(visual)).First();
Microsoft.Maui.Controls.Compatibility (1)
iOS\EventTracker.cs (1)
647 var toRemove = _gestureRecognizers.Keys.Where(key => !ElementGestureRecognizers.Contains(key)).ToArray();
Microsoft.Maui.Resizetizer (1)
DetectInvalidResourceOutputFilenamesTask.cs (1)
47 InvalidItems = tempInvalidItems.Keys.ToArray();
Microsoft.ML.AutoML (1)
Sweepers\ISweeper.cs (1)
91var parameterNames = _parameterValues.Keys.ToList();
Microsoft.ML.Core (1)
Utilities\Tree.cs (1)
70public ICollection<TKey> Keys { get { return _children.Keys; } }
Microsoft.ML.Data (7)
EntryPoints\EntryPointNode.cs (1)
498var missing = _inputBuilder.GetMissingValues().Except(_inputBindingMap.Keys).ToArray();
Evaluators\EvaluatorUtils.cs (3)
494var reconciledSlotNames = new VBuffer<ReadOnlyMemory<char>>(slotNames.Count, slotNames.Keys.Select(k => k.AsMemory()).ToArray()); 615var keyNamesVBuffer = new VBuffer<ReadOnlyMemory<char>>(keyNames.Count, keyNames.Keys.ToArray()); 683var keyNamesVBuffer = new VBuffer<ReadOnlyMemory<char>>(keyNames.Count, keyNames.Keys.ToArray());
Model\Pfa\BoundPfaContext.cs (1)
93_nameToVarName[_nameToVarName.Keys.First()] = "input";
Transforms\ValueMapping.cs (2)
948_mapping.Keys, 971return _mapping.Keys.Cast<T>().ToArray();
Microsoft.ML.Fairlearn (14)
Metrics\FairlearnMetricCatalog.cs (14)
100result[_sensitiveFeatureColumn] = DataFrameColumn.Create(_sensitiveFeatureColumn, groupMetric.Keys.Select(x => x.ToString())); 101result["AUC"] = DataFrameColumn.Create("AUC", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderRocCurve)); //coloumn name? 102result["Accuracy"] = DataFrameColumn.Create("Accuracy", groupMetric.Keys.Select(k => groupMetric[k].Accuracy)); 103result["PosPrec"] = DataFrameColumn.Create("PosPrec", groupMetric.Keys.Select(k => groupMetric[k].PositivePrecision)); 104result["PosRecall"] = DataFrameColumn.Create("PosRecall", groupMetric.Keys.Select(k => groupMetric[k].PositiveRecall)); 105result["NegPrec"] = DataFrameColumn.Create("NegPrec", groupMetric.Keys.Select(k => groupMetric[k].NegativePrecision)); 106result["NegRecall"] = DataFrameColumn.Create("NegRecall", groupMetric.Keys.Select(k => groupMetric[k].NegativeRecall)); 107result["F1Score"] = DataFrameColumn.Create("F1Score", groupMetric.Keys.Select(k => groupMetric[k].F1Score)); 108result["AreaUnderPrecisionRecallCurve"] = DataFrameColumn.Create("AreaUnderPrecisionRecallCurve", groupMetric.Keys.Select(k => groupMetric[k].AreaUnderPrecisionRecallCurve)); 234result[_sensitiveFeatureColumn] = DataFrameColumn.Create(_sensitiveFeatureColumn, groupMetric.Keys.Select(x => x.ToString())); 235result["RSquared"] = DataFrameColumn.Create("RSquared", groupMetric.Keys.Select(k => groupMetric[k].RSquared)); 236result["RMS"] = DataFrameColumn.Create("RMS", groupMetric.Keys.Select(k => groupMetric[k].RootMeanSquaredError)); 237result["MSE"] = DataFrameColumn.Create("MSE", groupMetric.Keys.Select(k => groupMetric[k].MeanSquaredError)); 238result["MAE"] = DataFrameColumn.Create("MAE", groupMetric.Keys.Select(k => groupMetric[k].MeanAbsoluteError));
Microsoft.ML.FastTree (5)
Dataset\Dataset.cs (2)
809foreach (string name in part.AuxiliaryData.Keys) 817foreach (string name in auxNames.Keys)
Dataset\DatasetUtils.cs (1)
57uint[] valueMap = uvalToOrder.Keys.OrderBy(x => x).ToArray(uvalToOrder.Count);
TreeEnsemble\InternalTreeEnsemble.cs (2)
408combinedKeys = Keys.Union(currentGains.Keys).Distinct().ToList();
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
928List<int> allFoldIndices = new List<int>(foldResults.Keys);
Microsoft.ML.SearchSpace (3)
Option\NestOption.cs (1)
68foreach (var key in _options.Keys.OrderBy(k => k))
SearchSpace.cs (2)
115foreach (var key in _options.Keys.OrderBy(k => k)) 136foreach (var key in _options.Keys.OrderBy(k => k))
Microsoft.ML.Sweeper (1)
ISweeper.cs (1)
120var parameterNames = _parameterValues.Keys.ToList();
Microsoft.ML.TimeSeries (6)
RootCauseAnalyzer.cs (6)
674foreach (string key in anomalyDis.Keys) 688foreach (string key in pointDis.Keys) 820if (x.Keys.Except(y.Keys).Any()) 824if (y.Keys.Except(x.Keys).Any())
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionMetrics.cs (2)
127foreach (string label in iouDic?.Keys) 148foreach (string label in iouDic.Keys)
Utils\DefaultDictionary.cs (1)
104public ICollection<TKey> Keys => _dictionary.Keys;
Microsoft.ML.Transforms (1)
Dracula\DictCountTable.cs (1)
236foreach (long key in table.Keys)
Microsoft.VisualStudio.LanguageServices (4)
ChangeSignature\ChangeSignatureDialogViewModel.cs (1)
125foreach (var parameterName in parameterNameOverlapMap.Keys)
Implementation\VsRefactorNotifyService.cs (2)
41foreach (var hierarchy in hierarchyToItemIDsMap.Keys) 78foreach (var hierarchy in hierarchyToItemIDsMap.Keys)
Utilities\VsCodeWindowViewTracker.cs (1)
133foreach (var view in _trackedTextViews.Keys.ToList())
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
ReferenceCodeLensProvider.cs (1)
102keys = [.. _dataPoints.Keys];
MSBuild (1)
TaskParameter.cs (1)
793List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
MSBuildTaskHost (3)
Immutable\ImmutableDictionary.cs (2)
41public ICollection<K> Keys => _backing.Keys; 44ICollection IDictionary.Keys => _backing.Keys;
TaskParameter.cs (1)
793List<string> metadataNames = (_customEscapedMetadata == null) ? new List<string>() : new List<string>(_customEscapedMetadata.Keys);
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (3)
1913foreach (string key in _processContents.Keys) 1925foreach (string key in _preserveElements.Keys) 1937foreach (string key in _preserveAttributes.Keys)
PresentationCore (10)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
626return CMap.Keys;
MS\Internal\FontFace\CompositeFontInfo.cs (2)
148foreach (XmlLanguage language in _familyMapRangesByLanguage.Keys) 355return _familyMapRangesByLanguage.Keys;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
389foreach (Edge edge in adjInformation.Keys)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
204foreach (object key in _assemblies.Keys)
System\Windows\Input\ManipulationDevice.cs (1)
250foreach (UIElement element in _manipulationDevices.Keys)
System\Windows\Media\FontEmbeddingManager.cs (2)
70return _collectedGlyphTypefaces.Keys; 90return glyphsUsed.Keys;
System\Windows\Media\UniqueEventHelper.cs (1)
132delegates.Keys.CopyTo(handlers, 0);
System\Windows\Media\Visual.cs (1)
5232foreach (ICyclicBrush cyclicBrush in cyclicBrushToChannelsMap.Keys)
PresentationFramework (16)
MS\Internal\Annotations\AnnotationMap.cs (2)
88List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 90foreach (Guid annId in _annotationIdToAttachedAnnotations.Keys)
MS\Internal\Annotations\ObservableDictionary.cs (1)
282return _nameValues.Keys;
MS\Internal\Data\CommitManager.cs (2)
178return Keys.GetEnumerator(); 183return new List<T>(Keys);
MS\Internal\Data\LiveShapingList.cs (1)
689_unusedKeys = new List<string>(this.Keys);
System\Windows\Annotations\Storage\XmlStreamStore.cs (4)
468Uri[] res = new Uri[_predefinedNamespaces.Keys.Count]; 469_predefinedNamespaces.Keys.CopyTo(res, 0); 773foreach (Uri name in _predefinedNamespaces.Keys) 824foreach (Uri name in _predefinedNamespaces.Keys)
System\Windows\Documents\FixedDocument.cs (2)
1059foreach (FixedPage page in _highlights.Keys) 1153ICollection<FixedPage> newHighlightPages = _highlights.Keys as ICollection<FixedPage>;
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (2)
286foreach (string ns in _nsDefinitions.Keys) 296foreach (string ns in _piNamespaces.Keys)
System\Windows\SystemResources.cs (2)
1029_hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue) == null) 1550var hwndDpiInfo = _hwndNotify.Keys.FirstOrDefault((hwndDpiContext) => hwndDpiContext.DpiAwarenessContextValue == ProcessDpiAwarenessContextValue);
ReachFramework (9)
packaging\XpsDigitalSignature.cs (2)
78dependentList.Keys) && 79CollectionContainsCollection(dependentList.Keys,
Packaging\XpsDocument.cs (1)
859CurrentXpsManager.Sign(dependentList.Keys,
Packaging\XpsFixedPageReaderWriter.cs (5)
1414foreach( Uri uri in _imageCache.Keys) 1421foreach( Uri uri in _fontCache.Keys) 1428foreach( Uri uri in _colorContextCache.Keys) 1435foreach( Uri uri in _resourceDictionaryCache.Keys) 1443foreach( Uri uri in _resourceCache.Keys)
PrintConfig\PrtTicket_Public_Simple.cs (1)
1609foreach (CapabilityName feature in _setterCache.Keys)
RunTests (1)
TestHistoryManager.cs (1)
123ConsoleUtil.WriteLine($"Retrieved {testInfos.Keys.Count} tests from AzureDevops in {timer.Elapsed}. Total runtime of all tests is {totalTestRuntime}");
System.Collections.Immutable (4)
System\Collections\Frozen\FrozenDictionary.cs (1)
159string[] keys = (string[])(object)source.Keys.ToArray();
System\Collections\Frozen\SmallFrozenDictionary.cs (1)
28_keys = source.Keys.ToArray();
System\Collections\Frozen\SmallValueTypeComparableFrozenDictionary.cs (1)
34_keys = source.Keys.ToArray();
System\Collections\Frozen\SmallValueTypeDefaultComparerFrozenDictionary.cs (1)
26_keys = source.Keys.ToArray();
System.Data.Odbc (1)
Common\System\Data\Common\DbConnectionOptions.cs (1)
109get { return _parsetable.Keys; }
System.Diagnostics.Process (2)
System\Collections\Specialized\DictionaryWrapper.cs (2)
29public ICollection<string> Keys => _contents.Keys; 32ICollection IDictionary.Keys => _contents.Keys;
System.Formats.Nrbf (2)
System\Formats\Nrbf\ClassRecord.cs (1)
29public IEnumerable<string> MemberNames => ClassInfo.MemberNames.Keys;
System\Formats\Nrbf\RecordMap.cs (1)
16public IEnumerable<SerializationRecordId> Keys => _map.Keys;
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
530foreach (int wd in this._wdToPathMap.Keys)
System.IO.Packaging (6)
System\IO\Packaging\ContentType.cs (1)
227foreach (string parameterKey in _parameterDictionary.Keys)
System\IO\Packaging\XmlCompatibilityReader.cs (3)
1692foreach (string key in _processContents.Keys) 1703foreach (string key in _preserveElements.Keys) 1714foreach (string key in _preserveAttributes.Keys)
System\IO\Packaging\ZipPackage.cs (2)
919foreach (string key in _defaultDictionary.Keys) 927foreach (PackUriHelper.ValidatedPartUri key in _overrideDictionary.Keys)
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
2582foreach (ParameterExpression variable in compiler._locals.ClosureVariables.Keys)
System.Net.Http (2)
System\Net\Http\HttpRequestOptions.cs (2)
20IEnumerable<string> IReadOnlyDictionary<string, object?>.Keys => Options.Keys; 33ICollection<string> IDictionary<string, object?>.Keys => Options.Keys;
System.Net.HttpListener (3)
System\Net\Managed\HttpEndPointListener.cs (1)
192foreach (ListenerPrefix p in localPrefixes.Keys)
System\Net\Managed\HttpListener.Managed.cs (2)
220Dictionary<HttpListenerContext, HttpListenerContext>.KeyCollection keys = _listenerContexts.Keys; 230Dictionary<HttpConnection, HttpConnection>.KeyCollection keys = _connections.Keys;
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
218ICollection<TKey> IDictionary<TKey, TValue>.Keys => Keys; 220IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (7)
4559foreach (EventListener listener in allListeners.Keys) 5463foreach (int item in this.channelTab.Keys) 5694var sortedTasks = new List<int>(taskTab.Keys); 5771var sortedOpcodes = new List<int>(opcodeTab.Keys); 5786var sortedKeywords = new List<ulong>(keywordTab.Keys); 5824var sortedStrings = new string[stringTab.Keys.Count]; 5825stringTab.Keys.CopyTo(sortedStrings, 0);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
184foreach (string name in _typeBuilderDict.Keys)
System.Private.Xml (19)
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
337return _mappings.Keys;
System\Xml\Schema\SchemaInfo.cs (1)
300foreach (string tns in sinfo.TargetNamespaces.Keys)
System\Xml\Schema\XdrValidator.cs (1)
133foreach (string inlineNS in xdrSchema.TargetNamespaces.Keys)
System\Xml\Serialization\Compilation.cs (2)
445TypeScope[] scopes = new TypeScope[scopeTable.Keys.Count]; 446scopeTable.Keys.CopyTo(scopes, 0);
System\Xml\Serialization\XmlSerializationILGen.cs (1)
418foreach (string key in serializers.Keys)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
246foreach (string id in _idNames.Keys)
System\Xml\Serialization\XmlSerializer.cs (2)
730foreach (XmlSerializerMappingKey mappingKey in pendingKeys.Keys) 738foreach (XmlSerializerMappingKey mappingKey in pendingKeys.Keys)
System\Xml\XmlNamespacemanager.cs (1)
218return prefixes.Keys.GetEnumerator();
System\Xml\Xsl\Xslt\Compiler.cs (1)
143foreach (QilName attSetName in sheet.AttributeSets!.Keys)
System\Xml\Xsl\Xslt\Scripts.cs (1)
64public ICollection<string> Keys => _backingDictionary.Keys;
System\Xml\Xsl\Xslt\Stylesheet.cs (1)
61foreach (QilName mode in TemplateMatches.Keys)
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (6)
94foreach (V v in Keys) 99foreach (V v in Keys) 774foreach (ProtoTemplate t in _revCall0Graph!.Keys) 778foreach (ProtoTemplate t in _revCall1Graph!.Keys) 783foreach (ProtoTemplate t in _revCall0Graph.Keys) 793foreach (ProtoTemplate t in _revCall1Graph.Keys)
System.Runtime.Caching (1)
System\Runtime\Caching\MemoryCacheEntry.cs (1)
253deps = _fields._dependents.Keys;
System.Security.Cryptography.Cose (2)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (2)
43public ICollection<CoseHeaderLabel> Keys => _headerParameters.Keys; 58IEnumerable<CoseHeaderLabel> IReadOnlyDictionary<CoseHeaderLabel, CoseHeaderValue>.Keys => _headerParameters.Keys;
System.ServiceModel.Syndication (5)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
592foreach (XmlQualifiedName attr in attrs.Keys)
System\ServiceModel\Syndication\ExtensibleSyndicationObject.cs (2)
20foreach (XmlQualifiedName key in source._attributeExtensions.Keys) 97foreach (XmlQualifiedName qname in _attributeExtensions.Keys)
System\ServiceModel\Syndication\SyndicationContent.cs (2)
86foreach (XmlQualifiedName key in _attributeExtensions.Keys) 109foreach (XmlQualifiedName key in source._attributeExtensions.Keys)
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\KeyTipService.cs (1)
354foreach (DependencyObject element in elementToScopeMap.Keys)
System.Windows.Forms (13)
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
64_attachedEventList.Keys.CopyTo(events, 0);
System\Windows\Forms\DataBinding\BindingSource.cs (1)
174foreach (string key in _relatedBindingSources.Keys)
System\Windows\Forms\OLE\DataObject.DataStore.cs (3)
162Debug.Assert(_mappedData.Keys is not null, "data Keys collection can't be null"); 164string[] baseVar = new string[_mappedData.Keys.Count]; 165_mappedData.Keys.CopyTo(baseVar, 0);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (2)
37foreach (object controlName in _controlsInfo.Keys) 89foreach (object name in _controlsInfo.Keys)
System\Windows\Forms\ToolTip\ToolTip.cs (4)
485Control[] controls = [.. _tools.Keys]; 793Control[] controls = [.. _tools.Keys]; 802Control[] controls = [.. _tools.Keys]; 1147Control[] controls = [.. _tools.Keys];
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (2)
811string[] classNames = new string[t_themeHandles.Keys.Count]; 812t_themeHandles.Keys.CopyTo(classNames, 0);
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionService.cs (2)
100IComponent[] compsRemoved = [.. _designerActionLists.Keys]; 325foreach (IComponent comp in _designerActionLists.Keys)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
95completeNames.UnionWith(_statementsTable.Keys); 499statementCtx.StatementCollection.Populate(objectData.Keys);
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (1)
173foreach (object obj in _objects.Keys)
System\Windows\Forms\Design\SelectionUIService.cs (2)
425shapeChanged = _selectionItems.Keys.Count != newSelection.Keys.Count;
System.Windows.Forms.Primitives (1)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (1)
266foreach (int currentId in _members.Keys)
System.Windows.Forms.Tests (1)
System\Windows\Forms\ClipboardTests.cs (1)
1148public string[] GetFormats() => _formatToJson.Keys.ToArray();
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\ManipulationSequence.cs (1)
306? new HashSet<int>(this.manipulatorStates.Keys)
System.Xaml (9)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
204foreach (object key in _assemblies.Keys)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (3)
1913foreach (string key in _processContents.Keys) 1925foreach (string key in _preserveElements.Keys) 1937foreach (string key in _preserveAttributes.Keys)
System\Xaml\Context\NameFixupGraph.cs (3)
262foreach (object key in _dependenciesByParentObject.Keys) 267List<string> names = new List<string>(_dependenciesByName.Keys); 297List<object> parentObjs = new List<object>(_dependenciesByParentObject.Keys);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (1)
1550foreach (XamlMember prop in propertyValues.Keys)
System\Xaml\Parser\NodeStreamSorter.cs (1)
211foreach (string prefix in _xmlnsDictionary.Keys)
WindowsFormsIntegration (1)
System\Windows\Integration\PropertyMap.cs (1)
103return _wrappedDictionary.Keys;
xunit.assert (4)
Sdk\AssertHelper.cs (4)
702 return EquivalentException.ForMemberListMismatch(expectedGetters.Keys, actualGetters.Keys, prefixDot); 713 return EquivalentException.ForMemberListMismatch(expectedGetters.Keys, actualGetters.Keys, prefixDot);
xunit.console (2)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (2)
76internalDiagnosticsMessageSink.OnMessage(new _DiagnosticMessage($"[DependencyContextAssemblyCache..ctor] Managed assembly map: [{string.Join(",", managedAssemblyMap.Keys.Select(k => $"'{k}'").OrderBy(k => k, StringComparer.OrdinalIgnoreCase))}]")); 90internalDiagnosticsMessageSink.OnMessage(new _DiagnosticMessage($"[DependencyContextAssemblyCache..ctor] Unmanaged assembly map: [{string.Join(",", unmanagedAssemblyMap.Keys.Select(k => $"'{k}'").OrderBy(k => k, StringComparer.OrdinalIgnoreCase))}]"));