How do I copy items from list to list without foreach?

后端 未结 8 1670
野的像风
野的像风 2020-11-30 17:42

How do I transfer the items contained in one List to another in C# without using foreach?

8条回答
  •  无人及你
    2020-11-30 18:01

    Here another method but it is little worse compare to other.

    List i=original.Take(original.count).ToList();
    

提交回复
热议问题