How to do recursive call of a generic T type param method?
How to do recursive call of a function having generic type parameter?
for example:
public T Deserialize(string json)
{
//// How can I do recursive call here? where type T is dynamic here.
}
Let a class Student
public class Student
{
public Name FullName {get; set;}
public int RollNo {get; set;}
}
public class Name
{
public string FirstName {get; set;}
public string LastName {get; set;}
} Now calling method: Deserialize(json)here how can I do recursive call to deserialize object Name.


Catcher WongRank #286 · 8.8K reputationPosted Apr 7, 2018, 5:14 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Apr 7, 2018, 9:49 PM EDT
Tarun RajakRank #2,996 · 481 reputationPosted Apr 8, 2018, 12:17 PM EDT