Assigning string[] array into a function with params string[]
c#, parameters, string
Solution
Actually, the `params` is just a syntactic sugar handled by the C# compiler, so that
this:
void Method(params string[] args) { /**/ }
Method("one", "two", "three");
becomes this:
void Method(params string[] args) { /**/ }
Method(new string[] { "one", "two", "three" })
Problem
I have a function `void Test(int id, params string[] strs)`. How would I pass an array of strings as the `strs` argument? When I call: ``` Test(1, "a, b, c"); ``` It takes "strs" as a single string (not an array).