If I use
sometype.GetProperties();
I get all of the properties from the type and it\'s parent. However I only want to retrieve the proper
I had problems using typeof(Thing), eventually this worked for me:
typeof(Thing)
var thisThing = (new Thing()).GetType(); foreach (var property in thisThing.GetProperties()) { // ... }