1 implementation of Value
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ExtensionDataObject.cs (1)
99public object? Value
1 write to Value
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
75deserializedDataNode.Value = obj;
33 references to Value
System.Private.DataContractSerialization (33)
System\Runtime\Serialization\ExtensionDataReader.cs (24)
470else if (dataNode?.Value != null) 505if (node.Id != Globals.NewObjectId && (node.Value == null || !node.IsFinalValue)) 633if (type == Globals.TypeOfObject && dataNode.Value != null) 635type = dataNode.Value.GetType(); 659Debug.Assert(dataNode.Value != null); 665_value = XmlConvert.ToString(isTypedNode ? ((DataNode<bool>)dataNode).GetValue() : (bool)dataNode.Value); 668_value = XmlConvert.ToString((int)(isTypedNode ? ((DataNode<char>)dataNode).GetValue() : (char)dataNode.Value)); 671_value = XmlConvert.ToString(isTypedNode ? ((DataNode<byte>)dataNode).GetValue() : (byte)dataNode.Value); 674_value = XmlConvert.ToString(isTypedNode ? ((DataNode<short>)dataNode).GetValue() : (short)dataNode.Value); 677_value = XmlConvert.ToString(isTypedNode ? ((DataNode<int>)dataNode).GetValue() : (int)dataNode.Value); 680_value = XmlConvert.ToString(isTypedNode ? ((DataNode<long>)dataNode).GetValue() : (long)dataNode.Value); 683_value = XmlConvert.ToString(isTypedNode ? ((DataNode<float>)dataNode).GetValue() : (float)dataNode.Value); 686_value = XmlConvert.ToString(isTypedNode ? ((DataNode<double>)dataNode).GetValue() : (double)dataNode.Value); 689_value = XmlConvert.ToString(isTypedNode ? ((DataNode<decimal>)dataNode).GetValue() : (decimal)dataNode.Value); 692DateTime dateTime = isTypedNode ? ((DataNode<DateTime>)dataNode).GetValue() : (DateTime)dataNode.Value; 696_value = isTypedNode ? ((DataNode<string>)dataNode).GetValue() : (string?)dataNode.Value; 699_value = XmlConvert.ToString(isTypedNode ? ((DataNode<sbyte>)dataNode).GetValue() : (sbyte)dataNode.Value); 702_value = XmlConvert.ToString(isTypedNode ? ((DataNode<ushort>)dataNode).GetValue() : (ushort)dataNode.Value); 705_value = XmlConvert.ToString(isTypedNode ? ((DataNode<uint>)dataNode).GetValue() : (uint)dataNode.Value); 708_value = XmlConvert.ToString(isTypedNode ? ((DataNode<ulong>)dataNode).GetValue() : (ulong)dataNode.Value); 714byte[]? bytes = isTypedNode ? ((DataNode<byte[]>)dataNode).GetValue() : (byte[])dataNode.Value; 718_value = XmlConvert.ToString(isTypedNode ? ((DataNode<TimeSpan>)dataNode).GetValue() : (TimeSpan)dataNode.Value); 721Guid guid = isTypedNode ? ((DataNode<Guid>)dataNode).GetValue() : (Guid)dataNode.Value; 726Uri uri = isTypedNode ? ((DataNode<Uri>)dataNode).GetValue() : (Uri)dataNode.Value;
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
310else if ((dataType == Globals.TypeOfObject) && (dataNode.Value != null)) 312DataContract dc = GetDataContract(dataNode.Value.GetType());
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
389retObj = (dataNode.Value != null && dataNode.IsFinalValue) ? dataNode.Value : DeserializeFromExtensionData(dataNode, type ?? dataNode.DataType, name, ns);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (4)
709&& OnHandleReference(xmlWriter, dataNode.Value ?? dataNode, canContainCyclicReference: true)) 729object? o = dataNode.Value; 737OnEndHandleReference(xmlWriter, (dataNode.Value ?? dataNode), true /*canContainCyclicReference*/); 744object? o = dataNode.Value;
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
417object? obj = dataNode.Value;