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

◆ TryToInt16()

static Exception System.Xml.XmlConvert.TryToInt16 ( string s,
out short result )
inlinestaticpackage

Definition at line 761 of file XmlConvert.cs.

762 {
763 if (!short.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out result))
764 {
765 return new FormatException(System.SR.Format(System.SR.XmlConvert_BadFormat, s, "Int16"));
766 }
767 return null;
768 }
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_short.TryParseValue().