Files
mono/mcs/class/System.XML/System.Xml/XmlComment.cs
T
Duncan Mak 38ef701a8f 2002-03-19 Duncan Mak <[email protected]>
* XmlAttribute.cs (CloneNode): First crack at the CloneNode method.

	* XmlCDataSection.cs (CloneNode): Implemented.

	* XmlDocumentFragment.cs: Reformatted and added the missing properties
	(InnerXml, OwnerDocument, ParentNode).  (CloneNode): Implemented.

	* XmlSignificantWhitespace.cs (CloneNode): Implemented.
	(Value) Implemented the 'get' property.

	* XmlWhitespace.cs (Module): implemented.

svn path=/trunk/mcs/; revision=3229
2002-03-19 22:20:31 +00:00

59 lines
932 B
C#

//
// System.Xml.XmlComment
//
// Author:
// Kral Ferch <[email protected]>
//
// (C) 2002 Kral Ferch
//
using System;
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; }
}
#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
}
}