4 ms·
C# != CLR. CLR has had exception filters for a very long time, if not forever. The runtime != the language.
by kangaroo 12y ago
C# != CLR. CLR has had exception filters for a very long time, if not forever. The runtime != the language.
- Pxtl 12y agoI know CLR already supports exception filters - I've used VB.Net. You miss my point - the whole point of exception filters is to work around the way that the rethrow operation (that is, the naked "throw" without any given exception within a catch clause, so it pulls the contextual exception) screws up your stack-trace. Rethrowing an exception should not screw up the stack-trace. But they do, so we need to use the irritating exception filter mechanic.