Exemplo n.º 1
0
        public void Run()
        {
            ExceptionsBase a = new ExceptionsBase();
            ExceptionsBase b = new ExceptionsDerived();

            CallExecute(a);
            CallExecute(b);
        }
Exemplo n.º 2
0
 private void CallExecute(ExceptionsBase exceptionsBase)
 {
     try
     {
         exceptionsBase.Call();
     }
     catch (ArgumentException)
     {
     }
 }