Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Pid != 0)
            {
                hash ^= Pid.GetHashCode();
            }
            if (Tp != 0)
            {
                hash ^= Tp.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.Content)
            {
                hash ^= Content.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.P)
            {
                hash ^= P.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.ActionData)
            {
                hash ^= ActionData.GetHashCode();
            }
            hash ^= (int)dataCase_;
            return(hash);
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Pid != null)
         {
             hashCode = hashCode * 59 + Pid.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (Properties != null)
         {
             hashCode = hashCode * 59 + Properties.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Returns a hash code for this instance.
        /// </summary>
        public override int GetHashCode()
        {
            int hash = 17;

            hash = 37 * hash + Timestamp.GetHashCode();
            hash = 37 * hash + Machine.GetHashCode();
            hash = 37 * hash + Pid.GetHashCode();
            hash = 37 * hash + Increment.GetHashCode();
            return(hash);
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (SpiderId.Length != 0)
            {
                hash ^= SpiderId.GetHashCode();
            }
            if (Status.Length != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (NodeId.Length != 0)
            {
                hash ^= NodeId.GetHashCode();
            }
            if (Cmd.Length != 0)
            {
                hash ^= Cmd.GetHashCode();
            }
            if (Param.Length != 0)
            {
                hash ^= Param.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            if (Pid != 0)
            {
                hash ^= Pid.GetHashCode();
            }
            if (RunType.Length != 0)
            {
                hash ^= RunType.GetHashCode();
            }
            if (ScheduleId.Length != 0)
            {
                hash ^= ScheduleId.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Pid != 0)
            {
                hash ^= Pid.GetHashCode();
            }
            if (p_ != null)
            {
                hash ^= P.GetHashCode();
            }
            return(hash);
        }
Esempio n. 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (pid_ != null)
            {
                hash ^= Pid.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            return(hash);
        }
Esempio n. 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (pid_ != null)
            {
                hash ^= Pid.GetHashCode();
            }
            if (Data != 0)
            {
                hash ^= Data.GetHashCode();
            }
            return(hash);
        }
Esempio n. 8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (pid_ != null)
            {
                hash ^= Pid.GetHashCode();
            }
            if (StatusCode != 0)
            {
                hash ^= StatusCode.GetHashCode();
            }
            return(hash);
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
             if (Pid != null)
             hashCode = hashCode * 59 + Pid.GetHashCode();
             if (Title != null)
             hashCode = hashCode * 59 + Title.GetHashCode();
             if (Description != null)
             hashCode = hashCode * 59 + Description.GetHashCode();
             if (Properties != null)
             hashCode = hashCode * 59 + Properties.GetHashCode();
             if (BundleLocation != null)
             hashCode = hashCode * 59 + BundleLocation.GetHashCode();
             if (ServiceLocation != null)
             hashCode = hashCode * 59 + ServiceLocation.GetHashCode();
         return hashCode;
     }
 }
Esempio n. 10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HostName.Length != 0)
            {
                hash ^= HostName.GetHashCode();
            }
            if (Pid != 0)
            {
                hash ^= Pid.GetHashCode();
            }
            if (startTimestamp_ != null)
            {
                hash ^= StartTimestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 11
0
 public override int GetHashCode()
 {
     return(Pid.GetHashCode());
 }
Esempio n. 12
0
 public override int GetHashCode()
 {
     return(Pid != null ? Pid.GetHashCode() : 0);
 }
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^ Nickname.GetHashCode() ^ Pid.GetHashCode());
 }