how to write an object into xml with c## DotNet - 窗口里的风景
d*r
1 楼
For example, I have a class
class Class1
{
bool b;
int i;
string s;
}
How to write/read an object of Class1, say theClass, into/from an xml file
without worrying the structre of the class.
In java, I can use XmlEncoder.writeObject() and XmlDecoder.readObject().
class Class1
{
bool b;
int i;
string s;
}
How to write/read an object of Class1, say theClass, into/from an xml file
without worrying the structre of the class.
In java, I can use XmlEncoder.writeObject() and XmlDecoder.readObject().