开发者

CodeAccessPermission in framework code in .Net

开发者 https://www.devze.com 2022-12-27 11:27 出处:网络
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.

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

精彩评论

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

关注公众号