public static void SafeCall(SafeCallFunction func) { try { func(); } catch { } }
public static void SafeCallInterruptable(bool bInterruptOnError, SafeCallFunction func) { try { func(); } catch (System.Exception ex) { if (bInterruptOnError) { throw new System.Exception(); } } }