public void GetHashCode_2InstancesWithEqualValues_ReturnEqualHashCodes() { var left = new TimeOfDay(1, 2, 3); var right = new TimeOfDay(1, 2, 3); Assert.AreEqual(left.GetHashCode(), right.GetHashCode()); }
public override int GetHashCode() { int hash = 1; if (TimeOfDay != 0) { hash ^= TimeOfDay.GetHashCode(); } if (player_ != null) { hash ^= Player.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; hash ^= mapCells_.GetHashCode(); if (Status != 0) { hash ^= Status.GetHashCode(); } if (TimeOfDay != 0) { hash ^= TimeOfDay.GetHashCode(); } hash ^= clientWeather_.GetHashCode(); return(hash); }
public override int GetHashCode() { return /*base.GetHashCode() ^*/ ((int)DayOfWeek ^ TimeOfDay.GetHashCode()); }
public override int GetHashCode() { return(TimeOfDay.GetHashCode()); }