Ejemplo n.º 1
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 (Label != null)
         {
             hashCode = hashCode * 59 + Label.GetHashCode();
         }
         if (LanguageCode != null)
         {
             hashCode = hashCode * 59 + LanguageCode.GetHashCode();
         }
         if (IsManaged != null)
         {
             hashCode = hashCode * 59 + IsManaged.GetHashCode();
         }
         if (MetadataId != null)
         {
             hashCode = hashCode * 59 + MetadataId.GetHashCode();
         }
         if (HasChanged != null)
         {
             hashCode = hashCode * 59 + HasChanged.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if InlineResponseDefault7Options instances are equal
        /// </summary>
        /// <param name="other">Instance of InlineResponseDefault7Options to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InlineResponseDefault7Options other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Value == other.Value ||
                     Value != null &&
                     Value.Equals(other.Value)
                     ) &&
                 (
                     Color == other.Color ||
                     Color != null &&
                     Color.Equals(other.Color)
                 ) &&
                 (
                     IsManaged == other.IsManaged ||
                     IsManaged != null &&
                     IsManaged.Equals(other.IsManaged)
                 ) &&
                 (
                     ExternalValue == other.ExternalValue ||
                     ExternalValue != null &&
                     ExternalValue.Equals(other.ExternalValue)
                 ) &&
                 (
                     ParentValues == other.ParentValues ||
                     ParentValues != null &&
                     ParentValues.SequenceEqual(other.ParentValues)
                 ) &&
                 (
                     MetadataId == other.MetadataId ||
                     MetadataId != null &&
                     MetadataId.Equals(other.MetadataId)
                 ) &&
                 (
                     HasChanged == other.HasChanged ||
                     HasChanged != null &&
                     HasChanged.Equals(other.HasChanged)
                 ) &&
                 (
                     Label == other.Label ||
                     Label != null &&
                     Label.Equals(other.Label)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ));
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + Version.GetHashCode();
            hash = hash * 23 + ImageBase.GetHashCode();
            hash = hash * 23 + FilePath.GetHashCode();
            hash = hash * 23 + FileName.GetHashCode();
            hash = hash * 23 + FileSize.GetHashCode();
            hash = hash * 23 + IsManaged.GetHashCode();
            hash = hash * 23 + TimeStamp.GetHashCode();
            hash = hash * 23 + PdbInfo.GetHashCode();
            hash = hash * 23 + Tags.GetHashCode();
            return(hash);
        }
Ejemplo n.º 4
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>
        /// <inheritdoc />
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = FileName != null?FileName.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (int)FileSize;
                hashCode = (hashCode * 397) ^ ImageBase.GetHashCode();
                hashCode = (hashCode * 397) ^ IsManaged.GetHashCode();
                hashCode = (hashCode * 397) ^ IsRuntime.GetHashCode();
                hashCode = (hashCode * 397) ^ (Pdb != null ? Pdb.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (PeFile != null ? PeFile.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (int)TimeStamp;
                hashCode = (hashCode * 397) ^ Version.GetHashCode();
                return(hashCode);
            }
        }
