示例#1
0
 public MethodEnumeration Catch <TException>(CatchMethodFunc <TException> @catch)
 {
     foreach (Amendment.Method method in this)
     {
         method.CatchMethod = @catch.Method;
     }
     return(this);
 }
示例#2
0
 public Enumeration Catch <TException>(CatchMethodFunc <TException> @catch)
     where TException : Exception
 {
     foreach (var method in methods)
     {
         method.Catch <TException>(@catch);
     }
     return(this);
 }
示例#3
0
 public Context <TContext> Catch <TException>(CatchMethodFunc <TException> implementation)
     where TException : Exception
 {
     method.CatchMethod = implementation.Method;
     return(this);
 }