4 types derived from DataNode
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\ExtensionDataObject.cs (4)
194internal sealed class ClassDataNode : DataNode<object> 216internal sealed class XmlDataNode : DataNode<object> 254internal sealed class CollectionDataNode : DataNode<Array> 305internal sealed class ISerializableDataNode : DataNode<object>
38 instantiations of DataNode
System.Private.DataContractSerialization (38)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (13)
103dataNode = new DataNode<string>(xmlReader.ReadContentAsString()); 106dataNode = new DataNode<bool>(xmlReader.ReadContentAsBoolean()); 125TypeCode.Byte => new DataNode<byte>((byte)numericalValue), 126TypeCode.SByte => new DataNode<sbyte>((sbyte)numericalValue), 127TypeCode.Int16 => new DataNode<short>((short)numericalValue), 128TypeCode.Int32 => new DataNode<int>((int)numericalValue), 129TypeCode.Int64 => new DataNode<long>((long)numericalValue), 130TypeCode.UInt16 => new DataNode<ushort>((ushort)numericalValue), 131TypeCode.UInt32 => new DataNode<uint>((uint)numericalValue), 132TypeCode.UInt64 => new DataNode<ulong>((ulong)numericalValue), 133TypeCode.Single => new DataNode<float>((float)numericalValue), 134TypeCode.Double => new DataNode<double>((double)numericalValue), 135TypeCode.Decimal => new DataNode<decimal>((decimal)numericalValue),
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
621dataNode = (o is IDataNode) ? (IDataNode)o : new DataNode<object>(o); 680dataNode = new DataNode<object>(xmlReader.ReadElementContentAsAnyType(dataContract.UnderlyingType)); 686dataNode = new DataNode<object>(((EnumDataContract)dataContract).ReadEnumValue(xmlReader)); 753IDataNode stringNode = new DataNode<object>(xmlReader.ReadContentAsString());
System\Runtime\Serialization\XmlReaderDelegator.cs (21)
285return new DataNode<bool>(ReadContentAsBoolean()); 287return new DataNode<char>(ReadContentAsChar()); 289return new DataNode<byte>(ReadContentAsUnsignedByte()); 291return new DataNode<short>(ReadContentAsShort()); 293return new DataNode<int>(ReadContentAsInt()); 295return new DataNode<long>(ReadContentAsLong()); 297return new DataNode<float>(ReadContentAsSingle()); 299return new DataNode<double>(ReadContentAsDouble()); 301return new DataNode<decimal>(ReadContentAsDecimal()); 303return new DataNode<DateTime>(ReadContentAsDateTime()); 305return new DataNode<string>(ReadContentAsString()); 307return new DataNode<sbyte>(ReadContentAsSignedByte()); 309return new DataNode<ushort>(ReadContentAsUnsignedShort()); 311return new DataNode<uint>(ReadContentAsUnsignedInt()); 313return new DataNode<ulong>(ReadContentAsUnsignedLong()); 319return new DataNode<byte[]>(ReadContentAsBase64()); 321return new DataNode<object>(new object()); 323return new DataNode<TimeSpan>(ReadContentAsTimeSpan()); 325return new DataNode<Guid>(ReadContentAsGuid()); 327return new DataNode<Uri>(ReadContentAsUri()); 329return new DataNode<XmlQualifiedName>(ReadContentAsQName());
39 references to DataNode
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());