public override int GetHashCode() { int hash = GetType().GetHashCode(); hash = (hash * 397) ^ MessageID.GetHashCode(); hash = (hash * 397) ^ Edited.GetHashCode(); return(hash); }
public override int GetHashCode() { unchecked { int result = (SenderID != null ? SenderID.GetHashCode() : 0); result = (result * 397) ^ (ReceiverID != null ? ReceiverID.GetHashCode() : 0); result = (result * 397) ^ (MessageID != null ? MessageID.GetHashCode() : 0); result = (result * 397) ^ (Body != null ? Body.GetHashCode() : 0); return(result); } }
public override int GetHashCode() => MessageID.GetHashCode();
public override int GetHashCode() { return MessageID.GetHashCode(); }
public override int GetHashCode() { return(Contact.UserID.GetHashCode() + MessageID.GetHashCode()); }