你的位置:首页 > 软件开发 > ASP.net > 【C#】使用C#将类序列化为XML

【C#】使用C#将类序列化为XML

发布时间:2015-04-03 11:01:12
直接上代码: public static class 模型类,要序列化的数据结构: //[ 实际使用:class Program { static void Main(string[] args) { Sequence model = new S ...

直接上代码:

 public static class 
 
模型类,要序列化的数据结构:
 //[

 

实际使用:

class Program  {    static void Main(get='_blank'>string[] args)    {      Sequence model = new Sequence();      

 

结果:

<?

原标题:【C#】使用C#将类序列化为XML

关键词:C#

C#
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录