public override int GetHashCode() { unchecked { int result = Date.GetHashCode(); result = (result * 397) ^ (Sender != null ? Sender.GetHashCode() : 0); result = (result * 397) ^ (Receivers != null ? Receivers.GetHashCode() : 0); result = (result * 397) ^ (Subject != null ? Subject.GetHashCode() : 0); result = (result * 397) ^ (Body != null ? Body.GetHashCode() : 0); result = (result * 397) ^ Id; return(result); } }