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

◆ TryToUInt16()

static Exception System.Xml.XmlConvert.TryToUInt16 ( string s,
out ushort result )
inlinestaticpackage

Definition at line 818 of file XmlConvert.cs.

819 {
820 if (!ushort.TryParse(s, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result))
821 {
822 return new FormatException(System.SR.Format(System.SR.XmlConvert_BadFormat, s, "UInt16"));
823 }
824 return null;
825 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlConvert_BadFormat
Definition SR.cs:370
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Format(), System.Globalization.NumberFormatInfo.InvariantInfo, System.s, and System.SR.XmlConvert_BadFormat.

Referenced by System.Xml.Schema.Datatype_unsignedShort.TryParseValue().