Welcome! and rules
Joel on Software
Is there any way with CAS to programmatic say that the called function has X set of rights? i.e. activating an object, perhaps in another assembly, and calling a method on it with no privileges?
Try reading this article:
Sorry it does not. Thank you for replying though.
The function you're looking for is Assert. (No, not the debugging Assert that says pop up a messagebox when you make a mistake; it's a different Assert).
Fog Creek Home