Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (color != null ? color.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (shape != null ? shape.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ elevation.GetHashCode();
         hashCode = (hashCode * 397) ^ (textStyle != null ? textStyle.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            var hashCode = clipBehavior?.GetHashCode() ?? 0;

            hashCode = (hashCode * 397) ^ color?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ shadowColor?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ elevation?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ margin?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ shape?.GetHashCode() ?? 0;
            return(hashCode);
        }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (backgroundColor != null ? backgroundColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ elevation.GetHashCode();
         hashCode = (hashCode * 397) ^ (modalBackgroundColor != null ? modalBackgroundColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ modalElevation.GetHashCode();
         hashCode = (hashCode * 397) ^ (shape != null ? shape.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ clipBehavior.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 4
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (backgroundColor != null ? backgroundColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (actionTextColor != null ? actionTextColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^
                    (disabledActionTextColor != null ? disabledActionTextColor.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (contentTextStyle != null ? contentTextStyle.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ elevation?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (shape != null ? shape.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ behavior?.GetHashCode() ?? 0;
         return(hashCode);
     }
 }
Esempio n. 5
0
        public override int GetHashCode()
        {
            var hashCode = (foregroundColor != null ? foregroundColor.GetHashCode() : 0);

            hashCode = (hashCode * 397) ^ (backgroundColor != null ? backgroundColor.GetHashCode() : 0);
            hashCode = (hashCode * 397) ^ (focusColor != null ? focusColor.GetHashCode() : 0);
            hashCode = (hashCode * 397) ^ (hoverColor != null ? hoverColor.GetHashCode() : 0);
            hashCode = (hashCode * 397) ^ (splashColor != null ? splashColor.GetHashCode() : 0);
            hashCode = (hashCode * 397) ^ elevation.GetHashCode();
            hashCode = (hashCode * 397) ^ focusElevation.GetHashCode();
            hashCode = (hashCode * 397) ^ hoverElevation.GetHashCode();
            hashCode = (hashCode * 397) ^ disabledElevation.GetHashCode();
            hashCode = (hashCode * 397) ^ highlightElevation.GetHashCode();
            hashCode = (hashCode * 397) ^ (shape != null ? shape.GetHashCode() : 0);
            return(hashCode);
        }
Esempio n. 6
0
        public override int GetHashCode()
        {
            var hashCode = backgroundColor.GetHashCode();

            hashCode = (hashCode * 397) ^ deleteIconColor.GetHashCode();
            hashCode = (hashCode * 397) ^ disabledColor.GetHashCode();
            hashCode = (hashCode * 397) ^ selectedColor.GetHashCode();
            hashCode = (hashCode * 397) ^ secondarySelectedColor.GetHashCode();
            hashCode = (hashCode * 397) ^ shadowColor?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ selectedShadowColor?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ checkmarkColor?.GetHashCode() ?? 0;
            hashCode = (hashCode * 397) ^ labelPadding.GetHashCode();
            hashCode = (hashCode * 397) ^ padding.GetHashCode();
            hashCode = (hashCode * 397) ^ shape.GetHashCode();
            hashCode = (hashCode * 397) ^ labelStyle.GetHashCode();
            hashCode = (hashCode * 397) ^ secondaryLabelStyle.GetHashCode();
            hashCode = (hashCode * 397) ^ brightness.GetHashCode();
            hashCode = (hashCode * 397) ^ elevation.GetHashCode();
            hashCode = (hashCode * 397) ^ pressElevation.GetHashCode();
            return(hashCode);
        }
Esempio n. 7
0
 public override int GetHashCode()
 {
     return(shape != null ? shape.GetHashCode() : 0);
 }
 public override int GetHashCode()
 {
     return((shape.GetHashCode() * 397) ^ side.GetHashCode());
 }