How to define an Anonymous type lambda parameter in Linq Expression
0
I had found in a stackoverflow post how they created an anonymous object but I would like to create a Lambda expression which select only a field within an object to be able to Group by Id
currently the coude from here Linq: Group by multiple columns using Expression-tree syntax
creates a new type but I would like that it could be able to work on GroupBy linq method....
using this type using a single field(I only need the field rather the class... groups by an entity MyType which doesnt exist...it should group by either of the entities/fields in my class
linq.net-coresystem.reflection
0 Replies