System.Xml.Xsl.Runtime.XmlQueryOutput.WriteCommentString C# (CSharp) Method

WriteCommentString() public method

Cache the comment's text.
public WriteCommentString ( string text ) : void
text string
return void
        public void WriteCommentString(string text) {
            Debug.Assert(this.xstate == XmlState.WithinComment, "WriteCommentString cannot be called in the " + this.xstate + " state.");

            if (this.commentText.Length == 0)
                this.commentText = text;
            else
                this.commentText += text;
        }