Reflection is likely sometimes overused, I convinced someone recently to use
an interface for a plug-in style app, previously he used reflection not only
to find the class (it has to be the only class in the assembly) but also to
perform the call to this class instance. Using an interface is much simpler.
But also it could be just that as it can be tricky and a less familiar area
someone that really needs reflection will perhaps more likely ask for help
than when using other well know areas...
IMO you generally can't draw conclusion from what you see in the wild. You
just see the tip of the iceberg, not the whole picture (if you see a product
forum full of posts, is this because the product is bad or because this is
the product everyone uses and you see just those who have a problem ?)...
--
Patrice
"Harlan Messinger" <(E-Mail Removed)> a écrit dans le
message de groupe de discussion :
(E-Mail Removed)...
> I've been surprised by the frequency with which I've seen online inquiries
> regarding reflection, but perhaps I shouldn't be. I would have thought
> that the primary, if not sole, "legitimate" purpose in using reflection
> (where by "legitimate" I mean without violating or circumventing good
> coding practices) is to create development tools. Is it that the inquiries
> I see are commensurate with the number of people who are building
> development tools, or is it that a lot of the inquiries indicate people
> using reflection for purposes where it isn't the right tool? Or is it that
> there are plenty of other "legitimate" uses of reflection? If so, can
> someone enlighten me?