XmlSerial序列化的问题
在学习序列化和反序列化的时候,遇到如下几个问题。
1、xmlSerial和xmlformatter什么区别?
2、XMLSerial序列化的方式,有两种,那种对?
【Serializable】
public class Employ{
public string name;
public ing age;
}
还有一种模式
[XmlRoot]
public class employ{
[xmlelement]
public string name;
[xmlelement]
public int age;
}