Post Answers OR

The application includes the following code and recieves JSON data in the below format { "EmpId":1, "EmpName":"E1", "EmpSalary":2000.00 } public class Employee { public int EmpId{get;set;} public string EmpName{get;set;} public decimal EmpSalary {get ;set;} } public static Employee ConvertToEmployee(string json) { var serializer=new JavaScriptSerializer(); } we need to ensure that the ConvertToEmployee() method returns the JSON input string as an Employee object. What should be the return statement for the above method?


© Copyright 1997 - 2019 | www.bestdotnettraining.com | www.deccansoft.com | All Rights Reserved.
 
Bestdotnet google plus
Enquiry Now