class Father
{ public event HCDLL.DGTransString OnEvent; protected void SendEvent(string msg) { if (OnEvent != null) { OnEvent(msg); } } } class Son : Father { public Son() { SendEvent("This is a Test"); } }本文共 261 字,大约阅读时间需要 1 分钟。
class Father
{ public event HCDLL.DGTransString OnEvent; protected void SendEvent(string msg) { if (OnEvent != null) { OnEvent(msg); } } } class Son : Father { public Son() { SendEvent("This is a Test"); } }转载于:https://www.cnblogs.com/LongHuaiYu/p/5882802.html