39 references to GetValue
System.Private.DataContractSerialization (39)
System\Runtime\Serialization\ExtensionDataReader.cs (19)
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\XmlWriterDelegator.cs (20)
365
WriteBoolean(((DataNode<bool>)dataNode).
GetValue
());
368
WriteChar(((DataNode<char>)dataNode).
GetValue
());
371
WriteUnsignedByte(((DataNode<byte>)dataNode).
GetValue
());
374
WriteShort(((DataNode<short>)dataNode).
GetValue
());
377
WriteInt(((DataNode<int>)dataNode).
GetValue
());
380
WriteLong(((DataNode<long>)dataNode).
GetValue
());
383
WriteFloat(((DataNode<float>)dataNode).
GetValue
());
386
WriteDouble(((DataNode<double>)dataNode).
GetValue
());
389
WriteDecimal(((DataNode<decimal>)dataNode).
GetValue
());
392
WriteDateTime(((DataNode<DateTime>)dataNode).
GetValue
());
395
WriteString(((DataNode<string>)dataNode).
GetValue
());
398
WriteSignedByte(((DataNode<sbyte>)dataNode).
GetValue
());
401
WriteUnsignedShort(((DataNode<ushort>)dataNode).
GetValue
());
404
WriteUnsignedInt(((DataNode<uint>)dataNode).
GetValue
());
407
WriteUnsignedLong(((DataNode<ulong>)dataNode).
GetValue
());
414
WriteBase64(((DataNode<byte[]>)dataNode).
GetValue
());
422
WriteTimeSpan(((DataNode<TimeSpan>)dataNode).
GetValue
());
424
WriteGuid(((DataNode<Guid>)dataNode).
GetValue
());
426
WriteUri(((DataNode<Uri>)dataNode).
GetValue
());
428
WriteQName(((DataNode<XmlQualifiedName>)dataNode).
GetValue
());