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() { unchecked { // ReSharper disable NonReadonlyMemberInGetHashCode var hashCode = OpportunityType.GetHashCode(); hashCode = (hashCode * 397) ^ OfferOpportunityType.GetHashCode(); hashCode = (hashCode * 397) ^ SessionSeriesId.GetHashCode(); hashCode = (hashCode * 397) ^ ScheduledSessionId.GetHashCode(); hashCode = (hashCode * 397) ^ OfferId.GetHashCode(); // ReSharper enable NonReadonlyMemberInGetHashCode return(hashCode); } }