Example #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (LoginPwd.Length != 0)
            {
                hash ^= LoginPwd.GetHashCode();
            }
            if (Email.Length != 0)
            {
                hash ^= Email.GetHashCode();
            }
            if (Phone.Length != 0)
            {
                hash ^= Phone.GetHashCode();
            }
            if (Contact.Length != 0)
            {
                hash ^= Contact.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
 public void Trim()
 {
     LoginName = LoginName.Trim();
     LoginPwd  = LoginPwd.Trim();
     Email     = Email.Trim();
     if (!string.IsNullOrEmpty(AppKey))
     {
         AppKey = AppKey.Trim();
     }
 }