Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = borderSide.GetHashCode();

            hashCode = (hashCode * 397) ^ borderRadius.GetHashCode();
            hashCode = (hashCode * 397) ^ gapPadding.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (textStyle != null ? textStyle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (constraints != null ? constraints.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (color != null ? color.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (selectedColor != null ? selectedColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (disabledColor != null ? disabledColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (fillColor != null ? fillColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (focusColor != null ? focusColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (highlightColor != null ? highlightColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (hoverColor != null ? hoverColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (splashColor != null ? splashColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (borderColor != null ? borderColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (selectedBorderColor != null ? selectedBorderColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (disabledBorderColor != null ? disabledBorderColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (borderRadius != null ? borderRadius.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (borderWidth != null ? borderWidth.GetHashCode() : 0);
         return(hashCode);
     }
 }