System.Xml.XmlUTF8NodeWriter.WriteComment C# (CSharp) Method

WriteComment() public method

public WriteComment ( string text ) : void
text string
return void
        public override void WriteComment(string text)
        {
            WriteStartComment();
            WriteUTF8Chars(text);
            WriteEndComment();
        }

Usage Example

Esempio n. 1
0
        public void WriteComment(string value)
        {
            ArgumentNullException.ThrowIfNull(value);

            ThrowIfClosed();
            if (_includeComments)
            {
                _writer.WriteComment(value);
            }
        }
All Usage Examples Of System.Xml.XmlUTF8NodeWriter::WriteComment