Exemplo n.º 1
0
        //constructor for 2 param (list, and function)

        public static Calculation CreateCalc(double a, double b, Func <double, double, double> _operation)
        {
            var _calculation = new Calculation(a, b, _operation);

            return(_calculation);
        }
 public void AddBulkCalculation(Calculation _calculation)
 {
     Calculations.Add(_calculation);
 }
Exemplo n.º 3
0
        public static Calculation Create(List <double> listOfValues, Func <List <double>, double> operation)
        {
            var _calculation = new Calculation(listOfValues, operation);

            return(_calculation);
        }