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