Array modifiers cannot be specified on lambda expression parameters name, only on its type
Array arguments can be sent to lambda expressions, but the parameter declaration must include the element type.
' Not valid.
' Dim arrayExample1 = Function(arrayPara()) 2
' Valid.
Dim arrayExample2 = Function(arrayPara() As Integer) arrayPara.Length > 0
Dim arrayexample3 = Function(arrayPara As Integer()) arrayPara.Length > 0
Error ID: BC36643
- Specify the type of the elements in the array parameter.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: