コード例 #1
0
ファイル: ArenaMatch.cs プロジェクト: C-Kennelly/HaloSharp
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (CreditsEarned?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (BoostInfo?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (CurrentCsr?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledByOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ MeasurementMatchesLeft;
         hashCode = (hashCode * 397) ^ (MetaCommendationDeltas?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PreviousCsr?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProgressiveCommendationDeltas?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RewardSets?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (XpInfo?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #2
0
ファイル: WarzoneMatch.cs プロジェクト: sebrandon1/HaloSharp
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (CreditsEarned?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (BoostInfo?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledByOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (KilledOpponentDetails?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (MetaCommendationDeltas?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProgressiveCommendationDeltas?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PveTotalRoundAssistBonuses?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PveTotalRoundKillBonuses?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PveTotalRoundSpeedBonuses?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (PveTotalRoundSurvivalBonuses?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RewardSets?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ TotalPiesEarned;
         hashCode = (hashCode * 397) ^ WarzoneLevel;
         hashCode = (hashCode * 397) ^ (XpInfo?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }