try { /* Try do something ... */ } catch (Exception ex) when (ex is InvalidDataException || ex is ArgumentException) { Console.WriteLine("a specific catch"); } catch (Exception ex) { Console.WriteLine("General catch"); }