While browsing a protected assembly I just found that SA created the following construct, whats the idea of that?
Comments
2 comments
-
Is the inner try-catch block there in the original source code?
The outer one is applied to all methods (it isn't worth checking for cases like this where it has no effect) to capture variables for the error reporting. -
No, there is no try/catch at all. And as I could see, in pretty much every ctor SA seems to insert this preventive catch all, even in emtpy and default ctors. but only the ctors with code in it actually have the outer catch.
Seems pretty weird to me.
Add comment
Please sign in to leave a comment.