Exemple #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (DuelId != null ? DuelId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DuelistId != null ? DuelistId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (InitialHand != null ? InitialHand.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (DuelId != null ? DuelId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DuelistId != null ? DuelistId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CardsInHand;
         return(hashCode);
     }
 }