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