Answers for "c# deserialize xml file"

C#
1

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);
}
Posted by: Guest on April-07-2022
0

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);
}
Posted by: Guest on April-07-2022

C# Answers by Framework

Browse Popular Code Answers by Language