1 implementation of Value
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ExtensionDataObject.cs (1)
99
public object?
Value
1 write to Value
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ExtensionDataReader.cs (1)
75
deserializedDataNode.
Value
= obj;
33 references to Value
System.Private.DataContractSerialization (33)
System\Runtime\Serialization\ExtensionDataReader.cs (24)
470
else if (dataNode?.
Value
!= null)
505
if (node.Id != Globals.NewObjectId && (node.
Value
== null || !node.IsFinalValue))
633
if (type == Globals.TypeOfObject && dataNode.
Value
!= null)
635
type = dataNode.
Value
.GetType();
659
Debug.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
);
692
DateTime 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
);
714
byte[]? bytes = isTypedNode ? ((DataNode<byte[]>)dataNode).GetValue() : (byte[])dataNode.
Value
;
718
_value = XmlConvert.ToString(isTypedNode ? ((DataNode<TimeSpan>)dataNode).GetValue() : (TimeSpan)dataNode.
Value
);
721
Guid guid = isTypedNode ? ((DataNode<Guid>)dataNode).GetValue() : (Guid)dataNode.
Value
;
726
Uri uri = isTypedNode ? ((DataNode<Uri>)dataNode).GetValue() : (Uri)dataNode.
Value
;
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (2)
310
else if ((dataType == Globals.TypeOfObject) && (dataNode.
Value
!= null))
312
DataContract dc = GetDataContract(dataNode.
Value
.GetType());
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
389
retObj = (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))
729
object? o = dataNode.
Value
;
737
OnEndHandleReference(xmlWriter, (dataNode.
Value
?? dataNode), true /*canContainCyclicReference*/);
744
object? o = dataNode.
Value
;
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
417
object? obj = dataNode.
Value
;