public override int GetHashCode() { return(NumberFormat?.GetHashCode() ?? 0 ^ Fill?.GetHashCode() ?? 0 ^ Font?.GetHashCode() ?? 0 ^ Borders?.GetHashCode() ?? 0 ^ Alignment?.GetHashCode() ?? 0); }
public override bool Equals(object obj) { var styleO = obj as Style; return(styleO != null && (NumberFormat == null && styleO.NumberFormat == null || NumberFormat.Equals(styleO.NumberFormat)) && (Fill == null && styleO.Fill == null || Fill.Equals(styleO.Fill)) && (Font == null && styleO.Font == null || Font.Equals(styleO.Font)) && (Borders == null && styleO.Borders == null || Borders.Equals(styleO.Borders)) && (Alignment == null && styleO.Alignment == null || Alignment.Equals(styleO.Alignment))); }