Dev*_*505 3 c# constructor list
我想初始化一个由同一行中的字符串数组组成的列表。我怎样才能做到这一点?
public List<string[]> list = new List<string>(/** What should I put here? */);
Run Code Online (Sandbox Code Playgroud)
public List<string[]> list = new List<string[]> {
new [] {"a","b","C"},
new string[0],
new [] {"d"}
};
Run Code Online (Sandbox Code Playgroud)
不过话说回来: