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

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