示例#1
0
        public override int GetHashCode()
        {
            var hashCode = 999451561;

            hashCode = hashCode * -1521134295 + SideA.GetHashCode();
            hashCode = hashCode * -1521134295 + SideB.GetHashCode();
            return(hashCode);
        }
示例#2
0
        public override int GetHashCode()
        {
            int prime = 37;
            int hash  = 1;

            hash = prime * hash + SideA.GetHashCode();
            hash = prime * hash + SideB.GetHashCode();
            return(hash);
        }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(SideA.GetHashCode() ^ SideB.GetHashCode() ^ SideC.GetHashCode() ^ AngleA.GetHashCode() ^ AngleB.GetHashCode() ^ AngleC.GetHashCode());
 }
示例#4
0
 public override int GetHashCode()
 {
     return(SideA.GetHashCode() + SideB.GetHashCode());
 }
示例#5
0
 /// <summary>
 /// Get a hash code for the current object.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(3 * SideA.GetHashCode() + 2 * SideB.GetHashCode() -
            2 * SideC.GetHashCode());
 }