Пример #1
0
 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);
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     return(SenderID.GetHashCode() + ReceiverID.GetHashCode() + Op.GetHashCode());
 }