Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (color != null ? color.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (image != null ? image.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (gradient != null ? gradient.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (shadows != null ? shadows.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (shape != null ? shape.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (color != null ? color.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (image != null ? image.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (border != null ? border.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (borderRadius != null ? borderRadius.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (boxShadow != null ? boxShadow.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (gradient != null ? gradient.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ backgroundBlendMode.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)shape;
         return(hashCode);
     }
 }