No, this is your only option, as far as I know. To get the source line of code that caused the exception, the source must be available. The fact that StackFrame already allows you to get the line number (through debugging characters - the PDB file in most cases) makes it simple enough, I would say.
Is there any specific problem with your proposed method?
source share