I have a type T with fields+properties that i’d like to populate from a dictionary, pref case insensitive
I can obviously do
foreach(PropertyInfo pi in t.GetProperties() )
.....
and then
foreach(FieldInfo pi in t.GetFields() )
.....
Hoping there’s a better way, perhaps using LINQ ?
Here is an option,
…and then to use something like…
…though not sure if it makes too much sense as going through properties/fields is relatively simple anyway, an idea maybe.