198 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);
Metrics (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Metrics.Legacy (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.Build (18)
BackEnd\Components\Communications\LogMessagePacket.cs (2)
351var entry = new DictionaryEntry(key, value); 375var entry = new DictionaryEntry(itemType, taskItemData);
BackEnd\Components\Logging\ProjectLoggingContext.cs (4)
218properties = projectProperties.GetCopyOnReadEnumerable(property => new DictionaryEntry(property.Name, property.EvaluatedValue)); 222properties = projectProperties.Filter(p => p is not EnvironmentDerivedProjectPropertyInstance || EnvironmentUtilities.IsWellKnownEnvironmentDerivedProperty(p.Name), p => new DictionaryEntry(p.Name, p.EvaluatedValue)); 225items = projectItems?.GetCopyOnReadEnumerable(item => new DictionaryEntry(item.ItemType, new TaskItem(item))) ?? []; 245properties = 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)
383array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
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)
1455list[i] = new DictionaryEntry(property.Key, property.Value); 1556list[i] = new DictionaryEntry(itemName, item); 1576list.Add(new DictionaryEntry(itemType, item)); 1603list.Add(new DictionaryEntry(itemType, item));
SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Utilities\Utilities.cs (1)
844callback(new DictionaryEntry(tuple.Type, tuple.Value));
Microsoft.Build.Engine.UnitTests (18)
BackEnd\NodePackets_Tests.cs (5)
155new DictionaryEntry("Compile", new TaskItemData("a", null)), 156new DictionaryEntry("Compile", new TaskItemData("b", CreateStringDictionary())), 157new DictionaryEntry("Reference", new TaskItemData("c", CreateStringDictionary())), 169new DictionaryEntry("a", "b"), 170new DictionaryEntry("c", "d")
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
200public DictionaryEntry Entry => new DictionaryEntry(Key, Value);
BuildEventArgsDataEnumeration.cs (7)
31new DictionaryEntry("Key", "Value"), 59new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }), 60new DictionaryEntry("Key2", 97new DictionaryEntry("Key", new MyTaskItem() { ItemSpec = "TestItemSpec" }), 98new DictionaryEntry("Key2", 101new DictionaryEntry("Key2", new MyTaskItem() { ItemSpec = "TestItemSpec3" }), 102new 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" }) }
TerminalLogger_Tests.cs (1)
345Items = items?.Select(kvp => new DictionaryEntry(kvp.Item1, kvp.Item2)).ToList() ?? new List<DictionaryEntry>(),
Microsoft.Build.Framework (1)
ProjectStartedEventArgs.cs (1)
466DictionaryEntry entry = new DictionaryEntry(key, 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)
383array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
ManifestUtil\ManifestReader.cs (1)
183DictionaryEntry arg = new DictionaryEntry("manifest-type", manifestType);
ManifestUtil\ManifestWriter.cs (2)
149var arg = new DictionaryEntry("trust-file", temp); 174var arg = new DictionaryEntry("base-file", temp);
ManifestUtil\TrustInfo.cs (1)
630Stream s = tempPrivilegeDocument != null ? XmlUtil.XslTransform(trustInfoResource2, m, new DictionaryEntry("defaultRequestedPrivileges", tempPrivilegeDocument)) : XmlUtil.XslTransform(trustInfoResource2, m);
Microsoft.Build.Utilities.Core (1)
CopyOnWriteDictionary.cs (1)
383array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Analyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Collections.Package (4)
Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Extensions.Package (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return 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\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return 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\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
MSBuild (1)
CopyOnWriteDictionary.cs (1)
383array.SetValue(new DictionaryEntry(entry.Key, entry.Value), index + i);
MSBuildTaskHost (2)
CopyOnWriteDictionary.cs (1)
383array.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)
189typedArray[index++] = new SC.DictionaryEntry(item.Key, item.Value); 205array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++); 558return new SC.DictionaryEntry(entry.Key, entry.Value); 584return new SC.DictionaryEntry(entry.Key, entry.Value);
System\Windows\Media\CultureSpecificStringDictionary.cs (3)
158typedArray[index++] = new SC.DictionaryEntry(item.Key, item.Value); 174array.SetValue(new SC.DictionaryEntry(item.Key, item.Value), index++); 403return new SC.DictionaryEntry(entry.Key, entry.Value);
PresentationFramework (2)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
310DictionaryEntry entry = new(pair.Key, pair.Value);
System\Windows\ResourceDictionary.cs (1)
2181return new DictionaryEntry(key, value);
Roslyn.Diagnostics.Analyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
System.Collections (6)
System\Collections\Generic\OrderedDictionary.cs (2)
1413new DictionaryEntry(Current.Key, Current.Value) : 1417readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
System\Collections\Generic\SortedDictionary.cs (2)
466return new DictionaryEntry(Current.Key, Current.Value); 508return 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)
435dictEntryArray[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)
337array.SetValue(new DictionaryEntry(item.Key, item.Value), arrayIndex++);
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
764array.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 (13)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (2)
828array[index] = new DictionaryEntry(current._key, current._value); 2296public DictionaryEntry Entry => new DictionaryEntry(_enumerator.Current.Key, _enumerator.Current.Value);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
1501dictEntryArray[index++] = new DictionaryEntry(entries[i].key, entries[i].value); 1826return new DictionaryEntry(_current.Key, _current.Value); 1853return new DictionaryEntry(_current.Key, _current.Value);
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)
1135return 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)
1135return 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)
764yield return new DictionaryEntry(enumerator.Current.Key, enumerator.Current.Value);
Text.Analyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (1)
49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
913dictEntryArray[index++] = new DictionaryEntry(entries[i]._key, entries[i]._value); 1234return new DictionaryEntry(_current.Key, _current.Value); 1261return new DictionaryEntry(_current.Key, _current.Value);
458 references to DictionaryEntry
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
212foreach (DictionaryEntry de in Environment.GetEnvironmentVariables())
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
493foreach (System.Collections.DictionaryEntry entry in currentEnvironment)
dotnet (1)
BuildServerConnection.cs (1)
493foreach (System.Collections.DictionaryEntry entry in currentEnvironment)
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)
Metrics (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Metrics.Legacy (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\Json\JsonConverterHelper.cs (1)
143foreach (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 (57)
BackEnd\Client\MSBuildClient.cs (1)
490foreach (DictionaryEntry envVar in Environment.GetEnvironmentVariables())
BackEnd\Components\Communications\LogMessagePacket.cs (4)
343return (DictionaryEntry[])[]; 351var entry = new DictionaryEntry(key, value); 365return (DictionaryEntry[])[]; 375var entry = new DictionaryEntry(itemType, taskItemData);
BackEnd\Components\Logging\ILoggingService.cs (4)
562IEnumerable<DictionaryEntry> properties, 563IEnumerable<DictionaryEntry> items, 576IEnumerable<DictionaryEntry> properties, 577IEnumerable<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)
200IEnumerable<DictionaryEntry> properties = null; 201IEnumerable<DictionaryEntry> items = null;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
218foreach (DictionaryEntry kvp in customMetadata)
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1192foreach (DictionaryEntry entry in globalProperties[i])
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1509foreach (DictionaryEntry de in customMetadata)
Collections\ArrayDictionary.cs (2)
241private DictionaryEntry CurrentDictionaryEntry => new DictionaryEntry(_dictionary.keys[_position], _dictionary.values[_position]); 249DictionaryEntry IDictionaryEnumerator.Entry => CurrentDictionaryEntry;
CommunicationsUtilities.cs (2)
610DictionaryEntry entry = enumerator.Entry; 630DictionaryEntry entry = enumerator.Entry;
Evaluation\Expander.cs (1)
1567foreach (DictionaryEntry entry in dictionary)
ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
Instance\ProjectInstance.cs (4)
3038List<DictionaryEntry> clearedVariables = null; 3042foreach (DictionaryEntry environmentVariable in Environment.GetEnvironmentVariables()) 3056clearedVariables = new List<DictionaryEntry>(); 3070foreach (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)
1442private IList<DictionaryEntry>? ReadPropertyList() 1451var list = new DictionaryEntry[count]; 1535private IList<DictionaryEntry>? ReadProjectItems() 1537IList<DictionaryEntry>? list; 1551list = new DictionaryEntry[count]; 1567list = new List<DictionaryEntry>(); 1588list = new List<DictionaryEntry>();
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
754internal override void OutputProperties(List<DictionaryEntry> list) 760foreach (DictionaryEntry prop in list) 899foreach (DictionaryEntry metadatum in metadata)
SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
TaskParameter.cs (2)
585foreach (DictionaryEntry entry in nonGenericEscapedMetadata) 605foreach (DictionaryEntry entry in customMetadata)
Utilities\Utilities.cs (5)
701else if (item is DictionaryEntry dictionaryEntry && dictionaryEntry.Key is string key && !string.IsNullOrEmpty(key)) 840public static void EnumerateItems(IEnumerable items, Action<DictionaryEntry> callback) 857if (enumerator is List<DictionaryEntry>.Enumerator listEnumerator) 861DictionaryEntry dictionaryEntry = listEnumerator.Current; 889else if (item is DictionaryEntry dictionaryEntry)
Microsoft.Build.CommandLine.UnitTests (1)
CommandLineSwitches_Tests.cs (1)
1567.Cast<DictionaryEntry>().Where(i => i.Key is string && ((string)i.Key).StartsWith("HelpMessage_"))
Microsoft.Build.Engine.UnitTests (24)
BackEnd\LoggingService_Tests.cs (2)
977BuildEventContext projectStarted = loggingService.LogProjectStarted(buildEventContext, 0, buildEventContext.ProjectInstanceId, BuildEventContext.Invalid, "projectFile", "Build", Enumerable.Empty<DictionaryEntry>(), Enumerable.Empty<DictionaryEntry>());
BackEnd\MockLoggingService.cs (4)
558IEnumerable<DictionaryEntry> properties, 559IEnumerable<DictionaryEntry> items, 576IEnumerable<DictionaryEntry> properties, 577IEnumerable<DictionaryEntry> items,
BackEnd\NodePackets_Tests.cs (1)
343.ComparingByMembers<DictionaryEntry>()
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
200public DictionaryEntry Entry => new DictionaryEntry(Key, Value);
BackEnd\TranslationHelpers.cs (4)
205.OfType<DictionaryEntry>() 207(Func<DictionaryEntry, string>)(d => d.Key.ToString()), 208(Func<DictionaryEntry, string>)(d => d.Value.ToString())); 215.OfType<DictionaryEntry>()
BuildEventArgsDataEnumeration.cs (2)
57Items = new List<DictionaryEntry>() 95Items = 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)
25foreach (DictionaryEntry item in referenceVars)
ConsoleLogger_Tests.cs (1)
128foreach (DictionaryEntry entry in Environment.GetEnvironmentVariables())
Evaluation\ExpressionShredder_Tests.cs (2)
529foreach (DictionaryEntry result in actual) 540foreach (DictionaryEntry expect in expected)
TerminalLogger_Tests.cs (2)
207return new ProjectStartedEventArgs("", "", projectFile, targetNames, new Dictionary<string, string>(), new List<DictionaryEntry>()) 345Items = items?.Select(kvp => new DictionaryEntry(kvp.Item1, kvp.Item2)).ToList() ?? new List<DictionaryEntry>(),
Microsoft.Build.Framework (5)
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);
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.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
250.. Environment.GetEnvironmentVariables().Cast<System.Collections.DictionaryEntry>()
src\Compilers\Shared\BuildServerConnection.cs (1)
493foreach (System.Collections.DictionaryEntry entry in currentEnvironment)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
250.. Environment.GetEnvironmentVariables().Cast<System.Collections.DictionaryEntry>()
src\Compilers\Shared\BuildServerConnection.cs (1)
493foreach (System.Collections.DictionaryEntry entry in currentEnvironment)
Microsoft.Build.Tasks.Core (11)
CommunicationsUtilities.cs (2)
610DictionaryEntry entry = enumerator.Entry; 630DictionaryEntry entry = enumerator.Entry;
ManifestUtil\ManifestReader.cs (1)
183DictionaryEntry arg = new DictionaryEntry("manifest-type", manifestType);
ManifestUtil\ManifestWriter.cs (2)
149var arg = new DictionaryEntry("trust-file", temp); 174var arg = new DictionaryEntry("base-file", temp);
ManifestUtil\XmlUtil.cs (2)
76public static Stream XslTransform(string resource, Stream input, params DictionaryEntry[] entries) 107foreach (DictionaryEntry entry in entries)
TaskParameter.cs (2)
585foreach (DictionaryEntry entry in nonGenericEscapedMetadata) 605foreach (DictionaryEntry entry in customMetadata)
WriteCodeFragment.cs (2)
199foreach (DictionaryEntry entry in customMetadata) 308foreach (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)
265foreach (DictionaryEntry newGlobalProperty in globalPropertiesPassedIntoTask) 332foreach (DictionaryEntry newGlobalProperty in globalProperties[i])
Microsoft.Build.Utilities.Core (1)
TaskItem.cs (1)
129foreach (DictionaryEntry singleMetadata in itemMetadata)
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.Analyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.BannedApiAnalyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.Collections.Package (4)
Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.Extensions.Package (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.InteractiveHost (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
589var 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\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly 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\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly 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.NET.Build.Containers.UnitTests (3)
Resources\ResourceTests.cs (3)
31IEnumerable<IGrouping<string, DictionaryEntry>> groups = resourceSet 32.OfType<DictionaryEntry>() 37foreach (IGrouping<string, DictionaryEntry> group in groups)
Microsoft.NET.Build.Tasks.UnitTests (1)
GivenThatWeHaveErrorCodes.cs (1)
129return set.Cast<DictionaryEntry>().Select(e => ((string)e.Key, (string)e.Value));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
996For Each Entry As DictionaryEntry In Exceptions
MSBuild (4)
CommunicationsUtilities.cs (2)
610DictionaryEntry entry = enumerator.Entry; 630DictionaryEntry entry = enumerator.Entry;
TaskParameter.cs (2)
585foreach (DictionaryEntry entry in nonGenericEscapedMetadata) 605foreach (DictionaryEntry entry in customMetadata)
MSBuildTaskHost (2)
TaskParameter.cs (2)
585foreach (DictionaryEntry entry in nonGenericEscapedMetadata) 605foreach (DictionaryEntry entry in customMetadata)
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)
369foreach (DictionaryEntry entry in _assemblyPathTable)
PresentationCore (17)
System\Windows\Input\AccessKeyManager.cs (2)
673foreach (DictionaryEntry entry in Current._keyToElements) 694foreach (DictionaryEntry entry in Current._keyToElements)
System\Windows\Media\Animation\Clock.cs (2)
4366foreach (DictionaryEntry e in _objectTable) 4376foreach (DictionaryEntry e in removeTable)
System\Windows\Media\Animation\Timeline.cs (2)
1159foreach (DictionaryEntry e in _objectTable) 1169foreach (DictionaryEntry e in removeTable)
System\Windows\Media\CharacterMetricsDictionary.cs (5)
183SC.DictionaryEntry[] typedArray = array as SC.DictionaryEntry[]; 200if (!elementType.IsAssignableFrom(typeof(SC.DictionaryEntry))) 201throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 579SC.DictionaryEntry SC.IDictionaryEnumerator.Entry
System\Windows\Media\CultureSpecificStringDictionary.cs (5)
152SC.DictionaryEntry[] typedArray = array as SC.DictionaryEntry[]; 169if (!elementType.IsAssignableFrom(typeof(SC.DictionaryEntry))) 170throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(SC.DictionaryEntry), elementType)); 398public SC.DictionaryEntry Entry
System\Windows\Media\Imaging\ImagingCache.cs (1)
72foreach (DictionaryEntry de in table)
PresentationFramework (37)
MS\Internal\Data\StaticPropertyChangedEventManager.cs (3)
397foreach (DictionaryEntry de in _dict) 407foreach (DictionaryEntry de in _dict) 555foreach (DictionaryEntry de in _dict)
MS\Internal\Data\ValueTable.cs (1)
245foreach (DictionaryEntry de in _table)
MS\Internal\Data\ViewManager.cs (3)
247foreach (DictionaryEntry de in this) 650foreach (DictionaryEntry de in vt) 788foreach (DictionaryEntry de in this)
MS\Internal\DataStreams.cs (1)
226foreach (DictionaryEntry entry in _customJournaledObjects)
System\Windows\Controls\Grid.cs (1)
1302foreach (DictionaryEntry e in spanStore)
System\Windows\Documents\AdornerLayer.cs (4)
413DictionaryEntry[] zOrderMapEntries = new DictionaryEntry[_zOrderMap.Count]; 447DictionaryEntry[] zOrderMapEntries = new DictionaryEntry[_zOrderMap.Count];
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (6)
43public DictionaryEntry Entry 45get => (DictionaryEntry)_enumerator.Current; 67public DictionaryEntry Current 293public void CopyTo(DictionaryEntry[] array, int arrayIndex) 310DictionaryEntry entry = new(pair.Key, pair.Value); 361CopyTo(array as DictionaryEntry[], index);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (6)
501DictionaryEntry[] entries = new DictionaryEntry[dictionary.Count]; 503Array.Sort(entries, delegate(DictionaryEntry one, DictionaryEntry two) 507foreach (DictionaryEntry entry in entries) 1164foreach (DictionaryEntry entry in _value)
System\Windows\Markup\XamlTypeMapper.cs (2)
299foreach ( DictionaryEntry de in dict ) 369foreach (DictionaryEntry entry in _assemblyPathTable)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (2)
56foreach (DictionaryEntry entry in typeMapper.PITable) 144foreach (DictionaryEntry piEntry in _typeMapper.PITable)
System\Windows\Markup\XmlnsDictionary.cs (1)
206public void CopyTo(DictionaryEntry[] array, int index)
System\Windows\Media\Animation\Storyboard.cs (1)
609foreach( DictionaryEntry entry in clockMappings )
System\Windows\ResourceDictionary.cs (5)
70public void CopyTo(DictionaryEntry[] array, int arrayIndex) 85private void CopyToWithoutLock(DictionaryEntry[] array, int arrayIndex) 94DictionaryEntry entry = array[i]; 960CopyTo(array as DictionaryEntry[], arrayIndex); 2175DictionaryEntry IDictionaryEnumerator.Entry
System\Windows\StyleHelper.cs (1)
2294foreach (DictionaryEntry entry in parentTemplateValues)
ReachFramework (1)
Serialization\VisualTreeFlattener.cs (1)
773foreach (DictionaryEntry e in res)
Replay (2)
Replay.cs (1)
103foreach (DictionaryEntry entry in Environment.GetEnvironmentVariables())
src\Compilers\Shared\BuildServerConnection.cs (1)
493foreach (System.Collections.DictionaryEntry entry in currentEnvironment)
Roslyn.Diagnostics.Analyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
1417readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
System\Collections\Generic\SortedDictionary.cs (1)
499DictionaryEntry IDictionaryEnumerator.Entry
System\Collections\Generic\SortedList.cs (1)
810DictionaryEntry IDictionaryEnumerator.Entry
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenDictionary.cs (1)
431else 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 (4)
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)
1477DictionaryEntry de = e.Entry;
System.Configuration.ConfigurationManager (12)
System\Configuration\ClientSettingsStore.cs (1)
185foreach (DictionaryEntry entry in newSettings)
System\Configuration\ConfigurationElementCollection.cs (2)
1264private DictionaryEntry _current; 1292DictionaryEntry 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) 1690foreach (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)
350DictionaryEntry entry = (DictionaryEntry)item;
System.Net.Requests (1)
System\Net\TimerThread.cs (1)
140DictionaryEntry pair = e.Entry;
System.Private.CoreLib (13)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (3)
822private void CopyToEntries(DictionaryEntry[] array, int index) 1893if (array is DictionaryEntry[] entries) 2296public DictionaryEntry Entry => new DictionaryEntry(_enumerator.Current.Key, _enumerator.Current.Value);
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
1494else if (array is DictionaryEntry[] dictEntryArray) 1844DictionaryEntry 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)
1102public 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)
693foreach (DictionaryEntry entry in redefine.Groups) 698foreach (DictionaryEntry entry in redefine.AttributeGroups) 703foreach (DictionaryEntry entry in redefine.SchemaTypes)
System\Xml\Schema\XmlSchemaObjectTable.cs (1)
340public DictionaryEntry Entry
System\Xml\Schema\XmlSchemaSet.cs (3)
809DictionaryEntry[] oldLocations = new DictionaryEntry[_schemaLocations.Count]; 831internal 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)
808foreach (DictionaryEntry de in _typeDescs)
System\Xml\Serialization\XmlSerializationReader.cs (1)
1522foreach (DictionaryEntry target in _targets)
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
1102public 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)
182AppendHashtableContents(writer, rm.Tree.CaptureNumberSparseMapping.Cast<DictionaryEntry>().OrderBy(de => de.Key as int?)); 188AppendHashtableContents(writer, rm.Tree.CaptureNameToNumberMapping.Cast<DictionaryEntry>().OrderBy(de => de.Key as string, StringComparer.Ordinal)); 208static void AppendHashtableContents(IndentedTextWriter writer, IEnumerable<DictionaryEntry> contents) 211foreach (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)
99var target = new DictionaryEntry[2]; 103var firstTargetItem = target[0]; 104Assert.Equal(typeof(DictionaryEntry), firstTargetItem.GetType()); 108var secondTargetItem = target[1]; 109Assert.Equal(typeof(DictionaryEntry), secondTargetItem.GetType()); 126var firstTargetItem = (DictionaryEntry)target[0]; 130var secondTargetItem = (DictionaryEntry)target[1];
System\Resources\ResXResourceWriterTests.cs (14)
140var currentEntry = (DictionaryEntry)metadataEnumerator.Current; 161var currentEntry = (DictionaryEntry)metadataEnumerator.Current; 182var currentEntry = (DictionaryEntry)metadataEnumerator.Current; 203var currentEntry = (DictionaryEntry)enumerator.Current; 224var currentEntry = (DictionaryEntry)enumerator.Current; 245var currentEntry = (DictionaryEntry)enumerator.Current; 267var currentEntry = (DictionaryEntry)enumerator.Current;
System\Windows\Forms\BindingContextTests.cs (19)
42var array = new DictionaryEntry[4]; 175Assert.NotNull(Assert.IsType<DictionaryEntry>(array[1]).Key); 176Assert.Equal(source.CurrencyManager, Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(array[1]).Value).Target); 188var array = new DictionaryEntry[4]; 204Assert.IsType<DictionaryEntry>(destArray[1]); 205Assert.IsType<DictionaryEntry>(destArray[2]); 217var array = new DictionaryEntry[4]; 232Assert.IsType<DictionaryEntry>(enumerator.Current); 234Assert.IsType<DictionaryEntry>(enumerator.Current); 687PropertyManager parentManager = Assert.IsType<PropertyManager>(Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(Assert.Single(context)).Value).Target); 716WeakReference reference = Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(Assert.Single(context)).Value); 781DictionaryEntry entry1 = Assert.IsType<DictionaryEntry>(Assert.Single(context1)); 782DictionaryEntry entry2 = Assert.IsType<DictionaryEntry>(Assert.Single(context2)); 783DictionaryEntry entry3 = Assert.IsType<DictionaryEntry>(Assert.Single(context3)); 784DictionaryEntry entry4 = Assert.IsType<DictionaryEntry>(Assert.Single(context3));
System.Xaml (11)
System\Xaml\NameScope.cs (1)
120foreach (DictionaryEntry entry in _nameMap)
System\Xaml\Runtime\ClrObjectRuntime.cs (6)
374public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary, XamlType dictionaryType) 400return (IEnumerable<DictionaryEntry>)method.Invoke(null, new object[] { enumerator }); 743private static IEnumerable<DictionaryEntry> DictionaryEntriesFromIDictionaryEnumerator( 752private static IEnumerable<DictionaryEntry> DictionaryEntriesFromIEnumerator(IEnumerator enumerator) 756yield return (DictionaryEntry)enumerator.Current; 760private static IEnumerable<DictionaryEntry> DictionaryEntriesFromIEnumeratorKvp<TKey, TValue>(IEnumerator<KeyValuePair<TKey, TValue>> enumerator)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (1)
405public override IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary, XamlType dictionaryType)
System\Xaml\XamlObjectReader.cs (2)
417foreach (var entry in context.Runtime.GetDictionaryItems(propertyValue, propertyType)) 472public static bool ShouldOmitKey(DictionaryEntry entry, SerializerContext context)
System\Xaml\XamlRuntime.cs (1)
68public abstract IEnumerable<DictionaryEntry> GetDictionaryItems(object dictionary, XamlType dictionaryType);
Text.Analyzers (4)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Enumerator.cs (2)
38/// <see cref="System.Collections.DictionaryEntry"/>. This is the return value for instances of this 49readonly DictionaryEntry IDictionaryEnumerator.Entry => new(Current.Key, Current.Value);
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
906else if (array is DictionaryEntry[] dictEntryArray) 1252readonly DictionaryEntry IDictionaryEnumerator.Entry
UIAutomationClient (4)
MS\Internal\Automation\ProxyManager.cs (4)
138if( o is DictionaryEntry ) 139o = ((DictionaryEntry)o).Value; 166if( o is DictionaryEntry ) 167o = ((DictionaryEntry)o).Value;
vbc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
493foreach (System.Collections.DictionaryEntry entry in currentEnvironment)
VBCSCompiler (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
493foreach (System.Collections.DictionaryEntry entry in currentEnvironment)
VBCSCompiler.UnitTests (1)
BuildServerConnectionTests.cs (1)
180foreach (System.Collections.DictionaryEntry entry in Environment.GetEnvironmentVariables())
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)