Exemplo n.º 1
0
        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);
        }