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:
No comments:
Post a Comment