❔ ✅ Display all properties of different types without an attribute in a WPF list?
I have a Vehicle object that looks like this:
A described value is just a string
Description
and T Value
pair object
I want to get all of these properties without the CSV logging attribute to be shown in a WPF list. Any ideas on how I can do this? Couldn't come up with anything after a few hours and can't find much online.3 Replies
Have you tried reflection 🪞?
I did end up using reflection as you suggested with a nongeneric base type first that ended up looking like this:
The boxing kind of sucks considering this is going to be hot but oh well, not really an issue compared to SerialPort IO speeds which are the main bottleneck. This is where the reflection was:
Thank you for the help
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.