public override int GetHashCode() { int prime = 31; int result = 1; result = prime * result + Id.BitShiftThenBitOr(prime); result = prime * result + Name.StringToInt().BitShiftThenBitOr(prime); result = prime * result + Gender.GenderToInt().BitShiftThenBitOr(prime); result = prime * result + BirthDate.DateToInt().BitShiftThenBitOr(prime); result = prime * result + Email.StringToInt().BitShiftThenBitOr(prime); result = prime * result + Phone.StringToInt().BitShiftThenBitOr(prime); result = prime * result + ZipCode.BitShiftThenBitOr(prime); result = prime * result + Address.StringToInt().BitShiftThenBitOr(prime); result = prime * result + UserName.StringToInt().BitShiftThenBitOr(prime); result = prime * result + Password.StringToInt().BitShiftThenBitOr(prime); result = prime * result + Pin.BitShiftThenBitOr(prime); result = prime * result + LoginIP.StringToInt().BitShiftThenBitOr(prime); result = prime * result + MacAddress.StringToInt().BitShiftThenBitOr(prime); result = prime * result + StartingDate.DateToInt().BitShiftThenBitOr(prime); result = prime * result + Access.AccessToInt().BitShiftThenBitOr(prime); result = prime * result + AccountPriority.AccountPriorityToInt().BitShiftThenBitOr(prime); result = prime * result + MembershipType.MembershipToInt().BitShiftThenBitOr(prime); result = prime * result + Email.StringToInt().BitShiftThenBitOr(prime); result = prime * result + BirthDate.ToString().StringToInt().BitShiftThenBitOr(prime); result = prime * result + LastLogin.DateToInt().BitShiftThenBitOr(prime); result = prime * result + LastLogout.DateToInt().BitShiftThenBitOr(prime); result = prime * result + Age.BitShiftThenBitOr(prime); return(result); }
public override int GetHashCode() { int prime = 31; int result = 1; result = prime * result + CharacterId.BitShiftThenBitOr(prime); result = prime * result + Owner.GetHashCode().BitShiftThenBitOr(prime); result = prime * result + Level.BitShiftThenBitOr(prime); result = prime * result + _Inventory.ListToInt <MarketItem>().BitShiftThenBitOr(prime); result = prime * result + Name.StringToInt().BitShiftThenBitOr(prime); result = prime * result + Race.RaceToInt().BitShiftThenBitOr(prime); result = prime * result + Gender.GenderToInt().BitShiftThenBitOr(prime); return(result); }
public override int GetHashCode() { int prime = 31; int result = 1; result = prime * result + Id.BitShiftThenBitOr(prime); result = prime * result + Name.StringToInt().BitShiftThenBitOr(prime); result = prime * result + Description.StringToInt().BitShiftThenBitOr(prime); result = prime * result + _Price.ToString().StringToInt().BitShiftThenBitOr(prime); result = prime * result + Discount.ToString().StringToInt().BitShiftThenBitOr(prime); result = prime * result + Race.RaceToInt().BitShiftThenBitOr(prime); result = prime * result + Gender.GenderToInt().BitShiftThenBitOr(prime); result = prime * result + AddedToMarket.DateToInt().BitShiftThenBitOr(prime); result = prime * result + DateBought.DateToInt().BitShiftThenBitOr(prime); result = prime * result + TimeLimit.TimeToInt().BitShiftThenBitOr(prime); result = prime * result + TimeLeft.TimeToInt().BitShiftThenBitOr(prime); result = prime * result + Convert.ToInt32(Image).BitShiftThenBitOr(prime); return(result); }