//
using System;
+using System.Xml.XPath;
namespace System.Xml
{
{
#region Constructors
- protected internal XmlComment (string comment, XmlDocument doc) : base(comment, doc) { }
+ protected internal XmlComment (string comment, XmlDocument doc)
+ : base (comment, doc)
+ {
+ }
#endregion
get { return XmlNodeType.Comment; }
}
+ internal override XPathNodeType XPathNodeType {
+ get {
+ return XPathNodeType.Comment;
+ }
+ }
+
#endregion
#region Methods
public override XmlNode CloneNode (bool deep)
{
- return new XmlComment(Value, OwnerDocument);
+ // discard deep because Comments have no children.
+ return new XmlComment(Value, OwnerDocument);
}
public override void WriteContentTo (XmlWriter w) { }