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

◆ TryVerifyName()

static Exception System.Xml.XmlConvert.TryVerifyName ( string name)
inlinestaticpackage

Definition at line 300 of file XmlConvert.cs.

301 {
302 if (string.IsNullOrEmpty(name))
303 {
304 return new XmlException(System.SR.Xml_EmptyName, string.Empty);
305 }
306 int num = ValidateNames.ParseNameNoNamespaces(name, 0);
307 if (num != name.Length)
308 {
309 return new XmlException((num == 0) ? System.SR.Xml_BadStartNameChar : System.SR.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(name, num));
310 }
311 return null;
312 }
static string Xml_EmptyName
Definition SR.cs:292
static string Xml_BadStartNameChar
Definition SR.cs:42
Definition SR.cs:7

References System.Xml.XmlException.BuildCharExceptionArgs(), System.Text.RegularExpressions.name, System.Xml.ValidateNames.ParseNameNoNamespaces(), System.SR.Xml_BadNameChar, System.SR.Xml_BadStartNameChar, System.SR.Xml_EmptyName, and System.Xml.XmlException.

Referenced by System.Xml.Schema.StringFacetsChecker.CheckBuiltInFacets().