把List<string>集合,编程string,并以“,”号分割

List<int> roleIdList = GetRoleIdList(user.ID);
string roleIdsStr = "";
if (roleIdList != null)
{
    roleIdsStr = string.Join(",", roleIdList);
}

 

posted on 2017-02-20 17:02  lijingran  阅读(2244)  评论(0编辑  收藏  举报

导航