/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Color != null) { hashCode = hashCode * 59 + Color.GetHashCode(); } if (Opacity != null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (Blend != null) { hashCode = hashCode * 59 + Blend.GetHashCode(); } if (SizeMin != null) { hashCode = hashCode * 59 + SizeMin.GetHashCode(); } if (SizeMax != null) { hashCode = hashCode * 59 + SizeMax.GetHashCode(); } if (Border != null) { hashCode = hashCode * 59 + Border.GetHashCode(); } return(hashCode); } }
/// <inheritdoc/> public override int GetHashCode() { return(Color.GetHashCode() ^ (Blend.GetHashCode() + 1) ^ ((Hatch.GetHashCode() + 1) << 2)); }