public override int GetHashCode() { unchecked { // ReSharper disable NonReadonlyMemberInGetHashCode var hashCode = OpportunityType.GetHashCode(); hashCode = (hashCode * 397) ^ FacilityUseId.GetHashCode(); hashCode = (hashCode * 397) ^ SlotId.GetHashCode(); hashCode = (hashCode * 397) ^ OfferId.GetHashCode(); // ReSharper enable NonReadonlyMemberInGetHashCode return(hashCode); } }
public override int GetHashCode() { //return Id.GetHashCode(); return(Area.GetHashCode() ^ Method.GetHashCode() ^ SlotId.GetHashCode()); }