Let's say I have class,
class A
{
B PropA{get; set;}
}
class B
{
string PropB{get; set;}
C PropC{get; set;}
}
class C
{
string PropD{get; set;}
}
Now I wanna get "PropA.PropB"? Similarly, I wanna get "PropA.PropC.PropD" and so on? I need to create a method that will take "PropA.PropB" as parameter and return the PropetyInfo?