JObject pcount = new JObject();
int numTotal = 0;
IEnumerable<JProperty> properties = pcount.Properties();
foreach (JProperty item in properties)
{
numTotal += int.Parse(item.Value.ToString());
// item.Name 为 键
// item.Value 为 值
}
C#遍历JObject
猜你喜欢
转载自blog.csdn.net/KaiSarH/article/details/108620218
今日推荐
周排行