Function pointers?
Hey,
I have some code in C, that I would like to get working in C#. Im assuming its possible using delegates however im not quite sure how. The code I would like to get working is something like:
int ( *function )();
so that I could now do
int retVal = (*function) ( test );
int test ( )
{
return ( 5 );
}
I hope this is clear enough. Thanks in advance.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

MykonineRank #2,671 · 521 reputationPosted Dec 11, 2004, 4:28 PM EST
MykonineRank #2,671 · 521 reputationPosted Dec 11, 2004, 4:29 PM EST
kyle_hankinson45 reputationPosted Dec 12, 2004, 9:40 AM EST