开发者

CodeAccessPermission in framework code in .Net

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