示例#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);
 }