Example #1
0
        public static Uri ParseUri(this XText e)
        {
            var uri = e.ParseString();

            try
            {
                if (String.IsNullOrEmpty(uri))
                {
                    return(null);
                }
                return(new Uri(uri));
            }
            catch (UriFormatException)
            {
                return(null);
            }
        }