public Calculation CreateBulkCalculation(List <double> listOfValues, Func <List <double>, double> operation) { //calls respective create method var _calculation = Calculation.Create(listOfValues, operation); return(_calculation); //calls add method }
public Calculation CreateListCalculation(double a, double b, Func <double, double, double> _operation) { //calls respective create method var _calculation = Calculation.Create(a, b, _operation); return(_calculation); //calls add method }
public IBulkOp CreateCalculation(double a, double b, Func <double, double, double> _operation) { var _calculation = Calculation.Create(a, b, _operation); return(null); /*_calculations.AddCalculation(_calculation); * return _calculation;*/ }