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