版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
1014 B

  1. using Newtonsoft.Json.Linq;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace ProductionControl
  12. {
  13. public partial class Form3 : Form
  14. {
  15. public Form3()
  16. {
  17. InitializeComponent();
  18. }
  19. private void Form3_Load(object sender, EventArgs e)
  20. {
  21. }
  22. private void button1_Click(object sender, EventArgs e)
  23. {
  24. JObject obj0 = new JObject()
  25. {
  26. { "start", 1 },
  27. { "start2", 2 },
  28. };
  29. JObject obj = new JObject();
  30. obj.Add("0", obj0);
  31. obj.Add("2", obj0);
  32. foreach (var processParamSub in obj.Properties())
  33. {
  34. JObject cc = processParamSub.Value as JObject;
  35. int vv = cc.Value<int>("start");
  36. }
  37. }
  38. }
  39. }