摘要: 需要设置子线程 ApartmentState 为 STA 模式,但 Task 又不能直接设置 ApartmentState,因此需要用 Thread 来封装一下。 using System.Threading; using System.Threading.Tasks; public static 阅读全文
posted @ 2021-07-25 09:07 跟着阿笨一起玩.NET 阅读(855) 评论(0) 推荐(0) 编辑