public override int GetHashCode() { unchecked { return((LeftBorder.GetHashCode() * 397) ^ RightBorder.GetHashCode()); } }
public override int GetHashCode() { var hashCode = -198124310; hashCode = hashCode * -1521134295 + LeftBorder.GetHashCode(); hashCode = hashCode * -1521134295 + RightBorder.GetHashCode(); hashCode = hashCode * -1521134295 + TopBorder.GetHashCode(); hashCode = hashCode * -1521134295 + BottomBorder.GetHashCode(); hashCode = hashCode * -1521134295 + DiagonalBorder.GetHashCode(); hashCode = hashCode * -1521134295 + DiagonalUp.GetHashCode(); hashCode = hashCode * -1521134295 + DiagonalDown.GetHashCode(); if (LeftBorder != XLBorderStyleValues.None) { hashCode = hashCode * -1521134295 + LeftBorderColor.GetHashCode(); } if (RightBorder != XLBorderStyleValues.None) { hashCode = hashCode * -1521134295 + RightBorderColor.GetHashCode(); } if (TopBorder != XLBorderStyleValues.None) { hashCode = hashCode * -1521134295 + TopBorderColor.GetHashCode(); } if (BottomBorder != XLBorderStyleValues.None) { hashCode = hashCode * -1521134295 + BottomBorderColor.GetHashCode(); } if (DiagonalBorder != XLBorderStyleValues.None) { hashCode = hashCode * -1521134295 + DiagonalBorderColor.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (LeftBorder != null ? LeftBorder.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (RightBorder != null ? RightBorder.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TopBorder != null ? TopBorder.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BottomBorder != null ? BottomBorder.GetHashCode() : 0); return(hashCode); } }