Files
NetDataContractSerializer/Compat.Private.Serialization/Compat/Runtime/Serialization/XmlDataNode.cs
2019-08-29 23:24:07 +03:00

44 lines
1.0 KiB
C#

using System.Collections.Generic;
using System.Xml;
namespace Compat.Runtime.Serialization
{
internal class XmlDataNode : DataNode<object>
{
private IList<XmlAttribute> _xmlAttributes;
private IList<XmlNode> _xmlChildNodes;
private XmlDocument _ownerDocument;
internal XmlDataNode()
{
dataType = Globals.TypeOfXmlDataNode;
}
internal IList<XmlAttribute> XmlAttributes
{
get => _xmlAttributes;
set => _xmlAttributes = value;
}
internal IList<XmlNode> 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;
}
}
}