Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Array modifiers cannot be specified on lambda expression parameters name, only on its type
Collapse the table of content
Expand the table of content

Array modifiers cannot be specified on lambda expression parameters name, only on its type

Visual Studio 2008

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

To correct this error

  • Specify the type of the elements in the array parameter.

Community Additions

ADD
Show:
© 2015 Microsoft