Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Identity?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (PostMatchRatings?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PreMatchRatings?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Rank;
         hashCode = (hashCode * 397) ^ (int)Result;
         hashCode = (hashCode * 397) ^ TeamId;
         hashCode = (hashCode * 397) ^ TotalAssists;
         hashCode = (hashCode * 397) ^ TotalDeaths;
         hashCode = (hashCode * 397) ^ TotalKills;
         return(hashCode);
     }
 }
Example #2
0
 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);
     }
 }