Beispiel #1
0
 public override bool Equals(object obj)
 {
     if (obj is SocialMessage)
     {
         SocialMessage msg = obj as SocialMessage;
         return(Author == msg.Author && Message == msg.Message && Date == msg.Date);
     }
     else
     {
         return(false);
     }
 }
 protected bool Equals(SocialMessage other)
 {
     return(Author == other.Author && Date.Equals(other.Date) && Message == other.Message);
 }