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:
Post a Comment