using System.Collections.Generic; using System.Xml; namespace Compat.Runtime.Serialization { internal class XmlDataNode : DataNode { private IList _xmlAttributes; private IList _xmlChildNodes; private XmlDocument _ownerDocument; internal XmlDataNode() { dataType = Globals.TypeOfXmlDataNode; } internal IList XmlAttributes { get => _xmlAttributes; set => _xmlAttributes = value; } internal IList XmlChildNodes { get => _xmlChildNodes; set => _xmlChildNodes = value; } internal XmlDocument OwnerDocument { get => _ownerDocument; set => _ownerDocument = value; } public override void Clear() { base.Clear(); _xmlAttributes = null; _xmlChildNodes = null; _ownerDocument = null; } } }