阅读背景:

如何在c#中连接列表?

来源:互联网 

If I have:

如果我有:

List<string> myList1;
List<string> myList2;

myList1 = getMeAList();
// Checked myList1, it contains 4 strings

myList2 = getMeAnotherList();
// Checked myList2, it contains 6 strings

myList1.Concat(myList2);
// Checked mylist1, it contains 4 strings... why?
List<string> myList1;
List



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: