Skip to content

Instantly share code, notes, and snippets.

@mcmarto
mcmarto / gist:344765
Created March 26, 2010 10:53
C# Lambdas
btnSubmit.Click += delegate(object sender,EventArgs e)
{
MessageBox.Show("Thanks for clicking the button!");
}
btnSubmit.Click += (sender, e) => {MessageBox.Show("Thanks for clicking the button!");}