If you deny assertion rights in .NET, does it have any effect?
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
精彩评论