I have a method that expects an Action<string>
I call the method as follows:
commandProcessor.ProcessCommand(s=> ShowReceipt("MyStringValue"))
ProccessCommand(Action<string> action)
{
action.Invoke(...); // How do I get the reffered string?
}
Do I have to use Expression<Action<string>>
? If so, how do I get the parameter values?