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

◆ ParseMaxOccurs()

static uint System.Xml.Schema.XdrBuilder.ParseMaxOccurs ( object obj,
XdrBuilder builder )
inlinestaticprivate

Definition at line 1357 of file XdrBuilder.cs.

1358 {
1359 uint n = uint.MaxValue;
1360 string text = (string)obj;
1361 if (!text.Equals("*") && (!ParseInteger(text, ref n) || (n != uint.MaxValue && n != 1)))
1362 {
1363 builder.SendValidationEvent(System.SR.Sch_MaxOccursInvalid);
1364 }
1365 return n;
1366 }
static string Sch_MaxOccursInvalid
Definition SR.cs:466
Definition SR.cs:7
static bool ParseInteger(string str, ref uint n)

References System.Xml.Dictionary, System.obj, System.Xml.Schema.XdrBuilder.ParseInteger(), System.SR.Sch_MaxOccursInvalid, and System.text.

Referenced by System.Xml.Schema.XdrBuilder.XDR_BuildElement_MaxOccurs(), and System.Xml.Schema.XdrBuilder.XDR_BuildGroup_MaxOccurs().