Created
May 27, 2019 16:45
-
-
Save Macadoshis/4d38cea5833547276d0452ead474f3f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected bool Equals(InvoicingFeeJournalGatewayDom other) | |
{ | |
return string.Equals(JournalId, other.JournalId) && string.Equals(WorkInstruction, other.WorkInstruction) && string.Equals(WorkInstructionDescription, other.WorkInstructionDescription) && SalesAmount == other.SalesAmount && PublicSalesAmount == other.PublicSalesAmount && UnitSalesPrice == other.UnitSalesPrice && UnitPublicPrice == other.UnitPublicPrice && DiscountInPercent == other.DiscountInPercent && DiscountInFixedValue == other.DiscountInFixedValue && IsFreeOfCharge == other.IsFreeOfCharge && DoNotPrint == other.DoNotPrint && IsUnderSalesWarranty == other.IsUnderSalesWarranty && IsUnderServiceWarranty == other.IsUnderServiceWarranty; | |
} | |
public override bool Equals(object obj) | |
{ | |
if (ReferenceEquals(null, obj)) return false; | |
if (ReferenceEquals(this, obj)) return true; | |
if (obj.GetType() != this.GetType()) return false; | |
return Equals((InvoicingFeeJournalGatewayDom)obj); | |
} | |
public override int GetHashCode() | |
{ | |
unchecked | |
{ | |
var hashCode = (JournalId != null ? JournalId.GetHashCode() : 0); | |
hashCode = (hashCode * 397) ^ (WorkInstruction != null ? WorkInstruction.GetHashCode() : 0); | |
hashCode = (hashCode * 397) ^ (WorkInstructionDescription != null ? WorkInstructionDescription.GetHashCode() : 0); | |
hashCode = (hashCode * 397) ^ SalesAmount.GetHashCode(); | |
hashCode = (hashCode * 397) ^ PublicSalesAmount.GetHashCode(); | |
hashCode = (hashCode * 397) ^ UnitSalesPrice.GetHashCode(); | |
hashCode = (hashCode * 397) ^ UnitPublicPrice.GetHashCode(); | |
hashCode = (hashCode * 397) ^ DiscountInPercent.GetHashCode(); | |
hashCode = (hashCode * 397) ^ DiscountInFixedValue.GetHashCode(); | |
hashCode = (hashCode * 397) ^ IsFreeOfCharge.GetHashCode(); | |
hashCode = (hashCode * 397) ^ DoNotPrint.GetHashCode(); | |
hashCode = (hashCode * 397) ^ IsUnderSalesWarranty.GetHashCode(); | |
hashCode = (hashCode * 397) ^ IsUnderServiceWarranty.GetHashCode(); | |
return hashCode; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment