In this answer a func is being used to create a dynamic Where private List GetResults(IQueryable source, Expression> queryFunction) { return source. Where(queryFunction).ToList(); } You should be able to do something similar with GroupBy.
In this answer, a func is being used to create a dynamic Where. Private List GetResults(IQueryable source, Expression> queryFunction) { return source. Where(queryFunction).ToList(); } You should be able to do something similar with GroupBy.
This will not work because you have to pass in a fully typed Func. However here I do not know the type of the object to search by until runtime. – James Jan 12 '10 at 10:28 You get to decide which fully typed function to pass in at runtime.
– Robert Harvey? Jan 12 '10 at 16:08.
But the point is I ONLY want to return Bars, this should also be specified at runtime. This is the main problem I have been having. I cant do Foos.
GroupBy(some dynamic stuff) because I don't know the type to filter for at runtime. Would really appreciate some help on this matter. Basically, what i'm trying to do is this http://stackoverflow.com/questions/1465700/system-linq-dynamic-select-new-into-a-listt-or-any-other-enumerable but return Count instead of Sum at the end.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.