Lecture overview -- Keyboard shortcut: 'u'  Previous page: Multivalued delegates -- Keyboard shortcut: 'p'  Next page: Events [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Operators, Delegates, and Events - slide 10 : 20

Lambda Expressions

A lambda expression in C#3.0 provides a smooth notation for anonymous functions

Anonymous method expressions in C#2.0 - delegate(...) {statements} - is very similar to lambda expressions

lambda-demo-with-arrays.cs
Five equivalent functions - from anonymous method expressions to lambda expressions.
output
Program output.