Mixing Extension Methods and Anonymous Types

In my recent post Overcoming the Limitations of Anonymous Types, I talked about ways to get around the method scope and read-only limitations of anonymous types.  These were fairly simple examples that used reflection to gather data from the type once it had been passed outside of the containing method.  You could see the properties…

0

Overcoming the Limitations of Anonymous Types

It seems clear that the new anonymous types feature for C# 3.0 is going to be very useful, however there are a few limitations that come along with them: limited scope and read-only properties. Anonymous types have a method scope.  This means that if you pass an anonymous type outside the containing method boundary, then…

1