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

◆ ReadElementContentAsUri()

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

Definition at line 917 of file XmlReaderDelegator.cs.

918 {
920 {
922 }
924 try
925 {
926 return new Uri(text, UriKind.RelativeOrAbsolute);
927 }
929 {
930 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Uri", exception));
931 }
932 catch (FormatException exception2)
933 {
934 throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(text, "Uri", exception2));
935 }
936 }
static XmlException CreateConversionException(string type, Exception exception)
UriKind
Definition UriKind.cs:4

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

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