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

◆ Int32ToUInt16()

static ushort System.Xml.Schema.XmlBaseConverter.Int32ToUInt16 ( int value)
inlinestaticprotectedinherited

Definition at line 834 of file XmlBaseConverter.cs.

835 {
836 if (value < 0 || value > 65535)
837 {
839 object[] args = new string[2]
840 {
841 XmlConvert.ToString(value),
842 "UInt16"
843 };
844 throw new OverflowException(System.SR.Format(xmlConvert_Overflow, args));
845 }
846 return (ushort)value;
847 }
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.XmlUntypedConverter.ChangeType(), System.Xml.Schema.XmlUntypedConverter.ChangeType(), and System.Xml.Schema.XmlNumeric10Converter.ChangeTypeWildcardSource().