Again this is something which was supported in VB but have been introduced into c# as well.
public void ExceptionFilters()
{
try
{
//Do Something
}
catch (Exception ex) if (!ex.GetType().Equals(typeof(ArithmeticException)))
{
//Do something
}
}
As you can see, we have created a filter to handle everything except for ArithmeticException