Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (StringId != null ? StringId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Unit != null ? Unit.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Quantity.GetHashCode();
         hashCode = (hashCode * 397) ^ (DeliveryDate != null ? DeliveryDate.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DeliveryAddress != null ? DeliveryAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DeliveryLocation != null ? DeliveryLocation.GetHashCode() : 0);
         return(hashCode);
     }
 }