Introduction to static reflection
This post could’ve also been called “Fluent NHibernate secrets exposed!” but it sounded a bit sensationalist.
You may have heard people mention static reflection recently, quite possibly because it’s used extensively in Fluent NHibernate, Rhino Mocks, and I believe Jimmy Bogard’s new AutoMapper also uses it; pretty much any of the new “fluent” interfaces use some kind of static reflection.
So what actually is static reflection? Well, it’s a statically compiled way of utilising the Reflection API.
Read more »