public void ReadXml(XmlReader reader) { reader.MoveToFirstAttribute(); this.Url = new Uri(reader.Value, UriKind.Absolute); reader.MoveToNextAttribute(); this.UrlType = (Robot.LinkType)Enum.Parse(typeof(Robot.LinkType), reader.Value); //reader.MoveToElement(); reader.Read(); }
public TypedUrl(Uri foundUri, Robot.LinkType type) { this.Url = foundUri; this.UrlType = type; }