1 implementation of IDataNode
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ExtensionDataObject.cs (1)
71
internal class DataNode<T> :
IDataNode
49 references to IDataNode
System.Private.DataContractSerialization (49)
System\Runtime\Serialization\ExtensionDataObject.cs (7)
28
private
IDataNode
? _value;
41
public
IDataNode
? Value
105
bool
IDataNode
.IsFinalValue
256
private IList<
IDataNode
?>? _items;
266
internal IList<
IDataNode
?>? Items
352
private
IDataNode
? _value;
361
internal
IDataNode
? Value
System\Runtime\Serialization\ExtensionDataReader.cs (15)
46
private Queue<
IDataNode
>? _deserializedDataNodes;
72
IDataNode
? deserializedDataNode = (_deserializedDataNodes == null || _deserializedDataNodes.Count == 0) ? null : _deserializedDataNodes.Dequeue();
73
if (deserializedDataNode != null && !(obj is
IDataNode
))
80
internal
IDataNode
? GetCurrentNode()
82
IDataNode
? retVal = _element!.dataNode;
87
internal void SetDataNode(
IDataNode
dataNode, string? name, string? ns)
451
private void MoveNext(
IDataNode
? dataNode)
481
private void SetNextElement(
IDataNode
? node, string? name, string? ns, string? prefix)
503
private void AddDeserializedDataNode(
IDataNode
node)
507
_deserializedDataNodes ??= new Queue<
IDataNode
>();
512
private bool CheckIfNodeHandled(
IDataNode
node)
562
IDataNode
? item = dataNode.Items[_element.childElementIndex++];
629
private void MoveToDeserializedObject(
IDataNode
dataNode)
657
private bool MoveToText(Type type,
IDataNode
dataNode, bool isTypedNode)
832
public
IDataNode
? dataNode;
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (3)
95
protected override
IDataNode
ReadPrimitiveExtensionDataValue(XmlReaderDelegator xmlReader, string? dataContractName, string? dataContractNamespace)
97
IDataNode
dataNode;
119
private static
IDataNode
ReadNumericalPrimitiveExtensionDataValue(XmlReaderDelegator xmlReader)
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
292
internal override void WriteExtensionDataTypeInfo(XmlWriterDelegator xmlWriter,
IDataNode
dataNode)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (16)
387
if (retObj is
IDataNode
dataNode)
424
private object? DeserializeFromExtensionData(
IDataNode
dataNode, Type type, string? name, string? ns)
612
public
IDataNode
? ReadExtensionDataValue(XmlReaderDelegator xmlReader)
616
IDataNode
? dataNode = null;
621
dataNode = (o is
IDataNode
) ? (
IDataNode
)o : new DataNode<object>(o);
711
private
IDataNode
ReadExtensionDataValue(XmlReaderDelegator xmlReader, string? dataContractName, string? dataContractNamespace)
737
IDataNode
objNode = ReadUnknownPrimitiveData(xmlReader, Globals.TypeOfObject, dataContractName, dataContractNamespace);
747
protected virtual
IDataNode
ReadPrimitiveExtensionDataValue(XmlReaderDelegator xmlReader, string? dataContractName, string? dataContractNamespace)
753
IDataNode
stringNode = new DataNode<object>(xmlReader.ReadContentAsString());
760
IDataNode
objNode = ReadUnknownPrimitiveData(xmlReader, valueType, dataContractName, dataContractNamespace);
765
protected void InitializeExtensionDataNode(
IDataNode
dataNode, string? dataContractName, string? dataContractNamespace)
777
private
IDataNode
ReadUnknownPrimitiveData(XmlReaderDelegator xmlReader, Type type, string? dataContractName, string? dataContractNamespace)
779
IDataNode
dataNode = xmlReader.ReadExtensionData(type);
828
dataNode.Items ??= new List<
IDataNode
?>();
945
private
IDataNode
ReadAndResolveUnknownXmlData(XmlReaderDelegator xmlReader, IDictionary<string, string>? namespaces,
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (5)
682
IDataNode
? dataNode = member.Value;
689
internal virtual void WriteExtensionDataTypeInfo(XmlWriterDelegator xmlWriter,
IDataNode
dataNode)
699
internal void WriteExtensionDataValue(XmlWriterDelegator xmlWriter,
IDataNode
? dataNode)
742
internal bool TryWriteDeserializedExtensionData(XmlWriterDelegator xmlWriter,
IDataNode
dataNode)
782
IList<
IDataNode
?>? items = dataNode.Items;
System\Runtime\Serialization\XmlReaderDelegator.cs (1)
280
internal
IDataNode
ReadExtensionData(Type valueType)
System\Runtime\Serialization\XmlWriterDelegator.cs (1)
358
internal void WriteExtensionData(
IDataNode
dataNode)