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

            if (version_ != null)
            {
                hash ^= Version.GetHashCode();
            }
            if (ownerId_ != null)
            {
                hash ^= OwnerId.GetHashCode();
            }
            if (Nonce.Length != 0)
            {
                hash ^= Nonce.GetHashCode();
            }
            if (BasicAcl != 0)
            {
                hash ^= BasicAcl.GetHashCode();
            }
            hash ^= attributes_.GetHashCode();
            if (placementPolicy_ != null)
            {
                hash ^= PlacementPolicy.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (RequestId.Length != 0)
            {
                hash ^= RequestId.GetHashCode();
            }
            if (OwnerId.Length != 0)
            {
                hash ^= OwnerId.GetHashCode();
            }
            if (Skip != 0)
            {
                hash ^= Skip.GetHashCode();
            }
            if (Take != 0)
            {
                hash ^= Take.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Trigger != global::RedNimbus.Messages.LambdaMessage.Types.TriggerType.Get)
            {
                hash ^= Trigger.GetHashCode();
            }
            if (Runtime != global::RedNimbus.Messages.LambdaMessage.Types.RuntimeType.Csharp)
            {
                hash ^= Runtime.GetHashCode();
            }
            if (OwnerId.Length != 0)
            {
                hash ^= OwnerId.GetHashCode();
            }
            if (ImageId.Length != 0)
            {
                hash ^= ImageId.GetHashCode();
            }
            if (Guid.Length != 0)
            {
                hash ^= Guid.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #4
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 + Id.GetHashCode();

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

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

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

                hash = hash * 59 + IsHired.GetHashCode();

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

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

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

                hash = hash * 59 + AttachmentCount.GetHashCode();

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

                hash = hash * 59 + SenioritySortOrder.GetHashCode();

                return(hash);
            }
        }
Beispiel #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = OwnerId.GetHashCode();
         hashCode = (hashCode * 397) ^ (OwnerResource != null ? OwnerResource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ValueType != null ? ValueType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #6
0
        public override int GetHashCode()
        {
            unchecked
            {
                if (LocalDocumentAnchor == 0)
                {
                    return(0);
                }

                return((LocalDocumentAnchor.GetHashCode() * 397) ^ OwnerId.GetHashCode());
            }
        }
Beispiel #7
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         // Suitable nullity checks etc, of course :)
         hash = hash * 23 + OwnerId.GetHashCode();
         hash = hash * 23 + LegalFormOfOwner.GetHashCode();
         hash = hash * 23 + CountryOfOwner.GetHashCode();
         return(hash);
     }
 }
Beispiel #8
0
        /// <summary>
        ///   Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        ///   A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode()
        {
            unchecked
            {
                int result = Name != null?Name.GetHashCode() : 0;

                result = (result * 397) ^ Id.GetHashCode();
                result = (result * 397) ^ Space.GetHashCode();
                result = (result * 397) ^ OwnerId.GetHashCode();
                result = (result * 397) ^ Enabled.GetHashCode();
                return(result);
            }
        }
Beispiel #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CreatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (Key != null ? Key.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Namespace != null ? Namespace.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ OwnerId.GetHashCode();
         hashCode = (hashCode * 397) ^ (OwnerResource != null ? OwnerResource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode();
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ValueType != null ? ValueType.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #10
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (ownerId_ != null)
                    {
                        hash ^= OwnerId.GetHashCode();
                    }
                    if (Expiration != 0UL)
                    {
                        hash ^= Expiration.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
Beispiel #11
0
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^ ParentId.GetHashCode() ^ OwnerId.GetHashCode());
 }
Beispiel #12
0
 public override int GetHashCode()
 {
     return(subjectId.GetHashCode() + OwnerId.GetHashCode());
 }
Beispiel #13
0
                public override int GetHashCode()
                {
                    int num = 1;

                    if (EntityId != 0)
                    {
                        num ^= EntityId.GetHashCode();
                    }
                    if (EntityType != 0)
                    {
                        num ^= EntityType.GetHashCode();
                    }
                    if (name_ != null)
                    {
                        num ^= Name.GetHashCode();
                    }
                    if (defId_.HasValue)
                    {
                        num ^= DefId.GetHashCode();
                    }
                    if (weaponId_.HasValue)
                    {
                        num ^= WeaponId.GetHashCode();
                    }
                    if (genderId_.HasValue)
                    {
                        num ^= GenderId.GetHashCode();
                    }
                    if (playerIndexInFight_.HasValue)
                    {
                        num ^= PlayerIndexInFight.GetHashCode();
                    }
                    if (ownerId_.HasValue)
                    {
                        num ^= OwnerId.GetHashCode();
                    }
                    if (teamId_.HasValue)
                    {
                        num ^= TeamId.GetHashCode();
                    }
                    if (level_.HasValue)
                    {
                        num ^= Level.GetHashCode();
                    }
                    num ^= ((object)properties_).GetHashCode();
                    if (position_ != null)
                    {
                        num ^= Position.GetHashCode();
                    }
                    if (direction_.HasValue)
                    {
                        num ^= Direction.GetHashCode();
                    }
                    num ^= ((object)Caracs).GetHashCode();
                    if (customSkin_ != null)
                    {
                        num ^= CustomSkin.GetHashCode();
                    }
                    if (actionDoneThisTurn_.HasValue)
                    {
                        num ^= ActionDoneThisTurn.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        num ^= ((object)_unknownFields).GetHashCode();
                    }
                    return(num);
                }
Beispiel #14
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 + Id.GetHashCode();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                hash = hash * 59 + SenioritySortOrder.GetHashCode();

                return(hash);
            }
        }