public void InvokeHelper(object from, object to) { BeginInvoke(new MethodInvoker(delegate() { from = to; })); }
BeginInvoke
asyncResult
AsyncWaitHandle.WaitOne
public void InvokeHelper(object from, object to, System.Threading.SynchronizationContext context) { _conex.Post(new SendOrPostCallback((obj) => { //your code here } ), null); }
if(this.InvokeRequired) { this.BeginInvoke(method); } else { method(); }
public void InvokeHelper(object from, object to) { BeginInvoke( (MethodInvoker) delegate { from = to; }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)