Example #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (MenuId != null)
         {
             hashCode = hashCode * 59 + MenuId.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Subtitle != null)
         {
             hashCode = hashCode * 59 + Subtitle.GetHashCode();
         }
         if (IsActive != null)
         {
             hashCode = hashCode * 59 + IsActive.GetHashCode();
         }
         if (IsPosMenu != null)
         {
             hashCode = hashCode * 59 + IsPosMenu.GetHashCode();
         }
         if (LatestMenuUpdate != null)
         {
             hashCode = hashCode * 59 + LatestMenuUpdate.GetHashCode();
         }
         if (LastSuccessfulMenuUpdateAt != null)
         {
             hashCode = hashCode * 59 + LastSuccessfulMenuUpdateAt.GetHashCode();
         }
         if (Url != null)
         {
             hashCode = hashCode * 59 + Url.GetHashCode();
         }
         if (OpenHours != null)
         {
             hashCode = hashCode * 59 + OpenHours.GetHashCode();
         }
         if (SpecialHours != null)
         {
             hashCode = hashCode * 59 + SpecialHours.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #2
0
 public override int GetHashCode()
 {
     return(MenuId.GetHashCode());
 }