✅ How to get class structure with types?
I have following class:
I'd like to get following object:
how to do it?
4 Replies
what's the question exactly...?
the question is.. how to get all properties of class..
I'm trying to do this:
and all I get is (pagination, Pagination)
I need to get nested properties too
pagination is the only property on
ReportTemplatesListArguments
.
If you want to dig into Pagination and get all its properties then you'll need to use some recursion or similarIf you want a
Dictionary<PropertyInfo, PropertyInfo[]>
I'd do something like this:
You could also go one step further to get the names instead of property info, but that's the idea.