System.Xml.XmlCharCheckingWriter.WriteComment C# (CSharp) Méthode

WriteComment() public méthode

public WriteComment ( string text ) : void
text string
Résultat void
        public override void WriteComment( string text ) {
            if ( text != null ) {
                if ( checkValues ) {
                    CheckCharacters( text );
                    text = InterleaveInvalidChars( text, '-', '-' );
                }
                if ( replaceNewLines ) {
                    text = ReplaceNewLines( text );
                }
            }
            writer.WriteComment( text );
        }