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);
     }
 }
示例#2
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);
     }
 }
示例#3
0
 public override int GetHashCode()
 {
     unchecked {
         return(((DuelId != null ? DuelId.GetHashCode() : 0) * 397) ^ (DuelistId != null ? DuelistId.GetHashCode() : 0));
     }
 }