Ejemplo n.º 1
0
 public override string ToString()
 {
     return(String.Format("HoverControlBean({0}, UnhoverElement: {1}, HoverWithJavascript: {2}, " +
                          "UnhoverWithJavascript: {3}, ClickInsteadOfHover: {4}, ClickWithJavascriptInsteadOfHover: {5}, " +
                          "UnhoverWithClickInstead: {6}, UnhoverWithJavascriptClickInstead: {7})",
                          base.ToString(),
                          UnhoverElement != null ? UnhoverElement.ToString() : "null",
                          HoverWithJavascript.ToString(),
                          UnhoverWithJavascript.ToString(),
                          ClickInsteadOfHover.ToString(),
                          ClickWithJavascriptInsteadOfHover.ToString(),
                          UnhoverWithClickInstead.ToString(),
                          UnhoverWithJavascriptClickInstead.ToString()));
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked {             // Overflow is fine, just wrap
                int hashCode = base.GetHashCode();

                int unhoverElementHashCode =
                    UnhoverElement != null?
                    UnhoverElement.GetHashCode() : 0;

                hashCode = (hashCode * 397)
                           ^ unhoverElementHashCode
                           ^ HoverWithJavascript.GetHashCode()
                           ^ UnhoverWithJavascript.GetHashCode()
                           ^ ClickInsteadOfHover.GetHashCode()
                           ^ ClickWithJavascriptInsteadOfHover.GetHashCode()
                           ^ UnhoverWithClickInstead.GetHashCode()
                           ^ UnhoverWithJavascriptClickInstead.GetHashCode();
                return(hashCode);
            }
        }