I just wondered, how the exact syntax is for ref and out parameters for delegates and inline lambda functions.
ref
out
here is an example
i
You can't use Action, Func, or the built-in delegates, but need to define your own in this case:
Action
Func
delegate void ActionByRef(ref T value);
Then, given this, you can have:
int value = 3; ActionByRef f2 = DoSomething; f2(ref value);