I'm trying to figure out how to properly use an Action delegate that takes more than one (through ten) type arguments like so:
Action<T,T,T>
for example.
Let's say I'm using the following function prototype:
public void SomeFunc(Action<bool, int> foo)
How would I go about passing a boolean and an integer value to foo when calling that function? Maybe I'm just getting this entire thing wrong, but when looking it up on MSDN and other sources I just can't get my head around how this thing actually works. Same for its Func<TReturn, T, T>
counterpart.
MSDN comes up with some pretty incomprehensible examples, and I'm hoping someone here can actually show me an example of how these delegates are implemented properly. Thanks.