OK,
This question has probably been answered before, but I'm not sure of how to word the Title.
I have a class that has methods which return many composite LINQ queries. Most of these queries form Anonymous Types in order to get the data I need. I found out that I'm not able to return an Anonymous Type from a method, so I've been creating sub classes and populating them in the "select new" part of the query.
Is there a better way of doing this? All of these methods return an IEnumerable of some kind and I really want to keep things extracted.
Thanks!