Example #1
0
 public static TR DispatchBy <TR>(this Func <TR> func, DispatcherObject dispatcherObj) => dispatcherObj.DispatcherInvoke(obj => func());
Example #2
0
 public static void DispatchBy(this Action action, DispatcherObject dispatcherObj) => dispatcherObj.DispatcherInvoke(obj => action());