예제 #1
0
 public static dynamic Func(MyAction1 myAction, ref ErrorInfo err, ApiRequesEntityBean <outT> inEnt)
 {
     try
     {
         return(myAction(ref err, inEnt));
     }
     catch (Exception e)
     {
         err.IsError = true;
         err.Message = e.Message;
         return(err);
     }
 }
예제 #2
0
 //委托做参数
 private static void MyTest(int n, MyAction1 act1)
 {
     //act1(n);
     act1.Invoke(n);
 }