Archive

Archive for April, 2010

rethrowing a exception without loosing the callstack

If you don’t want to loose the call stack when you receive a exception and you just use the w keyword as in the following example:

try
{
….
}
catch (Exception)
{

throw
}

Categories: C#