mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs, XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs, XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs, XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs: Reverted the recent accessibility mistake (5/16). * XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic from XmlNode to XmlDocument. svn path=/trunk/mcs/; revision=14836
66 lines
1.0 KiB
C#
66 lines
1.0 KiB
C#
//
|
|
// System.Xml.XmlComment
|
|
//
|
|
// Author:
|
|
// Kral Ferch <[email protected]>
|
|
//
|
|
// (C) 2002 Kral Ferch
|
|
//
|
|
|
|
using System;
|
|
using System.Xml.XPath;
|
|
|
|
namespace System.Xml
|
|
{
|
|
public class XmlComment : XmlCharacterData
|
|
{
|
|
#region Constructors
|
|
|
|
protected internal XmlComment (string comment, XmlDocument doc)
|
|
: base (comment, doc)
|
|
{
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public override string LocalName {
|
|
get { return "#comment"; }
|
|
}
|
|
|
|
public override string Name {
|
|
get { return "#comment"; }
|
|
}
|
|
|
|
public override XmlNodeType NodeType {
|
|
get { return XmlNodeType.Comment; }
|
|
}
|
|
|
|
internal override XPathNodeType XPathNodeType {
|
|
get {
|
|
return XPathNodeType.Comment;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
public override XmlNode CloneNode (bool deep)
|
|
{
|
|
// discard deep because Comments have no children.
|
|
return new XmlComment(Value, OwnerDocument);
|
|
}
|
|
|
|
public override void WriteContentTo (XmlWriter w) { }
|
|
|
|
public override void WriteTo (XmlWriter w)
|
|
{
|
|
w.WriteComment (Data);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|