1

Has anyone written some interesting or cool Linq extension methods they would like to share? I'm attempting to build up a library of such methods for our developers, to help them transition into Linq and away from T-SQL.

Thanks very much.

Randy Minder
  • 47,200
  • 49
  • 204
  • 358
  • Related: Whats your favorite LINQ to Objects operator which is not built in? http://stackoverflow.com/questions/3645644/whats-your-favorite-linq-to-objects-operator-which-is-not-built-in – Ani Jan 14 '11 at 22:03
  • "to help them transition into Linq and away from T-SQL." So, does that mean trying to move them away from Stored Procs/ADO.NET and onto Entity Framework? If so, you should be also asking for `ObjectQuery` extensions. – RPM1984 Jan 14 '11 at 23:21

2 Answers2

3

I started MoreLINQ - and Reactive Extensions has some extra operators for LINQ to Objects as well, in System.Interactive.

(Both of these are for LINQ to Objects rather than LINQ to SQL. There's a fair amount of overlap, too.)

Just as a blatant plug, I'm likely to blog about some ideas for what else LINQ to Objects might sensibly have had as part of the wrap-up posts for my Edulinq blog series. That may or may not provide some more food for thought :)

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
  • Thanks very much. Do these methods come with any documentation, and/or examples? – Randy Minder Jan 14 '11 at 22:07
  • @Randy: What you see is what you get for MoreLINQ :) Reactive Extensions comes with a CHM, but last I looked it wasn't very detailed. Hopefully it's been beefed up since then. – Jon Skeet Jan 14 '11 at 22:09
3

You can find hundreds of user submitted, ranked and commented extension methods on www.extensionmethod.net (for instance, the IEnumerable section contains 40 entries as of today).

Maxim Gueivandov
  • 2,370
  • 1
  • 20
  • 33