示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Priority != 0)
            {
                hash ^= Priority.GetHashCode();
            }
            if (Action != global::Google.Cloud.AppEngine.V1.FirewallRule.Types.Action.UnspecifiedAction)
            {
                hash ^= Action.GetHashCode();
            }
            if (SourceRange.Length != 0)
            {
                hash ^= SourceRange.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (TimestampMsec != 0L)
            {
                hash ^= TimestampMsec.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (Priority != 0)
            {
                hash ^= Priority.GetHashCode();
            }
            if (source_ != null)
            {
                hash ^= Source.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (locality_ != null)
            {
                hash ^= Locality.GetHashCode();
            }
            hash ^= lbEndpoints_.GetHashCode();
            if (loadBalancingWeight_ != null)
            {
                hash ^= LoadBalancingWeight.GetHashCode();
            }
            if (Priority != 0)
            {
                hash ^= Priority.GetHashCode();
            }
            if (proximity_ != null)
            {
                hash ^= Proximity.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (perceptionObstacle_ != null)
            {
                hash ^= PerceptionObstacle.GetHashCode();
            }
            if (Timestamp != 0D)
            {
                hash ^= Timestamp.GetHashCode();
            }
            if (PredictedPeriod != 0D)
            {
                hash ^= PredictedPeriod.GetHashCode();
            }
            hash ^= trajectory_.GetHashCode();
            if (intent_ != null)
            {
                hash ^= Intent.GetHashCode();
            }
            if (priority_ != null)
            {
                hash ^= Priority.GetHashCode();
            }
            if (IsStatic != false)
            {
                hash ^= IsStatic.GetHashCode();
            }
            return(hash);
        }
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Priority != 0)
                    {
                        hash ^= Priority.GetHashCode();
                    }
                    if (maxConnections_ != null)
                    {
                        hash ^= MaxConnections.GetHashCode();
                    }
                    if (maxPendingRequests_ != null)
                    {
                        hash ^= MaxPendingRequests.GetHashCode();
                    }
                    if (maxRequests_ != null)
                    {
                        hash ^= MaxRequests.GetHashCode();
                    }
                    if (maxRetries_ != null)
                    {
                        hash ^= MaxRetries.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
示例#6
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = ProcessTaskId.GetHashCode();
         // Suitable nullity checks etc, of course :)
         if (ProcessTaskName != null)
         {
             hash = hash * 17 + ProcessTaskName.GetHashCode();
         }
         if (ProcessTaskOwner != null)
         {
             hash = hash * 17 + ProcessTaskOwner.GetHashCode();
         }
         if (ParentTaskId != null)
         {
             hash = hash * 17 + ParentTaskId.GetHashCode();
         }
         hash = hash * 17 + Priority.GetHashCode();
         if (ProcessKey != null)
         {
             hash = hash * 17 + ProcessKey.GetHashCode();
         }
         if (ProcessInstanceId != null)
         {
             hash = hash * 17 + ProcessInstanceId.GetHashCode();
         }
         if (ProcessItemDefinitionId != null)
         {
             hash = hash * 17 + ProcessItemDefinitionId.GetHashCode();
         }
         hash = hash * 17 + SuspensionState.GetHashCode();
         return(hash);
     }
 }
示例#7
0
        public override int GetHashCode()
        {
            var prime  = 31;
            var result = 1;

            result = (prime * result) + ((AppId == null) ? 0 : AppId.GetHashCode());
            result = (prime * result) + ((ClusterId == null) ? 0 : ClusterId.GetHashCode());
            result = (prime * result) + ((ContentEncoding == null) ? 0 : ContentEncoding.GetHashCode());
            result = (prime * result) + (int)(ContentLength ^ (ContentLength >> INT_MASK));
            result = (prime * result) + ((ContentType == null) ? 0 : ContentType.GetHashCode());
            result = (prime * result) + ((CorrelationId == null) ? 0 : CorrelationId.GetHashCode());
            result = (prime * result) + ((DeliveryMode == null) ? 0 : DeliveryMode.GetHashCode());
            result = (prime * result) + (int)(DeliveryTag ^ (DeliveryTag >> INT_MASK));
            result = (prime * result) + ((Expiration == null) ? 0 : Expiration.GetHashCode());
            result = (prime * result) + Headers.GetHashCode();
            result = (prime * result) + ((MessageCount == null) ? 0 : MessageCount.GetHashCode());
            result = (prime * result) + ((MessageId == null) ? 0 : MessageId.GetHashCode());
            result = (prime * result) + ((Priority == null) ? 0 : Priority.GetHashCode());
            result = (prime * result) + ((ReceivedExchange == null) ? 0 : ReceivedExchange.GetHashCode());
            result = (prime * result) + ((ReceivedRoutingKey == null) ? 0 : ReceivedRoutingKey.GetHashCode());
            result = (prime * result) + ((Redelivered == null) ? 0 : Redelivered.GetHashCode());
            result = (prime * result) + ((ReplyTo == null) ? 0 : ReplyTo.GetHashCode());
            result = (prime * result) + ((Timestamp == null) ? 0 : Timestamp.GetHashCode());
            result = (prime * result) + ((Type == null) ? 0 : Type.GetHashCode());
            result = (prime * result) + ((UserId == null) ? 0 : UserId.GetHashCode());
            return(result);
        }
        /// <summary>
        ///     Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked             // Overflow is fine, just wrap
            {
                int hashCode = 41;
                // Suitable nullity checks etc, of course :)

                hashCode = hashCode * 59 + EnergyCubes.GetHashCode();

                hashCode = hashCode * 59 + Health.GetHashCode();

                hashCode = hashCode * 59 + Active.GetHashCode();

                hashCode = hashCode * 59 + Virtual.GetHashCode();

                hashCode = hashCode * 59 + Priority.GetHashCode();

                hashCode = hashCode * 59 + OnTurn.GetHashCode();

                hashCode = hashCode * 59 + IsMine.GetHashCode();

                hashCode = hashCode * 59 + HandCards.GetHashCode();

                hashCode = hashCode * 59 + Attitude.GetHashCode();

                hashCode = hashCode * 59 + Type.GetHashCode();
                return(hashCode);
            }
        }
