开发者

If you deny assertion rights in .NET, does it have any effect?

开发者 https://www.devze.com 2022-12-29 01:22 出处:网络
In .NET you can deny the security permission \'Assertion\' for callers higher on the stack, but would this actually work since Assert() ignores permissions lower on the stack? Sinc开发者_运维知识库e i

In .NET you can deny the security permission 'Assertion' for callers higher on the stack, but would this actually work since Assert() ignores permissions lower on the stack? Sinc开发者_运维知识库e it's the end of the working day I don't presently have time to experiment. Guidance appreciated!


For future readers: Appears that it does, in fact, revoke the assertion right for callers higher on the stack. Confusing, eh?

This blog post confirms my findings: http://blogs.msdn.com/shawnfa/archive/2004/08/25/220458.aspx

0

精彩评论

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

关注公众号