Generic Delegates and Lambda Expressions

Generic delegates and lambda expressions underpin LINQ. If you’ve been struggling to get your arms around these new concepts, this post should help demystify matters for you.
Of course, there are a a host of other new .NET language features that enable LINQ as well. These include extension methods, type inference, anonymous types, [...]

Tags: , , , , ,

Read Users' Comments (0)

Practical Understanding of Lambda Expressions in LINQ

Lambda expressions are a powerful tool to writing quick, concise code. They can be used in numerous situations, most notably in conjuction with LINQ statements.
A lambda expression is an anonymous function that can contain expressions and statements, and can be used to create delegates or expression tree types.
All lambda expressions use the lambda operator =>, [...]

Tags: , , , ,

Read Users' Comments (0)

How to Share Parameters Between Lambda Expressions

When using Linq to objects, you will quickly feel the need to pass some parameters from a method to another but it’s not so easy because each Linq method is not calling the following one. In a Linq sequence, each method is using the result computed by the previous one. So, local contexts are not [...]

Tags: , ,

Read Users' Comments (1)

Solving Issues With LINQ Foreach Variables

Can you guess what the output of the following program is?
using System;
using System.Collections.Generic;

namespace Lambda
{
class Program
{
static void Main(string[] args)
{
var strings [...]

Tags: ,

Read Users' Comments (0)

How to Execute Arbitrary SQL using LINQ to SQL [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL to execute arbitrary SQL against a database.

Tags: ,

Read Users' Comments (0)

How to Update a Table with LINQ to SQL and Stored Procedures [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL and stored procedures to update a table.

Tags: , ,

Read Users' Comments (0)

How to Use Stored Procedures with LINQ to SQL [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL with stored procedures.

Tags: , ,

Read Users' Comments (0)

How to Create a Custom LINQ to SQL LinqDataSource [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of creating a custom LINQ to SQL LinqDataSource.

Tags: ,

Read Users' Comments (0)

How to Use the LINQ to SQL LinqDataSource [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using the LINQ to SQL LinqDataSource.

Tags: ,

Read Users' Comments (0)

How to Update a Database Using LINQ to SQL [Video]

This video, courtesy of Microsoft’s ASP.NET video series, provides an example of using LINQ to SQL to update a table in a database.

Tags: ,

Read Users' Comments (0)

 Page 1 of 2  1  2 »