public override int GetHashCode() { unchecked { int hashCode = (int)Side; hashCode = (hashCode * 397) ^ Color.GetHashCode(); hashCode = (hashCode * 397) ^ Size.GetHashCode(); hashCode = (hashCode * 397) ^ (int)Style; hashCode = (hashCode * 397) ^ ShadowSize.GetHashCode(); hashCode = (hashCode * 397) ^ Topmost.GetHashCode(); hashCode = (hashCode * 397) ^ DropShadow.GetHashCode(); return(hashCode); } }
protected bool Equals(bitsBorder other) { return(Side == other.Side && Color.Equals(other.Color) && Size.Equals(other.Size) && Style == other.Style && ShadowSize.Equals(other.ShadowSize) && Topmost == other.Topmost && DropShadow == other.DropShadow); }