【发布时间】:2009-08-13 20:07:20
【问题描述】:
This page in the MS documentation,涵盖 Windows 窗体应用程序中的异步,声明:
如果需要,您可以调用 EndInvoke 从委托中检索返回值,但这不是必需的。(已添加重点)
This page covering the general case of asynchronous delegates,声明不同:
无论您使用哪种技术,始终调用 EndInvoke 来完成您的异步调用。
这两者似乎直接冲突。
哪个是真的?谁能解释一下?
另请参阅,a post by Phil Haack。
相关:Is EndInvoke optional, sort-of optional, definitely not optional?
【问题讨论】:
标签: .net multithreading begininvoke