public override int GetHashCode() { int hashProductId = Id.GetHashCode(); int hashProductIdHaspKey = IdHaspKey.GetHashCode(); int hashProductIdFeature = IdFeature.GetHashCode(); int hashProductStartDate = StartDate.GetHashCode(); int hashProductEndDate = EndDate.GetHashCode(); return(hashProductId ^ hashProductIdHaspKey ^ hashProductIdFeature ^ hashProductStartDate ^ hashProductEndDate); }
public override bool Equals(object obj) { if (!(obj is KeyFeature other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id.Equals(other.Id) && IdHaspKey.Equals(other.IdHaspKey) && IdFeature.Equals(other.IdFeature) && StartDate.Equals(other.StartDate) && EndDate.Equals(other.EndDate)); }