Generic Function

  • Thread starter Thread starter T
  • Start date Start date
T

T

Hi there,

I have a whole library of math functions which take a single double
argument and return a double argument. Now I need to overload all of
these functions to take a DataTable and return a DataTable which
contains the result of the original function called on each row.

For example:

double f2(double){

}
 
All you will have to do is add the new method signatures. A Generic
function is not a good idea here, because you are doing math, and probably
rely heavily on operators, which you won't be able to access on the type
parameters in generic functions.
 
Back
Top