Reflection: Is using reflection still "bad" or "slow"? What has changed with reflection since 2002?

Posted by blesh on Programmers See other posts from Programmers or by blesh
Published on 2012-04-05T19:12:40Z Indexed on 2012/04/05 23:42 UTC
Read the original article Hit count: 447

Filed under:
|

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.

© Programmers or respective owner

Related posts about .NET

Related posts about reflection