Пример #1
0
 public void Send(string message, IColleague colleague)
 {
     foreach (var c in this.colleagues)
     {
         if (colleague != c)
         {
             c.Receive(message);
         }
     }
 }
Пример #2
0
 public void Add(IColleague colleague)
 {
     this.colleagues.Add(colleague);
 }