//收到来自Colleague的通知请求 public override void SendMsg(MyColleage theColleague, string msg) { //收到m1通知m2 if (m1 == theColleague) { m2.Request(msg); } if (m2 == theColleague) { m1.Request(msg); } }
public abstract void SendMsg(MyColleage theColleague, string Msg);