Discover a new way to find and share stories you'll love… Learn about Reading Desk

Post Profile



Taming Your Sequence’s Side-Effects Through IEnumerable.Let

Introduction Side-effects don’t fit together very well with functional-style delayed computation, as observed in LINQ. Having such constructs embedded in an otherwise eagerly evaluated imperative language like C# can cause quite some confusion from time to time. A few samples (due to Erik Meijer) of such “mishaps” are shown below: // // When does it throw? // IEnumerable res = null; try {     res = from x in Enumerable.
read more

share

Dynamically evaluated SQL LINQ queries

Programming / Windows Development : CodeProject (last year)

Extension methods to evaluate plain text SQL queries against IEnumerable collections. Read Post

How to Use LINQ GroupBy

Programming / Windows Development : CodeProject (5 years ago)

The‘GroupBy’ feature in LINQ is amazing and very powerful. When you use a‘GroupBy’ in LINQ, internally it calls an extension method whichreturns a sequence of System.Collections.Generic.IEnumerable)>)>)>)TheGroupBy... Read Post

LINQ to Objects - Debugging

Technology / Programming : B# .NET Blog (5 years ago)

Introduction Declarative language constructs like query comprehension syntax often worries imperatively trained developers. I hear this quite a bit, and the excuse of “It Just Works” is often not satisfactory for most of them :-). C... Read Post


Copyright © 2011 Regator, LLC