2016/07/26

How to generate C# classes from xml in Visual Studio ?


  1. Copy xml to clipboard
  2. Open Visual Studio -> create class file -> remove class definition -> edit menu -> Paste special -> Paste XML As Classes
  3. Replace typeA[][] to List<TypeA>

No comments:

Post a Comment