Ejemplo n.º 5
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 (Value != null)
         {
             hashCode = hashCode * 59 + Value.GetHashCode();
         }
         if (Color != null)
         {
             hashCode = hashCode * 59 + Color.GetHashCode();
         }
         if (IsManaged != null)
         {
             hashCode = hashCode * 59 + IsManaged.GetHashCode();
         }
         if (ExternalValue != null)
         {
             hashCode = hashCode * 59 + ExternalValue.GetHashCode();
         }
         if (ParentValues != null)
         {
             hashCode = hashCode * 59 + ParentValues.GetHashCode();
         }
         if (MetadataId != null)
         {
             hashCode = hashCode * 59 + MetadataId.GetHashCode();
         }
         if (HasChanged != null)
         {
             hashCode = hashCode * 59 + HasChanged.GetHashCode();
         }
         if (Label != null)
         {
             hashCode = hashCode * 59 + Label.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (PassportId != null)
         {
             hashCode = hashCode * 59 + PassportId.GetHashCode();
         }
         hashCode = hashCode * 59 + PlanId.GetHashCode();
         if (OptionalLinkedSubscriptionId != null)
         {
             hashCode = hashCode * 59 + OptionalLinkedSubscriptionId.GetHashCode();
         }
         if (SubscriptionDate != null)
         {
             hashCode = hashCode * 59 + SubscriptionDate.GetHashCode();
         }
         if (ExpirationDate != null)
         {
             hashCode = hashCode * 59 + ExpirationDate.GetHashCode();
         }
         hashCode = hashCode * 59 + CurrentTokensUsed.GetHashCode();
         hashCode = hashCode * 59 + ExtraTokens.GetHashCode();
         if (ExtraTokensEndDate != null)
         {
             hashCode = hashCode * 59 + ExtraTokensEndDate.GetHashCode();
         }
         hashCode = hashCode * 59 + IsYearlyPaid.GetHashCode();
         hashCode = hashCode * 59 + IsActive.GetHashCode();
         hashCode = hashCode * 59 + TokensPercentUsageAlert.GetHashCode();
         hashCode = hashCode * 59 + TokensPercentUsageAlertSent.GetHashCode();
         hashCode = hashCode * 59 + IsManaged.GetHashCode();
         if (NextMonthlyTerm != null)
         {
             hashCode = hashCode * 59 + NextMonthlyTerm.GetHashCode();
         }
         hashCode = hashCode * 59 + RemainingTokens.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Returns true if InlineResponseDefault6OptionSetDescriptionUserLocalizedLabel instances are equal
        /// </summary>
        /// <param name="other">Instance of InlineResponseDefault6OptionSetDescriptionUserLocalizedLabel to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InlineResponseDefault6OptionSetDescriptionUserLocalizedLabel other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Label == other.Label ||
                     Label != null &&
                     Label.Equals(other.Label)
                     ) &&
                 (
                     LanguageCode == other.LanguageCode ||
                     LanguageCode != null &&
                     LanguageCode.Equals(other.LanguageCode)
                 ) &&
                 (
                     IsManaged == other.IsManaged ||
                     IsManaged != null &&
                     IsManaged.Equals(other.IsManaged)
                 ) &&
                 (
                     MetadataId == other.MetadataId ||
                     MetadataId != null &&
                     MetadataId.Equals(other.MetadataId)
                 ) &&
                 (
                     HasChanged == other.HasChanged ||
                     HasChanged != null &&
                     HasChanged.Equals(other.HasChanged)
                 ));
        }
