/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; hashCode = hashCode * 59 + HorizontalPosition.GetHashCode(); hashCode = hashCode * 59 + VerticalPosition.GetHashCode(); hashCode = hashCode * 59 + Size.GetHashCode(); hashCode = hashCode * 59 + IndentFromEdges.GetHashCode(); hashCode = hashCode * 59 + AbsolutePositionLeft.GetHashCode(); hashCode = hashCode * 59 + AbsolutePositionTop.GetHashCode(); hashCode = hashCode * 59 + AbsoluteWidth.GetHashCode(); hashCode = hashCode * 59 + AbsoluteHeight.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { return(HorizontalPosition.GetHashCode() + VerticalPosition.GetHashCode()); }