Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ VerifyQName()

static string System.Xml.XmlConvert.VerifyQName ( string name,
ExceptionType exceptionType )
inlinestaticpackage

Definition at line 314 of file XmlConvert.cs.

315 {
316 if (string.IsNullOrEmpty(name))
317 {
318 throw new ArgumentNullException("name");
319 }
320 int colonOffset = -1;
321 int num = ValidateNames.ParseQName(name, 0, out colonOffset);
322 if (num != name.Length)
323 {
324 throw CreateException(System.SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, num), exceptionType, 0, num + 1);
325 }
326 return name;
327 }
static string Xml_BadNameChar
Definition SR.cs:44
Definition SR.cs:7
static Exception CreateException(string res, ExceptionType exceptionType, int lineNo, int linePos)

References System.Xml.XmlException.BuildCharExceptionArgs(), System.Xml.XmlConvert.CreateException(), System.Xml.Dictionary, System.Text.RegularExpressions.name, System.Xml.ValidateNames.ParseQName(), and System.SR.Xml_BadNameChar.

Referenced by System.Xml.XmlWellFormedWriter.WriteDocType(), System.Xml.XmlWellFormedWriter.WriteDocTypeAsync(), System.Xml.XmlCharCheckingWriter.WriteName(), System.Xml.XmlWriter.WriteName(), System.Xml.XmlCharCheckingWriter.WriteNameAsync(), and System.Xml.XmlWriter.WriteNameAsync().