Language Basics C# Book

lambda expression can use outter variable.

using System;
class Program
{
public static void Main()
{
int factor = 2;
Func multiplier = n => n * factor;
Console.WriteLine(multiplier(3));
}
}
The output:
6