static private VerifyCharData ( char data, int offset, int len, ExceptionType exceptionType ) : void | ||
data | char | |
offset | int | |
len | int | |
exceptionType | ExceptionType | |
리턴 | void |
public override void WriteString(string?text) { VerifyState(Method.WriteString); XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); XmlNode node = _document.CreateTextNode(text); AddChild(node, _write); }
public override void WriteProcessingInstruction(string name, string?text) { VerifyState(Method.WriteProcessingInstruction); XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); XmlNode node = _document.CreateProcessingInstruction(name, text !); AddChild(node, _write); }
public override void WriteComment(string text) { VerifyState(Method.WriteComment); XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); XmlNode node = document.CreateComment(text); AddChild(node, write); }
public override void WriteCData(string text) { this.VerifyState(Method.WriteCData); XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); XmlNode node = this.document.CreateCDataSection(text); this.AddChild(node, this.write); }
public override void WriteWhitespace(string?text) { VerifyState(Method.WriteWhitespace); XmlConvert.VerifyCharData(text, ExceptionType.ArgumentException); if (_document.PreserveWhitespace) { XmlNode node = _document.CreateWhitespace(text); AddChild(node, _write); } }
private void CheckCharacters(string value) { XmlConvert.VerifyCharData(value, ExceptionType.ArgumentException, ExceptionType.XmlException); }
private void CheckCharacters(char[] data, int offset, int len) { XmlConvert.VerifyCharData(data, offset, len, ExceptionType.ArgumentException); }
// // Private methods // private void CheckCharacters(string str) { XmlConvert.VerifyCharData(str, ExceptionType.ArgumentException); }