/// <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 (TicketId != null)
         {
             hashCode = hashCode * 59 + TicketId.GetHashCode();
         }
         if (OperationDate != null)
         {
             hashCode = hashCode * 59 + OperationDate.GetHashCode();
         }
         if (TicketTypeId != null)
         {
             hashCode = hashCode * 59 + TicketTypeId.GetHashCode();
         }
         if (OperationTypeId != null)
         {
             hashCode = hashCode * 59 + OperationTypeId.GetHashCode();
         }
         if (StatusId != null)
         {
             hashCode = hashCode * 59 + StatusId.GetHashCode();
         }
         return(hashCode);
     }
 }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TicketId.Length != 0)
            {
                hash ^= TicketId.GetHashCode();
            }
            if (Item != 0)
            {
                hash ^= Item.GetHashCode();
            }
            if (exclusiveInfo_ != null)
            {
                hash ^= ExclusiveInfo.GetHashCode();
            }
            return(hash);
        }