Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((ElevatorFloor * 397) ^ (Floors != null ? Floors.Aggregate(13, (s, f) => s * (int)f) : 0));
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = Floors.Aggregate(19, (current, floor) => current * 31 + floor.GetHashCode());
         return(hash ^ Elevator.GetHashCode());
     }
 }