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

◆ ReadContentAsDecimal()

override decimal System.Xml.XmlDictionaryReader.XmlWrappedReader.ReadContentAsDecimal ( )
inlinevirtual

Reimplemented from System.Xml.XmlDictionaryReader.

Definition at line 245 of file XmlDictionaryReader.cs.

246 {
247 try
248 {
249 return (decimal)_reader.ReadContentAs(typeof(decimal), null);
250 }
252 {
253 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException("Decimal", exception));
254 }
255 catch (FormatException exception2)
256 {
257 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException("Decimal", exception2));
258 }
259 catch (OverflowException exception3)
260 {
261 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException("Decimal", exception3));
262 }
263 }
virtual object ReadContentAs(Type returnType, IXmlNamespaceResolver? namespaceResolver)
Definition XmlReader.cs:295

References System.Xml.XmlDictionaryReader.XmlWrappedReader._reader, System.Xml.XmlExceptionHelper.CreateConversionException(), System.Xml.Dictionary, System.exception, System.Xml.XmlReader.ReadContentAs(), and System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError().