WriteComment() public method

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

            ThrowIfClosed();
            if (_includeComments)
            {
                _writer.WriteComment(value);
            }
        }
Esempio n. 2
0
 public void WriteComment(string value)
 {
     if (value == null)
     {
         throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(value));
     }
     ThrowIfClosed();
     if (_includeComments)
     {
         _writer.WriteComment(value);
     }
 }