コード例 #1
0
 public static void SafeCall(SafeCallFunction func)
 {
     try
     {
         func();
     }
     catch
     {
     }
 }
コード例 #2
0
 public static void SafeCallInterruptable(bool bInterruptOnError, SafeCallFunction func)
 {
     try
     {
         func();
     }
     catch (System.Exception ex)
     {
         if (bInterruptOnError)
         {
             throw new System.Exception();
         }
     }
 }