in

vbCity Blogs

New (temp) place for vbCity Blogs

Mike McIntyre's .NET Journal

Browse by Tags

All Tags » lambda (RSS)
  • Visual Basic 2010 - Multiline Function Lambdas

    A multiline Function lambda is a lambda expression that represents a Function containing one or more statements. The “Function” keyword can be used to create a multiline lambda that returns a value. The following examples how to create mutiline Function lambdas. The first creates a multiline Function lambda and assigns it to a variable. The second uses a multiline Function lamda inline. ...
  • Visual Basic 2010 - Multiline Sub Lambdas

    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: ...
Copyright 1998-2009 vbCity.com LLC
Powered by Community Server (Non-Commercial Edition), by Telligent Systems