Reflection: Is using reflection still "bad" or "slow"? What has changed with reflection since 2002?
- by blesh
I've noticed when dealing with Expressions or Expression Trees I'm using reflection a lot to set and get values in properties and what have you. It has occurred to me that the use of reflection seems to be getting more and more common. Things like DataAnotations for validation, Attribute heavy ORMs, etc. Have me wondering: What has changed since the days years and years ago when I used to be told to avoid reflection if at all possible?
So what, if anything has changed? Is it just the speed of the machines? Have there been changes to the framework to speed up reflection?
Or has nothing really changed? Is it still "bad" or "slow" to use reflection?
EDIT: To clarify my question a little.