You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Columbus Downtown Developer Book Club
I hate saying "I don't know" so when I got back to the office I did
some research on the different ways to rethrow an exception and this
is what I found out....
MSIL has two different instructions for throwing an exception –
“throw” and “rethrow.”
The statement “throw ex;” gets compiled into a call to the “throw” IL
instruction.
The statement “throw;” gets compiled into a call to the “rethrow” IL
instruction.
The “throw” IL instruction sets the stack trace of the Exception
object to the current stack frame which is why you lose your stack
trace when you use the “throw ex;” form.
Later,
--dennis
Jeffrey Miller
unread,
May 4, 2011, 1:26:55 PM5/4/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Columbus Downtown Developer Book Club
Thanks for the research Dennis. I'm putting that in my bag-O-tricks/
bag-O-gotchas.