Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public TypedUrl(Uri foundUri, Robot.LinkType type)
 {
     this.Url     = foundUri;
     this.UrlType = type;
 }