When I use a try/catch block to handle specific errors I often don't need to make use of the error variable - but then I get a warning "The variable is declared but never used". Is there anyway to remove this warning in this specific circumstance? See code for example...
// gives warning "warning CS0168: The variable 'Error' is declared but never used"
catch (ThreadAbortException Error)
// The error type itself tells me everything I need to know, meaning I don't need to inspect the variable 'Error' - so how to hide the warning in this case?
LogError("Maintenance:Thread - Stopped");