39 implementations of Key
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (1)
386public object Key
Microsoft.Build (1)
Collections\ArrayDictionary.cs (1)
245object IDictionaryEnumerator.Key => _dictionary.keys[_position];
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
196public object Key => _keys[_index];
Microsoft.Build.Framework (2)
ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49object IDictionaryEnumerator.Key => Current.Key;
SegmentedDictionary`2.cs (1)
1229object IDictionaryEnumerator.Key
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly object IDictionaryEnumerator.Key => Current.Key;
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1263readonly object IDictionaryEnumerator.Key
Microsoft.CodeAnalysis.CodeStyle (2)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly object IDictionaryEnumerator.Key => Current.Key;
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1263readonly object IDictionaryEnumerator.Key
Microsoft.CodeAnalysis.Collections.Package (2)
ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly object IDictionaryEnumerator.Key => Current.Key;
SegmentedDictionary`2.cs (1)
1263readonly object IDictionaryEnumerator.Key
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ObjectFormatterFixtures\Custom.cs (1)
479public object Key
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly object IDictionaryEnumerator.Key => Current.Key;
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1263readonly object IDictionaryEnumerator.Key
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly object IDictionaryEnumerator.Key => Current.Key;
src\Dependencies\Collections\SegmentedDictionary`2.cs (1)
1263readonly object IDictionaryEnumerator.Key
PresentationCore (2)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
589object SC.IDictionaryEnumerator.Key
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
408public object Key
PresentationFramework (2)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
90object IDictionaryEnumerator.Key
System\Windows\ResourceDictionary.cs (1)
2160object IDictionaryEnumerator.Key
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
1417readonly object IDictionaryEnumerator.Key => Current.Key;
System\Collections\Generic\SortedDictionary.cs (1)
475object IDictionaryEnumerator.Key
System\Collections\Generic\SortedList.cs (1)
779object IDictionaryEnumerator.Key
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
2328public object Key => _enumerator.Current.Key;
System.Collections.Immutable (1)
System\Collections\Immutable\DictionaryEnumerator.cs (1)
24public object Key
System.Collections.NonGeneric (1)
System\Collections\SortedList.cs (1)
814public object Key
System.Collections.Specialized (2)
System\Collections\Specialized\ListDictionary.cs (1)
298public object Key
System\Collections\Specialized\OrderedDictionary.cs (1)
493public object Key
System.ComponentModel.TypeConverter (1)
System\ComponentModel\PropertyDescriptorCollection.cs (1)
610public object Key => _owner[_index].Name;
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElementCollection.cs (1)
1297object IDictionaryEnumerator.Key => _current.Key;
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
1856object IDictionaryEnumerator.Key
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (1)
1419public object Key
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (1)
236public object Key
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
230public object Key => _enumerator.Current.Key;
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1088public object Key
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
131public object Key => throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen);
System.Private.Xml (1)
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
356public object Key
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1088public object Key
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\StatementContext.cs (1)
232public readonly object Key => Entry.Key;
52 references to Key
dotnet-svcutil-lib (1)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (1)
1474get { return new KeyValue<object, object>(_enumerator.Key, _enumerator.Value); }
Microsoft.Build.Tasks.UnitTests (1)
ResourceHandling\GenerateResource_Tests.cs (1)
3642string name = (string)resEnum.Key;
Microsoft.CodeAnalysis.UnitTests (16)
Collections\ImmutableDictionaryBuilderTestBase.cs (8)
200Assert.Null(enumerator.Key); 205Assert.Equal(enumerator.Key, enumerator.Entry.Key); 207Assert.Equal("a", enumerator.Key); 211Assert.Null(enumerator.Key); 218Assert.Null(enumerator.Key); 222Assert.Equal(enumerator.Key, ((DictionaryEntry)enumerator.Current).Key); 224Assert.Equal("a", enumerator.Key); 228Assert.Null(enumerator.Key);
Collections\ImmutableDictionaryTestBase.cs (8)
188Assert.Null(enumerator.Key); 193Assert.Equal(enumerator.Key, enumerator.Entry.Key); 195Assert.Equal("a", enumerator.Key); 199Assert.Null(enumerator.Key); 206Assert.Null(enumerator.Key); 210Assert.Equal(enumerator.Key, ((DictionaryEntry)enumerator.Current).Key); 212Assert.Equal("a", enumerator.Key); 216Assert.Null(enumerator.Key);
PresentationCore (2)
MS\Internal\Resources\ResourceManagerWrapper.cs (1)
214string resName = deResources.Key as string;
System\Windows\Media\HostVisual.cs (1)
369(DUCE.Channel)ide.Key,
PresentationFramework (2)
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
495String key = (String)ide.Key;
MS\Internal\Data\ValueChangedEventManager.cs (1)
214_toRemove.Add((PropertyDescriptor)ide.Key);
System.Collections.Specialized (1)
System\Collections\Specialized\HybridDictionary.cs (1)
134newTable.Add(en.Key, en.Value);
System.Configuration.ConfigurationManager (3)
System\Diagnostics\ListenerElementsCollection.cs (1)
255string xmlName = (string)e.Key;
System\Diagnostics\SourceElementsCollection.cs (1)
106string xmlName = (string)e.Key;
System\Diagnostics\SwitchElementsCollection.cs (1)
70string xmlName = (string)e.Key;
System.Data.Common (2)
System\Data\Merger.cs (2)
619if (!_preserveChanges || dst[srcDE.Key] == null) 621dst[srcDE.Key] = srcDE.Value;
System.Net.Primitives (2)
System\Net\CookieContainer.cs (2)
519currentDomain = (string)enumerator.Key; 530removePathList.Add(e.Key);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
354Add(e.Key, e.Value); 364Add(e.Key, e.Value);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceSet.cs (1)
194_table.Add(en.Key, en.Value);
src\libraries\System.Private.CoreLib\src\System\Security\SecurityElement.cs (1)
111string attrName = (string)enumerator.Key;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\CollectionDataContract.cs (1)
1606public KeyValue<object, object?> Current => new KeyValue<object, object?>(_enumerator.Key, _enumerator.Value);
System.Text.Json (1)
System\Text\Json\Serialization\Converters\Collection\IDictionaryConverter.cs (1)
72object key = enumerator.Key;
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Regex.cs (1)
359result[(int)de.Value!] = (int)de.Key;
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (2)
208if (en.Key is int key) 215Ldstr((string)en.Key);
System\Text\RegularExpressions\RegexParser.cs (1)
1854_capnumlist[i++] = (int)de.Key;
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (1)
1854_capnumlist[i++] = (int)de.Key;
System.Windows.Forms.Design (3)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
359string resourceName = (de.Key as string)!;
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (2)
248string name = (string)resEnum.Key; 335_metadata[(string)de.Key] = de.Value;
System.Windows.Forms.Design.Tests (1)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
660resourceWriter.AddResource((string)resources.Key, resources.Value);
System.Windows.Forms.Tests (5)
System\Resources\ResXResourceReaderTests.cs (4)
28string key = enumerator.Key.ToString(); 116actualData.Add(enumerator.Key, enumerator.Value); 143actualData.Add(enumerator.Key, enumerator.Value); 170actualMetadata.Add(metadataEnumerator.Key, metadataEnumerator.Value);
System\Resources\ResXResourceWriterTests.cs (1)
36dictionary.Add(dictionaryEnumerator.Key, dictionaryEnumerator.Value);
System.Xaml (2)
System\Xaml\NameScope.cs (1)
279return new KeyValuePair<string, object>((string)_enumerator.Key, _enumerator.Value);
System\Xaml\NameScopeDictionary.cs (1)
173return new KeyValuePair<string, object>((string)dictionaryEnumerator.Key, dictionaryEnumerator.Value);