NetBlog主题

创建XML和XML读到Dictionary
C#基础

创建XML和XML读到Dictionary

3663

namespace ListBox和XML操作 {public partial class Form1 : Form{public Form1(){InitializeComponent();}Dictionary dic = new Dictionary();private void button1_Click(object sender, EventArgs e){AddData();foreach (Control c in thi…

C#  两种方法创建XML文件
C#基础

C# 两种方法创建XML文件

8317

using System; using System.Collections.Generic; using System.Windows.Forms; using System.Xml; using System.Xml.Linq;namespace XML文件创建 {public partial class Form1 : Form{public Form1(){InitializeComponent();}List<Penson> list = new List<Penson&…