Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((unit.GetHashCode() * 397) ^ unitPrice);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = unitUnderOffer.GetHashCode();
         hashCode = (hashCode * 397) ^ requiredUnits;
         hashCode = (hashCode * 397) ^ offerPrice;
         return(hashCode);
     }
 }