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.
我有以下代码,并在启动器中添加了一个数组:
var GraphList = new List<object>{ new []{ "Year", "Sales", "Expenses"}, new []{ "2010", "2012", "2001" }, new []{ "80", "100", "200"}
如何不使用构造函数添加新数组,即
GraphList.Add.new []{ "80", "100", "200"};
这应该有效(我认为这GraphList在范围内):
GraphList
GraphList.Add(new []{ "80", "100", "200"});
GraphList.Add(new[] { "80", "100", "200" });