Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = NationId.GetHashCode();
         hashCode = (hashCode * 397) ^ RulerName.GetHashCode();
         hashCode = (hashCode * 397) ^ UniqueCode.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ RulerName.GetHashCode();
         hashCode = (hashCode * 397) ^ NationName.GetHashCode();
         hashCode = (hashCode * 397) ^ Role.GetHashCode();
         hashCode = (hashCode * 397) ^ Alliance.GetHashCode();
         hashCode = (hashCode * 397) ^ Balance.GetHashCode();
         hashCode = (hashCode * 397) ^ AvailableSlots.GetHashCode();
         return(hashCode);
     }
 }