Steven Edouard

Developer Advocate. Tech Enthusiast. Life Enthusiast.

NAVIGATION - SEARCH

Neat! Copy and Paste-Special Classes from JSON/XML

Copy + Paste Special is a not-too-known feature actually released back in VS2012 Update 2. I never knew this and I figured most didn't either. This is especially useful if you consume web services or serialize data in general.

Say you have some XML from a web response:

 

To deserialize this schema all you have to do is just use this nifty feature:

 

 

And VS instantly generates the serialization class(es):

 

 

As you can guess this works just as well with JSON.

Comments (1) -

Lorean Hinton
United States Lorean Hinton

Good work Smile cheers!

Reply

Add comment

biuquote
  • Comment
  • Preview
Loading