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

◆ XDR_BuildElementType_DtType()

static void System.Xml.Schema.XdrBuilder.XDR_BuildElementType_DtType ( XdrBuilder builder,
object obj,
string prefix )
inlinestaticprivate

Definition at line 654 of file XdrBuilder.cs.

655 {
657 string text = ((string)obj).Trim();
658 if (text.Length == 0)
659 {
660 builder.SendValidationEvent(System.SR.Sch_MissDtvalue);
661 return;
662 }
663 XmlSchemaDatatype xmlSchemaDatatype = XmlSchemaDatatype.FromXdrName(text);
664 if (xmlSchemaDatatype == null)
665 {
666 builder.SendValidationEvent(System.SR.Sch_UnknownDtType, text);
667 }
669 }
static string Sch_UnknownDtType
Definition SR.cs:442
static string Sch_MissDtvalue
Definition SR.cs:448
Definition SR.cs:7

References System.Xml.Dictionary, System.Xml.Schema.XmlSchemaDatatype.FromXdrName(), System.obj, System.SR.Sch_MissDtvalue, System.SR.Sch_UnknownDtType, and System.text.