4 types derived from DataNode
System.Runtime.Serialization (4)
System\Runtime\Serialization\ExtensionDataObject.cs (4)
221
internal class ClassDataNode :
DataNode
<object>
243
internal class CollectionDataNode :
DataNode
<Array>
294
internal class XmlDataNode :
DataNode
<object>
332
internal class ISerializableDataNode :
DataNode
<object>
38 instantiations of DataNode
System.Runtime.Serialization (38)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (13)
66
dataNode = new
DataNode
<string>(xmlReader.ReadContentAsString());
69
dataNode = new
DataNode
<bool>(xmlReader.ReadContentAsBoolean());
90
return new
DataNode
<byte>((byte)numericalValue);
92
return new
DataNode
<sbyte>((sbyte)numericalValue);
94
return new
DataNode
<short>((short)numericalValue);
96
return new
DataNode
<int>((int)numericalValue);
98
return new
DataNode
<long>((long)numericalValue);
100
return new
DataNode
<ushort>((ushort)numericalValue);
102
return new
DataNode
<uint>((uint)numericalValue);
104
return new
DataNode
<ulong>((ulong)numericalValue);
106
return new
DataNode
<float>((float)numericalValue);
108
return new
DataNode
<double>((double)numericalValue);
110
return new
DataNode
<decimal>((decimal)numericalValue);
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (4)
633
dataNode = (o is IDataNode) ? (IDataNode)o : new
DataNode
<object>(o);
692
dataNode = new
DataNode
<object>(xmlReader.ReadElementContentAsAnyType(dataContract.UnderlyingType));
698
dataNode = new
DataNode
<object>(((EnumDataContract)dataContract).ReadEnumValue(xmlReader));
761
IDataNode stringNode = new
DataNode
<object>(xmlReader.ReadContentAsString());
System\Runtime\Serialization\XmlReaderDelegator.cs (21)
294
return new
DataNode
<bool>(ReadContentAsBoolean());
296
return new
DataNode
<char>(ReadContentAsChar());
298
return new
DataNode
<byte>(ReadContentAsUnsignedByte());
300
return new
DataNode
<short>(ReadContentAsShort());
302
return new
DataNode
<int>(ReadContentAsInt());
304
return new
DataNode
<long>(ReadContentAsLong());
306
return new
DataNode
<float>(ReadContentAsSingle());
308
return new
DataNode
<double>(ReadContentAsDouble());
310
return new
DataNode
<decimal>(ReadContentAsDecimal());
312
return new
DataNode
<DateTime>(ReadContentAsDateTime());
314
return new
DataNode
<string>(ReadContentAsString());
316
return new
DataNode
<sbyte>(ReadContentAsSignedByte());
318
return new
DataNode
<ushort>(ReadContentAsUnsignedShort());
320
return new
DataNode
<uint>(ReadContentAsUnsignedInt());
322
return new
DataNode
<ulong>(ReadContentAsUnsignedLong());
328
return new
DataNode
<byte[]>(ReadContentAsBase64());
330
return new
DataNode
<object>(new object());
332
return new
DataNode
<TimeSpan>(ReadContentAsTimeSpan());
334
return new
DataNode
<Guid>(ReadContentAsGuid());
336
return new
DataNode
<Uri>(ReadContentAsUri());
338
return new
DataNode
<XmlQualifiedName>(ReadContentAsQName());
39 references to DataNode
System.Runtime.Serialization (39)
System\Runtime\Serialization\ExtensionDataReader.cs (19)
666
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<bool>)dataNode).GetValue() : (bool)dataNode.Value);
669
this.value = XmlConvert.ToString((int)(isTypedNode ? ((
DataNode
<char>)dataNode).GetValue() : (char)dataNode.Value));
672
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<byte>)dataNode).GetValue() : (byte)dataNode.Value);
675
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<short>)dataNode).GetValue() : (short)dataNode.Value);
678
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<int>)dataNode).GetValue() : (int)dataNode.Value);
681
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<long>)dataNode).GetValue() : (long)dataNode.Value);
684
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<float>)dataNode).GetValue() : (float)dataNode.Value);
687
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<double>)dataNode).GetValue() : (double)dataNode.Value);
690
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<decimal>)dataNode).GetValue() : (decimal)dataNode.Value);
693
DateTime dateTime = isTypedNode ? ((
DataNode
<DateTime>)dataNode).GetValue() : (DateTime)dataNode.Value;
697
this.value = isTypedNode ? ((
DataNode
<string>)dataNode).GetValue() : (string)dataNode.Value;
700
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<sbyte>)dataNode).GetValue() : (sbyte)dataNode.Value);
703
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<ushort>)dataNode).GetValue() : (ushort)dataNode.Value);
706
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<uint>)dataNode).GetValue() : (uint)dataNode.Value);
709
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<ulong>)dataNode).GetValue() : (ulong)dataNode.Value);
715
byte[] bytes = isTypedNode ? ((
DataNode
<byte[]>)dataNode).GetValue() : (byte[])dataNode.Value;
719
this.value = XmlConvert.ToString(isTypedNode ? ((
DataNode
<TimeSpan>)dataNode).GetValue() : (TimeSpan)dataNode.Value);
722
Guid guid = isTypedNode ? ((
DataNode
<Guid>)dataNode).GetValue() : (Guid)dataNode.Value;
727
Uri uri = isTypedNode ? ((
DataNode
<Uri>)dataNode).GetValue() : (Uri)dataNode.Value;
System\Runtime\Serialization\XmlWriterDelegator.cs (20)
372
WriteBoolean(((
DataNode
<bool>)dataNode).GetValue());
375
WriteChar(((
DataNode
<char>)dataNode).GetValue());
378
WriteUnsignedByte(((
DataNode
<byte>)dataNode).GetValue());
381
WriteShort(((
DataNode
<short>)dataNode).GetValue());
384
WriteInt(((
DataNode
<int>)dataNode).GetValue());
387
WriteLong(((
DataNode
<long>)dataNode).GetValue());
390
WriteFloat(((
DataNode
<float>)dataNode).GetValue());
393
WriteDouble(((
DataNode
<double>)dataNode).GetValue());
396
WriteDecimal(((
DataNode
<decimal>)dataNode).GetValue());
399
WriteDateTime(((
DataNode
<DateTime>)dataNode).GetValue());
402
WriteString(((
DataNode
<string>)dataNode).GetValue());
405
WriteSignedByte(((
DataNode
<sbyte>)dataNode).GetValue());
408
WriteUnsignedShort(((
DataNode
<ushort>)dataNode).GetValue());
411
WriteUnsignedInt(((
DataNode
<uint>)dataNode).GetValue());
414
WriteUnsignedLong(((
DataNode
<ulong>)dataNode).GetValue());
421
WriteBase64(((
DataNode
<byte[]>)dataNode).GetValue());
429
WriteTimeSpan(((
DataNode
<TimeSpan>)dataNode).GetValue());
431
WriteGuid(((
DataNode
<Guid>)dataNode).GetValue());
433
WriteUri(((
DataNode
<Uri>)dataNode).GetValue());
435
WriteQName(((
DataNode
<XmlQualifiedName>)dataNode).GetValue());