Exemple #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ Username.GetHashCode();
         hashCode = (hashCode * 397) ^
                    (Password != null
              ? Password.GetHashCode()
              : 0);
         hashCode = (hashCode * 397) ^ ForceChangePassword.GetHashCode();
         hashCode = (hashCode * 397) ^ Title.GetHashCode();
         hashCode = (hashCode * 397) ^ FirstName.GetHashCode();
         hashCode = (hashCode * 397) ^ LastName.GetHashCode();
         hashCode = (hashCode * 397) ^ EmailAddress.GetHashCode();
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Login.Length != 0)
            {
                hash ^= Login.GetHashCode();
            }
            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (created_ != null)
            {
                hash ^= Created.GetHashCode();
            }
            if (passwordUpdate_ != null)
            {
                hash ^= PasswordUpdate.GetHashCode();
            }
            if (agreementAccepted_ != null)
            {
                hash ^= AgreementAccepted.GetHashCode();
            }
            if (IsLocked != false)
            {
                hash ^= IsLocked.GetHashCode();
            }
            if (IsInactive != false)
            {
                hash ^= IsInactive.GetHashCode();
            }
            if (EmailAddress.Length != 0)
            {
                hash ^= EmailAddress.GetHashCode();
            }
            if (PhoneNumber.Length != 0)
            {
                hash ^= PhoneNumber.GetHashCode();
            }
            if (FullName.Length != 0)
            {
                hash ^= FullName.GetHashCode();
            }
            if (ForceChangePassword != false)
            {
                hash ^= ForceChangePassword.GetHashCode();
            }
            if (PrefferredLanguage.Length != 0)
            {
                hash ^= PrefferredLanguage.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }