Tuesday, February 13, 2007

if you don't need the exception...

don't declare a variable...

try
{
some code...
}
catch (ExceptionIWantToCatch)
{
}

No warnings, no cheesy statements to get rid of warnings...

If you don't care about the exception type, just catch{}

No comments: