|
A multiline Sub lambda is a lambda expression that represents a Sub containing one or more statements.
Visual Basic 9.0 only supported lambdas that were a single expression that returned a value; for example, the following line was an error:
'Error - Console.WriteLine doesn't return a value
Array.ForEach(nums, Function(n) Console.WriteLine(n))
With Visual Basic 10.0, lambdas can now contain expressions that do not return a value:
...
|