problem in converting a c++ bit of code to its c# counter part
hello all ,
i was asked to convert a c++ sourcecode into its c# counter part , but i have no idea how i should go about this particular snippet of code.
i would be very thankful if anyone assists me in this problem .
the c++ snippet of code is this :
and this is sphere function , already converted to c#
typedef double (*FunctionCallback)(double sol[D]);
FunctionCallback function = &sphere;
Thankyou in advance.
static double sphere(double sol)