3 ms·
Like this: var thing = from x in stuff let derp = x.herp select { x.name } Equals this: var thing = stuff.Select( x => { var derp = x.he
by andy_t 14y ago
Like this:
var thing =
from x in stuff
let derp = x.herp
select { x.name }
Equals this:
var thing = stuff.Select( x => {
var derp = x.herp;
return new { x.name };
} );
edit: formatting.
I think each have their place, but this absolutely enrages me:
var things = ( from x in thingList select x ).ToList()