public override int GetHashCode() { var hashCode = -476701294; hashCode = hashCode * -1521134295 + Alignment.GetHashCode(); hashCode = hashCode * -1521134295 + Border.GetHashCode(); hashCode = hashCode * -1521134295 + Fill.GetHashCode(); hashCode = hashCode * -1521134295 + Font.GetHashCode(); hashCode = hashCode * -1521134295 + IncludeQuotePrefix.GetHashCode(); hashCode = hashCode * -1521134295 + NumberFormat.GetHashCode(); hashCode = hashCode * -1521134295 + Protection.GetHashCode(); return(hashCode); }
public override string ToString() { return (this == XLStyle.Default.Key ? "Default" : string.Format("Alignment: {0} Border: {1} Fill: {2} Font: {3} IncludeQuotePrefix: {4} NumberFormat: {5} Protection: {6}", Alignment == XLStyle.Default.Key.Alignment ? "Default" : Alignment.ToString(), Border == XLStyle.Default.Key.Border ? "Default" : Border.ToString(), Fill == XLStyle.Default.Key.Fill ? "Default" : Fill.ToString(), Font == XLStyle.Default.Key.Font ? "Default" : Font.ToString(), IncludeQuotePrefix == XLStyle.Default.Key.IncludeQuotePrefix ? "Default" : IncludeQuotePrefix.ToString(), NumberFormat == XLStyle.Default.Key.NumberFormat ? "Default" : NumberFormat.ToString(), Protection == XLStyle.Default.Key.Protection ? "Default" : Protection.ToString())); }