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

◆ DecimalToInt64()

static long System.Xml.Schema.XmlBaseConverter.DecimalToInt64 ( decimal value)
inlinestaticprotectedinherited

Definition at line 759 of file XmlBaseConverter.cs.

760 {
761 if (value < -9223372036854775808m || value > 9223372036854775807m)
762 {
764 object[] args = new string[2]
765 {
766 XmlConvert.ToString(value),
767 "Int64"
768 };
769 throw new OverflowException(System.SR.Format(xmlConvert_Overflow, args));
770 }
771 return (long)value;
772 }
static string XmlConvert_Overflow
Definition SR.cs:372
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Format(), System.Xml.XmlConvert.ToString(), System.value, and System.SR.XmlConvert_Overflow.

Referenced by System.Xml.Schema.XmlNumeric10Converter.ChangeType(), System.Xml.Schema.XmlNumeric10Converter.ToInt64(), and System.Xml.Schema.XmlNumeric10Converter.ToInt64().