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

◆ ToDecimal() [2/2]

static decimal System.Xml.XmlConverter.ToDecimal ( string value)
inlinestatic

Definition at line 216 of file XmlConverter.cs.

217 {
218 try
219 {
220 return XmlConvert.ToDecimal(value);
221 }
223 {
224 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "decimal", exception));
225 }
226 catch (FormatException exception2)
227 {
228 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "decimal", exception2));
229 }
230 catch (OverflowException exception3)
231 {
232 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "decimal", exception3));
233 }
234 }

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.Xml.Dictionary, System.exception, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(), System.Xml.XmlConvert.ToDecimal(), and System.value.

Referenced by System.Xml.XmlBaseReader.ReadContentAsDecimal(), System.Xml.XmlDictionaryReader.ReadContentAsDecimal(), System.Xml.XmlDictionaryReader.ReadElementContentAsDecimal(), System.Xml.ValueHandle.ToDecimal(), and System.Xml.XmlConverter.ToDecimal().