9
Taking Advantage of the Dynamic Language Runtime
C# is a statically typed language, which means we take our code in text form and run it through a compiler, and it produces a binary that is then executed later. The code does not change after the compiler is done. Not all languages are like this; languages such as Ruby, Python, and JavaScript are dynamic languages and do not compile to binary before execution. They are interpreted at runtime, meaning that they can also change gradually during runtime. This is a very powerful trait.
In this chapter, we will look into how we can make use of the dynamic language runtime part of the .NET runtime and create code dynamically and differently from how we’ve done it thus far.
We will cover the following ...
Get Metaprogramming in C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.