Ejemplo n.º 8
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 (OdataContext != null)
         {
             hashCode = hashCode * 59 + OdataContext.GetHashCode();
         }
         if (OdataType != null)
         {
             hashCode = hashCode * 59 + OdataType.GetHashCode();
         }
         if (ParentOptionSetName != null)
         {
             hashCode = hashCode * 59 + ParentOptionSetName.GetHashCode();
         }
         if (IsCustomOptionSet != null)
         {
             hashCode = hashCode * 59 + IsCustomOptionSet.GetHashCode();
         }
         if (IsGlobal != null)
         {
             hashCode = hashCode * 59 + IsGlobal.GetHashCode();
         }
         if (IsManaged != null)
         {
             hashCode = hashCode * 59 + IsManaged.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (ExternalTypeName != null)
         {
             hashCode = hashCode * 59 + ExternalTypeName.GetHashCode();
         }
         if (OptionSetType != null)
         {
             hashCode = hashCode * 59 + OptionSetType.GetHashCode();
         }
         if (IntroducedVersion != null)
         {
             hashCode = hashCode * 59 + IntroducedVersion.GetHashCode();
         }
         if (MetadataId != null)
         {
             hashCode = hashCode * 59 + MetadataId.GetHashCode();
         }
         if (HasChanged != null)
         {
             hashCode = hashCode * 59 + HasChanged.GetHashCode();
         }
         if (Options != null)
         {
             hashCode = hashCode * 59 + Options.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (DisplayName != null)
         {
             hashCode = hashCode * 59 + DisplayName.GetHashCode();
         }
         if (IsCustomizable != null)
         {
             hashCode = hashCode * 59 + IsCustomizable.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 9
0
        /// <summary>
        /// Returns true if InlineResponseDefault7 instances are equal
        /// </summary>
        /// <param name="other">Instance of InlineResponseDefault7 to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InlineResponseDefault7 other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     OdataContext == other.OdataContext ||
                     OdataContext != null &&
                     OdataContext.Equals(other.OdataContext)
                     ) &&
                 (
                     OdataType == other.OdataType ||
                     OdataType != null &&
                     OdataType.Equals(other.OdataType)
                 ) &&
                 (
                     ParentOptionSetName == other.ParentOptionSetName ||
                     ParentOptionSetName != null &&
                     ParentOptionSetName.Equals(other.ParentOptionSetName)
                 ) &&
                 (
                     IsCustomOptionSet == other.IsCustomOptionSet ||
                     IsCustomOptionSet != null &&
                     IsCustomOptionSet.Equals(other.IsCustomOptionSet)
                 ) &&
                 (
                     IsGlobal == other.IsGlobal ||
                     IsGlobal != null &&
                     IsGlobal.Equals(other.IsGlobal)
                 ) &&
                 (
                     IsManaged == other.IsManaged ||
                     IsManaged != null &&
                     IsManaged.Equals(other.IsManaged)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     ExternalTypeName == other.ExternalTypeName ||
                     ExternalTypeName != null &&
                     ExternalTypeName.Equals(other.ExternalTypeName)
                 ) &&
                 (
                     OptionSetType == other.OptionSetType ||
                     OptionSetType != null &&
                     OptionSetType.Equals(other.OptionSetType)
                 ) &&
                 (
                     IntroducedVersion == other.IntroducedVersion ||
                     IntroducedVersion != null &&
                     IntroducedVersion.Equals(other.IntroducedVersion)
                 ) &&
                 (
                     MetadataId == other.MetadataId ||
                     MetadataId != null &&
                     MetadataId.Equals(other.MetadataId)
                 ) &&
                 (
                     HasChanged == other.HasChanged ||
                     HasChanged != null &&
                     HasChanged.Equals(other.HasChanged)
                 ) &&
                 (
                     Options == other.Options ||
                     Options != null &&
                     Options.SequenceEqual(other.Options)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     DisplayName == other.DisplayName ||
                     DisplayName != null &&
                     DisplayName.Equals(other.DisplayName)
                 ) &&
                 (
                     IsCustomizable == other.IsCustomizable ||
                     IsCustomizable != null &&
                     IsCustomizable.Equals(other.IsCustomizable)
                 ));
        }
        /// <summary>
        /// Returns true if PassportPDFPassport instances are equal
        /// </summary>
        /// <param name="input">Instance of PassportPDFPassport to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PassportPDFPassport input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PassportId == input.PassportId ||
                     (PassportId != null &&
                      PassportId.Equals(input.PassportId))
                     ) &&
                 (
                     PlanId == input.PlanId ||
                     PlanId.Equals(input.PlanId)
                 ) &&
                 (
                     OptionalLinkedSubscriptionId == input.OptionalLinkedSubscriptionId ||
                     (OptionalLinkedSubscriptionId != null &&
                      OptionalLinkedSubscriptionId.Equals(input.OptionalLinkedSubscriptionId))
                 ) &&
                 (
                     SubscriptionDate == input.SubscriptionDate ||
                     (SubscriptionDate != null &&
                      SubscriptionDate.Equals(input.SubscriptionDate))
                 ) &&
                 (
                     ExpirationDate == input.ExpirationDate ||
                     (ExpirationDate != null &&
                      ExpirationDate.Equals(input.ExpirationDate))
                 ) &&
                 (
                     CurrentTokensUsed == input.CurrentTokensUsed ||
                     CurrentTokensUsed.Equals(input.CurrentTokensUsed)
                 ) &&
                 (
                     ExtraTokens == input.ExtraTokens ||
                     ExtraTokens.Equals(input.ExtraTokens)
                 ) &&
                 (
                     ExtraTokensEndDate == input.ExtraTokensEndDate ||
                     (ExtraTokensEndDate != null &&
                      ExtraTokensEndDate.Equals(input.ExtraTokensEndDate))
                 ) &&
                 (
                     IsYearlyPaid == input.IsYearlyPaid ||
                     IsYearlyPaid.Equals(input.IsYearlyPaid)
                 ) &&
                 (
                     IsActive == input.IsActive ||
                     IsActive.Equals(input.IsActive)
                 ) &&
                 (
                     TokensPercentUsageAlert == input.TokensPercentUsageAlert ||
                     TokensPercentUsageAlert.Equals(input.TokensPercentUsageAlert)
                 ) &&
                 (
                     TokensPercentUsageAlertSent == input.TokensPercentUsageAlertSent ||
                     TokensPercentUsageAlertSent.Equals(input.TokensPercentUsageAlertSent)
                 ) &&
                 (
                     IsManaged == input.IsManaged ||
                     IsManaged.Equals(input.IsManaged)
                 ) &&
                 (
                     NextMonthlyTerm == input.NextMonthlyTerm ||
                     (NextMonthlyTerm != null &&
                      NextMonthlyTerm.Equals(input.NextMonthlyTerm))
                 ) &&
                 (
                     RemainingTokens == input.RemainingTokens ||
                     RemainingTokens.Equals(input.RemainingTokens)
                 ));
        }