C# Converting List to List

后端 未结 6 1684
星月不相逢
星月不相逢 2020-12-14 07:07

I have a List and I want to convert it to a List. Is there any way to do this other than just looping through the Li

6条回答
  •  自闭症患者
    2020-12-14 07:42

    You could do this using the Select extension method:

    List doubleList = intList.Select(x => (double)x).ToList();
    

提交回复
热议问题