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

            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasBattleTag)
            {
                hash ^= BattleTag.GetHashCode();
            }
            if (HasCreator)
            {
                hash ^= Creator.GetHashCode();
            }
            hash ^= attribute_.GetHashCode();
            if (HasReason)
            {
                hash ^= Reason.GetHashCode();
            }
            if (HasCreationTime)
            {
                hash ^= CreationTime.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        /// <summary></summary>
        public override int GetHashCode()
        {
            var code = 13;

            // Calculate hash on each properties one by one
            if (Text != null)
            {
                code = (code * 7) + Text.GetHashCode();
            }
            if (User != null)
            {
                code = (code * 7) + User.GetHashCode();
            }
            if (this.Action != null)
            {
                code = (code * 7) + this.Action.GetHashCode();
            }
            if (this.AlarmUrl != null)
            {
                code = (code * 7) + AlarmUrl.GetHashCode();
            }
            if (this.CreationTime != null)
            {
                code = (code * 7) + CreationTime.GetHashCode();
            }
            return(code);
        }
Exemple #3
0
        public override int GetHashCode()
        {
            int hashTime   = CreationTime == null ? 0 : CreationTime.GetHashCode();
            int hashType   = Type == null ? 0 : Type.GetHashCode();
            int hashLength = Length.GetHashCode();

            return(hashTime ^ hashType ^ hashLength);
        }
Exemple #4
0
        public override int GetHashCode()
        {
            int hashTime      = CreationTime == null ? 0 : CreationTime.GetHashCode();
            int hashType      = Type == null ? 0 : Type.GetHashCode();
            int hashComponent = Component.GetHashCode();

            return(hashTime ^ hashType ^ hashComponent);
        }
Exemple #5
0
        public override int GetHashCode()
        {
            int hashTime     = CreationTime == null ? 0 : CreationTime.GetHashCode();
            int hashType     = Type == null ? 0 : Type.GetHashCode();
            int hashDistance = Distance.GetHashCode();

            return(hashTime ^ hashType ^ hashDistance);
        }
Exemple #6
0
        public override int GetHashCode()
        {
            int hashTime    = CreationTime == null ? 0 : CreationTime.GetHashCode();
            int hashType    = Type == null ? 0 : Type.GetHashCode();
            int hashDegrees = Degrees.GetHashCode();

            return(hashTime ^ hashType ^ hashDegrees);
        }
Exemple #7
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);
        }
Exemple #8
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + CreationTime.GetHashCode();
         hash = hash * 23 + ID.GetHashCode();
         return(hash);
     }
 }
Exemple #9
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CreationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Lifetime;
         hashCode = (hashCode * 397) ^ (AccessToken != null ? AccessToken.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Version;
         return(hashCode);
     }
 }
Exemple #10
0
        public override int GetHashCode()
        {
            var code = ClientId.GetHashCode() ^
                       CreationTime.GetHashCode() ^
                       Data.GetHashCode() ^
                       Expiration.GetHashCode() ^
                       Key.GetHashCode() ^
                       SubjectId.GetHashCode() ^
                       Type.GetHashCode();

            return(code);
        }
Exemple #11
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (NodeRef != null ? NodeRef.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsDeleted.GetHashCode();
         hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ModificationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (Properties != null ? Properties.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Fingerprint.GetHashCode();
         hashCode = (hashCode * 397) ^ KeyID.GetHashCode();
         hashCode = (hashCode * 397) ^ UserID.GetHashCode();
         hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Algorithm;
         hashCode = (hashCode * 397) ^ BitLength;
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = (hash * 34) + Name.GetHashCode();
         hash = (hash * 23) + Depth.GetHashCode();
         hash = (hash * 23) + Size.GetHashCode();
         hash = (hash * 23) + CreationTime.GetHashCode();
         hash = (hash * 23) + Attributes.GetHashCode();
         hash = (hash * 23) + IsLeaf.GetHashCode();
         return(hash);
     }
 }
Exemple #14
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Directory?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (FileName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (CompletePath?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Size.GetHashCode();
         hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastWriteTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastAccessTime.GetHashCode();
         return(hashCode);
     }
 }
        /// <summary></summary>
        public override int GetHashCode()
        {
            var code = 13;

            // Calculate hash on each properties one by one
            code = (code * 7) + Id.GetHashCode();
            if (CreationTime != null)
            {
                code = (code * 7) + CreationTime.GetHashCode();
            }
            if (this.ActionTypeUrl != null)
            {
                code = (code * 7) + ActionTypeUrl.GetHashCode();
            }
            if (this.ActionType != null)
            {
                code = (code * 7) + ActionType.GetHashCode();
            }
            code = (code * 7) + Discarded.GetHashCode();
            if (this.StatusUrl != null)
            {
                code = (code * 7) + StatusUrl.GetHashCode();
            }
            if (this.Status != null)
            {
                code = (code * 7) + Status.GetHashCode();
            }
            if (this.ErrorString != null)
            {
                code = (code * 7) + ErrorString.GetHashCode();
            }
            if (this.User != null)
            {
                code = (code * 7) + User.GetHashCode();
            }
            if (this.ObjectUrl != null)
            {
                code = (code * 7) + ObjectUrl.GetHashCode();
            }
            if (this.AnnotationsUrl != null)
            {
                code = (code * 7) + AnnotationsUrl.GetHashCode();
            }
            if (this.Self != null)
            {
                code = (code * 7) + Self.GetHashCode();
            }
            return(code);
        }
