コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Param1 != null ? Param1.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Param2 != null ? Param2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Param3;
         return(hashCode);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Param1?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Param2?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Param3;
         return(hashCode);
     }
 }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0L)
            {
                hash ^= Id.GetHashCode();
            }
            if (Param1 != 0L)
            {
                hash ^= Param1.GetHashCode();
            }
            if (Param2 != 0L)
            {
                hash ^= Param2.GetHashCode();
            }
            if (Param3 != 0L)
            {
                hash ^= Param3.GetHashCode();
            }
            if (Param4 != 0L)
            {
                hash ^= Param4.GetHashCode();
            }
            if (Param5 != 0L)
            {
                hash ^= Param5.GetHashCode();
            }
            if (Param6 != 0L)
            {
                hash ^= Param6.GetHashCode();
            }
            if (Param7 != 0L)
            {
                hash ^= Param7.GetHashCode();
            }
            if (Param8 != 0L)
            {
                hash ^= Param8.GetHashCode();
            }
            if (Param9 != 0L)
            {
                hash ^= Param9.GetHashCode();
            }
            if (Param10 != 0L)
            {
                hash ^= Param10.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
    public override int GetHashCode()
    {
        unchecked     // Overflow is fine, just wrap
        {
            int hash = (int)2166136261;

            hash = (hash * 16777619) ^ Param1?.GetHashCode() ?? 0;
            hash = (hash * 16777619) ^ Param2?.GetHashCode() ?? 0;
            hash = (hash * 16777619) ^ Param3.GetHashCode();
            return(hash);
        }
    }
コード例 #5
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.revision)
            {
                hashcode = (hashcode * 397) + Revision.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.type)
            {
                hashcode = (hashcode * 397) + Type.GetHashCode();
            }
            if (__isset.reqSeq)
            {
                hashcode = (hashcode * 397) + ReqSeq.GetHashCode();
            }
            if (__isset.checksum)
            {
                hashcode = (hashcode * 397) + Checksum.GetHashCode();
            }
            if (__isset.status)
            {
                hashcode = (hashcode * 397) + Status.GetHashCode();
            }
            if (__isset.param1)
            {
                hashcode = (hashcode * 397) + Param1.GetHashCode();
            }
            if (__isset.param2)
            {
                hashcode = (hashcode * 397) + Param2.GetHashCode();
            }
            if (__isset.param3)
            {
                hashcode = (hashcode * 397) + Param3.GetHashCode();
            }
            if (__isset.message)
            {
                hashcode = (hashcode * 397) + Message.GetHashCode();
            }
        }
        return(hashcode);
    }
コード例 #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Param1 != 0)
            {
                hash ^= Param1.GetHashCode();
            }
            if (Param2 != 0)
            {
                hash ^= Param2.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #7
0
 public override int GetHashCode()
 {
     return(Param1.GetHashCode());     //ideally something with all three parameters
 }
コード例 #8
0
 public override int GetHashCode()
 {
     return(Param1.GetHashCode() ^ Param2.GetHashCode() ^ Param3.GetHashCode());
 }
コード例 #9
0
 public override int GetHashCode()
 {
     return(Param1.GetHashCode());     //or something with all three
 }