I have a Func<Foo, object> and Action<object> and would like to combine these into Action<Foo>, which combines my Func and Action into one Action where the result of the Func is passed to the Action. Is there a straightforward way to do this?
I have a Func<Foo, object> and Action<object> and would like to combine these into
Share
The most general method I can think of would be something like this:
Usage: