[netcore] Remove local copy of static alc resolve methods
[mono-project.git] / docs / HtmlAgilityPack / HtmlCommentNode.cs
blob1091dcb13c7e01f9c1874c97e7c1414352763075
1 // HtmlAgilityPack V1.0 - Simon Mourier <simon underscore mourier at hotmail dot com>
2 namespace HtmlAgilityPack
4 /// <summary>
5 /// Represents an HTML comment.
6 /// </summary>
7 public class HtmlCommentNode : HtmlNode
9 #region Fields
11 private string _comment;
13 #endregion
15 #region Constructors
17 internal HtmlCommentNode(HtmlDocument ownerdocument, int index)
19 base(HtmlNodeType.Comment, ownerdocument, index)
23 #endregion
25 #region Properties
27 /// <summary>
28 /// Gets or Sets the comment text of the node.
29 /// </summary>
30 public string Comment
32 get
34 if (_comment == null)
36 return base.InnerHtml;
38 return _comment;
40 set { _comment = value; }
43 /// <summary>
44 /// Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
45 /// </summary>
46 public override string InnerHtml
48 get
50 if (_comment == null)
52 return base.InnerHtml;
54 return _comment;
56 set { _comment = value; }
59 /// <summary>
60 /// Gets or Sets the object and its content in HTML.
61 /// </summary>
62 public override string OuterHtml
64 get
66 if (_comment == null)
68 return base.OuterHtml;
70 return "<!--" + _comment + "-->";
74 #endregion