Example #1
0
        public void Run()
        {
            ExceptionsBase a = new ExceptionsBase();
            ExceptionsBase b = new ExceptionsDerived();

            CallExecute(a);
            CallExecute(b);
        }
Example #2
0
 private void CallExecute(ExceptionsBase exceptionsBase)
 {
     try
     {
         exceptionsBase.Call();
     }
     catch (ArgumentException)
     {
     }
 }