Invoke and BeginInvoke

前端 未结 5 1763
盖世英雄少女心
盖世英雄少女心 2020-12-29 06:30

Greetings, I am developing some application in C#. At the moment I\'m dealing with threading and I have a question that I have in my mind. What is the difference between In

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-29 07:14

    BeginInvoke executes the method body on another thread and allows the current thread to continue. If you are trying to directly update a control property from another thread, it will throw an exception.

提交回复
热议问题