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

◆ ReadElementContentAsGuid()

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

Definition at line 871 of file XmlReaderDelegator.cs.

872 {
874 {
876 }
878 try
879 {
880 return new Guid(text);
881 }
883 {
884 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Guid", exception));
885 }
886 catch (FormatException exception2)
887 {
888 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Guid", exception2));
889 }
890 catch (OverflowException exception3)
891 {
892 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Guid", exception3));
893 }
894 }
static XmlException CreateConversionException(string type, Exception exception)
virtual string ReadElementContentAsString()
Definition XmlReader.cs:456

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

Referenced by System.Runtime.Serialization.GuidDataContract.ReadXmlValue().