C# Converting List to List

后端 未结 6 1686
星月不相逢
星月不相逢 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:40

    You can use a method group:

    lstDouble = lstInt.Select(Convert.ToDouble)
    

提交回复
热议问题