private static bool CreateCustomFunction(string functionName, Func <double[], double> func, out CustomCalculationFunction custCalculation) { bool isSucessfullyCreated; try { custCalculation = new CustomCalculationFunction(functionName, func, 0, 1); isSucessfullyCreated = true; } catch (Exception ex) { Dev2Logger.Log.Error("Function", ex); custCalculation = null; isSucessfullyCreated = false; } return(isSucessfullyCreated); }
private static bool CreateCustomFunction(string functionName, Func<double[], double> func, out CustomCalculationFunction custCalculation) { bool isSucessfullyCreated; try { custCalculation = new CustomCalculationFunction(functionName, func, 0, 1); isSucessfullyCreated = true; } catch(Exception ex) { Dev2Logger.Log.Error("Function", ex); custCalculation = null; isSucessfullyCreated = false; } return isSucessfullyCreated; }