How to pass an array and a single element to a multiple argument method?
问题 Example: public void foo(params string[] s) { ... } We can call this method with: a) foo("test", "test2", "test3") // multiple single strings b) foo(new string[]{"test", "test2", "test3"}) // string array But it is not possible to call the method with: c) foo("test", new string[]{"test", "test2", "test3"}) So when I have a single string and an array of strings, do I have to put them into one array first to call the method? Or is there a nice workaround to tell the method to consider the