Convert string array to int array

后端 未结 6 1471
名媛妹妹
名媛妹妹 2021-02-04 03:42

I have tried a couple different ways and cannot seem to get the result I want using vb.net.

I have an array of strings. {\"55555 \",\"44444\", \" \"}

I need an

6条回答
  •  情歌与酒
    2021-02-04 03:54

    Everything is much easier ))

    Dim NewIntArray = YouStringArray.Select(Function(x) CInt(x)).ToArray
    

提交回复
热议问题