22

I'm still trying to learn LINQ, though it's going more smoothly now that I've started to use it daily at work. I still don't feel good at it, though. Does anyone have any challenging practice exercises or puzzles I can use as a code-kata to improve my skills?

I'll leave this as community wiki, so maybe it can grow to a community list.

Zero Piraeus
  • 56,143
  • 27
  • 150
  • 160
Danimal
  • 7,672
  • 8
  • 47
  • 57

5 Answers5

12

If you have not discovered http://www.linqpad.net/ it lets you practice linq in a lightweight way, as well as having some inbuilt examples from C# 5.0 in a nutshell and C# in Depth books.

Loofer
  • 6,841
  • 9
  • 61
  • 102
8

101 Linq Samples is a good one for reference. Not a puzzle though

mcarton
  • 27,633
  • 5
  • 85
  • 95
Jesper Blad Jensen
  • 2,751
  • 17
  • 16
1

I know the 1st 2 questions at Project Euler is 'LINQ' friendly, I never did any more, but it should be fun either way :)

leppie
  • 115,091
  • 17
  • 196
  • 297
1

Puzzle:

Do a full outer join in LINQ.

Amy B
  • 108,202
  • 21
  • 135
  • 185
0

I've been finding "foreach's" in existing code and attempting to linq'ify them. Many times things have been different enough for me to learn new concepts or at least if they're similar I get to feel more confident that my Linq skills are getting better.

billb
  • 3,608
  • 1
  • 32
  • 36