Function pointers?

Dec 11 2004 7:22 PM
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.

Answers (3)