I have a method which takes params object[] such as:
void Foo(params object[] items) { Console.WriteLine(items[0]); }
When I pass two o
This is a one line solution involving LINQ.
var elements = new String[] { "1", "2", "3" }; Foo(elements.Cast().ToArray())