2 writes to Value
PresentationFramework (1)
System\Windows\ResourceDictionary.cs (1)
98entry.Value = value; // refresh the entry value in case it was changed in the previous call
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElementCollection.cs (1)
1279_current.Value = entry.Value;
156 references to Value
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
216var val = de.Value?.ToString();
dotnet-svcutil-lib (17)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (7)
225if ((int)de.Value == symbol) 234if ((int)de.Value == symbol) 2334if (!context.AllElementsSet[(int)entry.Value] && (!isRequiredOnly || _isRequired[(int)entry.Value])) 2351if (!context.AllElementsSet[(int)entry.Value] && (!isRequiredOnly || _isRequired[(int)entry.Value])) 2353AddParticleToExpected(_particles[(int)entry.Value] as XmlSchemaParticle, schemaSet, expectedParticles);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (3)
708redefine.Schema.Groups.Insert((XmlQualifiedName)entry.Key, (XmlSchemaObject)entry.Value); 712redefine.Schema.AttributeGroups.Insert((XmlQualifiedName)entry.Key, (XmlSchemaObject)entry.Value); 716redefine.Schema.SchemaTypes.Insert((XmlQualifiedName)entry.Key, (XmlSchemaObject)entry.Value);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaNamespaceManager.cs (1)
54if (entry.Value.Equals(ns))
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (1)
1015schema = (XmlSchema)locationsTable[i].Value;
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
777if (de.Value == typeDesc)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (2)
1598if (_referencedTargets == null || !_referencedTargets.Contains(target.Value)) 1600UnreferencedObject((string)target.Key, target.Value);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
1477string ns = (string)entry.Value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
140targetCompileUnit.UserData[userData.Key] = userData.Value;
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\Json\JsonConverterHelper.cs (1)
145existingValue[item.Key] = item.Value;
Internal\Json\StructConverter.cs (1)
34var v = (IMessage?)entry.Value;
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
259map[value.Key] = value.Value;
Microsoft.AspNetCore.Grpc.Swagger (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
259map[value.Key] = value.Value;
Microsoft.Build.Framework (2)
ProjectStartedEventArgs.cs (2)
386var validProperties = properties.Cast<DictionaryEntry>().Where(entry => entry.Key != null && entry.Value != null); 398writer.Write((string?)propertyPair.Value ?? "");
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
596FormatObjectRecursive(result, entry.Value, isRoot: false, debuggerDisplayName: out _);
Microsoft.CodeAnalysis.UnitTests (5)
Collections\ImmutableDictionaryBuilderTestBase.cs (2)
206Assert.Equal(enumerator.Value, enumerator.Entry.Value); 223Assert.Equal(enumerator.Value, ((DictionaryEntry)enumerator.Current).Value);
Collections\ImmutableDictionaryTestBase.cs (3)
149Assert.Null(array[0].Value); 194Assert.Equal(enumerator.Value, enumerator.Entry.Value); 211Assert.Equal(enumerator.Value, ((DictionaryEntry)enumerator.Current).Value);
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
242string propertyCategory = e.Properties?.Cast<DictionaryEntry>().LastOrDefault(p => p.Key.ToString().Equals(s_TelemetryMarker)).Value?.ToString();
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
82string? value = (string?)e.Entry.Value;
Microsoft.ML.CodeGenerator (1)
Utils.cs (1)
82return sampleData.Cast<DictionaryEntry>().ToDictionary(k => (string)k.Key, v => (string)v.Value);
Microsoft.ML.Maml (2)
MAML.cs (2)
290if (kvp.Value is string[] createdComponents) 304writer.WriteLine(" {0}: {1}", kvp.Key, kvp.Value);
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
997IOException.Data.Add(Entry.Key, Entry.Value)
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
371ReflectionHelper.LoadAssembly(entry.Key as String, entry.Value as String);
PresentationCore (5)
System\Windows\Input\AccessKeyManager.cs (2)
675ArrayList elements = (ArrayList)entry.Value; 696ArrayList elements = (ArrayList)entry.Value;
System\Windows\Media\Animation\Clock.cs (1)
4368WeakReference weakRef = (WeakReference) e.Value;
System\Windows\Media\Animation\Timeline.cs (1)
1161WeakReference weakRef = (WeakReference) e.Value;
System\Windows\Media\Imaging\ImagingCache.cs (1)
75WeakReference weakRef = de.Value as WeakReference;
PresentationFramework (20)
MS\Internal\Data\StaticPropertyChangedEventManager.cs (3)
400size += ((PropertyRecord)de.Value).List.Count; 409ListenerList listeners = ((PropertyRecord)de.Value).List; 557PropertyRecord pr = (PropertyRecord)de.Value;
MS\Internal\Data\ViewManager.cs (3)
252ViewRecord vr = (ViewRecord)de.Value; 652ViewRecord vr = (ViewRecord)de.Value; 791CollectionRecord cr = (CollectionRecord)de.Value;
MS\Internal\DataStreams.cs (1)
228CustomJournalStateInternal cjs = (CustomJournalStateInternal)entry.Value;
System\Windows\Controls\Grid.cs (1)
1305double requestedSize = (double)e.Value;
System\Windows\Documents\AdornerLayer.cs (2)
418ArrayList adornerInfos = (ArrayList)zOrderMapEntries[i].Value; 452ArrayList adornerInfos = (ArrayList)zOrderMapEntries[i].Value;
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
61get => (BamlLocalizableResource)Entry.Value;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
511ElementProperty.CheckForMarkupExtension(typeof(Object), entry.Value, Context, false), Manager); 1166ElementMarkupObject item = new ElementMarkupObject(entry.Value, Manager);
System\Windows\Markup\XamlTypeMapper.cs (2)
301newDict.Add(de.Key, de.Value); 371ReflectionHelper.LoadAssembly(entry.Key as String, entry.Value as String);
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (2)
58ClrNamespaceAssemblyPair pair = (ClrNamespaceAssemblyPair)entry.Value; 146ClrNamespaceAssemblyPair mapping = (ClrNamespaceAssemblyPair)piEntry.Value;
System\Windows\Media\Animation\Storyboard.cs (1)
612object value = entry.Value;
System\Windows\ResourceDictionary.cs (1)
95object value = entry.Value;
System\Windows\StyleHelper.cs (1)
2298if (entry.Value is MarkupExtension)
ReachFramework (2)
Serialization\VisualTreeFlattener.cs (2)
781MetroToGdiConverter.TestingHook(e.Value); 786testhook |= Microsoft.Internal.AlphaFlattener.Configuration.SetValue(key, e.Value);
Replay (1)
Replay.cs (1)
107Console.WriteLine($"{key}={entry.Value}");
System.Collections.Specialized (9)
System\Collections\Specialized\OrderedDictionary.cs (9)
156return ((DictionaryEntry)objectsArray[index]!).Value; 434objectsTable.Add(entry.Key, entry.Value); 472return ((DictionaryEntry)_arrayEnumerator.Current).Value; 486return new DictionaryEntry(((DictionaryEntry)_arrayEnumerator.Current).Key, ((DictionaryEntry)_arrayEnumerator.Current).Value); 510return ((DictionaryEntry)_arrayEnumerator.Current).Value; 564array.SetValue(IsKeys ? ((DictionaryEntry)o).Key : ((DictionaryEntry)o).Value, index); 591if (object.Equals(((DictionaryEntry)o).Value, value)) 619else if (object.Equals(((DictionaryEntry)_objects[i]!).Value, value)) 636return IsKeys ? entry.Key : entry.Value;
System.ComponentModel.TypeConverter (3)
System\ComponentModel\ComponentResourceManager.cs (1)
254sd[(string)de.Key] = de.Value;
System\ComponentModel\Design\DesigntimeLicenseContextSerializer.cs (1)
48writer.Write(keyAndValue.Value!.ToString()!);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (1)
1488hashEntry = de.Value;
System.Configuration.ConfigurationManager (11)
System\Configuration\ClientSettingsStore.cs (1)
196StoredSetting ss = (StoredSetting)entry.Value;
System\Configuration\ConfigurationElementCollection.cs (2)
1290object IEnumerator.Current => _current.Value; 1296object IDictionaryEnumerator.Value => _current.Value;
System\Configuration\ConfigurationLockCollection.cs (2)
94if (((ConfigurationValueFlags)de.Value & ConfigurationValueFlags.Inherited) != 0) 281if ((((ConfigurationValueFlags)de.Value & ConfigurationValueFlags.Inherited) == 0)
System\Configuration\ConfigurationSectionCollection.cs (1)
23FactoryId factoryId = (FactoryId)de.Value;
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
24FactoryId factoryId = (FactoryId)de.Value;
System\Configuration\MgmtConfigurationRecord.cs (1)
1539SectionRecord sectionRecord = (SectionRecord)de.Value;
System\Configuration\SectionUpdates.cs (2)
213SectionUpdates sectionUpdates = (SectionUpdates)de.Value; 234SectionUpdates sectionUpdates = (SectionUpdates)de.Value;
System\Configuration\SettingsPropertyValueCollection.cs (1)
59if ((int)de.Value > ipos)
System.Data.Common (10)
System\Data\PropertyCollection.cs (1)
35clone.Add(pair.Key, pair.Value);
System\Data\xmlsaver.cs (5)
83if (entry.Value is INullable) 85v = (string)SqlConvert.ChangeTypeForXML(entry.Value, typeof(string)); 87else if (entry.Value is System.Numerics.BigInteger) 89v = (string)BigIntegerStorage.ConvertFromBigInteger((System.Numerics.BigInteger)entry.Value, typeof(string), CultureInfo.InvariantCulture); 93v = Convert.ToString(entry.Value, CultureInfo.InvariantCulture)!;
System\Xml\XmlDataDocument.cs (4)
65IXmlDataVirtualNode? temp = (IXmlDataVirtualNode?)(entry.Value); 895pointer = entry.Value; 1434pointer = entry.Value; 1694object? pointer = entry.Value;
System.Diagnostics.Process (1)
System\Diagnostics\ProcessStartInfo.cs (1)
109_environmentVariables.Add((string)entry.Key, (string?)entry.Value);
System.Net.Primitives (1)
System\Net\CookieContainer.cs (1)
354pathList = (PathList)entry.Value!; // Aliasing to trick foreach
System.Net.Requests (1)
System\Net\TimerThread.cs (1)
141if (((WeakReference)pair.Value!).Target == null)
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Collections\DictionaryEntry.cs (1)
43value = Value;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
227genericDictionaryObj.Add(entry.Key, entry.Value);
System.Private.Xml (7)
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
698redefine.Schema!.Groups.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!); 703redefine.Schema!.AttributeGroups.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!); 708redefine.Schema!.SchemaTypes.Insert((XmlQualifiedName)entry.Key!, (XmlSchemaObject)entry.Value!);
System\Xml\Schema\XmlSchemaSet.cs (1)
849schema = (XmlSchema)locationsTable[i].Value!;
System\Xml\Serialization\Types.cs (1)
747if (de.Value == typeDesc)
System\Xml\Serialization\XmlSerializationReader.cs (2)
1497if (_referencedTargets == null || !_referencedTargets.Contains(target.Value!)) 1499UnreferencedObject((string)target.Key, target.Value!);
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCacheStore.cs (2)
234MemoryCacheEntry entry = e.Value as MemoryCacheEntry; 264MemoryCacheEntry entry = e.Value as MemoryCacheEntry;
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
199writer.Write($", {en.Value} }} ");
System.Windows.Forms (1)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
1058Rectangle bounds = (Rectangle)entry.Value!;
System.Windows.Forms.Design (8)
System\ComponentModel\Design\Serialization\StatementContext.cs (1)
234public readonly object? Value => Entry.Value;
System\Drawing\Design\ToolboxItem.cs (1)
713info.AddValue((string)de.Key, de.Value);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (5)
169if (entry.Value is ResXDataNode node) 186Type type = (entry.Value is null) ? typeof(object) : entry.Value.GetType(); 187data = new ResourceData(type, entry.Value?.ToString()); 277ResXDataNode node = (ResXDataNode)entry.Value!;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
230PropertyDescriptor descriptor = (PropertyDescriptor)de.Value!;
System.Windows.Forms.Tests (26)
misc\CollectionHelperTests.cs (4)
106Assert.Equal("value-one", (string)firstTargetItem.Value); 111Assert.Equal("value-two", (string)secondTargetItem.Value); 128Assert.Equal("value-one", (string)firstTargetItem.Value); 132Assert.Equal("value-two", (string)secondTargetItem.Value);
System\Resources\ResXResourceWriterTests.cs (7)
142Assert.Equal(_testBytes, currentEntry.Value); 163Assert.Equal(_testString2, currentEntry.Value); 184Assert.Equal(_testDateTime, currentEntry.Value); 205Assert.Equal(_testBytes, currentEntry.Value); 226Assert.Equal(_testString2, currentEntry.Value); 247Assert.Equal(_testDateTime, currentEntry.Value); 269Assert.Equal(_testDateTime, currentEntry.Value);
System\Windows\Forms\BindingContextTests.cs (15)
45WeakReference reference1 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager1).Value); 46WeakReference reference2 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager2).Value); 176Assert.Equal(source.CurrencyManager, Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(array[1]).Value).Target); 191WeakReference reference1 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager1).Value); 192WeakReference reference2 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager2).Value); 220WeakReference reference1 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager1).Value); 221WeakReference reference2 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager2).Value); 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);
System.Xaml (5)
System\Xaml\NameScope.cs (1)
122array[arrayIndex++] = new KeyValuePair<string, object>((string)entry.Key, entry.Value);
System\Xaml\XamlObjectReader.cs (4)
434objInfo = ObjectMarkupInfo.ForObject(entry.Value, context); 474if (entry.Value is not null) 476XamlType typeOfValue = context.GetXamlType(entry.Value.GetType()); 483object dkpObject = context.Runtime.GetValue(entry.Value, dkp);
UIAutomationClient (2)
MS\Internal\Automation\ProxyManager.cs (2)
139o = ((DictionaryEntry)o).Value; 167o = ((DictionaryEntry)o).Value;
XmlFileLogger (1)
PropertyBag.cs (1)
89AddProperty(property.Key.ToString(), property.Value.ToString());