Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在同一行初始化一个由字符串数组组成的列表。我怎样才能做到这一点?
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"} };
话虽如此: