Ejemplo n.º 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 (ProviderName != null)
         {
             hashCode = hashCode * 59 + ProviderName.GetHashCode();
         }
         if (MerchantSuppliedId != null)
         {
             hashCode = hashCode * 59 + MerchantSuppliedId.GetHashCode();
         }
         if (IsActive != null)
         {
             hashCode = hashCode * 59 + IsActive.GetHashCode();
         }
         if (IsOrderProtocolPos != null)
         {
             hashCode = hashCode * 59 + IsOrderProtocolPos.GetHashCode();
         }
         if (AutoReleaseEnabled != null)
         {
             hashCode = hashCode * 59 + AutoReleaseEnabled.GetHashCode();
         }
         if (AutoReleaseDistance != null)
         {
             hashCode = hashCode * 59 + AutoReleaseDistance.GetHashCode();
         }
         if (SpecialInstructionsMaxLength != null)
         {
             hashCode = hashCode * 59 + SpecialInstructionsMaxLength.GetHashCode();
         }
         if (CurrentDeactivations != null)
         {
             hashCode = hashCode * 59 + CurrentDeactivations.GetHashCode();
         }
         return(hashCode);
     }
 }