string json="{\"PersonID\":\"1,2,3,4,5\"}";
JObject json2 = (JObject)JsonConvert.DeserializeObject(JsonPList2); List<string> PersonList2 = new List<string>(); string test2 = json2["PersonID"].ToString(); string[] strArray2 = test2.Split(','); int y = 0; for (int i = 0; i < strArray2.Length; i++) { PersonList2.Add(strArray2[i]); y++; }

相关文章:

  • 2021-12-27
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-12-15
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案