using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; public class CallbackObjectFromJs : CallbackBsae { public event Action ExecMsg; public CallbackObjectFromJs() { } /// /// 必须小写 /// /// public void receivemsg(string msg) { this.Invoke(msg); } private void Invoke(string msg) { Action ExecMsgT = ExecMsg; if (ExecMsgT != null) { ExecMsgT(msg); } else { } } ~CallbackObjectFromJs() { } }