Thursday, March 20, 2008

Pseudo variable $exception in VS2005

When a exception is caught and we want to check properties of the exception, we can use pseudo variable $exception (VS2005).

try
{
throw new Exception("test $Exception");
}
catch
{
Debug.WriteLine("exception");
}

Also variable $exception can be added to "Watch" window:

pseudoVariableDollarException

No comments: