public override int GetHashCode() { unchecked { var hashCode = Title?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (AddedBy?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ ImageUrl.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var result = (AddedBy != null ? AddedBy.GetHashCode() : 0); result = (result * 397) ^ AddedAt.GetHashCode(); result = (result * 397) ^ (Subject != null ? Subject.GetHashCode() : 0); result = (result * 397) ^ (Body != null ? Body.GetHashCode() : 0); result = (result * 397) ^ Area.GetHashCode(); return(result); } }
public bool Equals(IComplaintAdded other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(AddedBy.Equals(other.AddedBy) && other.AddedAt.Equals(AddedAt) && Equals(other.Subject, Subject) && Equals(other.Body, Body) && Equals(other.Area, Area)); }