/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { unchecked // only needed if you're compiling with arithmetic checks enabled { // (the default compiler behaviour is *disabled*, so most folks won't need this) int hash = 13; hash = (hash * 7) + Project.GetHashCode(); hash = (hash * 7) + Description.GetHashCode(); hash = (hash * 7) + StartDate.GetHashCode(); hash = (hash * 7) + Category.GetHashCode(); hash = (hash * 7) + Responsible.GetHashCode(); hash = (hash * 7) + SavingsAmount.GetHashCode(); hash = (hash * 7) + Currency.GetHashCode(); hash = (hash * 7) + Complexity.GetHashCode(); return(hash); } }