/// <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); } }
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); }
/// <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); } }
/// <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); } }
/// <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); } }