Example #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (image != null ? image.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (colorFilter != null ? colorFilter.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ fit.GetHashCode();
         hashCode = (hashCode * 397) ^ (alignment != null ? alignment.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (centerSlice != null ? centerSlice.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)repeat;
         return(hashCode);
     }
 }