If you use reflector to, for example, look at the implementation of the OnMouseEnter method of ButtonBase, it calls IntSecu开发者_如何学Pythonrity.AllWindows.Assert before showing a ToolTip control.
Why?
Calling Assert instructs the runtime to bypass particular security checks. This increases performance and allows underprivileged code to call methods with CAS permission requirements.
You can find more information on MSDN here.
精彩评论