private int WrapAndExecuteInternal(ExecuteInternalDelegate execute) { if (this._executing) { return(NativeMethods.E_FAIL); } int result = 0; try { this._executing = true; result = execute(); } catch { result = NativeMethods.E_FAIL; } finally { this._executing = false; } return(result); }
private int WrapAndExecuteInternal(ExecuteInternalDelegate execute) { if (this._executing) return NativeMethods.E_FAIL; int result = 0; try { this._executing = true; result = execute(); } catch { result = NativeMethods.E_FAIL; } finally { this._executing = false; } return result; }