Sleek Use of a Lambda Expression

Posted on January 24, 2008  |  

Posted in Development

No comments yet

I can’t recall where I found it, but here's a sleek way to employ a lambda expression:

SomeButton.Click += (sender, e) => { .... };

I’s one of those moments when you say to yourself, “But of course!”

Then there’s also this really short event handler syntax.

Leave a comment

  •