文件名称:序列化反序列化读写XML.rar
文件大小:45KB
文件格式:RAR
更新时间:2023-01-15 09:40:59
c# XML
c# 读写XML文件 fs = new FileStream(fileName, FileMode.Create); try { XmlSerializer xsr = new XmlSerializer(typeof (T)); xsr.Serialize(fs, x); } catch (Exception ex) { if (fs != null) fs.Close(); //MessageBox.Show(ex); return -1; }
【文件预览】:
读写XML
----TszSetting.xml(16KB)
----MenuClass.cs(1KB)
----TSCC.xml(17KB)
----ConsoleApplication1()
--------ConsoleApplication1.v11.suo(62KB)
--------ConsoleApplication1()
--------ConsoleApplication1.sln(947B)
----DataTableToGenList.cs(2KB)