http://www.codeproject.com/
http://www.codeproject.com/
b
i.e. i want to enter the values in output only.... i cant get correct idea....
i tried like this
//Serialization
private void button2_Click(object sender, EventArgs e)
{
List
Personal personals = new Personal
{
ID = int.Parse(txtsno.Text),
Name = txtname.Text,
Phone = long.Parse(txtpno.Text),
Address = txtaddr.Text
};
pdetails.Add(personals);
XmlSerializer xmlser = new XmlSerializer(typeof(List<
StreamWriter swtr = new StreamWriter(@"d:\
xmlser.Serialize(swtr, pdetails);
swtr.Close();
}
//Deserialization
private void button3_Click(object sender, EventArgs e)
{
XmlSerializer xmlser = new XmlSerializer(typeof(List<
StreamReader srdr = new StreamReader(@"d:\
List
srdr.Close();
}
And also say some realtime examples for xml serialization and deserialization..?
when and where we use this.....purpose?v
om prakashPosted Jul 24, 2013, 8:53 AM
Iftikar HussainPosted Jul 24, 2013, 8:43 AM
Please refer the below link
http://www.c-sharpcorner.com/UploadFile/jaishmathews/ApplySerializationinaRealLifeSituation03252006092701AM/ApplySerializationinaRealLifeSituation.aspx
Regards,
Iftikar
om prakashPosted Jul 24, 2013, 8:03 AM