lambda expressions in c# vs. vb.net -
functionally, there difference (apart syntax onbviously) between lambda expressions in c# , vb.net?
edit: following on craigtp's answer: references situation in .net 4?
edit: i'm asking because i'm used c#, next project customer asks vb.net. we're not priori against that. realize language constructs supported in both languages. however, we're particularly fond of way c# implements lambda expressions. have overview of differences vb.net
edit: accepted craigtp's answer pointing out consider important difference.
so summarize: vb.net 9 not support multiline statements in lambda expression, , lambda must return value. both of these issues addressed in vb.net 10
there's no functional difference, however, joe albahari says in this forum post:
vb.net doesn't support multi-statement lambda expressions or anonymous methods.
note based upon c# 3.0 , vb.net 9.0 (ie. visual studio 2008 versions of languages) - i'm not sure if still applies visual studio 2010 (c# 4.0 , vb.net 10.0 respectively).
edit:
as per richard szaley's , own comments, vb.net 10.0 (which part of visual studio 2010) does support multi-statement lambdas, , here link msdn channel 9 video shows off feature (along many others!):
lucian wischik , lisa feigenbaum: what's new in visual basic 10
Comments
Post a Comment