示例#9
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Priority != null)
         {
             hashCode = hashCode * 59 + Priority.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Address != null)
         {
             hashCode = hashCode * 59 + Address.GetHashCode();
         }
         if (Duration != null)
         {
             hashCode = hashCode * 59 + Duration.GetHashCode();
         }
         if (PreparationTime != null)
         {
             hashCode = hashCode * 59 + PreparationTime.GetHashCode();
         }
         if (TimeWindows != null)
         {
             hashCode = hashCode * 59 + TimeWindows.GetHashCode();
         }
         if (Size != null)
         {
             hashCode = hashCode * 59 + Size.GetHashCode();
         }
         if (RequiredSkills != null)
         {
             hashCode = hashCode * 59 + RequiredSkills.GetHashCode();
         }
         if (AllowedVehicles != null)
         {
             hashCode = hashCode * 59 + AllowedVehicles.GetHashCode();
         }
         if (DisallowedVehicles != null)
         {
             hashCode = hashCode * 59 + DisallowedVehicles.GetHashCode();
         }
         if (MaxTimeInVehicle != null)
         {
             hashCode = hashCode * 59 + MaxTimeInVehicle.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#10
0
        // Used to diff for config changes
        internal int GetConfigHash()
        {
            var hash = 0;

            if (!string.IsNullOrEmpty(RouteId))
            {
                hash ^= RouteId.GetHashCode();
            }

            if (Methods != null && Methods.Count > 0)
            {
                // Assumes un-ordered
                hash ^= Methods.Select(item => item.GetHashCode())
                        .Aggregate((total, nextCode) => total ^ nextCode);
            }

            if (!string.IsNullOrEmpty(Host))
            {
                hash ^= Host.GetHashCode();
            }

            if (!string.IsNullOrEmpty(Path))
            {
                hash ^= Path.GetHashCode();
            }

            if (Priority.HasValue)
            {
                hash ^= Priority.GetHashCode();
            }

            if (!string.IsNullOrEmpty(ClusterId))
            {
                hash ^= ClusterId.GetHashCode();
            }

            if (!string.IsNullOrEmpty(AuthorizationPolicy))
            {
                hash ^= AuthorizationPolicy.GetHashCode();
            }

            if (Metadata != null)
            {
                hash ^= Metadata.Select(item => HashCode.Combine(item.Key.GetHashCode(), item.Value.GetHashCode()))
                        .Aggregate((total, nextCode) => total ^ nextCode);
            }

            if (Transforms != null)
            {
                hash ^= Transforms.Select(transform =>
                                          transform.Select(item => HashCode.Combine(item.Key.GetHashCode(), item.Value.GetHashCode()))
                                          .Aggregate((total, nextCode) => total ^ nextCode)) // Unordered Dictionary
                        .Aggregate(seed: 397, (total, nextCode) => total * 31 ^ nextCode);   // Ordered List
            }

            return(hash);
        }
示例#11
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(CurrentCulture.GetHashCode() * CurrentUICulture.GetHashCode() * ManagedThreadId.GetHashCode()
                * Priority.GetHashCode() * ThreadName.GetHashCode() * ThreadState.GetHashCode()
                * IsBackground.GetHashCode() * IsThreadPoolThread.GetHashCode());
     }
 }
