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

◆ TryToInteger()

static Exception System.Xml.XmlConvert.TryToInteger ( string s,
out decimal result )
inlinestaticpackage

Definition at line 732 of file XmlConvert.cs.

733 {
734 if (!decimal.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out result))
735 {
736 return new FormatException(System.SR.Format(System.SR.XmlConvert_BadFormat, s, "Integer"));
737 }
738 return null;
739 }
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_integer.TryParseValue().