var ltCode = from item in psw.VehicleInsuranceItem select item.Code;
string code = string.Join("|", ltCode.ToArray());

string 转List<string>
List<string> ltCodes = new List<string>(System.Text.RegularExpressions.Regex.Split(code, "|"));

List<string> ltCodes = new List<string>(code.Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries));

  

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
猜你喜欢
  • 2018-04-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-06-26
  • 2021-09-21
  • 2022-12-23
相关资源
相似解决方案