Exemple #16
0
 /// <summary> 
 /// Computes and retrieves a hash code for an object. 
 /// </summary> 
 /// <remarks> 
 /// This method implements the <see cref="Object">Object</see> method. 
 /// </remarks> 
 /// <returns>A hash code for an object.</returns>
 public override int GetHashCode()
 {
     return
         (TenantId.GetHashCode()
          + CreatorUserId.GetHashCode()
          + CreationTime.GetHashCode()
          + Name.GetHashCode()
          + DescriptionFull.GetHashCode()
          + DescriptionShort.GetHashCode()
          + LastModifierUserId.GetHashCode()
          + LastModificationTime.GetHashCode()
          + DeletionTime.GetHashCode()
          + DeleterUserId.GetHashCode()
         );
 }
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = Directory != null?Directory.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (FileName != null ? FileName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (CompletePath != null ? CompletePath.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Size.GetHashCode();
                hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
                hashCode = (hashCode * 397) ^ LastWriteTime.GetHashCode();
                hashCode = (hashCode * 397) ^ LastAccessTime.GetHashCode();
                return(hashCode);
            }
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Audiences != null ? Audiences.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Issuer != null ? Issuer.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CreationTime.GetHashCode();
         hashCode = (hashCode * 397) ^ Lifetime;
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ClientId != null ? ClientId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)AccessTokenType;
         hashCode = (hashCode * 397) ^ (Claims != null ? Claims.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Version;
         return(hashCode);
     }
 }
Exemple #19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CreationTime != 0L)
            {
                hash ^= CreationTime.GetHashCode();
            }
            if (Username.Length != 0)
            {
                hash ^= Username.GetHashCode();
            }
            if (Team != 0)
            {
                hash ^= Team.GetHashCode();
            }
            if (Tutorial.Length != 0)
            {
                hash ^= Tutorial.GetHashCode();
            }
            if (avatar_ != null)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (PokeStorage != 0)
            {
                hash ^= PokeStorage.GetHashCode();
            }
            if (ItemStorage != 0)
            {
                hash ^= ItemStorage.GetHashCode();
            }
            if (dailyBonus_ != null)
            {
                hash ^= DailyBonus.GetHashCode();
            }
            if (Badge.Length != 0)
            {
                hash ^= Badge.GetHashCode();
            }
            if (settings_ != null)
            {
                hash ^= Settings.GetHashCode();
            }
            hash ^= currency_.GetHashCode();
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasInviterIdentity)
            {
                hash ^= InviterIdentity.GetHashCode();
            }
            if (HasInviteeIdentity)
            {
                hash ^= InviteeIdentity.GetHashCode();
            }
            if (HasInviterName)
            {
                hash ^= InviterName.GetHashCode();
            }
            if (HasInviteeName)
            {
                hash ^= InviteeName.GetHashCode();
            }
            if (HasInvitationMessage)
            {
                hash ^= InvitationMessage.GetHashCode();
            }
            if (HasCreationTime)
            {
                hash ^= CreationTime.GetHashCode();
            }
            if (HasExpirationTime)
            {
                hash ^= ExpirationTime.GetHashCode();
            }
            if (_extensions != null)
            {
                hash ^= _extensions.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #21
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (Attributes != 0)
            {
                hash ^= Attributes.GetHashCode();
            }
            if (CreationTime != 0L)
            {
                hash ^= CreationTime.GetHashCode();
            }
            if (LastAccessTime != 0L)
            {
                hash ^= LastAccessTime.GetHashCode();
            }
            if (LastWriteTime != 0L)
            {
                hash ^= LastWriteTime.GetHashCode();
            }
            if (Length != 0UL)
            {
                hash ^= Length.GetHashCode();
            }
            if (Checksum.Length != 0)
            {
                hash ^= Checksum.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #22
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (creationTime_ != null)
            {
                hash ^= CreationTime.GetHashCode();
            }
            if (date_ != null)
            {
                hash ^= Date.GetHashCode();
            }
            if (City.Length != 0)
            {
                hash ^= City.GetHashCode();
            }
            if (Context != global::Forecast.Context.InSun)
            {
                hash ^= Context.GetHashCode();
            }
            if (TemperatureC != 0)
            {
                hash ^= TemperatureC.GetHashCode();
            }
            if (Summary != global::Forecast.Summary.Freezing)
            {
                hash ^= Summary.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #23
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 (Email != null)
         {
             hashCode = hashCode * 59 + Email.GetHashCode();
         }
         if (UserId != null)
         {
             hashCode = hashCode * 59 + UserId.GetHashCode();
         }
         if (TimeZone != null)
         {
             hashCode = hashCode * 59 + TimeZone.GetHashCode();
         }
         if (Activated != null)
         {
             hashCode = hashCode * 59 + Activated.GetHashCode();
         }
         if (CreationTime != null)
         {
             hashCode = hashCode * 59 + CreationTime.GetHashCode();
         }
         if (LastModifiedTime != null)
         {
             hashCode = hashCode * 59 + LastModifiedTime.GetHashCode();
         }
         if (LastLoginTime != null)
         {
             hashCode = hashCode * 59 + LastLoginTime.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemple #24
0
        /// <summary>Serves as a hashcode for the specified type</summary>
        public override int GetHashCode()
        {
            string owner = Owner;
            string path  = Path;

            return((owner != null ? owner.GetHashCode() : 0) ^ (path != null ? path.GetHashCode() : 0) ^ CreationTime.GetHashCode());
        }