Wednesday, March 10, 2010

Easy Reflection

Reflection in .NET, as in Java, is pretty easy (and fun.) It is worth taking an amble down the many classes and tutorials in, and relating to, the System.Reflection namespace.

It is vitally important not to over-use reflection and to be aware that any reflection code probably has a better, non-reflection API somewhere to get the job done.

That said, there are easy mechanisms to get some basic reflection, like calling an empty argument constructor:
Hopefully, I'll flesh this out with some examples and more links to other places, but for now, this will have to do.

No comments:

Post a Comment