158 are abusing LINQ. LOL! Have you noticed that tagline in the right column? It got me thinking…

What is the worst LINQ you’ve had the pleasure to decipher? Here’s my entry:

List<Vehicles> veh = objs.AsParallel().Where(c => cap.Match(c.Test())).Select(x => x as Vehicles).Where(a => a != null && !cap.SourceContains(a)).ToList();

Although I appreciate minds that can think like this, and the code it saves, I’m not sure it’s a good thing. I work with a benevolent LINQ abuser. 🙂

submitted by /u/Liberty100
[link] [comments]

Leave a Reply