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

◆ ToTimeSpan() [2/2]

static TimeSpan System.Xml.XmlConverter.ToTimeSpan ( string value)
inlinestatic

Definition at line 299 of file XmlConverter.cs.

300 {
301 try
302 {
303 return XmlConvert.ToTimeSpan(value);
304 }
306 {
307 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "TimeSpan", exception));
308 }
309 catch (FormatException exception2)
310 {
311 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "TimeSpan", exception2));
312 }
313 catch (OverflowException exception3)
314 {
315 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "TimeSpan", exception3));
316 }
317 }

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

Referenced by System.Runtime.Serialization.XmlReaderDelegator.ReadContentAsTimeSpan(), System.Xml.XmlBaseReader.ReadContentAsTimeSpan(), System.Xml.XmlDictionaryReader.ReadContentAsTimeSpan(), System.Runtime.Serialization.XmlReaderDelegator.ReadElementContentAsTimeSpan(), System.Xml.XmlDictionaryReader.ReadElementContentAsTimeSpan(), System.Xml.ValueHandle.ToTimeSpan(), and System.Xml.XmlConverter.ToTimeSpan().