Is it possible to do something like this?
System.Collections.Generic.Queue<delegate> methods;
Currently I'm doing this...
public delegate void Method();
System.Collections.Generic.Queue<Method> methods;
However, this only allows me to enqueue methods that match the delegate signature. I'd like to be able to put methods with any signature in the queue, or at least methods with different parameters. For example, I'd like to be able to do something like this...
methods.Enqueue(MethodOne);
methods.Enqueue(MethodTwo(int parameter)); //This won't work like this, since 'void' will be enqueued instead of the method.
Is something like this possible?