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

◆ VerifyNCName() [2/2]

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

Definition at line 334 of file XmlConvert.cs.

335 {
336 if (name == null)
337 {
338 throw new ArgumentNullException("name");
339 }
340 if (name.Length == 0)
341 {
342 throw new ArgumentNullException("name", System.SR.Xml_EmptyLocalName);
343 }
344 int num = ValidateNames.ParseNCName(name, 0);
345 if (num != name.Length)
346 {
348 }
349 return name;
350 }
static string Xml_EmptyLocalName
Definition SR.cs:294
Definition SR.cs:7
static Exception CreateInvalidNameCharException(string name, int index, ExceptionType exceptionType)

References System.Xml.XmlConvert.CreateInvalidNameCharException(), System.Xml.Dictionary, System.Text.RegularExpressions.name, System.Xml.ValidateNames.ParseNCName(), and System.SR.Xml_EmptyLocalName.