Here I am meeting a problem. I am transfering unmanaged C/C++ codes to
managed C# codes. For the general C/C++ function pointer, it is easy to
implement its function by C# delegate. e.g.
Declare (C/C++): double (* f) (double * x, void * parms);
Declare (C#): public delegate double f (double x, object
parms);
And the ways to use them are logically similiar.
My question is: when the function pointer appears in the function
agument list, how to implement this in C#? e.g.
Declare (C/C++): double (* fdf) (double * x, void * parms, double * f,
double * df);
where: f and df are function pointers, say f is declared as the above
instance.
In this situation, how to implement the cooresponding declaration in
C#, or how can I go over it?
thx to all