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

◆ ParseDtMaxLength()

static void System.Xml.Schema.XdrBuilder.ParseDtMaxLength ( ref uint cVal,
object obj,
XdrBuilder builder )
inlinestaticprivate

Definition at line 1391 of file XdrBuilder.cs.

1392 {
1393 if (-1 != (int)cVal)
1394 {
1395 builder.SendValidationEvent(System.SR.Sch_DupDtMaxLength);
1396 }
1397 if (!ParseInteger((string)obj, ref cVal) || cVal < 0)
1398 {
1399 builder.SendValidationEvent(System.SR.Sch_DtMaxLengthInvalid, obj.ToString());
1400 }
1401 }
static string Sch_DtMaxLengthInvalid
Definition SR.cs:470
static string Sch_DupDtMaxLength
Definition SR.cs:474
Definition SR.cs:7
static bool ParseInteger(string str, ref uint n)

References System.obj, System.Xml.Schema.XdrBuilder.ParseInteger(), System.SR.Sch_DtMaxLengthInvalid, and System.SR.Sch_DupDtMaxLength.

Referenced by System.Xml.Schema.XdrBuilder.XDR_BuildAttributeType_DtMaxLength(), and System.Xml.Schema.XdrBuilder.XDR_BuildElementType_DtMaxLength().