示例#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 (TicketEventDateID != null)
         {
             hashCode = hashCode * 59 + TicketEventDateID.GetHashCode();
         }
         if (TicketEventID != null)
         {
             hashCode = hashCode * 59 + TicketEventID.GetHashCode();
         }
         if (VenueID != null)
         {
             hashCode = hashCode * 59 + VenueID.GetHashCode();
         }
         if (EventStartDateTime != null)
         {
             hashCode = hashCode * 59 + EventStartDateTime.GetHashCode();
         }
         if (MaxTickets != null)
         {
             hashCode = hashCode * 59 + MaxTickets.GetHashCode();
         }
         if (Price != null)
         {
             hashCode = hashCode * 59 + Price.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#2
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 (TicketEventID != null)
         {
             hashCode = hashCode * 59 + TicketEventID.GetHashCode();
         }
         if (EventName != null)
         {
             hashCode = hashCode * 59 + EventName.GetHashCode();
         }
         if (EventHtmlDescription != null)
         {
             hashCode = hashCode * 59 + EventHtmlDescription.GetHashCode();
         }
         if (EventImagePath != null)
         {
             hashCode = hashCode * 59 + EventImagePath.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#3
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 (TicketEventDateID != null)
         {
             hashCode = hashCode * 59 + TicketEventDateID.GetHashCode();
         }
         if (TicketEventID != null)
         {
             hashCode = hashCode * 59 + TicketEventID.GetHashCode();
         }
         if (EventName != null)
         {
             hashCode = hashCode * 59 + EventName.GetHashCode();
         }
         if (EventHtmlDescription != null)
         {
             hashCode = hashCode * 59 + EventHtmlDescription.GetHashCode();
         }
         if (EventImagePath != null)
         {
             hashCode = hashCode * 59 + EventImagePath.GetHashCode();
         }
         if (VenueID != null)
         {
             hashCode = hashCode * 59 + VenueID.GetHashCode();
         }
         if (VenueName != null)
         {
             hashCode = hashCode * 59 + VenueName.GetHashCode();
         }
         if (Address != null)
         {
             hashCode = hashCode * 59 + Address.GetHashCode();
         }
         if (City != null)
         {
             hashCode = hashCode * 59 + City.GetHashCode();
         }
         if (Country != null)
         {
             hashCode = hashCode * 59 + Country.GetHashCode();
         }
         if (EventStartDateTime != null)
         {
             hashCode = hashCode * 59 + EventStartDateTime.GetHashCode();
         }
         if (MaxTickets != null)
         {
             hashCode = hashCode * 59 + MaxTickets.GetHashCode();
         }
         if (Price != null)
         {
             hashCode = hashCode * 59 + Price.GetHashCode();
         }
         return(hashCode);
     }
 }