Kunjahamed P

Kunjahamed P

  • 1.7k
  • 296
  • 9.1k

get full 'path' of nested class object?

Jul 10 2020 3:11 AM
Is it possible to get the full 'path' nested class object


  1. public class Member  
  2. {  
  3. public string Name;  
  4. public Address Address;  
  5. }  
  6. public class Address  
  7. {  
  8. public string Line1;  
  9. public string Line2;  
  10. public string Line3;  
  11. } 
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?

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (3)