示例#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()
 {
     unchecked
     {
         return((ClassId.GetHashCode() * 397) ^ ObjectId.GetHashCode());
     }
 }
示例#3
0
文件: Qsmq.cs 项目: DenyCZ/IVA-Studio
    public override int GetHashCode()
    {
        int hash = 1;

        if (ClassId != 0)
        {
            hash ^= ClassId.GetHashCode();
        }
        if (Score != 0F)
        {
            hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Score);
        }
        if (bbox_ != null)
        {
            hash ^= Bbox.GetHashCode();
        }
        if (segm_ != null)
        {
            hash ^= Segm.GetHashCode();
        }
        if (florplanpoint_ != null)
        {
            hash ^= Florplanpoint.GetHashCode();
        }
        if (Features.Length != 0)
        {
            hash ^= Features.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (ClassId.Length != 0)
            {
                hash ^= ClassId.GetHashCode();
            }
            if (Protocol != global::PKIo.PassProtocol.DoNotUse)
            {
                hash ^= Protocol.GetHashCode();
            }
            if (personDetails_ != null)
            {
                hash ^= PersonDetails.GetHashCode();
            }
            if (metadata_ != null)
            {
                hash ^= Metadata.GetHashCode();
            }
            hash ^= RecordData.GetHashCode();
            if (ExternalId.Length != 0)
            {
                hash ^= ExternalId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#5
0
        public PluginDataKey(Profiler.PluginData pluginData)
        {
            ClassId = Guid.Parse(pluginData.ClassID);

            Name = pluginData.Name;

            _hashCode = ClassId.GetHashCode();
        }
示例#6
0
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = base.GetHashCode();
                hashCode = (hashCode * 397) ^ ClassId.GetHashCode();
                hashCode = (hashCode * 397) ^ InstanceId.GetHashCode();

                return(hashCode);
            }
        }
示例#7
0
 public override int GetHashCode()
 {
     unchecked {
         int result = (ClassId != null ? ClassId.GetHashCode() : 0);
         result = (result * 397) ^ (MailService != null ? MailService.GetHashCode() : 0);
         result = (result * 397) ^ Rate.GetHashCode();
         result = (result * 397) ^ CommercialRate.GetHashCode();
         result = (result * 397) ^ (MaxDimensions != null ? MaxDimensions.GetHashCode() : 0);
         result = (result * 397) ^ (SpecialServices != null ? SpecialServices.GetHashCode() : 0);
         return(result);
     }
 }
示例#8
0
 /// <summary>
 /// A custom hash code algorithm that takes into account the values of each property of the <see cref="SpawnInfo"/> instance,
 /// and attempts to reduce diagonal collisions.
 /// </summary>
 /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns>
 public override int GetHashCode()
 {
     unchecked // overflow is fine, just wrap around
     {
         int hash = 13;
         hash = (hash * 7) + TechType.GetHashCode();
         hash = (hash * 7) + ClassId.GetHashCode();
         hash = (hash * 7) + SpawnPosition.GetHashCode();
         hash = (hash * 7) + Rotation.GetHashCode();
         hash = (hash * 7) + Type.GetHashCode();
         return(hash);
     }
 }
示例#9
0
 public override int GetHashCode()
 {
     // https://stackoverflow.com/a/263416/1149773
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + ClassId.GetHashCode();
         hash = hash * 23 + SectionId.GetHashCode();
         hash = hash * 23 + MediumId.GetHashCode();
         hash = hash * 23 + StreamId.GetHashCode();
         hash = hash * 23 + ShiftId.GetHashCode();
         return(hash);
     }
 }
示例#10
0
 public override int GetHashCode()
 {
     // Check the link below for details (Jon Skeet was here)
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + ClassId.GetHashCode();
         hash = hash * 23 + SectionId.GetHashCode();
         hash = hash * 23 + MediumId.GetHashCode();
         hash = hash * 23 + StreamId.GetHashCode();
         hash = hash * 23 + ShiftId.GetHashCode();
         return(hash);
     }
 }
示例#11
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);
        }
示例#12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Protocol != global::PKIo.PassProtocol.DoNotUse)
            {
                hash ^= Protocol.GetHashCode();
            }
            if (ClassId.Length != 0)
            {
                hash ^= ClassId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ShortCode.Length != 0)
            {
                hash ^= ShortCode.GetHashCode();
            }
            if (created_ != null)
            {
                hash ^= Created.GetHashCode();
            }
            if (Secret.Length != 0)
            {
                hash ^= Secret.GetHashCode();
            }
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#13
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Protocol != global::PKIo.PassProtocol.DoNotUse)
            {
                hash ^= Protocol.GetHashCode();
            }
            if (CompanyId.Length != 0)
            {
                hash ^= CompanyId.GetHashCode();
            }
            if (ClassId.Length != 0)
            {
                hash ^= ClassId.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (Status != global::PKIo.MessageStatus.Created)
            {
                hash ^= Status.GetHashCode();
            }
            if (Warning.Length != 0)
            {
                hash ^= Warning.GetHashCode();
            }
            if (ImageId != 0)
            {
                hash ^= ImageId.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (localizedTitle_ != null)
            {
                hash ^= LocalizedTitle.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            if (localizedContent_ != null)
            {
                hash ^= LocalizedContent.GetHashCode();
            }
            if (startDate_ != null)
            {
                hash ^= StartDate.GetHashCode();
            }
            if (endDate_ != null)
            {
                hash ^= EndDate.GetHashCode();
            }
            if (filter_ != null)
            {
                hash ^= Filter.GetHashCode();
            }
            if (RecordsMatchingSegment != 0)
            {
                hash ^= RecordsMatchingSegment.GetHashCode();
            }
            if (RecordsSuccessfullyUpdate != 0)
            {
                hash ^= RecordsSuccessfullyUpdate.GetHashCode();
            }
            if (RecordsFailedToUpdate != 0)
            {
                hash ^= RecordsFailedToUpdate.GetHashCode();
            }
            if (created_ != null)
            {
                hash ^= Created.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }