I have a parametric method that takes a Func
as an argument
SomeType SomeMethod<T>( Func<T, T> f ) {...}
I would like to pass an Action
without having to overload the method. But this takes to the problem, how do you represent and Action
as a Func
? I tried
Func<void, void>
but its not valid.