C#, a String's Split() method

前端 未结 5 1215
终归单人心
终归单人心 2020-12-28 16:30

C#, a String\'s Split() method, how can I put the resulting string[] into an ArrayList or Stack?

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-28 17:24

    string[] strs = "Hello,You".Split(',');
    ArrayList al = new ArrayList();
    al.AddRange(strs);
    

提交回复
热议问题