Split out ints from string

前端 未结 13 1484
情歌与酒
情歌与酒 2021-01-17 17:45

Let\'s say I have a web page that currently accepts a single ID value via a url parameter:
http://example.com/mypage.aspx?ID=1234

I want to change it to acce

13条回答
  •  灰色年华
    2021-01-17 18:22

    You'll just have to foreach through them and int.TryParse each one of them. after that just add to the list.

    Nevermind - @Splash beat me to it

提交回复
热议问题