Variable parameters in C# Lambda
问题 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 'params' keyword in this context have failed. UPDATE WITH WORKING CODE FROM ANSWER: delegate void Foo(params string[] strings); static void Main(string[] args) { Foo x = strings => { foreach(string s in strings) Console.WriteLine(s); }; //Added to make it clear how this eventually is used :) Delegate d = x; d.DynamicInvoke(new[]{new