C# in Depth

Cover of C# in Depth
Order now (3rd edition)

Partial method corner cases

Chapter 7: Concluding C# 2: the final features: 7.1.3

Created: 2/24/2008
Last updated: 2/26/2008

Partial methods sound reasonably straightforward, don't they? Well, consider an expression tree which is built from a lambda expression which calls a partial method. If the partial method is removed, the lambda expression can't be converted into an expression tree any more, as there's no such thing as an expression tree which does absolutely nothing.

I'm so glad I don't write compilers.