Serialization in C Sharp |
It was never easier to serialize and deserialize an object in c sharp here is an example code. using System.Xml.Serialization; public void Serialize() { XmlSerializer serial= new XmlSerializer(typeof(T System.IO.StreamWriter sw= new System.IO.StreamWriter("mapa.xml"); serial.Serialize(sw,this); } public static { XmlSerializer serial= new XmlSerializer(typeof( System.IO.StreamReader sw= new System.IO.StreamReader(fileName); return( }
Where Does this |
Wednesday, October 26, 2005
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment