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

◆ TryToSByte()

static Exception System.Xml.XmlConvert.TryToSByte ( string s,
out sbyte result )
inlinestaticpackage

Definition at line 747 of file XmlConvert.cs.

748 {
749 if (!sbyte.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out result))
750 {
751 return new FormatException(System.SR.Format(System.SR.XmlConvert_BadFormat, s, "SByte"));
752 }
753 return null;
754 }
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_byte.TryParseValue().