Deborah's Developer MindScape

         Tips and Techniques for Web and .NET developers.

October 11, 2009

Lambda Expressions: An Introduction

Filed under: C#,Lambda Expressions,VB.NET @ 2:11 pm

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.


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.

1 Comment

  1.   Adolphee — October 12, 2012 @ 4:52 pm    Reply


    I am trying to covert this expression form C# to VB. but no success.

    Any help would be appreciated

    this.PropertyChanged += (s, e) =>
    if (e.PropertyName == “ActiveItem”)
    NotifyOfPropertyChange(() => CanCloseActiveItem);


RSS feed for comments on this post. TrackBack URI

Leave a comment

© 2023 Deborah's Developer MindScape   Provided by WPMU DEV -The WordPress Experts   Hosted by Microsoft MVPs