[dba-VB] C# event handler syntax

Gustav Brock Gustav at cactus.dk
Mon Apr 28 10:53:55 CDT 2008


Hi all

Just browsed this page:

  http://blueonionsoftware.com/Blog.aspx?p=8afe238f-87c2-400b-9440-8231280f7576

which has a brief explanation on the syntax from the beginning to the ultra compact of version 3.5 using Lambda expression:

  clock.Alarm += (o, e) => Console.Write("Alarm!");

This is _not_ what IntelliSense suggests, so you are a little on your own. 

/gustav







More information about the dba-VB mailing list