protected bool Equals(ProfileRequest other) { return(AllocationEndDate.Equals(other.AllocationEndDate) && Equals(AllocationOrganisation, other.AllocationOrganisation) && AllocationStartDate.Equals(other.AllocationStartDate) && Equals(AllocationValueByDistributionPeriod, other.AllocationValueByDistributionPeriod) && string.Equals(FundingStreamPeriod, other.FundingStreamPeriod)); }
public override int GetHashCode() { unchecked { int hashCode = AllocationEndDate.GetHashCode(); hashCode = (hashCode * 397) ^ (AllocationOrganisation != null ? AllocationOrganisation.GetHashCode() : 0); hashCode = (hashCode * 397) ^ AllocationStartDate.GetHashCode(); hashCode = (hashCode * 397) ^ (AllocationValueByDistributionPeriod != null ? AllocationValueByDistributionPeriod.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FundingStreamPeriod != null ? FundingStreamPeriod.GetHashCode() : 0); return(hashCode); } }