How do i make a c# class transfer to an xml file and vice versa? Using primitive variables (int, float, string) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do i make a c# class transfer to an xml file and vice versa? Using primitive variables (int, float, string)

C# Class to XML

23rd May 2017, 1:28 PM
Andrew McCrevan
1 Answer
0
I would recommend you to use the xml-deserializer library, there is plenty documentation about it. But in case you want to do it manually, you could try to read the xml file and map the tags by yourself​, the disadvantage is that you will have to use a predefined xml file, but with the xml-deserializer you can till certain point make this dynamically.
2nd Jun 2017, 8:34 AM
Lykanox Gamer
Lykanox Gamer - avatar