コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (GroupId.Length != 0)
            {
                hash ^= GroupId.GetHashCode();
            }
            hash ^= objectIds_.GetHashCode();
            if (ClassId.Length != 0)
            {
                hash ^= ClassId.GetHashCode();
            }
            if (Criteria.Length != 0)
            {
                hash ^= Criteria.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (TraversalDepth.Length != 0)
            {
                hash ^= TraversalDepth.GetHashCode();
            }
            if (ExtendedProperties != false)
            {
                hash ^= ExtendedProperties.GetHashCode();
            }
            if (Toplevelhosts != false)
            {
                hash ^= Toplevelhosts.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (GroupId != 0)
            {
                hash ^= GroupId.GetHashCode();
            }
            if (Img.Length != 0)
            {
                hash ^= Img.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            if (LikeNum != 0)
            {
                hash ^= LikeNum.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
 public override int GetHashCode()
 {
     if (string.IsNullOrWhiteSpace(GroupId))
     {
         return(0);
     }
     return(GroupId.GetHashCode());
 }
コード例 #4
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (GroupId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (MemberId?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #5
0
        public override int GetHashCode()
        {
            int hashCode = 1488984139;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + GroupId.GetHashCode();
            hashCode = hashCode * -1521134295 + Date.GetHashCode();
            hashCode = hashCode * -1521134295 + SessionId.GetHashCode();
            return(hashCode);
        }
コード例 #6
0
ファイル: Coordinates.cs プロジェクト: ewassef/nant-task
        public override int GetHashCode()
        {
            int code = APIConstants.HASH_CODE_SEED;

            code = APIConstants.HASH_CODE_FACTOR * code + ((GroupId == null) ? 0 : GroupId.GetHashCode());
            code = APIConstants.HASH_CODE_FACTOR * code + ((ArtifactId == null) ? 0 : ArtifactId.GetHashCode());
            code = APIConstants.HASH_CODE_FACTOR * code + ((Version == null) ? 0 : Version.GetHashCode());

            return(code);
        }
コード例 #7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (GroupId != null ? GroupId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ArtefactId != null ? ArtefactId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #8
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = GroupId is null ? 0 : GroupId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ParticipantPhone is null ? 0 : ParticipantPhone.GetHashCode());
         hashCode = (hashCode * 397) ^ (ParticipantChatId is null ? 0 : ParticipantChatId.GetHashCode());
         return(hashCode);
     }
 }
コード例 #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (GroupId != null ? GroupId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Topic != null ? Topic.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Partition;
         return(hashCode);
     }
 }
コード例 #10
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = IsSuccess.GetHashCode();
         hashCode = (hashCode * 397) ^ (GroupId is null ? 0 : GroupId.GetHashCode());
         hashCode = (hashCode * 397) ^ (ErrorMessage is null ? 0 : ErrorMessage.GetHashCode());
         hashCode = (hashCode * 397) ^ (StatusMessage is null ? 0 : StatusMessage.GetHashCode());
         return(hashCode);
     }
 }
コード例 #11
0
        public override int GetHashCode()
        {
            int hashCode = 1940496566;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + GroupId.GetHashCode();
            hashCode = hashCode * -1521134295 + Date.GetHashCode();
            hashCode = hashCode * -1521134295 + SessionId.GetHashCode();
            hashCode = hashCode * -1521134295 + ExaminerId.GetHashCode();
            return(hashCode);
        }
コード例 #12
0
        public override int GetHashCode()
        {
            var hash = 17;

            hash = hash * 23 + Sequence.GetHashCode();
            hash = hash * 23 + Scan.GetHashCode();
            hash = hash * 23 + Score.GetHashCode();
            hash = hash * 23 + Id.GetHashCode();
            hash = hash * 23 + GroupId.GetHashCode();
            return(hash);
        }