示例#12
0
        /// <summary></summary>
        public override int GetHashCode()
        {
            var code = 13;

            // Calculate hash on each properties one by one
            code = (code * 7) + Id.GetHashCode();
            if (ItemReference != null)
            {
                code = (code * 7) + ItemReference.GetHashCode();
            }
            if (this.AnnotationsUrl != null)
            {
                code = (code * 7) + AnnotationsUrl.GetHashCode();
            }
            if (this.CategoryUrl != null)
            {
                code = (code * 7) + CategoryUrl.GetHashCode();
            }
            if (this.CreationTime != null)
            {
                code = (code * 7) + CreationTime.GetHashCode();
            }
            code = (code * 7) + IsAckRequired.GetHashCode();
            code = (code * 7) + IsAcknowledged.GetHashCode();
            code = (code * 7) + IsDiscarded.GetHashCode();
            if (this.Message != null)
            {
                code = (code * 7) + Message.GetHashCode();
            }
            if (this.Name != null)
            {
                code = (code * 7) + Name.GetHashCode();
            }
            if (this.ObjectUrl != null)
            {
                code = (code * 7) + ObjectUrl.GetHashCode();
            }
            code = (code * 7) + Priority.GetHashCode();
            if (this.Self != null)
            {
                code = (code * 7) + Self.GetHashCode();
            }
            if (this.TypeUrl != null)
            {
                code = (code * 7) + TypeUrl.GetHashCode();
            }
            if (this.Type != null)
            {
                code = (code * 7) + Type.GetHashCode();
            }
            if (this.Category != null)
            {
                code = (code * 7) + Category.GetHashCode();
            }
            return(code);
        }
示例#13
0
        public override int GetHashCode()
        {
            var hashCode = 1490284165;

            hashCode = hashCode * -1521134295 + AxisNumber.GetHashCode();
            hashCode = hashCode * -1521134295 + Value.GetHashCode();
            hashCode = hashCode * -1521134295 + Priority.GetHashCode();
            hashCode = hashCode * -1521134295 + Duration.GetHashCode();
            return(hashCode);
        }
示例#14
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (Priority.GetHashCode());
         hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#15
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Handler != null ? Handler.GetHashCode() : 0);
         result = (result * 397) ^ Option.GetHashCode();
         result = (result * 397) ^ Priority.GetHashCode();
         result = (result * 397) ^ Delay;
         return(result);
     }
 }
