-
Book Overview & Buying
-
Table Of Contents
Metaprogramming in C#
By :
In this chapter, we have learned about the power of building out expressions and expression trees. Not only can they represent queries but, in fact, they can be just as powerful as generating intermediate language code.
With expressions, you get an alternative to intermediate language. They do have some limitations over generating intermediate language code, such as you can’t simply create types and implement interfaces or override the behavior of virtual methods inherited. But as a tool for expressing simpler actions, they are really great.
In the next chapter, we will look at yet another approach to dynamically creating types and implementations by leveraging the capabilities of the Dynamic Language Runtime.