67 implementations of Keys
Microsoft.Build (3)
Collections\ArrayDictionary.cs (1)
74ICollection IDictionary.Keys => keys;
CopyOnWriteDictionary.cs (1)
144ICollection IDictionary.Keys => (ICollection)Keys;
ReadOnlyEmptyDictionary.cs (1)
117ICollection IDictionary.Keys
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
102public ICollection Keys => _keys;
Microsoft.Build.Framework (3)
ImmutableSegmentedDictionary`2.cs (1)
106ICollection IDictionary.Keys => Keys;
ImmutableSegmentedDictionary`2+Builder.cs (1)
72ICollection IDictionary.Keys => Keys;
SegmentedDictionary`2.cs (1)
1013ICollection IDictionary.Keys => Keys;
Microsoft.Build.Tasks.Core (2)
CopyOnWriteDictionary.cs (1)
144ICollection IDictionary.Keys => (ICollection)Keys;
ReadOnlyEmptyDictionary.cs (1)
117ICollection IDictionary.Keys
Microsoft.Build.Utilities.Core (2)
CopyOnWriteDictionary.cs (1)
144ICollection IDictionary.Keys => (ICollection)Keys;
ReadOnlyEmptyDictionary.cs (1)
117ICollection IDictionary.Keys
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
106ICollection IDictionary.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
49ICollection IDictionary.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1047ICollection IDictionary.Keys => Keys;
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
106ICollection IDictionary.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
49ICollection IDictionary.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1047ICollection IDictionary.Keys => Keys;
Microsoft.CodeAnalysis.Collections.Package (4)
ImmutableSegmentedDictionary`2.cs (1)
106ICollection IDictionary.Keys => Keys;
ImmutableSegmentedDictionary`2+Builder.cs (1)
49ICollection IDictionary.Keys => Keys;
ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException();
SegmentedDictionary`2.cs (1)
1047ICollection IDictionary.Keys => Keys;
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ObjectFormatterFixtures\Custom.cs (1)
395public ICollection Keys
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
106ICollection IDictionary.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
49ICollection IDictionary.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1047ICollection IDictionary.Keys => Keys;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (1)
106ICollection IDictionary.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (1)
49ICollection IDictionary.Keys => Keys;
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException();
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1047ICollection IDictionary.Keys => Keys;
MSBuild (2)
CopyOnWriteDictionary.cs (1)
144ICollection IDictionary.Keys => (ICollection)Keys;
ReadOnlyEmptyDictionary.cs (1)
117ICollection IDictionary.Keys
MSBuildTaskHost (3)
CopyOnWriteDictionary.cs (1)
144ICollection IDictionary.Keys => (ICollection)Keys;
Immutable\ImmutableDictionary.cs (1)
44ICollection IDictionary.Keys => _backing.Keys;
ReadOnlyEmptyDictionary.cs (1)
117ICollection IDictionary.Keys
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (1)
488public ICollection Keys
PresentationCore (2)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
284SC.ICollection SC.IDictionary.Keys
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
257SC.ICollection SC.IDictionary.Keys
PresentationFramework (3)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
188public ICollection Keys
System\Windows\Markup\XmlnsDictionary.cs (1)
488public ICollection Keys
System\Windows\ResourceDictionary.cs (1)
576public ICollection Keys
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
270ICollection IDictionary.Keys => Keys;
System\Collections\Generic\SortedDictionary.cs (1)
286ICollection IDictionary.Keys
System\Collections\Generic\SortedList.cs (1)
309ICollection IDictionary.Keys
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1770ICollection IDictionary.Keys => GetKeys();
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
297ICollection IDictionary.Keys => Keys;
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
229ICollection IDictionary.Keys
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
650ICollection IDictionary.Keys
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
240ICollection IDictionary.Keys
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
562ICollection IDictionary.Keys
System.Collections.NonGeneric (2)
System\Collections\DictionaryBase.cs (1)
49ICollection IDictionary.Keys
System\Collections\SortedList.cs (1)
241public virtual ICollection Keys
System.Collections.Specialized (3)
System\Collections\Specialized\HybridDictionary.cs (1)
164public ICollection Keys
System\Collections\Specialized\ListDictionary.cs (1)
109public ICollection Keys
System\Collections\Specialized\OrderedDictionary.cs (1)
129public ICollection Keys
System.ComponentModel.TypeConverter (1)
System\ComponentModel\PropertyDescriptorCollection.cs (1)
506ICollection IDictionary.Keys
System.Data.Common (1)
System\Data\Common\DbConnectionStringBuilder.cs (1)
216public virtual ICollection Keys
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
32ICollection IDictionary.Keys => _contents.Keys;
System.DirectoryServices (1)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (1)
376System.Collections.ICollection System.Collections.IDictionary.Keys { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } }
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
1639ICollection IDictionary.Keys => Keys;
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
813public virtual ICollection Keys => _keys ??= new KeyCollection(this);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (1)
85public ICollection Keys => new NodeKeyValueCollection(this, true);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
145ICollection IDictionary.Keys => Keys;
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
75public ICollection Keys => Array.Empty<object>();
System.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
3257public ICollection Keys => throw new NotImplementedException();
37 references to Keys
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
48foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
AzureAppServicesSample (1)
Startup.cs (1)
59foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
DefaultBuilder.SampleApp (1)
Startup.cs (1)
39foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
174foreach (object dataItem in exception.Data.Keys)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DictionaryTraceRecord.cs (1)
25foreach (object key in _dictionary.Keys)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
364foreach (object dataItem in exception.Data.Keys)
IISSample (1)
Startup.cs (1)
75foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
Infrastructure.Common (1)
JsonSerializer.cs (1)
20foreach (var key in dictionary.Keys)
Microsoft.Build (4)
CommunicationsUtilities.cs (1)
404foreach (var key in vars.Keys)
TaskParameter.cs (3)
305foreach (object key in nonGenericEscapedMetadata.Keys) 326foreach (string key in customMetadata.Keys) 433foreach (object key in wrappedMetadata.Keys)
Microsoft.Build.Engine.UnitTests (3)
BackEnd\TaskHostConfiguration_Tests.cs (1)
778foreach (object metadataName in metadataFromX.Keys)
BuildEventArgsSerialization_Tests.cs (1)
1203return i.ItemSpec + string.Join(";", i.CloneCustomMetadata().Keys.OfType<string>().Select(k => i.GetMetadata(k)));
Evaluation\ExpressionShredder_Tests.cs (1)
554foreach (string result in actual.Keys)
Microsoft.Build.Framework (1)
ITaskItemExtensions.cs (1)
44foreach (string metadataName in customMetadata.Keys)
Microsoft.Build.UnitTests.Shared (1)
TestEnvironment.cs (1)
443foreach (var key in subset.Keys)
Microsoft.CodeAnalysis.UnitTests (2)
Collections\ImmutableDictionaryBuilderTestBase.cs (1)
182Assert.Equal(new[] { "a" }, dictionary.Keys.Cast<string>().ToArray());
Collections\ImmutableDictionaryTestBase.cs (1)
178Assert.Equal(new[] { "c" }, dictionary.Keys.Cast<string>().ToArray());
Microsoft.DotNet.Arcade.Sdk (1)
src\SaveItems.cs (1)
39metadataPairs = metadata.Keys.OfType<string>().Select(key => new KeyValuePair<string, string>(key, metadata[key] as string));
Microsoft.Extensions.ApiDescription.Client (2)
MetadataSerializer.cs (2)
63foreach (var key in metadata.Keys) 75foreach (var key in metadata.Keys)
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\ApplicationBaseTests.cs (1)
67foreach (string key in vars.Keys)
MSBuild (4)
CommunicationsUtilities.cs (1)
404foreach (var key in vars.Keys)
TaskParameter.cs (3)
305foreach (object key in nonGenericEscapedMetadata.Keys) 326foreach (string key in customMetadata.Keys) 433foreach (object key in wrappedMetadata.Keys)
MSBuildTaskHost (3)
TaskParameter.cs (3)
305foreach (object key in nonGenericEscapedMetadata.Keys) 326foreach (string key in customMetadata.Keys) 433foreach (object key in wrappedMetadata.Keys)
NativeIISSample (1)
Startup.cs (1)
73foreach (var key in vars.Keys.Cast<string>().OrderBy(key => key, StringComparer.OrdinalIgnoreCase))
PresentationFramework (1)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
190get => ((IDictionary)_dictionary).Keys;
System.Collections.NonGeneric (1)
System\Collections\SortedList.cs (1)
157d.Keys.CopyTo(keys, 0);
System.Data.Common (1)
System\Data\Common\DbConnectionStringBuilder.cs (1)
221return Dictionary.Keys;
System.Diagnostics.Process (1)
System\Collections\Specialized\StringDictionaryWrapper.cs (1)
28public override ICollection Keys => ((IDictionary)_contents).Keys;
xunit.assert (2)
Sdk\CollectionTracker.cs (2)
201 var dictionaryYKeys = new HashSet<object>(dictionaryY.Keys.Cast<object>()); 208 foreach (var key in dictionaryX.Keys.Cast<object>())