3
Answers

Function pointers?

kyle_hankinson

kyle_hankinson

20y
2.1k
1
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)