Hello Friends,
In this article I'm explaining how we can quickly create class entities from json/xml data.
let's consider we've below JSON data based on it we've to generate class with same entity name.
How to generate class within Visual Studio
Step 1: Create a blank class
Step 2: Delete high lighted code. And keep your cursor inside namespace curly braces
Step 3: Open menu as per high lighted sub menu
Step 4 : Paste JSON code in class
In this article I'm explaining how we can quickly create class entities from json/xml data.
let's consider we've below JSON data based on it we've to generate class with same entity name.
How to generate class within Visual Studio
Step 1: Create a blank class
Step 2: Delete high lighted code. And keep your cursor inside namespace curly braces
Step 3: Open menu as per high lighted sub menu
Step 4 : Paste JSON code in class
Here you can see your JSON data have been converted into class. You can follow same step to paste XML As Class convert.







No comments:
Post a Comment