What\'s the difference between using
catch(Exception ex)
{
...
throw ex;
}
and using
catch // might include (Exc
Well, the first one will erase the stack trace, and replace it with where your throw is. The second one will throw the exception without altering the stack trace.
Also, "catch" will catch ANYTHING that is thrown, whether it is an exception or not.
The 2nd one is actually the equivalent of doing "catch(object)".