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

Leave a Comment

(required) 
(required) 
(optional)
(required)