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); } }