class ClassA
{
public ClassB myProp {get;set;}
}
class ClassB
{
public ClassC anotherProp {get;set;}
}
class ClassC
{
public string Name {get;set;}
}
I have an object of the ClassA type. How, by the reflection iterate recursively to get ClassC’s Name property value ?
Ok, solved.
Let’s say that I have the path to the Property which value I wanna get:
then, after splitting that parh I iterate through the tree without recursion 😉