I want to be able to store function references and ignore arguments until they are used.
Here is what I would like it to look like this:
StoreType f=MyFunction; ....... var r=f.Invoke(arg1,arg2,arg3) as ReturnType;
This is similar to Action and Func, but they are strongly typed, and I want to be able to declare and use this type without knowing how many arguments and from which types the function will be executed.
How to do it in C #?
source share