net List<string> 转换 List<int>

  var userIdList = viewModel.UserIds.Split(",").Where(m => !string.IsNullOrEmpty(m)).ToList().ConvertAll(m => int.Parse(m));

posted @ 2021-01-20 23:41  南方卖菜  阅读(151)  评论(0编辑  收藏  举报