コード例 #13
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = (int)ErrorCode;
         hashCode = (hashCode * 397) ^ (GroupId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (State?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProtocolType?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Protocol?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Members?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #14
0
        public override int GetHashCode()
        {
            var hash = 17;

            hash = hash * 23 + Id.GetHashCode();
            hash = hash * 23 + GroupId.GetHashCode();
            hash = hash * 23 + MassMonoisotopicMostAbundant.GetHashCode();
            hash = hash * 23 + MassMonoisotopic.GetHashCode();
            hash = hash * 23 + Net.GetHashCode();

            return(hash);
        }
コード例 #15
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ SessionTimeout.GetHashCode();
         hashCode = (hashCode * 397) ^ RebalanceTimeout.GetHashCode();
         hashCode = (hashCode * 397) ^ (GroupProtocols?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (GroupId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (MemberId?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #16
0
        /// <summary>
        /// Generates a hash code.
        /// </summary>
        /// <returns>Hash code based on stored data.</returns>
        public override int GetHashCode()
        {
            var hashCode =
                PrecursorMz.GetHashCode() ^
                PrecursorChargeState.GetHashCode() ^
                Scan.GetHashCode() ^
                Id.GetHashCode() ^
                GroupId.GetHashCode() ^
                TotalIonCurrent.GetHashCode() ^
                RetentionTime.GetHashCode();

            return(hashCode);
        }
コード例 #17
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;
                hash = hash * 29 + RequestId != null?RequestId.GetHashCode() : 0;

                hash = hash * 29 + ListedMarketId.GetHashCode();
                hash = hash * 29 + ShortName.GetHashCode();
                hash = hash * 29 + LongName.GetHashCode();
                hash = hash * 29 + GroupId.GetHashCode();
                hash = hash * 29 + ShortGroupName.GetHashCode();
                return(hash);
            }
        }
コード例 #18
0
        public override int GetHashCode()
        {
            int hashCode = 829902979;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Surname);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(MidleName);

            hashCode = hashCode * -1521134295 + GroupId.GetHashCode();
            hashCode = hashCode * -1521134295 + GenderId.GetHashCode();
            return(hashCode);
        }
コード例 #19
0
ファイル: Team.cs プロジェクト: zhang13634419004/pnpframework
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Returns HashCode</returns>
 public override int GetHashCode()
 {
     return(String.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}|{9}|{10}|",
                          FunSettings?.GetHashCode() ?? 0,
                          GuestSettings?.GetHashCode() ?? 0,
                          MemberSettings?.GetHashCode() ?? 0,
                          MessagingSettings?.GetHashCode() ?? 0,
                          Security?.GetHashCode() ?? 0,
                          Channels?.GetHashCode() ?? 0,
                          Apps?.GetHashCode() ?? 0,
                          Specialization.GetHashCode(),
                          CloneFrom?.GetHashCode() ?? 0,
                          Archived.GetHashCode(),
                          GroupId?.GetHashCode() ?? 0
                          ).GetHashCode());
 }
コード例 #20
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (GroupId.Length != 0)
            {
                hash ^= GroupId.GetHashCode();
            }
            hash ^= objectIds_.GetHashCode();
            if (ClassId.Length != 0)
            {
                hash ^= ClassId.GetHashCode();
            }
            if (Criteria.Length != 0)
            {
                hash ^= Criteria.GetHashCode();
            }
            return(hash);
        }
コード例 #21
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Active.GetHashCode();
                hash = hash * 59 + GroupId.GetHashCode();
                hash = hash * 59 + UserId.GetHashCode();

                if (Id != null)
                {
                    hash = hash * 59 + Id.GetHashCode();
                }

                return(hash);
            }
        }
コード例 #22
0
ファイル: FormControl.cs プロジェクト: sandboxorg/VBASync
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = PropMask?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Tag?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Id;
         hashCode = (hashCode * 397) ^ HelpContextId;
         hashCode = (hashCode * 397) ^ (int)BitFlags;
         hashCode = (hashCode * 397) ^ (int)ObjectStreamSize;
         hashCode = (hashCode * 397) ^ TabIndex.GetHashCode();
         hashCode = (hashCode * 397) ^ ClsidCacheIndex.GetHashCode();
         hashCode = (hashCode * 397) ^ GroupId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ControlTipText?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RuntimeLicKey?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ControlSource?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RowSource?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (SitePosition?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #23
0
ファイル: ServerRegister.cs プロジェクト: FRBoiling/TestTools
        public override int GetHashCode()
        {
            int hash = 1;

            if (ServerType != 0)
            {
                hash ^= ServerType.GetHashCode();
            }
            if (GroupId != 0)
            {
                hash ^= GroupId.GetHashCode();
            }
            if (SubId != 0)
            {
                hash ^= SubId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #24
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Reward != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Reward);
            }
            if (Done != false)
            {
                hash ^= Done.GetHashCode();
            }
            if (MaxStepReached != false)
            {
                hash ^= MaxStepReached.GetHashCode();
            }
            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            hash ^= actionMask_.GetHashCode();
            hash ^= observations_.GetHashCode();
            if (GroupId != 0)
            {
                hash ^= GroupId.GetHashCode();
            }
            if (GroupReward != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(GroupReward);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #25
0
 public override int GetHashCode()
 {
     //TODO: finish it, get hashes for all fields
     return(GroupId.GetHashCode());
 }
コード例 #26
0
 public override int GetHashCode()
 {
     return(UserId.GetHashCode() ^ GroupId.GetHashCode() ^ Tenant.GetHashCode() ^ RefType.GetHashCode());
 }
コード例 #27
0
ファイル: Vertex.cs プロジェクト: Tuandl/ResellTicket
 /// <summary>
 /// Return a has for this Object
 /// </summary>
 /// <returns>Hash Calculated for this object</returns>
 public override int GetHashCode()
 {
     return(GroupId.GetHashCode() ^ ArrivalTimeUTC.GetHashCode());
 }
コード例 #28
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() & GroupId.GetHashCode());
 }
コード例 #29
0
 public override int GetHashCode()
 {
     return(GroupId.GetHashCode() ^ MemberId.GetHashCode());
 }
コード例 #30
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked {
         return(((GroupId?.GetHashCode() ?? 0) * 397) ^ (ProtocolType?.GetHashCode() ?? 0));
     }
 }