Beispiel #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 (TranslateLanguage != null)
         {
             hashCode = hashCode * 59 + TranslateLanguage.GetHashCode();
         }
         if (TranslateDisplay != null)
         {
             hashCode = hashCode * 59 + TranslateDisplay.GetHashCode();
         }
         if (TranslateAttribution != null)
         {
             hashCode = hashCode * 59 + TranslateAttribution.GetHashCode();
         }
         if (TranslateCaching != null)
         {
             hashCode = hashCode * 59 + TranslateCaching.GetHashCode();
         }
         if (TranslateSmartRendering != null)
         {
             hashCode = hashCode * 59 + TranslateSmartRendering.GetHashCode();
         }
         if (TranslateCachingDuration != null)
         {
             hashCode = hashCode * 59 + TranslateCachingDuration.GetHashCode();
         }
         if (TranslateSessionSaveInterval != null)
         {
             hashCode = hashCode * 59 + TranslateSessionSaveInterval.GetHashCode();
         }
         if (TranslateSessionSaveBatchLimit != null)
         {
             hashCode = hashCode * 59 + TranslateSessionSaveBatchLimit.GetHashCode();
         }
         return(hashCode);
     }
 }