JObject jsonData = new JObject();
jsonData.Add("1", "1");
jsonData.Add("2", "1");
using (IEnumerator<KeyValuePair<string, JToken>> enumerator = jsonData.GetEnumerator())
{
     if (enumerator.MoveNext())
        {
             KeyValuePair<string, JToken> item = enumerator.Current;
             var Key = item.Key.ToString();
             var Value = item.Value.ToString();
             Console.WriteLine("key:"+Key+"  value:"+Value);
        }
 }

  

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案