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

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Fname.Length != 0)
            {
                hash ^= Fname.GetHashCode();
            }
            if (Lname.Length != 0)
            {
                hash ^= Lname.GetHashCode();
            }
            if (Addess.Length != 0)
            {
                hash ^= Addess.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hashFname       = Fname == null ? 0 : Fname.GetHashCode();
            int hashRemark      = Remark == null ? 0 : Remark.GetHashCode();
            int hashVehicleType = VehicleType == null ? 0 : VehicleType.GetHashCode();
            int hashIcon        = Icon == null ? 0 : Icon.GetHashCode();

            return(hashFname ^ hashRemark ^ hashVehicleType ^ hashIcon);
        }
示例#3
0
文件: Person.cs 项目: Nslice/CSharp
        public override int GetHashCode()
        {
            const int prime = 31;
            int       hash  = 1;

            hash += prime * hash + Fname.GetHashCode();
            hash += prime * hash + Lname.GetHashCode();
            hash += prime * hash + Patronymic.GetHashCode();
            return(hash);
        }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 11;

            hash = hash * 13 + Id.GetHashCode();
            hash = hash * 13 + UserName.GetHashCode();
            hash = hash * 13 + Password.GetHashCode();
            hash = hash * 13 + Email.GetHashCode();
            hash = hash * 13 + Fname.GetHashCode();
            hash = hash * 13 + Lname.GetHashCode();
            hash = hash * 13 + Address.GetHashCode();
            hash = hash * 13 + PhoneNumber.GetHashCode();

            hash = hash * 13 + Salt.GetHashCode();
            return(hash);
        }
 public override int GetHashCode()
 {
     return(Nr.GetHashCode() + Fname.GetHashCode() + Lname.GetHashCode() + Age.GetHashCode());
 }