Exemple #1
0
        public void BecomeFriendWith(Person person)
        {
            if (this == person)
            {
                throw new ArgumentException("Are you so lonely?");
            }

            person.Friends.Add(this);
            Friends.Add(person);
        }
Exemple #2
0
 public Message(Person sender, string body)
 {
     Sender = sender;
     Body = body;
     Date = new DateTime();
 }