public override int GetHashCode()
 {
     unchecked
     {
         return((Point1.GetHashCode() * 397) ^ Point2.GetHashCode());
     }
 }
예제 #2
0
파일: Wall.cs 프로젝트: chefarbeiter/Maze
        public override int GetHashCode()
        {
            var hashCode = 363529913;

            hashCode = hashCode * -1521134295 + Point1.GetHashCode();
            hashCode = hashCode * -1521134295 + Point2.GetHashCode();
            return(hashCode);
        }
예제 #3
0
 public override int GetHashCode()
 {
     return(Point1.GetHashCode() ^ Point2.GetHashCode());
 }
예제 #4
0
 public override int GetHashCode()
 {
     return(47 * Point1.GetHashCode() + Point2.GetHashCode());
 }
예제 #5
0
 public override int GetHashCode() => Point1.GetHashCode() ^ Point2.GetHashCode();
예제 #6
0
 public override int GetHashCode()
 {
     return((2 * Point1.GetHashCode()) + (3 * Point2.GetHashCode()));
 }