public override int GetHashCode() { unchecked { int hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ AvgLifeTimeOfPlayer.GetHashCode(); hashCode = (hashCode * 397) ^ DNF.GetHashCode(); hashCode = (hashCode * 397) ^ (FlexibleStats?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Player?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (PostMatchRatings?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (PreMatchRatings?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Rank; hashCode = (hashCode * 397) ^ TeamId; return(hashCode); } }
public bool Equals(BasePlayerStat other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && AvgLifeTimeOfPlayer.Equals(other.AvgLifeTimeOfPlayer) && DNF == other.DNF && Equals(FlexibleStats, other.FlexibleStats) && Equals(Player, other.Player) && Equals(PostMatchRatings, other.PostMatchRatings) && Equals(PreMatchRatings, other.PreMatchRatings) && Rank == other.Rank && TeamId == other.TeamId); }