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

            if (TotalCount != 0)
            {
                hash ^= TotalCount.GetHashCode();
            }
            if (ItemCount != 0)
            {
                hash ^= ItemCount.GetHashCode();
            }
            if (StartIndex != 0)
            {
                hash ^= StartIndex.GetHashCode();
            }
            if (EndIndex != 0)
            {
                hash ^= EndIndex.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
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 :)

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

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

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

                hashCode = hashCode * 59 + TotalPages.GetHashCode();
                if (PreviousPageInputParameters != null)
                {
                    hashCode = hashCode * 59 + PreviousPageInputParameters.GetHashCode();
                }
                if (NextPageInputParameters != null)
                {
                    hashCode = hashCode * 59 + NextPageInputParameters.GetHashCode();
                }
                return(hashCode);
            }
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hashCode = -391454100;

            hashCode = hashCode * -1521134295 + TotalCount.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <PhotoSize[][]> .Default.GetHashCode(Photos);

            return(hashCode);
        }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            var hashCode = 465562093;

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

            hashCode = hashCode * -1521134295 + DailyCount.GetHashCode();
            hashCode = hashCode * -1521134295 + TotalCount.GetHashCode();
            hashCode = hashCode * -1521134295 + DailyDCount.GetHashCode();
            hashCode = hashCode * -1521134295 + TotalDCount.GetHashCode();
            return(hashCode);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Serves as the default hash function.
        /// </summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            var hashCode = 543595584;

            hashCode = (hashCode * -1521134295) + TotalCount.GetHashCode();
            hashCode = (hashCode * -1521134295) + TotalCountChange.GetHashCode();
            hashCode = (hashCode * -1521134295) + CurrentCount.GetHashCode();
            hashCode = (hashCode * -1521134295) + CurrentCountChange.GetHashCode();
            hashCode = (hashCode * -1521134295) + EqualityComparer <InstanceHandle> .Default.GetHashCode(LastSubscriptionHandle);

            return(hashCode);
        }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     return(Tenant.GetHashCode()
            ^ User.GetHashCode()
            ^ Id.GetHashCode()
            ^ ParentId.GetHashCode()
            ^ Name.GetHashCode()
            ^ FolderCount.GetHashCode()
            ^ UnreadCount.GetHashCode()
            ^ TotalCount.GetHashCode()
            ^ UnreadChainCount.GetHashCode()
            ^ TotalChainCount.GetHashCode());
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Serves as the default hash function.
        /// </summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            var hashCode = 751819449;

            hashCode = (hashCode * -1521134295) + TotalCount.GetHashCode();
            hashCode = (hashCode * -1521134295) + TotalCountChange.GetHashCode();
            hashCode = (hashCode * -1521134295) + LastPolicyId.GetHashCode();

            foreach (var p in Policies)
            {
                hashCode = (hashCode * -1521134295) + p.GetHashCode();
            }

            return(hashCode);
        }
Ejemplo n.º 8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TotalCount != 0)
            {
                hash ^= TotalCount.GetHashCode();
            }
            hash ^= fills_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 9
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 (TotalCount != null)
         {
             hashCode = hashCode * 59 + TotalCount.GetHashCode();
         }
         if (Items != null)
         {
             hashCode = hashCode * 59 + Items.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (StateDescription.Length != 0)
            {
                hash ^= StateDescription.GetHashCode();
            }
            if (SuccessCount != 0)
            {
                hash ^= SuccessCount.GetHashCode();
            }
            if (FailureCount != 0)
            {
                hash ^= FailureCount.GetHashCode();
            }
            if (TotalCount != 0)
            {
                hash ^= TotalCount.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (endTime_ != null)
            {
                hash ^= EndTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Serves as the default hash function.
        /// </summary>
        /// <returns>
        /// A hash code for the current object.
        /// </returns>
        public override int GetHashCode()
        {
            // From http://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode/263416#263416
            unchecked // Overflow is fine, just wrap
            {
                var hash = 17;
                // Suitable nullity checks etc, of course :)
                hash = hash * 23 + HighestTrackableValue.GetHashCode();
                hash = hash * 23 + NumberOfSignificantValueDigits.GetHashCode();
                hash = hash * 23 + CountsArrayLength.GetHashCode();
                hash = hash * 23 + TotalCount.GetHashCode();

                for (var i = 0; i < CountsArrayLength; i++)
                {
                    hash = hash * 23 + GetCountAtIndex(i).GetHashCode();
                }

                return(hash);
            }
        }