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

◆ ReadContentAsGuid()

Guid System.Runtime.Serialization.XmlReaderDelegator.ReadContentAsGuid ( )
inlinepackageinherited

Definition at line 896 of file XmlReaderDelegator.cs.

897 {
899 try
900 {
901 return Guid.Parse(text);
902 }
904 {
905 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Guid", exception));
906 }
907 catch (FormatException exception2)
908 {
909 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Guid", exception2));
910 }
911 catch (OverflowException exception3)
912 {
913 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Guid", exception3));
914 }
915 }
static XmlException CreateConversionException(string type, Exception exception)
virtual string ReadContentAsString()
Definition XmlReader.cs:286

References System.Xml.XmlExceptionHelper.CreateConversionException(), System.exception, System.Guid.Parse(), System.Xml.XmlReader.ReadContentAsString(), System.Runtime.Serialization.XmlReaderDelegator.reader, System.text, and System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError().

Referenced by System.Runtime.Serialization.XmlReaderDelegator.ReadContentAsAnyType(), and System.Runtime.Serialization.XmlReaderDelegator.ReadExtensionData().