2 writes to Value
PresentationFramework (1)
System\Windows\ResourceDictionary.cs (1)
99entry.Value = value; // refresh the entry value in case it was changed in the previous call
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElementCollection.cs (1)
1282_current.Value = entry.Value;
189 references to Value
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
207var 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)
144existingValue[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 (16)
BackEnd\Client\MSBuildClient.cs (1)
507envVars[(string)envVar.Key] = (envVar.Value as string) ?? string.Empty;
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
221keyValuePairList.Add(new KeyValuePair<string, string>((string)kvp.Key, (string)kvp.Value));
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1190propertyDictionaries[i].Set(ProjectPropertyInstance.Create(entry.Key as string, entry.Value as string, _taskLocation));
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
1421yield return new KeyValuePair<string, string>((string)de.Key, EscapingUtilities.Escape((string)de.Value));
Evaluation\Expander.cs (1)
1496builder.Append(EscapingUtilities.Escape(ConvertToString(entry.Value)));
Instance\ProjectInstance.cs (1)
2979Environment.SetEnvironmentVariable(clearedVariable.Key as string, clearedVariable.Value as string);
Logging\BaseConsoleLogger.cs (3)
541WriteLinePretty(EscapingUtilities.UnescapeAll((string)prop.Value)); 567ArrayList itemTypeList = (ArrayList)entry.Value; 605bucket.Add(item.Value);
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
985reusableProjectItemList.Add(dictionaryEntry.Value);
Logging\ParallelLogger\ParallelConsoleLogger.cs (3)
607string itemSpec = item.Value switch 611_ => throw new NotSupportedException(Convert.ToString(item.Value)) 763string propertyString = String.Format(CultureInfo.CurrentCulture, "{0} = {1}", prop.Key, EscapingUtilities.UnescapeAll((string)(prop.Value)));
LogMessagePacketBase.cs (1)
1143list.Add((dictionaryEntry.Key as string, dictionaryEntry.Value));
Utilities\Utilities.cs (2)
662yield return new(key, dictionaryEntry.Value as string ?? string.Empty); 828itemValue = dictionaryEntry.Value;
Microsoft.Build.CommandLine.UnitTests (1)
CommandLineSwitches_Tests.cs (1)
1548.Select(i => new KeyValuePair<string, string>((string)i.Key, (string)i.Value)))
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TranslationHelpers.cs (2)
175(Func<DictionaryEntry, string>)(d => d.Value.ToString())); 183.Select(i => i.Key.ToString() + GetTaskItemString(i.Value));
CommunicationUtilities_Tests.cs (1)
28referenceVars2.Add((string)item.Key!, (string)item.Value!);
ConsoleLogger_Tests.cs (1)
131_environment.Add((string)entry.Key, (string)entry.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.Build.Framework.UnitTests (3)
CustomEventArgSerialization_Tests.cs (3)
635string value = (string)entry.Value; 638if (value.Equals((string)property.Value, StringComparison.OrdinalIgnoreCase)) 645found.ShouldBeTrue($"Expected to find Key: {property.Key} Value: {property.Value}");
Microsoft.Build.Tasks.Core (3)
ManifestUtil\XmlUtil.cs (1)
111object val = entry.Value.ToString();
WriteCodeFragment.cs (2)
202string value = (string)entry.Value; 305string value = (string)entry.Value;
Microsoft.Build.Tasks.UnitTests (1)
ResolveNonMSBuildProjectOutput_Tests.cs (1)
93xmlString += string.Format("<ProjectRef Project=\"{0}\">{1}</ProjectRef>", entry.Key, entry.Value);
Microsoft.Build.UnitTests.Shared (2)
MockEngine.cs (2)
243finalGlobalProperties[(string)newGlobalProperty.Key] = (string)newGlobalProperty.Value; 310finalGlobalProperties[(string)newGlobalProperty.Key] = (string)newGlobalProperty.Value;
Microsoft.Build.Utilities.Core (1)
TaskItem.cs (1)
131_metadata[key] = (string)singleMetadata.Value ?? string.Empty;
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (1)
598FormatObjectRecursive(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)
245string propertyCategory = e.Properties?.Cast<DictionaryEntry>().LastOrDefault(p => p.Key.ToString().Equals(s_TelemetryMarker)).Value?.ToString();
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationProvider.cs (1)
72string? 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)
372ReflectionHelper.LoadAssembly(entry.Key as String, entry.Value as String);
PresentationCore (5)
System\Windows\Input\AccessKeyManager.cs (2)
676ArrayList elements = (ArrayList)entry.Value; 697ArrayList elements = (ArrayList)entry.Value;
System\Windows\Media\Animation\Clock.cs (1)
4375WeakReference weakRef = (WeakReference) e.Value;
System\Windows\Media\Animation\Timeline.cs (1)
1162WeakReference weakRef = (WeakReference) e.Value;
System\Windows\Media\Imaging\ImagingCache.cs (1)
76WeakReference weakRef = de.Value as WeakReference;
PresentationFramework (20)
MS\Internal\Data\StaticPropertyChangedEventManager.cs (3)
401size += ((PropertyRecord)de.Value).List.Count; 410ListenerList listeners = ((PropertyRecord)de.Value).List; 558PropertyRecord pr = (PropertyRecord)de.Value;
MS\Internal\Data\ViewManager.cs (3)
253ViewRecord vr = (ViewRecord)de.Value; 655ViewRecord vr = (ViewRecord)de.Value; 794CollectionRecord cr = (CollectionRecord)de.Value;
MS\Internal\DataStreams.cs (1)
229CustomJournalStateInternal cjs = (CustomJournalStateInternal)entry.Value;
System\Windows\Controls\Grid.cs (1)
1252double requestedSize = (double)e.Value;
System\Windows\Documents\AdornerLayer.cs (2)
419ArrayList adornerInfos = (ArrayList)zOrderMapEntries[i].Value; 453ArrayList adornerInfos = (ArrayList)zOrderMapEntries[i].Value;
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
62get => (BamlLocalizableResource)Entry.Value;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
512ElementProperty.CheckForMarkupExtension(typeof(Object), entry.Value, Context, false), Manager); 1167ElementMarkupObject item = new ElementMarkupObject(entry.Value, Manager);
System\Windows\Markup\XamlTypeMapper.cs (2)
302newDict.Add(de.Key, de.Value); 372ReflectionHelper.LoadAssembly(entry.Key as String, entry.Value as String);
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (2)
59ClrNamespaceAssemblyPair pair = (ClrNamespaceAssemblyPair)entry.Value; 147ClrNamespaceAssemblyPair mapping = (ClrNamespaceAssemblyPair)piEntry.Value;
System\Windows\Media\Animation\Storyboard.cs (1)
613object value = entry.Value;
System\Windows\ResourceDictionary.cs (1)
96object value = entry.Value;
System\Windows\StyleHelper.cs (1)
2301if (entry.Value is MarkupExtension)
ReachFramework (2)
Serialization\VisualTreeFlattener.cs (2)
782MetroToGdiConverter.TestingHook(e.Value); 787testhook |= Microsoft.Internal.AlphaFlattener.Configuration.SetValue(key, e.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 (6)
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)
1489hashEntry = de.Value;
System\ComponentModel\TypeDescriptor.cs (3)
2336TypeDescriptionNode? node = (TypeDescriptionNode?)de.Value; 2420TypeDescriptionNode? node = (TypeDescriptionNode?)de.Value; 2481TypeDescriptionNode? node = (TypeDescriptionNode?)de.Value;
System.Configuration.ConfigurationManager (11)
System\Configuration\ClientSettingsStore.cs (1)
196StoredSetting ss = (StoredSetting)entry.Value;
System\Configuration\ConfigurationElementCollection.cs (2)
1293object IEnumerator.Current => _current.Value; 1299object 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)
392pathList = (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)
861schema = (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)
104Assert.Equal("value-one", (string)firstTargetItem.Value); 109Assert.Equal("value-two", (string)secondTargetItem.Value); 126Assert.Equal("value-one", (string)firstTargetItem.Value); 130Assert.Equal("value-two", (string)secondTargetItem.Value);
System\Resources\ResXResourceWriterTests.cs (7)
140Assert.Equal(_testBytes, currentEntry.Value); 161Assert.Equal(_testString2, currentEntry.Value); 182Assert.Equal(_testDateTime, currentEntry.Value); 203Assert.Equal(_testBytes, currentEntry.Value); 224Assert.Equal(_testString2, currentEntry.Value); 245Assert.Equal(_testDateTime, currentEntry.Value); 267Assert.Equal(_testDateTime, currentEntry.Value);
System\Windows\Forms\BindingContextTests.cs (15)
43WeakReference reference1 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager1).Value); 44WeakReference reference2 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager2).Value); 174Assert.Equal(source.CurrencyManager, Assert.IsType<WeakReference>(Assert.IsType<DictionaryEntry>(array[1]).Value).Target); 189WeakReference reference1 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager1).Value); 190WeakReference reference2 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager2).Value); 218WeakReference reference1 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager1).Value); 219WeakReference reference2 = Assert.IsType<WeakReference>(array.Single(p => ((WeakReference)p.Value).Target == manager2).Value); 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);
System.Xaml (5)
System\Xaml\NameScope.cs (1)
123array[arrayIndex++] = new KeyValuePair<string, object>((string)entry.Key, entry.Value);
System\Xaml\XamlObjectReader.cs (4)
435objInfo = ObjectMarkupInfo.ForObject(entry.Value, context); 475if (entry.Value is not null) 477XamlType typeOfValue = context.GetXamlType(entry.Value.GetType()); 484object dkpObject = context.Runtime.GetValue(entry.Value, dkp);
UIAutomationClient (2)
MS\Internal\Automation\ProxyManager.cs (2)
140o = ((DictionaryEntry)o).Value; 168o = ((DictionaryEntry)o).Value;
XmlFileLogger (1)
PropertyBag.cs (1)
89AddProperty(property.Key.ToString(), property.Value.ToString());