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