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