I am trying to come up with the best way to get only certain properties from a type using reflection. How can I differentiate the properties from each other?
Let me add this to help clarify my question.
I understand that I can use binding flags or name. But say I want only a certain four properties. Would the best way be to create a custom attribute for the ones I want then loop through all of the properties to see if they have that attribute?