Yield Statement in C#

Many times we need to collect a number of results depending upon certain conditions. For that we need to create some sort of collection object, inserting the output to that collection and then returning that collection. But it can be very cumbersome to do that.
A rather simple way to do that is to use the [...]

Read Users' Comments (0)

Iterators, Lambda, and LINQ

Since the creation of the .Net Framework, Microsoft has kept the
concept of “Type Safe” at the forefront of their design goals.  When
1.1 shipped, the framework had a “generic” collection type called an
ArrayList that seemed to break this goal.  Microsoft quickly went above
and beyond with the 2.0 framework by adding Generics and Anonymous
Methods to the mix.  [...]

Read Users' Comments (0)

New Features in Visual Studio 2010 and the .NET Framework 4.0

Visual Studio 2008 may be
better than sliced bread, but the development team at Microsoft has
already been working on the next release. They have recently given us
Visual Studio 2010 and the .NET Framework 4.0 as a Community Technology
Preview (CTP); it boasts several features that would appeal to
developers.

This
article won't go into every single feature, but will go [...]

Read Users' Comments (0)

Multiple Join Fields in LINQ

Say you want to write a join in LINQ but you need to do it on more than one field.  You’d expect you’d just say something like,

on a.ID equals b.ID && a.EmployeeID equals b.EmployeeID

or something like that right?  right?  Wrong.
If you want to do a multi-field join you need to use an anonymous type like [...]

Read Users' Comments (0)

Is LINQ to SQL Truly Dead?

Back in July it was reported that LINQ to SQL was transferred to the SQL Data Programmability team.
This event raised a lot of concern in the developer community, who
worried that work on LINQ to SQL would halt in favor of ADO.NET Entity
Framework. A recent announcement by Tim Mallalieu, Program Manager of
both LINQ to SQL and [...]

Read Users' Comments (0)