public override int GetHashCode() { return("Expense".GetHashCode() + 7 * ExpenseCategory.GetHashCode() + 13 * Amount.GetHashCode() + 17 * TransactionDate.GetHashCode()); }
public override int GetHashCode() { return("Transfer".GetHashCode() + 7 * Source.GetHashCode() + 13 * Target.GetHashCode() + 17 * Amount.GetHashCode() + 19 * TransactionDate.GetHashCode()); }
public override int GetHashCode() { unchecked { var hashCode = Id.GetHashCode(); hashCode = (hashCode * 397) ^ TransactionDate.GetHashCode(); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ (Payee != null ? Payee.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Reference != null ? Reference.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Amount.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (lines != null ? lines.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TransactionDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TransactionType != null ? TransactionType.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ActualCost == default(decimal) ? 0 : ActualCost.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (ProductId == default(int) ? 0 : ProductId.GetHashCode()); hash = hash * 23 + (Quantity == default(int) ? 0 : Quantity.GetHashCode()); hash = hash * 23 + (ReferenceOrderId == default(int) ? 0 : ReferenceOrderId.GetHashCode()); hash = hash * 23 + (ReferenceOrderLineId == default(int) ? 0 : ReferenceOrderLineId.GetHashCode()); hash = hash * 23 + (TransactionDate == default(DateTime) ? 0 : TransactionDate.GetHashCode()); hash = hash * 23 + (TransactionType == null ? 0 : TransactionType.GetHashCode()); return(hash); } }