Question: C# Question 1: [You can't use any library, just use reflection and recursion] [The Classes are given Below The output] You have to write a

![and recursion] [The Classes are given Below The output] You have to](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66efec974712d_70266efec96d81eb.jpg)
C\# Question 1: [You can't use any library, just use reflection and recursion] [The Classes are given Below The output] You have to write a static method in ConvertJsonstring class so that it will generate the Output Below: [basically the method will convert any C\# object to JSON object] Output: \{ "Name": "Asish", "HomeAddress": \{ "Road": "8", "Postoffice": "Mumbai" 3, "Joiningdate_With_Time": "2022-05-28T12:05:55", "PhoneNumbers": [ \{ "Number": "123456", "Extension": "+330" 30 \{ "Number": "22586", "Extension": "+980" \} ] \} public class Phone \{ public string Number \{ get; set; \} public string Extension { get iseti} \} public class Employee \{ public string Name { get; set; } public Address HomeAddress { get; set; } public DateTime Joiningdate_Wlith_Time { get; set; } public List PhoneNumbers { get; set; } \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
