Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     unchecked
     {
         return((NumberOfPoints.GetHashCode() * 397) ^ StartAddress.GetHashCode());
     }
 }
Пример #2
0
        public override int GetHashCode()
        {
            var partsHashCode  = Parts.Aggregate(0, (current, part) => current ^ part.GetHashCode());
            var pointsHashCode = Points.Aggregate(0, (current, point) => current ^ point.GetHashCode());

            return(BoundingBox.GetHashCode() ^ NumberOfParts.GetHashCode() ^ NumberOfPoints.GetHashCode()
                   ^ partsHashCode ^ pointsHashCode);
        }