System.Runtime.Serialization.XmlReaderDelegator.XmlReaderDelegator.ReadContentAsUri C# (CSharp) Method

ReadContentAsUri() private method

private ReadContentAsUri ( ) : Uri
return Uri
        internal Uri ReadContentAsUri()
        {
            string str = ReadContentAsString();
            try
            {
                return new Uri(str, UriKind.RelativeOrAbsolute);
            }
            catch (ArgumentException exception)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(str, "Uri", exception));
            }
            catch (FormatException exception)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(str, "Uri", exception));
            }
        }
XmlReaderDelegator.XmlReaderDelegator