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

◆ TryToByte()

static Exception System.Xml.XmlConvert.TryToByte ( string s,
out byte result )
inlinestaticpackage

Definition at line 803 of file XmlConvert.cs.

804 {
805 if (!byte.TryParse(s, NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result))
806 {
807 return new FormatException(System.SR.Format(System.SR.XmlConvert_BadFormat, s, "Byte"));
808 }
809 return null;
810 }
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_unsignedByte.TryParseValue().