I knew that I read somewhere that there was a very important difference between throw; and throw ex; when you catch an exception and want to re throw it. But I couldn’t remember what the difference was. Thanks to this post I now know. If you use throw ex, the stack trace info will be overriden. So it is almost always preferable to use just throw.
March 19, 2009
No Comments
No comments yet.
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.