Just sharing some of my inconsequential lunch conversations with you... RSS  

Monday, July 09, 2007

Lambda rules

Here's a cool piece of code, taken from the vbteam:

MsgBox((From c In _

CheckedListBox1.CheckedItems).Aggregate( _

Function(ByVal x, ByVal y) x + "," + y))


Ok, the post issues some performance considerations (mainly because we are not using StringBuilder), as well as some reuse considerations, but the code itself is clear and simple. And yes, I finally posted some VB.NET code :)

No comments:

Development Catharsis :: Copyright 2006 Mário Romano