예제 #1
0
        public override int GetHashCode()
        {
            const int prime  = 31;
            int       result = 1;

            result = prime * result + ((string.ReferenceEquals(Id, null)) ? 0 : Id.GetHashCode());
            result = prime * result + ((string.ReferenceEquals(Ip, null)) ? 0 : Ip.GetHashCode());
            result = prime * result + ((string.ReferenceEquals(Mac, null)) ? 0 : Mac.GetHashCode());
            result = prime * result + ((string.ReferenceEquals(Name, null)) ? 0 : Name.GetHashCode());
            return(result);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Ip.GetHashCode();
                hashcode = (hashcode * 397) + MetaPort.GetHashCode();
                hashcode = (hashcode * 397) + NodeIdentifier.GetHashCode();
                hashcode = (hashcode * 397) + DataPort.GetHashCode();
            }
            return(hashcode);
        }
예제 #3
0
        public override int GetHashCode()
        {
            const int prime  = 31;
            int       result = 1;

            result = prime * result + ((string.ReferenceEquals(Id, null)) ? 0 : Id.GetHashCode());
            result = prime * result + ((string.ReferenceEquals(Datacentorid, null)) ? 0 : Datacentorid.GetHashCode());
            result = prime * result + ((string.ReferenceEquals(Ip, null)) ? 0 : Ip.GetHashCode());
            result = prime * result + ((Port == null) ? 0 : Port.GetHashCode());
            result = prime * result + ((string.ReferenceEquals(Sitepath, null)) ? 0 : Sitepath.GetHashCode());
            return(result);
        }
예제 #4
0
파일: Broker.cs 프로젝트: zxbe/Anno.Core
 public override int GetHashCode() {
   int hash = 1;
   if (Ip.Length != 0) hash ^= Ip.GetHashCode();
   if (Port != 0) hash ^= Port.GetHashCode();
   if (Timeout != 0) hash ^= Timeout.GetHashCode();
   if (Name.Length != 0) hash ^= Name.GetHashCode();
   if (Nickname.Length != 0) hash ^= Nickname.GetHashCode();
   if (Weight != 0) hash ^= Weight.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
예제 #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Ip != null ? Ip.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Port != null ? Port.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Host != null ? Host.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SourceType != null ? SourceType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SourceStart.GetHashCode();
         hashCode = (hashCode * 397) ^ SourceEnd.GetHashCode();
         return(hashCode);
     }
 }
예제 #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ip.Length != 0)
            {
                hash ^= Ip.GetHashCode();
            }
            if (Port != 0)
            {
                hash ^= Port.GetHashCode();
            }
            return(hash);
        }
예제 #7
0
        public override int GetHashCode()
        {
            int result = 17;
            int ret    = GetType().GetHashCode();

            result = 37 * result + ret;
            ret    = Port;
            result = 37 * result + ret;
            ret    = HttpPort;
            result = 37 * result + ret;
            ret    = Ip.GetHashCode();
            result = 37 * result + ret;
            return(result);
        }
예제 #8
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Id != 0)
                    {
                        hash ^= Id.GetHashCode();
                    }
                    if (Category.Length != 0)
                    {
                        hash ^= Category.GetHashCode();
                    }
                    if (Rawname.Length != 0)
                    {
                        hash ^= Rawname.GetHashCode();
                    }
                    if (Name.Length != 0)
                    {
                        hash ^= Name.GetHashCode();
                    }
                    if (Crowdness.Length != 0)
                    {
                        hash ^= Crowdness.GetHashCode();
                    }
                    if (Open.Length != 0)
                    {
                        hash ^= Open.GetHashCode();
                    }
                    if (Ip != 0)
                    {
                        hash ^= Ip.GetHashCode();
                    }
                    if (Port != 0)
                    {
                        hash ^= Port.GetHashCode();
                    }
                    if (Lang != 0)
                    {
                        hash ^= Lang.GetHashCode();
                    }
                    if (Popup.Length != 0)
                    {
                        hash ^= Popup.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
예제 #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ip.Length != 0)
            {
                hash ^= Ip.GetHashCode();
            }
            if (Version.Length != 0)
            {
                hash ^= Version.GetHashCode();
            }
            hash ^= serialId_.GetHashCode();
            if (EyeId.Length != 0)
            {
                hash ^= EyeId.GetHashCode();
            }
            if (CameraType != 0)
            {
                hash ^= CameraType.GetHashCode();
            }
            if (Commit.Length != 0)
            {
                hash ^= Commit.GetHashCode();
            }
            if (Temp.Length != 0)
            {
                hash ^= Temp.GetHashCode();
            }
            if (IsLinux != false)
            {
                hash ^= IsLinux.GetHashCode();
            }
            if (IsUbuntu18 != false)
            {
                hash ^= IsUbuntu18.GetHashCode();
            }
            if (Time.Length != 0)
            {
                hash ^= Time.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ip.Length != 0)
            {
                hash ^= Ip.GetHashCode();
            }
            if (Port != 0)
            {
                hash ^= Port.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (Ip.Length != 0)
            {
                hash ^= Ip.GetHashCode();
            }
            hash ^= peers_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (addressCase_ == AddressOneofCase.Ip)
            {
                hash ^= Ip.GetHashCode();
            }
            if (addressCase_ == AddressOneofCase.Domain)
            {
                hash ^= Domain.GetHashCode();
            }
            hash ^= (int)addressCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #13
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ip.Length != 0)
            {
                hash ^= Ip.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OperatorId.Length != 0)
            {
                hash ^= OperatorId.GetHashCode();
            }
            if (Ip.Length != 0)
            {
                hash ^= Ip.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #15
0
 public override int GetHashCode()
 {
     return(Ip.GetHashCode());
 }
예제 #16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (opts_ != null)
            {
                hash ^= Opts.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Pwd.Length != 0)
            {
                hash ^= Pwd.GetHashCode();
            }
            if (VertPwd != false)
            {
                hash ^= VertPwd.GetHashCode();
            }
            if (Ip.Length != 0)
            {
                hash ^= Ip.GetHashCode();
            }
            if (Time != 0L)
            {
                hash ^= Time.GetHashCode();
            }
            if (Channel != 0)
            {
                hash ^= Channel.GetHashCode();
            }
            if (Browser != 0)
            {
                hash ^= Browser.GetHashCode();
            }
            if (Platform != 0)
            {
                hash ^= Platform.GetHashCode();
            }
            if (UnionID.Length != 0)
            {
                hash ^= UnionID.GetHashCode();
            }
            if (Nickname.Length != 0)
            {
                hash ^= Nickname.GetHashCode();
            }
            if (Avatar.Length != 0)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (Gender != 0)
            {
                hash ^= Gender.GetHashCode();
            }
            if (Money != 0)
            {
                hash ^= Money.GetHashCode();
            }
            if (Diamoned != 0)
            {
                hash ^= Diamoned.GetHashCode();
            }
            if (Rank != 0)
            {
                hash ^= Rank.GetHashCode();
            }
            if (Exp != 0)
            {
                hash ^= Exp.GetHashCode();
            }
            if (Champions.Length != 0)
            {
                hash ^= Champions.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #17
0
 public override int GetHashCode() => Ip.GetHashCode();
예제 #18
0
 public override int GetHashCode() {
   int hash = 1;
   if (Ip.Length != 0) hash ^= Ip.GetHashCode();
   if (Port != 0) hash ^= Port.GetHashCode();
   return hash;
 }
예제 #19
0
 public override int GetHashCode()
 {
     return(Ip.GetHashCode() ^ Port.GetHashCode() ^ Application.GetHashCode());
 }