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

◆ ReadContentAsUri()

Uri System.Runtime.Serialization.XmlReaderDelegator.ReadContentAsUri ( )
inlinepackageinherited

Definition at line 938 of file XmlReaderDelegator.cs.

939 {
940 string text = ReadContentAsString();
941 try
942 {
943 return new Uri(text, UriKind.RelativeOrAbsolute);
944 }
946 {
947 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Uri", exception));
948 }
949 catch (FormatException exception2)
950 {
951 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Uri", exception2));
952 }
953 }
static XmlException CreateConversionException(string type, Exception exception)
UriKind
Definition UriKind.cs:4

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

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