I want to initialize a list consisting of string arrays in the same line. How can I do that?
public List<string[]> list = new List<string>(/** What should I put here? */);
I want to initialize a list consisting of string arrays in the same line. How can I do that?
public List<string[]> list = new List<string>(/** What should I put here? */);
public List<string[]> list = new List<string[]> {
new [] {"a","b","C"},
new string[0],
new [] {"d"}
};
That said, however: