76 implementations of Keys
Microsoft.AspNetCore.Components (1)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
335IEnumerable<string> IReadOnlyDictionary<string, object?>.Keys => Keys;
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.cs (1)
234public IEnumerable<string> Keys => _form.Keys;
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.AspNetCore.Http (1)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
175IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\RouteValueDictionary.cs (1)
335IEnumerable<string> IReadOnlyDictionary<string, object?>.Keys => Keys;
Microsoft.AspNetCore.Mvc.Abstractions (2)
ModelBinding\ModelStateDictionary.cs (1)
145IEnumerable<string> IReadOnlyDictionary<string, ModelStateEntry?>.Keys => Keys;
ModelBinding\Validation\ValidationStateDictionary.cs (1)
67IEnumerable<object> IReadOnlyDictionary<object, ValidationStateEntry>.Keys =>
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
AttributeDictionary.cs (1)
69IEnumerable<string> IReadOnlyDictionary<string, string?>.Keys => new KeyCollection(this);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
175IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
Microsoft.Build (3)
BackEnd\BuildManager\GlobalPropertiesLookup.cs (1)
59public IEnumerable<string> Keys => _backingProperties.Keys;
Collections\ArrayDictionary.cs (1)
70IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => keys;
ReadOnlyEmptyDictionary.cs (1)
133IEnumerable<K> IReadOnlyDictionary<K, V>.Keys
Microsoft.Build.Framework (3)
ImmutableSegmentedDictionary`2.cs (1)
100IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
ImmutableSegmentedDictionary`2+Builder.cs (1)
62IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
SegmentedDictionary`2.cs (1)
171IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
Microsoft.Build.Tasks.Core (1)
ReadOnlyEmptyDictionary.cs (1)
133IEnumerable<K> IReadOnlyDictionary<K, V>.Keys
Microsoft.Build.Utilities.Core (1)
ReadOnlyEmptyDictionary.cs (1)
133IEnumerable<K> IReadOnlyDictionary<K, V>.Keys
Microsoft.CodeAnalysis (5)
InternalUtilities\SpecializedCollections.Empty.Dictionary.cs (1)
47IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
100IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
39IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
60readonly IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => throw new NotSupportedException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
234IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
Microsoft.CodeAnalysis.CodeStyle (5)
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Dictionary.cs (1)
47IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
100IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
39IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
60readonly IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => throw new NotSupportedException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
234IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
Microsoft.CodeAnalysis.Collections.Package (4)
ImmutableSegmentedDictionary`2.cs (1)
100IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
ImmutableSegmentedDictionary`2+Builder.cs (1)
39IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
60readonly IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => throw new NotSupportedException();
SegmentedDictionary`2.cs (1)
234IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
Microsoft.CodeAnalysis.Workspaces (5)
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Dictionary.cs (1)
47IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
100IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
39IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
60readonly IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => throw new NotSupportedException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
234IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Dictionary.cs (1)
47IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
100IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
39IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
60readonly IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => throw new NotSupportedException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
234IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
Microsoft.Extensions.AI (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Extensions.AI.Abstractions (2)
AdditionalPropertiesDictionary{TValue}.cs (1)
83IEnumerable<string> IReadOnlyDictionary<string, TValue>.Keys => _dictionary.Keys;
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1106public IEnumerable<string> Keys => [nameof(BaseValue)];
Microsoft.Extensions.AI.AzureAIInference (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Extensions.AI.Ollama (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Extensions.AI.OpenAI (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Gen.Logging.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Gen.Metrics.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Gen.MetricsReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Microsoft.Maui.Controls (1)
DragAndDrop\DataPackagePropertySetView.cs (1)
23 public IEnumerable<string> Keys => _dataPackagePropertySet.Keys;
MSBuild (1)
ReadOnlyEmptyDictionary.cs (1)
133IEnumerable<K> IReadOnlyDictionary<K, V>.Keys
Shared (1)
EmptyCollections\EmptyReadonlyDictionary.cs (1)
24public IEnumerable<TKey> Keys => EmptyReadOnlyList<TKey>.Instance;
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
1106public IEnumerable<string> Keys => [nameof(BaseValue)];
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
264IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
System\Collections\Generic\SortedDictionary.cs (1)
163IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys
System\Collections\Generic\SortedList.cs (1)
317IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1599IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => GetKeys();
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
293IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys =>
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
157public IEnumerable<TKey> Keys
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
166public IEnumerable<TKey> Keys
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
94public IEnumerable<TKey> Keys
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
116public IEnumerable<TKey> Keys
System.Formats.Nrbf (1)
System\Formats\Nrbf\RecordMap.cs (1)
16public IEnumerable<SerializationRecordId> Keys => _map.Keys;
System.Net.Http (2)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (1)
97IEnumerable<string> IReadOnlyDictionary<string, HeaderStringValues>.Keys
System\Net\Http\HttpRequestOptions.cs (1)
20IEnumerable<string> IReadOnlyDictionary<string, object?>.Keys => Options.Keys;
System.Net.WebSockets.Client (1)
System\Net\WebSockets\HttpResponseHeadersReadOnlyCollection.cs (1)
19public IEnumerable<string> Keys
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
220IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
241IEnumerable<TKey> IReadOnlyDictionary<TKey, TValue>.Keys => Keys;
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
58IEnumerable<CoseHeaderLabel> IReadOnlyDictionary<CoseHeaderLabel, CoseHeaderValue>.Keys => _headerParameters.Keys;
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\GroupCollection.cs (1)
212public IEnumerable<string> Keys
63 references to Keys
Aspire.Hosting.MySql.Tests (1)
AddMySqlTests.cs (1)
330Assert.Equal(["db1", "db2"], mysql1.Resource.Databases.Keys);
InMemory.FunctionalTests (10)
KestrelMetricsTests.cs (10)
753Assert.DoesNotContain("error.type", m.Tags.Keys); 913Assert.DoesNotContain("tls.protocol.version", m.Tags.Keys); 941Assert.DoesNotContain("server.port", measurement.Tags.Keys); 949Assert.DoesNotContain("network.type", measurement.Tags.Keys); 958Assert.DoesNotContain("network.protocol.name", measurement.Tags.Keys); 959Assert.DoesNotContain("network.protocol.version", measurement.Tags.Keys); 967Assert.DoesNotContain("tls.protocol.version", measurement.Tags.Keys); 977Assert.DoesNotContain("error.type", measurement.Tags.Keys); 997Assert.DoesNotContain("server.port", measurement.Tags.Keys); 1005Assert.DoesNotContain("network.type", measurement.Tags.Keys);
Microsoft.AspNetCore.Components.Endpoints (2)
FormMapping\FormDataReader.cs (2)
126var keys = _readOnlyMemoryKeys.Keys; 183_prefixResolver = new PrefixResolver(_readOnlyMemoryKeys.Keys, _readOnlyMemoryKeys.Count);
Microsoft.AspNetCore.Http.Extensions (2)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (2)
126var keys = _readOnlyMemoryKeys.Keys; 183_prefixResolver = new PrefixResolver(_readOnlyMemoryKeys.Keys, _readOnlyMemoryKeys.Count);
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
68((IReadOnlyDictionary<object, ValidationStateEntry>)_inner).Keys;
Microsoft.AspNetCore.Routing (1)
Template\TemplateBinder.cs (1)
111_requiredKeys = pattern.RequiredValues.Keys.ToArray();
Microsoft.Build (2)
BackEnd\Shared\BuildRequest.cs (1)
152_targets = proxyTargets.ProxyTargetToRealTargetMap.Keys.ToList();
BackEnd\Shared\BuildRequestConfiguration.cs (1)
774CollectionHelpers.SetEquivalent(request.Targets, request.ProxyTargets.ProxyTargetToRealTargetMap.Keys),
Microsoft.Build.BuildCheck.UnitTests (1)
ConfigurationProvider_Tests.cs (1)
92configs!.Keys.Count().ShouldBe(3);
Microsoft.Build.Engine.UnitTests (12)
EvaluationProfiler_Tests.cs (6)
107var profiledElements = result.ProfiledLocations.Keys.ToList(); 139var profiledElements = result.ProfiledLocations.Keys.ToList(); 148var profiledElements = result.ProfiledLocations.Keys.ToList(); 192var profiledElements = result.ProfiledLocations.Keys.ToList(); 220var profiledElements = result.ProfiledLocations.Keys.ToList(); 251var profiledElements = result.ProfiledLocations.Keys.ToList();
Graph\GraphLoadedFromSolution_tests.cs (6)
543foreach ((ConfigurationMetadata, ConfigurationMetadata) graphFromSolutionEdge in graphFromSolutionEdges.Keys) 554foreach ((ConfigurationMetadata, ConfigurationMetadata) graphFromSolutionEdge in graphFromSolutionEdges.Keys) 564graphFromSolutionEdges.Keys.ShouldContain(graphEdge.Key); 568var solutionOnlyEdges = graphFromSolutionEdges.Keys.Except(graphEdges.Keys).ToList(); 577graphFromSolutionEdges.Keys.ShouldContain(edge => EdgeCompliesWithSolutionDependency(edge, solutionDependency));
Microsoft.Build.Framework (1)
Profiler\ProfilerResult.cs (1)
44return ProfiledLocations.Keys.Aggregate(0, (acum, location) => acum + location.GetHashCode());
Microsoft.CodeAnalysis (1)
Compilation\DeterministicKeyBuilder.cs (1)
526foreach (var key in features.Keys.OrderBy(StringComparer.Ordinal))
Microsoft.CodeAnalysis.UnitTests (4)
Collections\ImmutableDictionaryBuilderTestBase.cs (1)
132CollectionAssertAreEquivalent(new[] { "five", "six" }, ((IReadOnlyDictionary<string, int>)builder).Keys.ToArray());
Collections\ImmutableDictionaryTestBase.cs (1)
243Assert.Equal(0, empty.Keys.Count());
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (2)
210Assert.Equal(0, map.Keys.Count()); 214Assert.Equal(1, nonEmpty.Keys.Count());
Microsoft.Data.Analysis.Tests (8)
ArrayComparer.cs (8)
143return f1.Metadata.Keys.Count() == f2.Metadata.Keys.Count() && 144f1.Metadata.Keys.All(k => f2.Metadata.ContainsKey(k) && f1.Metadata[k] == f2.Metadata[k]) && 145f2.Metadata.Keys.All(k => f1.Metadata.ContainsKey(k) && f2.Metadata[k] == f1.Metadata[k]); 174return s1.Metadata.Keys.Count() == s2.Metadata.Keys.Count() && 175s1.Metadata.Keys.All(k => s2.Metadata.ContainsKey(k) && s1.Metadata[k] == s2.Metadata[k]) && 176s2.Metadata.Keys.All(k => s1.Metadata.ContainsKey(k) && s2.Metadata[k] == s1.Metadata[k]);
Microsoft.DotNet.Build.Tasks.Packaging (3)
NuGetAssetResolver.cs (3)
222foreach (var packageId in allCompileItems.Keys) 291foreach (var packageId in allRuntimeItems.Keys) 308foreach (var packageId in allNativeItems.Keys)
Microsoft.DotNet.GenFacades (1)
SourceGenerator.cs (1)
73if (_seedTypePreferences.Keys.Contains(type))
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (3)
HealthCheckPublisherHostedServiceTest.cs (3)
211Assert.Equal(new[] { "one", "two", }, report.Entries.Keys.OrderBy(k => k)); 370Assert.Equal("CheckDefault", Assert.Single(Assert.Single(publisher.Entries).report.Entries.Keys)); 435Assert.Equal(new[] { "one", "two", }, report.Entries.Keys.OrderBy(k => k));
Microsoft.ML.Tokenizers (2)
Model\SentencePieceTokenizer.cs (1)
90_specialTokensRegex = new Regex(string.Join("|", specialTokens.Keys.Select(s => Regex.Escape(s))), RegexOptions.Compiled);
PreTokenizer\RegexPreTokenizer.cs (1)
39_specialTokensRegex = new Regex(string.Join("|", specialTokens.Keys.Select(s => Regex.Escape(s))), RegexOptions.Compiled);
Microsoft.ML.Tokenizers.Tests (1)
LlamaTests.cs (1)
684string[] specialTokens = tokenizer.SpecialTokens.Keys.ToArray();
Microsoft.VisualStudio.LanguageServices (1)
EditorConfigSettings\Common\EnumSettingViewModel.cs (1)
53=> [.. _mapping.Keys];
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
60foreach (char openingBracket in attributeList.Keys)
PresentationFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
60foreach (char openingBracket in attributeList.Keys)
System.Collections.Immutable (1)
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (1)
173: base(dictionary, dictionary.Keys)
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Xaml\Parser\SpecialBracketCharacters.cs (1)
60foreach (char openingBracket in attributeList.Keys)
xunit.assert (2)
DictionaryAsserts.cs (2)
97 CollectionTracker<TKey>.FormatStart(collection.Keys) 246 CollectionTracker<TKey>.FormatStart(collection.Keys)