I have to create a Dictionary of commands with the command (a string) being the key and the function the command is mapping to as the value. The problem I am facing is that the functions the commands are mapping to, have different amounts of parameters with different types.
How do I achieve this? Preferably, so that I can add the functions as lambda expressions.
Ex. dictionary.Add("square", x => x * x)
.
EDIT: All the mapped functions return void.