Convert XML String to Object

Published 3/12/2019 by Christian

Just a quick link this time:

 

https://stackoverflow.com/questions/3187444/convert-xml-string-to-object

 

Required Visual Studio 2012+ with .Net Framework >= 4.5 as project target

Copy content of your XML file to clipboard

Add to your solution new, empty class file (Shift+Alt+C)

Open that file and in menu click Edit > Paste special > Paste XML As Classes

And that's it!

Thanks to Damian Drygiel for a great writeup


Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading