Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Horizontal.GetHashCode() * 397) ^ Vertical);
     }
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = 1238135884;

            hashCode = hashCode * -1521134295 + Horizontal.GetHashCode();
            hashCode = hashCode * -1521134295 + Vertical.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 3
0
Archivo: Dpi.cs Proyecto: ehmz11/aaa
 public override int GetHashCode()
 {
     // Implementation from Jon Skeet: http://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode
     unchecked // Overflow is fine, just wrap
     {
         int hash = (int)2166136261;
         hash = hash * 16777619 ^ Horizontal.GetHashCode();
         hash = hash * 16777619 ^ Vertical.GetHashCode();
         return(hash);
     }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Horizontal.GetHashCode();
         hashCode = (hashCode * 397) ^ Vertical.GetHashCode();
         hashCode = (hashCode * 397) ^ KeepHorizontal.GetHashCode();
         hashCode = (hashCode * 397) ^ KeepVertical.GetHashCode();
         hashCode = (hashCode * 397) ^ KeepLeft.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
            }
        }