Chapter 22. Dynamic Programming

In Chapter 21, we learned about different facilities that can be used to deal with weakly typed scenarios. This includes the use of reflection to inspect type information at runtime, as well as different services to generate code at runtime.

Despite such services offered by the runtime, there are many more scenarios of dealing with weakly typed object that reach outside the scope of managed code. Examples include XML without schemas, JSON objects, and so on. Before the advent of .NET 4, reaching out to such dynamic worlds was quite hard and required lots of plumbing. Moreover, there was no unification whatsoever ...

Get C# 4.0 Unleashed 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.