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