Esempio n. 1
0
    public override int GetHashCode()
    {
        int hashcode = 157;

        unchecked {
            if (__isset.mid)
            {
                hashcode = (hashcode * 397) + Mid.GetHashCode();
            }
            if (__isset.createdTime)
            {
                hashcode = (hashcode * 397) + CreatedTime.GetHashCode();
            }
            if (__isset.modifiedTime)
            {
                hashcode = (hashcode * 397) + ModifiedTime.GetHashCode();
            }
            if (__isset.status)
            {
                hashcode = (hashcode * 397) + Status.GetHashCode();
            }
            if (__isset.settings)
            {
                hashcode = (hashcode * 397) + Settings.GetHashCode();
            }
            if (__isset.displayNameOverridden)
            {
                hashcode = (hashcode * 397) + DisplayNameOverridden.GetHashCode();
            }
        }
        return(hashcode);
    }
 /// <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 (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Kind != null)
         {
             hashCode = hashCode * 59 + Kind.GetHashCode();
         }
         if (CreatedTime != null)
         {
             hashCode = hashCode * 59 + CreatedTime.GetHashCode();
         }
         if (ModifiedTime != null)
         {
             hashCode = hashCode * 59 + ModifiedTime.GetHashCode();
         }
         if (Author != null)
         {
             hashCode = hashCode * 59 + Author.GetHashCode();
         }
         if (Comments != null)
         {
             hashCode = hashCode * 59 + Comments.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 3
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         return((ModifiedTime.GetHashCode() * 397) ^ (FullPath != null ? FullPath.GetHashCode() : 0));
     }
 }
 /// <summary>
 ///     Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for the current <see cref="T:System.Object" />.</returns>
 public override int GetHashCode()
 {
     return(CreatedTime.GetHashCode()
            ^ DirectoryCount.GetHashCode()
            ^ FileCount.GetHashCode()
            ^ ModifiedTime.GetHashCode()
            ^ Size.GetHashCode());
 }
Esempio n. 5
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Digest != null ? Digest.GetHashCode() : 0);
         result = (result * 397) ^ ModifiedTime.GetHashCode();
         result = (result * 397) ^ Size.GetHashCode();
         result = (result * 397) ^ (FileName != null ? FileName.GetHashCode() : 0);
         return(result);
     }
 }
Esempio n. 6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = CentroidMs1.GetHashCode();
         hashCode = (hashCode * 397) ^ CentroidMs2.GetHashCode();
         hashCode = (hashCode * 397) ^ (LockMassParameters != null ? LockMassParameters.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ServerUrl != null ? ServerUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ModifiedTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (EncodedPath != null ? EncodedPath.GetHashCode() : 0);
         return(hashCode);
     }
 }