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