Skip to content

Instantly share code, notes, and snippets.

@tnngo2
Created May 8, 2012 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tnngo2/2633475 to your computer and use it in GitHub Desktop.
Save tnngo2/2633475 to your computer and use it in GitHub Desktop.
using System;
namespace Theory10
{
class Lambda
{
static void Main(string[] args)
{
Func<int, int> a = i => i*i;
Console.WriteLine(a(2));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment