private void myButton_Click(object sender, EventArgs e) { try { ... } catch (ArgumentNullException ex) { ... } catch (ArgumentOutOfRangeException ex) { ... } catch (ArgumentException ex) { ... } }
MSDN[^]:It is possible to use more than one specific catch clause in the same try-catch statement.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)