示例#1
0
        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);
        }
示例#2
0
        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;

        }