Dev2.MathOperations.Function.CreateCustomFunction C# (CSharp) Method

CreateCustomFunction() private static method

private static CreateCustomFunction ( string functionName, double>.Func func, CustomCalculationFunction &custCalculation ) : bool
functionName string
func double>.Func
custCalculation CustomCalculationFunction
return bool
        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;

        }

Same methods

Function::CreateCustomFunction ( string functionName, List args, List argumentDescriptions, string description, double>.Func function, IDev2CalculationManager calcManager ) : void
Function::CreateCustomFunction ( string functionName, List args, string description, double>.Func function, IDev2CalculationManager calcManager ) : void