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

            hashCode = hashCode * -1521134295 + Horizontal.GetHashCode();
            hashCode = hashCode * -1521134295 + Vertical.GetHashCode();
            hashCode = hashCode * -1521134295 + Indent.GetHashCode();
            hashCode = hashCode * -1521134295 + JustifyLastLine.GetHashCode();
            hashCode = hashCode * -1521134295 + ReadingOrder.GetHashCode();
            hashCode = hashCode * -1521134295 + RelativeIndent.GetHashCode();
            hashCode = hashCode * -1521134295 + ShrinkToFit.GetHashCode();
            hashCode = hashCode * -1521134295 + TextRotation.GetHashCode();
            hashCode = hashCode * -1521134295 + WrapText.GetHashCode();
            hashCode = hashCode * -1521134295 + TopToBottom.GetHashCode();
            return(hashCode);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 19;

                hash = hash * 29 + Horizontal.GetHashCode();
                hash = hash * 29 + Vertical.GetHashCode();
                hash = hash * 29 + Wrap.GetHashCode();
                hash = hash * 29 + ReadingOrder.GetHashCode();
                hash = hash * 29 + TextRotation?.GetHashCode() ?? 0;
                hash = hash * 29 + Indent?.GetHashCode() ?? 0;
                hash = hash * 29 + RelativeIndent?.GetHashCode() ?? 0;
                hash = hash * 29 + JustifyLastLine?.GetHashCode() ?? 0;
                hash = hash * 29 + Shrink?.GetHashCode() ?? 0;
                hash = hash * 29 + MergeCell?.GetHashCode() ?? 0;

                return(hash);
            }
        }