示例#16
0
 public int GetHashCode(IEqualityComparer comparer)
 {
     unchecked
     {
         var hashCode = ChangeFrequency.GetHashCode();
         hashCode = (hashCode * 397) ^ LastModified.GetHashCode();
         hashCode = (hashCode * 397) ^ Priority.GetHashCode();
         hashCode = (hashCode * 397) ^ (Url?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Metadata?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
示例#17
0
        public override int GetHashCode()
        {
            var hashCode = 1477292275;

            hashCode = hashCode * -1521134295 + Priority.GetHashCode();
            hashCode = hashCode * -1521134295 + ActivityUse.GetHashCode();
            hashCode = hashCode * -1521134295 + X.GetHashCode();
            hashCode = hashCode * -1521134295 + Y.GetHashCode();
            hashCode = hashCode * -1521134295 + Width.GetHashCode();
            hashCode = hashCode * -1521134295 + Height.GetHashCode();
            hashCode = hashCode * -1521134295 + CanStack.GetHashCode();
            return(hashCode);
        }
示例#18
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyMemberInGetHashCode
         var hashCode = ChangeFrequency.GetHashCode();
         hashCode = (hashCode * 397) ^ LastModified.GetHashCode();
         hashCode = (hashCode * 397) ^ Priority.GetHashCode();
         hashCode = (hashCode * 397) ^ (Url?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Metadata?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
示例#19
0
        /// <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 (UpdatedTimestamp != null)
                {
                    hashCode = hashCode * 59 + UpdatedTimestamp.GetHashCode();
                }
                if (Fee != null)
                {
                    hashCode = hashCode * 59 + Fee.GetHashCode();
                }
                if (ConfirmedTimestamp != null)
                {
                    hashCode = hashCode * 59 + ConfirmedTimestamp.GetHashCode();
                }
                if (Amount != null)
                {
                    hashCode = hashCode * 59 + Amount.GetHashCode();
                }
                if (Priority != null)
                {
                    hashCode = hashCode * 59 + Priority.GetHashCode();
                }

                hashCode = hashCode * 59 + Currency.GetHashCode();

                hashCode = hashCode * 59 + State.GetHashCode();
                if (Address != null)
                {
                    hashCode = hashCode * 59 + Address.GetHashCode();
                }
                if (CreatedTimestamp != null)
                {
                    hashCode = hashCode * 59 + CreatedTimestamp.GetHashCode();
                }
                if (Id != null)
                {
                    hashCode = hashCode * 59 + Id.GetHashCode();
                }
                if (TransactionId != null)
                {
                    hashCode = hashCode * 59 + TransactionId.GetHashCode();
                }
                return(hashCode);
            }
        }
示例#20
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Priority != null)
         {
             hashCode = hashCode * 59 + Priority.GetHashCode();
         }
         if (Pickup != null)
         {
             hashCode = hashCode * 59 + Pickup.GetHashCode();
         }
         if (Delivery != null)
         {
             hashCode = hashCode * 59 + Delivery.GetHashCode();
         }
         if (Size != null)
         {
             hashCode = hashCode * 59 + Size.GetHashCode();
         }
         if (RequiredSkills != null)
         {
             hashCode = hashCode * 59 + RequiredSkills.GetHashCode();
         }
         if (AllowedVehicles != null)
         {
             hashCode = hashCode * 59 + AllowedVehicles.GetHashCode();
         }
         if (DisallowedVehicles != null)
         {
             hashCode = hashCode * 59 + DisallowedVehicles.GetHashCode();
         }
         if (MaxTimeInVehicle != null)
         {
             hashCode = hashCode * 59 + MaxTimeInVehicle.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#21
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Type.GetHashCode();
         hashCode = (hashCode * 397) ^ (Info != null ? Info.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Priority.GetHashCode();
         hashCode = (hashCode * 397) ^ Blue.GetHashCode();
         hashCode = (hashCode * 397) ^ (Location != null ? Location.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Destination != null ? Destination.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Units != null ? Units.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NextStateAction != null ? NextStateAction.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#22
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DtStart?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Priority.GetHashCode();
         hashCode = (hashCode * 397) ^ (Summary?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Class?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RecurrenceId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Attachments);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Categories);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Contacts);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(ExceptionDates);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(ExceptionRules);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(RecurrenceDates);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(RecurrenceRules);
         return(hashCode);
     }
 }
