private static void CallBackRecMsg(IAsyncResult ar) { //从C#异步调用状态ar.AsyncState中,获取委托对象 RecMsgdelegate dn = (RecMsgdelegate)ar.AsyncState; //一定要EndInvoke,否则你的下场很惨 string Type = dn.EndInvoke(ar); ShowNewMessage(Type); //OnStart(); }