Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = -759193072;

            hashCode = hashCode * -1521134295 + NumberFormatId.GetHashCode();
            hashCode = hashCode * -1521134295 + (Format == null ? 0 : Format.GetHashCode());
            return(hashCode);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 11;

                hash = hash * 17 + FormatId?.GetHashCode() ?? 0;
                hash = hash * 17 + FontId?.GetHashCode() ?? 0;
                hash = hash * 17 + FillId?.GetHashCode() ?? 0;
                hash = hash * 17 + BorderId?.GetHashCode() ?? 0;
                hash = hash * 17 + NumberFormatId?.GetHashCode() ?? 0;
                hash = hash * 17 + HasPivotButton?.GetHashCode() ?? 0;
                hash = hash * 17 + HasQuotePrefix?.GetHashCode() ?? 0;
                hash = hash * 17 + Alignment?.GetHashCode() ?? 0;
                hash = hash * 17 + Protection?.GetHashCode() ?? 0;

                return(hash);
            }
        }