public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TotalMatchesPlayed;
         hashCode = (hashCode * 397) ^ MaximumMatchesPerDay;
         hashCode = (hashCode * 397) ^ AverageMatchesPerDay.GetHashCode();
         hashCode = (hashCode * 397) ^ MaximumPopulation;
         hashCode = (hashCode * 397) ^ AveragePopulation.GetHashCode();
         hashCode = (hashCode * 397) ^ (Top5GameModes?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Top5Maps?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TotalMatchesPlayed;
         hashCode = (hashCode * 397) ^ TotalMatchesWon;
         hashCode = (hashCode * 397) ^ (FavoriteServer?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ UniqueServers;
         hashCode = (hashCode * 397) ^ (FavoriteGameMode?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ AverageScoreboardPercent.GetHashCode();
         hashCode = (hashCode * 397) ^ MaximumMatchesPerDay;
         hashCode = (hashCode * 397) ^ AverageMatchesPerDay.GetHashCode();
         hashCode = (hashCode * 397) ^ LastMatchPlayed.GetHashCode();
         hashCode = (hashCode * 397) ^ KillToDeathRatio.GetHashCode();
         return(hashCode);
     }
 }