public override int GetHashCode() { unchecked { int hashCode = Vehicles; hashCode = (hashCode * 397) ^ SmallestRoundCategory; hashCode = (hashCode * 397) ^ LargestRoundCategory; hashCode = (hashCode * 397) ^ TotalTime.GetHashCode(); hashCode = (hashCode * 397) ^ MinimumTime.GetHashCode(); hashCode = (hashCode * 397) ^ MaximumTime.GetHashCode(); hashCode = (hashCode * 397) ^ (LargestRoundCategories != null ? LargestRoundCategories.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SmallestRoundCategories != null ? SmallestRoundCategories.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Feasable.GetHashCode(); return(hashCode); } }
protected bool Equals(Fitness other) { return(Vehicles == other.Vehicles && SmallestRoundCategory == other.SmallestRoundCategory && LargestRoundCategory == other.LargestRoundCategory && TotalTime.Equals(other.TotalTime) && MinimumTime.Equals(other.MinimumTime) && MaximumTime.Equals(other.MaximumTime) && Equals(LargestRoundCategories, other.LargestRoundCategories) && Equals(SmallestRoundCategories, other.SmallestRoundCategories) && Feasable.Equals(other.Feasable)); }