Lambda Expressions: An Introduction

Posted Sun, Oct 11 2009 12:11 by Deborah Kurata

My presentation at our local Code Camp was fun. I covered a lot of material and had a GREAT audience. Several people have asked for the slide information in my blog. So this is the start of several posts on lambda expressions.

In addition, I wrote an article on lambda expressions that should appear in the Jan/Feb 2010 issue of Code Magazine. I’ll post the link as soon as its published. (See Edit below.)

You can find sample code that demonstrates many different lambda expressions here.

Lambda expressions are unnamed, inline functions. They are new in Visual Basic 9 and C# 3.0 (VS 2008). You can use a lambda expression anywhere a delegate is required. For more information on delegates, see this post.

Here are an additional set of posts that cover the slides and information from my talk:

I will be adding more as time permits.

Enjoy!

EDIT: 1/4/2010

The Code Magazine article was published in the Jan/Feb 2010 issue and is here.

Added a link to sample code above.

Filed under: , , , , , ,

Comments

# Interesting Finds: October 12, 2009

Monday, October 12, 2009 7:23 AM by Jason Haley

Interesting Finds: October 12, 2009

# Lambda Expressions: Execution

Friday, October 16, 2009 3:26 PM by Deborah's Developer MindScape

Lambda expressions can be assigned to a delegate variable. The lambda expression is then executed when

# Sorting Lists with Null Values

Saturday, October 30, 2010 2:04 AM by Deborah's Developer MindScape

When working with data, you often have values that are null. For example, you may allow entry of a user's

# SelectMany: Finding in a Child List

Saturday, October 30, 2010 11:32 PM by Deborah's Developer MindScape

In this prior post , I demonstrated how to find a specific item in a generic list of items. But what

# Associating Code with a Tag using Delegates II

Friday, November 19, 2010 11:32 AM by Deborah's Developer MindScape

This prior post demonstrated how to use delegates to associated code with a Tag in a WinForms control

Leave a Comment

(required) 
(required) 
(optional)
(required) 
If you can't read this number refresh your screen
Enter the numbers above: