Is it possible to have a C# lambda/delegate that can take a variable number of parameters that can be invoked with a Dynamic-invoke?
All my attempts to use the \'par
Adding to Mark's answer, I'd create an extension method to clean up a bit:
static DynamicInvokeParams(this ParamsDelegate delegate, params object[] args) { delegate.DynamicInvoke(new [] {args}); }
And then you just have to say:
paramsDelegate.DyanamicInvokeParams(1, 2, 3);