为什么我在 Delegate class 中看不到 BeginInvoke 和 EndInvoke 方法?
Why do I not see the presence of BeginInvoke and EndInvoke methods in Delegate class?
我可以看到 BeginInvoke 和 EndInvoke 方法可用于任何委托。但我没有在 "Delegate" 和 "MulticastDelegate" 类 的任何地方看到它们的定义。他们在哪里?
来自MSDN:
The common language runtime provides each delegate type with BeginInvoke and EndInvoke methods, to enable asynchronous invocation of the delegate. For more information about these methods, see Calling Synchronous Methods Asynchronously.
我可以看到 BeginInvoke 和 EndInvoke 方法可用于任何委托。但我没有在 "Delegate" 和 "MulticastDelegate" 类 的任何地方看到它们的定义。他们在哪里?
来自MSDN:
The common language runtime provides each delegate type with BeginInvoke and EndInvoke methods, to enable asynchronous invocation of the delegate. For more information about these methods, see Calling Synchronous Methods Asynchronously.