And this is how can you deserialize your XML file in your C# code:

93

And this is how can you deserialize your XML file in your C# code: -

XmlSerializer serializer = new XmlSerializer(typeof(Realestates));
using (StringReader reader = new StringReader(xml))
{
    var test = (Realestates)serializer.Deserialize(reader);
}

And this is how can you deserialize your XML file in your C# code: -

XmlSerializer serializer = new XmlSerializer(typeof(Realestates));

using (StreamReader reader = new StreamReader(pathOfYourXMLFile))
{
    var test = (Realestates)serializer.Deserialize(reader);
}

Comments

Submit
0 Comments