I have some linq queries that have redundancy I\'d like to factor out a single piece of code. These are join experssions that are IQueryable, and its important I don\'t cause t
Another important way to factor linq expressions is to pass expressions around, for example:
X GetSomeX(Expression> map)
{
return SourceOfYs.Select(map);
}
I got the idea by looking into the article of Barak's article - and even though he does a bit more on that topic, I thought I mention this piece again here. It seems to be an obvious first thing to point out directly.