148 instantiations of DictionaryEntry
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
332return new DictionaryEntry(currentKey, currentValue); 382return new DictionaryEntry(currentKey, currentValue);
Microsoft.Build (14)
BackEnd\Components\Logging\ProjectLoggingContext.cs (4)
214properties = projectProperties.GetCopyOnReadEnumerable(property => new DictionaryEntry(property.Name, property.EvaluatedValue)); 218properties = projectProperties.Filter(p => p is not EnvironmentDerivedProjectPropertyInstance || EnvironmentUtilities.IsWellKnownEnvironmentDerivedProperty(p.Name), p => new DictionaryEntry(p.Name, p.EvaluatedValue)); 221items = projectItems?.GetCopyOnReadEnumerable(item => new DictionaryEntry(item.ItemType, new TaskItem(item))) ?? []; 241properties = projectPropertiesToSerialize.Select((ProjectPropertyInstance property) => new DictionaryEntry(property.Name, property.EvaluatedValue));
Collections\ArrayDictionary.cs (1)
241private DictionaryEntry CurrentDictionaryEntry => new DictionaryEntry(_dictionary.keys[_position], _dictionary.values[_position]);
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
Logging\BaseConsoleLogger.cs (1)
500Internal.Utilities.EnumerateProperties(properties, list, static (list, kvp) => list.Add(new DictionaryEntry(kvp.Key, kvp.Value)));
Logging\BinaryLogger\BuildEventArgsReader.cs (4)
1448list[i] = new DictionaryEntry(property.Key, property.Value); 1549list[i] = new DictionaryEntry(itemName, item); 1569list.Add(new DictionaryEntry(itemType, item)); 1596list.Add(new DictionaryEntry(itemType, item));
LogMessagePacketBase.cs (2)
1435var entry = new DictionaryEntry(key, value); 1459var entry = new DictionaryEntry(itemType, taskItemData);
Utilities\Utilities.cs (1)
803callback(new DictionaryEntry(tuple.Type, tuple.Value));
Microsoft.Build.Engine.UnitTests (17)
BackEnd\NodePackets_Tests.cs (5)
152new DictionaryEntry("Compile", new TaskItemData("a", null)), 153new DictionaryEntry("Compile", new TaskItemData("b", CreateStringDictionary())), 154new DictionaryEntry("Reference", new TaskItemData("c", CreateStringDictionary())), 166new DictionaryEntry("a", "b"), 167new DictionaryEntry("c", "d")
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
200public DictionaryEntry Entry => new DictionaryEntry(Key, Value);
BuildEventArgsDataEnumeration.cs (7)
32new DictionaryEntry("Key", "Value"), 60new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }), 61new DictionaryEntry("Key2", 98new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }), 99new DictionaryEntry("Key2", 102new DictionaryEntry("Key2", new MyTaskItem() { ItemSpec = "TestItemSpec3" }), 103new DictionaryEntry("Key",
BuildEventArgsSerialization_Tests.cs (4)
160properties: new List<DictionaryEntry>() { new DictionaryEntry("Key", "Value") }, 161items: new List<DictionaryEntry>() { new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }) }, 770Properties = new List<DictionaryEntry>() { new DictionaryEntry("Key", "Value") }, 771Items = new List<DictionaryEntry>() { new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }) }
Microsoft.Build.Framework (5)
ImmutableSegmentedDictionary`2+Enumerator.cs (1)
47DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
ProjectStartedEventArgs.cs (1)
466DictionaryEntry entry = new DictionaryEntry(key, value);
SegmentedDictionary`2.cs (3)
883dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1198return new DictionaryEntry(_current.Key, _current.Value); 1225return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.Build.Framework.UnitTests (7)
CustomEventArgSerialization_Tests.cs (7)
581propertyList.Add(new DictionaryEntry("TeamBuildOutDir", "c:\\outdir")); 582propertyList.Add(new DictionaryEntry("Configuration", "BuildConfiguration")); 583propertyList.Add(new DictionaryEntry("Platform", "System Platform")); 584propertyList.Add(new DictionaryEntry("OutDir", "myOutDir")); 585propertyList.Add(new DictionaryEntry("WorkSpaceName", " MyWorkspace")); 586propertyList.Add(new DictionaryEntry("WorkSpaceOwner", "The workspace owner")); 587propertyList.Add(new DictionaryEntry("IAmBlank", string.Empty));
Microsoft.Build.Tasks.Core (5)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
ManifestUtil\ManifestReader.cs (1)
187DictionaryEntry arg = new DictionaryEntry("manifest-type", manifestType);
ManifestUtil\ManifestWriter.cs (2)
150var arg = new DictionaryEntry("trust-file", temp); 175var arg = new DictionaryEntry("base-file", temp);
ManifestUtil\TrustInfo.cs (1)
631Stream s = tempPrivilegeDocument != null ? XmlUtil.XslTransform(trustInfoResource2, m, new DictionaryEntry("defaultRequestedPrivileges", tempPrivilegeDocument)) : XmlUtil.XslTransform(trustInfoResource2, m);
Microsoft.Build.Utilities.Core (1)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
911dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1232return new DictionaryEntry(_current.Key, _current.Value); 1259return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
911dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1232return new DictionaryEntry(_current.Key, _current.Value); 1259return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Collections.Package (4)
ImmutableSegmentedDictionary`2+Enumerator.cs (1)
47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
SegmentedDictionary`2.cs (3)
911dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1232return new DictionaryEntry(_current.Key, _current.Value); 1259return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
911dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1232return new DictionaryEntry(_current.Key, _current.Value); 1259return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ObjectFormatterFixtures\Custom.cs (1)
456get { return new DictionaryEntry(_i, _i); }
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
911dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1232return new DictionaryEntry(_current.Key, _current.Value); 1259return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.UnitTests (18)
Collections\ImmutableDictionaryBuilderTestBase.cs (9)
199Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Current); 202Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Entry); 210Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Current); 213Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Entry); 217Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Current); 220Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Entry); 227Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Current); 230Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Entry); 253Assert.Equal(new DictionaryEntry[] { default, new DictionaryEntry("b", 2) }, entryArray);
Collections\ImmutableDictionaryTestBase.cs (9)
150Assert.Equal(new DictionaryEntry("a", 1), (DictionaryEntry)array[1]); 187Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Current); 190Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Entry); 198Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Current); 201Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Entry); 205Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Current); 208Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Entry); 215Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Current); 218Assert.Equal(new DictionaryEntry(null!, 0), enumerator.Entry);
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
911dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1232return new DictionaryEntry(_current.Key, _current.Value); 1259return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
911dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1232return new DictionaryEntry(_current.Key, _current.Value); 1259return new DictionaryEntry(_current.Key, _current.Value);
MSBuild (1)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
MSBuildTaskHost (2)
CopyOnWriteDictionary.cs (1)
363array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
Immutable\ImmutableDictionary.cs (1)
106array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
PresentationCore (7)
System\Windows\Media\CharacterMetricsDictionary.cs (4)
190typedArray[index++] = new SC.DictionaryEntry(item.Key, item.Value); 206array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++); 559return new SC.DictionaryEntry(entry.Key, entry.Value); 585return new SC.DictionaryEntry(entry.Key, entry.Value);
System\Windows\Media\CultureSpecificStringDictionary.cs (3)
159typedArray[index++] = new SC.DictionaryEntry(item.Key, item.Value); 175array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++); 404return new SC.DictionaryEntry(entry.Key, entry.Value);
PresentationFramework (2)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
311DictionaryEntry entry = new(pair.Key, pair.Value);
System\Windows\ResourceDictionary.cs (1)
2156return new DictionaryEntry(key, value);
System.Collections (6)
System\Collections\Generic\OrderedDictionary.cs (2)
1410new DictionaryEntry(Current.Key, Current.Value) : 1414readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
System\Collections\Generic\SortedDictionary.cs (2)
466return new DictionaryEntry(Current.Key, Current.Value); 510return new DictionaryEntry(Current.Key, Current.Value);
System\Collections\Generic\SortedList.cs (2)
819return new DictionaryEntry(_key!, _value); 836return new DictionaryEntry(_key!, _value);
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
390dictEntryArray[index++] = new DictionaryEntry(item.Key, item.Value);
System\Collections\Immutable\DictionaryEnumerator.cs (1)
21get { return new DictionaryEntry(_inner.Current.Key, _inner.Current.Value); }
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
351array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
757array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
222array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
System.Collections.NonGeneric (3)
System\Collections\SortedList.cs (3)
346DictionaryEntry entry = new DictionaryEntry(keys[i], values[i]); 847return new DictionaryEntry(_key, _value); 862return new DictionaryEntry(_key, _value);
System.Collections.Specialized (7)
System\Collections\Specialized\ListDictionary.cs (2)
215array.SetValue(new DictionaryEntry(node.key, node.value), index); 294return new DictionaryEntry(_current.key, _current.value);
System\Collections\Specialized\OrderedDictionary.cs (5)
171objectsArray[index] = new DictionaryEntry(key, value); 200objectsArray[IndexOfKey(key)] = new DictionaryEntry(key, value); 233objectsArray.Add(new DictionaryEntry(key, value)); 321objectsArray.Insert(index, new DictionaryEntry(key, value)); 486return new DictionaryEntry(((DictionaryEntry)_arrayEnumerator.Current).Key, ((DictionaryEntry)_arrayEnumerator.Current).Value);
System.ComponentModel.TypeConverter (1)
System\ComponentModel\PropertyDescriptorCollection.cs (1)
606return new DictionaryEntry(curProp.Name, curProp);
System.Diagnostics.Process (1)
System\Collections\Specialized\StringDictionaryWrapper.cs (1)
57yield return new DictionaryEntry(keyValuePair.Key, keyValuePair.Value);
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (3)
564DictionaryEntry entry = new DictionaryEntry(keyv, lbuckets[i].val); 1455return new DictionaryEntry(_currentKey!, _currentValue); 1471return new DictionaryEntry(_currentKey!, _currentValue);
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
162array.SetValue(new DictionaryEntry(node.key, node.value), index); 232return new DictionaryEntry(current.key, current.value);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (2)
189dictEntryArray[index++] = new DictionaryEntry(item.Key, item.Value); 227get => new DictionaryEntry(_enumerator.Current.Key, _enumerator.Current.Value);
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1138return new DictionaryEntry(key, value);
System.Private.Xml (2)
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
302return new DictionaryEntry(currentKey!, currentValue); 352return new DictionaryEntry(currentKey!, currentValue);
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1138return new DictionaryEntry(key, value);
System.Windows.Forms (2)
misc\CollectionHelper.cs (2)
40dictionaryTarget[index++] = new DictionaryEntry(kvp.Key, kvp.Value); 57objects[index++] = new DictionaryEntry(kvp.Key, kvp.Value);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\StatementContext.cs (1)
228return new DictionaryEntry(entry.Owner, entry.Statements);
System.Xaml (1)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
765yield return new DictionaryEntry(enumerator.Current.Key, enumerator.Current.Value);
387 references to DictionaryEntry
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
204foreach (DictionaryEntry de in Environment.GetEnvironmentVariables())
dotnet-svcutil-lib (18)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (4)
223foreach (DictionaryEntry de in _names) 232foreach (DictionaryEntry de in _wildcards) 2332foreach (DictionaryEntry entry in _elements) 2349foreach (DictionaryEntry entry in _elements)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (3)
706foreach (DictionaryEntry entry in redefine.Groups) 710foreach (DictionaryEntry entry in redefine.AttributeGroups) 714foreach (DictionaryEntry entry in redefine.SchemaTypes)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaNamespaceManager.cs (1)
52foreach (DictionaryEntry entry in namespaces)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (1)
370public DictionaryEntry Entry
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (3)
972DictionaryEntry[] oldLocations = new DictionaryEntry[_schemaLocations.Count]; 998internal XmlSchema FindSchemaByNSAndUrl(Uri schemaUri, string ns, DictionaryEntry[] locationsTable)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (2)
341DictionaryEntry[] oldLocations = new DictionaryEntry[schemaLocations.Count];
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
775foreach (DictionaryEntry de in _typeDescs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (1)
1596foreach (DictionaryEntry target in _targets)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
1474foreach (DictionaryEntry entry in xmlns.Namespaces)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
139foreach (DictionaryEntry userData in codeCompileUnit.UserData)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\Json\JsonConverterHelper.cs (1)
142foreach (DictionaryEntry item in newValues)
Internal\Json\StructConverter.cs (1)
31foreach (DictionaryEntry entry in fields)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
257foreach (DictionaryEntry value in dictionaryValues)
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
257foreach (DictionaryEntry value in dictionaryValues)
Microsoft.Build (49)
BackEnd\Client\MSBuildClient.cs (1)
505foreach (DictionaryEntry envVar in Environment.GetEnvironmentVariables())
BackEnd\Components\Communications\DetouredNodeLauncher.cs (1)
148foreach (DictionaryEntry baseVar in Environment.GetEnvironmentVariables())
BackEnd\Components\Logging\ILoggingService.cs (4)
553IEnumerable<DictionaryEntry> properties, 554IEnumerable<DictionaryEntry> items, 567IEnumerable<DictionaryEntry> properties, 568IEnumerable<DictionaryEntry> items,
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
496IEnumerable<DictionaryEntry> properties, 497IEnumerable<DictionaryEntry> items, 529IEnumerable<DictionaryEntry> properties, 530IEnumerable<DictionaryEntry> items,
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
196IEnumerable<DictionaryEntry> properties = null; 197IEnumerable<DictionaryEntry> items = null;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
219foreach (DictionaryEntry kvp in customMetadata)
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1188foreach (DictionaryEntry entry in globalProperties[i])
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1419foreach (DictionaryEntry de in customMetadata)
Collections\ArrayDictionary.cs (2)
241private DictionaryEntry CurrentDictionaryEntry => new DictionaryEntry(_dictionary.keys[_position], _dictionary.values[_position]); 249DictionaryEntry IDictionaryEnumerator.Entry => CurrentDictionaryEntry;
Construction\Solution\SolutionProjectGenerator.cs (1)
1447foreach (DictionaryEntry aspNetConfiguration in project.AspNetConfigurations)
Evaluation\Expander.cs (1)
1486foreach (DictionaryEntry entry in dictionary)
Instance\ProjectInstance.cs (4)
2945List<DictionaryEntry> clearedVariables = null; 2949foreach (DictionaryEntry environmentVariable in Environment.GetEnvironmentVariables()) 2963clearedVariables = new List<DictionaryEntry>(); 2977foreach (DictionaryEntry clearedVariable in clearedVariables)
Logging\BaseConsoleLogger.cs (9)
90internal class DictionaryEntryKeyComparer : IComparer<DictionaryEntry> 96public int Compare(DictionaryEntry a, DictionaryEntry b) 457internal void WriteProperties(List<DictionaryEntry> properties) 495internal List<DictionaryEntry> ExtractPropertyList(IEnumerable properties) 498var list = new List<DictionaryEntry>(properties.FastCountOrZero()); 530internal virtual void OutputProperties(List<DictionaryEntry> list) 536foreach (DictionaryEntry prop in list) 564foreach (DictionaryEntry entry in itemTypes)
Logging\BinaryLogger\BuildEventArgsReader.cs (7)
1435private IList<DictionaryEntry>? ReadPropertyList() 1444var list = new DictionaryEntry[count]; 1528private IList<DictionaryEntry>? ReadProjectItems() 1530IList<DictionaryEntry>? list; 1544list = new DictionaryEntry[count]; 1560list = new List<DictionaryEntry>(); 1581list = new List<DictionaryEntry>();
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
754internal override void OutputProperties(List<DictionaryEntry> list) 760foreach (DictionaryEntry prop in list) 898foreach (DictionaryEntry metadatum in metadata)
LogMessagePacketBase.cs (4)
1427return (DictionaryEntry[])[]; 1435var entry = new DictionaryEntry(key, value); 1449return (DictionaryEntry[])[]; 1459var entry = new DictionaryEntry(itemType, taskItemData);
Utilities\Utilities.cs (3)
660else if (item is DictionaryEntry dictionaryEntry && dictionaryEntry.Key is string key && !string.IsNullOrEmpty(key)) 799public static void EnumerateItems(IEnumerable items, Action<DictionaryEntry> callback) 825else if (item is DictionaryEntry dictionaryEntry)
Microsoft.Build.CommandLine.UnitTests (2)
CommandLineSwitches_Tests.cs (1)
1547.Cast<DictionaryEntry>().Where(i => i.Key is string && ((string)i.Key).StartsWith("HelpMessage_"))
TerminalLogger_Tests.cs (1)
136return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>())
Microsoft.Build.Engine.UnitTests (22)
BackEnd\LoggingService_Tests.cs (2)
978BuildEventContext projectStarted = loggingService.LogProjectStarted(buildEventContext, 0, buildEventContext.ProjectInstanceId, BuildEventContext.Invalid, "projectFile", "Build", Enumerable.Empty<DictionaryEntry>(), Enumerable.Empty<DictionaryEntry>());
BackEnd\MockLoggingService.cs (4)
545IEnumerable<DictionaryEntry> properties, 546IEnumerable<DictionaryEntry> items, 563IEnumerable<DictionaryEntry> properties, 564IEnumerable<DictionaryEntry> items,
BackEnd\NodePackets_Tests.cs (1)
340.ComparingByMembers<DictionaryEntry>()
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
200public DictionaryEntry Entry => new DictionaryEntry(Key, Value);
BackEnd\TranslationHelpers.cs (4)
172.OfType<DictionaryEntry>() 174(Func<DictionaryEntry, string>)(d => d.Key.ToString()), 175(Func<DictionaryEntry, string>)(d => d.Value.ToString())); 182.OfType<DictionaryEntry>()
BuildEventArgsDataEnumeration.cs (2)
58Items = new List<DictionaryEntry>() 96Items = new List<DictionaryEntry>()
BuildEventArgsSerialization_Tests.cs (4)
160properties: new List<DictionaryEntry>() { new DictionaryEntry("Key", "Value") }, 161items: new List<DictionaryEntry>() { new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }) }, 770Properties = new List<DictionaryEntry>() { new DictionaryEntry("Key", "Value") }, 771Items = new List<DictionaryEntry>() { new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }) }
CommunicationUtilities_Tests.cs (1)
26foreach (DictionaryEntry item in referenceVars)
ConsoleLogger_Tests.cs (1)
129foreach (DictionaryEntry entry in Environment.GetEnvironmentVariables())
Evaluation\ExpressionShredder_Tests.cs (2)
529foreach (DictionaryEntry result in actual) 540foreach (DictionaryEntry expect in expected)
Microsoft.Build.Framework (9)
ImmutableSegmentedDictionary`2+Enumerator.cs (2)
36/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 47DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
ProjectStartedEventArgs.cs (5)
306? (DictionaryEntry[])[] 332? (DictionaryEntry[])[] 386var validProperties = properties.Cast<DictionaryEntry>().Where(entry => entry.Key != null && entry.Value != null); 395foreach (var propertyPair in validProperties) 466DictionaryEntry entry = new DictionaryEntry(key, value);
SegmentedDictionary`2.cs (2)
876else if (array is DictionaryEntry[] dictEntryArray) 1216DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.Build.Framework.UnitTests (9)
CustomEventArgSerialization_Tests.cs (9)
580List<DictionaryEntry> propertyList = new List<DictionaryEntry>(); 606List<DictionaryEntry> entryList = new List<DictionaryEntry>(); 607foreach (DictionaryEntry entry in newGenericEvent.Properties) 622private void AssertDictionaryEntry(List<DictionaryEntry> entryList, List<DictionaryEntry> propertyList) 629foreach (DictionaryEntry property in propertyList) 632foreach (DictionaryEntry entry in entryList)
Microsoft.Build.Tasks.Core (7)
ManifestUtil\ManifestReader.cs (1)
187DictionaryEntry arg = new DictionaryEntry("manifest-type", manifestType);
ManifestUtil\ManifestWriter.cs (2)
150var arg = new DictionaryEntry("trust-file", temp); 175var arg = new DictionaryEntry("base-file", temp);
ManifestUtil\XmlUtil.cs (2)
77public static Stream XslTransform(string resource, Stream input, params DictionaryEntry[] entries) 108foreach (DictionaryEntry entry in entries)
WriteCodeFragment.cs (2)
199foreach (DictionaryEntry entry in customMetadata) 302foreach (DictionaryEntry entry in customMetadata)
Microsoft.Build.Tasks.UnitTests (1)
ResolveNonMSBuildProjectOutput_Tests.cs (1)
91foreach (DictionaryEntry entry in projectOutputs)
Microsoft.Build.UnitTests.Shared (2)
MockEngine.cs (2)
241foreach (DictionaryEntry newGlobalProperty in globalPropertiesPassedIntoTask) 308foreach (DictionaryEntry newGlobalProperty in globalProperties[i])
Microsoft.Build.Utilities.Core (1)
TaskItem.cs (1)
125foreach (DictionaryEntry singleMetadata in itemMetadata)
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
36/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
904else if (array is DictionaryEntry[] dictEntryArray) 1250readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
36/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
904else if (array is DictionaryEntry[] dictEntryArray) 1250readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.Collections.Package (4)
ImmutableSegmentedDictionary`2+Enumerator.cs (2)
36/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
SegmentedDictionary`2.cs (2)
904else if (array is DictionaryEntry[] dictEntryArray) 1250readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
36/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
904else if (array is DictionaryEntry[] dictEntryArray) 1250readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
591var entry = enumerator.Entry;
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
ObjectFormatterFixtures\Custom.cs (2)
474public DictionaryEntry Entry 476get { return (DictionaryEntry)Current; }
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
36/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
904else if (array is DictionaryEntry[] dictEntryArray) 1250readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.UnitTests (9)
Collections\ImmutableDictionaryBuilderTestBase.cs (5)
222Assert.Equal(enumerator.Key, ((DictionaryEntry)enumerator.Current).Key); 223Assert.Equal(enumerator.Value, ((DictionaryEntry)enumerator.Current).Value); 250var entryArray = new DictionaryEntry[builder.Count + 1]; 252Assert.Equal(default(DictionaryEntry), entryArray[0]); 253Assert.Equal(new DictionaryEntry[] { default, new DictionaryEntry("b", 2) }, entryArray);
Collections\ImmutableDictionaryTestBase.cs (4)
147var array = new DictionaryEntry[2]; 150Assert.Equal(new DictionaryEntry("a", 1), (DictionaryEntry)array[1]); 210Assert.Equal(enumerator.Key, ((DictionaryEntry)enumerator.Current).Key); 211Assert.Equal(enumerator.Value, ((DictionaryEntry)enumerator.Current).Value);
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
36/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
904else if (array is DictionaryEntry[] dictEntryArray) 1250readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
36/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 47readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
904else if (array is DictionaryEntry[] dictEntryArray) 1250readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
245string propertyCategory = e.Properties?.Cast<DictionaryEntry>().LastOrDefault(p => p.Key.ToString().Equals(s_TelemetryMarker)).Value?.ToString();
Microsoft.Extensions.Localization (1)
Internal\ResourceManagerStringProvider.cs (1)
77foreach (DictionaryEntry? entry in resourceSet)
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
82return sampleData.Cast<DictionaryEntry>().ToDictionary(k => (string)k.Key, v => (string)v.Value);
Microsoft.ML.Maml (1)
MAML.cs (1)
276foreach (DictionaryEntry kvp in ex.Data)
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
996For Each Entry As DictionaryEntry In Exceptions
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
86[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.DictionaryEntry))]
netstandard (1)
netstandard.cs (1)
104[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.DictionaryEntry))]
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
370foreach (DictionaryEntry entry in _assemblyPathTable)
PresentationCore (17)
System\Windows\Input\AccessKeyManager.cs (2)
674foreach (DictionaryEntry entry in Current._keyToElements) 695foreach (DictionaryEntry entry in Current._keyToElements)
System\Windows\Media\Animation\Clock.cs (2)
4373foreach (DictionaryEntry e in _objectTable) 4383foreach (DictionaryEntry e in removeTable)
System\Windows\Media\Animation\Timeline.cs (2)
1160foreach (DictionaryEntry e in _objectTable) 1170foreach (DictionaryEntry e in removeTable)
System\Windows\Media\CharacterMetricsDictionary.cs (5)
184SC.DictionaryEntry[] typedArray = array as SC.DictionaryEntry[]; 201if (!elementType.IsAssignableFrom(typeof(SC.DictionaryEntry))) 202throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 580SC.DictionaryEntry SC.IDictionaryEnumerator.Entry
System\Windows\Media\CultureSpecificStringDictionary.cs (5)
153SC.DictionaryEntry[] typedArray = array as SC.DictionaryEntry[]; 170if (!elementType.IsAssignableFrom(typeof(SC.DictionaryEntry))) 171throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 399public SC.DictionaryEntry Entry
System\Windows\Media\Imaging\ImagingCache.cs (1)
73foreach (DictionaryEntry de in table)
PresentationFramework (37)
MS\Internal\Data\StaticPropertyChangedEventManager.cs (3)
398foreach (DictionaryEntry de in _dict) 408foreach (DictionaryEntry de in _dict) 556foreach (DictionaryEntry de in _dict)
MS\Internal\Data\ValueTable.cs (1)
246foreach (DictionaryEntry de in _table)
MS\Internal\Data\ViewManager.cs (3)
248foreach (DictionaryEntry de in this) 653foreach (DictionaryEntry de in vt) 791foreach (DictionaryEntry de in this)
MS\Internal\DataStreams.cs (1)
227foreach (DictionaryEntry entry in _customJournaledObjects)
System\Windows\Controls\Grid.cs (1)
1249foreach (DictionaryEntry e in spanStore)
System\Windows\Documents\AdornerLayer.cs (4)
414DictionaryEntry[] zOrderMapEntries = new DictionaryEntry[_zOrderMap.Count]; 448DictionaryEntry[] zOrderMapEntries = new DictionaryEntry[_zOrderMap.Count];
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (6)
44public DictionaryEntry Entry 46get => (DictionaryEntry)_enumerator.Current; 68public DictionaryEntry Current 294public void CopyTo(DictionaryEntry[] array, int arrayIndex) 311DictionaryEntry entry = new(pair.Key, pair.Value); 362CopyTo(array as DictionaryEntry[], index);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (6)
502DictionaryEntry[] entries = new DictionaryEntry[dictionary.Count]; 504Array.Sort(entries, delegate(DictionaryEntry one, DictionaryEntry two) 508foreach (DictionaryEntry entry in entries) 1165foreach (DictionaryEntry entry in _value)
System\Windows\Markup\XamlTypeMapper.cs (2)
300foreach ( DictionaryEntry de in dict ) 370foreach (DictionaryEntry entry in _assemblyPathTable)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (2)
57foreach (DictionaryEntry entry in typeMapper.PITable) 145foreach (DictionaryEntry piEntry in _typeMapper.PITable)
System\Windows\Markup\XmlnsDictionary.cs (1)
207public void CopyTo(DictionaryEntry[] array, int index)
System\Windows\Media\Animation\Storyboard.cs (1)
610foreach( DictionaryEntry entry in clockMappings )
System\Windows\ResourceDictionary.cs (5)
71public void CopyTo(DictionaryEntry[] array, int arrayIndex) 86private void CopyToWithoutLock(DictionaryEntry[] array, int arrayIndex) 95DictionaryEntry entry = array[i]; 904CopyTo(array as DictionaryEntry[], arrayIndex); 2150DictionaryEntry IDictionaryEnumerator.Entry
System\Windows\StyleHelper.cs (1)
2297foreach (DictionaryEntry entry in parentTemplateValues)
ReachFramework (1)
Serialization\VisualTreeFlattener.cs (1)
774foreach (DictionaryEntry e in res)
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
1414readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
System\Collections\Generic\SortedDictionary.cs (1)
501DictionaryEntry IDictionaryEnumerator.Entry
System\Collections\Generic\SortedList.cs (1)
810DictionaryEntry IDictionaryEnumerator.Entry
System.Collections.Concurrent (3)
System\Collections\Concurrent\ConcurrentDictionary.cs (3)
822private void CopyToEntries(DictionaryEntry[] array, int index) 1918if (array is DictionaryEntry[] entries) 2326public DictionaryEntry Entry => new DictionaryEntry(_enumerator.Current.Key, _enumerator.Current.Value);
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenDictionary.cs (1)
386else if (array is DictionaryEntry[] dictEntryArray)
System\Collections\Immutable\DictionaryEnumerator.cs (1)
19public DictionaryEntry Entry
System.Collections.NonGeneric (2)
System\Collections\SortedList.cs (2)
346DictionaryEntry entry = new DictionaryEntry(keys[i], values[i]); 841public DictionaryEntry Entry
System.Collections.Specialized (21)
System\Collections\Specialized\ListDictionary.cs (1)
286public DictionaryEntry Entry
System\Collections\Specialized\OrderedDictionary.cs (20)
156return ((DictionaryEntry)objectsArray[index]!).Value; 170object key = ((DictionaryEntry)objectsArray[index]!).Key; 288object o = ((DictionaryEntry)_objectsArray[i]!).Key; 337object key = ((DictionaryEntry)objectsArray[index]!).Key; 423DictionaryEntry entry; 427entry = (DictionaryEntry)o; 468return ((DictionaryEntry)_arrayEnumerator.Current).Key; 472return ((DictionaryEntry)_arrayEnumerator.Current).Value; 481public DictionaryEntry Entry 486return new DictionaryEntry(((DictionaryEntry)_arrayEnumerator.Current).Key, ((DictionaryEntry)_arrayEnumerator.Current).Value); 498return ((DictionaryEntry)_arrayEnumerator.Current).Key; 510return ((DictionaryEntry)_arrayEnumerator.Current).Value; 564array.SetValue(IsKeys ? ((DictionaryEntry)o).Key : ((DictionaryEntry)o).Value, index); 591if (object.Equals(((DictionaryEntry)o).Value, value)) 606object entryKey = ((DictionaryEntry)_objects[i]!).Key; 619else if (object.Equals(((DictionaryEntry)_objects[i]!).Value, value)) 635DictionaryEntry entry = (DictionaryEntry)_objects[index]!;
System.ComponentModel.TypeConverter (7)
System\ComponentModel\ComponentResourceManager.cs (1)
252foreach (DictionaryEntry de in resourceSet)
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
45foreach (DictionaryEntry keyAndValue in context._savedLicenseKeys)
System\ComponentModel\PropertyDescriptorCollection.cs (1)
601public DictionaryEntry Entry
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
1484DictionaryEntry de = e.Entry;
System\ComponentModel\TypeDescriptor.cs (3)
2332DictionaryEntry de = e.Entry; 2416DictionaryEntry de = e.Entry; 2477DictionaryEntry de = e.Entry;
System.Configuration.ConfigurationManager (12)
System\Configuration\ClientSettingsStore.cs (1)
185foreach (DictionaryEntry entry in newSettings)
System\Configuration\ConfigurationElementCollection.cs (2)
1267private DictionaryEntry _current; 1295DictionaryEntry IDictionaryEnumerator.Entry => _current;
System\Configuration\ConfigurationLockCollection.cs (3)
70foreach (DictionaryEntry de in _internalDictionary) 93foreach (DictionaryEntry de in _internalDictionary) 280foreach (DictionaryEntry de in _internalDictionary)
System\Configuration\ConfigurationSectionCollection.cs (1)
21foreach (DictionaryEntry de in _configRecord.SectionFactories)
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
22foreach (DictionaryEntry de in _configRecord.SectionGroupFactories)
System\Configuration\MgmtConfigurationRecord.cs (1)
1536foreach (DictionaryEntry de in _sectionRecords)
System\Configuration\SectionUpdates.cs (2)
210foreach (DictionaryEntry de in _groups) 231foreach (DictionaryEntry de in _groups)
System\Configuration\SettingsPropertyValueCollection.cs (1)
58foreach (DictionaryEntry de in _indices)
System.Data.Common (6)
System\Data\PropertyCollection.cs (1)
33foreach (DictionaryEntry pair in this)
System\Data\xmlsaver.cs (1)
70foreach (DictionaryEntry entry in props)
System\Xml\XmlDataDocument.cs (4)
63foreach (DictionaryEntry entry in _pointers) 893foreach (DictionaryEntry entry in _pointers) 1432foreach (DictionaryEntry entry in _pointers) 1692foreach (DictionaryEntry entry in _pointers)
System.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
108DictionaryEntry entry = e.Entry;
System.Net.Primitives (2)
System\Net\CookieContainer.cs (2)
388DictionaryEntry entry = (DictionaryEntry)item;
System.Net.Requests (1)
System\Net\TimerThread.cs (1)
140DictionaryEntry pair = e.Entry;
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
1493else if (array is DictionaryEntry[] dictEntryArray) 1843DictionaryEntry IDictionaryEnumerator.Entry
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
564DictionaryEntry entry = new DictionaryEntry(keyv, lbuckets[i].val); 1449public DictionaryEntry Entry
src\libraries\System.Private.CoreLib\src\System\Collections\IDictionaryEnumerator.cs (1)
62DictionaryEntry Entry
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (1)
224public DictionaryEntry Entry
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (2)
185if (array is DictionaryEntry[] dictEntryArray) 225public DictionaryEntry Entry
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1105public DictionaryEntry Entry
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
135public DictionaryEntry Entry => throw new InvalidOperationException(SR.InvalidOperation_EnumOpCantHappen);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
226DictionaryEntry entry = e.Entry;
System.Private.Xml (11)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
696foreach (DictionaryEntry entry in redefine.Groups) 701foreach (DictionaryEntry entry in redefine.AttributeGroups) 706foreach (DictionaryEntry entry in redefine.SchemaTypes)
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
340public DictionaryEntry Entry
System\Xml\Schema\XmlSchemaSet.cs (3)
821DictionaryEntry[] oldLocations = new DictionaryEntry[_schemaLocations.Count]; 843internal XmlSchema? FindSchemaByNSAndUrl(Uri? schemaUri, string ns, DictionaryEntry[]? locationsTable)
System\Xml\Schema\XmlSchemaValidator.cs (2)
330DictionaryEntry[] oldLocations = new DictionaryEntry[schemaLocations.Count];
System\Xml\Serialization\Types.cs (1)
745foreach (DictionaryEntry de in _typeDescs)
System\Xml\Serialization\XmlSerializationReader.cs (1)
1495foreach (DictionaryEntry target in _targets)
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1105public DictionaryEntry Entry
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
75[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.DictionaryEntry))]
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCacheStore.cs (2)
231foreach (DictionaryEntry e in _entries) 262foreach (DictionaryEntry e in _entries)
System.Security.Permissions (2)
System\Security\Policy\NetCodeGroup.cs (2)
18public System.Collections.DictionaryEntry[] GetConnectAccessRules() { return default(System.Collections.DictionaryEntry[]); }
System.Text.RegularExpressions.Generator (4)
RegexGenerator.Emitter.cs (4)
156AppendHashtableContents(writer, rm.Tree.CaptureNumberSparseMapping.Cast<DictionaryEntry>().OrderBy(de => de.Key as int?)); 162AppendHashtableContents(writer, rm.Tree.CaptureNameToNumberMapping.Cast<DictionaryEntry>().OrderBy(de => de.Key as string, StringComparer.Ordinal)); 182static void AppendHashtableContents(IndentedTextWriter writer, IEnumerable<DictionaryEntry> contents) 185foreach (DictionaryEntry en in contents)
System.Windows.Forms (2)
misc\CollectionHelper.cs (1)
34else if (target is DictionaryEntry[] dictionaryTarget)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1047foreach (DictionaryEntry entry in dictionary)
System.Windows.Forms.Design (5)
System\ComponentModel\Design\Serialization\StatementContext.cs (1)
208public readonly DictionaryEntry Entry
System\Drawing\Design\ToolboxItem.cs (1)
710foreach (DictionaryEntry de in Properties)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
166foreach (DictionaryEntry entry in resourceList) 275foreach (DictionaryEntry entry in reader)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
228foreach (DictionaryEntry de in properties)
System.Windows.Forms.Tests (42)
misc\CollectionHelperTests.cs (9)
97var target = new DictionaryEntry[2]; 101var firstTargetItem = target[0]; 102Assert.Equal(typeof(DictionaryEntry), firstTargetItem.GetType()); 106var secondTargetItem = target[1]; 107Assert.Equal(typeof(DictionaryEntry), secondTargetItem.GetType()); 124var firstTargetItem = (DictionaryEntry)target[0]; 128var secondTargetItem = (DictionaryEntry)target[1];
System\Resources\ResXResourceWriterTests.cs (14)
138var currentEntry = (DictionaryEntry)metadataEnumerator.Current; 159var currentEntry = (DictionaryEntry)metadataEnumerator.Current; 180var currentEntry = (DictionaryEntry)metadataEnumerator.Current; 201var currentEntry = (DictionaryEntry)enumerator.Current; 222var currentEntry = (DictionaryEntry)enumerator.Current; 243var currentEntry = (DictionaryEntry)enumerator.Current; 265var currentEntry = (DictionaryEntry)enumerator.Current;
System\Windows\Forms\BindingContextTests.cs (19)
40var array = new DictionaryEntry[4]; 173Assert.NotNull(Assert.IsType<DictionaryEntry>(array[1]).Key); 174Assert.Equal(source.CurrencyManager, Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(array[1]).Value).Target); 186var array = new DictionaryEntry[4]; 202Assert.IsType<DictionaryEntry>(destArray[1]); 203Assert.IsType<DictionaryEntry>(destArray[2]); 215var array = new DictionaryEntry[4]; 230Assert.IsType<DictionaryEntry>(enumerator.Current); 232Assert.IsType<DictionaryEntry>(enumerator.Current); 685PropertyManager parentManager = Assert.IsType<PropertyManager>(Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(Assert.Single(context)).Value).Target); 714WeakReference reference = Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(Assert.Single(context)).Value); 779DictionaryEntry entry1 = Assert.IsType<DictionaryEntry>(Assert.Single(context1)); 780DictionaryEntry entry2 = Assert.IsType<DictionaryEntry>(Assert.Single(context2)); 781DictionaryEntry entry3 = Assert.IsType<DictionaryEntry>(Assert.Single(context3)); 782DictionaryEntry entry4 = Assert.IsType<DictionaryEntry>(Assert.Single(context3));
System.Xaml (11)
System\Xaml\NameScope.cs (1)
121foreach (DictionaryEntry entry in _nameMap)
System\Xaml\Runtime\ClrObjectRuntime.cs (6)
375public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary, XamlType dictionaryType) 401return (IEnumerable<DictionaryEntry>)method.Invoke(null, new object[] { enumerator }); 744private static IEnumerable<DictionaryEntry> DictionaryEntriesFromIDictionaryEnumerator( 753private static IEnumerable<DictionaryEntry> DictionaryEntriesFromIEnumerator(IEnumerator enumerator) 757yield return (DictionaryEntry)enumerator.Current; 761private static IEnumerable<DictionaryEntry> DictionaryEntriesFromIEnumeratorKvp<TKey, TValue>(IEnumerator<KeyValuePair<TKey, TValue>> enumerator)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (1)
409public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary, XamlType dictionaryType)
System\Xaml\XamlObjectReader.cs (2)
418foreach (var entry in context.Runtime.GetDictionaryItems(propertyValue, propertyType)) 473public static bool ShouldOmitKey(DictionaryEntry entry, SerializerContext context)
System\Xaml\XamlRuntime.cs (1)
69public abstract IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary, XamlType dictionaryType);
UIAutomationClient (4)
MS\Internal\Automation\ProxyManager.cs (4)
139if( o is DictionaryEntry ) 140o = ((DictionaryEntry)o).Value; 167if( o is DictionaryEntry ) 168o = ((DictionaryEntry)o).Value;
XmlFileLogger (3)
ObjectModel\Project.cs (1)
132Properties.AddProperties(projectStartedEventArgs.Properties.Cast<DictionaryEntry>());
PropertyBag.cs (2)
80public void AddProperties(IEnumerable<DictionaryEntry> newProperties) 87foreach (var property in newProperties)