示例#23
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Project != null ? Project.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Tracker != null ? Tracker.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Priority != null ? Priority.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Author != null ? Author.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Subject != null ? Subject.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ StartDate.GetHashCode();
         hashCode = (hashCode * 397) ^ DueDate.GetHashCode();
         hashCode = (hashCode * 397) ^ DoneRatio.GetHashCode();
         hashCode = (hashCode * 397) ^ PrivateNotes.GetHashCode();
         hashCode = (hashCode * 397) ^ EstimatedHours.GetHashCode();
         hashCode = (hashCode * 397) ^ SpentHours.GetHashCode();
         hashCode = (hashCode * 397) ^ (CustomFields != null ? CustomFields.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CreatedOn.GetHashCode();
         hashCode = (hashCode * 397) ^ UpdatedOn.GetHashCode();
         hashCode = (hashCode * 397) ^ ClosedOn.GetHashCode();
         hashCode = (hashCode * 397) ^ (Notes != null ? Notes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AssignedTo != null ? AssignedTo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ParentIssue != null ? ParentIssue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FixedVersion != null ? FixedVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsPrivate.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalSpentHours.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalEstimatedHours.GetHashCode();
         hashCode = (hashCode * 397) ^ (Journals != null ? Journals.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Changesets != null ? Changesets.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Attachments != null ? Attachments.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Relations != null ? Relations.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Children != null ? Children.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Uploads != null ? Uploads.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Watchers != null ? Watchers.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#24
0
 public override int GetHashCode()
 {
     unchecked {
         int result = (comments != null ? comments.GetHashCode() : 0);
         result = (result * 397) ^ (versions != null ? versions.GetHashCode() : 0);
         result = (result * 397) ^ (fixVersions != null ? fixVersions.GetHashCode() : 0);
         result = (result * 397) ^ (SubtaskKeys.GetHashCode());
         result = (result * 397) ^ (IssueLinks.GetHashCode());
         result = (result * 397) ^ (components != null ? components.GetHashCode() : 0);
         result = (result * 397) ^ (attachments != null ? attachments.GetHashCode() : 0);
         result = (result * 397) ^ (Server != null ? Server.GUID.GetHashCode() : 0);
         result = (result * 397) ^ (IssueType != null ? IssueType.GetHashCode() : 0);
         result = (result * 397) ^ IssueTypeId;
         result = (result * 397) ^ (IssueTypeIconUrl != null ? IssueTypeIconUrl.GetHashCode() : 0);
         result = (result * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         result = (result * 397) ^ Id;
         result = (result * 397) ^ (Key != null ? Key.GetHashCode() : 0);
         result = (result * 397) ^ (Summary != null ? Summary.GetHashCode() : 0);
         result = (result * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         result = (result * 397) ^ (StatusIconUrl != null ? StatusIconUrl.GetHashCode() : 0);
         result = (result * 397) ^ (Priority != null ? Priority.GetHashCode() : 0);
         result = (result * 397) ^ (Resolution != null ? Resolution.GetHashCode() : 0);
         result = (result * 397) ^ (Reporter != null ? Reporter.GetHashCode() : 0);
         result = (result * 397) ^ (Assignee != null ? Assignee.GetHashCode() : 0);
         result = (result * 397) ^ CreationDate.GetHashCode();
         result = (result * 397) ^ UpdateDate.GetHashCode();
         result = (result * 397) ^ (ProjectKey != null ? ProjectKey.GetHashCode() : 0);
         result = (result * 397) ^ (Environment != null ? Environment.GetHashCode() : 0);
         result = (result * 397) ^ (OriginalEstimate != null ? OriginalEstimate.GetHashCode() : 0);
         result = (result * 397) ^ (RemainingEstimate != null ? RemainingEstimate.GetHashCode() : 0);
         result = (result * 397) ^ (TimeSpent != null ? TimeSpent.GetHashCode() : 0);
         result = (result * 397) ^ (ParentKey != null ? ParentKey.GetHashCode() : 0);
         result = (result * 397) ^ (PriorityIconUrl != null ? PriorityIconUrl.GetHashCode() : 0);
         result = (result * 397) ^ StatusId;
         result = (result * 397) ^ PriorityId;
         return(result);
     }
 }
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (Priority != global::Envoy.Api.V3Alpha.Core.RoutingPriority.Default)
                    {
                        hash ^= Priority.GetHashCode();
                    }
                    if (maxConnections_ != null)
                    {
                        hash ^= MaxConnections.GetHashCode();
                    }
                    if (maxPendingRequests_ != null)
                    {
                        hash ^= MaxPendingRequests.GetHashCode();
                    }
                    if (maxRequests_ != null)
                    {
                        hash ^= MaxRequests.GetHashCode();
                    }
                    if (maxRetries_ != null)
                    {
                        hash ^= MaxRetries.GetHashCode();
                    }
                    if (TrackRemaining != false)
                    {
                        hash ^= TrackRemaining.GetHashCode();
                    }
                    if (maxConnectionPools_ != null)
                    {
                        hash ^= MaxConnectionPools.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Id;
         hashCode = (hashCode * 397) ^ (ServiceEntry != null ? ServiceEntry.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PriceId != null ? PriceId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AlgoName != null ? AlgoName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UseWindow.GetHashCode();
         hashCode = (hashCode * 397) ^ MinProfit.GetHashCode();
         hashCode = (hashCode * 397) ^ Hashrate.GetHashCode();
         hashCode = (hashCode * 397) ^ Power.GetHashCode();
         hashCode = (hashCode * 397) ^ (Priority != null ? Priority.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Affinity;
         hashCode = (hashCode * 397) ^ (Folder != null ? Folder.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Command != null ? Command.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Arguments != null ? Arguments.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DonationFolder != null ? DonationFolder.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DonationCommand != null ? DonationCommand.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DonationArguments != null ? DonationArguments.GetHashCode() : 0);
         return(hashCode);
     }
 }
 /// <summary>
 /// 获取哈希码。
 /// </summary>
 /// <returns>返回整数。</returns>
 public override int GetHashCode()
 => Priority.GetHashCode();
示例#28
0
        } // end of Eqals

        #endregion

        #region GetHashCode

        /// <summary>
        /// For hashable objects, sums hash codes of attributes
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            return(Priority.GetHashCode() + Category.GetHashCode() + ArrivalMode.GetHashCode());
        } // end of GetHashCode
示例#29
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((AssignedTo != null ? AssignedTo.GetHashCode() : 0) ^ (ReportedBy != null ? ReportedBy.GetHashCode() : 0) ^ (Status != null ? Status.GetHashCode() : 0) ^ (Kind != null ? Kind.GetHashCode() : 0) ^ (Priority != null ? Priority.GetHashCode() : 0) ^ OrderBy.GetHashCode());
     }
 }
示例#30
0
 public override int GetHashCode()
 {
     return(Priority.GetHashCode());
 }