把Liststring集合,编程string,并以“,”号分割
生活随笔
收集整理的這篇文章主要介紹了
把Liststring集合,编程string,并以“,”号分割
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
List<int> roleIdList = GetRoleIdList(user.ID);
string roleIdsStr = "";
if (roleIdList != null)
{roleIdsStr = string.Join(",", roleIdList);
}
?
轉載于:https://www.cnblogs.com/lijingran/p/6420364.html
總結
以上是生活随笔為你收集整理的把Liststring集合,编程string,并以“,”号分割的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: R语言 软件安装 源码安装R
- 下一篇: [Leetcode][第120题][JA