tag:blogger.com,1999:blog-15135700.post2615705614066584460..comments2012-01-28T03:50:21.920+01:00Comments on throws dotNetException: Working on collections and searching for objectsRunehttp://www.blogger.com/profile/00640836124811415245noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-15135700.post-32794901935105103752009-03-26T09:22:00.000+01:002009-03-26T09:22:00.000+01:00oh, and .Net already comes with a single parameter...oh, and .Net already comes with a single parameter input delegate. I present...: Action<T>Rune Juhl-Petersenhttps://www.blogger.com/profile/05658234442386749696noreply@blogger.comtag:blogger.com,1999:blog-15135700.post-6104692031762023242009-03-26T09:18:00.000+01:002009-03-26T09:18:00.000+01:00It turns out that .Net can detect the output type ...It turns out that .Net can detect the output type of your lambda expression and provide the right generic type.<BR/><BR/>.Map(t => x.Name + ": " + x.Text) will be valid. If you try to put it in a variable that isn't IList<string> it won't compile as the return type of the lambda i string.Rune Juhl-Petersenhttps://www.blogger.com/profile/05658234442386749696noreply@blogger.com