public void BecomeFriendWith(Person person) { if (this == person) { throw new ArgumentException("Are you so lonely?"); } person.Friends.Add(this); Friends.Add(person); }
public Message(Person sender, string body) { Sender = sender; Body = body; Date = new DateTime(); }