Let’s say I want to store a group of function pointers in a List<(*func)>, and then later call them, perhaps even with parameters… Like if I stored in a Dict<(*func), object[] params> could I call the func with the parameters? How would I do this?
Let’s say I want to store a group of function pointers in a List<(*func)>
Share
.NET uses delegates instead of function pointers. You can store a delegate instance like any other kind of object, in a dictionary or otherwise.
See Delegates from the C# Programming Guide on MSDN.