-
Notifications
You must be signed in to change notification settings - Fork 10
消息系统
Hiram edited this page Apr 2, 2018
·
1 revision
- 消息系统
public void TestMethod() { Signal noparam = new Signal(); noparam.Regist(Hanlder); noparam.Dispatch(); Signal<int, string> withParam = new Signal<int, string>(); withParam.Regist(HandlerWithParam); withParam.Dispatch(1, "hello"); } void Hanlder() { string log = "execute"; } void HandlerWithParam(int x, string y) { string log = "execute" + x + y; }