Roy Osherove

View Original

Dynamic Invocation with Reflection.Emit

Reflection is just one of the areas I'd ilke to explore more of. This article is just one of the reasons I find this area cooler than most : Dynamic Invocation with Reflection.Emit .

It shows you howe to create a method on the fly that iterates in a loop and sums up numbers. Although it's not what I'd do every time I'll need a loop, I'll bet there are some pretty cool applications for this 'feature'. One of them is a performance increase of 3000%.