Is it possible to get the full 'path' nested class object
ex:
- public class Member
- {
- public string Name;
- public Address Address;
- }
- public class Address
- {
- public string Line1;
- public string Line2;
- public string Line3;
- }
Imagine I have an instance of this class named m. Is it possible to get the full path as "Member.Address.Line1" (as string), by any methods, just by passing somehow m.Address.Line1?