Is there big difference between t开发者_StackOverflow社区hose two?
Semantically there are no differences, however using static event handlers can (if you're not careful) lead to memory leaks. See this article for more info.
I've come across this problem myself, trying to use a static event handler to keep an application-wide data source up to date; the event handler was preventing my BindingSource
components from being disposed, leading to all sorts of weird problems...
Effectively none. All it means is that when the handler is static, there will be no this
in scope (as with all static methods).
精彩评论