I have the following pseudo code that works:
KeyBindings[Keys.Right] += Method1;
KeyBindings[Keys.Right] += Method2;
The problem I’m running into is that I would like to be able to do this:
KeyBindings[Keys.Right] += Method1(argument);
KeyBindings[Keys.Right] += Method2(argument1, argument 2);
Is this possible? If so, how do I rewrite my code to achieve this?
KeyBindings is defined as:
Dictionary<Keys, Action> KeyBindings = new Dictionary<Keys, Action>();
1 Answer