Пример #1
0
        public override int GetHashCode()
        {
            int hashCode = -1473066521;

            hashCode = hashCode * -1521134295 + Col1.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Col2);

            hashCode = hashCode * -1521134295 + Col3.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Col4);

            return(hashCode);
        }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Col1 != null ? Col1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Col2 != null ? Col2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Col3 != null ? Col3.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Cols1 != null ? Cols1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Cols2 != null ? Cols2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Cols3 != null ? Cols3.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)EvaluationFn;
         return(hashCode);
     }
 }
Пример #3
0
 public override int GetHashCode()
 {
     return(Col1.GetHashCode() ^ Col2.GetHashCode() ^ Dx1.GetHashCode()
            ^ Dx2.GetHashCode() ^ Dy1.GetHashCode() ^ Dy2.GetHashCode()
            ^ Row1.GetHashCode() ^ Row2.GetHashCode() ^ AnchorType.GetHashCode());
 }
Пример #4
0
 /// <summary>
 /// Get the hashcode
 /// </summary>
 /// <returns>Hashcode for the object instance</returns>
 public override int GetHashCode()
 {
     return(unchecked (Col0.GetHashCode() + Col1.GetHashCode() + Col2.GetHashCode()));
 }