InvokeDelegate() static private method

static private InvokeDelegate ( Delegate d, object args ) : void
d Delegate
args object
return void
Beispiel #1
0
 internal void Invoke()
 {
     try {
         Dispatcher.InvokeDelegate(d, args);
     } catch (TargetInvocationException tie) {
         // the unhandled exception is the inner exception, not the TargetInvocationException
         Application.OnUnhandledException(this, tie.InnerException);
     } catch (Exception ex) {
         Application.OnUnhandledException(this, ex);
     }
 }