Updated Question Further Down
I\'ve been experimenting with expression trees in .NET 4 to generate code at runtime and I\'ve been trying to implement th
Don't forget to dispose IEnumerator in try/finally - lots of code (such as File.ReadLines()) depends on that.