Is it possible to use one delegate for several methods with different parameters somehow? I use reflection to get all the methods in a class, and I want to assign each of th
You'd need a uniform way of passing them parameters. That means you'd need to pass them an array of parameters. And that means you need a MethodInfo
, not a delegate.
Just store the MethodInfo
against the name in the dictionary. Then when you need to call them, use the Invoke method to make the call, passing the target object and the array of parameters.