public void Run() { ExceptionsBase a = new ExceptionsBase(); ExceptionsBase b = new ExceptionsDerived(); CallExecute(a); CallExecute(b); }
private void CallExecute(ExceptionsBase exceptionsBase) { try { exceptionsBase.Call(); } catch (ArgumentException) { } }