我已经找到了很多关于如何在UI线程上调用函数的资源,但我有一些逻辑只允许从主线程运行.有没有办法在主线程上获取调度程序并调用它?
c# multithreading dispatch
c# ×1
dispatch ×1
multithreading ×1