My Dev Tricks

HomeContactAboutBadges
Blog Author Picture

Jan Doubek

10 followers

Trying to disprove that old-school Devs cannot learn new tricks!

LINQ gems - Left Outer Join

Nov 12, 20207 min read

Doing a left outer join in T-SQL is as straightforward as adding a single keyword to the JOIN statement. I remember that when I first tried to perform a left outer join in a LINQ query, I was honestly surprised about how confusing the syntax was. Eve...

LINQ gems: Indexed Select

Oct 28, 20202 min read

Here's another LINQ gem, which is very useful if you plan to base your projection or filtering logic on the element's index in a sequence. From the MSDN page for Enumerable.Select(): Projects each element of a sequence into a new form by incorporati...

LINQ gems: Zip

Oct 20, 20202 min read

I'm always fascinated by how simple yet helpful LINQ queries are. Take for example the Enumerable.Zip() method. It's simple, yet very useful in case you need to combine two sequences of data. Here's a partial example where Zip() is used to combine a...

© 2021 My Dev Tricks

PrivacyTerms
Proudly part of