Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello together,
I'm trying to get properties from an object of type DrawingView for example. (see screenshot attached)
This should be a general subroutine for all Inventor types later.
private void CreateFinalList<T>(T obj)
{
if (obj == null) return;
List<PropertyInfo> properties = typeof(T).GetProperties().ToList();
foreach (PropertyInfo propertyInfo in properties)
{
string name = propertyInfo.Name;
}
}
Properties list keep count = 0.
What am I doing wrong?
Thank you in advance.
Solved! Go to Solution.