Ejemplo n.º 1
0
 public override string ToString()
 {
     if (CssSelector.HasValue())
     {
         return(CssSelector);
     }
     else
     {
         return((!Content.IsNullOrEmpty() ? Content : "")
                + "<" + TagName
                + (!Id.IsNullOrEmpty() ? "#" + Id : "")
                + (!Class.IsNullOrEmpty() ? "." + Class : "")
                + (!Name.IsNullOrEmpty() ? "[Name=" + Name + "]" : "")
                + (!Type.IsNullOrEmpty() ? "[Type=" + Type + "]" : "")
                + ">");
     }
 }