Scope might not be the right word. With the following code I can\'t get access to the collections element\'s object\'s properties. Is there a better return data type or a way t
Once you leave the scope in which the anonymous type was defined, you have to use reflection to get to its members.
The two other options I can think of are to use a dynamic type (if using 4.0 framework or later) or to create a defined type instead of an anonymous type.