public virtual Task WriteNmTokenAsync(string name) { if (name == null || name.Length == 0) { throw new ArgumentException(SR.Xml_EmptyName); } return(WriteStringAsync(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException))); }
// Scalar Value Methods // Writes out the specified name, ensuring it is a valid NmToken according to the XML specification // (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). public virtual void WriteNmToken(string name) { if (string.IsNullOrEmpty(name)) { throw new ArgumentException(SR.Xml_EmptyName); } WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); }
// Scalar Value Methods // Writes out the specified name, ensuring it is a valid NmToken according to the XML specification // (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). public virtual Task WriteNmTokenAsync(string name) { if (string.IsNullOrEmpty(name)) { throw new ArgumentException(SR.Xml_EmptyName); } return(WriteStringAsync(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException))); }
// Scalar Value Methods // Writes out the specified name, ensuring it is a valid NmToken according to the XML specification // (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). public virtual void WriteNmToken(string name) { if (name == null || name.Length == 0) { throw new ArgumentException(SR.Xml_EmptyName); } WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); }
public virtual void WriteNmToken(string name) { if ((name == null) || (name.Length == 0)) { throw new ArgumentException(Res.GetString("Xml_EmptyName")); } this.WriteString(XmlConvert.VerifyNMTOKEN(name, ExceptionType.ArgumentException)); }
public override Task WriteNmTokenAsync(string name) { if (_checkNames) { if (name == null || name.Length == 0) { throw new ArgumentException(SR.Xml_EmptyName); } XmlConvert.VerifyNMTOKEN(name); } return(writer.WriteNmTokenAsync(name)); }
public override void WriteNmToken(string name) { if (_checkNames) { if (name == null || name.Length == 0) { throw new ArgumentException(SR.Xml_EmptyName); } XmlConvert.VerifyNMTOKEN(name); } writer.WriteNmToken(name); }
public override void WriteNmToken(string name) { if (this.checkNames) { if ((name == null) || (name.Length == 0)) { throw new ArgumentException(Res.GetString("Xml_EmptyName")); } XmlConvert.VerifyNMTOKEN(name); } base.writer.WriteNmToken(name); }