Esempio n. 1
0
        public static Exception Exception(Actionx action)
        {
            Exception exception = null;

            try
            {
                action();
            }
            catch (Exception e)
            {
                exception = e;
            }

            return(exception);
        }
Esempio n. 2
0
    public static Exception Exception(Actionx action)
    {
      Exception exception = null;

      try
      {
        action();
      }
      catch (Exception e)
      {
        exception = e;
      }

      return exception;
    }